@eka-care/abha 0.1.91 → 0.1.93

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.
@@ -22,7 +22,7 @@ var zs=a=>{throw TypeError(a)};var Ns=(a,o,_)=>o.has(a)||zs("Cannot "+_);var Ot=
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(a){function o(ct,mt){var Rt=ct.length;ct.push(mt);e:for(;0<Rt;){var Tt=Rt-1>>>1,Dt=ct[Tt];if(0<$(Dt,mt))ct[Tt]=mt,ct[Rt]=Dt,Rt=Tt;else break e}}function _(ct){return ct.length===0?null:ct[0]}function b(ct){if(ct.length===0)return null;var mt=ct[0],Rt=ct.pop();if(Rt!==mt){ct[0]=Rt;e:for(var Tt=0,Dt=ct.length,kt=Dt>>>1;Tt<kt;){var Ht=2*(Tt+1)-1,Pt=ct[Ht],Lt=Ht+1,Bt=ct[Lt];if(0>$(Pt,Rt))Lt<Dt&&0>$(Bt,Pt)?(ct[Tt]=Bt,ct[Lt]=Rt,Tt=Lt):(ct[Tt]=Pt,ct[Ht]=Rt,Tt=Ht);else if(Lt<Dt&&0>$(Bt,Rt))ct[Tt]=Bt,ct[Lt]=Rt,Tt=Lt;else break e}}return mt}function $(ct,mt){var Rt=ct.sortIndex-mt.sortIndex;return Rt!==0?Rt:ct.id-mt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var _e=performance;a.unstable_now=function(){return _e.now()}}else{var et=Date,tt=et.now();a.unstable_now=function(){return et.now()-tt}}var rt=[],st=[],it=1,lt=null,at=3,ft=!1,ht=!1,pt=!1,vt=typeof setTimeout=="function"?setTimeout:null,ut=typeof clearTimeout=="function"?clearTimeout:null,ot=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function nt(ct){for(var mt=_(st);mt!==null;){if(mt.callback===null)b(st);else if(mt.startTime<=ct)b(st),mt.sortIndex=mt.expirationTime,o(rt,mt);else break;mt=_(st)}}function dt(ct){if(pt=!1,nt(ct),!ht)if(_(rt)!==null)ht=!0,gt(yt);else{var mt=_(st);mt!==null&&St(dt,mt.startTime-ct)}}function yt(ct,mt){ht=!1,pt&&(pt=!1,ut(xt),xt=-1),ft=!0;var Rt=at;try{for(nt(mt),lt=_(rt);lt!==null&&(!(lt.expirationTime>mt)||ct&&!It());){var Tt=lt.callback;if(typeof Tt=="function"){lt.callback=null,at=lt.priorityLevel;var Dt=Tt(lt.expirationTime<=mt);mt=a.unstable_now(),typeof Dt=="function"?lt.callback=Dt:lt===_(rt)&&b(rt),nt(mt)}else b(rt);lt=_(rt)}if(lt!==null)var kt=!0;else{var Ht=_(st);Ht!==null&&St(dt,Ht.startTime-mt),kt=!1}return kt}finally{lt=null,at=Rt,ft=!1}}var _t=!1,At=null,xt=-1,wt=5,bt=-1;function It(){return!(a.unstable_now()-bt<wt)}function Nt(){if(At!==null){var ct=a.unstable_now();bt=ct;var mt=!0;try{mt=At(!0,ct)}finally{mt?Ct():(_t=!1,At=null)}}else _t=!1}var Ct;if(typeof ot=="function")Ct=function(){ot(Nt)};else if(typeof MessageChannel<"u"){var jt=new MessageChannel,Et=jt.port2;jt.port1.onmessage=Nt,Ct=function(){Et.postMessage(null)}}else Ct=function(){vt(Nt,0)};function gt(ct){At=ct,_t||(_t=!0,Ct())}function St(ct,mt){xt=vt(function(){ct(a.unstable_now())},mt)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(ct){ct.callback=null},a.unstable_continueExecution=function(){ht||ft||(ht=!0,gt(yt))},a.unstable_forceFrameRate=function(ct){0>ct||125<ct?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):wt=0<ct?Math.floor(1e3/ct):5},a.unstable_getCurrentPriorityLevel=function(){return at},a.unstable_getFirstCallbackNode=function(){return _(rt)},a.unstable_next=function(ct){switch(at){case 1:case 2:case 3:var mt=3;break;default:mt=at}var Rt=at;at=mt;try{return ct()}finally{at=Rt}},a.unstable_pauseExecution=function(){},a.unstable_requestPaint=function(){},a.unstable_runWithPriority=function(ct,mt){switch(ct){case 1:case 2:case 3:case 4:case 5:break;default:ct=3}var Rt=at;at=ct;try{return mt()}finally{at=Rt}},a.unstable_scheduleCallback=function(ct,mt,Rt){var Tt=a.unstable_now();switch(typeof Rt=="object"&&Rt!==null?(Rt=Rt.delay,Rt=typeof Rt=="number"&&0<Rt?Tt+Rt:Tt):Rt=Tt,ct){case 1:var Dt=-1;break;case 2:Dt=250;break;case 5:Dt=1073741823;break;case 4:Dt=1e4;break;default:Dt=5e3}return Dt=Rt+Dt,ct={id:it++,callback:mt,priorityLevel:ct,startTime:Rt,expirationTime:Dt,sortIndex:-1},Rt>Tt?(ct.sortIndex=Rt,o(st,ct),_(rt)===null&&ct===_(st)&&(pt?(ut(xt),xt=-1):pt=!0,St(dt,Rt-Tt))):(ct.sortIndex=Dt,o(rt,ct),ht||ft||(ht=!0,gt(yt))),ct},a.unstable_shouldYield=It,a.unstable_wrapCallback=function(ct){var mt=at;return function(){var Rt=at;at=mt;try{return ct.apply(this,arguments)}finally{at=Rt}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/**
25
+ */(function(a){function o(ct,mt){var Rt=ct.length;ct.push(mt);e:for(;0<Rt;){var kt=Rt-1>>>1,Dt=ct[kt];if(0<$(Dt,mt))ct[kt]=mt,ct[Rt]=Dt,Rt=kt;else break e}}function _(ct){return ct.length===0?null:ct[0]}function b(ct){if(ct.length===0)return null;var mt=ct[0],Rt=ct.pop();if(Rt!==mt){ct[0]=Rt;e:for(var kt=0,Dt=ct.length,bt=Dt>>>1;kt<bt;){var Ht=2*(kt+1)-1,Pt=ct[Ht],Lt=Ht+1,Bt=ct[Lt];if(0>$(Pt,Rt))Lt<Dt&&0>$(Bt,Pt)?(ct[kt]=Bt,ct[Lt]=Rt,kt=Lt):(ct[kt]=Pt,ct[Ht]=Rt,kt=Ht);else if(Lt<Dt&&0>$(Bt,Rt))ct[kt]=Bt,ct[Lt]=Rt,kt=Lt;else break e}}return mt}function $(ct,mt){var Rt=ct.sortIndex-mt.sortIndex;return Rt!==0?Rt:ct.id-mt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var _e=performance;a.unstable_now=function(){return _e.now()}}else{var et=Date,tt=et.now();a.unstable_now=function(){return et.now()-tt}}var rt=[],st=[],it=1,lt=null,at=3,ft=!1,ht=!1,pt=!1,vt=typeof setTimeout=="function"?setTimeout:null,ut=typeof clearTimeout=="function"?clearTimeout:null,ot=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function nt(ct){for(var mt=_(st);mt!==null;){if(mt.callback===null)b(st);else if(mt.startTime<=ct)b(st),mt.sortIndex=mt.expirationTime,o(rt,mt);else break;mt=_(st)}}function dt(ct){if(pt=!1,nt(ct),!ht)if(_(rt)!==null)ht=!0,gt(yt);else{var mt=_(st);mt!==null&&St(dt,mt.startTime-ct)}}function yt(ct,mt){ht=!1,pt&&(pt=!1,ut(xt),xt=-1),ft=!0;var Rt=at;try{for(nt(mt),lt=_(rt);lt!==null&&(!(lt.expirationTime>mt)||ct&&!It());){var kt=lt.callback;if(typeof kt=="function"){lt.callback=null,at=lt.priorityLevel;var Dt=kt(lt.expirationTime<=mt);mt=a.unstable_now(),typeof Dt=="function"?lt.callback=Dt:lt===_(rt)&&b(rt),nt(mt)}else b(rt);lt=_(rt)}if(lt!==null)var bt=!0;else{var Ht=_(st);Ht!==null&&St(dt,Ht.startTime-mt),bt=!1}return bt}finally{lt=null,at=Rt,ft=!1}}var _t=!1,At=null,xt=-1,wt=5,Tt=-1;function It(){return!(a.unstable_now()-Tt<wt)}function Nt(){if(At!==null){var ct=a.unstable_now();Tt=ct;var mt=!0;try{mt=At(!0,ct)}finally{mt?Ct():(_t=!1,At=null)}}else _t=!1}var Ct;if(typeof ot=="function")Ct=function(){ot(Nt)};else if(typeof MessageChannel<"u"){var jt=new MessageChannel,Et=jt.port2;jt.port1.onmessage=Nt,Ct=function(){Et.postMessage(null)}}else Ct=function(){vt(Nt,0)};function gt(ct){At=ct,_t||(_t=!0,Ct())}function St(ct,mt){xt=vt(function(){ct(a.unstable_now())},mt)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(ct){ct.callback=null},a.unstable_continueExecution=function(){ht||ft||(ht=!0,gt(yt))},a.unstable_forceFrameRate=function(ct){0>ct||125<ct?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):wt=0<ct?Math.floor(1e3/ct):5},a.unstable_getCurrentPriorityLevel=function(){return at},a.unstable_getFirstCallbackNode=function(){return _(rt)},a.unstable_next=function(ct){switch(at){case 1:case 2:case 3:var mt=3;break;default:mt=at}var Rt=at;at=mt;try{return ct()}finally{at=Rt}},a.unstable_pauseExecution=function(){},a.unstable_requestPaint=function(){},a.unstable_runWithPriority=function(ct,mt){switch(ct){case 1:case 2:case 3:case 4:case 5:break;default:ct=3}var Rt=at;at=ct;try{return mt()}finally{at=Rt}},a.unstable_scheduleCallback=function(ct,mt,Rt){var kt=a.unstable_now();switch(typeof Rt=="object"&&Rt!==null?(Rt=Rt.delay,Rt=typeof Rt=="number"&&0<Rt?kt+Rt:kt):Rt=kt,ct){case 1:var Dt=-1;break;case 2:Dt=250;break;case 5:Dt=1073741823;break;case 4:Dt=1e4;break;default:Dt=5e3}return Dt=Rt+Dt,ct={id:it++,callback:mt,priorityLevel:ct,startTime:Rt,expirationTime:Dt,sortIndex:-1},Rt>kt?(ct.sortIndex=Rt,o(st,ct),_(rt)===null&&ct===_(st)&&(pt?(ut(xt),xt=-1):pt=!0,St(dt,Rt-kt))):(ct.sortIndex=Dt,o(rt,ct),ht||ft||(ht=!0,gt(yt))),ct},a.unstable_shouldYield=It,a.unstable_wrapCallback=function(ct){var mt=at;return function(){var Rt=at;at=mt;try{return ct.apply(this,arguments)}finally{at=Rt}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/**
26
26
  * @license React
27
27
  * react-dom.production.min.js
28
28
  *
@@ -35,34 +35,34 @@ var zs=a=>{throw TypeError(a)};var Ns=(a,o,_)=>o.has(a)||zs("Cannot "+_);var Ot=
35
35
  `),_e=b.stack.split(`
36
36
  `),et=$.length-1,tt=_e.length-1;1<=et&&0<=tt&&$[et]!==_e[tt];)tt--;for(;1<=et&&0<=tt;et--,tt--)if($[et]!==_e[tt]){if(et!==1||tt!==1)do if(et--,tt--,0>tt||$[et]!==_e[tt]){var rt=`
37
37
  `+$[et].replace(" at new "," at ");return a.displayName&&rt.includes("<anonymous>")&&(rt=rt.replace("<anonymous>",a.displayName)),rt}while(1<=et&&0<=tt);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 o=a.render;return a=a.displayName,a||(a=o.displayName||o.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case Ga:return o=a.displayName||null,o!==null?o:Qa(a.type)||"Memo";case Ha:o=a._payload,a=a._init;try{return Qa(a(o))}catch{}}return null}function Ra(a){var o=a.type;switch(a.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=o.render,a=a.displayName||a.name||"",o.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(o);case 8:return o===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 o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}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 o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Ua(a){var o=Ta(a)?"checked":"value",_=Object.getOwnPropertyDescriptor(a.constructor.prototype,o),b=""+a[o];if(!a.hasOwnProperty(o)&&typeof _<"u"&&typeof _.get=="function"&&typeof _.set=="function"){var $=_.get,_e=_.set;return Object.defineProperty(a,o,{configurable:!0,get:function(){return $.call(this)},set:function(et){b=""+et,_e.call(this,et)}}),Object.defineProperty(a,o,{enumerable:_.enumerable}),{getValue:function(){return b},setValue:function(et){b=""+et},stopTracking:function(){a._valueTracker=null,delete a[o]}}}}function Va(a){a._valueTracker||(a._valueTracker=Ua(a))}function Wa(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var _=o.getValue(),b="";return a&&(b=Ta(a)?a.checked?"true":"false":a.value),a=b,a!==_?(o.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,o){var _=o.checked;return A({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:_??a._wrapperState.initialChecked})}function Za(a,o){var _=o.defaultValue==null?"":o.defaultValue,b=o.checked!=null?o.checked:o.defaultChecked;_=Sa(o.value!=null?o.value:_),a._wrapperState={initialChecked:b,initialValue:_,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function ab(a,o){o=o.checked,o!=null&&ta(a,"checked",o,!1)}function bb(a,o){ab(a,o);var _=Sa(o.value),b=o.type;if(_!=null)b==="number"?(_===0&&a.value===""||a.value!=_)&&(a.value=""+_):a.value!==""+_&&(a.value=""+_);else if(b==="submit"||b==="reset"){a.removeAttribute("value");return}o.hasOwnProperty("value")?cb(a,o.type,_):o.hasOwnProperty("defaultValue")&&cb(a,o.type,Sa(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(a.defaultChecked=!!o.defaultChecked)}function db(a,o,_){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var b=o.type;if(!(b!=="submit"&&b!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+a._wrapperState.initialValue,_||o===a.value||(a.value=o),a.defaultValue=o}_=a.name,_!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,_!==""&&(a.name=_)}function cb(a,o,_){(o!=="number"||Xa(a.ownerDocument)!==a)&&(_==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+_&&(a.defaultValue=""+_))}var eb=Array.isArray;function fb(a,o,_,b){if(a=a.options,o){o={};for(var $=0;$<_.length;$++)o["$"+_[$]]=!0;for(_=0;_<a.length;_++)$=o.hasOwnProperty("$"+a[_].value),a[_].selected!==$&&(a[_].selected=$),$&&b&&(a[_].defaultSelected=!0)}else{for(_=""+Sa(_),o=null,$=0;$<a.length;$++){if(a[$].value===_){a[$].selected=!0,b&&(a[$].defaultSelected=!0);return}o!==null||a[$].disabled||(o=a[$])}o!==null&&(o.selected=!0)}}function gb(a,o){if(o.dangerouslySetInnerHTML!=null)throw Error(p$1(91));return A({},o,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function hb(a,o){var _=o.value;if(_==null){if(_=o.children,o=o.defaultValue,_!=null){if(o!=null)throw Error(p$1(92));if(eb(_)){if(1<_.length)throw Error(p$1(93));_=_[0]}o=_}o==null&&(o=""),_=o}a._wrapperState={initialValue:Sa(_)}}function ib(a,o){var _=Sa(o.value),b=Sa(o.defaultValue);_!=null&&(_=""+_,_!==a.value&&(a.value=_),o.defaultValue==null&&a.defaultValue!==_&&(a.defaultValue=_)),b!=null&&(a.defaultValue=""+b)}function jb(a){var o=a.textContent;o===a._wrapperState.initialValue&&o!==""&&o!==null&&(a.value=o)}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,o){return a==null||a==="http://www.w3.org/1999/xhtml"?kb(o):a==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":a}var mb,nb=function(a){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,_,b,$){MSApp.execUnsafeLocalFunction(function(){return a(o,_,b,$)})}:a}(function(a,o){if(a.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in a)a.innerHTML=o;else{for(mb=mb||document.createElement("div"),mb.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=mb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;o.firstChild;)a.appendChild(o.firstChild)}});function ob(a,o){if(o){var _=a.firstChild;if(_&&_===a.lastChild&&_.nodeType===3){_.nodeValue=o;return}}a.textContent=o}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(o){o=o+a.charAt(0).toUpperCase()+a.substring(1),pb[o]=pb[a]})});function rb(a,o,_){return o==null||typeof o=="boolean"||o===""?"":_||typeof o!="number"||o===0||pb.hasOwnProperty(a)&&pb[a]?(""+o).trim():o+"px"}function sb(a,o){a=a.style;for(var _ in o)if(o.hasOwnProperty(_)){var b=_.indexOf("--")===0,$=rb(_,o[_],b);_==="float"&&(_="cssFloat"),b?a.setProperty(_,$):a[_]=$}}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(a,o){if(o){if(tb[a]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(p$1(137,a));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(p$1(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(p$1(61))}if(o.style!=null&&typeof o.style!="object")throw Error(p$1(62))}}function vb(a,o){if(a.indexOf("-")===-1)return typeof o.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$1(280));var o=a.stateNode;o&&(o=Db(o),yb(a.stateNode,a.type,o))}}function Eb(a){zb?Ab?Ab.push(a):Ab=[a]:zb=a}function Fb(){if(zb){var a=zb,o=Ab;if(Ab=zb=null,Bb(a),o)for(a=0;a<o.length;a++)Bb(o[a])}}function Gb(a,o){return a(o)}function Hb(){}var Ib=!1;function Jb(a,o,_){if(Ib)return a(o,_);Ib=!0;try{return Gb(a,o,_)}finally{Ib=!1,(zb!==null||Ab!==null)&&(Hb(),Fb())}}function Kb(a,o){var _=a.stateNode;if(_===null)return null;var b=Db(_);if(b===null)return null;_=b[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(b=!b.disabled)||(a=a.type,b=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!b;break e;default:a=!1}if(a)return null;if(_&&typeof _!="function")throw Error(p$1(231,o,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,o,_,b,$,_e,et,tt,rt){var st=Array.prototype.slice.call(arguments,3);try{o.apply(_,st)}catch(it){this.onError(it)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function(a){Ob=!0,Pb=a}};function Tb(a,o,_,b,$,_e,et,tt,rt){Ob=!1,Pb=null,Nb.apply(Sb,arguments)}function Ub(a,o,_,b,$,_e,et,tt,rt){if(Tb.apply(this,arguments),Ob){if(Ob){var st=Pb;Ob=!1,Pb=null}else throw Error(p$1(198));Qb||(Qb=!0,Rb=st)}}function Vb(a){var o=a,_=a;if(a.alternate)for(;o.return;)o=o.return;else{a=o;do o=a,o.flags&4098&&(_=o.return),a=o.return;while(a)}return o.tag===3?_:null}function Wb(a){if(a.tag===13){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function Xb(a){if(Vb(a)!==a)throw Error(p$1(188))}function Yb(a){var o=a.alternate;if(!o){if(o=Vb(a),o===null)throw Error(p$1(188));return o!==a?null:a}for(var _=a,b=o;;){var $=_.return;if($===null)break;var _e=$.alternate;if(_e===null){if(b=$.return,b!==null){_=b;continue}break}if($.child===_e.child){for(_e=$.child;_e;){if(_e===_)return Xb($),a;if(_e===b)return Xb($),o;_e=_e.sibling}throw Error(p$1(188))}if(_.return!==b.return)_=$,b=_e;else{for(var et=!1,tt=$.child;tt;){if(tt===_){et=!0,_=$,b=_e;break}if(tt===b){et=!0,b=$,_=_e;break}tt=tt.sibling}if(!et){for(tt=_e.child;tt;){if(tt===_){et=!0,_=_e,b=$;break}if(tt===b){et=!0,b=_e,_=$;break}tt=tt.sibling}if(!et)throw Error(p$1(189))}}if(_.alternate!==b)throw Error(p$1(190))}if(_.tag!==3)throw Error(p$1(188));return _.stateNode.current===_?a:o}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 o=$b(a);if(o!==null)return o;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,o){var _=a.pendingLanes;if(_===0)return 0;var b=0,$=a.suspendedLanes,_e=a.pingedLanes,et=_&268435455;if(et!==0){var tt=et&~$;tt!==0?b=tc(tt):(_e&=et,_e!==0&&(b=tc(_e)))}else et=_&~$,et!==0?b=tc(et):_e!==0&&(b=tc(_e));if(b===0)return 0;if(o!==0&&o!==b&&!(o&$)&&($=b&-b,_e=o&-o,$>=_e||$===16&&(_e&4194240)!==0))return o;if(b&4&&(b|=_&16),o=a.entangledLanes,o!==0)for(a=a.entanglements,o&=b;0<o;)_=31-oc(o),$=1<<_,b|=a[_],o&=~$;return b}function vc(a,o){switch(a){case 1:case 2:case 4:return o+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 o+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,o){for(var _=a.suspendedLanes,b=a.pingedLanes,$=a.expirationTimes,_e=a.pendingLanes;0<_e;){var et=31-oc(_e),tt=1<<et,rt=$[et];rt===-1?(!(tt&_)||tt&b)&&($[et]=vc(tt,o)):rt<=o&&(a.expiredLanes|=tt),_e&=~tt}}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 o=[],_=0;31>_;_++)o.push(a);return o}function Ac(a,o,_){a.pendingLanes|=o,o!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,o=31-oc(o),a[o]=_}function Bc(a,o){var _=a.pendingLanes&~o;a.pendingLanes=o,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=o,a.mutableReadLanes&=o,a.entangledLanes&=o,o=a.entanglements;var b=a.eventTimes;for(a=a.expirationTimes;0<_;){var $=31-oc(_),_e=1<<$;o[$]=0,b[$]=-1,a[$]=-1,_&=~_e}}function Cc(a,o){var _=a.entangledLanes|=o;for(a=a.entanglements;_;){var b=31-oc(_),$=1<<b;$&o|a[b]&o&&(a[b]|=o),_&=~$}}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,o){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(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pc.delete(o.pointerId)}}function Tc(a,o,_,b,$,_e){return a===null||a.nativeEvent!==_e?(a={blockedOn:o,domEventName:_,eventSystemFlags:b,nativeEvent:_e,targetContainers:[$]},o!==null&&(o=Cb(o),o!==null&&Fc(o)),a):(a.eventSystemFlags|=b,o=a.targetContainers,$!==null&&o.indexOf($)===-1&&o.push($),a)}function Uc(a,o,_,b,$){switch(o){case"focusin":return Lc=Tc(Lc,a,o,_,b,$),!0;case"dragenter":return Mc=Tc(Mc,a,o,_,b,$),!0;case"mouseover":return Nc=Tc(Nc,a,o,_,b,$),!0;case"pointerover":var _e=$.pointerId;return Oc.set(_e,Tc(Oc.get(_e)||null,a,o,_,b,$)),!0;case"gotpointercapture":return _e=$.pointerId,Pc.set(_e,Tc(Pc.get(_e)||null,a,o,_,b,$)),!0}return!1}function Vc(a){var o=Wc(a.target);if(o!==null){var _=Vb(o);if(_!==null){if(o=_.tag,o===13){if(o=Wb(_),o!==null){a.blockedOn=o,Ic(a.priority,function(){Gc(_)});return}}else if(o===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 o=a.targetContainers;0<o.length;){var _=Yc(a.domEventName,a.eventSystemFlags,o[0],a.nativeEvent);if(_===null){_=a.nativeEvent;var b=new _.constructor(_.type,_);wb=b,_.target.dispatchEvent(b),wb=null}else return o=Cb(_),o!==null&&Fc(o),a.blockedOn=_,!1;o.shift()}return!0}function Zc(a,o,_){Xc(a)&&_.delete(o)}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,o){a.blockedOn===o&&(a.blockedOn=null,Jc||(Jc=!0,ca.unstable_scheduleCallback(ca.unstable_NormalPriority,$c)))}function bd(a){function o($){return ad($,a)}if(0<Kc.length){ad(Kc[0],a);for(var _=1;_<Kc.length;_++){var b=Kc[_];b.blockedOn===a&&(b.blockedOn=null)}}for(Lc!==null&&ad(Lc,a),Mc!==null&&ad(Mc,a),Nc!==null&&ad(Nc,a),Oc.forEach(o),Pc.forEach(o),_=0;_<Qc.length;_++)b=Qc[_],b.blockedOn===a&&(b.blockedOn=null);for(;0<Qc.length&&(_=Qc[0],_.blockedOn===null);)Vc(_),_.blockedOn===null&&Qc.shift()}var cd=ua.ReactCurrentBatchConfig,dd=!0;function ed(a,o,_,b){var $=C,_e=cd.transition;cd.transition=null;try{C=1,fd(a,o,_,b)}finally{C=$,cd.transition=_e}}function gd(a,o,_,b){var $=C,_e=cd.transition;cd.transition=null;try{C=4,fd(a,o,_,b)}finally{C=$,cd.transition=_e}}function fd(a,o,_,b){if(dd){var $=Yc(a,o,_,b);if($===null)hd(a,o,b,id,_),Sc(a,b);else if(Uc($,a,o,_,b))b.stopPropagation();else if(Sc(a,b),o&4&&-1<Rc.indexOf(a)){for(;$!==null;){var _e=Cb($);if(_e!==null&&Ec(_e),_e=Yc(a,o,_,b),_e===null&&hd(a,o,b,id,_),_e===$)break;$=_e}$!==null&&b.stopPropagation()}else hd(a,o,b,null,_)}}var id=null;function Yc(a,o,_,b){if(id=null,a=xb(b),a=Wc(a),a!==null)if(o=Vb(a),o===null)a=null;else if(_=o.tag,_===13){if(a=Wb(o),a!==null)return a;a=null}else if(_===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null);return id=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,o=ld,_=o.length,b,$="value"in kd?kd.value:kd.textContent,_e=$.length;for(a=0;a<_&&o[a]===$[a];a++);var et=_-a;for(b=1;b<=et&&o[_-b]===$[_e-b];b++);return md=$.slice(a,1<b?1-b:void 0)}function od(a){var o=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&o===13&&(a=13)):a=o,a===10&&(a=13),32<=a||a===13?a:0}function pd(){return!0}function qd(){return!1}function rd(a){function o(_,b,$,_e,et){this._reactName=_,this._targetInst=$,this.type=b,this.nativeEvent=_e,this.target=et,this.currentTarget=null;for(var tt in a)a.hasOwnProperty(tt)&&(_=a[tt],this[tt]=_?_(_e):_e[tt]);return this.isDefaultPrevented=(_e.defaultPrevented!=null?_e.defaultPrevented:_e.returnValue===!1)?pd:qd,this.isPropagationStopped=qd,this}return A(o.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}),o}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({},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(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({},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(a){return"clipboardData"in a?a.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(a){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(a):(a=Od[a])?!!o[a]:!1}function zd(){return Pd}var Qd=A({},ud,{key:function(a){if(a.key){var o=Md[a.key]||a.key;if(o!=="Unidentified")return o}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({},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(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(a,o){switch(a){case"keyup":return $d.indexOf(o.keyCode)!==-1;case"keydown":return o.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(a,o){switch(a){case"compositionend":return he(o);case"keypress":return o.which!==32?null:(fe=!0,ee);case"textInput":return a=o.data,a===ee&&fe?null:a;default:return null}}function ke(a,o){if(ie)return a==="compositionend"||!ae&&ge(a,o)?(a=nd(),md=ld=kd=null,ie=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return de&&o.locale!=="ko"?null:o.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 o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!le[a.type]:o==="textarea"}function ne(a,o,_,b){Eb(b),o=oe(o,"onChange"),0<o.length&&(_=new td("onChange","change",null,_,b),a.push({event:_,listeners:o}))}var pe=null,qe=null;function re(a){se(a,0)}function te(a){var o=ue(a);if(Wa(o))return a}function ve(a,o){if(a==="change")return o}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(a){if(a.propertyName==="value"&&te(qe)){var o=[];ne(o,qe,a,xb(a)),Jb(re,o)}}function Ce(a,o,_){a==="focusin"?(Ae(),pe=o,qe=_,pe.attachEvent("onpropertychange",Be)):a==="focusout"&&Ae()}function De(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return te(qe)}function Ee(a,o){if(a==="click")return te(o)}function Fe(a,o){if(a==="input"||a==="change")return te(o)}function Ge(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}var He=typeof Object.is=="function"?Object.is:Ge;function Ie(a,o){if(He(a,o))return!0;if(typeof a!="object"||a===null||typeof o!="object"||o===null)return!1;var _=Object.keys(a),b=Object.keys(o);if(_.length!==b.length)return!1;for(b=0;b<_.length;b++){var $=_[b];if(!ja.call(o,$)||!He(a[$],o[$]))return!1}return!0}function Je(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Ke(a,o){var _=Je(a);a=0;for(var b;_;){if(_.nodeType===3){if(b=a+_.textContent.length,a<=o&&b>=o)return{node:_,offset:o-a};a=b}e:{for(;_;){if(_.nextSibling){_=_.nextSibling;break e}_=_.parentNode}_=void 0}_=Je(_)}}function Le(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?Le(a,o.parentNode):"contains"in a?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function Me(){for(var a=window,o=Xa();o instanceof a.HTMLIFrameElement;){try{var _=typeof o.contentWindow.location.href=="string"}catch{_=!1}if(_)a=o.contentWindow;else break;o=Xa(a.document)}return o}function Ne(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o&&(o==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||o==="textarea"||a.contentEditable==="true")}function Oe(a){var o=Me(),_=a.focusedElem,b=a.selectionRange;if(o!==_&&_&&_.ownerDocument&&Le(_.ownerDocument.documentElement,_)){if(b!==null&&Ne(_)){if(o=b.start,a=b.end,a===void 0&&(a=o),"selectionStart"in _)_.selectionStart=o,_.selectionEnd=Math.min(a,_.value.length);else if(a=(o=_.ownerDocument||document)&&o.defaultView||window,a.getSelection){a=a.getSelection();var $=_.textContent.length,_e=Math.min(b.start,$);b=b.end===void 0?_e:Math.min(b.end,$),!a.extend&&_e>b&&($=b,b=_e,_e=$),$=Ke(_,_e);var et=Ke(_,b);$&&et&&(a.rangeCount!==1||a.anchorNode!==$.node||a.anchorOffset!==$.offset||a.focusNode!==et.node||a.focusOffset!==et.offset)&&(o=o.createRange(),o.setStart($.node,$.offset),a.removeAllRanges(),_e>b?(a.addRange(o),a.extend(et.node,et.offset)):(o.setEnd(et.node,et.offset),a.addRange(o)))}}for(o=[],a=_;a=a.parentNode;)a.nodeType===1&&o.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<o.length;_++)a=o[_],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,o,_){var b=_.window===_?_.document:_.nodeType===9?_:_.ownerDocument;Te||Qe==null||Qe!==Xa(b)||(b=Qe,"selectionStart"in b&&Ne(b)?b={start:b.selectionStart,end:b.selectionEnd}:(b=(b.ownerDocument&&b.ownerDocument.defaultView||window).getSelection(),b={anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}),Se&&Ie(Se,b)||(Se=b,b=oe(Re,"onSelect"),0<b.length&&(o=new td("onSelect","select",null,o,_),a.push({event:o,listeners:b}),o.target=Qe)))}function Ve(a,o){var _={};return _[a.toLowerCase()]=o.toLowerCase(),_["Webkit"+a]="webkit"+o,_["Moz"+a]="moz"+o,_}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 o=We[a],_;for(_ in o)if(o.hasOwnProperty(_)&&_ in Ye)return Xe[a]=o[_];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,o){df.set(a,o),fa(o,[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,o,_){var b=a.type||"unknown-event";a.currentTarget=_,Ub(b,o,void 0,a),a.currentTarget=null}function se(a,o){o=(o&4)!==0;for(var _=0;_<a.length;_++){var b=a[_],$=b.event;b=b.listeners;e:{var _e=void 0;if(o)for(var et=b.length-1;0<=et;et--){var tt=b[et],rt=tt.instance,st=tt.currentTarget;if(tt=tt.listener,rt!==_e&&$.isPropagationStopped())break e;nf($,tt,st),_e=rt}else for(et=0;et<b.length;et++){if(tt=b[et],rt=tt.instance,st=tt.currentTarget,tt=tt.listener,rt!==_e&&$.isPropagationStopped())break e;nf($,tt,st),_e=rt}}}if(Qb)throw a=Rb,Qb=!1,Rb=null,a}function D(a,o){var _=o[of];_===void 0&&(_=o[of]=new Set);var b=a+"__bubble";_.has(b)||(pf(o,a,2,!1),_.add(b))}function qf(a,o,_){var b=0;o&&(b|=4),pf(_,a,b,o)}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 o=a.nodeType===9?a:a.ownerDocument;o===null||o[rf]||(o[rf]=!0,qf("selectionchange",!1,o))}}function pf(a,o,_,b){switch(jd(o)){case 1:var $=ed;break;case 4:$=gd;break;default:$=fd}_=$.bind(null,o,_,a),$=void 0,!Lb||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||($=!0),b?$!==void 0?a.addEventListener(o,_,{capture:!0,passive:$}):a.addEventListener(o,_,!0):$!==void 0?a.addEventListener(o,_,{passive:$}):a.addEventListener(o,_,!1)}function hd(a,o,_,b,$){var _e=b;if(!(o&1)&&!(o&2)&&b!==null)e:for(;;){if(b===null)return;var et=b.tag;if(et===3||et===4){var tt=b.stateNode.containerInfo;if(tt===$||tt.nodeType===8&&tt.parentNode===$)break;if(et===4)for(et=b.return;et!==null;){var rt=et.tag;if((rt===3||rt===4)&&(rt=et.stateNode.containerInfo,rt===$||rt.nodeType===8&&rt.parentNode===$))return;et=et.return}for(;tt!==null;){if(et=Wc(tt),et===null)return;if(rt=et.tag,rt===5||rt===6){b=_e=et;continue e}tt=tt.parentNode}}b=b.return}Jb(function(){var st=_e,it=xb(_),lt=[];e:{var at=df.get(a);if(at!==void 0){var ft=td,ht=a;switch(a){case"keypress":if(od(_)===0)break e;case"keydown":case"keyup":ft=Rd;break;case"focusin":ht="focus",ft=Fd;break;case"focusout":ht="blur",ft=Fd;break;case"beforeblur":case"afterblur":ft=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":ft=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ft=Dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ft=Vd;break;case $e:case af:case bf:ft=Hd;break;case cf:ft=Xd;break;case"scroll":ft=vd;break;case"wheel":ft=Zd;break;case"copy":case"cut":case"paste":ft=Jd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ft=Td}var pt=(o&4)!==0,vt=!pt&&a==="scroll",ut=pt?at!==null?at+"Capture":null:at;pt=[];for(var ot=st,nt;ot!==null;){nt=ot;var dt=nt.stateNode;if(nt.tag===5&&dt!==null&&(nt=dt,ut!==null&&(dt=Kb(ot,ut),dt!=null&&pt.push(tf(ot,dt,nt)))),vt)break;ot=ot.return}0<pt.length&&(at=new ft(at,ht,null,_,it),lt.push({event:at,listeners:pt}))}}if(!(o&7)){e:{if(at=a==="mouseover"||a==="pointerover",ft=a==="mouseout"||a==="pointerout",at&&_!==wb&&(ht=_.relatedTarget||_.fromElement)&&(Wc(ht)||ht[uf]))break e;if((ft||at)&&(at=it.window===it?it:(at=it.ownerDocument)?at.defaultView||at.parentWindow:window,ft?(ht=_.relatedTarget||_.toElement,ft=st,ht=ht?Wc(ht):null,ht!==null&&(vt=Vb(ht),ht!==vt||ht.tag!==5&&ht.tag!==6)&&(ht=null)):(ft=null,ht=st),ft!==ht)){if(pt=Bd,dt="onMouseLeave",ut="onMouseEnter",ot="mouse",(a==="pointerout"||a==="pointerover")&&(pt=Td,dt="onPointerLeave",ut="onPointerEnter",ot="pointer"),vt=ft==null?at:ue(ft),nt=ht==null?at:ue(ht),at=new pt(dt,ot+"leave",ft,_,it),at.target=vt,at.relatedTarget=nt,dt=null,Wc(it)===st&&(pt=new pt(ut,ot+"enter",ht,_,it),pt.target=nt,pt.relatedTarget=vt,dt=pt),vt=dt,ft&&ht)t:{for(pt=ft,ut=ht,ot=0,nt=pt;nt;nt=vf(nt))ot++;for(nt=0,dt=ut;dt;dt=vf(dt))nt++;for(;0<ot-nt;)pt=vf(pt),ot--;for(;0<nt-ot;)ut=vf(ut),nt--;for(;ot--;){if(pt===ut||ut!==null&&pt===ut.alternate)break t;pt=vf(pt),ut=vf(ut)}pt=null}else pt=null;ft!==null&&wf(lt,at,ft,pt,!1),ht!==null&&vt!==null&&wf(lt,vt,ht,pt,!0)}}e:{if(at=st?ue(st):window,ft=at.nodeName&&at.nodeName.toLowerCase(),ft==="select"||ft==="input"&&at.type==="file")var yt=ve;else if(me(at))if(we)yt=Fe;else{yt=De;var _t=Ce}else(ft=at.nodeName)&&ft.toLowerCase()==="input"&&(at.type==="checkbox"||at.type==="radio")&&(yt=Ee);if(yt&&(yt=yt(a,st))){ne(lt,yt,_,it);break e}_t&&_t(a,at,st),a==="focusout"&&(_t=at._wrapperState)&&_t.controlled&&at.type==="number"&&cb(at,"number",at.value)}switch(_t=st?ue(st):window,a){case"focusin":(me(_t)||_t.contentEditable==="true")&&(Qe=_t,Re=st,Se=null);break;case"focusout":Se=Re=Qe=null;break;case"mousedown":Te=!0;break;case"contextmenu":case"mouseup":case"dragend":Te=!1,Ue(lt,_,it);break;case"selectionchange":if(Pe)break;case"keydown":case"keyup":Ue(lt,_,it)}var At;if(ae)e:{switch(a){case"compositionstart":var xt="onCompositionStart";break e;case"compositionend":xt="onCompositionEnd";break e;case"compositionupdate":xt="onCompositionUpdate";break e}xt=void 0}else ie?ge(a,_)&&(xt="onCompositionEnd"):a==="keydown"&&_.keyCode===229&&(xt="onCompositionStart");xt&&(de&&_.locale!=="ko"&&(ie||xt!=="onCompositionStart"?xt==="onCompositionEnd"&&ie&&(At=nd()):(kd=it,ld="value"in kd?kd.value:kd.textContent,ie=!0)),_t=oe(st,xt),0<_t.length&&(xt=new Ld(xt,a,null,_,it),lt.push({event:xt,listeners:_t}),At?xt.data=At:(At=he(_),At!==null&&(xt.data=At)))),(At=ce?je(a,_):ke(a,_))&&(st=oe(st,"onBeforeInput"),0<st.length&&(it=new Ld("onBeforeInput","beforeinput",null,_,it),lt.push({event:it,listeners:st}),it.data=At))}se(lt,o)})}function tf(a,o,_){return{instance:a,listener:o,currentTarget:_}}function oe(a,o){for(var _=o+"Capture",b=[];a!==null;){var $=a,_e=$.stateNode;$.tag===5&&_e!==null&&($=_e,_e=Kb(a,_),_e!=null&&b.unshift(tf(a,_e,$)),_e=Kb(a,o),_e!=null&&b.push(tf(a,_e,$))),a=a.return}return b}function vf(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5);return a||null}function wf(a,o,_,b,$){for(var _e=o._reactName,et=[];_!==null&&_!==b;){var tt=_,rt=tt.alternate,st=tt.stateNode;if(rt!==null&&rt===b)break;tt.tag===5&&st!==null&&(tt=st,$?(rt=Kb(_,_e),rt!=null&&et.unshift(tf(_,rt,tt))):$||(rt=Kb(_,_e),rt!=null&&et.push(tf(_,rt,tt)))),_=_.return}et.length!==0&&a.push({event:o,listeners:et})}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,o,_){if(o=zf(o),zf(a)!==o&&_)throw Error(p$1(425))}function Bf(){}var Cf=null,Df=null;function Ef(a,o){return a==="textarea"||a==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.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,o){var _=o,b=0;do{var $=_.nextSibling;if(a.removeChild(_),$&&$.nodeType===8)if(_=$.data,_==="/$"){if(b===0){a.removeChild($),bd(o);return}b--}else _!=="$"&&_!=="$?"&&_!=="$!"||b++;_=$}while(_);bd(o)}function Lf(a){for(;a!=null;a=a.nextSibling){var o=a.nodeType;if(o===1||o===3)break;if(o===8){if(o=a.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return a}function Mf(a){a=a.previousSibling;for(var o=0;a;){if(a.nodeType===8){var _=a.data;if(_==="$"||_==="$!"||_==="$?"){if(o===0)return a;o--}else _==="/$"&&o++}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 o=a[Of];if(o)return o;for(var _=a.parentNode;_;){if(o=_[uf]||_[Of]){if(_=o.alternate,o.child!==null||_!==null&&_.child!==null)for(a=Mf(a);a!==null;){if(_=a[Of])return _;a=Mf(a)}return o}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$1(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,o){Tf++,Sf[Tf]=a.current,a.current=o}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(a,o){var _=a.type.contextTypes;if(!_)return Vf;var b=a.stateNode;if(b&&b.__reactInternalMemoizedUnmaskedChildContext===o)return b.__reactInternalMemoizedMaskedChildContext;var $={},_e;for(_e in _)$[_e]=o[_e];return b&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=o,a.__reactInternalMemoizedMaskedChildContext=$),$}function Zf(a){return a=a.childContextTypes,a!=null}function $f(){E(Wf),E(H)}function ag(a,o,_){if(H.current!==Vf)throw Error(p$1(168));G(H,o),G(Wf,_)}function bg(a,o,_){var b=a.stateNode;if(o=o.childContextTypes,typeof b.getChildContext!="function")return _;b=b.getChildContext();for(var $ in b)if(!($ in o))throw Error(p$1(108,Ra(a)||"Unknown",$));return A({},_,b)}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,o,_){var b=a.stateNode;if(!b)throw Error(p$1(169));_?(a=bg(a,o,Xf),b.__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,o=C;try{var _=eg;for(C=1;a<_.length;a++){var b=_[a];do b=b(!0);while(b!==null)}eg=null,fg=!1}catch($){throw eg!==null&&(eg=eg.slice(a+1)),ac(fc,jg),$}finally{C=o,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(a,o){kg[lg++]=ng,kg[lg++]=mg,mg=a,ng=o}function ug(a,o,_){og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,qg=a;var b=rg;a=sg;var $=32-oc(b)-1;b&=~(1<<$),_+=1;var _e=32-oc(o)+$;if(30<_e){var et=$-$%5;_e=(b&(1<<et)-1).toString(32),b>>=et,$-=et,rg=1<<32-oc(o)+$|_<<$|b,sg=_e+a}else rg=1<<_e|_<<$|b,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,o){var _=Bg(5,null,null,0);_.elementType="DELETED",_.stateNode=o,_.return=a,o=a.deletions,o===null?(a.deletions=[_],a.flags|=16):o.push(_)}function Cg(a,o){switch(a.tag){case 5:var _=a.type;return o=o.nodeType!==1||_.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(a.stateNode=o,xg=a,yg=Lf(o.firstChild),!0):!1;case 6:return o=a.pendingProps===""||o.nodeType!==3?null:o,o!==null?(a.stateNode=o,xg=a,yg=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(_=qg!==null?{id:rg,overflow:sg}:null,a.memoizedState={dehydrated:o,treeContext:_,retryLane:1073741824},_=Bg(18,null,null,0),_.stateNode=o,_.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 o=yg;if(o){var _=o;if(!Cg(a,o)){if(Dg(a))throw Error(p$1(418));o=Lf(_.nextSibling);var b=xg;o&&Cg(a,o)?Ag(b,_):(a.flags=a.flags&-4097|2,I=!1,xg=a)}}else{if(Dg(a))throw Error(p$1(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 o;if((o=a.tag!==3)&&!(o=a.tag!==5)&&(o=a.type,o=o!=="head"&&o!=="body"&&!Ef(a.type,a.memoizedProps)),o&&(o=yg)){if(Dg(a))throw Hg(),Error(p$1(418));for(;o;)Ag(a,o),o=Lf(o.nextSibling)}if(Fg(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(p$1(317));e:{for(a=a.nextSibling,o=0;a;){if(a.nodeType===8){var _=a.data;if(_==="/$"){if(o===0){yg=Lf(a.nextSibling);break e}o--}else _!=="$"&&_!=="$!"&&_!=="$?"||o++}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,o){if(a&&a.defaultProps){o=A({},o),a=a.defaultProps;for(var _ in a)o[_]===void 0&&(o[_]=a[_]);return o}return o}var Mg=Uf(null),Ng=null,Og=null,Pg=null;function Qg(){Pg=Og=Ng=null}function Rg(a){var o=Mg.current;E(Mg),a._currentValue=o}function Sg(a,o,_){for(;a!==null;){var b=a.alternate;if((a.childLanes&o)!==o?(a.childLanes|=o,b!==null&&(b.childLanes|=o)):b!==null&&(b.childLanes&o)!==o&&(b.childLanes|=o),a===_)break;a=a.return}}function Tg(a,o){Ng=a,Pg=Og=null,a=a.dependencies,a!==null&&a.firstContext!==null&&(a.lanes&o&&(Ug=!0),a.firstContext=null)}function Vg(a){var o=a._currentValue;if(Pg!==a)if(a={context:a,memoizedValue:o,next:null},Og===null){if(Ng===null)throw Error(p$1(308));Og=a,Ng.dependencies={lanes:0,firstContext:a}}else Og=Og.next=a;return o}var Wg=null;function Xg(a){Wg===null?Wg=[a]:Wg.push(a)}function Yg(a,o,_,b){var $=o.interleaved;return $===null?(_.next=_,Xg(o)):(_.next=$.next,$.next=_),o.interleaved=_,Zg(a,b)}function Zg(a,o){a.lanes|=o;var _=a.alternate;for(_!==null&&(_.lanes|=o),_=a,a=a.return;a!==null;)a.childLanes|=o,_=a.alternate,_!==null&&(_.childLanes|=o),_=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,o){a=a.updateQueue,o.updateQueue===a&&(o.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function ch(a,o){return{eventTime:a,lane:o,tag:0,payload:null,callback:null,next:null}}function dh(a,o,_){var b=a.updateQueue;if(b===null)return null;if(b=b.shared,K&2){var $=b.pending;return $===null?o.next=o:(o.next=$.next,$.next=o),b.pending=o,Zg(a,_)}return $=b.interleaved,$===null?(o.next=o,Xg(b)):(o.next=$.next,$.next=o),b.interleaved=o,Zg(a,_)}function eh(a,o,_){if(o=o.updateQueue,o!==null&&(o=o.shared,(_&4194240)!==0)){var b=o.lanes;b&=a.pendingLanes,_|=b,o.lanes=_,Cc(a,_)}}function fh(a,o){var _=a.updateQueue,b=a.alternate;if(b!==null&&(b=b.updateQueue,_===b)){var $=null,_e=null;if(_=_.firstBaseUpdate,_!==null){do{var et={eventTime:_.eventTime,lane:_.lane,tag:_.tag,payload:_.payload,callback:_.callback,next:null};_e===null?$=_e=et:_e=_e.next=et,_=_.next}while(_!==null);_e===null?$=_e=o:_e=_e.next=o}else $=_e=o;_={baseState:b.baseState,firstBaseUpdate:$,lastBaseUpdate:_e,shared:b.shared,effects:b.effects},a.updateQueue=_;return}a=_.lastBaseUpdate,a===null?_.firstBaseUpdate=o:a.next=o,_.lastBaseUpdate=o}function gh(a,o,_,b){var $=a.updateQueue;$g=!1;var _e=$.firstBaseUpdate,et=$.lastBaseUpdate,tt=$.shared.pending;if(tt!==null){$.shared.pending=null;var rt=tt,st=rt.next;rt.next=null,et===null?_e=st:et.next=st,et=rt;var it=a.alternate;it!==null&&(it=it.updateQueue,tt=it.lastBaseUpdate,tt!==et&&(tt===null?it.firstBaseUpdate=st:tt.next=st,it.lastBaseUpdate=rt))}if(_e!==null){var lt=$.baseState;et=0,it=st=rt=null,tt=_e;do{var at=tt.lane,ft=tt.eventTime;if((b&at)===at){it!==null&&(it=it.next={eventTime:ft,lane:0,tag:tt.tag,payload:tt.payload,callback:tt.callback,next:null});e:{var ht=a,pt=tt;switch(at=o,ft=_,pt.tag){case 1:if(ht=pt.payload,typeof ht=="function"){lt=ht.call(ft,lt,at);break e}lt=ht;break e;case 3:ht.flags=ht.flags&-65537|128;case 0:if(ht=pt.payload,at=typeof ht=="function"?ht.call(ft,lt,at):ht,at==null)break e;lt=A({},lt,at);break e;case 2:$g=!0}}tt.callback!==null&&tt.lane!==0&&(a.flags|=64,at=$.effects,at===null?$.effects=[tt]:at.push(tt))}else ft={eventTime:ft,lane:at,tag:tt.tag,payload:tt.payload,callback:tt.callback,next:null},it===null?(st=it=ft,rt=lt):it=it.next=ft,et|=at;if(tt=tt.next,tt===null){if(tt=$.shared.pending,tt===null)break;at=tt,tt=at.next,at.next=null,$.lastBaseUpdate=at,$.shared.pending=null}}while(!0);if(it===null&&(rt=lt),$.baseState=rt,$.firstBaseUpdate=st,$.lastBaseUpdate=it,o=$.shared.interleaved,o!==null){$=o;do et|=$.lane,$=$.next;while($!==o)}else _e===null&&($.shared.lanes=0);hh|=et,a.lanes=et,a.memoizedState=lt}}function ih(a,o,_){if(a=o.effects,o.effects=null,a!==null)for(o=0;o<a.length;o++){var b=a[o],$=b.callback;if($!==null){if(b.callback=null,b=_,typeof $!="function")throw Error(p$1(191,$));$.call(b)}}}var jh=new aa.Component().refs;function kh(a,o,_,b){o=a.memoizedState,_=_(b,o),_=_==null?o:A({},o,_),a.memoizedState=_,a.lanes===0&&(a.updateQueue.baseState=_)}var nh={isMounted:function(a){return(a=a._reactInternals)?Vb(a)===a:!1},enqueueSetState:function(a,o,_){a=a._reactInternals;var b=L$1(),$=lh(a),_e=ch(b,$);_e.payload=o,_!=null&&(_e.callback=_),o=dh(a,_e,$),o!==null&&(mh(o,a,$,b),eh(o,a,$))},enqueueReplaceState:function(a,o,_){a=a._reactInternals;var b=L$1(),$=lh(a),_e=ch(b,$);_e.tag=1,_e.payload=o,_!=null&&(_e.callback=_),o=dh(a,_e,$),o!==null&&(mh(o,a,$,b),eh(o,a,$))},enqueueForceUpdate:function(a,o){a=a._reactInternals;var _=L$1(),b=lh(a),$=ch(_,b);$.tag=2,o!=null&&($.callback=o),o=dh(a,$,b),o!==null&&(mh(o,a,b,_),eh(o,a,b))}};function oh(a,o,_,b,$,_e,et){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(b,_e,et):o.prototype&&o.prototype.isPureReactComponent?!Ie(_,b)||!Ie($,_e):!0}function ph(a,o,_){var b=!1,$=Vf,_e=o.contextType;return typeof _e=="object"&&_e!==null?_e=Vg(_e):($=Zf(o)?Xf:H.current,b=o.contextTypes,_e=(b=b!=null)?Yf(a,$):Vf),o=new o(_,_e),a.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=nh,a.stateNode=o,o._reactInternals=a,b&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=$,a.__reactInternalMemoizedMaskedChildContext=_e),o}function qh(a,o,_,b){a=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(_,b),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(_,b),o.state!==a&&nh.enqueueReplaceState(o,o.state,null)}function rh(a,o,_,b){var $=a.stateNode;$.props=_,$.state=a.memoizedState,$.refs=jh,ah(a);var _e=o.contextType;typeof _e=="object"&&_e!==null?$.context=Vg(_e):(_e=Zf(o)?Xf:H.current,$.context=Yf(a,_e)),$.state=a.memoizedState,_e=o.getDerivedStateFromProps,typeof _e=="function"&&(kh(a,o,_e,_),$.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof $.getSnapshotBeforeUpdate=="function"||typeof $.UNSAFE_componentWillMount!="function"&&typeof $.componentWillMount!="function"||(o=$.state,typeof $.componentWillMount=="function"&&$.componentWillMount(),typeof $.UNSAFE_componentWillMount=="function"&&$.UNSAFE_componentWillMount(),o!==$.state&&nh.enqueueReplaceState($,$.state,null),gh(a,_,$,b),$.state=a.memoizedState),typeof $.componentDidMount=="function"&&(a.flags|=4194308)}function sh(a,o,_){if(a=_.ref,a!==null&&typeof a!="function"&&typeof a!="object"){if(_._owner){if(_=_._owner,_){if(_.tag!==1)throw Error(p$1(309));var b=_.stateNode}if(!b)throw Error(p$1(147,a));var $=b,_e=""+a;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===_e?o.ref:(o=function(et){var tt=$.refs;tt===jh&&(tt=$.refs={}),et===null?delete tt[_e]:tt[_e]=et},o._stringRef=_e,o)}if(typeof a!="string")throw Error(p$1(284));if(!_._owner)throw Error(p$1(290,a))}return a}function th(a,o){throw a=Object.prototype.toString.call(o),Error(p$1(31,a==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":a))}function uh(a){var o=a._init;return o(a._payload)}function vh(a){function o(ut,ot){if(a){var nt=ut.deletions;nt===null?(ut.deletions=[ot],ut.flags|=16):nt.push(ot)}}function _(ut,ot){if(!a)return null;for(;ot!==null;)o(ut,ot),ot=ot.sibling;return null}function b(ut,ot){for(ut=new Map;ot!==null;)ot.key!==null?ut.set(ot.key,ot):ut.set(ot.index,ot),ot=ot.sibling;return ut}function $(ut,ot){return ut=wh(ut,ot),ut.index=0,ut.sibling=null,ut}function _e(ut,ot,nt){return ut.index=nt,a?(nt=ut.alternate,nt!==null?(nt=nt.index,nt<ot?(ut.flags|=2,ot):nt):(ut.flags|=2,ot)):(ut.flags|=1048576,ot)}function et(ut){return a&&ut.alternate===null&&(ut.flags|=2),ut}function tt(ut,ot,nt,dt){return ot===null||ot.tag!==6?(ot=xh(nt,ut.mode,dt),ot.return=ut,ot):(ot=$(ot,nt),ot.return=ut,ot)}function rt(ut,ot,nt,dt){var yt=nt.type;return yt===ya?it(ut,ot,nt.props.children,dt,nt.key):ot!==null&&(ot.elementType===yt||typeof yt=="object"&&yt!==null&&yt.$$typeof===Ha&&uh(yt)===ot.type)?(dt=$(ot,nt.props),dt.ref=sh(ut,ot,nt),dt.return=ut,dt):(dt=yh(nt.type,nt.key,nt.props,null,ut.mode,dt),dt.ref=sh(ut,ot,nt),dt.return=ut,dt)}function st(ut,ot,nt,dt){return ot===null||ot.tag!==4||ot.stateNode.containerInfo!==nt.containerInfo||ot.stateNode.implementation!==nt.implementation?(ot=zh(nt,ut.mode,dt),ot.return=ut,ot):(ot=$(ot,nt.children||[]),ot.return=ut,ot)}function it(ut,ot,nt,dt,yt){return ot===null||ot.tag!==7?(ot=Ah(nt,ut.mode,dt,yt),ot.return=ut,ot):(ot=$(ot,nt),ot.return=ut,ot)}function lt(ut,ot,nt){if(typeof ot=="string"&&ot!==""||typeof ot=="number")return ot=xh(""+ot,ut.mode,nt),ot.return=ut,ot;if(typeof ot=="object"&&ot!==null){switch(ot.$$typeof){case va:return nt=yh(ot.type,ot.key,ot.props,null,ut.mode,nt),nt.ref=sh(ut,null,ot),nt.return=ut,nt;case wa:return ot=zh(ot,ut.mode,nt),ot.return=ut,ot;case Ha:var dt=ot._init;return lt(ut,dt(ot._payload),nt)}if(eb(ot)||Ka(ot))return ot=Ah(ot,ut.mode,nt,null),ot.return=ut,ot;th(ut,ot)}return null}function at(ut,ot,nt,dt){var yt=ot!==null?ot.key:null;if(typeof nt=="string"&&nt!==""||typeof nt=="number")return yt!==null?null:tt(ut,ot,""+nt,dt);if(typeof nt=="object"&&nt!==null){switch(nt.$$typeof){case va:return nt.key===yt?rt(ut,ot,nt,dt):null;case wa:return nt.key===yt?st(ut,ot,nt,dt):null;case Ha:return yt=nt._init,at(ut,ot,yt(nt._payload),dt)}if(eb(nt)||Ka(nt))return yt!==null?null:it(ut,ot,nt,dt,null);th(ut,nt)}return null}function ft(ut,ot,nt,dt,yt){if(typeof dt=="string"&&dt!==""||typeof dt=="number")return ut=ut.get(nt)||null,tt(ot,ut,""+dt,yt);if(typeof dt=="object"&&dt!==null){switch(dt.$$typeof){case va:return ut=ut.get(dt.key===null?nt:dt.key)||null,rt(ot,ut,dt,yt);case wa:return ut=ut.get(dt.key===null?nt:dt.key)||null,st(ot,ut,dt,yt);case Ha:var _t=dt._init;return ft(ut,ot,nt,_t(dt._payload),yt)}if(eb(dt)||Ka(dt))return ut=ut.get(nt)||null,it(ot,ut,dt,yt,null);th(ot,dt)}return null}function ht(ut,ot,nt,dt){for(var yt=null,_t=null,At=ot,xt=ot=0,wt=null;At!==null&&xt<nt.length;xt++){At.index>xt?(wt=At,At=null):wt=At.sibling;var bt=at(ut,At,nt[xt],dt);if(bt===null){At===null&&(At=wt);break}a&&At&&bt.alternate===null&&o(ut,At),ot=_e(bt,ot,xt),_t===null?yt=bt:_t.sibling=bt,_t=bt,At=wt}if(xt===nt.length)return _(ut,At),I&&tg(ut,xt),yt;if(At===null){for(;xt<nt.length;xt++)At=lt(ut,nt[xt],dt),At!==null&&(ot=_e(At,ot,xt),_t===null?yt=At:_t.sibling=At,_t=At);return I&&tg(ut,xt),yt}for(At=b(ut,At);xt<nt.length;xt++)wt=ft(At,ut,xt,nt[xt],dt),wt!==null&&(a&&wt.alternate!==null&&At.delete(wt.key===null?xt:wt.key),ot=_e(wt,ot,xt),_t===null?yt=wt:_t.sibling=wt,_t=wt);return a&&At.forEach(function(It){return o(ut,It)}),I&&tg(ut,xt),yt}function pt(ut,ot,nt,dt){var yt=Ka(nt);if(typeof yt!="function")throw Error(p$1(150));if(nt=yt.call(nt),nt==null)throw Error(p$1(151));for(var _t=yt=null,At=ot,xt=ot=0,wt=null,bt=nt.next();At!==null&&!bt.done;xt++,bt=nt.next()){At.index>xt?(wt=At,At=null):wt=At.sibling;var It=at(ut,At,bt.value,dt);if(It===null){At===null&&(At=wt);break}a&&At&&It.alternate===null&&o(ut,At),ot=_e(It,ot,xt),_t===null?yt=It:_t.sibling=It,_t=It,At=wt}if(bt.done)return _(ut,At),I&&tg(ut,xt),yt;if(At===null){for(;!bt.done;xt++,bt=nt.next())bt=lt(ut,bt.value,dt),bt!==null&&(ot=_e(bt,ot,xt),_t===null?yt=bt:_t.sibling=bt,_t=bt);return I&&tg(ut,xt),yt}for(At=b(ut,At);!bt.done;xt++,bt=nt.next())bt=ft(At,ut,xt,bt.value,dt),bt!==null&&(a&&bt.alternate!==null&&At.delete(bt.key===null?xt:bt.key),ot=_e(bt,ot,xt),_t===null?yt=bt:_t.sibling=bt,_t=bt);return a&&At.forEach(function(Nt){return o(ut,Nt)}),I&&tg(ut,xt),yt}function vt(ut,ot,nt,dt){if(typeof nt=="object"&&nt!==null&&nt.type===ya&&nt.key===null&&(nt=nt.props.children),typeof nt=="object"&&nt!==null){switch(nt.$$typeof){case va:e:{for(var yt=nt.key,_t=ot;_t!==null;){if(_t.key===yt){if(yt=nt.type,yt===ya){if(_t.tag===7){_(ut,_t.sibling),ot=$(_t,nt.props.children),ot.return=ut,ut=ot;break e}}else if(_t.elementType===yt||typeof yt=="object"&&yt!==null&&yt.$$typeof===Ha&&uh(yt)===_t.type){_(ut,_t.sibling),ot=$(_t,nt.props),ot.ref=sh(ut,_t,nt),ot.return=ut,ut=ot;break e}_(ut,_t);break}else o(ut,_t);_t=_t.sibling}nt.type===ya?(ot=Ah(nt.props.children,ut.mode,dt,nt.key),ot.return=ut,ut=ot):(dt=yh(nt.type,nt.key,nt.props,null,ut.mode,dt),dt.ref=sh(ut,ot,nt),dt.return=ut,ut=dt)}return et(ut);case wa:e:{for(_t=nt.key;ot!==null;){if(ot.key===_t)if(ot.tag===4&&ot.stateNode.containerInfo===nt.containerInfo&&ot.stateNode.implementation===nt.implementation){_(ut,ot.sibling),ot=$(ot,nt.children||[]),ot.return=ut,ut=ot;break e}else{_(ut,ot);break}else o(ut,ot);ot=ot.sibling}ot=zh(nt,ut.mode,dt),ot.return=ut,ut=ot}return et(ut);case Ha:return _t=nt._init,vt(ut,ot,_t(nt._payload),dt)}if(eb(nt))return ht(ut,ot,nt,dt);if(Ka(nt))return pt(ut,ot,nt,dt);th(ut,nt)}return typeof nt=="string"&&nt!==""||typeof nt=="number"?(nt=""+nt,ot!==null&&ot.tag===6?(_(ut,ot.sibling),ot=$(ot,nt),ot.return=ut,ut=ot):(_(ut,ot),ot=xh(nt,ut.mode,dt),ot.return=ut,ut=ot),et(ut)):_(ut,ot)}return vt}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(a){if(a===Dh)throw Error(p$1(174));return a}function Ih(a,o){switch(G(Gh,o),G(Fh,a),G(Eh,Dh),a=o.nodeType,a){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:lb(null,"");break;default:a=a===8?o.parentNode:o,o=a.namespaceURI||null,a=a.tagName,o=lb(o,a)}E(Eh),G(Eh,o)}function Jh(){E(Eh),E(Fh),E(Gh)}function Kh(a){Hh(Gh.current);var o=Hh(Eh.current),_=lb(o,a.type);o!==_&&(G(Fh,a),G(Eh,_))}function Lh(a){Fh.current===a&&(E(Eh),E(Fh))}var M=Uf(0);function Mh(a){for(var o=a;o!==null;){if(o.tag===13){var _=o.memoizedState;if(_!==null&&(_=_.dehydrated,_===null||_.data==="$?"||_.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if(o.flags&128)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Nh=[];function Oh(){for(var a=0;a<Nh.length;a++)Nh[a]._workInProgressVersionPrimary=null;Nh.length=0}var Ph=ua.ReactCurrentDispatcher,Qh=ua.ReactCurrentBatchConfig,Rh=0,N=null,O=null,P=null,Sh=!1,Th=!1,Uh=0,Vh=0;function Q(){throw Error(p$1(321))}function Wh(a,o){if(o===null)return!1;for(var _=0;_<o.length&&_<a.length;_++)if(!He(a[_],o[_]))return!1;return!0}function Xh(a,o,_,b,$,_e){if(Rh=_e,N=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,Ph.current=a===null||a.memoizedState===null?Yh:Zh,a=_(b,$),Th){_e=0;do{if(Th=!1,Uh=0,25<=_e)throw Error(p$1(301));_e+=1,P=O=null,o.updateQueue=null,Ph.current=$h,a=_(b,$)}while(Th)}if(Ph.current=ai,o=O!==null&&O.next!==null,Rh=0,P=O=N=null,Sh=!1,o)throw Error(p$1(300));return a}function bi(){var a=Uh!==0;return Uh=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 o=P===null?N.memoizedState:P.next;if(o!==null)P=o,O=a;else{if(a===null)throw Error(p$1(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,o){return typeof o=="function"?o(a):o}function fi(a){var o=di(),_=o.queue;if(_===null)throw Error(p$1(311));_.lastRenderedReducer=a;var b=O,$=b.baseQueue,_e=_.pending;if(_e!==null){if($!==null){var et=$.next;$.next=_e.next,_e.next=et}b.baseQueue=$=_e,_.pending=null}if($!==null){_e=$.next,b=b.baseState;var tt=et=null,rt=null,st=_e;do{var it=st.lane;if((Rh&it)===it)rt!==null&&(rt=rt.next={lane:0,action:st.action,hasEagerState:st.hasEagerState,eagerState:st.eagerState,next:null}),b=st.hasEagerState?st.eagerState:a(b,st.action);else{var lt={lane:it,action:st.action,hasEagerState:st.hasEagerState,eagerState:st.eagerState,next:null};rt===null?(tt=rt=lt,et=b):rt=rt.next=lt,N.lanes|=it,hh|=it}st=st.next}while(st!==null&&st!==_e);rt===null?et=b:rt.next=tt,He(b,o.memoizedState)||(Ug=!0),o.memoizedState=b,o.baseState=et,o.baseQueue=rt,_.lastRenderedState=b}if(a=_.interleaved,a!==null){$=a;do _e=$.lane,N.lanes|=_e,hh|=_e,$=$.next;while($!==a)}else $===null&&(_.lanes=0);return[o.memoizedState,_.dispatch]}function gi(a){var o=di(),_=o.queue;if(_===null)throw Error(p$1(311));_.lastRenderedReducer=a;var b=_.dispatch,$=_.pending,_e=o.memoizedState;if($!==null){_.pending=null;var et=$=$.next;do _e=a(_e,et.action),et=et.next;while(et!==$);He(_e,o.memoizedState)||(Ug=!0),o.memoizedState=_e,o.baseQueue===null&&(o.baseState=_e),_.lastRenderedState=_e}return[_e,b]}function hi(){}function ii(a,o){var _=N,b=di(),$=o(),_e=!He(b.memoizedState,$);if(_e&&(b.memoizedState=$,Ug=!0),b=b.queue,ji(ki.bind(null,_,b,a),[a]),b.getSnapshot!==o||_e||P!==null&&P.memoizedState.tag&1){if(_.flags|=2048,li(9,mi.bind(null,_,b,$,o),void 0,null),R===null)throw Error(p$1(349));Rh&30||ni(_,o,$)}return $}function ni(a,o,_){a.flags|=16384,a={getSnapshot:o,value:_},o=N.updateQueue,o===null?(o={lastEffect:null,stores:null},N.updateQueue=o,o.stores=[a]):(_=o.stores,_===null?o.stores=[a]:_.push(a))}function mi(a,o,_,b){o.value=_,o.getSnapshot=b,oi(o)&&pi(a)}function ki(a,o,_){return _(function(){oi(o)&&pi(a)})}function oi(a){var o=a.getSnapshot;a=a.value;try{var _=o();return!He(a,_)}catch{return!0}}function pi(a){var o=Zg(a,1);o!==null&&mh(o,a,1,-1)}function qi(a){var o=ci();return typeof a=="function"&&(a=a()),o.memoizedState=o.baseState=a,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ei,lastRenderedState:a},o.queue=a,a=a.dispatch=ri.bind(null,N,a),[o.memoizedState,a]}function li(a,o,_,b){return a={tag:a,create:o,destroy:_,deps:b,next:null},o=N.updateQueue,o===null?(o={lastEffect:null,stores:null},N.updateQueue=o,o.lastEffect=a.next=a):(_=o.lastEffect,_===null?o.lastEffect=a.next=a:(b=_.next,_.next=a,a.next=b,o.lastEffect=a)),a}function si(){return di().memoizedState}function ti(a,o,_,b){var $=ci();N.flags|=a,$.memoizedState=li(1|o,_,void 0,b===void 0?null:b)}function ui(a,o,_,b){var $=di();b=b===void 0?null:b;var _e=void 0;if(O!==null){var et=O.memoizedState;if(_e=et.destroy,b!==null&&Wh(b,et.deps)){$.memoizedState=li(o,_,_e,b);return}}N.flags|=a,$.memoizedState=li(1|o,_,_e,b)}function vi(a,o){return ti(8390656,8,a,o)}function ji(a,o){return ui(2048,8,a,o)}function wi(a,o){return ui(4,2,a,o)}function xi(a,o){return ui(4,4,a,o)}function yi(a,o){if(typeof o=="function")return a=a(),o(a),function(){o(null)};if(o!=null)return a=a(),o.current=a,function(){o.current=null}}function zi(a,o,_){return _=_!=null?_.concat([a]):null,ui(4,4,yi.bind(null,o,a),_)}function Ai(){}function Bi(a,o){var _=di();o=o===void 0?null:o;var b=_.memoizedState;return b!==null&&o!==null&&Wh(o,b[1])?b[0]:(_.memoizedState=[a,o],a)}function Ci(a,o){var _=di();o=o===void 0?null:o;var b=_.memoizedState;return b!==null&&o!==null&&Wh(o,b[1])?b[0]:(a=a(),_.memoizedState=[a,o],a)}function Di(a,o,_){return Rh&21?(He(_,o)||(_=yc(),N.lanes|=_,hh|=_,a.baseState=!0),o):(a.baseState&&(a.baseState=!1,Ug=!0),a.memoizedState=_)}function Ei(a,o){var _=C;C=_!==0&&4>_?_:4,a(!0);var b=Qh.transition;Qh.transition={};try{a(!1),o()}finally{C=_,Qh.transition=b}}function Fi(){return di().memoizedState}function Gi(a,o,_){var b=lh(a);if(_={lane:b,action:_,hasEagerState:!1,eagerState:null,next:null},Hi(a))Ii(o,_);else if(_=Yg(a,o,_,b),_!==null){var $=L$1();mh(_,a,b,$),Ji(_,o,b)}}function ri(a,o,_){var b=lh(a),$={lane:b,action:_,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(o,$);else{var _e=a.alternate;if(a.lanes===0&&(_e===null||_e.lanes===0)&&(_e=o.lastRenderedReducer,_e!==null))try{var et=o.lastRenderedState,tt=_e(et,_);if($.hasEagerState=!0,$.eagerState=tt,He(tt,et)){var rt=o.interleaved;rt===null?($.next=$,Xg(o)):($.next=rt.next,rt.next=$),o.interleaved=$;return}}catch{}finally{}_=Yg(a,o,$,b),_!==null&&($=L$1(),mh(_,a,b,$),Ji(_,o,b))}}function Hi(a){var o=a.alternate;return a===N||o!==null&&o===N}function Ii(a,o){Th=Sh=!0;var _=a.pending;_===null?o.next=o:(o.next=_.next,_.next=o),a.pending=o}function Ji(a,o,_){if(_&4194240){var b=o.lanes;b&=a.pendingLanes,_|=b,o.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={readContext:Vg,useCallback:function(a,o){return ci().memoizedState=[a,o===void 0?null:o],a},useContext:Vg,useEffect:vi,useImperativeHandle:function(a,o,_){return _=_!=null?_.concat([a]):null,ti(4194308,4,yi.bind(null,o,a),_)},useLayoutEffect:function(a,o){return ti(4194308,4,a,o)},useInsertionEffect:function(a,o){return ti(4,2,a,o)},useMemo:function(a,o){var _=ci();return o=o===void 0?null:o,a=a(),_.memoizedState=[a,o],a},useReducer:function(a,o,_){var b=ci();return o=_!==void 0?_(o):o,b.memoizedState=b.baseState=o,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:o},b.queue=a,a=a.dispatch=Gi.bind(null,N,a),[b.memoizedState,a]},useRef:function(a){var o=ci();return a={current:a},o.memoizedState=a},useState:qi,useDebugValue:Ai,useDeferredValue:function(a){return ci().memoizedState=a},useTransition:function(){var a=qi(!1),o=a[0];return a=Ei.bind(null,a[1]),ci().memoizedState=a,[o,a]},useMutableSource:function(){},useSyncExternalStore:function(a,o,_){var b=N,$=ci();if(I){if(_===void 0)throw Error(p$1(407));_=_()}else{if(_=o(),R===null)throw Error(p$1(349));Rh&30||ni(b,o,_)}$.memoizedState=_;var _e={value:_,getSnapshot:o};return $.queue=_e,vi(ki.bind(null,b,_e,a),[a]),b.flags|=2048,li(9,mi.bind(null,b,_e,_,o),void 0,null),_},useId:function(){var a=ci(),o=R.identifierPrefix;if(I){var _=sg,b=rg;_=(b&~(1<<32-oc(b)-1)).toString(32)+_,o=":"+o+"R"+_,_=Uh++,0<_&&(o+="H"+_.toString(32)),o+=":"}else _=Vh++,o=":"+o+"r"+_.toString(32)+":";return a.memoizedState=o},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 o=di();return Di(o,O.memoizedState,a)},useTransition:function(){var a=fi(ei)[0],o=di().memoizedState;return[a,o]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1},$h={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 o=di();return O===null?o.memoizedState=a:Di(o,O.memoizedState,a)},useTransition:function(){var a=gi(ei)[0],o=di().memoizedState;return[a,o]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1};function Ki(a,o){try{var _="",b=o;do _+=Pa(b),b=b.return;while(b);var $=_}catch(_e){$=`
38
+ `).replace(yf,"")}function Af(a,o,_){if(o=zf(o),zf(a)!==o&&_)throw Error(p$1(425))}function Bf(){}var Cf=null,Df=null;function Ef(a,o){return a==="textarea"||a==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.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,o){var _=o,b=0;do{var $=_.nextSibling;if(a.removeChild(_),$&&$.nodeType===8)if(_=$.data,_==="/$"){if(b===0){a.removeChild($),bd(o);return}b--}else _!=="$"&&_!=="$?"&&_!=="$!"||b++;_=$}while(_);bd(o)}function Lf(a){for(;a!=null;a=a.nextSibling){var o=a.nodeType;if(o===1||o===3)break;if(o===8){if(o=a.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return a}function Mf(a){a=a.previousSibling;for(var o=0;a;){if(a.nodeType===8){var _=a.data;if(_==="$"||_==="$!"||_==="$?"){if(o===0)return a;o--}else _==="/$"&&o++}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 o=a[Of];if(o)return o;for(var _=a.parentNode;_;){if(o=_[uf]||_[Of]){if(_=o.alternate,o.child!==null||_!==null&&_.child!==null)for(a=Mf(a);a!==null;){if(_=a[Of])return _;a=Mf(a)}return o}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$1(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,o){Tf++,Sf[Tf]=a.current,a.current=o}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(a,o){var _=a.type.contextTypes;if(!_)return Vf;var b=a.stateNode;if(b&&b.__reactInternalMemoizedUnmaskedChildContext===o)return b.__reactInternalMemoizedMaskedChildContext;var $={},_e;for(_e in _)$[_e]=o[_e];return b&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=o,a.__reactInternalMemoizedMaskedChildContext=$),$}function Zf(a){return a=a.childContextTypes,a!=null}function $f(){E(Wf),E(H)}function ag(a,o,_){if(H.current!==Vf)throw Error(p$1(168));G(H,o),G(Wf,_)}function bg(a,o,_){var b=a.stateNode;if(o=o.childContextTypes,typeof b.getChildContext!="function")return _;b=b.getChildContext();for(var $ in b)if(!($ in o))throw Error(p$1(108,Ra(a)||"Unknown",$));return A({},_,b)}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,o,_){var b=a.stateNode;if(!b)throw Error(p$1(169));_?(a=bg(a,o,Xf),b.__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,o=C;try{var _=eg;for(C=1;a<_.length;a++){var b=_[a];do b=b(!0);while(b!==null)}eg=null,fg=!1}catch($){throw eg!==null&&(eg=eg.slice(a+1)),ac(fc,jg),$}finally{C=o,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(a,o){kg[lg++]=ng,kg[lg++]=mg,mg=a,ng=o}function ug(a,o,_){og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,qg=a;var b=rg;a=sg;var $=32-oc(b)-1;b&=~(1<<$),_+=1;var _e=32-oc(o)+$;if(30<_e){var et=$-$%5;_e=(b&(1<<et)-1).toString(32),b>>=et,$-=et,rg=1<<32-oc(o)+$|_<<$|b,sg=_e+a}else rg=1<<_e|_<<$|b,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,o){var _=Bg(5,null,null,0);_.elementType="DELETED",_.stateNode=o,_.return=a,o=a.deletions,o===null?(a.deletions=[_],a.flags|=16):o.push(_)}function Cg(a,o){switch(a.tag){case 5:var _=a.type;return o=o.nodeType!==1||_.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(a.stateNode=o,xg=a,yg=Lf(o.firstChild),!0):!1;case 6:return o=a.pendingProps===""||o.nodeType!==3?null:o,o!==null?(a.stateNode=o,xg=a,yg=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(_=qg!==null?{id:rg,overflow:sg}:null,a.memoizedState={dehydrated:o,treeContext:_,retryLane:1073741824},_=Bg(18,null,null,0),_.stateNode=o,_.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 o=yg;if(o){var _=o;if(!Cg(a,o)){if(Dg(a))throw Error(p$1(418));o=Lf(_.nextSibling);var b=xg;o&&Cg(a,o)?Ag(b,_):(a.flags=a.flags&-4097|2,I=!1,xg=a)}}else{if(Dg(a))throw Error(p$1(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 o;if((o=a.tag!==3)&&!(o=a.tag!==5)&&(o=a.type,o=o!=="head"&&o!=="body"&&!Ef(a.type,a.memoizedProps)),o&&(o=yg)){if(Dg(a))throw Hg(),Error(p$1(418));for(;o;)Ag(a,o),o=Lf(o.nextSibling)}if(Fg(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(p$1(317));e:{for(a=a.nextSibling,o=0;a;){if(a.nodeType===8){var _=a.data;if(_==="/$"){if(o===0){yg=Lf(a.nextSibling);break e}o--}else _!=="$"&&_!=="$!"&&_!=="$?"||o++}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,o){if(a&&a.defaultProps){o=A({},o),a=a.defaultProps;for(var _ in a)o[_]===void 0&&(o[_]=a[_]);return o}return o}var Mg=Uf(null),Ng=null,Og=null,Pg=null;function Qg(){Pg=Og=Ng=null}function Rg(a){var o=Mg.current;E(Mg),a._currentValue=o}function Sg(a,o,_){for(;a!==null;){var b=a.alternate;if((a.childLanes&o)!==o?(a.childLanes|=o,b!==null&&(b.childLanes|=o)):b!==null&&(b.childLanes&o)!==o&&(b.childLanes|=o),a===_)break;a=a.return}}function Tg(a,o){Ng=a,Pg=Og=null,a=a.dependencies,a!==null&&a.firstContext!==null&&(a.lanes&o&&(Ug=!0),a.firstContext=null)}function Vg(a){var o=a._currentValue;if(Pg!==a)if(a={context:a,memoizedValue:o,next:null},Og===null){if(Ng===null)throw Error(p$1(308));Og=a,Ng.dependencies={lanes:0,firstContext:a}}else Og=Og.next=a;return o}var Wg=null;function Xg(a){Wg===null?Wg=[a]:Wg.push(a)}function Yg(a,o,_,b){var $=o.interleaved;return $===null?(_.next=_,Xg(o)):(_.next=$.next,$.next=_),o.interleaved=_,Zg(a,b)}function Zg(a,o){a.lanes|=o;var _=a.alternate;for(_!==null&&(_.lanes|=o),_=a,a=a.return;a!==null;)a.childLanes|=o,_=a.alternate,_!==null&&(_.childLanes|=o),_=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,o){a=a.updateQueue,o.updateQueue===a&&(o.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function ch(a,o){return{eventTime:a,lane:o,tag:0,payload:null,callback:null,next:null}}function dh(a,o,_){var b=a.updateQueue;if(b===null)return null;if(b=b.shared,K&2){var $=b.pending;return $===null?o.next=o:(o.next=$.next,$.next=o),b.pending=o,Zg(a,_)}return $=b.interleaved,$===null?(o.next=o,Xg(b)):(o.next=$.next,$.next=o),b.interleaved=o,Zg(a,_)}function eh(a,o,_){if(o=o.updateQueue,o!==null&&(o=o.shared,(_&4194240)!==0)){var b=o.lanes;b&=a.pendingLanes,_|=b,o.lanes=_,Cc(a,_)}}function fh(a,o){var _=a.updateQueue,b=a.alternate;if(b!==null&&(b=b.updateQueue,_===b)){var $=null,_e=null;if(_=_.firstBaseUpdate,_!==null){do{var et={eventTime:_.eventTime,lane:_.lane,tag:_.tag,payload:_.payload,callback:_.callback,next:null};_e===null?$=_e=et:_e=_e.next=et,_=_.next}while(_!==null);_e===null?$=_e=o:_e=_e.next=o}else $=_e=o;_={baseState:b.baseState,firstBaseUpdate:$,lastBaseUpdate:_e,shared:b.shared,effects:b.effects},a.updateQueue=_;return}a=_.lastBaseUpdate,a===null?_.firstBaseUpdate=o:a.next=o,_.lastBaseUpdate=o}function gh(a,o,_,b){var $=a.updateQueue;$g=!1;var _e=$.firstBaseUpdate,et=$.lastBaseUpdate,tt=$.shared.pending;if(tt!==null){$.shared.pending=null;var rt=tt,st=rt.next;rt.next=null,et===null?_e=st:et.next=st,et=rt;var it=a.alternate;it!==null&&(it=it.updateQueue,tt=it.lastBaseUpdate,tt!==et&&(tt===null?it.firstBaseUpdate=st:tt.next=st,it.lastBaseUpdate=rt))}if(_e!==null){var lt=$.baseState;et=0,it=st=rt=null,tt=_e;do{var at=tt.lane,ft=tt.eventTime;if((b&at)===at){it!==null&&(it=it.next={eventTime:ft,lane:0,tag:tt.tag,payload:tt.payload,callback:tt.callback,next:null});e:{var ht=a,pt=tt;switch(at=o,ft=_,pt.tag){case 1:if(ht=pt.payload,typeof ht=="function"){lt=ht.call(ft,lt,at);break e}lt=ht;break e;case 3:ht.flags=ht.flags&-65537|128;case 0:if(ht=pt.payload,at=typeof ht=="function"?ht.call(ft,lt,at):ht,at==null)break e;lt=A({},lt,at);break e;case 2:$g=!0}}tt.callback!==null&&tt.lane!==0&&(a.flags|=64,at=$.effects,at===null?$.effects=[tt]:at.push(tt))}else ft={eventTime:ft,lane:at,tag:tt.tag,payload:tt.payload,callback:tt.callback,next:null},it===null?(st=it=ft,rt=lt):it=it.next=ft,et|=at;if(tt=tt.next,tt===null){if(tt=$.shared.pending,tt===null)break;at=tt,tt=at.next,at.next=null,$.lastBaseUpdate=at,$.shared.pending=null}}while(!0);if(it===null&&(rt=lt),$.baseState=rt,$.firstBaseUpdate=st,$.lastBaseUpdate=it,o=$.shared.interleaved,o!==null){$=o;do et|=$.lane,$=$.next;while($!==o)}else _e===null&&($.shared.lanes=0);hh|=et,a.lanes=et,a.memoizedState=lt}}function ih(a,o,_){if(a=o.effects,o.effects=null,a!==null)for(o=0;o<a.length;o++){var b=a[o],$=b.callback;if($!==null){if(b.callback=null,b=_,typeof $!="function")throw Error(p$1(191,$));$.call(b)}}}var jh=new aa.Component().refs;function kh(a,o,_,b){o=a.memoizedState,_=_(b,o),_=_==null?o:A({},o,_),a.memoizedState=_,a.lanes===0&&(a.updateQueue.baseState=_)}var nh={isMounted:function(a){return(a=a._reactInternals)?Vb(a)===a:!1},enqueueSetState:function(a,o,_){a=a._reactInternals;var b=L$1(),$=lh(a),_e=ch(b,$);_e.payload=o,_!=null&&(_e.callback=_),o=dh(a,_e,$),o!==null&&(mh(o,a,$,b),eh(o,a,$))},enqueueReplaceState:function(a,o,_){a=a._reactInternals;var b=L$1(),$=lh(a),_e=ch(b,$);_e.tag=1,_e.payload=o,_!=null&&(_e.callback=_),o=dh(a,_e,$),o!==null&&(mh(o,a,$,b),eh(o,a,$))},enqueueForceUpdate:function(a,o){a=a._reactInternals;var _=L$1(),b=lh(a),$=ch(_,b);$.tag=2,o!=null&&($.callback=o),o=dh(a,$,b),o!==null&&(mh(o,a,b,_),eh(o,a,b))}};function oh(a,o,_,b,$,_e,et){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(b,_e,et):o.prototype&&o.prototype.isPureReactComponent?!Ie(_,b)||!Ie($,_e):!0}function ph(a,o,_){var b=!1,$=Vf,_e=o.contextType;return typeof _e=="object"&&_e!==null?_e=Vg(_e):($=Zf(o)?Xf:H.current,b=o.contextTypes,_e=(b=b!=null)?Yf(a,$):Vf),o=new o(_,_e),a.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=nh,a.stateNode=o,o._reactInternals=a,b&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=$,a.__reactInternalMemoizedMaskedChildContext=_e),o}function qh(a,o,_,b){a=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(_,b),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(_,b),o.state!==a&&nh.enqueueReplaceState(o,o.state,null)}function rh(a,o,_,b){var $=a.stateNode;$.props=_,$.state=a.memoizedState,$.refs=jh,ah(a);var _e=o.contextType;typeof _e=="object"&&_e!==null?$.context=Vg(_e):(_e=Zf(o)?Xf:H.current,$.context=Yf(a,_e)),$.state=a.memoizedState,_e=o.getDerivedStateFromProps,typeof _e=="function"&&(kh(a,o,_e,_),$.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof $.getSnapshotBeforeUpdate=="function"||typeof $.UNSAFE_componentWillMount!="function"&&typeof $.componentWillMount!="function"||(o=$.state,typeof $.componentWillMount=="function"&&$.componentWillMount(),typeof $.UNSAFE_componentWillMount=="function"&&$.UNSAFE_componentWillMount(),o!==$.state&&nh.enqueueReplaceState($,$.state,null),gh(a,_,$,b),$.state=a.memoizedState),typeof $.componentDidMount=="function"&&(a.flags|=4194308)}function sh(a,o,_){if(a=_.ref,a!==null&&typeof a!="function"&&typeof a!="object"){if(_._owner){if(_=_._owner,_){if(_.tag!==1)throw Error(p$1(309));var b=_.stateNode}if(!b)throw Error(p$1(147,a));var $=b,_e=""+a;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===_e?o.ref:(o=function(et){var tt=$.refs;tt===jh&&(tt=$.refs={}),et===null?delete tt[_e]:tt[_e]=et},o._stringRef=_e,o)}if(typeof a!="string")throw Error(p$1(284));if(!_._owner)throw Error(p$1(290,a))}return a}function th(a,o){throw a=Object.prototype.toString.call(o),Error(p$1(31,a==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":a))}function uh(a){var o=a._init;return o(a._payload)}function vh(a){function o(ut,ot){if(a){var nt=ut.deletions;nt===null?(ut.deletions=[ot],ut.flags|=16):nt.push(ot)}}function _(ut,ot){if(!a)return null;for(;ot!==null;)o(ut,ot),ot=ot.sibling;return null}function b(ut,ot){for(ut=new Map;ot!==null;)ot.key!==null?ut.set(ot.key,ot):ut.set(ot.index,ot),ot=ot.sibling;return ut}function $(ut,ot){return ut=wh(ut,ot),ut.index=0,ut.sibling=null,ut}function _e(ut,ot,nt){return ut.index=nt,a?(nt=ut.alternate,nt!==null?(nt=nt.index,nt<ot?(ut.flags|=2,ot):nt):(ut.flags|=2,ot)):(ut.flags|=1048576,ot)}function et(ut){return a&&ut.alternate===null&&(ut.flags|=2),ut}function tt(ut,ot,nt,dt){return ot===null||ot.tag!==6?(ot=xh(nt,ut.mode,dt),ot.return=ut,ot):(ot=$(ot,nt),ot.return=ut,ot)}function rt(ut,ot,nt,dt){var yt=nt.type;return yt===ya?it(ut,ot,nt.props.children,dt,nt.key):ot!==null&&(ot.elementType===yt||typeof yt=="object"&&yt!==null&&yt.$$typeof===Ha&&uh(yt)===ot.type)?(dt=$(ot,nt.props),dt.ref=sh(ut,ot,nt),dt.return=ut,dt):(dt=yh(nt.type,nt.key,nt.props,null,ut.mode,dt),dt.ref=sh(ut,ot,nt),dt.return=ut,dt)}function st(ut,ot,nt,dt){return ot===null||ot.tag!==4||ot.stateNode.containerInfo!==nt.containerInfo||ot.stateNode.implementation!==nt.implementation?(ot=zh(nt,ut.mode,dt),ot.return=ut,ot):(ot=$(ot,nt.children||[]),ot.return=ut,ot)}function it(ut,ot,nt,dt,yt){return ot===null||ot.tag!==7?(ot=Ah(nt,ut.mode,dt,yt),ot.return=ut,ot):(ot=$(ot,nt),ot.return=ut,ot)}function lt(ut,ot,nt){if(typeof ot=="string"&&ot!==""||typeof ot=="number")return ot=xh(""+ot,ut.mode,nt),ot.return=ut,ot;if(typeof ot=="object"&&ot!==null){switch(ot.$$typeof){case va:return nt=yh(ot.type,ot.key,ot.props,null,ut.mode,nt),nt.ref=sh(ut,null,ot),nt.return=ut,nt;case wa:return ot=zh(ot,ut.mode,nt),ot.return=ut,ot;case Ha:var dt=ot._init;return lt(ut,dt(ot._payload),nt)}if(eb(ot)||Ka(ot))return ot=Ah(ot,ut.mode,nt,null),ot.return=ut,ot;th(ut,ot)}return null}function at(ut,ot,nt,dt){var yt=ot!==null?ot.key:null;if(typeof nt=="string"&&nt!==""||typeof nt=="number")return yt!==null?null:tt(ut,ot,""+nt,dt);if(typeof nt=="object"&&nt!==null){switch(nt.$$typeof){case va:return nt.key===yt?rt(ut,ot,nt,dt):null;case wa:return nt.key===yt?st(ut,ot,nt,dt):null;case Ha:return yt=nt._init,at(ut,ot,yt(nt._payload),dt)}if(eb(nt)||Ka(nt))return yt!==null?null:it(ut,ot,nt,dt,null);th(ut,nt)}return null}function ft(ut,ot,nt,dt,yt){if(typeof dt=="string"&&dt!==""||typeof dt=="number")return ut=ut.get(nt)||null,tt(ot,ut,""+dt,yt);if(typeof dt=="object"&&dt!==null){switch(dt.$$typeof){case va:return ut=ut.get(dt.key===null?nt:dt.key)||null,rt(ot,ut,dt,yt);case wa:return ut=ut.get(dt.key===null?nt:dt.key)||null,st(ot,ut,dt,yt);case Ha:var _t=dt._init;return ft(ut,ot,nt,_t(dt._payload),yt)}if(eb(dt)||Ka(dt))return ut=ut.get(nt)||null,it(ot,ut,dt,yt,null);th(ot,dt)}return null}function ht(ut,ot,nt,dt){for(var yt=null,_t=null,At=ot,xt=ot=0,wt=null;At!==null&&xt<nt.length;xt++){At.index>xt?(wt=At,At=null):wt=At.sibling;var Tt=at(ut,At,nt[xt],dt);if(Tt===null){At===null&&(At=wt);break}a&&At&&Tt.alternate===null&&o(ut,At),ot=_e(Tt,ot,xt),_t===null?yt=Tt:_t.sibling=Tt,_t=Tt,At=wt}if(xt===nt.length)return _(ut,At),I&&tg(ut,xt),yt;if(At===null){for(;xt<nt.length;xt++)At=lt(ut,nt[xt],dt),At!==null&&(ot=_e(At,ot,xt),_t===null?yt=At:_t.sibling=At,_t=At);return I&&tg(ut,xt),yt}for(At=b(ut,At);xt<nt.length;xt++)wt=ft(At,ut,xt,nt[xt],dt),wt!==null&&(a&&wt.alternate!==null&&At.delete(wt.key===null?xt:wt.key),ot=_e(wt,ot,xt),_t===null?yt=wt:_t.sibling=wt,_t=wt);return a&&At.forEach(function(It){return o(ut,It)}),I&&tg(ut,xt),yt}function pt(ut,ot,nt,dt){var yt=Ka(nt);if(typeof yt!="function")throw Error(p$1(150));if(nt=yt.call(nt),nt==null)throw Error(p$1(151));for(var _t=yt=null,At=ot,xt=ot=0,wt=null,Tt=nt.next();At!==null&&!Tt.done;xt++,Tt=nt.next()){At.index>xt?(wt=At,At=null):wt=At.sibling;var It=at(ut,At,Tt.value,dt);if(It===null){At===null&&(At=wt);break}a&&At&&It.alternate===null&&o(ut,At),ot=_e(It,ot,xt),_t===null?yt=It:_t.sibling=It,_t=It,At=wt}if(Tt.done)return _(ut,At),I&&tg(ut,xt),yt;if(At===null){for(;!Tt.done;xt++,Tt=nt.next())Tt=lt(ut,Tt.value,dt),Tt!==null&&(ot=_e(Tt,ot,xt),_t===null?yt=Tt:_t.sibling=Tt,_t=Tt);return I&&tg(ut,xt),yt}for(At=b(ut,At);!Tt.done;xt++,Tt=nt.next())Tt=ft(At,ut,xt,Tt.value,dt),Tt!==null&&(a&&Tt.alternate!==null&&At.delete(Tt.key===null?xt:Tt.key),ot=_e(Tt,ot,xt),_t===null?yt=Tt:_t.sibling=Tt,_t=Tt);return a&&At.forEach(function(Nt){return o(ut,Nt)}),I&&tg(ut,xt),yt}function vt(ut,ot,nt,dt){if(typeof nt=="object"&&nt!==null&&nt.type===ya&&nt.key===null&&(nt=nt.props.children),typeof nt=="object"&&nt!==null){switch(nt.$$typeof){case va:e:{for(var yt=nt.key,_t=ot;_t!==null;){if(_t.key===yt){if(yt=nt.type,yt===ya){if(_t.tag===7){_(ut,_t.sibling),ot=$(_t,nt.props.children),ot.return=ut,ut=ot;break e}}else if(_t.elementType===yt||typeof yt=="object"&&yt!==null&&yt.$$typeof===Ha&&uh(yt)===_t.type){_(ut,_t.sibling),ot=$(_t,nt.props),ot.ref=sh(ut,_t,nt),ot.return=ut,ut=ot;break e}_(ut,_t);break}else o(ut,_t);_t=_t.sibling}nt.type===ya?(ot=Ah(nt.props.children,ut.mode,dt,nt.key),ot.return=ut,ut=ot):(dt=yh(nt.type,nt.key,nt.props,null,ut.mode,dt),dt.ref=sh(ut,ot,nt),dt.return=ut,ut=dt)}return et(ut);case wa:e:{for(_t=nt.key;ot!==null;){if(ot.key===_t)if(ot.tag===4&&ot.stateNode.containerInfo===nt.containerInfo&&ot.stateNode.implementation===nt.implementation){_(ut,ot.sibling),ot=$(ot,nt.children||[]),ot.return=ut,ut=ot;break e}else{_(ut,ot);break}else o(ut,ot);ot=ot.sibling}ot=zh(nt,ut.mode,dt),ot.return=ut,ut=ot}return et(ut);case Ha:return _t=nt._init,vt(ut,ot,_t(nt._payload),dt)}if(eb(nt))return ht(ut,ot,nt,dt);if(Ka(nt))return pt(ut,ot,nt,dt);th(ut,nt)}return typeof nt=="string"&&nt!==""||typeof nt=="number"?(nt=""+nt,ot!==null&&ot.tag===6?(_(ut,ot.sibling),ot=$(ot,nt),ot.return=ut,ut=ot):(_(ut,ot),ot=xh(nt,ut.mode,dt),ot.return=ut,ut=ot),et(ut)):_(ut,ot)}return vt}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(a){if(a===Dh)throw Error(p$1(174));return a}function Ih(a,o){switch(G(Gh,o),G(Fh,a),G(Eh,Dh),a=o.nodeType,a){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:lb(null,"");break;default:a=a===8?o.parentNode:o,o=a.namespaceURI||null,a=a.tagName,o=lb(o,a)}E(Eh),G(Eh,o)}function Jh(){E(Eh),E(Fh),E(Gh)}function Kh(a){Hh(Gh.current);var o=Hh(Eh.current),_=lb(o,a.type);o!==_&&(G(Fh,a),G(Eh,_))}function Lh(a){Fh.current===a&&(E(Eh),E(Fh))}var M=Uf(0);function Mh(a){for(var o=a;o!==null;){if(o.tag===13){var _=o.memoizedState;if(_!==null&&(_=_.dehydrated,_===null||_.data==="$?"||_.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if(o.flags&128)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Nh=[];function Oh(){for(var a=0;a<Nh.length;a++)Nh[a]._workInProgressVersionPrimary=null;Nh.length=0}var Ph=ua.ReactCurrentDispatcher,Qh=ua.ReactCurrentBatchConfig,Rh=0,N=null,O=null,P=null,Sh=!1,Th=!1,Uh=0,Vh=0;function Q(){throw Error(p$1(321))}function Wh(a,o){if(o===null)return!1;for(var _=0;_<o.length&&_<a.length;_++)if(!He(a[_],o[_]))return!1;return!0}function Xh(a,o,_,b,$,_e){if(Rh=_e,N=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,Ph.current=a===null||a.memoizedState===null?Yh:Zh,a=_(b,$),Th){_e=0;do{if(Th=!1,Uh=0,25<=_e)throw Error(p$1(301));_e+=1,P=O=null,o.updateQueue=null,Ph.current=$h,a=_(b,$)}while(Th)}if(Ph.current=ai,o=O!==null&&O.next!==null,Rh=0,P=O=N=null,Sh=!1,o)throw Error(p$1(300));return a}function bi(){var a=Uh!==0;return Uh=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 o=P===null?N.memoizedState:P.next;if(o!==null)P=o,O=a;else{if(a===null)throw Error(p$1(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,o){return typeof o=="function"?o(a):o}function fi(a){var o=di(),_=o.queue;if(_===null)throw Error(p$1(311));_.lastRenderedReducer=a;var b=O,$=b.baseQueue,_e=_.pending;if(_e!==null){if($!==null){var et=$.next;$.next=_e.next,_e.next=et}b.baseQueue=$=_e,_.pending=null}if($!==null){_e=$.next,b=b.baseState;var tt=et=null,rt=null,st=_e;do{var it=st.lane;if((Rh&it)===it)rt!==null&&(rt=rt.next={lane:0,action:st.action,hasEagerState:st.hasEagerState,eagerState:st.eagerState,next:null}),b=st.hasEagerState?st.eagerState:a(b,st.action);else{var lt={lane:it,action:st.action,hasEagerState:st.hasEagerState,eagerState:st.eagerState,next:null};rt===null?(tt=rt=lt,et=b):rt=rt.next=lt,N.lanes|=it,hh|=it}st=st.next}while(st!==null&&st!==_e);rt===null?et=b:rt.next=tt,He(b,o.memoizedState)||(Ug=!0),o.memoizedState=b,o.baseState=et,o.baseQueue=rt,_.lastRenderedState=b}if(a=_.interleaved,a!==null){$=a;do _e=$.lane,N.lanes|=_e,hh|=_e,$=$.next;while($!==a)}else $===null&&(_.lanes=0);return[o.memoizedState,_.dispatch]}function gi(a){var o=di(),_=o.queue;if(_===null)throw Error(p$1(311));_.lastRenderedReducer=a;var b=_.dispatch,$=_.pending,_e=o.memoizedState;if($!==null){_.pending=null;var et=$=$.next;do _e=a(_e,et.action),et=et.next;while(et!==$);He(_e,o.memoizedState)||(Ug=!0),o.memoizedState=_e,o.baseQueue===null&&(o.baseState=_e),_.lastRenderedState=_e}return[_e,b]}function hi(){}function ii(a,o){var _=N,b=di(),$=o(),_e=!He(b.memoizedState,$);if(_e&&(b.memoizedState=$,Ug=!0),b=b.queue,ji(ki.bind(null,_,b,a),[a]),b.getSnapshot!==o||_e||P!==null&&P.memoizedState.tag&1){if(_.flags|=2048,li(9,mi.bind(null,_,b,$,o),void 0,null),R===null)throw Error(p$1(349));Rh&30||ni(_,o,$)}return $}function ni(a,o,_){a.flags|=16384,a={getSnapshot:o,value:_},o=N.updateQueue,o===null?(o={lastEffect:null,stores:null},N.updateQueue=o,o.stores=[a]):(_=o.stores,_===null?o.stores=[a]:_.push(a))}function mi(a,o,_,b){o.value=_,o.getSnapshot=b,oi(o)&&pi(a)}function ki(a,o,_){return _(function(){oi(o)&&pi(a)})}function oi(a){var o=a.getSnapshot;a=a.value;try{var _=o();return!He(a,_)}catch{return!0}}function pi(a){var o=Zg(a,1);o!==null&&mh(o,a,1,-1)}function qi(a){var o=ci();return typeof a=="function"&&(a=a()),o.memoizedState=o.baseState=a,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ei,lastRenderedState:a},o.queue=a,a=a.dispatch=ri.bind(null,N,a),[o.memoizedState,a]}function li(a,o,_,b){return a={tag:a,create:o,destroy:_,deps:b,next:null},o=N.updateQueue,o===null?(o={lastEffect:null,stores:null},N.updateQueue=o,o.lastEffect=a.next=a):(_=o.lastEffect,_===null?o.lastEffect=a.next=a:(b=_.next,_.next=a,a.next=b,o.lastEffect=a)),a}function si(){return di().memoizedState}function ti(a,o,_,b){var $=ci();N.flags|=a,$.memoizedState=li(1|o,_,void 0,b===void 0?null:b)}function ui(a,o,_,b){var $=di();b=b===void 0?null:b;var _e=void 0;if(O!==null){var et=O.memoizedState;if(_e=et.destroy,b!==null&&Wh(b,et.deps)){$.memoizedState=li(o,_,_e,b);return}}N.flags|=a,$.memoizedState=li(1|o,_,_e,b)}function vi(a,o){return ti(8390656,8,a,o)}function ji(a,o){return ui(2048,8,a,o)}function wi(a,o){return ui(4,2,a,o)}function xi(a,o){return ui(4,4,a,o)}function yi(a,o){if(typeof o=="function")return a=a(),o(a),function(){o(null)};if(o!=null)return a=a(),o.current=a,function(){o.current=null}}function zi(a,o,_){return _=_!=null?_.concat([a]):null,ui(4,4,yi.bind(null,o,a),_)}function Ai(){}function Bi(a,o){var _=di();o=o===void 0?null:o;var b=_.memoizedState;return b!==null&&o!==null&&Wh(o,b[1])?b[0]:(_.memoizedState=[a,o],a)}function Ci(a,o){var _=di();o=o===void 0?null:o;var b=_.memoizedState;return b!==null&&o!==null&&Wh(o,b[1])?b[0]:(a=a(),_.memoizedState=[a,o],a)}function Di(a,o,_){return Rh&21?(He(_,o)||(_=yc(),N.lanes|=_,hh|=_,a.baseState=!0),o):(a.baseState&&(a.baseState=!1,Ug=!0),a.memoizedState=_)}function Ei(a,o){var _=C;C=_!==0&&4>_?_:4,a(!0);var b=Qh.transition;Qh.transition={};try{a(!1),o()}finally{C=_,Qh.transition=b}}function Fi(){return di().memoizedState}function Gi(a,o,_){var b=lh(a);if(_={lane:b,action:_,hasEagerState:!1,eagerState:null,next:null},Hi(a))Ii(o,_);else if(_=Yg(a,o,_,b),_!==null){var $=L$1();mh(_,a,b,$),Ji(_,o,b)}}function ri(a,o,_){var b=lh(a),$={lane:b,action:_,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(o,$);else{var _e=a.alternate;if(a.lanes===0&&(_e===null||_e.lanes===0)&&(_e=o.lastRenderedReducer,_e!==null))try{var et=o.lastRenderedState,tt=_e(et,_);if($.hasEagerState=!0,$.eagerState=tt,He(tt,et)){var rt=o.interleaved;rt===null?($.next=$,Xg(o)):($.next=rt.next,rt.next=$),o.interleaved=$;return}}catch{}finally{}_=Yg(a,o,$,b),_!==null&&($=L$1(),mh(_,a,b,$),Ji(_,o,b))}}function Hi(a){var o=a.alternate;return a===N||o!==null&&o===N}function Ii(a,o){Th=Sh=!0;var _=a.pending;_===null?o.next=o:(o.next=_.next,_.next=o),a.pending=o}function Ji(a,o,_){if(_&4194240){var b=o.lanes;b&=a.pendingLanes,_|=b,o.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={readContext:Vg,useCallback:function(a,o){return ci().memoizedState=[a,o===void 0?null:o],a},useContext:Vg,useEffect:vi,useImperativeHandle:function(a,o,_){return _=_!=null?_.concat([a]):null,ti(4194308,4,yi.bind(null,o,a),_)},useLayoutEffect:function(a,o){return ti(4194308,4,a,o)},useInsertionEffect:function(a,o){return ti(4,2,a,o)},useMemo:function(a,o){var _=ci();return o=o===void 0?null:o,a=a(),_.memoizedState=[a,o],a},useReducer:function(a,o,_){var b=ci();return o=_!==void 0?_(o):o,b.memoizedState=b.baseState=o,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:o},b.queue=a,a=a.dispatch=Gi.bind(null,N,a),[b.memoizedState,a]},useRef:function(a){var o=ci();return a={current:a},o.memoizedState=a},useState:qi,useDebugValue:Ai,useDeferredValue:function(a){return ci().memoizedState=a},useTransition:function(){var a=qi(!1),o=a[0];return a=Ei.bind(null,a[1]),ci().memoizedState=a,[o,a]},useMutableSource:function(){},useSyncExternalStore:function(a,o,_){var b=N,$=ci();if(I){if(_===void 0)throw Error(p$1(407));_=_()}else{if(_=o(),R===null)throw Error(p$1(349));Rh&30||ni(b,o,_)}$.memoizedState=_;var _e={value:_,getSnapshot:o};return $.queue=_e,vi(ki.bind(null,b,_e,a),[a]),b.flags|=2048,li(9,mi.bind(null,b,_e,_,o),void 0,null),_},useId:function(){var a=ci(),o=R.identifierPrefix;if(I){var _=sg,b=rg;_=(b&~(1<<32-oc(b)-1)).toString(32)+_,o=":"+o+"R"+_,_=Uh++,0<_&&(o+="H"+_.toString(32)),o+=":"}else _=Vh++,o=":"+o+"r"+_.toString(32)+":";return a.memoizedState=o},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 o=di();return Di(o,O.memoizedState,a)},useTransition:function(){var a=fi(ei)[0],o=di().memoizedState;return[a,o]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1},$h={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 o=di();return O===null?o.memoizedState=a:Di(o,O.memoizedState,a)},useTransition:function(){var a=gi(ei)[0],o=di().memoizedState;return[a,o]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1};function Ki(a,o){try{var _="",b=o;do _+=Pa(b),b=b.return;while(b);var $=_}catch(_e){$=`
39
39
  Error generating stack: `+_e.message+`
40
- `+_e.stack}return{value:a,source:o,stack:$,digest:null}}function Li(a,o,_){return{value:a,source:null,stack:_??null,digest:o??null}}function Mi(a,o){try{console.error(o.value)}catch(_){setTimeout(function(){throw _})}}var Ni=typeof WeakMap=="function"?WeakMap:Map;function Oi(a,o,_){_=ch(-1,_),_.tag=3,_.payload={element:null};var b=o.value;return _.callback=function(){Pi||(Pi=!0,Qi=b),Mi(a,o)},_}function Ri(a,o,_){_=ch(-1,_),_.tag=3;var b=a.type.getDerivedStateFromError;if(typeof b=="function"){var $=o.value;_.payload=function(){return b($)},_.callback=function(){Mi(a,o)}}var _e=a.stateNode;return _e!==null&&typeof _e.componentDidCatch=="function"&&(_.callback=function(){Mi(a,o),typeof b!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var et=o.stack;this.componentDidCatch(o.value,{componentStack:et!==null?et:""})}),_}function Ti(a,o,_){var b=a.pingCache;if(b===null){b=a.pingCache=new Ni;var $=new Set;b.set(o,$)}else $=b.get(o),$===void 0&&($=new Set,b.set(o,$));$.has(_)||($.add(_),a=Ui.bind(null,a,o,_),o.then(a,a))}function Vi(a){do{var o;if((o=a.tag===13)&&(o=a.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return a;a=a.return}while(a!==null);return null}function Wi(a,o,_,b,$){return a.mode&1?(a.flags|=65536,a.lanes=$,a):(a===o?a.flags|=65536:(a.flags|=128,_.flags|=131072,_.flags&=-52805,_.tag===1&&(_.alternate===null?_.tag=17:(o=ch(-1,1),o.tag=2,dh(_,o,1))),_.lanes|=1),a)}var Xi=ua.ReactCurrentOwner,Ug=!1;function Yi(a,o,_,b){o.child=a===null?Ch(o,null,_,b):Bh(o,a.child,_,b)}function Zi(a,o,_,b,$){_=_.render;var _e=o.ref;return Tg(o,$),b=Xh(a,o,_,b,_e,$),_=bi(),a!==null&&!Ug?(o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~$,$i(a,o,$)):(I&&_&&vg(o),o.flags|=1,Yi(a,o,b,$),o.child)}function aj(a,o,_,b,$){if(a===null){var _e=_.type;return typeof _e=="function"&&!bj(_e)&&_e.defaultProps===void 0&&_.compare===null&&_.defaultProps===void 0?(o.tag=15,o.type=_e,cj(a,o,_e,b,$)):(a=yh(_.type,null,b,o,o.mode,$),a.ref=o.ref,a.return=o,o.child=a)}if(_e=a.child,!(a.lanes&$)){var et=_e.memoizedProps;if(_=_.compare,_=_!==null?_:Ie,_(et,b)&&a.ref===o.ref)return $i(a,o,$)}return o.flags|=1,a=wh(_e,b),a.ref=o.ref,a.return=o,o.child=a}function cj(a,o,_,b,$){if(a!==null){var _e=a.memoizedProps;if(Ie(_e,b)&&a.ref===o.ref)if(Ug=!1,o.pendingProps=b=_e,(a.lanes&$)!==0)a.flags&131072&&(Ug=!0);else return o.lanes=a.lanes,$i(a,o,$)}return dj(a,o,_,b,$)}function ej(a,o,_){var b=o.pendingProps,$=b.children,_e=a!==null?a.memoizedState:null;if(b.mode==="hidden")if(!(o.mode&1))o.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(fj,gj),gj|=_;else{if(!(_&1073741824))return a=_e!==null?_e.baseLanes|_:_,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:a,cachePool:null,transitions:null},o.updateQueue=null,G(fj,gj),gj|=a,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},b=_e!==null?_e.baseLanes:_,G(fj,gj),gj|=b}else _e!==null?(b=_e.baseLanes|_,o.memoizedState=null):b=_,G(fj,gj),gj|=b;return Yi(a,o,$,_),o.child}function hj(a,o){var _=o.ref;(a===null&&_!==null||a!==null&&a.ref!==_)&&(o.flags|=512,o.flags|=2097152)}function dj(a,o,_,b,$){var _e=Zf(_)?Xf:H.current;return _e=Yf(o,_e),Tg(o,$),_=Xh(a,o,_,b,_e,$),b=bi(),a!==null&&!Ug?(o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~$,$i(a,o,$)):(I&&b&&vg(o),o.flags|=1,Yi(a,o,_,$),o.child)}function ij(a,o,_,b,$){if(Zf(_)){var _e=!0;cg(o)}else _e=!1;if(Tg(o,$),o.stateNode===null)jj(a,o),ph(o,_,b),rh(o,_,b,$),b=!0;else if(a===null){var et=o.stateNode,tt=o.memoizedProps;et.props=tt;var rt=et.context,st=_.contextType;typeof st=="object"&&st!==null?st=Vg(st):(st=Zf(_)?Xf:H.current,st=Yf(o,st));var it=_.getDerivedStateFromProps,lt=typeof it=="function"||typeof et.getSnapshotBeforeUpdate=="function";lt||typeof et.UNSAFE_componentWillReceiveProps!="function"&&typeof et.componentWillReceiveProps!="function"||(tt!==b||rt!==st)&&qh(o,et,b,st),$g=!1;var at=o.memoizedState;et.state=at,gh(o,b,et,$),rt=o.memoizedState,tt!==b||at!==rt||Wf.current||$g?(typeof it=="function"&&(kh(o,_,it,b),rt=o.memoizedState),(tt=$g||oh(o,_,tt,b,at,rt,st))?(lt||typeof et.UNSAFE_componentWillMount!="function"&&typeof et.componentWillMount!="function"||(typeof et.componentWillMount=="function"&&et.componentWillMount(),typeof et.UNSAFE_componentWillMount=="function"&&et.UNSAFE_componentWillMount()),typeof et.componentDidMount=="function"&&(o.flags|=4194308)):(typeof et.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=b,o.memoizedState=rt),et.props=b,et.state=rt,et.context=st,b=tt):(typeof et.componentDidMount=="function"&&(o.flags|=4194308),b=!1)}else{et=o.stateNode,bh(a,o),tt=o.memoizedProps,st=o.type===o.elementType?tt:Lg(o.type,tt),et.props=st,lt=o.pendingProps,at=et.context,rt=_.contextType,typeof rt=="object"&&rt!==null?rt=Vg(rt):(rt=Zf(_)?Xf:H.current,rt=Yf(o,rt));var ft=_.getDerivedStateFromProps;(it=typeof ft=="function"||typeof et.getSnapshotBeforeUpdate=="function")||typeof et.UNSAFE_componentWillReceiveProps!="function"&&typeof et.componentWillReceiveProps!="function"||(tt!==lt||at!==rt)&&qh(o,et,b,rt),$g=!1,at=o.memoizedState,et.state=at,gh(o,b,et,$);var ht=o.memoizedState;tt!==lt||at!==ht||Wf.current||$g?(typeof ft=="function"&&(kh(o,_,ft,b),ht=o.memoizedState),(st=$g||oh(o,_,st,b,at,ht,rt)||!1)?(it||typeof et.UNSAFE_componentWillUpdate!="function"&&typeof et.componentWillUpdate!="function"||(typeof et.componentWillUpdate=="function"&&et.componentWillUpdate(b,ht,rt),typeof et.UNSAFE_componentWillUpdate=="function"&&et.UNSAFE_componentWillUpdate(b,ht,rt)),typeof et.componentDidUpdate=="function"&&(o.flags|=4),typeof et.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof et.componentDidUpdate!="function"||tt===a.memoizedProps&&at===a.memoizedState||(o.flags|=4),typeof et.getSnapshotBeforeUpdate!="function"||tt===a.memoizedProps&&at===a.memoizedState||(o.flags|=1024),o.memoizedProps=b,o.memoizedState=ht),et.props=b,et.state=ht,et.context=rt,b=st):(typeof et.componentDidUpdate!="function"||tt===a.memoizedProps&&at===a.memoizedState||(o.flags|=4),typeof et.getSnapshotBeforeUpdate!="function"||tt===a.memoizedProps&&at===a.memoizedState||(o.flags|=1024),b=!1)}return kj(a,o,_,b,_e,$)}function kj(a,o,_,b,$,_e){hj(a,o);var et=(o.flags&128)!==0;if(!b&&!et)return $&&dg(o,_,!1),$i(a,o,_e);b=o.stateNode,Xi.current=o;var tt=et&&typeof _.getDerivedStateFromError!="function"?null:b.render();return o.flags|=1,a!==null&&et?(o.child=Bh(o,a.child,null,_e),o.child=Bh(o,null,tt,_e)):Yi(a,o,tt,_e),o.memoizedState=b.state,$&&dg(o,_,!0),o.child}function lj(a){var o=a.stateNode;o.pendingContext?ag(a,o.pendingContext,o.pendingContext!==o.context):o.context&&ag(a,o.context,!1),Ih(a,o.containerInfo)}function mj(a,o,_,b,$){return Ig(),Jg($),o.flags|=256,Yi(a,o,_,b),o.child}var nj={dehydrated:null,treeContext:null,retryLane:0};function oj(a){return{baseLanes:a,cachePool:null,transitions:null}}function pj(a,o,_){var b=o.pendingProps,$=M.current,_e=!1,et=(o.flags&128)!==0,tt;if((tt=et)||(tt=a!==null&&a.memoizedState===null?!1:($&2)!==0),tt?(_e=!0,o.flags&=-129):(a===null||a.memoizedState!==null)&&($|=1),G(M,$&1),a===null)return Eg(o),a=o.memoizedState,a!==null&&(a=a.dehydrated,a!==null)?(o.mode&1?a.data==="$!"?o.lanes=8:o.lanes=1073741824:o.lanes=1,null):(et=b.children,a=b.fallback,_e?(b=o.mode,_e=o.child,et={mode:"hidden",children:et},!(b&1)&&_e!==null?(_e.childLanes=0,_e.pendingProps=et):_e=qj(et,b,0,null),a=Ah(a,b,_,null),_e.return=o,a.return=o,_e.sibling=a,o.child=_e,o.child.memoizedState=oj(_),o.memoizedState=nj,a):rj(o,et));if($=a.memoizedState,$!==null&&(tt=$.dehydrated,tt!==null))return sj(a,o,et,b,tt,$,_);if(_e){_e=b.fallback,et=o.mode,$=a.child,tt=$.sibling;var rt={mode:"hidden",children:b.children};return!(et&1)&&o.child!==$?(b=o.child,b.childLanes=0,b.pendingProps=rt,o.deletions=null):(b=wh($,rt),b.subtreeFlags=$.subtreeFlags&14680064),tt!==null?_e=wh(tt,_e):(_e=Ah(_e,et,_,null),_e.flags|=2),_e.return=o,b.return=o,b.sibling=_e,o.child=b,b=_e,_e=o.child,et=a.child.memoizedState,et=et===null?oj(_):{baseLanes:et.baseLanes|_,cachePool:null,transitions:et.transitions},_e.memoizedState=et,_e.childLanes=a.childLanes&~_,o.memoizedState=nj,b}return _e=a.child,a=_e.sibling,b=wh(_e,{mode:"visible",children:b.children}),!(o.mode&1)&&(b.lanes=_),b.return=o,b.sibling=null,a!==null&&(_=o.deletions,_===null?(o.deletions=[a],o.flags|=16):_.push(a)),o.child=b,o.memoizedState=null,b}function rj(a,o){return o=qj({mode:"visible",children:o},a.mode,0,null),o.return=a,a.child=o}function tj(a,o,_,b){return b!==null&&Jg(b),Bh(o,a.child,null,_),a=rj(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function sj(a,o,_,b,$,_e,et){if(_)return o.flags&256?(o.flags&=-257,b=Li(Error(p$1(422))),tj(a,o,et,b)):o.memoizedState!==null?(o.child=a.child,o.flags|=128,null):(_e=b.fallback,$=o.mode,b=qj({mode:"visible",children:b.children},$,0,null),_e=Ah(_e,$,et,null),_e.flags|=2,b.return=o,_e.return=o,b.sibling=_e,o.child=b,o.mode&1&&Bh(o,a.child,null,et),o.child.memoizedState=oj(et),o.memoizedState=nj,_e);if(!(o.mode&1))return tj(a,o,et,null);if($.data==="$!"){if(b=$.nextSibling&&$.nextSibling.dataset,b)var tt=b.dgst;return b=tt,_e=Error(p$1(419)),b=Li(_e,b,void 0),tj(a,o,et,b)}if(tt=(et&a.childLanes)!==0,Ug||tt){if(b=R,b!==null){switch(et&-et){case 4:$=2;break;case 16:$=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:$=32;break;case 536870912:$=268435456;break;default:$=0}$=$&(b.suspendedLanes|et)?0:$,$!==0&&$!==_e.retryLane&&(_e.retryLane=$,Zg(a,$),mh(b,a,$,-1))}return uj(),b=Li(Error(p$1(421))),tj(a,o,et,b)}return $.data==="$?"?(o.flags|=128,o.child=a.child,o=vj.bind(null,a),$._reactRetry=o,null):(a=_e.treeContext,yg=Lf($.nextSibling),xg=o,I=!0,zg=null,a!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=a.id,sg=a.overflow,qg=o),o=rj(o,b.children),o.flags|=4096,o)}function wj(a,o,_){a.lanes|=o;var b=a.alternate;b!==null&&(b.lanes|=o),Sg(a.return,o,_)}function xj(a,o,_,b,$){var _e=a.memoizedState;_e===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:b,tail:_,tailMode:$}:(_e.isBackwards=o,_e.rendering=null,_e.renderingStartTime=0,_e.last=b,_e.tail=_,_e.tailMode=$)}function yj(a,o,_){var b=o.pendingProps,$=b.revealOrder,_e=b.tail;if(Yi(a,o,b.children,_),b=M.current,b&2)b=b&1|2,o.flags|=128;else{if(a!==null&&a.flags&128)e:for(a=o.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&wj(a,_,o);else if(a.tag===19)wj(a,_,o);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break e;for(;a.sibling===null;){if(a.return===null||a.return===o)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}b&=1}if(G(M,b),!(o.mode&1))o.memoizedState=null;else switch($){case"forwards":for(_=o.child,$=null;_!==null;)a=_.alternate,a!==null&&Mh(a)===null&&($=_),_=_.sibling;_=$,_===null?($=o.child,o.child=null):($=_.sibling,_.sibling=null),xj(o,!1,$,_,_e);break;case"backwards":for(_=null,$=o.child,o.child=null;$!==null;){if(a=$.alternate,a!==null&&Mh(a)===null){o.child=$;break}a=$.sibling,$.sibling=_,_=$,$=a}xj(o,!0,_,null,_e);break;case"together":xj(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function jj(a,o){!(o.mode&1)&&a!==null&&(a.alternate=null,o.alternate=null,o.flags|=2)}function $i(a,o,_){if(a!==null&&(o.dependencies=a.dependencies),hh|=o.lanes,!(_&o.childLanes))return null;if(a!==null&&o.child!==a.child)throw Error(p$1(153));if(o.child!==null){for(a=o.child,_=wh(a,a.pendingProps),o.child=_,_.return=o;a.sibling!==null;)a=a.sibling,_=_.sibling=wh(a,a.pendingProps),_.return=o;_.sibling=null}return o.child}function zj(a,o,_){switch(o.tag){case 3:lj(o),Ig();break;case 5:Kh(o);break;case 1:Zf(o.type)&&cg(o);break;case 4:Ih(o,o.stateNode.containerInfo);break;case 10:var b=o.type._context,$=o.memoizedProps.value;G(Mg,b._currentValue),b._currentValue=$;break;case 13:if(b=o.memoizedState,b!==null)return b.dehydrated!==null?(G(M,M.current&1),o.flags|=128,null):_&o.child.childLanes?pj(a,o,_):(G(M,M.current&1),a=$i(a,o,_),a!==null?a.sibling:null);G(M,M.current&1);break;case 19:if(b=(_&o.childLanes)!==0,a.flags&128){if(b)return yj(a,o,_);o.flags|=128}if($=o.memoizedState,$!==null&&($.rendering=null,$.tail=null,$.lastEffect=null),G(M,M.current),b)break;return null;case 22:case 23:return o.lanes=0,ej(a,o,_)}return $i(a,o,_)}var Aj,Bj,Cj,Dj;Aj=function(a,o){for(var _=o.child;_!==null;){if(_.tag===5||_.tag===6)a.appendChild(_.stateNode);else if(_.tag!==4&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===o)break;for(;_.sibling===null;){if(_.return===null||_.return===o)return;_=_.return}_.sibling.return=_.return,_=_.sibling}};Bj=function(){};Cj=function(a,o,_,b){var $=a.memoizedProps;if($!==b){a=o.stateNode,Hh(Eh.current);var _e=null;switch(_){case"input":$=Ya(a,$),b=Ya(a,b),_e=[];break;case"select":$=A({},$,{value:void 0}),b=A({},b,{value:void 0}),_e=[];break;case"textarea":$=gb(a,$),b=gb(a,b),_e=[];break;default:typeof $.onClick!="function"&&typeof b.onClick=="function"&&(a.onclick=Bf)}ub(_,b);var et;_=null;for(st in $)if(!b.hasOwnProperty(st)&&$.hasOwnProperty(st)&&$[st]!=null)if(st==="style"){var tt=$[st];for(et in tt)tt.hasOwnProperty(et)&&(_||(_={}),_[et]="")}else st!=="dangerouslySetInnerHTML"&&st!=="children"&&st!=="suppressContentEditableWarning"&&st!=="suppressHydrationWarning"&&st!=="autoFocus"&&(ea.hasOwnProperty(st)?_e||(_e=[]):(_e=_e||[]).push(st,null));for(st in b){var rt=b[st];if(tt=$!=null?$[st]:void 0,b.hasOwnProperty(st)&&rt!==tt&&(rt!=null||tt!=null))if(st==="style")if(tt){for(et in tt)!tt.hasOwnProperty(et)||rt&&rt.hasOwnProperty(et)||(_||(_={}),_[et]="");for(et in rt)rt.hasOwnProperty(et)&&tt[et]!==rt[et]&&(_||(_={}),_[et]=rt[et])}else _||(_e||(_e=[]),_e.push(st,_)),_=rt;else st==="dangerouslySetInnerHTML"?(rt=rt?rt.__html:void 0,tt=tt?tt.__html:void 0,rt!=null&&tt!==rt&&(_e=_e||[]).push(st,rt)):st==="children"?typeof rt!="string"&&typeof rt!="number"||(_e=_e||[]).push(st,""+rt):st!=="suppressContentEditableWarning"&&st!=="suppressHydrationWarning"&&(ea.hasOwnProperty(st)?(rt!=null&&st==="onScroll"&&D("scroll",a),_e||tt===rt||(_e=[])):(_e=_e||[]).push(st,rt))}_&&(_e=_e||[]).push("style",_);var st=_e;(o.updateQueue=st)&&(o.flags|=4)}};Dj=function(a,o,_,b){_!==b&&(o.flags|=4)};function Ej(a,o){if(!I)switch(a.tailMode){case"hidden":o=a.tail;for(var _=null;o!==null;)o.alternate!==null&&(_=o),o=o.sibling;_===null?a.tail=null:_.sibling=null;break;case"collapsed":_=a.tail;for(var b=null;_!==null;)_.alternate!==null&&(b=_),_=_.sibling;b===null?o||a.tail===null?a.tail=null:a.tail.sibling=null:b.sibling=null}}function S(a){var o=a.alternate!==null&&a.alternate.child===a.child,_=0,b=0;if(o)for(var $=a.child;$!==null;)_|=$.lanes|$.childLanes,b|=$.subtreeFlags&14680064,b|=$.flags&14680064,$.return=a,$=$.sibling;else for($=a.child;$!==null;)_|=$.lanes|$.childLanes,b|=$.subtreeFlags,b|=$.flags,$.return=a,$=$.sibling;return a.subtreeFlags|=b,a.childLanes=_,o}function Fj(a,o,_){var b=o.pendingProps;switch(wg(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S(o),null;case 1:return Zf(o.type)&&$f(),S(o),null;case 3:return b=o.stateNode,Jh(),E(Wf),E(H),Oh(),b.pendingContext&&(b.context=b.pendingContext,b.pendingContext=null),(a===null||a.child===null)&&(Gg(o)?o.flags|=4:a===null||a.memoizedState.isDehydrated&&!(o.flags&256)||(o.flags|=1024,zg!==null&&(Gj(zg),zg=null))),Bj(a,o),S(o),null;case 5:Lh(o);var $=Hh(Gh.current);if(_=o.type,a!==null&&o.stateNode!=null)Cj(a,o,_,b,$),a.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!b){if(o.stateNode===null)throw Error(p$1(166));return S(o),null}if(a=Hh(Eh.current),Gg(o)){b=o.stateNode,_=o.type;var _e=o.memoizedProps;switch(b[Of]=o,b[Pf]=_e,a=(o.mode&1)!==0,_){case"dialog":D("cancel",b),D("close",b);break;case"iframe":case"object":case"embed":D("load",b);break;case"video":case"audio":for($=0;$<lf.length;$++)D(lf[$],b);break;case"source":D("error",b);break;case"img":case"image":case"link":D("error",b),D("load",b);break;case"details":D("toggle",b);break;case"input":Za(b,_e),D("invalid",b);break;case"select":b._wrapperState={wasMultiple:!!_e.multiple},D("invalid",b);break;case"textarea":hb(b,_e),D("invalid",b)}ub(_,_e),$=null;for(var et in _e)if(_e.hasOwnProperty(et)){var tt=_e[et];et==="children"?typeof tt=="string"?b.textContent!==tt&&(_e.suppressHydrationWarning!==!0&&Af(b.textContent,tt,a),$=["children",tt]):typeof tt=="number"&&b.textContent!==""+tt&&(_e.suppressHydrationWarning!==!0&&Af(b.textContent,tt,a),$=["children",""+tt]):ea.hasOwnProperty(et)&&tt!=null&&et==="onScroll"&&D("scroll",b)}switch(_){case"input":Va(b),db(b,_e,!0);break;case"textarea":Va(b),jb(b);break;case"select":case"option":break;default:typeof _e.onClick=="function"&&(b.onclick=Bf)}b=$,o.updateQueue=b,b!==null&&(o.flags|=4)}else{et=$.nodeType===9?$:$.ownerDocument,a==="http://www.w3.org/1999/xhtml"&&(a=kb(_)),a==="http://www.w3.org/1999/xhtml"?_==="script"?(a=et.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild)):typeof b.is=="string"?a=et.createElement(_,{is:b.is}):(a=et.createElement(_),_==="select"&&(et=a,b.multiple?et.multiple=!0:b.size&&(et.size=b.size))):a=et.createElementNS(a,_),a[Of]=o,a[Pf]=b,Aj(a,o,!1,!1),o.stateNode=a;e:{switch(et=vb(_,b),_){case"dialog":D("cancel",a),D("close",a),$=b;break;case"iframe":case"object":case"embed":D("load",a),$=b;break;case"video":case"audio":for($=0;$<lf.length;$++)D(lf[$],a);$=b;break;case"source":D("error",a),$=b;break;case"img":case"image":case"link":D("error",a),D("load",a),$=b;break;case"details":D("toggle",a),$=b;break;case"input":Za(a,b),$=Ya(a,b),D("invalid",a);break;case"option":$=b;break;case"select":a._wrapperState={wasMultiple:!!b.multiple},$=A({},b,{value:void 0}),D("invalid",a);break;case"textarea":hb(a,b),$=gb(a,b),D("invalid",a);break;default:$=b}ub(_,$),tt=$;for(_e in tt)if(tt.hasOwnProperty(_e)){var rt=tt[_e];_e==="style"?sb(a,rt):_e==="dangerouslySetInnerHTML"?(rt=rt?rt.__html:void 0,rt!=null&&nb(a,rt)):_e==="children"?typeof rt=="string"?(_!=="textarea"||rt!=="")&&ob(a,rt):typeof rt=="number"&&ob(a,""+rt):_e!=="suppressContentEditableWarning"&&_e!=="suppressHydrationWarning"&&_e!=="autoFocus"&&(ea.hasOwnProperty(_e)?rt!=null&&_e==="onScroll"&&D("scroll",a):rt!=null&&ta(a,_e,rt,et))}switch(_){case"input":Va(a),db(a,b,!1);break;case"textarea":Va(a),jb(a);break;case"option":b.value!=null&&a.setAttribute("value",""+Sa(b.value));break;case"select":a.multiple=!!b.multiple,_e=b.value,_e!=null?fb(a,!!b.multiple,_e,!1):b.defaultValue!=null&&fb(a,!!b.multiple,b.defaultValue,!0);break;default:typeof $.onClick=="function"&&(a.onclick=Bf)}switch(_){case"button":case"input":case"select":case"textarea":b=!!b.autoFocus;break e;case"img":b=!0;break e;default:b=!1}}b&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return S(o),null;case 6:if(a&&o.stateNode!=null)Dj(a,o,a.memoizedProps,b);else{if(typeof b!="string"&&o.stateNode===null)throw Error(p$1(166));if(_=Hh(Gh.current),Hh(Eh.current),Gg(o)){if(b=o.stateNode,_=o.memoizedProps,b[Of]=o,(_e=b.nodeValue!==_)&&(a=xg,a!==null))switch(a.tag){case 3:Af(b.nodeValue,_,(a.mode&1)!==0);break;case 5:a.memoizedProps.suppressHydrationWarning!==!0&&Af(b.nodeValue,_,(a.mode&1)!==0)}_e&&(o.flags|=4)}else b=(_.nodeType===9?_:_.ownerDocument).createTextNode(b),b[Of]=o,o.stateNode=b}return S(o),null;case 13:if(E(M),b=o.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(I&&yg!==null&&o.mode&1&&!(o.flags&128))Hg(),Ig(),o.flags|=98560,_e=!1;else if(_e=Gg(o),b!==null&&b.dehydrated!==null){if(a===null){if(!_e)throw Error(p$1(318));if(_e=o.memoizedState,_e=_e!==null?_e.dehydrated:null,!_e)throw Error(p$1(317));_e[Of]=o}else Ig(),!(o.flags&128)&&(o.memoizedState=null),o.flags|=4;S(o),_e=!1}else zg!==null&&(Gj(zg),zg=null),_e=!0;if(!_e)return o.flags&65536?o:null}return o.flags&128?(o.lanes=_,o):(b=b!==null,b!==(a!==null&&a.memoizedState!==null)&&b&&(o.child.flags|=8192,o.mode&1&&(a===null||M.current&1?T===0&&(T=3):uj())),o.updateQueue!==null&&(o.flags|=4),S(o),null);case 4:return Jh(),Bj(a,o),a===null&&sf(o.stateNode.containerInfo),S(o),null;case 10:return Rg(o.type._context),S(o),null;case 17:return Zf(o.type)&&$f(),S(o),null;case 19:if(E(M),_e=o.memoizedState,_e===null)return S(o),null;if(b=(o.flags&128)!==0,et=_e.rendering,et===null)if(b)Ej(_e,!1);else{if(T!==0||a!==null&&a.flags&128)for(a=o.child;a!==null;){if(et=Mh(a),et!==null){for(o.flags|=128,Ej(_e,!1),b=et.updateQueue,b!==null&&(o.updateQueue=b,o.flags|=4),o.subtreeFlags=0,b=_,_=o.child;_!==null;)_e=_,a=b,_e.flags&=14680066,et=_e.alternate,et===null?(_e.childLanes=0,_e.lanes=a,_e.child=null,_e.subtreeFlags=0,_e.memoizedProps=null,_e.memoizedState=null,_e.updateQueue=null,_e.dependencies=null,_e.stateNode=null):(_e.childLanes=et.childLanes,_e.lanes=et.lanes,_e.child=et.child,_e.subtreeFlags=0,_e.deletions=null,_e.memoizedProps=et.memoizedProps,_e.memoizedState=et.memoizedState,_e.updateQueue=et.updateQueue,_e.type=et.type,a=et.dependencies,_e.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),_=_.sibling;return G(M,M.current&1|2),o.child}a=a.sibling}_e.tail!==null&&B()>Hj&&(o.flags|=128,b=!0,Ej(_e,!1),o.lanes=4194304)}else{if(!b)if(a=Mh(et),a!==null){if(o.flags|=128,b=!0,_=a.updateQueue,_!==null&&(o.updateQueue=_,o.flags|=4),Ej(_e,!0),_e.tail===null&&_e.tailMode==="hidden"&&!et.alternate&&!I)return S(o),null}else 2*B()-_e.renderingStartTime>Hj&&_!==1073741824&&(o.flags|=128,b=!0,Ej(_e,!1),o.lanes=4194304);_e.isBackwards?(et.sibling=o.child,o.child=et):(_=_e.last,_!==null?_.sibling=et:o.child=et,_e.last=et)}return _e.tail!==null?(o=_e.tail,_e.rendering=o,_e.tail=o.sibling,_e.renderingStartTime=B(),o.sibling=null,_=M.current,G(M,b?_&1|2:_&1),o):(S(o),null);case 22:case 23:return Ij(),b=o.memoizedState!==null,a!==null&&a.memoizedState!==null!==b&&(o.flags|=8192),b&&o.mode&1?gj&1073741824&&(S(o),o.subtreeFlags&6&&(o.flags|=8192)):S(o),null;case 24:return null;case 25:return null}throw Error(p$1(156,o.tag))}function Jj(a,o){switch(wg(o),o.tag){case 1:return Zf(o.type)&&$f(),a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 3:return Jh(),E(Wf),E(H),Oh(),a=o.flags,a&65536&&!(a&128)?(o.flags=a&-65537|128,o):null;case 5:return Lh(o),null;case 13:if(E(M),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error(p$1(340));Ig()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 19:return E(M),null;case 4:return Jh(),null;case 10:return Rg(o.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=null;function Mj(a,o){var _=a.ref;if(_!==null)if(typeof _=="function")try{_(null)}catch(b){W(a,o,b)}else _.current=null}function Nj(a,o,_){try{_()}catch(b){W(a,o,b)}}var Oj=!1;function Pj(a,o){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 b=_.getSelection&&_.getSelection();if(b&&b.rangeCount!==0){_=b.anchorNode;var $=b.anchorOffset,_e=b.focusNode;b=b.focusOffset;try{_.nodeType,_e.nodeType}catch{_=null;break e}var et=0,tt=-1,rt=-1,st=0,it=0,lt=a,at=null;t:for(;;){for(var ft;lt!==_||$!==0&&lt.nodeType!==3||(tt=et+$),lt!==_e||b!==0&&lt.nodeType!==3||(rt=et+b),lt.nodeType===3&&(et+=lt.nodeValue.length),(ft=lt.firstChild)!==null;)at=lt,lt=ft;for(;;){if(lt===a)break t;if(at===_&&++st===$&&(tt=et),at===_e&&++it===b&&(rt=et),(ft=lt.nextSibling)!==null)break;lt=at,at=lt.parentNode}lt=ft}_=tt===-1||rt===-1?null:{start:tt,end:rt}}else _=null}_=_||{start:0,end:0}}else _=null;for(Df={focusedElem:a,selectionRange:_},dd=!1,V=o;V!==null;)if(o=V,a=o.child,(o.subtreeFlags&1028)!==0&&a!==null)a.return=o,V=a;else for(;V!==null;){o=V;try{var ht=o.alternate;if(o.flags&1024)switch(o.tag){case 0:case 11:case 15:break;case 1:if(ht!==null){var pt=ht.memoizedProps,vt=ht.memoizedState,ut=o.stateNode,ot=ut.getSnapshotBeforeUpdate(o.elementType===o.type?pt:Lg(o.type,pt),vt);ut.__reactInternalSnapshotBeforeUpdate=ot}break;case 3:var nt=o.stateNode.containerInfo;nt.nodeType===1?nt.textContent="":nt.nodeType===9&&nt.documentElement&&nt.removeChild(nt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$1(163))}}catch(dt){W(o,o.return,dt)}if(a=o.sibling,a!==null){a.return=o.return,V=a;break}V=o.return}return ht=Oj,Oj=!1,ht}function Qj(a,o,_){var b=o.updateQueue;if(b=b!==null?b.lastEffect:null,b!==null){var $=b=b.next;do{if(($.tag&a)===a){var _e=$.destroy;$.destroy=void 0,_e!==void 0&&Nj(o,_,_e)}$=$.next}while($!==b)}}function Rj(a,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var _=o=o.next;do{if((_.tag&a)===a){var b=_.create;_.destroy=b()}_=_.next}while(_!==o)}}function Sj(a){var o=a.ref;if(o!==null){var _=a.stateNode;switch(a.tag){case 5:a=_;break;default:a=_}typeof o=="function"?o(a):o.current=a}}function Tj(a){var o=a.alternate;o!==null&&(a.alternate=null,Tj(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&(delete o[Of],delete o[Pf],delete o[of],delete o[Qf],delete o[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,o,_){var b=a.tag;if(b===5||b===6)a=a.stateNode,o?_.nodeType===8?_.parentNode.insertBefore(a,o):_.insertBefore(a,o):(_.nodeType===8?(o=_.parentNode,o.insertBefore(a,_)):(o=_,o.appendChild(a)),_=_._reactRootContainer,_!=null||o.onclick!==null||(o.onclick=Bf));else if(b!==4&&(a=a.child,a!==null))for(Wj(a,o,_),a=a.sibling;a!==null;)Wj(a,o,_),a=a.sibling}function Xj(a,o,_){var b=a.tag;if(b===5||b===6)a=a.stateNode,o?_.insertBefore(a,o):_.appendChild(a);else if(b!==4&&(a=a.child,a!==null))for(Xj(a,o,_),a=a.sibling;a!==null;)Xj(a,o,_),a=a.sibling}var X=null,Yj=!1;function Zj(a,o,_){for(_=_.child;_!==null;)ak(a,o,_),_=_.sibling}function ak(a,o,_){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,_)}catch{}switch(_.tag){case 5:U||Mj(_,o);case 6:var b=X,$=Yj;X=null,Zj(a,o,_),X=b,Yj=$,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:b=X,$=Yj,X=_.stateNode.containerInfo,Yj=!0,Zj(a,o,_),X=b,Yj=$;break;case 0:case 11:case 14:case 15:if(!U&&(b=_.updateQueue,b!==null&&(b=b.lastEffect,b!==null))){$=b=b.next;do{var _e=$,et=_e.destroy;_e=_e.tag,et!==void 0&&(_e&2||_e&4)&&Nj(_,o,et),$=$.next}while($!==b)}Zj(a,o,_);break;case 1:if(!U&&(Mj(_,o),b=_.stateNode,typeof b.componentWillUnmount=="function"))try{b.props=_.memoizedProps,b.state=_.memoizedState,b.componentWillUnmount()}catch(tt){W(_,o,tt)}Zj(a,o,_);break;case 21:Zj(a,o,_);break;case 22:_.mode&1?(U=(b=U)||_.memoizedState!==null,Zj(a,o,_),U=b):Zj(a,o,_);break;default:Zj(a,o,_)}}function bk(a){var o=a.updateQueue;if(o!==null){a.updateQueue=null;var _=a.stateNode;_===null&&(_=a.stateNode=new Lj),o.forEach(function(b){var $=ck.bind(null,a,b);_.has(b)||(_.add(b),b.then($,$))})}}function dk(a,o){var _=o.deletions;if(_!==null)for(var b=0;b<_.length;b++){var $=_[b];try{var _e=a,et=o,tt=et;e:for(;tt!==null;){switch(tt.tag){case 5:X=tt.stateNode,Yj=!1;break e;case 3:X=tt.stateNode.containerInfo,Yj=!0;break e;case 4:X=tt.stateNode.containerInfo,Yj=!0;break e}tt=tt.return}if(X===null)throw Error(p$1(160));ak(_e,et,$),X=null,Yj=!1;var rt=$.alternate;rt!==null&&(rt.return=null),$.return=null}catch(st){W($,o,st)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)ek(o,a),o=o.sibling}function ek(a,o){var _=a.alternate,b=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(dk(o,a),fk(a),b&4){try{Qj(3,a,a.return),Rj(3,a)}catch(pt){W(a,a.return,pt)}try{Qj(5,a,a.return)}catch(pt){W(a,a.return,pt)}}break;case 1:dk(o,a),fk(a),b&512&&_!==null&&Mj(_,_.return);break;case 5:if(dk(o,a),fk(a),b&512&&_!==null&&Mj(_,_.return),a.flags&32){var $=a.stateNode;try{ob($,"")}catch(pt){W(a,a.return,pt)}}if(b&4&&($=a.stateNode,$!=null)){var _e=a.memoizedProps,et=_!==null?_.memoizedProps:_e,tt=a.type,rt=a.updateQueue;if(a.updateQueue=null,rt!==null)try{tt==="input"&&_e.type==="radio"&&_e.name!=null&&ab($,_e),vb(tt,et);var st=vb(tt,_e);for(et=0;et<rt.length;et+=2){var it=rt[et],lt=rt[et+1];it==="style"?sb($,lt):it==="dangerouslySetInnerHTML"?nb($,lt):it==="children"?ob($,lt):ta($,it,lt,st)}switch(tt){case"input":bb($,_e);break;case"textarea":ib($,_e);break;case"select":var at=$._wrapperState.wasMultiple;$._wrapperState.wasMultiple=!!_e.multiple;var ft=_e.value;ft!=null?fb($,!!_e.multiple,ft,!1):at!==!!_e.multiple&&(_e.defaultValue!=null?fb($,!!_e.multiple,_e.defaultValue,!0):fb($,!!_e.multiple,_e.multiple?[]:"",!1))}$[Pf]=_e}catch(pt){W(a,a.return,pt)}}break;case 6:if(dk(o,a),fk(a),b&4){if(a.stateNode===null)throw Error(p$1(162));$=a.stateNode,_e=a.memoizedProps;try{$.nodeValue=_e}catch(pt){W(a,a.return,pt)}}break;case 3:if(dk(o,a),fk(a),b&4&&_!==null&&_.memoizedState.isDehydrated)try{bd(o.containerInfo)}catch(pt){W(a,a.return,pt)}break;case 4:dk(o,a),fk(a);break;case 13:dk(o,a),fk(a),$=a.child,$.flags&8192&&(_e=$.memoizedState!==null,$.stateNode.isHidden=_e,!_e||$.alternate!==null&&$.alternate.memoizedState!==null||(gk=B())),b&4&&bk(a);break;case 22:if(it=_!==null&&_.memoizedState!==null,a.mode&1?(U=(st=U)||it,dk(o,a),U=st):dk(o,a),fk(a),b&8192){if(st=a.memoizedState!==null,(a.stateNode.isHidden=st)&&!it&&a.mode&1)for(V=a,it=a.child;it!==null;){for(lt=V=it;V!==null;){switch(at=V,ft=at.child,at.tag){case 0:case 11:case 14:case 15:Qj(4,at,at.return);break;case 1:Mj(at,at.return);var ht=at.stateNode;if(typeof ht.componentWillUnmount=="function"){b=at,_=at.return;try{o=b,ht.props=o.memoizedProps,ht.state=o.memoizedState,ht.componentWillUnmount()}catch(pt){W(b,_,pt)}}break;case 5:Mj(at,at.return);break;case 22:if(at.memoizedState!==null){hk(lt);continue}}ft!==null?(ft.return=at,V=ft):hk(lt)}it=it.sibling}e:for(it=null,lt=a;;){if(lt.tag===5){if(it===null){it=lt;try{$=lt.stateNode,st?(_e=$.style,typeof _e.setProperty=="function"?_e.setProperty("display","none","important"):_e.display="none"):(tt=lt.stateNode,rt=lt.memoizedProps.style,et=rt!=null&&rt.hasOwnProperty("display")?rt.display:null,tt.style.display=rb("display",et))}catch(pt){W(a,a.return,pt)}}}else if(lt.tag===6){if(it===null)try{lt.stateNode.nodeValue=st?"":lt.memoizedProps}catch(pt){W(a,a.return,pt)}}else if((lt.tag!==22&&lt.tag!==23||lt.memoizedState===null||lt===a)&&lt.child!==null){lt.child.return=lt,lt=lt.child;continue}if(lt===a)break e;for(;lt.sibling===null;){if(lt.return===null||lt.return===a)break e;it===lt&&(it=null),lt=lt.return}it===lt&&(it=null),lt.sibling.return=lt.return,lt=lt.sibling}}break;case 19:dk(o,a),fk(a),b&4&&bk(a);break;case 21:break;default:dk(o,a),fk(a)}}function fk(a){var o=a.flags;if(o&2){try{e:{for(var _=a.return;_!==null;){if(Uj(_)){var b=_;break e}_=_.return}throw Error(p$1(160))}switch(b.tag){case 5:var $=b.stateNode;b.flags&32&&(ob($,""),b.flags&=-33);var _e=Vj(a);Xj(a,_e,$);break;case 3:case 4:var et=b.stateNode.containerInfo,tt=Vj(a);Wj(a,tt,et);break;default:throw Error(p$1(161))}}catch(rt){W(a,a.return,rt)}a.flags&=-3}o&4096&&(a.flags&=-4097)}function ik(a,o,_){V=a,jk(a)}function jk(a,o,_){for(var b=(a.mode&1)!==0;V!==null;){var $=V,_e=$.child;if($.tag===22&&b){var et=$.memoizedState!==null||Kj;if(!et){var tt=$.alternate,rt=tt!==null&&tt.memoizedState!==null||U;tt=Kj;var st=U;if(Kj=et,(U=rt)&&!st)for(V=$;V!==null;)et=V,rt=et.child,et.tag===22&&et.memoizedState!==null?kk($):rt!==null?(rt.return=et,V=rt):kk($);for(;_e!==null;)V=_e,jk(_e),_e=_e.sibling;V=$,Kj=tt,U=st}lk(a)}else $.subtreeFlags&8772&&_e!==null?(_e.return=$,V=_e):lk(a)}}function lk(a){for(;V!==null;){var o=V;if(o.flags&8772){var _=o.alternate;try{if(o.flags&8772)switch(o.tag){case 0:case 11:case 15:U||Rj(5,o);break;case 1:var b=o.stateNode;if(o.flags&4&&!U)if(_===null)b.componentDidMount();else{var $=o.elementType===o.type?_.memoizedProps:Lg(o.type,_.memoizedProps);b.componentDidUpdate($,_.memoizedState,b.__reactInternalSnapshotBeforeUpdate)}var _e=o.updateQueue;_e!==null&&ih(o,_e,b);break;case 3:var et=o.updateQueue;if(et!==null){if(_=null,o.child!==null)switch(o.child.tag){case 5:_=o.child.stateNode;break;case 1:_=o.child.stateNode}ih(o,et,_)}break;case 5:var tt=o.stateNode;if(_===null&&o.flags&4){_=tt;var rt=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":rt.autoFocus&&_.focus();break;case"img":rt.src&&(_.src=rt.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var st=o.alternate;if(st!==null){var it=st.memoizedState;if(it!==null){var lt=it.dehydrated;lt!==null&&bd(lt)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(p$1(163))}U||o.flags&512&&Sj(o)}catch(at){W(o,o.return,at)}}if(o===a){V=null;break}if(_=o.sibling,_!==null){_.return=o.return,V=_;break}V=o.return}}function hk(a){for(;V!==null;){var o=V;if(o===a){V=null;break}var _=o.sibling;if(_!==null){_.return=o.return,V=_;break}V=o.return}}function kk(a){for(;V!==null;){var o=V;try{switch(o.tag){case 0:case 11:case 15:var _=o.return;try{Rj(4,o)}catch(rt){W(o,_,rt)}break;case 1:var b=o.stateNode;if(typeof b.componentDidMount=="function"){var $=o.return;try{b.componentDidMount()}catch(rt){W(o,$,rt)}}var _e=o.return;try{Sj(o)}catch(rt){W(o,_e,rt)}break;case 5:var et=o.return;try{Sj(o)}catch(rt){W(o,et,rt)}}}catch(rt){W(o,o.return,rt)}if(o===a){V=null;break}var tt=o.sibling;if(tt!==null){tt.return=o.return,V=tt;break}V=o.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$1(){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,o,_,b){if(50<zk)throw zk=0,Ak=null,Error(p$1(185));Ac(a,_,b),(!(K&2)||a!==R)&&(a===R&&(!(K&2)&&(rk|=_),T===4&&Dk(a,Z)),Ek(a,b),_===1&&K===0&&!(o.mode&1)&&(Hj=B()+500,fg&&jg()))}function Ek(a,o){var _=a.callbackNode;wc(a,o);var b=uc(a,a===R?Z:0);if(b===0)_!==null&&bc(_),a.callbackNode=null,a.callbackPriority=0;else if(o=b&-b,a.callbackPriority!==o){if(_!=null&&bc(_),o===1)a.tag===0?ig(Fk.bind(null,a)):hg(Fk.bind(null,a)),Jf(function(){!(K&6)&&jg()}),_=null;else{switch(Dc(b)){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=o,a.callbackNode=_}}function Hk(a,o){if(Bk=-1,Ck=0,K&6)throw Error(p$1(327));var _=a.callbackNode;if(Ik()&&a.callbackNode!==_)return null;var b=uc(a,a===R?Z:0);if(b===0)return null;if(b&30||b&a.expiredLanes||o)o=Jk(a,b);else{o=b;var $=K;K|=2;var _e=Kk();(R!==a||Z!==o)&&(vk=null,Hj=B()+500,Lk(a,o));do try{Mk();break}catch(tt){Nk(a,tt)}while(!0);Qg(),nk.current=_e,K=$,Y!==null?o=0:(R=null,Z=0,o=T)}if(o!==0){if(o===2&&($=xc(a),$!==0&&(b=$,o=Ok(a,$))),o===1)throw _=qk,Lk(a,0),Dk(a,b),Ek(a,B()),_;if(o===6)Dk(a,b);else{if($=a.current.alternate,!(b&30)&&!Pk($)&&(o=Jk(a,b),o===2&&(_e=xc(a),_e!==0&&(b=_e,o=Ok(a,_e))),o===1))throw _=qk,Lk(a,0),Dk(a,b),Ek(a,B()),_;switch(a.finishedWork=$,a.finishedLanes=b,o){case 0:case 1:throw Error(p$1(345));case 2:Qk(a,uk,vk);break;case 3:if(Dk(a,b),(b&130023424)===b&&(o=gk+500-B(),10<o)){if(uc(a,0)!==0)break;if($=a.suspendedLanes,($&b)!==b){L$1(),a.pingedLanes|=a.suspendedLanes&$;break}a.timeoutHandle=Ff(Qk.bind(null,a,uk,vk),o);break}Qk(a,uk,vk);break;case 4:if(Dk(a,b),(b&4194240)===b)break;for(o=a.eventTimes,$=-1;0<b;){var et=31-oc(b);_e=1<<et,et=o[et],et>$&&($=et),b&=~_e}if(b=$,b=B()-b,b=(120>b?120:480>b?480:1080>b?1080:1920>b?1920:3e3>b?3e3:4320>b?4320:1960*mk(b/1960))-b,10<b){a.timeoutHandle=Ff(Qk.bind(null,a,uk,vk),b);break}Qk(a,uk,vk);break;case 5:Qk(a,uk,vk);break;default:throw Error(p$1(329))}}}return Ek(a,B()),a.callbackNode===_?Hk.bind(null,a):null}function Ok(a,o){var _=tk;return a.current.memoizedState.isDehydrated&&(Lk(a,o).flags|=256),a=Jk(a,o),a!==2&&(o=uk,uk=_,o!==null&&Gj(o)),a}function Gj(a){uk===null?uk=a:uk.push.apply(uk,a)}function Pk(a){for(var o=a;;){if(o.flags&16384){var _=o.updateQueue;if(_!==null&&(_=_.stores,_!==null))for(var b=0;b<_.length;b++){var $=_[b],_e=$.getSnapshot;$=$.value;try{if(!He(_e(),$))return!1}catch{return!1}}}if(_=o.child,o.subtreeFlags&16384&&_!==null)_.return=o,o=_;else{if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Dk(a,o){for(o&=~sk,o&=~rk,a.suspendedLanes|=o,a.pingedLanes&=~o,a=a.expirationTimes;0<o;){var _=31-oc(o),b=1<<_;a[_]=-1,o&=~b}}function Fk(a){if(K&6)throw Error(p$1(327));Ik();var o=uc(a,0);if(!(o&1))return Ek(a,B()),null;var _=Jk(a,o);if(a.tag!==0&&_===2){var b=xc(a);b!==0&&(o=b,_=Ok(a,b))}if(_===1)throw _=qk,Lk(a,0),Dk(a,o),Ek(a,B()),_;if(_===6)throw Error(p$1(345));return a.finishedWork=a.current.alternate,a.finishedLanes=o,Qk(a,uk,vk),Ek(a,B()),null}function Rk(a,o){var _=K;K|=1;try{return a(o)}finally{K=_,K===0&&(Hj=B()+500,fg&&jg())}}function Sk(a){xk!==null&&xk.tag===0&&!(K&6)&&Ik();var o=K;K|=1;var _=pk.transition,b=C;try{if(pk.transition=null,C=1,a)return a()}finally{C=b,pk.transition=_,K=o,!(K&6)&&jg()}}function Ij(){gj=fj.current,E(fj)}function Lk(a,o){a.finishedWork=null,a.finishedLanes=0;var _=a.timeoutHandle;if(_!==-1&&(a.timeoutHandle=-1,Gf(_)),Y!==null)for(_=Y.return;_!==null;){var b=_;switch(wg(b),b.tag){case 1:b=b.type.childContextTypes,b!=null&&$f();break;case 3:Jh(),E(Wf),E(H),Oh();break;case 5:Lh(b);break;case 4:Jh();break;case 13:E(M);break;case 19:E(M);break;case 10:Rg(b.type._context);break;case 22:case 23:Ij()}_=_.return}if(R=a,Y=a=wh(a.current,null),Z=gj=o,T=0,qk=null,sk=rk=hh=0,uk=tk=null,Wg!==null){for(o=0;o<Wg.length;o++)if(_=Wg[o],b=_.interleaved,b!==null){_.interleaved=null;var $=b.next,_e=_.pending;if(_e!==null){var et=_e.next;_e.next=$,b.next=et}_.pending=b}Wg=null}return a}function Nk(a,o){do{var _=Y;try{if(Qg(),Ph.current=ai,Sh){for(var b=N.memoizedState;b!==null;){var $=b.queue;$!==null&&($.pending=null),b=b.next}Sh=!1}if(Rh=0,P=O=N=null,Th=!1,Uh=0,ok.current=null,_===null||_.return===null){T=1,qk=o,Y=null;break}e:{var _e=a,et=_.return,tt=_,rt=o;if(o=Z,tt.flags|=32768,rt!==null&&typeof rt=="object"&&typeof rt.then=="function"){var st=rt,it=tt,lt=it.tag;if(!(it.mode&1)&&(lt===0||lt===11||lt===15)){var at=it.alternate;at?(it.updateQueue=at.updateQueue,it.memoizedState=at.memoizedState,it.lanes=at.lanes):(it.updateQueue=null,it.memoizedState=null)}var ft=Vi(et);if(ft!==null){ft.flags&=-257,Wi(ft,et,tt,_e,o),ft.mode&1&&Ti(_e,st,o),o=ft,rt=st;var ht=o.updateQueue;if(ht===null){var pt=new Set;pt.add(rt),o.updateQueue=pt}else ht.add(rt);break e}else{if(!(o&1)){Ti(_e,st,o),uj();break e}rt=Error(p$1(426))}}else if(I&&tt.mode&1){var vt=Vi(et);if(vt!==null){!(vt.flags&65536)&&(vt.flags|=256),Wi(vt,et,tt,_e,o),Jg(Ki(rt,tt));break e}}_e=rt=Ki(rt,tt),T!==4&&(T=2),tk===null?tk=[_e]:tk.push(_e),_e=et;do{switch(_e.tag){case 3:_e.flags|=65536,o&=-o,_e.lanes|=o;var ut=Oi(_e,rt,o);fh(_e,ut);break e;case 1:tt=rt;var ot=_e.type,nt=_e.stateNode;if(!(_e.flags&128)&&(typeof ot.getDerivedStateFromError=="function"||nt!==null&&typeof nt.componentDidCatch=="function"&&(Si===null||!Si.has(nt)))){_e.flags|=65536,o&=-o,_e.lanes|=o;var dt=Ri(_e,tt,o);fh(_e,dt);break e}}_e=_e.return}while(_e!==null)}Tk(_)}catch(yt){o=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,o){var _=K;K|=2;var b=Kk();(R!==a||Z!==o)&&(vk=null,Lk(a,o));do try{Uk();break}catch($){Nk(a,$)}while(!0);if(Qg(),K=_,nk.current=b,Y!==null)throw Error(p$1(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 o=Wk(a.alternate,a,gj);a.memoizedProps=a.pendingProps,o===null?Tk(a):Y=o,ok.current=null}function Tk(a){var o=a;do{var _=o.alternate;if(a=o.return,o.flags&32768){if(_=Jj(_,o),_!==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(_,o,gj),_!==null){Y=_;return}if(o=o.sibling,o!==null){Y=o;return}Y=o=a}while(o!==null);T===0&&(T=5)}function Qk(a,o,_){var b=C,$=pk.transition;try{pk.transition=null,C=1,Xk(a,o,_,b)}finally{pk.transition=$,C=b}return null}function Xk(a,o,_,b){do Ik();while(xk!==null);if(K&6)throw Error(p$1(327));_=a.finishedWork;var $=a.finishedLanes;if(_===null)return null;if(a.finishedWork=null,a.finishedLanes=0,_===a.current)throw Error(p$1(177));a.callbackNode=null,a.callbackPriority=0;var _e=_.lanes|_.childLanes;if(Bc(a,_e),a===R&&(Y=R=null,Z=0),!(_.subtreeFlags&2064)&&!(_.flags&2064)||wk||(wk=!0,Gk(hc,function(){return Ik(),null})),_e=(_.flags&15990)!==0,_.subtreeFlags&15990||_e){_e=pk.transition,pk.transition=null;var et=C;C=1;var tt=K;K|=4,ok.current=null,Pj(a,_),ek(_,a),Oe(Df),dd=!!Cf,Df=Cf=null,a.current=_,ik(_),dc(),K=tt,C=et,pk.transition=_e}else a.current=_;if(wk&&(wk=!1,xk=a,yk=$),_e=a.pendingLanes,_e===0&&(Si=null),mc(_.stateNode),Ek(a,B()),o!==null)for(b=a.onRecoverableError,_=0;_<o.length;_++)$=o[_],b($.value,{componentStack:$.stack,digest:$.digest});if(Pi)throw Pi=!1,a=Qi,Qi=null,a;return yk&1&&a.tag!==0&&Ik(),_e=a.pendingLanes,_e&1?a===Ak?zk++:(zk=0,Ak=a):zk=0,jg(),null}function Ik(){if(xk!==null){var a=Dc(yk),o=pk.transition,_=C;try{if(pk.transition=null,C=16>a?16:a,xk===null)var b=!1;else{if(a=xk,xk=null,yk=0,K&6)throw Error(p$1(331));var $=K;for(K|=4,V=a.current;V!==null;){var _e=V,et=_e.child;if(V.flags&16){var tt=_e.deletions;if(tt!==null){for(var rt=0;rt<tt.length;rt++){var st=tt[rt];for(V=st;V!==null;){var it=V;switch(it.tag){case 0:case 11:case 15:Qj(8,it,_e)}var lt=it.child;if(lt!==null)lt.return=it,V=lt;else for(;V!==null;){it=V;var at=it.sibling,ft=it.return;if(Tj(it),it===st){V=null;break}if(at!==null){at.return=ft,V=at;break}V=ft}}}var ht=_e.alternate;if(ht!==null){var pt=ht.child;if(pt!==null){ht.child=null;do{var vt=pt.sibling;pt.sibling=null,pt=vt}while(pt!==null)}}V=_e}}if(_e.subtreeFlags&2064&&et!==null)et.return=_e,V=et;else e:for(;V!==null;){if(_e=V,_e.flags&2048)switch(_e.tag){case 0:case 11:case 15:Qj(9,_e,_e.return)}var ut=_e.sibling;if(ut!==null){ut.return=_e.return,V=ut;break e}V=_e.return}}var ot=a.current;for(V=ot;V!==null;){et=V;var nt=et.child;if(et.subtreeFlags&2064&&nt!==null)nt.return=et,V=nt;else e:for(et=ot;V!==null;){if(tt=V,tt.flags&2048)try{switch(tt.tag){case 0:case 11:case 15:Rj(9,tt)}}catch(yt){W(tt,tt.return,yt)}if(tt===et){V=null;break e}var dt=tt.sibling;if(dt!==null){dt.return=tt.return,V=dt;break e}V=tt.return}}if(K=$,jg(),lc&&typeof lc.onPostCommitFiberRoot=="function")try{lc.onPostCommitFiberRoot(kc,a)}catch{}b=!0}return b}finally{C=_,pk.transition=o}}return!1}function Yk(a,o,_){o=Ki(_,o),o=Oi(a,o,1),a=dh(a,o,1),o=L$1(),a!==null&&(Ac(a,1,o),Ek(a,o))}function W(a,o,_){if(a.tag===3)Yk(a,a,_);else for(;o!==null;){if(o.tag===3){Yk(o,a,_);break}else if(o.tag===1){var b=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&(Si===null||!Si.has(b))){a=Ki(_,a),a=Ri(o,a,1),o=dh(o,a,1),a=L$1(),o!==null&&(Ac(o,1,a),Ek(o,a));break}}o=o.return}}function Ui(a,o,_){var b=a.pingCache;b!==null&&b.delete(o),o=L$1(),a.pingedLanes|=a.suspendedLanes&_,R===a&&(Z&_)===_&&(T===4||T===3&&(Z&130023424)===Z&&500>B()-gk?Lk(a,0):sk|=_),Ek(a,o)}function Zk(a,o){o===0&&(a.mode&1?(o=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):o=1);var _=L$1();a=Zg(a,o),a!==null&&(Ac(a,o,_),Ek(a,_))}function vj(a){var o=a.memoizedState,_=0;o!==null&&(_=o.retryLane),Zk(a,_)}function ck(a,o){var _=0;switch(a.tag){case 13:var b=a.stateNode,$=a.memoizedState;$!==null&&(_=$.retryLane);break;case 19:b=a.stateNode;break;default:throw Error(p$1(314))}b!==null&&b.delete(o),Zk(a,_)}var Wk;Wk=function(a,o,_){if(a!==null)if(a.memoizedProps!==o.pendingProps||Wf.current)Ug=!0;else{if(!(a.lanes&_)&&!(o.flags&128))return Ug=!1,zj(a,o,_);Ug=!!(a.flags&131072)}else Ug=!1,I&&o.flags&1048576&&ug(o,ng,o.index);switch(o.lanes=0,o.tag){case 2:var b=o.type;jj(a,o),a=o.pendingProps;var $=Yf(o,H.current);Tg(o,_),$=Xh(null,o,b,a,$,_);var _e=bi();return o.flags|=1,typeof $=="object"&&$!==null&&typeof $.render=="function"&&$.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,Zf(b)?(_e=!0,cg(o)):_e=!1,o.memoizedState=$.state!==null&&$.state!==void 0?$.state:null,ah(o),$.updater=nh,o.stateNode=$,$._reactInternals=o,rh(o,b,a,_),o=kj(null,o,b,!0,_e,_)):(o.tag=0,I&&_e&&vg(o),Yi(null,o,$,_),o=o.child),o;case 16:b=o.elementType;e:{switch(jj(a,o),a=o.pendingProps,$=b._init,b=$(b._payload),o.type=b,$=o.tag=$k(b),a=Lg(b,a),$){case 0:o=dj(null,o,b,a,_);break e;case 1:o=ij(null,o,b,a,_);break e;case 11:o=Zi(null,o,b,a,_);break e;case 14:o=aj(null,o,b,Lg(b.type,a),_);break e}throw Error(p$1(306,b,""))}return o;case 0:return b=o.type,$=o.pendingProps,$=o.elementType===b?$:Lg(b,$),dj(a,o,b,$,_);case 1:return b=o.type,$=o.pendingProps,$=o.elementType===b?$:Lg(b,$),ij(a,o,b,$,_);case 3:e:{if(lj(o),a===null)throw Error(p$1(387));b=o.pendingProps,_e=o.memoizedState,$=_e.element,bh(a,o),gh(o,b,null,_);var et=o.memoizedState;if(b=et.element,_e.isDehydrated)if(_e={element:b,isDehydrated:!1,cache:et.cache,pendingSuspenseBoundaries:et.pendingSuspenseBoundaries,transitions:et.transitions},o.updateQueue.baseState=_e,o.memoizedState=_e,o.flags&256){$=Ki(Error(p$1(423)),o),o=mj(a,o,b,_,$);break e}else if(b!==$){$=Ki(Error(p$1(424)),o),o=mj(a,o,b,_,$);break e}else for(yg=Lf(o.stateNode.containerInfo.firstChild),xg=o,I=!0,zg=null,_=Ch(o,null,b,_),o.child=_;_;)_.flags=_.flags&-3|4096,_=_.sibling;else{if(Ig(),b===$){o=$i(a,o,_);break e}Yi(a,o,b,_)}o=o.child}return o;case 5:return Kh(o),a===null&&Eg(o),b=o.type,$=o.pendingProps,_e=a!==null?a.memoizedProps:null,et=$.children,Ef(b,$)?et=null:_e!==null&&Ef(b,_e)&&(o.flags|=32),hj(a,o),Yi(a,o,et,_),o.child;case 6:return a===null&&Eg(o),null;case 13:return pj(a,o,_);case 4:return Ih(o,o.stateNode.containerInfo),b=o.pendingProps,a===null?o.child=Bh(o,null,b,_):Yi(a,o,b,_),o.child;case 11:return b=o.type,$=o.pendingProps,$=o.elementType===b?$:Lg(b,$),Zi(a,o,b,$,_);case 7:return Yi(a,o,o.pendingProps,_),o.child;case 8:return Yi(a,o,o.pendingProps.children,_),o.child;case 12:return Yi(a,o,o.pendingProps.children,_),o.child;case 10:e:{if(b=o.type._context,$=o.pendingProps,_e=o.memoizedProps,et=$.value,G(Mg,b._currentValue),b._currentValue=et,_e!==null)if(He(_e.value,et)){if(_e.children===$.children&&!Wf.current){o=$i(a,o,_);break e}}else for(_e=o.child,_e!==null&&(_e.return=o);_e!==null;){var tt=_e.dependencies;if(tt!==null){et=_e.child;for(var rt=tt.firstContext;rt!==null;){if(rt.context===b){if(_e.tag===1){rt=ch(-1,_&-_),rt.tag=2;var st=_e.updateQueue;if(st!==null){st=st.shared;var it=st.pending;it===null?rt.next=rt:(rt.next=it.next,it.next=rt),st.pending=rt}}_e.lanes|=_,rt=_e.alternate,rt!==null&&(rt.lanes|=_),Sg(_e.return,_,o),tt.lanes|=_;break}rt=rt.next}}else if(_e.tag===10)et=_e.type===o.type?null:_e.child;else if(_e.tag===18){if(et=_e.return,et===null)throw Error(p$1(341));et.lanes|=_,tt=et.alternate,tt!==null&&(tt.lanes|=_),Sg(et,_,o),et=_e.sibling}else et=_e.child;if(et!==null)et.return=_e;else for(et=_e;et!==null;){if(et===o){et=null;break}if(_e=et.sibling,_e!==null){_e.return=et.return,et=_e;break}et=et.return}_e=et}Yi(a,o,$.children,_),o=o.child}return o;case 9:return $=o.type,b=o.pendingProps.children,Tg(o,_),$=Vg($),b=b($),o.flags|=1,Yi(a,o,b,_),o.child;case 14:return b=o.type,$=Lg(b,o.pendingProps),$=Lg(b.type,$),aj(a,o,b,$,_);case 15:return cj(a,o,o.type,o.pendingProps,_);case 17:return b=o.type,$=o.pendingProps,$=o.elementType===b?$:Lg(b,$),jj(a,o),o.tag=1,Zf(b)?(a=!0,cg(o)):a=!1,Tg(o,_),ph(o,b,$),rh(o,b,$,_),kj(null,o,b,!0,a,_);case 19:return yj(a,o,_);case 22:return ej(a,o,_)}throw Error(p$1(156,o.tag))};function Gk(a,o){return ac(a,o)}function al(a,o,_,b){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=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(a,o,_,b){return new al(a,o,_,b)}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,o){var _=a.alternate;return _===null?(_=Bg(a.tag,o,a.key,a.mode),_.elementType=a.elementType,_.type=a.type,_.stateNode=a.stateNode,_.alternate=a,a.alternate=_):(_.pendingProps=o,_.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,o=a.dependencies,_.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},_.sibling=a.sibling,_.index=a.index,_.ref=a.ref,_}function yh(a,o,_,b,$,_e){var et=2;if(b=a,typeof a=="function")bj(a)&&(et=1);else if(typeof a=="string")et=5;else e:switch(a){case ya:return Ah(_.children,$,_e,o);case za:et=8,$|=8;break;case Aa:return a=Bg(12,_,o,$|2),a.elementType=Aa,a.lanes=_e,a;case Ea:return a=Bg(13,_,o,$),a.elementType=Ea,a.lanes=_e,a;case Fa:return a=Bg(19,_,o,$),a.elementType=Fa,a.lanes=_e,a;case Ia:return qj(_,$,_e,o);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case Ba:et=10;break e;case Ca:et=9;break e;case Da:et=11;break e;case Ga:et=14;break e;case Ha:et=16,b=null;break e}throw Error(p$1(130,a==null?a:typeof a,""))}return o=Bg(et,_,o,$),o.elementType=a,o.type=b,o.lanes=_e,o}function Ah(a,o,_,b){return a=Bg(7,a,b,o),a.lanes=_,a}function qj(a,o,_,b){return a=Bg(22,a,b,o),a.elementType=Ia,a.lanes=_,a.stateNode={isHidden:!1},a}function xh(a,o,_){return a=Bg(6,a,null,o),a.lanes=_,a}function zh(a,o,_){return o=Bg(4,a.children!==null?a.children:[],a.key,o),o.lanes=_,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}function bl(a,o,_,b,$){this.tag=o,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=b,this.onRecoverableError=$,this.mutableSourceEagerHydrationData=null}function cl(a,o,_,b,$,_e,et,tt,rt){return a=new bl(a,o,_,tt,rt),o===1?(o=1,_e===!0&&(o|=8)):o=0,_e=Bg(3,null,null,o),a.current=_e,_e.stateNode=a,_e.memoizedState={element:b,isDehydrated:_,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(_e),a}function dl(a,o,_){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wa,key:b==null?null:""+b,children:a,containerInfo:o,implementation:_}}function el(a){if(!a)return Vf;a=a._reactInternals;e:{if(Vb(a)!==a||a.tag!==1)throw Error(p$1(170));var o=a;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(Zf(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(p$1(171))}if(a.tag===1){var _=a.type;if(Zf(_))return bg(a,_,o)}return o}function fl(a,o,_,b,$,_e,et,tt,rt){return a=cl(_,b,!0,a,$,_e,et,tt,rt),a.context=el(null),_=a.current,b=L$1(),$=lh(_),_e=ch(b,$),_e.callback=o??null,dh(_,_e,$),a.current.lanes=$,Ac(a,$,b),Ek(a,b),a}function gl(a,o,_,b){var $=o.current,_e=L$1(),et=lh($);return _=el(_),o.context===null?o.context=_:o.pendingContext=_,o=ch(_e,et),o.payload={element:a},b=b===void 0?null:b,b!==null&&(o.callback=b),a=dh($,o,et),a!==null&&(mh(a,$,et,_e),eh(a,$,et)),et}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(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var _=a.retryLane;a.retryLane=_!==0&&_<o?_:o}}function jl(a,o){il(a,o),(a=a.alternate)&&il(a,o)}function kl(){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 o=this._internalRoot;if(o===null)throw Error(p$1(409));gl(a,o,null,null)};nl.prototype.unmount=ml.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var o=a.containerInfo;Sk(function(){gl(null,a,null,null)}),o[uf]=null}};function nl(a){this._internalRoot=a}nl.prototype.unstable_scheduleHydration=function(a){if(a){var o=Hc();a={blockedOn:null,target:a,priority:o};for(var _=0;_<Qc.length&&o!==0&&o<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,o,_,b,$){if($){if(typeof b=="function"){var _e=b;b=function(){var st=hl(et);_e.call(st)}}var et=fl(o,b,a,0,null,!1,!1,"",ql);return a._reactRootContainer=et,a[uf]=et.current,sf(a.nodeType===8?a.parentNode:a),Sk(),et}for(;$=a.lastChild;)a.removeChild($);if(typeof b=="function"){var tt=b;b=function(){var st=hl(rt);tt.call(st)}}var rt=cl(a,0,!1,null,null,!1,!1,"",ql);return a._reactRootContainer=rt,a[uf]=rt.current,sf(a.nodeType===8?a.parentNode:a),Sk(function(){gl(o,rt,_,b)}),rt}function sl(a,o,_,b,$){var _e=_._reactRootContainer;if(_e){var et=_e;if(typeof $=="function"){var tt=$;$=function(){var rt=hl(et);tt.call(rt)}}gl(o,et,a,$)}else et=rl(_,o,a,$,b);return hl(et)}Ec=function(a){switch(a.tag){case 3:var o=a.stateNode;if(o.current.memoizedState.isDehydrated){var _=tc(o.pendingLanes);_!==0&&(Cc(o,_|1),Ek(o,B()),!(K&6)&&(Hj=B()+500,jg()))}break;case 13:Sk(function(){var b=Zg(a,1);if(b!==null){var $=L$1();mh(b,a,1,$)}}),jl(a,1)}};Fc=function(a){if(a.tag===13){var o=Zg(a,134217728);if(o!==null){var _=L$1();mh(o,a,134217728,_)}jl(a,134217728)}};Gc=function(a){if(a.tag===13){var o=lh(a),_=Zg(a,o);if(_!==null){var b=L$1();mh(_,a,o,b)}jl(a,o)}};Hc=function(){return C};Ic=function(a,o){var _=C;try{return C=a,o()}finally{C=_}};yb=function(a,o,_){switch(o){case"input":if(bb(a,_),o=_.name,_.type==="radio"&&o!=null){for(_=a;_.parentNode;)_=_.parentNode;for(_=_.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<_.length;o++){var b=_[o];if(b!==a&&b.form===a.form){var $=Db(b);if(!$)throw Error(p$1(90));Wa(b),bb(b,$)}}}break;case"textarea":ib(a,_);break;case"select":o=_.value,o!=null&&fb(a,!!_.multiple,o,!1)}};Gb=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,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,o){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ol(o))throw Error(p$1(200));return dl(a,o,null,_)};reactDom_production_min.createRoot=function(a,o){if(!ol(a))throw Error(p$1(299));var _=!1,b="",$=ll;return o!=null&&(o.unstable_strictMode===!0&&(_=!0),o.identifierPrefix!==void 0&&(b=o.identifierPrefix),o.onRecoverableError!==void 0&&($=o.onRecoverableError)),o=cl(a,1,!1,null,null,_,!1,b,$),a[uf]=o.current,sf(a.nodeType===8?a.parentNode:a),new ml(o)};reactDom_production_min.findDOMNode=function(a){if(a==null)return null;if(a.nodeType===1)return a;var o=a._reactInternals;if(o===void 0)throw typeof a.render=="function"?Error(p$1(188)):(a=Object.keys(a).join(","),Error(p$1(268,a)));return a=Zb(o),a=a===null?null:a.stateNode,a};reactDom_production_min.flushSync=function(a){return Sk(a)};reactDom_production_min.hydrate=function(a,o,_){if(!pl(o))throw Error(p$1(200));return sl(null,a,o,!0,_)};reactDom_production_min.hydrateRoot=function(a,o,_){if(!ol(a))throw Error(p$1(405));var b=_!=null&&_.hydratedSources||null,$=!1,_e="",et=ll;if(_!=null&&(_.unstable_strictMode===!0&&($=!0),_.identifierPrefix!==void 0&&(_e=_.identifierPrefix),_.onRecoverableError!==void 0&&(et=_.onRecoverableError)),o=fl(o,null,a,1,_??null,$,!1,_e,et),a[uf]=o.current,sf(a),b)for(a=0;a<b.length;a++)_=b[a],$=_._getVersion,$=$(_._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[_,$]:o.mutableSourceEagerHydrationData.push(_,$);return new nl(o)};reactDom_production_min.render=function(a,o,_){if(!pl(o))throw Error(p$1(200));return sl(null,a,o,!1,_)};reactDom_production_min.unmountComponentAtNode=function(a){if(!pl(a))throw Error(p$1(40));return a._reactRootContainer?(Sk(function(){sl(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,o,_,b){if(!pl(_))throw Error(p$1(200));if(a==null||a._reactInternals===void 0)throw Error(p$1(38));return sl(a,o,_,!1,b)};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,createRoot,m$1=reactDomExports;createRoot=m$1.createRoot,m$1.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$1(){}function functionalUpdate(a,o){return typeof a=="function"?a(o):a}function isValidTimeout(a){return typeof a=="number"&&a>=0&&a!==1/0}function timeUntilStale(a,o){return Math.max(a+(o||0)-Date.now(),0)}function resolveStaleTime(a,o){return typeof a=="function"?a(o):a}function resolveEnabled(a,o){return typeof a=="function"?a(o):a}function matchQuery(a,o){const{type:_="all",exact:b,fetchStatus:$,predicate:_e,queryKey:et,stale:tt}=a;if(et){if(b){if(o.queryHash!==hashQueryKeyByOptions(et,o.options))return!1}else if(!partialMatchKey(o.queryKey,et))return!1}if(_!=="all"){const rt=o.isActive();if(_==="active"&&!rt||_==="inactive"&&rt)return!1}return!(typeof tt=="boolean"&&o.isStale()!==tt||$&&$!==o.state.fetchStatus||_e&&!_e(o))}function matchMutation(a,o){const{exact:_,status:b,predicate:$,mutationKey:_e}=a;if(_e){if(!o.options.mutationKey)return!1;if(_){if(hashKey(o.options.mutationKey)!==hashKey(_e))return!1}else if(!partialMatchKey(o.options.mutationKey,_e))return!1}return!(b&&o.state.status!==b||$&&!$(o))}function hashQueryKeyByOptions(a,o){return((o==null?void 0:o.queryKeyHashFn)||hashKey)(a)}function hashKey(a){return JSON.stringify(a,(o,_)=>isPlainObject(_)?Object.keys(_).sort().reduce((b,$)=>(b[$]=_[$],b),{}):_)}function partialMatchKey(a,o){return a===o?!0:typeof a!=typeof o?!1:a&&o&&typeof a=="object"&&typeof o=="object"?!Object.keys(o).some(_=>!partialMatchKey(a[_],o[_])):!1}function replaceEqualDeep(a,o){if(a===o)return a;const _=isPlainArray(a)&&isPlainArray(o);if(_||isPlainObject(a)&&isPlainObject(o)){const b=_?a:Object.keys(a),$=b.length,_e=_?o:Object.keys(o),et=_e.length,tt=_?[]:{};let rt=0;for(let st=0;st<et;st++){const it=_?st:_e[st];(!_&&b.includes(it)||_)&&a[it]===void 0&&o[it]===void 0?(tt[it]=void 0,rt++):(tt[it]=replaceEqualDeep(a[it],o[it]),tt[it]===a[it]&&a[it]!==void 0&&rt++)}return $===et&&rt===$?a:tt}return o}function shallowEqualObjects(a,o){if(!o||Object.keys(a).length!==Object.keys(o).length)return!1;for(const _ in a)if(a[_]!==o[_])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 o=a.constructor;if(o===void 0)return!0;const _=o.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(o=>{setTimeout(o,a)})}function replaceData(a,o,_){return typeof _.structuralSharing=="function"?_.structuralSharing(a,o):_.structuralSharing!==!1?replaceEqualDeep(a,o):o}function addToEnd(a,o,_=0){const b=[...a,o];return _&&b.length>_?b.slice(1):b}function addToStart(a,o,_=0){const b=[o,...a];return _&&b.length>_?b.slice(0,-1):b}var skipToken=Symbol();function ensureQueryFn(a,o){return!a.queryFn&&(o!=null&&o.initialPromise)?()=>o.initialPromise:!a.queryFn||a.queryFn===skipToken?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}var qr,Gr,ns,Ws,FocusManager=(Ws=class extends Subscribable{constructor(){super();er(this,qr);er(this,Gr);er(this,ns);Yt(this,ns,o=>{if(!isServer&&window.addEventListener){const _=()=>o();return window.addEventListener("visibilitychange",_,!1),()=>{window.removeEventListener("visibilitychange",_)}}})}onSubscribe(){Ot(this,Gr)||this.setEventListener(Ot(this,ns))}onUnsubscribe(){var o;this.hasListeners()||((o=Ot(this,Gr))==null||o.call(this),Yt(this,Gr,void 0))}setEventListener(o){var _;Yt(this,ns,o),(_=Ot(this,Gr))==null||_.call(this),Yt(this,Gr,o(b=>{typeof b=="boolean"?this.setFocused(b):this.onFocus()}))}setFocused(o){Ot(this,qr)!==o&&(Yt(this,qr,o),this.onFocus())}onFocus(){const o=this.isFocused();this.listeners.forEach(_=>{_(o)})}isFocused(){var o;return typeof Ot(this,qr)=="boolean"?Ot(this,qr):((o=globalThis.document)==null?void 0:o.visibilityState)!=="hidden"}},qr=new WeakMap,Gr=new WeakMap,ns=new WeakMap,Ws),focusManager=new FocusManager,is,$r,as,Ks,OnlineManager=(Ks=class extends Subscribable{constructor(){super();er(this,is,!0);er(this,$r);er(this,as);Yt(this,as,o=>{if(!isServer&&window.addEventListener){const _=()=>o(!0),b=()=>o(!1);return window.addEventListener("online",_,!1),window.addEventListener("offline",b,!1),()=>{window.removeEventListener("online",_),window.removeEventListener("offline",b)}}})}onSubscribe(){Ot(this,$r)||this.setEventListener(Ot(this,as))}onUnsubscribe(){var o;this.hasListeners()||((o=Ot(this,$r))==null||o.call(this),Yt(this,$r,void 0))}setEventListener(o){var _;Yt(this,as,o),(_=Ot(this,$r))==null||_.call(this),Yt(this,$r,o(this.setOnline.bind(this)))}setOnline(o){Ot(this,is)!==o&&(Yt(this,is,o),this.listeners.forEach(b=>{b(o)}))}isOnline(){return Ot(this,is)}},is=new WeakMap,$r=new WeakMap,as=new WeakMap,Ks),onlineManager=new OnlineManager;function pendingThenable(){let a,o;const _=new Promise(($,_e)=>{a=$,o=_e});_.status="pending",_.catch(()=>{});function b($){Object.assign(_,$),delete _.resolve,delete _.reject}return _.resolve=$=>{b({status:"fulfilled",value:$}),a($)},_.reject=$=>{b({status:"rejected",reason:$}),o($)},_}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 o=!1,_=0,b=!1,$;const _e=pendingThenable(),et=pt=>{var vt;b||(at(new CancelledError(pt)),(vt=a.abort)==null||vt.call(a))},tt=()=>{o=!0},rt=()=>{o=!1},st=()=>focusManager.isFocused()&&(a.networkMode==="always"||onlineManager.isOnline())&&a.canRun(),it=()=>canFetch(a.networkMode)&&a.canRun(),lt=pt=>{var vt;b||(b=!0,(vt=a.onSuccess)==null||vt.call(a,pt),$==null||$(),_e.resolve(pt))},at=pt=>{var vt;b||(b=!0,(vt=a.onError)==null||vt.call(a,pt),$==null||$(),_e.reject(pt))},ft=()=>new Promise(pt=>{var vt;$=ut=>{(b||st())&&pt(ut)},(vt=a.onPause)==null||vt.call(a)}).then(()=>{var pt;$=void 0,b||(pt=a.onContinue)==null||pt.call(a)}),ht=()=>{if(b)return;let pt;const vt=_===0?a.initialPromise:void 0;try{pt=vt??a.fn()}catch(ut){pt=Promise.reject(ut)}Promise.resolve(pt).then(lt).catch(ut=>{var _t;if(b)return;const ot=a.retry??(isServer?0:3),nt=a.retryDelay??defaultRetryDelay,dt=typeof nt=="function"?nt(_,ut):nt,yt=ot===!0||typeof ot=="number"&&_<ot||typeof ot=="function"&&ot(_,ut);if(o||!yt){at(ut);return}_++,(_t=a.onFail)==null||_t.call(a,_,ut),sleep(dt).then(()=>st()?void 0:ft()).then(()=>{o?at(ut):ht()})})};return{promise:_e,cancel:et,continue:()=>($==null||$(),_e),cancelRetry:tt,continueRetry:rt,canStart:it,start:()=>(it()?ht():ft().then(ht),_e)}}function createNotifyManager(){let a=[],o=0,_=tt=>{tt()},b=tt=>{tt()},$=tt=>setTimeout(tt,0);const _e=tt=>{o?a.push(tt):$(()=>{_(tt)})},et=()=>{const tt=a;a=[],tt.length&&$(()=>{b(()=>{tt.forEach(rt=>{_(rt)})})})};return{batch:tt=>{let rt;o++;try{rt=tt()}finally{o--,o||et()}return rt},batchCalls:tt=>(...rt)=>{_e(()=>{tt(...rt)})},schedule:_e,setNotifyFunction:tt=>{_=tt},setBatchNotifyFunction:tt=>{b=tt},setScheduler:tt=>{$=tt}}}var notifyManager=createNotifyManager(),Xr,Ys,Removable=(Ys=class{constructor(){er(this,Xr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.gcTime)&&Yt(this,Xr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(isServer?1/0:5*60*1e3))}clearGcTimeout(){Ot(this,Xr)&&(clearTimeout(Ot(this,Xr)),Yt(this,Xr,void 0))}},Xr=new WeakMap,Ys),os,ls,wr,yr,As,Zr,Rr,Lr,Qs,Query=(Qs=class extends Removable{constructor(o){super();er(this,Rr);er(this,os);er(this,ls);er(this,wr);er(this,yr);er(this,As);er(this,Zr);Yt(this,Zr,!1),Yt(this,As,o.defaultOptions),this.setOptions(o.options),this.observers=[],Yt(this,wr,o.cache),this.queryKey=o.queryKey,this.queryHash=o.queryHash,Yt(this,os,getDefaultState$1(this.options)),this.state=o.state??Ot(this,os),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var o;return(o=Ot(this,yr))==null?void 0:o.promise}setOptions(o){this.options={...Ot(this,As),...o},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Ot(this,wr).remove(this)}setData(o,_){const b=replaceData(this.state.data,o,this.options);return rr(this,Rr,Lr).call(this,{data:b,type:"success",dataUpdatedAt:_==null?void 0:_.updatedAt,manual:_==null?void 0:_.manual}),b}setState(o,_){rr(this,Rr,Lr).call(this,{type:"setState",state:o,setStateOptions:_})}cancel(o){var b,$;const _=(b=Ot(this,yr))==null?void 0:b.promise;return($=Ot(this,yr))==null||$.cancel(o),_?_.then(noop$1).catch(noop$1):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Ot(this,os))}isActive(){return this.observers.some(o=>resolveEnabled(o.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(o=>o.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(o=0){return this.state.isInvalidated||this.state.data===void 0||!timeUntilStale(this.state.dataUpdatedAt,o)}onFocus(){var _;const o=this.observers.find(b=>b.shouldFetchOnWindowFocus());o==null||o.refetch({cancelRefetch:!1}),(_=Ot(this,yr))==null||_.continue()}onOnline(){var _;const o=this.observers.find(b=>b.shouldFetchOnReconnect());o==null||o.refetch({cancelRefetch:!1}),(_=Ot(this,yr))==null||_.continue()}addObserver(o){this.observers.includes(o)||(this.observers.push(o),this.clearGcTimeout(),Ot(this,wr).notify({type:"observerAdded",query:this,observer:o}))}removeObserver(o){this.observers.includes(o)&&(this.observers=this.observers.filter(_=>_!==o),this.observers.length||(Ot(this,yr)&&(Ot(this,Zr)?Ot(this,yr).cancel({revert:!0}):Ot(this,yr).cancelRetry()),this.scheduleGc()),Ot(this,wr).notify({type:"observerRemoved",query:this,observer:o}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||rr(this,Rr,Lr).call(this,{type:"invalidate"})}fetch(o,_){var rt,st,it;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(_!=null&&_.cancelRefetch))this.cancel({silent:!0});else if(Ot(this,yr))return Ot(this,yr).continueRetry(),Ot(this,yr).promise}if(o&&this.setOptions(o),!this.options.queryFn){const lt=this.observers.find(at=>at.options.queryFn);lt&&this.setOptions(lt.options)}const b=new AbortController,$=lt=>{Object.defineProperty(lt,"signal",{enumerable:!0,get:()=>(Yt(this,Zr,!0),b.signal)})},_e=()=>{const lt=ensureQueryFn(this.options,_),at={queryKey:this.queryKey,meta:this.meta};return $(at),Yt(this,Zr,!1),this.options.persister?this.options.persister(lt,at,this):lt(at)},et={fetchOptions:_,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:_e};$(et),(rt=this.options.behavior)==null||rt.onFetch(et,this),Yt(this,ls,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((st=et.fetchOptions)==null?void 0:st.meta))&&rr(this,Rr,Lr).call(this,{type:"fetch",meta:(it=et.fetchOptions)==null?void 0:it.meta});const tt=lt=>{var at,ft,ht,pt;isCancelledError(lt)&&lt.silent||rr(this,Rr,Lr).call(this,{type:"error",error:lt}),isCancelledError(lt)||((ft=(at=Ot(this,wr).config).onError)==null||ft.call(at,lt,this),(pt=(ht=Ot(this,wr).config).onSettled)==null||pt.call(ht,this.state.data,lt,this)),this.scheduleGc()};return Yt(this,yr,createRetryer({initialPromise:_==null?void 0:_.initialPromise,fn:et.fetchFn,abort:b.abort.bind(b),onSuccess:lt=>{var at,ft,ht,pt;if(lt===void 0){tt(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(lt)}catch(vt){tt(vt);return}(ft=(at=Ot(this,wr).config).onSuccess)==null||ft.call(at,lt,this),(pt=(ht=Ot(this,wr).config).onSettled)==null||pt.call(ht,lt,this.state.error,this),this.scheduleGc()},onError:tt,onFail:(lt,at)=>{rr(this,Rr,Lr).call(this,{type:"failed",failureCount:lt,error:at})},onPause:()=>{rr(this,Rr,Lr).call(this,{type:"pause"})},onContinue:()=>{rr(this,Rr,Lr).call(this,{type:"continue"})},retry:et.options.retry,retryDelay:et.options.retryDelay,networkMode:et.options.networkMode,canRun:()=>!0})),Ot(this,yr).start()}},os=new WeakMap,ls=new WeakMap,wr=new WeakMap,yr=new WeakMap,As=new WeakMap,Zr=new WeakMap,Rr=new WeakSet,Lr=function(o){const _=b=>{switch(o.type){case"failed":return{...b,fetchFailureCount:o.failureCount,fetchFailureReason:o.error};case"pause":return{...b,fetchStatus:"paused"};case"continue":return{...b,fetchStatus:"fetching"};case"fetch":return{...b,...fetchState(b.data,this.options),fetchMeta:o.meta??null};case"success":return{...b,data:o.data,dataUpdateCount:b.dataUpdateCount+1,dataUpdatedAt:o.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!o.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const $=o.error;return isCancelledError($)&&$.revert&&Ot(this,ls)?{...Ot(this,ls),fetchStatus:"idle"}:{...b,error:$,errorUpdateCount:b.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:b.fetchFailureCount+1,fetchFailureReason:$,fetchStatus:"idle",status:"error"};case"invalidate":return{...b,isInvalidated:!0};case"setState":return{...b,...o.state}}};this.state=_(this.state),notifyManager.batch(()=>{this.observers.forEach(b=>{b.onQueryUpdate()}),Ot(this,wr).notify({query:this,type:"updated",action:o})})},Qs);function fetchState(a,o){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:canFetch(o.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function getDefaultState$1(a){const o=typeof a.initialData=="function"?a.initialData():a.initialData,_=o!==void 0,b=_?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:o,dataUpdateCount:0,dataUpdatedAt:_?b??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:_?"success":"pending",fetchStatus:"idle"}}var Ir,Js,QueryCache=(Js=class extends Subscribable{constructor(o={}){super();er(this,Ir);this.config=o,Yt(this,Ir,new Map)}build(o,_,b){const $=_.queryKey,_e=_.queryHash??hashQueryKeyByOptions($,_);let et=this.get(_e);return et||(et=new Query({cache:this,queryKey:$,queryHash:_e,options:o.defaultQueryOptions(_),state:b,defaultOptions:o.getQueryDefaults($)}),this.add(et)),et}add(o){Ot(this,Ir).has(o.queryHash)||(Ot(this,Ir).set(o.queryHash,o),this.notify({type:"added",query:o}))}remove(o){const _=Ot(this,Ir).get(o.queryHash);_&&(o.destroy(),_===o&&Ot(this,Ir).delete(o.queryHash),this.notify({type:"removed",query:o}))}clear(){notifyManager.batch(()=>{this.getAll().forEach(o=>{this.remove(o)})})}get(o){return Ot(this,Ir).get(o)}getAll(){return[...Ot(this,Ir).values()]}find(o){const _={exact:!0,...o};return this.getAll().find(b=>matchQuery(_,b))}findAll(o={}){const _=this.getAll();return Object.keys(o).length>0?_.filter(b=>matchQuery(o,b)):_}notify(o){notifyManager.batch(()=>{this.listeners.forEach(_=>{_(o)})})}onFocus(){notifyManager.batch(()=>{this.getAll().forEach(o=>{o.onFocus()})})}onOnline(){notifyManager.batch(()=>{this.getAll().forEach(o=>{o.onOnline()})})}},Ir=new WeakMap,Js),Nr,vr,es,jr,Vr,qs,Mutation=(qs=class extends Removable{constructor(o){super();er(this,jr);er(this,Nr);er(this,vr);er(this,es);this.mutationId=o.mutationId,Yt(this,vr,o.mutationCache),Yt(this,Nr,[]),this.state=o.state||getDefaultState(),this.setOptions(o.options),this.scheduleGc()}setOptions(o){this.options=o,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(o){Ot(this,Nr).includes(o)||(Ot(this,Nr).push(o),this.clearGcTimeout(),Ot(this,vr).notify({type:"observerAdded",mutation:this,observer:o}))}removeObserver(o){Yt(this,Nr,Ot(this,Nr).filter(_=>_!==o)),this.scheduleGc(),Ot(this,vr).notify({type:"observerRemoved",mutation:this,observer:o})}optionalRemove(){Ot(this,Nr).length||(this.state.status==="pending"?this.scheduleGc():Ot(this,vr).remove(this))}continue(){var o;return((o=Ot(this,es))==null?void 0:o.continue())??this.execute(this.state.variables)}async execute(o){var $,_e,et,tt,rt,st,it,lt,at,ft,ht,pt,vt,ut,ot,nt,dt,yt,_t,At;Yt(this,es,createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(o):Promise.reject(new Error("No mutationFn found")),onFail:(xt,wt)=>{rr(this,jr,Vr).call(this,{type:"failed",failureCount:xt,error:wt})},onPause:()=>{rr(this,jr,Vr).call(this,{type:"pause"})},onContinue:()=>{rr(this,jr,Vr).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Ot(this,vr).canRun(this)}));const _=this.state.status==="pending",b=!Ot(this,es).canStart();try{if(!_){rr(this,jr,Vr).call(this,{type:"pending",variables:o,isPaused:b}),await((_e=($=Ot(this,vr).config).onMutate)==null?void 0:_e.call($,o,this));const wt=await((tt=(et=this.options).onMutate)==null?void 0:tt.call(et,o));wt!==this.state.context&&rr(this,jr,Vr).call(this,{type:"pending",context:wt,variables:o,isPaused:b})}const xt=await Ot(this,es).start();return await((st=(rt=Ot(this,vr).config).onSuccess)==null?void 0:st.call(rt,xt,o,this.state.context,this)),await((lt=(it=this.options).onSuccess)==null?void 0:lt.call(it,xt,o,this.state.context)),await((ft=(at=Ot(this,vr).config).onSettled)==null?void 0:ft.call(at,xt,null,this.state.variables,this.state.context,this)),await((pt=(ht=this.options).onSettled)==null?void 0:pt.call(ht,xt,null,o,this.state.context)),rr(this,jr,Vr).call(this,{type:"success",data:xt}),xt}catch(xt){try{throw await((ut=(vt=Ot(this,vr).config).onError)==null?void 0:ut.call(vt,xt,o,this.state.context,this)),await((nt=(ot=this.options).onError)==null?void 0:nt.call(ot,xt,o,this.state.context)),await((yt=(dt=Ot(this,vr).config).onSettled)==null?void 0:yt.call(dt,void 0,xt,this.state.variables,this.state.context,this)),await((At=(_t=this.options).onSettled)==null?void 0:At.call(_t,void 0,xt,o,this.state.context)),xt}finally{rr(this,jr,Vr).call(this,{type:"error",error:xt})}}finally{Ot(this,vr).runNext(this)}}},Nr=new WeakMap,vr=new WeakMap,es=new WeakMap,jr=new WeakSet,Vr=function(o){const _=b=>{switch(o.type){case"failed":return{...b,failureCount:o.failureCount,failureReason:o.error};case"pause":return{...b,isPaused:!0};case"continue":return{...b,isPaused:!1};case"pending":return{...b,context:o.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:o.isPaused,status:"pending",variables:o.variables,submittedAt:Date.now()};case"success":return{...b,data:o.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...b,data:void 0,error:o.error,failureCount:b.failureCount+1,failureReason:o.error,isPaused:!1,status:"error"}}};this.state=_(this.state),notifyManager.batch(()=>{Ot(this,Nr).forEach(b=>{b.onMutationUpdate(o)}),Ot(this,vr).notify({mutation:this,type:"updated",action:o})})},qs);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 Br,Cr,Es,Xs,MutationCache=(Xs=class extends Subscribable{constructor(o={}){super();er(this,Br);er(this,Cr);er(this,Es);this.config=o,Yt(this,Br,new Set),Yt(this,Cr,new Map),Yt(this,Es,0)}build(o,_,b){const $=new Mutation({mutationCache:this,mutationId:++Rs(this,Es)._,options:o.defaultMutationOptions(_),state:b});return this.add($),$}add(o){Ot(this,Br).add(o);const _=scopeFor(o);if(typeof _=="string"){const b=Ot(this,Cr).get(_);b?b.push(o):Ot(this,Cr).set(_,[o])}this.notify({type:"added",mutation:o})}remove(o){if(Ot(this,Br).delete(o)){const _=scopeFor(o);if(typeof _=="string"){const b=Ot(this,Cr).get(_);if(b)if(b.length>1){const $=b.indexOf(o);$!==-1&&b.splice($,1)}else b[0]===o&&Ot(this,Cr).delete(_)}}this.notify({type:"removed",mutation:o})}canRun(o){const _=scopeFor(o);if(typeof _=="string"){const b=Ot(this,Cr).get(_),$=b==null?void 0:b.find(_e=>_e.state.status==="pending");return!$||$===o}else return!0}runNext(o){var b;const _=scopeFor(o);if(typeof _=="string"){const $=(b=Ot(this,Cr).get(_))==null?void 0:b.find(_e=>_e!==o&&_e.state.isPaused);return($==null?void 0:$.continue())??Promise.resolve()}else return Promise.resolve()}clear(){notifyManager.batch(()=>{Ot(this,Br).forEach(o=>{this.notify({type:"removed",mutation:o})}),Ot(this,Br).clear(),Ot(this,Cr).clear()})}getAll(){return Array.from(Ot(this,Br))}find(o){const _={exact:!0,...o};return this.getAll().find(b=>matchMutation(_,b))}findAll(o={}){return this.getAll().filter(_=>matchMutation(o,_))}notify(o){notifyManager.batch(()=>{this.listeners.forEach(_=>{_(o)})})}resumePausedMutations(){const o=this.getAll().filter(_=>_.state.isPaused);return notifyManager.batch(()=>Promise.all(o.map(_=>_.continue().catch(noop$1))))}},Br=new WeakMap,Cr=new WeakMap,Es=new WeakMap,Xs);function scopeFor(a){var o;return(o=a.options.scope)==null?void 0:o.id}function infiniteQueryBehavior(a){return{onFetch:(o,_)=>{var it,lt,at,ft,ht;const b=o.options,$=(at=(lt=(it=o.fetchOptions)==null?void 0:it.meta)==null?void 0:lt.fetchMore)==null?void 0:at.direction,_e=((ft=o.state.data)==null?void 0:ft.pages)||[],et=((ht=o.state.data)==null?void 0:ht.pageParams)||[];let tt={pages:[],pageParams:[]},rt=0;const st=async()=>{let pt=!1;const vt=nt=>{Object.defineProperty(nt,"signal",{enumerable:!0,get:()=>(o.signal.aborted?pt=!0:o.signal.addEventListener("abort",()=>{pt=!0}),o.signal)})},ut=ensureQueryFn(o.options,o.fetchOptions),ot=async(nt,dt,yt)=>{if(pt)return Promise.reject();if(dt==null&&nt.pages.length)return Promise.resolve(nt);const _t={queryKey:o.queryKey,pageParam:dt,direction:yt?"backward":"forward",meta:o.options.meta};vt(_t);const At=await ut(_t),{maxPages:xt}=o.options,wt=yt?addToStart:addToEnd;return{pages:wt(nt.pages,At,xt),pageParams:wt(nt.pageParams,dt,xt)}};if($&&_e.length){const nt=$==="backward",dt=nt?getPreviousPageParam:getNextPageParam,yt={pages:_e,pageParams:et},_t=dt(b,yt);tt=await ot(yt,_t,nt)}else{const nt=a??_e.length;do{const dt=rt===0?et[0]??b.initialPageParam:getNextPageParam(b,tt);if(rt>0&&dt==null)break;tt=await ot(tt,dt),rt++}while(rt<nt)}return tt};o.options.persister?o.fetchFn=()=>{var pt,vt;return(vt=(pt=o.options).persister)==null?void 0:vt.call(pt,st,{queryKey:o.queryKey,meta:o.options.meta,signal:o.signal},_)}:o.fetchFn=st}}}function getNextPageParam(a,{pages:o,pageParams:_}){const b=o.length-1;return o.length>0?a.getNextPageParam(o[b],o,_[b],_):void 0}function getPreviousPageParam(a,{pages:o,pageParams:_}){var b;return o.length>0?(b=a.getPreviousPageParam)==null?void 0:b.call(a,o[0],o,_[0],_):void 0}var dr,Ur,zr,us,cs,Wr,ds,ps,Zs,QueryClient=(Zs=class{constructor(a={}){er(this,dr);er(this,Ur);er(this,zr);er(this,us);er(this,cs);er(this,Wr);er(this,ds);er(this,ps);Yt(this,dr,a.queryCache||new QueryCache),Yt(this,Ur,a.mutationCache||new MutationCache),Yt(this,zr,a.defaultOptions||{}),Yt(this,us,new Map),Yt(this,cs,new Map),Yt(this,Wr,0)}mount(){Rs(this,Wr)._++,Ot(this,Wr)===1&&(Yt(this,ds,focusManager.subscribe(async a=>{a&&(await this.resumePausedMutations(),Ot(this,dr).onFocus())})),Yt(this,ps,onlineManager.subscribe(async a=>{a&&(await this.resumePausedMutations(),Ot(this,dr).onOnline())})))}unmount(){var a,o;Rs(this,Wr)._--,Ot(this,Wr)===0&&((a=Ot(this,ds))==null||a.call(this),Yt(this,ds,void 0),(o=Ot(this,ps))==null||o.call(this),Yt(this,ps,void 0))}isFetching(a){return Ot(this,dr).findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return Ot(this,Ur).findAll({...a,status:"pending"}).length}getQueryData(a){var _;const o=this.defaultQueryOptions({queryKey:a});return(_=Ot(this,dr).get(o.queryHash))==null?void 0:_.state.data}ensureQueryData(a){const o=this.defaultQueryOptions(a),_=Ot(this,dr).build(this,o),b=_.state.data;return b===void 0?this.fetchQuery(a):(a.revalidateIfStale&&_.isStaleByTime(resolveStaleTime(o.staleTime,_))&&this.prefetchQuery(o),Promise.resolve(b))}getQueriesData(a){return Ot(this,dr).findAll(a).map(({queryKey:o,state:_})=>{const b=_.data;return[o,b]})}setQueryData(a,o,_){const b=this.defaultQueryOptions({queryKey:a}),$=Ot(this,dr).get(b.queryHash),_e=$==null?void 0:$.state.data,et=functionalUpdate(o,_e);if(et!==void 0)return Ot(this,dr).build(this,b).setData(et,{..._,manual:!0})}setQueriesData(a,o,_){return notifyManager.batch(()=>Ot(this,dr).findAll(a).map(({queryKey:b})=>[b,this.setQueryData(b,o,_)]))}getQueryState(a){var _;const o=this.defaultQueryOptions({queryKey:a});return(_=Ot(this,dr).get(o.queryHash))==null?void 0:_.state}removeQueries(a){const o=Ot(this,dr);notifyManager.batch(()=>{o.findAll(a).forEach(_=>{o.remove(_)})})}resetQueries(a,o){const _=Ot(this,dr),b={type:"active",...a};return notifyManager.batch(()=>(_.findAll(a).forEach($=>{$.reset()}),this.refetchQueries(b,o)))}cancelQueries(a,o={}){const _={revert:!0,...o},b=notifyManager.batch(()=>Ot(this,dr).findAll(a).map($=>$.cancel(_)));return Promise.all(b).then(noop$1).catch(noop$1)}invalidateQueries(a,o={}){return notifyManager.batch(()=>{if(Ot(this,dr).findAll(a).forEach(b=>{b.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(_,o)})}refetchQueries(a,o={}){const _={...o,cancelRefetch:o.cancelRefetch??!0},b=notifyManager.batch(()=>Ot(this,dr).findAll(a).filter($=>!$.isDisabled()).map($=>{let _e=$.fetch(void 0,_);return _.throwOnError||(_e=_e.catch(noop$1)),$.state.fetchStatus==="paused"?Promise.resolve():_e}));return Promise.all(b).then(noop$1)}fetchQuery(a){const o=this.defaultQueryOptions(a);o.retry===void 0&&(o.retry=!1);const _=Ot(this,dr).build(this,o);return _.isStaleByTime(resolveStaleTime(o.staleTime,_))?_.fetch(o):Promise.resolve(_.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(noop$1).catch(noop$1)}fetchInfiniteQuery(a){return a.behavior=infiniteQueryBehavior(a.pages),this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(noop$1).catch(noop$1)}ensureInfiniteQueryData(a){return a.behavior=infiniteQueryBehavior(a.pages),this.ensureQueryData(a)}resumePausedMutations(){return onlineManager.isOnline()?Ot(this,Ur).resumePausedMutations():Promise.resolve()}getQueryCache(){return Ot(this,dr)}getMutationCache(){return Ot(this,Ur)}getDefaultOptions(){return Ot(this,zr)}setDefaultOptions(a){Yt(this,zr,a)}setQueryDefaults(a,o){Ot(this,us).set(hashKey(a),{queryKey:a,defaultOptions:o})}getQueryDefaults(a){const o=[...Ot(this,us).values()],_={};return o.forEach(b=>{partialMatchKey(a,b.queryKey)&&Object.assign(_,b.defaultOptions)}),_}setMutationDefaults(a,o){Ot(this,cs).set(hashKey(a),{mutationKey:a,defaultOptions:o})}getMutationDefaults(a){const o=[...Ot(this,cs).values()];let _={};return o.forEach(b=>{partialMatchKey(a,b.mutationKey)&&(_={..._,...b.defaultOptions})}),_}defaultQueryOptions(a){if(a._defaulted)return a;const o={...Ot(this,zr).queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return o.queryHash||(o.queryHash=hashQueryKeyByOptions(o.queryKey,o)),o.refetchOnReconnect===void 0&&(o.refetchOnReconnect=o.networkMode!=="always"),o.throwOnError===void 0&&(o.throwOnError=!!o.suspense),!o.networkMode&&o.persister&&(o.networkMode="offlineFirst"),o.queryFn===skipToken&&(o.enabled=!1),o}defaultMutationOptions(a){return a!=null&&a._defaulted?a:{...Ot(this,zr).mutations,...(a==null?void 0:a.mutationKey)&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){Ot(this,dr).clear(),Ot(this,Ur).clear()}},dr=new WeakMap,Ur=new WeakMap,zr=new WeakMap,us=new WeakMap,cs=new WeakMap,Wr=new WeakMap,ds=new WeakMap,ps=new WeakMap,Zs),br,nr,Ss,Ar,ts,hs,Kr,Pr,bs,fs,ms,rs,ss,Yr,gs,or,vs,js,Ps,Os,Ms,Ds,Ls,Bs,rn,en,QueryObserver=(en=class extends Subscribable{constructor(o,_){super();er(this,or);er(this,br);er(this,nr);er(this,Ss);er(this,Ar);er(this,ts);er(this,hs);er(this,Kr);er(this,Pr);er(this,bs);er(this,fs);er(this,ms);er(this,rs);er(this,ss);er(this,Yr);er(this,gs,new Set);this.options=_,Yt(this,br,o),Yt(this,Pr,null),Yt(this,Kr,pendingThenable()),this.options.experimental_prefetchInRender||Ot(this,Kr).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&&(Ot(this,nr).addObserver(this),shouldFetchOnMount(Ot(this,nr),this.options)?rr(this,or,vs).call(this):this.updateResult(),rr(this,or,Ms).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(Ot(this,nr),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(Ot(this,nr),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,rr(this,or,Ds).call(this),rr(this,or,Ls).call(this),Ot(this,nr).removeObserver(this)}setOptions(o,_){const b=this.options,$=Ot(this,nr);if(this.options=Ot(this,br).defaultQueryOptions(o),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof resolveEnabled(this.options.enabled,Ot(this,nr))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");rr(this,or,Bs).call(this),Ot(this,nr).setOptions(this.options),b._defaulted&&!shallowEqualObjects(this.options,b)&&Ot(this,br).getQueryCache().notify({type:"observerOptionsUpdated",query:Ot(this,nr),observer:this});const _e=this.hasListeners();_e&&shouldFetchOptionally(Ot(this,nr),$,this.options,b)&&rr(this,or,vs).call(this),this.updateResult(_),_e&&(Ot(this,nr)!==$||resolveEnabled(this.options.enabled,Ot(this,nr))!==resolveEnabled(b.enabled,Ot(this,nr))||resolveStaleTime(this.options.staleTime,Ot(this,nr))!==resolveStaleTime(b.staleTime,Ot(this,nr)))&&rr(this,or,js).call(this);const et=rr(this,or,Ps).call(this);_e&&(Ot(this,nr)!==$||resolveEnabled(this.options.enabled,Ot(this,nr))!==resolveEnabled(b.enabled,Ot(this,nr))||et!==Ot(this,Yr))&&rr(this,or,Os).call(this,et)}getOptimisticResult(o){const _=Ot(this,br).getQueryCache().build(Ot(this,br),o),b=this.createResult(_,o);return shouldAssignObserverCurrentProperties(this,b)&&(Yt(this,Ar,b),Yt(this,hs,this.options),Yt(this,ts,Ot(this,nr).state)),b}getCurrentResult(){return Ot(this,Ar)}trackResult(o,_){const b={};return Object.keys(o).forEach($=>{Object.defineProperty(b,$,{configurable:!1,enumerable:!0,get:()=>(this.trackProp($),_==null||_($),o[$])})}),b}trackProp(o){Ot(this,gs).add(o)}getCurrentQuery(){return Ot(this,nr)}refetch({...o}={}){return this.fetch({...o})}fetchOptimistic(o){const _=Ot(this,br).defaultQueryOptions(o),b=Ot(this,br).getQueryCache().build(Ot(this,br),_);return b.fetch().then(()=>this.createResult(b,_))}fetch(o){return rr(this,or,vs).call(this,{...o,cancelRefetch:o.cancelRefetch??!0}).then(()=>(this.updateResult(),Ot(this,Ar)))}createResult(o,_){var xt;const b=Ot(this,nr),$=this.options,_e=Ot(this,Ar),et=Ot(this,ts),tt=Ot(this,hs),st=o!==b?o.state:Ot(this,Ss),{state:it}=o;let lt={...it},at=!1,ft;if(_._optimisticResults){const wt=this.hasListeners(),bt=!wt&&shouldFetchOnMount(o,_),It=wt&&shouldFetchOptionally(o,b,_,$);(bt||It)&&(lt={...lt,...fetchState(it.data,o.options)}),_._optimisticResults==="isRestoring"&&(lt.fetchStatus="idle")}let{error:ht,errorUpdatedAt:pt,status:vt}=lt;if(_.select&&lt.data!==void 0)if(_e&&lt.data===(et==null?void 0:et.data)&&_.select===Ot(this,bs))ft=Ot(this,fs);else try{Yt(this,bs,_.select),ft=_.select(lt.data),ft=replaceData(_e==null?void 0:_e.data,ft,_),Yt(this,fs,ft),Yt(this,Pr,null)}catch(wt){Yt(this,Pr,wt)}else ft=lt.data;if(_.placeholderData!==void 0&&ft===void 0&&vt==="pending"){let wt;if(_e!=null&&_e.isPlaceholderData&&_.placeholderData===(tt==null?void 0:tt.placeholderData))wt=_e.data;else if(wt=typeof _.placeholderData=="function"?_.placeholderData((xt=Ot(this,ms))==null?void 0:xt.state.data,Ot(this,ms)):_.placeholderData,_.select&&wt!==void 0)try{wt=_.select(wt),Yt(this,Pr,null)}catch(bt){Yt(this,Pr,bt)}wt!==void 0&&(vt="success",ft=replaceData(_e==null?void 0:_e.data,wt,_),at=!0)}Ot(this,Pr)&&(ht=Ot(this,Pr),ft=Ot(this,fs),pt=Date.now(),vt="error");const ut=lt.fetchStatus==="fetching",ot=vt==="pending",nt=vt==="error",dt=ot&&ut,yt=ft!==void 0,At={status:vt,fetchStatus:lt.fetchStatus,isPending:ot,isSuccess:vt==="success",isError:nt,isInitialLoading:dt,isLoading:dt,data:ft,dataUpdatedAt:lt.dataUpdatedAt,error:ht,errorUpdatedAt:pt,failureCount:lt.fetchFailureCount,failureReason:lt.fetchFailureReason,errorUpdateCount:lt.errorUpdateCount,isFetched:lt.dataUpdateCount>0||lt.errorUpdateCount>0,isFetchedAfterMount:lt.dataUpdateCount>st.dataUpdateCount||lt.errorUpdateCount>st.errorUpdateCount,isFetching:ut,isRefetching:ut&&!ot,isLoadingError:nt&&!yt,isPaused:lt.fetchStatus==="paused",isPlaceholderData:at,isRefetchError:nt&&yt,isStale:isStale(o,_),refetch:this.refetch,promise:Ot(this,Kr)};if(this.options.experimental_prefetchInRender){const wt=Nt=>{At.status==="error"?Nt.reject(At.error):At.data!==void 0&&Nt.resolve(At.data)},bt=()=>{const Nt=Yt(this,Kr,At.promise=pendingThenable());wt(Nt)},It=Ot(this,Kr);switch(It.status){case"pending":o.queryHash===b.queryHash&&wt(It);break;case"fulfilled":(At.status==="error"||At.data!==It.value)&&bt();break;case"rejected":(At.status!=="error"||At.error!==It.reason)&&bt();break}}return At}updateResult(o){const _=Ot(this,Ar),b=this.createResult(Ot(this,nr),this.options);if(Yt(this,ts,Ot(this,nr).state),Yt(this,hs,this.options),Ot(this,ts).data!==void 0&&Yt(this,ms,Ot(this,nr)),shallowEqualObjects(b,_))return;Yt(this,Ar,b);const $={},_e=()=>{if(!_)return!0;const{notifyOnChangeProps:et}=this.options,tt=typeof et=="function"?et():et;if(tt==="all"||!tt&&!Ot(this,gs).size)return!0;const rt=new Set(tt??Ot(this,gs));return this.options.throwOnError&&rt.add("error"),Object.keys(Ot(this,Ar)).some(st=>{const it=st;return Ot(this,Ar)[it]!==_[it]&&rt.has(it)})};(o==null?void 0:o.listeners)!==!1&&_e()&&($.listeners=!0),rr(this,or,rn).call(this,{...$,...o})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&rr(this,or,Ms).call(this)}},br=new WeakMap,nr=new WeakMap,Ss=new WeakMap,Ar=new WeakMap,ts=new WeakMap,hs=new WeakMap,Kr=new WeakMap,Pr=new WeakMap,bs=new WeakMap,fs=new WeakMap,ms=new WeakMap,rs=new WeakMap,ss=new WeakMap,Yr=new WeakMap,gs=new WeakMap,or=new WeakSet,vs=function(o){rr(this,or,Bs).call(this);let _=Ot(this,nr).fetch(this.options,o);return o!=null&&o.throwOnError||(_=_.catch(noop$1)),_},js=function(){rr(this,or,Ds).call(this);const o=resolveStaleTime(this.options.staleTime,Ot(this,nr));if(isServer||Ot(this,Ar).isStale||!isValidTimeout(o))return;const b=timeUntilStale(Ot(this,Ar).dataUpdatedAt,o)+1;Yt(this,rs,setTimeout(()=>{Ot(this,Ar).isStale||this.updateResult()},b))},Ps=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Ot(this,nr)):this.options.refetchInterval)??!1},Os=function(o){rr(this,or,Ls).call(this),Yt(this,Yr,o),!(isServer||resolveEnabled(this.options.enabled,Ot(this,nr))===!1||!isValidTimeout(Ot(this,Yr))||Ot(this,Yr)===0)&&Yt(this,ss,setInterval(()=>{(this.options.refetchIntervalInBackground||focusManager.isFocused())&&rr(this,or,vs).call(this)},Ot(this,Yr)))},Ms=function(){rr(this,or,js).call(this),rr(this,or,Os).call(this,rr(this,or,Ps).call(this))},Ds=function(){Ot(this,rs)&&(clearTimeout(Ot(this,rs)),Yt(this,rs,void 0))},Ls=function(){Ot(this,ss)&&(clearInterval(Ot(this,ss)),Yt(this,ss,void 0))},Bs=function(){const o=Ot(this,br).getQueryCache().build(Ot(this,br),this.options);if(o===Ot(this,nr))return;const _=Ot(this,nr);Yt(this,nr,o),Yt(this,Ss,o.state),this.hasListeners()&&(_==null||_.removeObserver(this),o.addObserver(this))},rn=function(o){notifyManager.batch(()=>{o.listeners&&this.listeners.forEach(_=>{_(Ot(this,Ar))}),Ot(this,br).getQueryCache().notify({query:Ot(this,nr),type:"observerResultsUpdated"})})},en);function shouldLoadOnMount(a,o){return resolveEnabled(o.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&o.retryOnMount===!1)}function shouldFetchOnMount(a,o){return shouldLoadOnMount(a,o)||a.state.data!==void 0&&shouldFetchOn(a,o,o.refetchOnMount)}function shouldFetchOn(a,o,_){if(resolveEnabled(o.enabled,a)!==!1){const b=typeof _=="function"?_(a):_;return b==="always"||b!==!1&&isStale(a,o)}return!1}function shouldFetchOptionally(a,o,_,b){return(a!==o||resolveEnabled(b.enabled,a)===!1)&&(!_.suspense||a.state.status!=="error")&&isStale(a,_)}function isStale(a,o){return resolveEnabled(o.enabled,a)!==!1&&a.isStaleByTime(resolveStaleTime(o.staleTime,a))}function shouldAssignObserverCurrentProperties(a,o){return!shallowEqualObjects(a.getCurrentResult(),o)}var Qr,Jr,kr,Hr,Fr,Cs,Hs,tn,MutationObserver$1=(tn=class extends Subscribable{constructor(_,b){super();er(this,Fr);er(this,Qr);er(this,Jr);er(this,kr);er(this,Hr);Yt(this,Qr,_),this.setOptions(b),this.bindMethods(),rr(this,Fr,Cs).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(_){var $;const b=this.options;this.options=Ot(this,Qr).defaultMutationOptions(_),shallowEqualObjects(this.options,b)||Ot(this,Qr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Ot(this,kr),observer:this}),b!=null&&b.mutationKey&&this.options.mutationKey&&hashKey(b.mutationKey)!==hashKey(this.options.mutationKey)?this.reset():(($=Ot(this,kr))==null?void 0:$.state.status)==="pending"&&Ot(this,kr).setOptions(this.options)}onUnsubscribe(){var _;this.hasListeners()||(_=Ot(this,kr))==null||_.removeObserver(this)}onMutationUpdate(_){rr(this,Fr,Cs).call(this),rr(this,Fr,Hs).call(this,_)}getCurrentResult(){return Ot(this,Jr)}reset(){var _;(_=Ot(this,kr))==null||_.removeObserver(this),Yt(this,kr,void 0),rr(this,Fr,Cs).call(this),rr(this,Fr,Hs).call(this)}mutate(_,b){var $;return Yt(this,Hr,b),($=Ot(this,kr))==null||$.removeObserver(this),Yt(this,kr,Ot(this,Qr).getMutationCache().build(Ot(this,Qr),this.options)),Ot(this,kr).addObserver(this),Ot(this,kr).execute(_)}},Qr=new WeakMap,Jr=new WeakMap,kr=new WeakMap,Hr=new WeakMap,Fr=new WeakSet,Cs=function(){var b;const _=((b=Ot(this,kr))==null?void 0:b.state)??getDefaultState();Yt(this,Jr,{..._,isPending:_.status==="pending",isSuccess:_.status==="success",isError:_.status==="error",isIdle:_.status==="idle",mutate:this.mutate,reset:this.reset})},Hs=function(_){notifyManager.batch(()=>{var b,$,_e,et,tt,rt,st,it;if(Ot(this,Hr)&&this.hasListeners()){const lt=Ot(this,Jr).variables,at=Ot(this,Jr).context;(_==null?void 0:_.type)==="success"?(($=(b=Ot(this,Hr)).onSuccess)==null||$.call(b,_.data,lt,at),(et=(_e=Ot(this,Hr)).onSettled)==null||et.call(_e,_.data,null,lt,at)):(_==null?void 0:_.type)==="error"&&((rt=(tt=Ot(this,Hr)).onError)==null||rt.call(tt,_.error,lt,at),(it=(st=Ot(this,Hr)).onSettled)==null||it.call(st,void 0,_.error,lt,at))}this.listeners.forEach(lt=>{lt(Ot(this,Jr))})})},tn),QueryClientContext=reactExports.createContext(void 0),useQueryClient=a=>{const o=reactExports.useContext(QueryClientContext);if(!o)throw new Error("No QueryClient set, use QueryClientProvider to set one");return o},QueryClientProvider=({client:a,children:o})=>(reactExports.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),jsxRuntimeExports.jsx(QueryClientContext.Provider,{value:a,children:o})),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,o){return typeof a=="function"?a(...o):!!a}function noop(){}var ensurePreventErrorBoundaryRetry=(a,o)=>{(a.suspense||a.throwOnError||a.experimental_prefetchInRender)&&(o.isReset()||(a.retryOnMount=!1))},useClearResetErrorBoundary=a=>{reactExports.useEffect(()=>{a.clearReset()},[a])},getHasError=({result:a,errorResetBoundary:o,throwOnError:_,query:b})=>a.isError&&!o.isReset()&&!a.isFetching&&b&&shouldThrowError(_,[a.error,b]),ensureSuspenseTimers=a=>{const o=a.staleTime;a.suspense&&(a.staleTime=typeof o=="function"?(..._)=>Math.max(o(..._),1e3):Math.max(o??1e3,1e3),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3)))},willFetch=(a,o)=>a.isLoading&&a.isFetching&&!o,shouldSuspend=(a,o)=>(a==null?void 0:a.suspense)&&o.isPending,fetchOptimistic=(a,o,_)=>o.fetchOptimistic(a).catch(()=>{_.clearReset()});function useBaseQuery(a,o,_){var lt,at,ft,ht,pt;const b=useQueryClient(),$=useIsRestoring(),_e=useQueryErrorResetBoundary(),et=b.defaultQueryOptions(a);(at=(lt=b.getDefaultOptions().queries)==null?void 0:lt._experimental_beforeQuery)==null||at.call(lt,et),et._optimisticResults=$?"isRestoring":"optimistic",ensureSuspenseTimers(et),ensurePreventErrorBoundaryRetry(et,_e),useClearResetErrorBoundary(_e);const tt=!b.getQueryCache().get(et.queryHash),[rt]=reactExports.useState(()=>new o(b,et)),st=rt.getOptimisticResult(et),it=!$&&a.subscribed!==!1;if(reactExports.useSyncExternalStore(reactExports.useCallback(vt=>{const ut=it?rt.subscribe(notifyManager.batchCalls(vt)):noop;return rt.updateResult(),ut},[rt,it]),()=>rt.getCurrentResult(),()=>rt.getCurrentResult()),reactExports.useEffect(()=>{rt.setOptions(et,{listeners:!1})},[et,rt]),shouldSuspend(et,st))throw fetchOptimistic(et,rt,_e);if(getHasError({result:st,errorResetBoundary:_e,throwOnError:et.throwOnError,query:b.getQueryCache().get(et.queryHash)}))throw st.error;if((ht=(ft=b.getDefaultOptions().queries)==null?void 0:ft._experimental_afterQuery)==null||ht.call(ft,et,st),et.experimental_prefetchInRender&&!isServer&&willFetch(st,$)){const vt=tt?fetchOptimistic(et,rt,_e):(pt=b.getQueryCache().get(et.queryHash))==null?void 0:pt.promise;vt==null||vt.catch(noop).finally(()=>{rt.updateResult()})}return et.notifyOnChangeProps?st:rt.trackResult(st)}function useQuery(a,o){return useBaseQuery(a,QueryObserver)}function useMutation(a,o){const _=useQueryClient(),[b]=reactExports.useState(()=>new MutationObserver$1(_,a));reactExports.useEffect(()=>{b.setOptions(a)},[b,a]);const $=reactExports.useSyncExternalStore(reactExports.useCallback(et=>b.subscribe(notifyManager.batchCalls(et)),[b]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),_e=reactExports.useCallback((et,tt)=>{b.mutate(et,tt).catch(noop)},[b]);if($.error&&shouldThrowError(b.options.throwOnError,[$.error]))throw $.error;return{...$,mutate:_e,mutateAsync:$.mutate}}var lottie$1={exports:{}};(function(module,exports){typeof document<"u"&&typeof navigator<"u"&&function(a,o){module.exports=o()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(o){_useWebWorker=!!o},getWebWorker=function(){return _useWebWorker},setLocationHref=function(o){locationHref=o},getLocationHref=function(){return locationHref};function createTag(a){return document.createElement(a)}function extendPrototype(a,o){var _,b=a.length,$;for(_=0;_<b;_+=1){$=a[_].prototype;for(var _e in $)Object.prototype.hasOwnProperty.call($,_e)&&(o.prototype[_e]=$[_e])}}function getDescriptor(a,o){return Object.getOwnPropertyDescriptor(a,o)}function createProxyFunction(a){function o(){}return o.prototype=a,o}var audioControllerFactory=function(){function a(o){this.audios=[],this.audioFactory=o,this._volume=1,this._isMuted=!1}return a.prototype={addAudio:function(_){this.audios.push(_)},pause:function(){var _,b=this.audios.length;for(_=0;_<b;_+=1)this.audios[_].pause()},resume:function(){var _,b=this.audios.length;for(_=0;_<b;_+=1)this.audios[_].resume()},setRate:function(_){var b,$=this.audios.length;for(b=0;b<$;b+=1)this.audios[b].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 _,b=this.audios.length;for(_=0;_<b;_+=1)this.audios[_].volume(this._volume*(this._isMuted?0:1))}},function(){return new a}}(),createTypedArray=function(){function a(_,b){var $=0,_e=[],et;switch(_){case"int16":case"uint8c":et=1;break;default:et=1.1;break}for($=0;$<b;$+=1)_e.push(et);return _e}function o(_,b){return _==="float32"?new Float32Array(b):_==="int16"?new Int16Array(b):_==="uint8c"?new Uint8ClampedArray(b):a(_,b)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?o: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(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_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"],o,_=a.length;for(o=0;o<_;o+=1)BMMath[a[o]]=Math[a[o]]})(),BMMath.random=Math.random,BMMath.abs=function(a){var o=_typeof$6(a);if(o==="object"&&a.length){var _=createSizedArray(a.length),b,$=a.length;for(b=0;b<$;b+=1)_[b]=Math.abs(a[b]);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,o,_,b){this.type=a,this.currentTime=o,this.totalTime=_,this.direction=b<0?-1:1}function BMCompleteEvent(a,o){this.type=a,this.direction=o<0?-1:1}function BMCompleteLoopEvent(a,o,_,b){this.type=a,this.currentLoop=_,this.totalLoops=o,this.direction=b<0?-1:1}function BMSegmentStartEvent(a,o,_){this.type=a,this.firstFrame=o,this.totalFrames=_}function BMDestroyEvent(a,o){this.type=a,this.target=o}function BMRenderFrameErrorEvent(a,o){this.type="renderFrameError",this.nativeError=a,this.currentTime=o}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,o,_){var b,$,_e,et,tt,rt,st,it;switch(et=Math.floor(a*6),tt=a*6-et,rt=_*(1-o),st=_*(1-tt*o),it=_*(1-(1-tt)*o),et%6){case 0:b=_,$=it,_e=rt;break;case 1:b=st,$=_,_e=rt;break;case 2:b=rt,$=_,_e=it;break;case 3:b=rt,$=st,_e=_;break;case 4:b=it,$=rt,_e=_;break;case 5:b=_,$=rt,_e=st;break}return[b,$,_e]}function RGBtoHSV(a,o,_){var b=Math.max(a,o,_),$=Math.min(a,o,_),_e=b-$,et,tt=b===0?0:_e/b,rt=b/255;switch(b){case $:et=0;break;case a:et=o-_+_e*(o<_?6:0),et/=6*_e;break;case o:et=_-a+_e*2,et/=6*_e;break;case _:et=a-o+_e*4,et/=6*_e;break}return[et,tt,rt]}function addSaturationToRGB(a,o){var _=RGBtoHSV(a[0]*255,a[1]*255,a[2]*255);return _[1]+=o,_[1]>1?_[1]=1:_[1]<=0&&(_[1]=0),HSVtoRGB(_[0],_[1],_[2])}function addBrightnessToRGB(a,o){var _=RGBtoHSV(a[0]*255,a[1]*255,a[2]*255);return _[2]+=o,_[2]>1?_[2]=1:_[2]<0&&(_[2]=0),HSVtoRGB(_[0],_[1],_[2])}function addHueToRGB(a,o){var _=RGBtoHSV(a[0]*255,a[1]*255,a[2]*255);return _[0]+=o/360,_[0]>1?_[0]-=1:_[0]<0&&(_[0]+=1),HSVtoRGB(_[0],_[1],_[2])}var rgbToHex=function(){var a=[],o,_;for(o=0;o<256;o+=1)_=o.toString(16),a[o]=_.length===1?"0"+_:_;return function(b,$,_e){return b<0&&(b=0),$<0&&($=0),_e<0&&(_e=0),"#"+a[b]+a[$]+a[_e]}}(),setSubframeEnabled=function(o){subframeEnabled=!!o},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(o){expressionsPlugin=o},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(o){expressionsInterfaces=o},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(o){defaultCurveSegments=o},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(o){idPrefix$1=o};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(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$5(a)}var dataManager=function(){var a=1,o=[],_,b,$={onmessage:function(){},postMessage:function(ft){_({data:ft})}},_e={postMessage:function(ft){$.onmessage({data:ft})}};function et(at){if(window.Worker&&window.Blob&&getWebWorker()){var ft=new Blob(["var _workerSelf = self; self.onmessage = ",at.toString()],{type:"text/javascript"}),ht=URL.createObjectURL(ft);return new Worker(ht)}return _=at,$}function tt(){b||(b=et(function(ft){function ht(){function vt(Et,gt){var St,ct,mt=Et.length,Rt,Tt,Dt,kt;for(ct=0;ct<mt;ct+=1)if(St=Et[ct],"ks"in St&&!St.completed){if(St.completed=!0,St.hasMask){var Ht=St.masksProperties;for(Tt=Ht.length,Rt=0;Rt<Tt;Rt+=1)if(Ht[Rt].pt.k.i)yt(Ht[Rt].pt.k);else for(kt=Ht[Rt].pt.k.length,Dt=0;Dt<kt;Dt+=1)Ht[Rt].pt.k[Dt].s&&yt(Ht[Rt].pt.k[Dt].s[0]),Ht[Rt].pt.k[Dt].e&&yt(Ht[Rt].pt.k[Dt].e[0])}St.ty===0?(St.layers=nt(St.refId,gt),vt(St.layers,gt)):St.ty===4?dt(St.shapes):St.ty===5&&Ct(St)}}function ut(Et,gt){if(Et){var St=0,ct=Et.length;for(St=0;St<ct;St+=1)Et[St].t===1&&(Et[St].data.layers=nt(Et[St].data.refId,gt),vt(Et[St].data.layers,gt))}}function ot(Et,gt){for(var St=0,ct=gt.length;St<ct;){if(gt[St].id===Et)return gt[St];St+=1}return null}function nt(Et,gt){var St=ot(Et,gt);return St?St.layers.__used?JSON.parse(JSON.stringify(St.layers)):(St.layers.__used=!0,St.layers):null}function dt(Et){var gt,St=Et.length,ct,mt;for(gt=St-1;gt>=0;gt-=1)if(Et[gt].ty==="sh")if(Et[gt].ks.k.i)yt(Et[gt].ks.k);else for(mt=Et[gt].ks.k.length,ct=0;ct<mt;ct+=1)Et[gt].ks.k[ct].s&&yt(Et[gt].ks.k[ct].s[0]),Et[gt].ks.k[ct].e&&yt(Et[gt].ks.k[ct].e[0]);else Et[gt].ty==="gr"&&dt(Et[gt].it)}function yt(Et){var gt,St=Et.i.length;for(gt=0;gt<St;gt+=1)Et.i[gt][0]+=Et.v[gt][0],Et.i[gt][1]+=Et.v[gt][1],Et.o[gt][0]+=Et.v[gt][0],Et.o[gt][1]+=Et.v[gt][1]}function _t(Et,gt){var St=gt?gt.split("."):[100,100,100];return Et[0]>St[0]?!0:St[0]>Et[0]?!1:Et[1]>St[1]?!0:St[1]>Et[1]?!1:Et[2]>St[2]?!0:St[2]>Et[2]?!1:null}var At=function(){var Et=[4,4,14];function gt(ct){var mt=ct.t.d;ct.t.d={k:[{s:mt,t:0}]}}function St(ct){var mt,Rt=ct.length;for(mt=0;mt<Rt;mt+=1)ct[mt].ty===5&&gt(ct[mt])}return function(ct){if(_t(Et,ct.v)&&(St(ct.layers),ct.assets)){var mt,Rt=ct.assets.length;for(mt=0;mt<Rt;mt+=1)ct.assets[mt].layers&&St(ct.assets[mt].layers)}}}(),xt=function(){var Et=[4,7,99];return function(gt){if(gt.chars&&!_t(Et,gt.v)){var St,ct=gt.chars.length;for(St=0;St<ct;St+=1){var mt=gt.chars[St];mt.data&&mt.data.shapes&&(dt(mt.data.shapes),mt.data.ip=0,mt.data.op=99999,mt.data.st=0,mt.data.sr=1,mt.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}},gt.chars[St].t||(mt.data.shapes.push({ty:"no"}),mt.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"})))}}}}(),wt=function(){var Et=[5,7,15];function gt(ct){var mt=ct.t.p;typeof mt.a=="number"&&(mt.a={a:0,k:mt.a}),typeof mt.p=="number"&&(mt.p={a:0,k:mt.p}),typeof mt.r=="number"&&(mt.r={a:0,k:mt.r})}function St(ct){var mt,Rt=ct.length;for(mt=0;mt<Rt;mt+=1)ct[mt].ty===5&&gt(ct[mt])}return function(ct){if(_t(Et,ct.v)&&(St(ct.layers),ct.assets)){var mt,Rt=ct.assets.length;for(mt=0;mt<Rt;mt+=1)ct.assets[mt].layers&&St(ct.assets[mt].layers)}}}(),bt=function(){var Et=[4,1,9];function gt(ct){var mt,Rt=ct.length,Tt,Dt;for(mt=0;mt<Rt;mt+=1)if(ct[mt].ty==="gr")gt(ct[mt].it);else if(ct[mt].ty==="fl"||ct[mt].ty==="st")if(ct[mt].c.k&&ct[mt].c.k[0].i)for(Dt=ct[mt].c.k.length,Tt=0;Tt<Dt;Tt+=1)ct[mt].c.k[Tt].s&&(ct[mt].c.k[Tt].s[0]/=255,ct[mt].c.k[Tt].s[1]/=255,ct[mt].c.k[Tt].s[2]/=255,ct[mt].c.k[Tt].s[3]/=255),ct[mt].c.k[Tt].e&&(ct[mt].c.k[Tt].e[0]/=255,ct[mt].c.k[Tt].e[1]/=255,ct[mt].c.k[Tt].e[2]/=255,ct[mt].c.k[Tt].e[3]/=255);else ct[mt].c.k[0]/=255,ct[mt].c.k[1]/=255,ct[mt].c.k[2]/=255,ct[mt].c.k[3]/=255}function St(ct){var mt,Rt=ct.length;for(mt=0;mt<Rt;mt+=1)ct[mt].ty===4&&gt(ct[mt].shapes)}return function(ct){if(_t(Et,ct.v)&&(St(ct.layers),ct.assets)){var mt,Rt=ct.assets.length;for(mt=0;mt<Rt;mt+=1)ct.assets[mt].layers&&St(ct.assets[mt].layers)}}}(),It=function(){var Et=[4,4,18];function gt(ct){var mt,Rt=ct.length,Tt,Dt;for(mt=Rt-1;mt>=0;mt-=1)if(ct[mt].ty==="sh")if(ct[mt].ks.k.i)ct[mt].ks.k.c=ct[mt].closed;else for(Dt=ct[mt].ks.k.length,Tt=0;Tt<Dt;Tt+=1)ct[mt].ks.k[Tt].s&&(ct[mt].ks.k[Tt].s[0].c=ct[mt].closed),ct[mt].ks.k[Tt].e&&(ct[mt].ks.k[Tt].e[0].c=ct[mt].closed);else ct[mt].ty==="gr"&&gt(ct[mt].it)}function St(ct){var mt,Rt,Tt=ct.length,Dt,kt,Ht,Pt;for(Rt=0;Rt<Tt;Rt+=1){if(mt=ct[Rt],mt.hasMask){var Lt=mt.masksProperties;for(kt=Lt.length,Dt=0;Dt<kt;Dt+=1)if(Lt[Dt].pt.k.i)Lt[Dt].pt.k.c=Lt[Dt].cl;else for(Pt=Lt[Dt].pt.k.length,Ht=0;Ht<Pt;Ht+=1)Lt[Dt].pt.k[Ht].s&&(Lt[Dt].pt.k[Ht].s[0].c=Lt[Dt].cl),Lt[Dt].pt.k[Ht].e&&(Lt[Dt].pt.k[Ht].e[0].c=Lt[Dt].cl)}mt.ty===4&&gt(mt.shapes)}}return function(ct){if(_t(Et,ct.v)&&(St(ct.layers),ct.assets)){var mt,Rt=ct.assets.length;for(mt=0;mt<Rt;mt+=1)ct.assets[mt].layers&&St(ct.assets[mt].layers)}}}();function Nt(Et){Et.__complete||(bt(Et),At(Et),xt(Et),wt(Et),It(Et),vt(Et.layers,Et.assets),ut(Et.chars,Et.assets),Et.__complete=!0)}function Ct(Et){Et.t.a.length===0&&"m"in Et.t.p}var jt={};return jt.completeData=Nt,jt.checkColors=bt,jt.checkChars=xt,jt.checkPathProperties=wt,jt.checkShapes=It,jt.completeLayers=vt,jt}if(_e.dataManager||(_e.dataManager=ht()),_e.assetLoader||(_e.assetLoader=function(){function vt(ot){var nt=ot.getResponseHeader("content-type");return nt&&ot.responseType==="json"&&nt.indexOf("json")!==-1||ot.response&&_typeof$5(ot.response)==="object"?ot.response:ot.response&&typeof ot.response=="string"?JSON.parse(ot.response):ot.responseText?JSON.parse(ot.responseText):null}function ut(ot,nt,dt,yt){var _t,At=new XMLHttpRequest;try{At.responseType="json"}catch{}At.onreadystatechange=function(){if(At.readyState===4)if(At.status===200)_t=vt(At),dt(_t);else try{_t=vt(At),dt(_t)}catch(xt){yt&&yt(xt)}};try{At.open(["G","E","T"].join(""),ot,!0)}catch{At.open(["G","E","T"].join(""),nt+"/"+ot,!0)}At.send()}return{load:ut}}()),ft.data.type==="loadAnimation")_e.assetLoader.load(ft.data.path,ft.data.fullPath,function(vt){_e.dataManager.completeData(vt),_e.postMessage({id:ft.data.id,payload:vt,status:"success"})},function(){_e.postMessage({id:ft.data.id,status:"error"})});else if(ft.data.type==="complete"){var pt=ft.data.animation;_e.dataManager.completeData(pt),_e.postMessage({id:ft.data.id,payload:pt,status:"success"})}else ft.data.type==="loadData"&&_e.assetLoader.load(ft.data.path,ft.data.fullPath,function(vt){_e.postMessage({id:ft.data.id,payload:vt,status:"success"})},function(){_e.postMessage({id:ft.data.id,status:"error"})})}),b.onmessage=function(at){var ft=at.data,ht=ft.id,pt=o[ht];o[ht]=null,ft.status==="success"?pt.onComplete(ft.payload):pt.onError&&pt.onError()})}function rt(at,ft){a+=1;var ht="processId_"+a;return o[ht]={onComplete:at,onError:ft},ht}function st(at,ft,ht){tt();var pt=rt(ft,ht);b.postMessage({type:"loadAnimation",path:at,fullPath:window.location.origin+window.location.pathname,id:pt})}function it(at,ft,ht){tt();var pt=rt(ft,ht);b.postMessage({type:"loadData",path:at,fullPath:window.location.origin+window.location.pathname,id:pt})}function lt(at,ft,ht){tt();var pt=rt(ft,ht);b.postMessage({type:"complete",animation:at,id:pt})}return{loadAnimation:st,loadData:it,completeAnimation:lt}}(),ImagePreloader=function(){var a=function(){var ut=createTag("canvas");ut.width=1,ut.height=1;var ot=ut.getContext("2d");return ot.fillStyle="rgba(0,0,0,0)",ot.fillRect(0,0,1,1),ut}();function o(){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 b(ut,ot,nt){var dt="";if(ut.e)dt=ut.p;else if(ot){var yt=ut.p;yt.indexOf("images/")!==-1&&(yt=yt.split("/")[1]),dt=ot+yt}else dt=nt,dt+=ut.u?ut.u:"",dt+=ut.p;return dt}function $(ut){var ot=0,nt=setInterval((function(){var dt=ut.getBBox();(dt.width||ot>500)&&(this._imageLoaded(),clearInterval(nt)),ot+=1}).bind(this),50)}function _e(ut){var ot=b(ut,this.assetsPath,this.path),nt=createNS("image");isSafari?this.testImageLoaded(nt):nt.addEventListener("load",this._imageLoaded,!1),nt.addEventListener("error",(function(){dt.img=a,this._imageLoaded()}).bind(this),!1),nt.setAttributeNS("http://www.w3.org/1999/xlink","href",ot),this._elementHelper.append?this._elementHelper.append(nt):this._elementHelper.appendChild(nt);var dt={img:nt,assetData:ut};return dt}function et(ut){var ot=b(ut,this.assetsPath,this.path),nt=createTag("img");nt.crossOrigin="anonymous",nt.addEventListener("load",this._imageLoaded,!1),nt.addEventListener("error",(function(){dt.img=a,this._imageLoaded()}).bind(this),!1),nt.src=ot;var dt={img:nt,assetData:ut};return dt}function tt(ut){var ot={assetData:ut},nt=b(ut,this.assetsPath,this.path);return dataManager.loadData(nt,(function(dt){ot.img=dt,this._footageLoaded()}).bind(this),(function(){ot.img={},this._footageLoaded()}).bind(this)),ot}function rt(ut,ot){this.imagesLoadedCb=ot;var nt,dt=ut.length;for(nt=0;nt<dt;nt+=1)ut[nt].layers||(!ut[nt].t||ut[nt].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(ut[nt]))):ut[nt].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(ut[nt]))))}function st(ut){this.path=ut||""}function it(ut){this.assetsPath=ut||""}function lt(ut){for(var ot=0,nt=this.images.length;ot<nt;){if(this.images[ot].assetData===ut)return this.images[ot].img;ot+=1}return null}function at(){this.imagesLoadedCb=null,this.images.length=0}function ft(){return this.totalImages===this.loadedAssets}function ht(){return this.totalFootages===this.loadedFootagesCount}function pt(ut,ot){ut==="svg"?(this._elementHelper=ot,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function vt(){this._imageLoaded=o.bind(this),this._footageLoaded=_.bind(this),this.testImageLoaded=$.bind(this),this.createFootageData=tt.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return vt.prototype={loadAssets:rt,setAssetsPath:it,setPath:st,loadedImages:ft,loadedFootages:ht,destroy:at,getAsset:lt,createImgData:et,createImageData:_e,imageLoaded:o,footageLoaded:_,setCacheType:pt},vt}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(o,_){if(this._cbs[o])for(var b=this._cbs[o],$=0;$<b.length;$+=1)b[$](_)},addEventListener:function(o,_){return this._cbs[o]||(this._cbs[o]=[]),this._cbs[o].push(_),(function(){this.removeEventListener(o,_)}).bind(this)},removeEventListener:function(o,_){if(!_)this._cbs[o]=null;else if(this._cbs[o]){for(var b=0,$=this._cbs[o].length;b<$;)this._cbs[o][b]===_&&(this._cbs[o].splice(b,1),b-=1,$-=1),b+=1;this._cbs[o].length||(this._cbs[o]=null)}}};var markerParser=function(){function a(o){for(var _=o.split(`\r
41
- `),b={},$,_e=0,et=0;et<_.length;et+=1)$=_[et].split(":"),$.length===2&&(b[$[0]]=$[1].trim(),_e+=1);if(_e===0)throw new Error;return b}return function(o){for(var _=[],b=0;b<o.length;b+=1){var $=o[b],_e={time:$.tm,duration:$.dr};try{_e.payload=JSON.parse(o[b].cm)}catch{try{_e.payload=a(o[b].cm)}catch{_e.payload={name:o[b].cm}}}_.push(_e)}return _}}(),ProjectInterface=function(){function a(o){this.compositions.push(o)}return function(){function o(_){for(var b=0,$=this.compositions.length;b<$;){if(this.compositions[b].data&&this.compositions[b].data.nm===_)return this.compositions[b].prepareFrame&&this.compositions[b].data.xt&&this.compositions[b].prepareFrame(this.currentFrame),this.compositions[b].compInterface;b+=1}return null}return o.compositions=[],o.currentFrame=0,o.registerComposition=a,o}}(),renderers={},registerRenderer=function(o,_){renderers[o]=_};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(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_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 o="svg";a.animType?o=a.animType:a.renderer&&(o=a.renderer);var _=getRenderer(o);this.renderer=new _(this,a.rendererSettings),this.imagePreloader.setCacheType(o,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=o,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,o){o&&_typeof$4(o)!=="object"&&(o=JSON.parse(o));var _={wrapper:a,animationData:o},b=a.attributes;_.path=b.getNamedItem("data-animation-path")?b.getNamedItem("data-animation-path").value:b.getNamedItem("data-bm-path")?b.getNamedItem("data-bm-path").value:b.getNamedItem("bm-path")?b.getNamedItem("bm-path").value:"",_.animType=b.getNamedItem("data-anim-type")?b.getNamedItem("data-anim-type").value:b.getNamedItem("data-bm-type")?b.getNamedItem("data-bm-type").value:b.getNamedItem("bm-type")?b.getNamedItem("bm-type").value:b.getNamedItem("data-bm-renderer")?b.getNamedItem("data-bm-renderer").value:b.getNamedItem("bm-renderer")?b.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var $=b.getNamedItem("data-anim-loop")?b.getNamedItem("data-anim-loop").value:b.getNamedItem("data-bm-loop")?b.getNamedItem("data-bm-loop").value:b.getNamedItem("bm-loop")?b.getNamedItem("bm-loop").value:"";$==="false"?_.loop=!1:$==="true"?_.loop=!0:$!==""&&(_.loop=parseInt($,10));var _e=b.getNamedItem("data-anim-autoplay")?b.getNamedItem("data-anim-autoplay").value:b.getNamedItem("data-bm-autoplay")?b.getNamedItem("data-bm-autoplay").value:b.getNamedItem("bm-autoplay")?b.getNamedItem("bm-autoplay").value:!0;_.autoplay=_e!=="false",_.name=b.getNamedItem("data-name")?b.getNamedItem("data-name").value:b.getNamedItem("data-bm-name")?b.getNamedItem("data-bm-name").value:b.getNamedItem("bm-name")?b.getNamedItem("bm-name").value:"";var et=b.getNamedItem("data-anim-prerender")?b.getNamedItem("data-anim-prerender").value:b.getNamedItem("data-bm-prerender")?b.getNamedItem("data-bm-prerender").value:b.getNamedItem("bm-prerender")?b.getNamedItem("bm-prerender").value:"";et==="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 o=this.animationData.layers,_,b=o.length,$=a.layers,_e,et=$.length;for(_e=0;_e<et;_e+=1)for(_=0;_<b;){if(o[_].id===$[_e].id){o[_]=$[_e];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(b=a.assets.length,_=0;_<b;_+=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 o=getExpressionsPlugin();o&&o.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 o=a.shift();this.timeCompleted=o.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(o){this.triggerConfigError(o)}},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,o){var _=typeof a=="number"?a:void 0,b=typeof o=="number"?o:void 0;this.renderer.updateContainerSize(_,b)},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 o,_=0;_<this.markers.length;_+=1)if(o=this.markers[_],o.payload&&o.payload.name===a)return o;return null},AnimationItem.prototype.goToAndStop=function(a,o,_){if(!(_&&this.name!==_)){var b=Number(a);if(isNaN(b)){var $=this.getMarkerData(a);$&&this.goToAndStop($.time,!0)}else o?this.setCurrentRawFrameValue(a):this.setCurrentRawFrameValue(a*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(a,o,_){if(!(_&&this.name!==_)){var b=Number(a);if(isNaN(b)){var $=this.getMarkerData(a);$&&($.duration?this.playSegments([$.time,$.time+$.duration],!0):this.goToAndStop($.time,!0))}else this.goToAndStop(b,o,_);this.play()}},AnimationItem.prototype.advanceTime=function(a){if(!(this.isPaused===!0||this.isLoaded===!1)){var o=this.currentRawFrame+a*this.frameModifier,_=!1;o>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(o>this.totalFrames?o%this.totalFrames:0)||(_=!0,o=this.totalFrames-1):o>=this.totalFrames?(this.playCount+=1,this.checkSegments(o%this.totalFrames)||(this.setCurrentRawFrameValue(o%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(o):o<0?this.checkSegments(o%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+o%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(_=!0,o=0)):this.setCurrentRawFrameValue(o),_&&(this.setCurrentRawFrameValue(o),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(a,o){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-o)):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+o)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(a,o){var _=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<a?_=a:this.currentRawFrame+this.firstFrame>o&&(_=o-a)),this.firstFrame=a,this.totalFrames=o-a,this.timeCompleted=this.totalFrames,_!==-1&&this.goToAndStop(_,!0)},AnimationItem.prototype.playSegments=function(a,o){if(o&&(this.segments.length=0),_typeof$4(a[0])==="object"){var _,b=a.length;for(_=0;_<b;_+=1)this.segments.push(a[_])}else this.segments.push(a);this.segments.length&&o&&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,o){o&&this.name!==o||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 o="";if(a.e)o=a.p;else if(this.assetsPath){var _=a.p;_.indexOf("images/")!==-1&&(_=_.split("/")[1]),o=this.assetsPath+_}else o=this.path,o+=a.u?a.u:"",o+=a.p;return o},AnimationItem.prototype.getAssetData=function(a){for(var o=0,_=this.assets.length;o<_;){if(a===this.assets[o].id)return this.assets[o];o+=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,o,_){try{var b=this.renderer.getElementByPath(a);b.updateDocumentData(o,_)}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 o=new BMRenderFrameErrorEvent(a,this.currentFrame);this.triggerEvent("error",o),this.onError&&this.onError.call(this,o)},AnimationItem.prototype.triggerConfigError=function(a){var o=new BMConfigErrorEvent(a,this.currentFrame);this.triggerEvent("error",o),this.onError&&this.onError.call(this,o)};var animationManager=function(){var a={},o=[],_=0,b=0,$=0,_e=!0,et=!1;function tt(gt){for(var St=0,ct=gt.target;St<b;)o[St].animation===ct&&(o.splice(St,1),St-=1,b-=1,ct.isPaused||lt()),St+=1}function rt(gt,St){if(!gt)return null;for(var ct=0;ct<b;){if(o[ct].elem===gt&&o[ct].elem!==null)return o[ct].animation;ct+=1}var mt=new AnimationItem;return at(mt,gt),mt.setData(gt,St),mt}function st(){var gt,St=o.length,ct=[];for(gt=0;gt<St;gt+=1)ct.push(o[gt].animation);return ct}function it(){$+=1,bt()}function lt(){$-=1}function at(gt,St){gt.addEventListener("destroy",tt),gt.addEventListener("_active",it),gt.addEventListener("_idle",lt),o.push({elem:St,animation:gt}),b+=1}function ft(gt){var St=new AnimationItem;return at(St,null),St.setParams(gt),St}function ht(gt,St){var ct;for(ct=0;ct<b;ct+=1)o[ct].animation.setSpeed(gt,St)}function pt(gt,St){var ct;for(ct=0;ct<b;ct+=1)o[ct].animation.setDirection(gt,St)}function vt(gt){var St;for(St=0;St<b;St+=1)o[St].animation.play(gt)}function ut(gt){var St=gt-_,ct;for(ct=0;ct<b;ct+=1)o[ct].animation.advanceTime(St);_=gt,$&&!et?window.requestAnimationFrame(ut):_e=!0}function ot(gt){_=gt,window.requestAnimationFrame(ut)}function nt(gt){var St;for(St=0;St<b;St+=1)o[St].animation.pause(gt)}function dt(gt,St,ct){var mt;for(mt=0;mt<b;mt+=1)o[mt].animation.goToAndStop(gt,St,ct)}function yt(gt){var St;for(St=0;St<b;St+=1)o[St].animation.stop(gt)}function _t(gt){var St;for(St=0;St<b;St+=1)o[St].animation.togglePause(gt)}function At(gt){var St;for(St=b-1;St>=0;St-=1)o[St].animation.destroy(gt)}function xt(gt,St,ct){var mt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Rt,Tt=mt.length;for(Rt=0;Rt<Tt;Rt+=1)ct&&mt[Rt].setAttribute("data-bm-type",ct),rt(mt[Rt],gt);if(St&&Tt===0){ct||(ct="svg");var Dt=document.getElementsByTagName("body")[0];Dt.innerText="";var kt=createTag("div");kt.style.width="100%",kt.style.height="100%",kt.setAttribute("data-bm-type",ct),Dt.appendChild(kt),rt(kt,gt)}}function wt(){var gt;for(gt=0;gt<b;gt+=1)o[gt].animation.resize()}function bt(){!et&&$&&_e&&(window.requestAnimationFrame(ot),_e=!1)}function It(){et=!0}function Nt(){et=!1,bt()}function Ct(gt,St){var ct;for(ct=0;ct<b;ct+=1)o[ct].animation.setVolume(gt,St)}function jt(gt){var St;for(St=0;St<b;St+=1)o[St].animation.mute(gt)}function Et(gt){var St;for(St=0;St<b;St+=1)o[St].animation.unmute(gt)}return a.registerAnimation=rt,a.loadAnimation=ft,a.setSpeed=ht,a.setDirection=pt,a.play=vt,a.pause=nt,a.stop=yt,a.togglePause=_t,a.searchAnimations=xt,a.resize=wt,a.goToAndStop=dt,a.destroy=At,a.freeze=It,a.unfreeze=Nt,a.setVolume=Ct,a.mute=jt,a.unmute=Et,a.getRegisteredAnimations=st,a}(),BezierFactory=function(){var a={};a.getBezierEasing=_;var o={};function _(ot,nt,dt,yt,_t){var At=_t||("bez_"+ot+"_"+nt+"_"+dt+"_"+yt).replace(/\./g,"p");if(o[At])return o[At];var xt=new ut([ot,nt,dt,yt]);return o[At]=xt,xt}var b=4,$=.001,_e=1e-7,et=10,tt=11,rt=1/(tt-1),st=typeof Float32Array=="function";function it(ot,nt){return 1-3*nt+3*ot}function lt(ot,nt){return 3*nt-6*ot}function at(ot){return 3*ot}function ft(ot,nt,dt){return((it(nt,dt)*ot+lt(nt,dt))*ot+at(nt))*ot}function ht(ot,nt,dt){return 3*it(nt,dt)*ot*ot+2*lt(nt,dt)*ot+at(nt)}function pt(ot,nt,dt,yt,_t){var At,xt,wt=0;do xt=nt+(dt-nt)/2,At=ft(xt,yt,_t)-ot,At>0?dt=xt:nt=xt;while(Math.abs(At)>_e&&++wt<et);return xt}function vt(ot,nt,dt,yt){for(var _t=0;_t<b;++_t){var At=ht(nt,dt,yt);if(At===0)return nt;var xt=ft(nt,dt,yt)-ot;nt-=xt/At}return nt}function ut(ot){this._p=ot,this._mSampleValues=st?new Float32Array(tt):new Array(tt),this._precomputed=!1,this.get=this.get.bind(this)}return ut.prototype={get:function(nt){var dt=this._p[0],yt=this._p[1],_t=this._p[2],At=this._p[3];return this._precomputed||this._precompute(),dt===yt&&_t===At?nt:nt===0?0:nt===1?1:ft(this._getTForX(nt),yt,At)},_precompute:function(){var nt=this._p[0],dt=this._p[1],yt=this._p[2],_t=this._p[3];this._precomputed=!0,(nt!==dt||yt!==_t)&&this._calcSampleValues()},_calcSampleValues:function(){for(var nt=this._p[0],dt=this._p[2],yt=0;yt<tt;++yt)this._mSampleValues[yt]=ft(yt*rt,nt,dt)},_getTForX:function(nt){for(var dt=this._p[0],yt=this._p[2],_t=this._mSampleValues,At=0,xt=1,wt=tt-1;xt!==wt&&_t[xt]<=nt;++xt)At+=rt;--xt;var bt=(nt-_t[xt])/(_t[xt+1]-_t[xt]),It=At+bt*rt,Nt=ht(It,dt,yt);return Nt>=$?vt(nt,It,dt,yt):Nt===0?It:pt(nt,At,At+rt,dt,yt)}},a}(),pooling=function(){function a(o){return o.concat(createSizedArray(o.length))}return{double:a}}(),poolFactory=function(){return function(a,o,_){var b=0,$=a,_e=createSizedArray($),et={newElement:tt,release:rt};function tt(){var st;return b?(b-=1,st=_e[b]):st=o(),st}function rt(st){b===$&&(_e=pooling.double(_e),$*=2),_&&_(st),_e[b]=st,b+=1}return et}}(),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 o(_){var b,$=_.lengths.length;for(b=0;b<$;b+=1)bezierLengthPool.release(_.lengths[b]);_.lengths.length=0}return poolFactory(8,a,o)}();function bezFunction(){var a=Math;function o(at,ft,ht,pt,vt,ut){var ot=at*pt+ft*vt+ht*ut-vt*pt-ut*at-ht*ft;return ot>-.001&&ot<.001}function _(at,ft,ht,pt,vt,ut,ot,nt,dt){if(ht===0&&ut===0&&dt===0)return o(at,ft,pt,vt,ot,nt);var yt=a.sqrt(a.pow(pt-at,2)+a.pow(vt-ft,2)+a.pow(ut-ht,2)),_t=a.sqrt(a.pow(ot-at,2)+a.pow(nt-ft,2)+a.pow(dt-ht,2)),At=a.sqrt(a.pow(ot-pt,2)+a.pow(nt-vt,2)+a.pow(dt-ut,2)),xt;return yt>_t?yt>At?xt=yt-_t-At:xt=At-_t-yt:At>_t?xt=At-_t-yt:xt=_t-yt-At,xt>-1e-4&&xt<1e-4}var b=function(){return function(at,ft,ht,pt){var vt=getDefaultCurveSegments(),ut,ot,nt,dt,yt,_t=0,At,xt=[],wt=[],bt=bezierLengthPool.newElement();for(nt=ht.length,ut=0;ut<vt;ut+=1){for(yt=ut/(vt-1),At=0,ot=0;ot<nt;ot+=1)dt=bmPow(1-yt,3)*at[ot]+3*bmPow(1-yt,2)*yt*ht[ot]+3*(1-yt)*bmPow(yt,2)*pt[ot]+bmPow(yt,3)*ft[ot],xt[ot]=dt,wt[ot]!==null&&(At+=bmPow(xt[ot]-wt[ot],2)),wt[ot]=xt[ot];At&&(At=bmSqrt(At),_t+=At),bt.percents[ut]=yt,bt.lengths[ut]=_t}return bt.addedLength=_t,bt}}();function $(at){var ft=segmentsLengthPool.newElement(),ht=at.c,pt=at.v,vt=at.o,ut=at.i,ot,nt=at._length,dt=ft.lengths,yt=0;for(ot=0;ot<nt-1;ot+=1)dt[ot]=b(pt[ot],pt[ot+1],vt[ot],ut[ot+1]),yt+=dt[ot].addedLength;return ht&&nt&&(dt[ot]=b(pt[ot],pt[0],vt[ot],ut[0]),yt+=dt[ot].addedLength),ft.totalLength=yt,ft}function _e(at){this.segmentLength=0,this.points=new Array(at)}function et(at,ft){this.partialLength=at,this.point=ft}var tt=function(){var at={};return function(ft,ht,pt,vt){var ut=(ft[0]+"_"+ft[1]+"_"+ht[0]+"_"+ht[1]+"_"+pt[0]+"_"+pt[1]+"_"+vt[0]+"_"+vt[1]).replace(/\./g,"p");if(!at[ut]){var ot=getDefaultCurveSegments(),nt,dt,yt,_t,At,xt=0,wt,bt,It=null;ft.length===2&&(ft[0]!==ht[0]||ft[1]!==ht[1])&&o(ft[0],ft[1],ht[0],ht[1],ft[0]+pt[0],ft[1]+pt[1])&&o(ft[0],ft[1],ht[0],ht[1],ht[0]+vt[0],ht[1]+vt[1])&&(ot=2);var Nt=new _e(ot);for(yt=pt.length,nt=0;nt<ot;nt+=1){for(bt=createSizedArray(yt),At=nt/(ot-1),wt=0,dt=0;dt<yt;dt+=1)_t=bmPow(1-At,3)*ft[dt]+3*bmPow(1-At,2)*At*(ft[dt]+pt[dt])+3*(1-At)*bmPow(At,2)*(ht[dt]+vt[dt])+bmPow(At,3)*ht[dt],bt[dt]=_t,It!==null&&(wt+=bmPow(bt[dt]-It[dt],2));wt=bmSqrt(wt),xt+=wt,Nt.points[nt]=new et(wt,bt),It=bt}Nt.segmentLength=xt,at[ut]=Nt}return at[ut]}}();function rt(at,ft){var ht=ft.percents,pt=ft.lengths,vt=ht.length,ut=bmFloor((vt-1)*at),ot=at*ft.addedLength,nt=0;if(ut===vt-1||ut===0||ot===pt[ut])return ht[ut];for(var dt=pt[ut]>ot?-1:1,yt=!0;yt;)if(pt[ut]<=ot&&pt[ut+1]>ot?(nt=(ot-pt[ut])/(pt[ut+1]-pt[ut]),yt=!1):ut+=dt,ut<0||ut>=vt-1){if(ut===vt-1)return ht[ut];yt=!1}return ht[ut]+(ht[ut+1]-ht[ut])*nt}function st(at,ft,ht,pt,vt,ut){var ot=rt(vt,ut),nt=1-ot,dt=a.round((nt*nt*nt*at[0]+(ot*nt*nt+nt*ot*nt+nt*nt*ot)*ht[0]+(ot*ot*nt+nt*ot*ot+ot*nt*ot)*pt[0]+ot*ot*ot*ft[0])*1e3)/1e3,yt=a.round((nt*nt*nt*at[1]+(ot*nt*nt+nt*ot*nt+nt*nt*ot)*ht[1]+(ot*ot*nt+nt*ot*ot+ot*nt*ot)*pt[1]+ot*ot*ot*ft[1])*1e3)/1e3;return[dt,yt]}var it=createTypedArray("float32",8);function lt(at,ft,ht,pt,vt,ut,ot){vt<0?vt=0:vt>1&&(vt=1);var nt=rt(vt,ot);ut=ut>1?1:ut;var dt=rt(ut,ot),yt,_t=at.length,At=1-nt,xt=1-dt,wt=At*At*At,bt=nt*At*At*3,It=nt*nt*At*3,Nt=nt*nt*nt,Ct=At*At*xt,jt=nt*At*xt+At*nt*xt+At*At*dt,Et=nt*nt*xt+At*nt*dt+nt*At*dt,gt=nt*nt*dt,St=At*xt*xt,ct=nt*xt*xt+At*dt*xt+At*xt*dt,mt=nt*dt*xt+At*dt*dt+nt*xt*dt,Rt=nt*dt*dt,Tt=xt*xt*xt,Dt=dt*xt*xt+xt*dt*xt+xt*xt*dt,kt=dt*dt*xt+xt*dt*dt+dt*xt*dt,Ht=dt*dt*dt;for(yt=0;yt<_t;yt+=1)it[yt*4]=a.round((wt*at[yt]+bt*ht[yt]+It*pt[yt]+Nt*ft[yt])*1e3)/1e3,it[yt*4+1]=a.round((Ct*at[yt]+jt*ht[yt]+Et*pt[yt]+gt*ft[yt])*1e3)/1e3,it[yt*4+2]=a.round((St*at[yt]+ct*ht[yt]+mt*pt[yt]+Rt*ft[yt])*1e3)/1e3,it[yt*4+3]=a.round((Tt*at[yt]+Dt*ht[yt]+kt*pt[yt]+Ht*ft[yt])*1e3)/1e3;return it}return{getSegmentsLength:$,getNewSegment:lt,getPointInSegment:st,buildBezierData:tt,pointOnLine2D:o,pointOnLine3D:_}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(a,o){var _=this.offsetTime,b;this.propType==="multidimensional"&&(b=createTypedArray("float32",this.pv.length));for(var $=o.lastIndex,_e=$,et=this.keyframes.length-1,tt=!0,rt,st,it;tt;){if(rt=this.keyframes[_e],st=this.keyframes[_e+1],_e===et-1&&a>=st.t-_){rt.h&&(rt=st),$=0;break}if(st.t-_>a){$=_e;break}_e<et-1?_e+=1:($=0,tt=!1)}it=this.keyframesMetadata[_e]||{};var lt,at,ft,ht,pt,vt,ut=st.t-_,ot=rt.t-_,nt;if(rt.to){it.bezierData||(it.bezierData=bez.buildBezierData(rt.s,st.s||rt.e,rt.to,rt.ti));var dt=it.bezierData;if(a>=ut||a<ot){var yt=a>=ut?dt.points.length-1:0;for(at=dt.points[yt].point.length,lt=0;lt<at;lt+=1)b[lt]=dt.points[yt].point[lt]}else{it.__fnct?vt=it.__fnct:(vt=BezierFactory.getBezierEasing(rt.o.x,rt.o.y,rt.i.x,rt.i.y,rt.n).get,it.__fnct=vt),ft=vt((a-ot)/(ut-ot));var _t=dt.segmentLength*ft,At,xt=o.lastFrame<a&&o._lastKeyframeIndex===_e?o._lastAddedLength:0;for(pt=o.lastFrame<a&&o._lastKeyframeIndex===_e?o._lastPoint:0,tt=!0,ht=dt.points.length;tt;){if(xt+=dt.points[pt].partialLength,_t===0||ft===0||pt===dt.points.length-1){for(at=dt.points[pt].point.length,lt=0;lt<at;lt+=1)b[lt]=dt.points[pt].point[lt];break}else if(_t>=xt&&_t<xt+dt.points[pt+1].partialLength){for(At=(_t-xt)/dt.points[pt+1].partialLength,at=dt.points[pt].point.length,lt=0;lt<at;lt+=1)b[lt]=dt.points[pt].point[lt]+(dt.points[pt+1].point[lt]-dt.points[pt].point[lt])*At;break}pt<ht-1?pt+=1:tt=!1}o._lastPoint=pt,o._lastAddedLength=xt-dt.points[pt].partialLength,o._lastKeyframeIndex=_e}}else{var wt,bt,It,Nt,Ct;if(et=rt.s.length,nt=st.s||rt.e,this.sh&&rt.h!==1)if(a>=ut)b[0]=nt[0],b[1]=nt[1],b[2]=nt[2];else if(a<=ot)b[0]=rt.s[0],b[1]=rt.s[1],b[2]=rt.s[2];else{var jt=createQuaternion(rt.s),Et=createQuaternion(nt),gt=(a-ot)/(ut-ot);quaternionToEuler(b,slerp(jt,Et,gt))}else for(_e=0;_e<et;_e+=1)rt.h!==1&&(a>=ut?ft=1:a<ot?ft=0:(rt.o.x.constructor===Array?(it.__fnct||(it.__fnct=[]),it.__fnct[_e]?vt=it.__fnct[_e]:(wt=rt.o.x[_e]===void 0?rt.o.x[0]:rt.o.x[_e],bt=rt.o.y[_e]===void 0?rt.o.y[0]:rt.o.y[_e],It=rt.i.x[_e]===void 0?rt.i.x[0]:rt.i.x[_e],Nt=rt.i.y[_e]===void 0?rt.i.y[0]:rt.i.y[_e],vt=BezierFactory.getBezierEasing(wt,bt,It,Nt).get,it.__fnct[_e]=vt)):it.__fnct?vt=it.__fnct:(wt=rt.o.x,bt=rt.o.y,It=rt.i.x,Nt=rt.i.y,vt=BezierFactory.getBezierEasing(wt,bt,It,Nt).get,rt.keyframeMetadata=vt),ft=vt((a-ot)/(ut-ot)))),nt=st.s||rt.e,Ct=rt.h===1?rt.s[_e]:rt.s[_e]+(nt[_e]-rt.s[_e])*ft,this.propType==="multidimensional"?b[_e]=Ct:b=Ct}return o.lastIndex=$,b}function slerp(a,o,_){var b=[],$=a[0],_e=a[1],et=a[2],tt=a[3],rt=o[0],st=o[1],it=o[2],lt=o[3],at,ft,ht,pt,vt;return ft=$*rt+_e*st+et*it+tt*lt,ft<0&&(ft=-ft,rt=-rt,st=-st,it=-it,lt=-lt),1-ft>1e-6?(at=Math.acos(ft),ht=Math.sin(at),pt=Math.sin((1-_)*at)/ht,vt=Math.sin(_*at)/ht):(pt=1-_,vt=_),b[0]=pt*$+vt*rt,b[1]=pt*_e+vt*st,b[2]=pt*et+vt*it,b[3]=pt*tt+vt*lt,b}function quaternionToEuler(a,o){var _=o[0],b=o[1],$=o[2],_e=o[3],et=Math.atan2(2*b*_e-2*_*$,1-2*b*b-2*$*$),tt=Math.asin(2*_*b+2*$*_e),rt=Math.atan2(2*_*_e-2*b*$,1-2*_*_-2*$*$);a[0]=et/degToRads,a[1]=tt/degToRads,a[2]=rt/degToRads}function createQuaternion(a){var o=a[0]*degToRads,_=a[1]*degToRads,b=a[2]*degToRads,$=Math.cos(o/2),_e=Math.cos(_/2),et=Math.cos(b/2),tt=Math.sin(o/2),rt=Math.sin(_/2),st=Math.sin(b/2),it=$*_e*et-tt*rt*st,lt=tt*rt*et+$*_e*st,at=tt*_e*et+$*rt*st,ft=$*rt*et-tt*_e*st;return[lt,at,ft,it]}function getValueAtCurrentTime(){var a=this.comp.renderedFrame-this.offsetTime,o=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<o&&a<o))){this._caching.lastFrame>=a&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var b=this.interpolateValue(a,this._caching);this.pv=b}return this._caching.lastFrame=a,this.pv}function setVValue(a){var o;if(this.propType==="unidimensional")o=a*this.mult,mathAbs(this.v-o)>1e-5&&(this.v=o,this._mdf=!0);else for(var _=0,b=this.v.length;_<b;)o=a[_]*this.mult,mathAbs(this.v[_]-o)>1e-5&&(this.v[_]=o,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,o=this.effectsSequence.length,_=this.kf?this.pv:this.data.k;for(a=0;a<o;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,o,_,b){this.propType="unidimensional",this.mult=_||1,this.data=o,this.v=_?o.k*_:o.k,this.pv=o.k,this._mdf=!1,this.elem=a,this.container=b,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,o,_,b){this.propType="multidimensional",this.mult=_||1,this.data=o,this._mdf=!1,this.elem=a,this.container=b,this.comp=a.comp,this.k=!1,this.kf=!1,this.frameId=-1;var $,_e=o.k.length;for(this.v=createTypedArray("float32",_e),this.pv=createTypedArray("float32",_e),this.vel=createTypedArray("float32",_e),$=0;$<_e;$+=1)this.v[$]=o.k[$]*this.mult,this.pv[$]=o.k[$];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(a,o,_,b){this.propType="unidimensional",this.keyframes=o.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=o,this.mult=_||1,this.elem=a,this.container=b,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,o,_,b){this.propType="multidimensional";var $,_e=o.k.length,et,tt,rt,st;for($=0;$<_e-1;$+=1)o.k[$].to&&o.k[$].s&&o.k[$+1]&&o.k[$+1].s&&(et=o.k[$].s,tt=o.k[$+1].s,rt=o.k[$].to,st=o.k[$].ti,(et.length===2&&!(et[0]===tt[0]&&et[1]===tt[1])&&bez.pointOnLine2D(et[0],et[1],tt[0],tt[1],et[0]+rt[0],et[1]+rt[1])&&bez.pointOnLine2D(et[0],et[1],tt[0],tt[1],tt[0]+st[0],tt[1]+st[1])||et.length===3&&!(et[0]===tt[0]&&et[1]===tt[1]&&et[2]===tt[2])&&bez.pointOnLine3D(et[0],et[1],et[2],tt[0],tt[1],tt[2],et[0]+rt[0],et[1]+rt[1],et[2]+rt[2])&&bez.pointOnLine3D(et[0],et[1],et[2],tt[0],tt[1],tt[2],tt[0]+st[0],tt[1]+st[1],tt[2]+st[2]))&&(o.k[$].to=null,o.k[$].ti=null),et[0]===tt[0]&&et[1]===tt[1]&&rt[0]===0&&rt[1]===0&&st[0]===0&&st[1]===0&&(et.length===2||et[2]===tt[2]&&rt[2]===0&&st[2]===0)&&(o.k[$].to=null,o.k[$].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=o,this.keyframes=o.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=b,this.comp=a.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var it=o.k[0].s.length;for(this.v=createTypedArray("float32",it),this.pv=createTypedArray("float32",it),$=0;$<it;$+=1)this.v[$]=initFrame,this.pv[$]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",it)},this.addEffect=addEffect}var PropertyFactory=function(){function a(_,b,$,_e,et){b.sid&&(b=_.globalData.slotManager.getProp(b));var tt;if(!b.k.length)tt=new ValueProperty(_,b,_e,et);else if(typeof b.k[0]=="number")tt=new MultiDimensionalProperty(_,b,_e,et);else switch($){case 0:tt=new KeyframedValueProperty(_,b,_e,et);break;case 1:tt=new KeyframedMultidimensionalProperty(_,b,_e,et);break}return tt.effectsSequence.length&&et.addDynamicProperty(tt),tt}var o={getProp:a};return o}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(o){this.dynamicProperties.indexOf(o)===-1&&(this.dynamicProperties.push(o),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var o,_=this.dynamicProperties.length;for(o=0;o<_;o+=1)this.dynamicProperties[o].getValue(),this.dynamicProperties[o]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(o){this.container=o,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,o){this.c=a,this.setLength(o);for(var _=0;_<o;)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,o,_,b,$){var _e;switch(this._length=Math.max(this._length,b+1),this._length>=this._maxLength&&this.doubleArrayLength(),_){case"v":_e=this.v;break;case"i":_e=this.i;break;case"o":_e=this.o;break;default:_e=[];break}(!_e[b]||_e[b]&&!$)&&(_e[b]=pointPool.newElement()),_e[b][0]=a,_e[b][1]=o},ShapePath.prototype.setTripleAt=function(a,o,_,b,$,_e,et,tt){this.setXYAt(a,o,"v",et,tt),this.setXYAt(_,b,"o",et,tt),this.setXYAt($,_e,"i",et,tt)},ShapePath.prototype.reverse=function(){var a=new ShapePath;a.setPathData(this.c,this._length);var o=this.v,_=this.o,b=this.i,$=0;this.c&&(a.setTripleAt(o[0][0],o[0][1],b[0][0],b[0][1],_[0][0],_[0][1],0,!1),$=1);var _e=this._length-1,et=this._length,tt;for(tt=$;tt<et;tt+=1)a.setTripleAt(o[_e][0],o[_e][1],b[_e][0],b[_e][1],_[_e][0],_[_e][1],tt,!1),_e-=1;return a},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function a(){return new ShapePath}function o($){var _e=$._length,et;for(et=0;et<_e;et+=1)pointPool.release($.v[et]),pointPool.release($.i[et]),pointPool.release($.o[et]),$.v[et]=null,$.i[et]=null,$.o[et]=null;$._length=0,$.c=!1}function _($){var _e=b.newElement(),et,tt=$._length===void 0?$.v.length:$._length;for(_e.setLength(tt),_e.c=$.c,et=0;et<tt;et+=1)_e.setTripleAt($.v[et][0],$.v[et][1],$.o[et][0],$.o[et][1],$.i[et][0],$.i[et][1],et);return _e}var b=poolFactory(4,a,o);return b.clone=_,b}();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:$,release:_e},o=0,_=4,b=createSizedArray(_);function $(){var et;return o?(o-=1,et=b[o]):et=new ShapeCollection,et}function _e(et){var tt,rt=et._length;for(tt=0;tt<rt;tt+=1)shapePool.release(et.shapes[tt]);et._length=0,o===_&&(b=pooling.double(b),_*=2),b[o]=et,o+=1}return a}(),ShapePropertyFactory=function(){var a=-999999;function o(ut,ot,nt){var dt=nt.lastIndex,yt,_t,At,xt,wt,bt,It,Nt,Ct,jt=this.keyframes;if(ut<jt[0].t-this.offsetTime)yt=jt[0].s[0],At=!0,dt=0;else if(ut>=jt[jt.length-1].t-this.offsetTime)yt=jt[jt.length-1].s?jt[jt.length-1].s[0]:jt[jt.length-2].e[0],At=!0;else{for(var Et=dt,gt=jt.length-1,St=!0,ct,mt,Rt;St&&(ct=jt[Et],mt=jt[Et+1],!(mt.t-this.offsetTime>ut));)Et<gt-1?Et+=1:St=!1;if(Rt=this.keyframesMetadata[Et]||{},At=ct.h===1,dt=Et,!At){if(ut>=mt.t-this.offsetTime)Nt=1;else if(ut<ct.t-this.offsetTime)Nt=0;else{var Tt;Rt.__fnct?Tt=Rt.__fnct:(Tt=BezierFactory.getBezierEasing(ct.o.x,ct.o.y,ct.i.x,ct.i.y).get,Rt.__fnct=Tt),Nt=Tt((ut-(ct.t-this.offsetTime))/(mt.t-this.offsetTime-(ct.t-this.offsetTime)))}_t=mt.s?mt.s[0]:ct.e[0]}yt=ct.s[0]}for(bt=ot._length,It=yt.i[0].length,nt.lastIndex=dt,xt=0;xt<bt;xt+=1)for(wt=0;wt<It;wt+=1)Ct=At?yt.i[xt][wt]:yt.i[xt][wt]+(_t.i[xt][wt]-yt.i[xt][wt])*Nt,ot.i[xt][wt]=Ct,Ct=At?yt.o[xt][wt]:yt.o[xt][wt]+(_t.o[xt][wt]-yt.o[xt][wt])*Nt,ot.o[xt][wt]=Ct,Ct=At?yt.v[xt][wt]:yt.v[xt][wt]+(_t.v[xt][wt]-yt.v[xt][wt])*Nt,ot.v[xt][wt]=Ct}function _(){var ut=this.comp.renderedFrame-this.offsetTime,ot=this.keyframes[0].t-this.offsetTime,nt=this.keyframes[this.keyframes.length-1].t-this.offsetTime,dt=this._caching.lastFrame;return dt!==a&&(dt<ot&&ut<ot||dt>nt&&ut>nt)||(this._caching.lastIndex=dt<ut?this._caching.lastIndex:0,this.interpolateShape(ut,this.pv,this._caching)),this._caching.lastFrame=ut,this.pv}function b(){this.paths=this.localShapeCollection}function $(ut,ot){if(ut._length!==ot._length||ut.c!==ot.c)return!1;var nt,dt=ut._length;for(nt=0;nt<dt;nt+=1)if(ut.v[nt][0]!==ot.v[nt][0]||ut.v[nt][1]!==ot.v[nt][1]||ut.o[nt][0]!==ot.o[nt][0]||ut.o[nt][1]!==ot.o[nt][1]||ut.i[nt][0]!==ot.i[nt][0]||ut.i[nt][1]!==ot.i[nt][1])return!1;return!0}function _e(ut){$(this.v,ut)||(this.v=shapePool.clone(ut),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function et(){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 ut;this.kf?ut=this.pv:this.data.ks?ut=this.data.ks.k:ut=this.data.pt.k;var ot,nt=this.effectsSequence.length;for(ot=0;ot<nt;ot+=1)ut=this.effectsSequence[ot](ut);this.setVValue(ut),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function tt(ut,ot,nt){this.propType="shape",this.comp=ut.comp,this.container=ut,this.elem=ut,this.data=ot,this.k=!1,this.kf=!1,this._mdf=!1;var dt=nt===3?ot.pt.k:ot.ks.k;this.v=shapePool.clone(dt),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=b,this.effectsSequence=[]}function rt(ut){this.effectsSequence.push(ut),this.container.addDynamicProperty(this)}tt.prototype.interpolateShape=o,tt.prototype.getValue=et,tt.prototype.setVValue=_e,tt.prototype.addEffect=rt;function st(ut,ot,nt){this.propType="shape",this.comp=ut.comp,this.elem=ut,this.container=ut,this.offsetTime=ut.data.st,this.keyframes=nt===3?ot.pt.k:ot.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var dt=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,dt),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=a,this.reset=b,this._caching={lastFrame:a,lastIndex:0},this.effectsSequence=[_.bind(this)]}st.prototype.getValue=et,st.prototype.interpolateShape=o,st.prototype.setVValue=_e,st.prototype.addEffect=rt;var it=function(){var ut=roundCorner;function ot(nt,dt){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=dt.d,this.elem=nt,this.comp=nt.comp,this.frameId=-1,this.initDynamicPropertyContainer(nt),this.p=PropertyFactory.getProp(nt,dt.p,1,0,this),this.s=PropertyFactory.getProp(nt,dt.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return ot.prototype={reset:b,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var dt=this.p.v[0],yt=this.p.v[1],_t=this.s.v[0]/2,At=this.s.v[1]/2,xt=this.d!==3,wt=this.v;wt.v[0][0]=dt,wt.v[0][1]=yt-At,wt.v[1][0]=xt?dt+_t:dt-_t,wt.v[1][1]=yt,wt.v[2][0]=dt,wt.v[2][1]=yt+At,wt.v[3][0]=xt?dt-_t:dt+_t,wt.v[3][1]=yt,wt.i[0][0]=xt?dt-_t*ut:dt+_t*ut,wt.i[0][1]=yt-At,wt.i[1][0]=xt?dt+_t:dt-_t,wt.i[1][1]=yt-At*ut,wt.i[2][0]=xt?dt+_t*ut:dt-_t*ut,wt.i[2][1]=yt+At,wt.i[3][0]=xt?dt-_t:dt+_t,wt.i[3][1]=yt+At*ut,wt.o[0][0]=xt?dt+_t*ut:dt-_t*ut,wt.o[0][1]=yt-At,wt.o[1][0]=xt?dt+_t:dt-_t,wt.o[1][1]=yt+At*ut,wt.o[2][0]=xt?dt-_t*ut:dt+_t*ut,wt.o[2][1]=yt+At,wt.o[3][0]=xt?dt-_t:dt+_t,wt.o[3][1]=yt-At*ut}},extendPrototype([DynamicPropertyContainer],ot),ot}(),lt=function(){function ut(ot,nt){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=ot,this.comp=ot.comp,this.data=nt,this.frameId=-1,this.d=nt.d,this.initDynamicPropertyContainer(ot),nt.sy===1?(this.ir=PropertyFactory.getProp(ot,nt.ir,0,0,this),this.is=PropertyFactory.getProp(ot,nt.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(ot,nt.pt,0,0,this),this.p=PropertyFactory.getProp(ot,nt.p,1,0,this),this.r=PropertyFactory.getProp(ot,nt.r,0,degToRads,this),this.or=PropertyFactory.getProp(ot,nt.or,0,0,this),this.os=PropertyFactory.getProp(ot,nt.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 ut.prototype={reset:b,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var nt=Math.floor(this.pt.v)*2,dt=Math.PI*2/nt,yt=!0,_t=this.or.v,At=this.ir.v,xt=this.os.v,wt=this.is.v,bt=2*Math.PI*_t/(nt*2),It=2*Math.PI*At/(nt*2),Nt,Ct,jt,Et,gt=-Math.PI/2;gt+=this.r.v;var St=this.data.d===3?-1:1;for(this.v._length=0,Nt=0;Nt<nt;Nt+=1){Ct=yt?_t:At,jt=yt?xt:wt,Et=yt?bt:It;var ct=Ct*Math.cos(gt),mt=Ct*Math.sin(gt),Rt=ct===0&&mt===0?0:mt/Math.sqrt(ct*ct+mt*mt),Tt=ct===0&&mt===0?0:-ct/Math.sqrt(ct*ct+mt*mt);ct+=+this.p.v[0],mt+=+this.p.v[1],this.v.setTripleAt(ct,mt,ct-Rt*Et*jt*St,mt-Tt*Et*jt*St,ct+Rt*Et*jt*St,mt+Tt*Et*jt*St,Nt,!0),yt=!yt,gt+=dt*St}},convertPolygonToPath:function(){var nt=Math.floor(this.pt.v),dt=Math.PI*2/nt,yt=this.or.v,_t=this.os.v,At=2*Math.PI*yt/(nt*4),xt,wt=-Math.PI*.5,bt=this.data.d===3?-1:1;for(wt+=this.r.v,this.v._length=0,xt=0;xt<nt;xt+=1){var It=yt*Math.cos(wt),Nt=yt*Math.sin(wt),Ct=It===0&&Nt===0?0:Nt/Math.sqrt(It*It+Nt*Nt),jt=It===0&&Nt===0?0:-It/Math.sqrt(It*It+Nt*Nt);It+=+this.p.v[0],Nt+=+this.p.v[1],this.v.setTripleAt(It,Nt,It-Ct*At*_t*bt,Nt-jt*At*_t*bt,It+Ct*At*_t*bt,Nt+jt*At*_t*bt,xt,!0),wt+=dt*bt}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],ut),ut}(),at=function(){function ut(ot,nt){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=ot,this.comp=ot.comp,this.frameId=-1,this.d=nt.d,this.initDynamicPropertyContainer(ot),this.p=PropertyFactory.getProp(ot,nt.p,1,0,this),this.s=PropertyFactory.getProp(ot,nt.s,1,0,this),this.r=PropertyFactory.getProp(ot,nt.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return ut.prototype={convertRectToPath:function(){var nt=this.p.v[0],dt=this.p.v[1],yt=this.s.v[0]/2,_t=this.s.v[1]/2,At=bmMin(yt,_t,this.r.v),xt=At*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(nt+yt,dt-_t+At,nt+yt,dt-_t+At,nt+yt,dt-_t+xt,0,!0),this.v.setTripleAt(nt+yt,dt+_t-At,nt+yt,dt+_t-xt,nt+yt,dt+_t-At,1,!0),At!==0?(this.v.setTripleAt(nt+yt-At,dt+_t,nt+yt-At,dt+_t,nt+yt-xt,dt+_t,2,!0),this.v.setTripleAt(nt-yt+At,dt+_t,nt-yt+xt,dt+_t,nt-yt+At,dt+_t,3,!0),this.v.setTripleAt(nt-yt,dt+_t-At,nt-yt,dt+_t-At,nt-yt,dt+_t-xt,4,!0),this.v.setTripleAt(nt-yt,dt-_t+At,nt-yt,dt-_t+xt,nt-yt,dt-_t+At,5,!0),this.v.setTripleAt(nt-yt+At,dt-_t,nt-yt+At,dt-_t,nt-yt+xt,dt-_t,6,!0),this.v.setTripleAt(nt+yt-At,dt-_t,nt+yt-xt,dt-_t,nt+yt-At,dt-_t,7,!0)):(this.v.setTripleAt(nt-yt,dt+_t,nt-yt+xt,dt+_t,nt-yt,dt+_t,2),this.v.setTripleAt(nt-yt,dt-_t,nt-yt,dt-_t+xt,nt-yt,dt-_t,3))):(this.v.setTripleAt(nt+yt,dt-_t+At,nt+yt,dt-_t+xt,nt+yt,dt-_t+At,0,!0),At!==0?(this.v.setTripleAt(nt+yt-At,dt-_t,nt+yt-At,dt-_t,nt+yt-xt,dt-_t,1,!0),this.v.setTripleAt(nt-yt+At,dt-_t,nt-yt+xt,dt-_t,nt-yt+At,dt-_t,2,!0),this.v.setTripleAt(nt-yt,dt-_t+At,nt-yt,dt-_t+At,nt-yt,dt-_t+xt,3,!0),this.v.setTripleAt(nt-yt,dt+_t-At,nt-yt,dt+_t-xt,nt-yt,dt+_t-At,4,!0),this.v.setTripleAt(nt-yt+At,dt+_t,nt-yt+At,dt+_t,nt-yt+xt,dt+_t,5,!0),this.v.setTripleAt(nt+yt-At,dt+_t,nt+yt-xt,dt+_t,nt+yt-At,dt+_t,6,!0),this.v.setTripleAt(nt+yt,dt+_t-At,nt+yt,dt+_t-At,nt+yt,dt+_t-xt,7,!0)):(this.v.setTripleAt(nt-yt,dt-_t,nt-yt+xt,dt-_t,nt-yt,dt-_t,1,!0),this.v.setTripleAt(nt-yt,dt+_t,nt-yt,dt+_t-xt,nt-yt,dt+_t,2,!0),this.v.setTripleAt(nt+yt,dt+_t,nt+yt-xt,dt+_t,nt+yt,dt+_t,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:b},extendPrototype([DynamicPropertyContainer],ut),ut}();function ft(ut,ot,nt){var dt;if(nt===3||nt===4){var yt=nt===3?ot.pt:ot.ks,_t=yt.k;_t.length?dt=new st(ut,ot,nt):dt=new tt(ut,ot,nt)}else nt===5?dt=new at(ut,ot):nt===6?dt=new it(ut,ot):nt===7&&(dt=new lt(ut,ot));return dt.k&&ut.addDynamicProperty(dt),dt}function ht(){return tt}function pt(){return st}var vt={};return vt.getShapeProp=ft,vt.getConstructorFunction=ht,vt.getKeyframedConstructorFunction=pt,vt}();/*!
40
+ `+_e.stack}return{value:a,source:o,stack:$,digest:null}}function Li(a,o,_){return{value:a,source:null,stack:_??null,digest:o??null}}function Mi(a,o){try{console.error(o.value)}catch(_){setTimeout(function(){throw _})}}var Ni=typeof WeakMap=="function"?WeakMap:Map;function Oi(a,o,_){_=ch(-1,_),_.tag=3,_.payload={element:null};var b=o.value;return _.callback=function(){Pi||(Pi=!0,Qi=b),Mi(a,o)},_}function Ri(a,o,_){_=ch(-1,_),_.tag=3;var b=a.type.getDerivedStateFromError;if(typeof b=="function"){var $=o.value;_.payload=function(){return b($)},_.callback=function(){Mi(a,o)}}var _e=a.stateNode;return _e!==null&&typeof _e.componentDidCatch=="function"&&(_.callback=function(){Mi(a,o),typeof b!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var et=o.stack;this.componentDidCatch(o.value,{componentStack:et!==null?et:""})}),_}function Ti(a,o,_){var b=a.pingCache;if(b===null){b=a.pingCache=new Ni;var $=new Set;b.set(o,$)}else $=b.get(o),$===void 0&&($=new Set,b.set(o,$));$.has(_)||($.add(_),a=Ui.bind(null,a,o,_),o.then(a,a))}function Vi(a){do{var o;if((o=a.tag===13)&&(o=a.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return a;a=a.return}while(a!==null);return null}function Wi(a,o,_,b,$){return a.mode&1?(a.flags|=65536,a.lanes=$,a):(a===o?a.flags|=65536:(a.flags|=128,_.flags|=131072,_.flags&=-52805,_.tag===1&&(_.alternate===null?_.tag=17:(o=ch(-1,1),o.tag=2,dh(_,o,1))),_.lanes|=1),a)}var Xi=ua.ReactCurrentOwner,Ug=!1;function Yi(a,o,_,b){o.child=a===null?Ch(o,null,_,b):Bh(o,a.child,_,b)}function Zi(a,o,_,b,$){_=_.render;var _e=o.ref;return Tg(o,$),b=Xh(a,o,_,b,_e,$),_=bi(),a!==null&&!Ug?(o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~$,$i(a,o,$)):(I&&_&&vg(o),o.flags|=1,Yi(a,o,b,$),o.child)}function aj(a,o,_,b,$){if(a===null){var _e=_.type;return typeof _e=="function"&&!bj(_e)&&_e.defaultProps===void 0&&_.compare===null&&_.defaultProps===void 0?(o.tag=15,o.type=_e,cj(a,o,_e,b,$)):(a=yh(_.type,null,b,o,o.mode,$),a.ref=o.ref,a.return=o,o.child=a)}if(_e=a.child,!(a.lanes&$)){var et=_e.memoizedProps;if(_=_.compare,_=_!==null?_:Ie,_(et,b)&&a.ref===o.ref)return $i(a,o,$)}return o.flags|=1,a=wh(_e,b),a.ref=o.ref,a.return=o,o.child=a}function cj(a,o,_,b,$){if(a!==null){var _e=a.memoizedProps;if(Ie(_e,b)&&a.ref===o.ref)if(Ug=!1,o.pendingProps=b=_e,(a.lanes&$)!==0)a.flags&131072&&(Ug=!0);else return o.lanes=a.lanes,$i(a,o,$)}return dj(a,o,_,b,$)}function ej(a,o,_){var b=o.pendingProps,$=b.children,_e=a!==null?a.memoizedState:null;if(b.mode==="hidden")if(!(o.mode&1))o.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(fj,gj),gj|=_;else{if(!(_&1073741824))return a=_e!==null?_e.baseLanes|_:_,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:a,cachePool:null,transitions:null},o.updateQueue=null,G(fj,gj),gj|=a,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},b=_e!==null?_e.baseLanes:_,G(fj,gj),gj|=b}else _e!==null?(b=_e.baseLanes|_,o.memoizedState=null):b=_,G(fj,gj),gj|=b;return Yi(a,o,$,_),o.child}function hj(a,o){var _=o.ref;(a===null&&_!==null||a!==null&&a.ref!==_)&&(o.flags|=512,o.flags|=2097152)}function dj(a,o,_,b,$){var _e=Zf(_)?Xf:H.current;return _e=Yf(o,_e),Tg(o,$),_=Xh(a,o,_,b,_e,$),b=bi(),a!==null&&!Ug?(o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~$,$i(a,o,$)):(I&&b&&vg(o),o.flags|=1,Yi(a,o,_,$),o.child)}function ij(a,o,_,b,$){if(Zf(_)){var _e=!0;cg(o)}else _e=!1;if(Tg(o,$),o.stateNode===null)jj(a,o),ph(o,_,b),rh(o,_,b,$),b=!0;else if(a===null){var et=o.stateNode,tt=o.memoizedProps;et.props=tt;var rt=et.context,st=_.contextType;typeof st=="object"&&st!==null?st=Vg(st):(st=Zf(_)?Xf:H.current,st=Yf(o,st));var it=_.getDerivedStateFromProps,lt=typeof it=="function"||typeof et.getSnapshotBeforeUpdate=="function";lt||typeof et.UNSAFE_componentWillReceiveProps!="function"&&typeof et.componentWillReceiveProps!="function"||(tt!==b||rt!==st)&&qh(o,et,b,st),$g=!1;var at=o.memoizedState;et.state=at,gh(o,b,et,$),rt=o.memoizedState,tt!==b||at!==rt||Wf.current||$g?(typeof it=="function"&&(kh(o,_,it,b),rt=o.memoizedState),(tt=$g||oh(o,_,tt,b,at,rt,st))?(lt||typeof et.UNSAFE_componentWillMount!="function"&&typeof et.componentWillMount!="function"||(typeof et.componentWillMount=="function"&&et.componentWillMount(),typeof et.UNSAFE_componentWillMount=="function"&&et.UNSAFE_componentWillMount()),typeof et.componentDidMount=="function"&&(o.flags|=4194308)):(typeof et.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=b,o.memoizedState=rt),et.props=b,et.state=rt,et.context=st,b=tt):(typeof et.componentDidMount=="function"&&(o.flags|=4194308),b=!1)}else{et=o.stateNode,bh(a,o),tt=o.memoizedProps,st=o.type===o.elementType?tt:Lg(o.type,tt),et.props=st,lt=o.pendingProps,at=et.context,rt=_.contextType,typeof rt=="object"&&rt!==null?rt=Vg(rt):(rt=Zf(_)?Xf:H.current,rt=Yf(o,rt));var ft=_.getDerivedStateFromProps;(it=typeof ft=="function"||typeof et.getSnapshotBeforeUpdate=="function")||typeof et.UNSAFE_componentWillReceiveProps!="function"&&typeof et.componentWillReceiveProps!="function"||(tt!==lt||at!==rt)&&qh(o,et,b,rt),$g=!1,at=o.memoizedState,et.state=at,gh(o,b,et,$);var ht=o.memoizedState;tt!==lt||at!==ht||Wf.current||$g?(typeof ft=="function"&&(kh(o,_,ft,b),ht=o.memoizedState),(st=$g||oh(o,_,st,b,at,ht,rt)||!1)?(it||typeof et.UNSAFE_componentWillUpdate!="function"&&typeof et.componentWillUpdate!="function"||(typeof et.componentWillUpdate=="function"&&et.componentWillUpdate(b,ht,rt),typeof et.UNSAFE_componentWillUpdate=="function"&&et.UNSAFE_componentWillUpdate(b,ht,rt)),typeof et.componentDidUpdate=="function"&&(o.flags|=4),typeof et.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof et.componentDidUpdate!="function"||tt===a.memoizedProps&&at===a.memoizedState||(o.flags|=4),typeof et.getSnapshotBeforeUpdate!="function"||tt===a.memoizedProps&&at===a.memoizedState||(o.flags|=1024),o.memoizedProps=b,o.memoizedState=ht),et.props=b,et.state=ht,et.context=rt,b=st):(typeof et.componentDidUpdate!="function"||tt===a.memoizedProps&&at===a.memoizedState||(o.flags|=4),typeof et.getSnapshotBeforeUpdate!="function"||tt===a.memoizedProps&&at===a.memoizedState||(o.flags|=1024),b=!1)}return kj(a,o,_,b,_e,$)}function kj(a,o,_,b,$,_e){hj(a,o);var et=(o.flags&128)!==0;if(!b&&!et)return $&&dg(o,_,!1),$i(a,o,_e);b=o.stateNode,Xi.current=o;var tt=et&&typeof _.getDerivedStateFromError!="function"?null:b.render();return o.flags|=1,a!==null&&et?(o.child=Bh(o,a.child,null,_e),o.child=Bh(o,null,tt,_e)):Yi(a,o,tt,_e),o.memoizedState=b.state,$&&dg(o,_,!0),o.child}function lj(a){var o=a.stateNode;o.pendingContext?ag(a,o.pendingContext,o.pendingContext!==o.context):o.context&&ag(a,o.context,!1),Ih(a,o.containerInfo)}function mj(a,o,_,b,$){return Ig(),Jg($),o.flags|=256,Yi(a,o,_,b),o.child}var nj={dehydrated:null,treeContext:null,retryLane:0};function oj(a){return{baseLanes:a,cachePool:null,transitions:null}}function pj(a,o,_){var b=o.pendingProps,$=M.current,_e=!1,et=(o.flags&128)!==0,tt;if((tt=et)||(tt=a!==null&&a.memoizedState===null?!1:($&2)!==0),tt?(_e=!0,o.flags&=-129):(a===null||a.memoizedState!==null)&&($|=1),G(M,$&1),a===null)return Eg(o),a=o.memoizedState,a!==null&&(a=a.dehydrated,a!==null)?(o.mode&1?a.data==="$!"?o.lanes=8:o.lanes=1073741824:o.lanes=1,null):(et=b.children,a=b.fallback,_e?(b=o.mode,_e=o.child,et={mode:"hidden",children:et},!(b&1)&&_e!==null?(_e.childLanes=0,_e.pendingProps=et):_e=qj(et,b,0,null),a=Ah(a,b,_,null),_e.return=o,a.return=o,_e.sibling=a,o.child=_e,o.child.memoizedState=oj(_),o.memoizedState=nj,a):rj(o,et));if($=a.memoizedState,$!==null&&(tt=$.dehydrated,tt!==null))return sj(a,o,et,b,tt,$,_);if(_e){_e=b.fallback,et=o.mode,$=a.child,tt=$.sibling;var rt={mode:"hidden",children:b.children};return!(et&1)&&o.child!==$?(b=o.child,b.childLanes=0,b.pendingProps=rt,o.deletions=null):(b=wh($,rt),b.subtreeFlags=$.subtreeFlags&14680064),tt!==null?_e=wh(tt,_e):(_e=Ah(_e,et,_,null),_e.flags|=2),_e.return=o,b.return=o,b.sibling=_e,o.child=b,b=_e,_e=o.child,et=a.child.memoizedState,et=et===null?oj(_):{baseLanes:et.baseLanes|_,cachePool:null,transitions:et.transitions},_e.memoizedState=et,_e.childLanes=a.childLanes&~_,o.memoizedState=nj,b}return _e=a.child,a=_e.sibling,b=wh(_e,{mode:"visible",children:b.children}),!(o.mode&1)&&(b.lanes=_),b.return=o,b.sibling=null,a!==null&&(_=o.deletions,_===null?(o.deletions=[a],o.flags|=16):_.push(a)),o.child=b,o.memoizedState=null,b}function rj(a,o){return o=qj({mode:"visible",children:o},a.mode,0,null),o.return=a,a.child=o}function tj(a,o,_,b){return b!==null&&Jg(b),Bh(o,a.child,null,_),a=rj(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function sj(a,o,_,b,$,_e,et){if(_)return o.flags&256?(o.flags&=-257,b=Li(Error(p$1(422))),tj(a,o,et,b)):o.memoizedState!==null?(o.child=a.child,o.flags|=128,null):(_e=b.fallback,$=o.mode,b=qj({mode:"visible",children:b.children},$,0,null),_e=Ah(_e,$,et,null),_e.flags|=2,b.return=o,_e.return=o,b.sibling=_e,o.child=b,o.mode&1&&Bh(o,a.child,null,et),o.child.memoizedState=oj(et),o.memoizedState=nj,_e);if(!(o.mode&1))return tj(a,o,et,null);if($.data==="$!"){if(b=$.nextSibling&&$.nextSibling.dataset,b)var tt=b.dgst;return b=tt,_e=Error(p$1(419)),b=Li(_e,b,void 0),tj(a,o,et,b)}if(tt=(et&a.childLanes)!==0,Ug||tt){if(b=R,b!==null){switch(et&-et){case 4:$=2;break;case 16:$=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:$=32;break;case 536870912:$=268435456;break;default:$=0}$=$&(b.suspendedLanes|et)?0:$,$!==0&&$!==_e.retryLane&&(_e.retryLane=$,Zg(a,$),mh(b,a,$,-1))}return uj(),b=Li(Error(p$1(421))),tj(a,o,et,b)}return $.data==="$?"?(o.flags|=128,o.child=a.child,o=vj.bind(null,a),$._reactRetry=o,null):(a=_e.treeContext,yg=Lf($.nextSibling),xg=o,I=!0,zg=null,a!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=a.id,sg=a.overflow,qg=o),o=rj(o,b.children),o.flags|=4096,o)}function wj(a,o,_){a.lanes|=o;var b=a.alternate;b!==null&&(b.lanes|=o),Sg(a.return,o,_)}function xj(a,o,_,b,$){var _e=a.memoizedState;_e===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:b,tail:_,tailMode:$}:(_e.isBackwards=o,_e.rendering=null,_e.renderingStartTime=0,_e.last=b,_e.tail=_,_e.tailMode=$)}function yj(a,o,_){var b=o.pendingProps,$=b.revealOrder,_e=b.tail;if(Yi(a,o,b.children,_),b=M.current,b&2)b=b&1|2,o.flags|=128;else{if(a!==null&&a.flags&128)e:for(a=o.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&wj(a,_,o);else if(a.tag===19)wj(a,_,o);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break e;for(;a.sibling===null;){if(a.return===null||a.return===o)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}b&=1}if(G(M,b),!(o.mode&1))o.memoizedState=null;else switch($){case"forwards":for(_=o.child,$=null;_!==null;)a=_.alternate,a!==null&&Mh(a)===null&&($=_),_=_.sibling;_=$,_===null?($=o.child,o.child=null):($=_.sibling,_.sibling=null),xj(o,!1,$,_,_e);break;case"backwards":for(_=null,$=o.child,o.child=null;$!==null;){if(a=$.alternate,a!==null&&Mh(a)===null){o.child=$;break}a=$.sibling,$.sibling=_,_=$,$=a}xj(o,!0,_,null,_e);break;case"together":xj(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function jj(a,o){!(o.mode&1)&&a!==null&&(a.alternate=null,o.alternate=null,o.flags|=2)}function $i(a,o,_){if(a!==null&&(o.dependencies=a.dependencies),hh|=o.lanes,!(_&o.childLanes))return null;if(a!==null&&o.child!==a.child)throw Error(p$1(153));if(o.child!==null){for(a=o.child,_=wh(a,a.pendingProps),o.child=_,_.return=o;a.sibling!==null;)a=a.sibling,_=_.sibling=wh(a,a.pendingProps),_.return=o;_.sibling=null}return o.child}function zj(a,o,_){switch(o.tag){case 3:lj(o),Ig();break;case 5:Kh(o);break;case 1:Zf(o.type)&&cg(o);break;case 4:Ih(o,o.stateNode.containerInfo);break;case 10:var b=o.type._context,$=o.memoizedProps.value;G(Mg,b._currentValue),b._currentValue=$;break;case 13:if(b=o.memoizedState,b!==null)return b.dehydrated!==null?(G(M,M.current&1),o.flags|=128,null):_&o.child.childLanes?pj(a,o,_):(G(M,M.current&1),a=$i(a,o,_),a!==null?a.sibling:null);G(M,M.current&1);break;case 19:if(b=(_&o.childLanes)!==0,a.flags&128){if(b)return yj(a,o,_);o.flags|=128}if($=o.memoizedState,$!==null&&($.rendering=null,$.tail=null,$.lastEffect=null),G(M,M.current),b)break;return null;case 22:case 23:return o.lanes=0,ej(a,o,_)}return $i(a,o,_)}var Aj,Bj,Cj,Dj;Aj=function(a,o){for(var _=o.child;_!==null;){if(_.tag===5||_.tag===6)a.appendChild(_.stateNode);else if(_.tag!==4&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===o)break;for(;_.sibling===null;){if(_.return===null||_.return===o)return;_=_.return}_.sibling.return=_.return,_=_.sibling}};Bj=function(){};Cj=function(a,o,_,b){var $=a.memoizedProps;if($!==b){a=o.stateNode,Hh(Eh.current);var _e=null;switch(_){case"input":$=Ya(a,$),b=Ya(a,b),_e=[];break;case"select":$=A({},$,{value:void 0}),b=A({},b,{value:void 0}),_e=[];break;case"textarea":$=gb(a,$),b=gb(a,b),_e=[];break;default:typeof $.onClick!="function"&&typeof b.onClick=="function"&&(a.onclick=Bf)}ub(_,b);var et;_=null;for(st in $)if(!b.hasOwnProperty(st)&&$.hasOwnProperty(st)&&$[st]!=null)if(st==="style"){var tt=$[st];for(et in tt)tt.hasOwnProperty(et)&&(_||(_={}),_[et]="")}else st!=="dangerouslySetInnerHTML"&&st!=="children"&&st!=="suppressContentEditableWarning"&&st!=="suppressHydrationWarning"&&st!=="autoFocus"&&(ea.hasOwnProperty(st)?_e||(_e=[]):(_e=_e||[]).push(st,null));for(st in b){var rt=b[st];if(tt=$!=null?$[st]:void 0,b.hasOwnProperty(st)&&rt!==tt&&(rt!=null||tt!=null))if(st==="style")if(tt){for(et in tt)!tt.hasOwnProperty(et)||rt&&rt.hasOwnProperty(et)||(_||(_={}),_[et]="");for(et in rt)rt.hasOwnProperty(et)&&tt[et]!==rt[et]&&(_||(_={}),_[et]=rt[et])}else _||(_e||(_e=[]),_e.push(st,_)),_=rt;else st==="dangerouslySetInnerHTML"?(rt=rt?rt.__html:void 0,tt=tt?tt.__html:void 0,rt!=null&&tt!==rt&&(_e=_e||[]).push(st,rt)):st==="children"?typeof rt!="string"&&typeof rt!="number"||(_e=_e||[]).push(st,""+rt):st!=="suppressContentEditableWarning"&&st!=="suppressHydrationWarning"&&(ea.hasOwnProperty(st)?(rt!=null&&st==="onScroll"&&D("scroll",a),_e||tt===rt||(_e=[])):(_e=_e||[]).push(st,rt))}_&&(_e=_e||[]).push("style",_);var st=_e;(o.updateQueue=st)&&(o.flags|=4)}};Dj=function(a,o,_,b){_!==b&&(o.flags|=4)};function Ej(a,o){if(!I)switch(a.tailMode){case"hidden":o=a.tail;for(var _=null;o!==null;)o.alternate!==null&&(_=o),o=o.sibling;_===null?a.tail=null:_.sibling=null;break;case"collapsed":_=a.tail;for(var b=null;_!==null;)_.alternate!==null&&(b=_),_=_.sibling;b===null?o||a.tail===null?a.tail=null:a.tail.sibling=null:b.sibling=null}}function S(a){var o=a.alternate!==null&&a.alternate.child===a.child,_=0,b=0;if(o)for(var $=a.child;$!==null;)_|=$.lanes|$.childLanes,b|=$.subtreeFlags&14680064,b|=$.flags&14680064,$.return=a,$=$.sibling;else for($=a.child;$!==null;)_|=$.lanes|$.childLanes,b|=$.subtreeFlags,b|=$.flags,$.return=a,$=$.sibling;return a.subtreeFlags|=b,a.childLanes=_,o}function Fj(a,o,_){var b=o.pendingProps;switch(wg(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S(o),null;case 1:return Zf(o.type)&&$f(),S(o),null;case 3:return b=o.stateNode,Jh(),E(Wf),E(H),Oh(),b.pendingContext&&(b.context=b.pendingContext,b.pendingContext=null),(a===null||a.child===null)&&(Gg(o)?o.flags|=4:a===null||a.memoizedState.isDehydrated&&!(o.flags&256)||(o.flags|=1024,zg!==null&&(Gj(zg),zg=null))),Bj(a,o),S(o),null;case 5:Lh(o);var $=Hh(Gh.current);if(_=o.type,a!==null&&o.stateNode!=null)Cj(a,o,_,b,$),a.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!b){if(o.stateNode===null)throw Error(p$1(166));return S(o),null}if(a=Hh(Eh.current),Gg(o)){b=o.stateNode,_=o.type;var _e=o.memoizedProps;switch(b[Of]=o,b[Pf]=_e,a=(o.mode&1)!==0,_){case"dialog":D("cancel",b),D("close",b);break;case"iframe":case"object":case"embed":D("load",b);break;case"video":case"audio":for($=0;$<lf.length;$++)D(lf[$],b);break;case"source":D("error",b);break;case"img":case"image":case"link":D("error",b),D("load",b);break;case"details":D("toggle",b);break;case"input":Za(b,_e),D("invalid",b);break;case"select":b._wrapperState={wasMultiple:!!_e.multiple},D("invalid",b);break;case"textarea":hb(b,_e),D("invalid",b)}ub(_,_e),$=null;for(var et in _e)if(_e.hasOwnProperty(et)){var tt=_e[et];et==="children"?typeof tt=="string"?b.textContent!==tt&&(_e.suppressHydrationWarning!==!0&&Af(b.textContent,tt,a),$=["children",tt]):typeof tt=="number"&&b.textContent!==""+tt&&(_e.suppressHydrationWarning!==!0&&Af(b.textContent,tt,a),$=["children",""+tt]):ea.hasOwnProperty(et)&&tt!=null&&et==="onScroll"&&D("scroll",b)}switch(_){case"input":Va(b),db(b,_e,!0);break;case"textarea":Va(b),jb(b);break;case"select":case"option":break;default:typeof _e.onClick=="function"&&(b.onclick=Bf)}b=$,o.updateQueue=b,b!==null&&(o.flags|=4)}else{et=$.nodeType===9?$:$.ownerDocument,a==="http://www.w3.org/1999/xhtml"&&(a=kb(_)),a==="http://www.w3.org/1999/xhtml"?_==="script"?(a=et.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild)):typeof b.is=="string"?a=et.createElement(_,{is:b.is}):(a=et.createElement(_),_==="select"&&(et=a,b.multiple?et.multiple=!0:b.size&&(et.size=b.size))):a=et.createElementNS(a,_),a[Of]=o,a[Pf]=b,Aj(a,o,!1,!1),o.stateNode=a;e:{switch(et=vb(_,b),_){case"dialog":D("cancel",a),D("close",a),$=b;break;case"iframe":case"object":case"embed":D("load",a),$=b;break;case"video":case"audio":for($=0;$<lf.length;$++)D(lf[$],a);$=b;break;case"source":D("error",a),$=b;break;case"img":case"image":case"link":D("error",a),D("load",a),$=b;break;case"details":D("toggle",a),$=b;break;case"input":Za(a,b),$=Ya(a,b),D("invalid",a);break;case"option":$=b;break;case"select":a._wrapperState={wasMultiple:!!b.multiple},$=A({},b,{value:void 0}),D("invalid",a);break;case"textarea":hb(a,b),$=gb(a,b),D("invalid",a);break;default:$=b}ub(_,$),tt=$;for(_e in tt)if(tt.hasOwnProperty(_e)){var rt=tt[_e];_e==="style"?sb(a,rt):_e==="dangerouslySetInnerHTML"?(rt=rt?rt.__html:void 0,rt!=null&&nb(a,rt)):_e==="children"?typeof rt=="string"?(_!=="textarea"||rt!=="")&&ob(a,rt):typeof rt=="number"&&ob(a,""+rt):_e!=="suppressContentEditableWarning"&&_e!=="suppressHydrationWarning"&&_e!=="autoFocus"&&(ea.hasOwnProperty(_e)?rt!=null&&_e==="onScroll"&&D("scroll",a):rt!=null&&ta(a,_e,rt,et))}switch(_){case"input":Va(a),db(a,b,!1);break;case"textarea":Va(a),jb(a);break;case"option":b.value!=null&&a.setAttribute("value",""+Sa(b.value));break;case"select":a.multiple=!!b.multiple,_e=b.value,_e!=null?fb(a,!!b.multiple,_e,!1):b.defaultValue!=null&&fb(a,!!b.multiple,b.defaultValue,!0);break;default:typeof $.onClick=="function"&&(a.onclick=Bf)}switch(_){case"button":case"input":case"select":case"textarea":b=!!b.autoFocus;break e;case"img":b=!0;break e;default:b=!1}}b&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return S(o),null;case 6:if(a&&o.stateNode!=null)Dj(a,o,a.memoizedProps,b);else{if(typeof b!="string"&&o.stateNode===null)throw Error(p$1(166));if(_=Hh(Gh.current),Hh(Eh.current),Gg(o)){if(b=o.stateNode,_=o.memoizedProps,b[Of]=o,(_e=b.nodeValue!==_)&&(a=xg,a!==null))switch(a.tag){case 3:Af(b.nodeValue,_,(a.mode&1)!==0);break;case 5:a.memoizedProps.suppressHydrationWarning!==!0&&Af(b.nodeValue,_,(a.mode&1)!==0)}_e&&(o.flags|=4)}else b=(_.nodeType===9?_:_.ownerDocument).createTextNode(b),b[Of]=o,o.stateNode=b}return S(o),null;case 13:if(E(M),b=o.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(I&&yg!==null&&o.mode&1&&!(o.flags&128))Hg(),Ig(),o.flags|=98560,_e=!1;else if(_e=Gg(o),b!==null&&b.dehydrated!==null){if(a===null){if(!_e)throw Error(p$1(318));if(_e=o.memoizedState,_e=_e!==null?_e.dehydrated:null,!_e)throw Error(p$1(317));_e[Of]=o}else Ig(),!(o.flags&128)&&(o.memoizedState=null),o.flags|=4;S(o),_e=!1}else zg!==null&&(Gj(zg),zg=null),_e=!0;if(!_e)return o.flags&65536?o:null}return o.flags&128?(o.lanes=_,o):(b=b!==null,b!==(a!==null&&a.memoizedState!==null)&&b&&(o.child.flags|=8192,o.mode&1&&(a===null||M.current&1?T===0&&(T=3):uj())),o.updateQueue!==null&&(o.flags|=4),S(o),null);case 4:return Jh(),Bj(a,o),a===null&&sf(o.stateNode.containerInfo),S(o),null;case 10:return Rg(o.type._context),S(o),null;case 17:return Zf(o.type)&&$f(),S(o),null;case 19:if(E(M),_e=o.memoizedState,_e===null)return S(o),null;if(b=(o.flags&128)!==0,et=_e.rendering,et===null)if(b)Ej(_e,!1);else{if(T!==0||a!==null&&a.flags&128)for(a=o.child;a!==null;){if(et=Mh(a),et!==null){for(o.flags|=128,Ej(_e,!1),b=et.updateQueue,b!==null&&(o.updateQueue=b,o.flags|=4),o.subtreeFlags=0,b=_,_=o.child;_!==null;)_e=_,a=b,_e.flags&=14680066,et=_e.alternate,et===null?(_e.childLanes=0,_e.lanes=a,_e.child=null,_e.subtreeFlags=0,_e.memoizedProps=null,_e.memoizedState=null,_e.updateQueue=null,_e.dependencies=null,_e.stateNode=null):(_e.childLanes=et.childLanes,_e.lanes=et.lanes,_e.child=et.child,_e.subtreeFlags=0,_e.deletions=null,_e.memoizedProps=et.memoizedProps,_e.memoizedState=et.memoizedState,_e.updateQueue=et.updateQueue,_e.type=et.type,a=et.dependencies,_e.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),_=_.sibling;return G(M,M.current&1|2),o.child}a=a.sibling}_e.tail!==null&&B()>Hj&&(o.flags|=128,b=!0,Ej(_e,!1),o.lanes=4194304)}else{if(!b)if(a=Mh(et),a!==null){if(o.flags|=128,b=!0,_=a.updateQueue,_!==null&&(o.updateQueue=_,o.flags|=4),Ej(_e,!0),_e.tail===null&&_e.tailMode==="hidden"&&!et.alternate&&!I)return S(o),null}else 2*B()-_e.renderingStartTime>Hj&&_!==1073741824&&(o.flags|=128,b=!0,Ej(_e,!1),o.lanes=4194304);_e.isBackwards?(et.sibling=o.child,o.child=et):(_=_e.last,_!==null?_.sibling=et:o.child=et,_e.last=et)}return _e.tail!==null?(o=_e.tail,_e.rendering=o,_e.tail=o.sibling,_e.renderingStartTime=B(),o.sibling=null,_=M.current,G(M,b?_&1|2:_&1),o):(S(o),null);case 22:case 23:return Ij(),b=o.memoizedState!==null,a!==null&&a.memoizedState!==null!==b&&(o.flags|=8192),b&&o.mode&1?gj&1073741824&&(S(o),o.subtreeFlags&6&&(o.flags|=8192)):S(o),null;case 24:return null;case 25:return null}throw Error(p$1(156,o.tag))}function Jj(a,o){switch(wg(o),o.tag){case 1:return Zf(o.type)&&$f(),a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 3:return Jh(),E(Wf),E(H),Oh(),a=o.flags,a&65536&&!(a&128)?(o.flags=a&-65537|128,o):null;case 5:return Lh(o),null;case 13:if(E(M),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error(p$1(340));Ig()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 19:return E(M),null;case 4:return Jh(),null;case 10:return Rg(o.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=null;function Mj(a,o){var _=a.ref;if(_!==null)if(typeof _=="function")try{_(null)}catch(b){W(a,o,b)}else _.current=null}function Nj(a,o,_){try{_()}catch(b){W(a,o,b)}}var Oj=!1;function Pj(a,o){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 b=_.getSelection&&_.getSelection();if(b&&b.rangeCount!==0){_=b.anchorNode;var $=b.anchorOffset,_e=b.focusNode;b=b.focusOffset;try{_.nodeType,_e.nodeType}catch{_=null;break e}var et=0,tt=-1,rt=-1,st=0,it=0,lt=a,at=null;t:for(;;){for(var ft;lt!==_||$!==0&&lt.nodeType!==3||(tt=et+$),lt!==_e||b!==0&&lt.nodeType!==3||(rt=et+b),lt.nodeType===3&&(et+=lt.nodeValue.length),(ft=lt.firstChild)!==null;)at=lt,lt=ft;for(;;){if(lt===a)break t;if(at===_&&++st===$&&(tt=et),at===_e&&++it===b&&(rt=et),(ft=lt.nextSibling)!==null)break;lt=at,at=lt.parentNode}lt=ft}_=tt===-1||rt===-1?null:{start:tt,end:rt}}else _=null}_=_||{start:0,end:0}}else _=null;for(Df={focusedElem:a,selectionRange:_},dd=!1,V=o;V!==null;)if(o=V,a=o.child,(o.subtreeFlags&1028)!==0&&a!==null)a.return=o,V=a;else for(;V!==null;){o=V;try{var ht=o.alternate;if(o.flags&1024)switch(o.tag){case 0:case 11:case 15:break;case 1:if(ht!==null){var pt=ht.memoizedProps,vt=ht.memoizedState,ut=o.stateNode,ot=ut.getSnapshotBeforeUpdate(o.elementType===o.type?pt:Lg(o.type,pt),vt);ut.__reactInternalSnapshotBeforeUpdate=ot}break;case 3:var nt=o.stateNode.containerInfo;nt.nodeType===1?nt.textContent="":nt.nodeType===9&&nt.documentElement&&nt.removeChild(nt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$1(163))}}catch(dt){W(o,o.return,dt)}if(a=o.sibling,a!==null){a.return=o.return,V=a;break}V=o.return}return ht=Oj,Oj=!1,ht}function Qj(a,o,_){var b=o.updateQueue;if(b=b!==null?b.lastEffect:null,b!==null){var $=b=b.next;do{if(($.tag&a)===a){var _e=$.destroy;$.destroy=void 0,_e!==void 0&&Nj(o,_,_e)}$=$.next}while($!==b)}}function Rj(a,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var _=o=o.next;do{if((_.tag&a)===a){var b=_.create;_.destroy=b()}_=_.next}while(_!==o)}}function Sj(a){var o=a.ref;if(o!==null){var _=a.stateNode;switch(a.tag){case 5:a=_;break;default:a=_}typeof o=="function"?o(a):o.current=a}}function Tj(a){var o=a.alternate;o!==null&&(a.alternate=null,Tj(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&(delete o[Of],delete o[Pf],delete o[of],delete o[Qf],delete o[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,o,_){var b=a.tag;if(b===5||b===6)a=a.stateNode,o?_.nodeType===8?_.parentNode.insertBefore(a,o):_.insertBefore(a,o):(_.nodeType===8?(o=_.parentNode,o.insertBefore(a,_)):(o=_,o.appendChild(a)),_=_._reactRootContainer,_!=null||o.onclick!==null||(o.onclick=Bf));else if(b!==4&&(a=a.child,a!==null))for(Wj(a,o,_),a=a.sibling;a!==null;)Wj(a,o,_),a=a.sibling}function Xj(a,o,_){var b=a.tag;if(b===5||b===6)a=a.stateNode,o?_.insertBefore(a,o):_.appendChild(a);else if(b!==4&&(a=a.child,a!==null))for(Xj(a,o,_),a=a.sibling;a!==null;)Xj(a,o,_),a=a.sibling}var X=null,Yj=!1;function Zj(a,o,_){for(_=_.child;_!==null;)ak(a,o,_),_=_.sibling}function ak(a,o,_){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,_)}catch{}switch(_.tag){case 5:U||Mj(_,o);case 6:var b=X,$=Yj;X=null,Zj(a,o,_),X=b,Yj=$,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:b=X,$=Yj,X=_.stateNode.containerInfo,Yj=!0,Zj(a,o,_),X=b,Yj=$;break;case 0:case 11:case 14:case 15:if(!U&&(b=_.updateQueue,b!==null&&(b=b.lastEffect,b!==null))){$=b=b.next;do{var _e=$,et=_e.destroy;_e=_e.tag,et!==void 0&&(_e&2||_e&4)&&Nj(_,o,et),$=$.next}while($!==b)}Zj(a,o,_);break;case 1:if(!U&&(Mj(_,o),b=_.stateNode,typeof b.componentWillUnmount=="function"))try{b.props=_.memoizedProps,b.state=_.memoizedState,b.componentWillUnmount()}catch(tt){W(_,o,tt)}Zj(a,o,_);break;case 21:Zj(a,o,_);break;case 22:_.mode&1?(U=(b=U)||_.memoizedState!==null,Zj(a,o,_),U=b):Zj(a,o,_);break;default:Zj(a,o,_)}}function bk(a){var o=a.updateQueue;if(o!==null){a.updateQueue=null;var _=a.stateNode;_===null&&(_=a.stateNode=new Lj),o.forEach(function(b){var $=ck.bind(null,a,b);_.has(b)||(_.add(b),b.then($,$))})}}function dk(a,o){var _=o.deletions;if(_!==null)for(var b=0;b<_.length;b++){var $=_[b];try{var _e=a,et=o,tt=et;e:for(;tt!==null;){switch(tt.tag){case 5:X=tt.stateNode,Yj=!1;break e;case 3:X=tt.stateNode.containerInfo,Yj=!0;break e;case 4:X=tt.stateNode.containerInfo,Yj=!0;break e}tt=tt.return}if(X===null)throw Error(p$1(160));ak(_e,et,$),X=null,Yj=!1;var rt=$.alternate;rt!==null&&(rt.return=null),$.return=null}catch(st){W($,o,st)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)ek(o,a),o=o.sibling}function ek(a,o){var _=a.alternate,b=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(dk(o,a),fk(a),b&4){try{Qj(3,a,a.return),Rj(3,a)}catch(pt){W(a,a.return,pt)}try{Qj(5,a,a.return)}catch(pt){W(a,a.return,pt)}}break;case 1:dk(o,a),fk(a),b&512&&_!==null&&Mj(_,_.return);break;case 5:if(dk(o,a),fk(a),b&512&&_!==null&&Mj(_,_.return),a.flags&32){var $=a.stateNode;try{ob($,"")}catch(pt){W(a,a.return,pt)}}if(b&4&&($=a.stateNode,$!=null)){var _e=a.memoizedProps,et=_!==null?_.memoizedProps:_e,tt=a.type,rt=a.updateQueue;if(a.updateQueue=null,rt!==null)try{tt==="input"&&_e.type==="radio"&&_e.name!=null&&ab($,_e),vb(tt,et);var st=vb(tt,_e);for(et=0;et<rt.length;et+=2){var it=rt[et],lt=rt[et+1];it==="style"?sb($,lt):it==="dangerouslySetInnerHTML"?nb($,lt):it==="children"?ob($,lt):ta($,it,lt,st)}switch(tt){case"input":bb($,_e);break;case"textarea":ib($,_e);break;case"select":var at=$._wrapperState.wasMultiple;$._wrapperState.wasMultiple=!!_e.multiple;var ft=_e.value;ft!=null?fb($,!!_e.multiple,ft,!1):at!==!!_e.multiple&&(_e.defaultValue!=null?fb($,!!_e.multiple,_e.defaultValue,!0):fb($,!!_e.multiple,_e.multiple?[]:"",!1))}$[Pf]=_e}catch(pt){W(a,a.return,pt)}}break;case 6:if(dk(o,a),fk(a),b&4){if(a.stateNode===null)throw Error(p$1(162));$=a.stateNode,_e=a.memoizedProps;try{$.nodeValue=_e}catch(pt){W(a,a.return,pt)}}break;case 3:if(dk(o,a),fk(a),b&4&&_!==null&&_.memoizedState.isDehydrated)try{bd(o.containerInfo)}catch(pt){W(a,a.return,pt)}break;case 4:dk(o,a),fk(a);break;case 13:dk(o,a),fk(a),$=a.child,$.flags&8192&&(_e=$.memoizedState!==null,$.stateNode.isHidden=_e,!_e||$.alternate!==null&&$.alternate.memoizedState!==null||(gk=B())),b&4&&bk(a);break;case 22:if(it=_!==null&&_.memoizedState!==null,a.mode&1?(U=(st=U)||it,dk(o,a),U=st):dk(o,a),fk(a),b&8192){if(st=a.memoizedState!==null,(a.stateNode.isHidden=st)&&!it&&a.mode&1)for(V=a,it=a.child;it!==null;){for(lt=V=it;V!==null;){switch(at=V,ft=at.child,at.tag){case 0:case 11:case 14:case 15:Qj(4,at,at.return);break;case 1:Mj(at,at.return);var ht=at.stateNode;if(typeof ht.componentWillUnmount=="function"){b=at,_=at.return;try{o=b,ht.props=o.memoizedProps,ht.state=o.memoizedState,ht.componentWillUnmount()}catch(pt){W(b,_,pt)}}break;case 5:Mj(at,at.return);break;case 22:if(at.memoizedState!==null){hk(lt);continue}}ft!==null?(ft.return=at,V=ft):hk(lt)}it=it.sibling}e:for(it=null,lt=a;;){if(lt.tag===5){if(it===null){it=lt;try{$=lt.stateNode,st?(_e=$.style,typeof _e.setProperty=="function"?_e.setProperty("display","none","important"):_e.display="none"):(tt=lt.stateNode,rt=lt.memoizedProps.style,et=rt!=null&&rt.hasOwnProperty("display")?rt.display:null,tt.style.display=rb("display",et))}catch(pt){W(a,a.return,pt)}}}else if(lt.tag===6){if(it===null)try{lt.stateNode.nodeValue=st?"":lt.memoizedProps}catch(pt){W(a,a.return,pt)}}else if((lt.tag!==22&&lt.tag!==23||lt.memoizedState===null||lt===a)&&lt.child!==null){lt.child.return=lt,lt=lt.child;continue}if(lt===a)break e;for(;lt.sibling===null;){if(lt.return===null||lt.return===a)break e;it===lt&&(it=null),lt=lt.return}it===lt&&(it=null),lt.sibling.return=lt.return,lt=lt.sibling}}break;case 19:dk(o,a),fk(a),b&4&&bk(a);break;case 21:break;default:dk(o,a),fk(a)}}function fk(a){var o=a.flags;if(o&2){try{e:{for(var _=a.return;_!==null;){if(Uj(_)){var b=_;break e}_=_.return}throw Error(p$1(160))}switch(b.tag){case 5:var $=b.stateNode;b.flags&32&&(ob($,""),b.flags&=-33);var _e=Vj(a);Xj(a,_e,$);break;case 3:case 4:var et=b.stateNode.containerInfo,tt=Vj(a);Wj(a,tt,et);break;default:throw Error(p$1(161))}}catch(rt){W(a,a.return,rt)}a.flags&=-3}o&4096&&(a.flags&=-4097)}function ik(a,o,_){V=a,jk(a)}function jk(a,o,_){for(var b=(a.mode&1)!==0;V!==null;){var $=V,_e=$.child;if($.tag===22&&b){var et=$.memoizedState!==null||Kj;if(!et){var tt=$.alternate,rt=tt!==null&&tt.memoizedState!==null||U;tt=Kj;var st=U;if(Kj=et,(U=rt)&&!st)for(V=$;V!==null;)et=V,rt=et.child,et.tag===22&&et.memoizedState!==null?kk($):rt!==null?(rt.return=et,V=rt):kk($);for(;_e!==null;)V=_e,jk(_e),_e=_e.sibling;V=$,Kj=tt,U=st}lk(a)}else $.subtreeFlags&8772&&_e!==null?(_e.return=$,V=_e):lk(a)}}function lk(a){for(;V!==null;){var o=V;if(o.flags&8772){var _=o.alternate;try{if(o.flags&8772)switch(o.tag){case 0:case 11:case 15:U||Rj(5,o);break;case 1:var b=o.stateNode;if(o.flags&4&&!U)if(_===null)b.componentDidMount();else{var $=o.elementType===o.type?_.memoizedProps:Lg(o.type,_.memoizedProps);b.componentDidUpdate($,_.memoizedState,b.__reactInternalSnapshotBeforeUpdate)}var _e=o.updateQueue;_e!==null&&ih(o,_e,b);break;case 3:var et=o.updateQueue;if(et!==null){if(_=null,o.child!==null)switch(o.child.tag){case 5:_=o.child.stateNode;break;case 1:_=o.child.stateNode}ih(o,et,_)}break;case 5:var tt=o.stateNode;if(_===null&&o.flags&4){_=tt;var rt=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":rt.autoFocus&&_.focus();break;case"img":rt.src&&(_.src=rt.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var st=o.alternate;if(st!==null){var it=st.memoizedState;if(it!==null){var lt=it.dehydrated;lt!==null&&bd(lt)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(p$1(163))}U||o.flags&512&&Sj(o)}catch(at){W(o,o.return,at)}}if(o===a){V=null;break}if(_=o.sibling,_!==null){_.return=o.return,V=_;break}V=o.return}}function hk(a){for(;V!==null;){var o=V;if(o===a){V=null;break}var _=o.sibling;if(_!==null){_.return=o.return,V=_;break}V=o.return}}function kk(a){for(;V!==null;){var o=V;try{switch(o.tag){case 0:case 11:case 15:var _=o.return;try{Rj(4,o)}catch(rt){W(o,_,rt)}break;case 1:var b=o.stateNode;if(typeof b.componentDidMount=="function"){var $=o.return;try{b.componentDidMount()}catch(rt){W(o,$,rt)}}var _e=o.return;try{Sj(o)}catch(rt){W(o,_e,rt)}break;case 5:var et=o.return;try{Sj(o)}catch(rt){W(o,et,rt)}}}catch(rt){W(o,o.return,rt)}if(o===a){V=null;break}var tt=o.sibling;if(tt!==null){tt.return=o.return,V=tt;break}V=o.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$1(){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,o,_,b){if(50<zk)throw zk=0,Ak=null,Error(p$1(185));Ac(a,_,b),(!(K&2)||a!==R)&&(a===R&&(!(K&2)&&(rk|=_),T===4&&Dk(a,Z)),Ek(a,b),_===1&&K===0&&!(o.mode&1)&&(Hj=B()+500,fg&&jg()))}function Ek(a,o){var _=a.callbackNode;wc(a,o);var b=uc(a,a===R?Z:0);if(b===0)_!==null&&bc(_),a.callbackNode=null,a.callbackPriority=0;else if(o=b&-b,a.callbackPriority!==o){if(_!=null&&bc(_),o===1)a.tag===0?ig(Fk.bind(null,a)):hg(Fk.bind(null,a)),Jf(function(){!(K&6)&&jg()}),_=null;else{switch(Dc(b)){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=o,a.callbackNode=_}}function Hk(a,o){if(Bk=-1,Ck=0,K&6)throw Error(p$1(327));var _=a.callbackNode;if(Ik()&&a.callbackNode!==_)return null;var b=uc(a,a===R?Z:0);if(b===0)return null;if(b&30||b&a.expiredLanes||o)o=Jk(a,b);else{o=b;var $=K;K|=2;var _e=Kk();(R!==a||Z!==o)&&(vk=null,Hj=B()+500,Lk(a,o));do try{Mk();break}catch(tt){Nk(a,tt)}while(!0);Qg(),nk.current=_e,K=$,Y!==null?o=0:(R=null,Z=0,o=T)}if(o!==0){if(o===2&&($=xc(a),$!==0&&(b=$,o=Ok(a,$))),o===1)throw _=qk,Lk(a,0),Dk(a,b),Ek(a,B()),_;if(o===6)Dk(a,b);else{if($=a.current.alternate,!(b&30)&&!Pk($)&&(o=Jk(a,b),o===2&&(_e=xc(a),_e!==0&&(b=_e,o=Ok(a,_e))),o===1))throw _=qk,Lk(a,0),Dk(a,b),Ek(a,B()),_;switch(a.finishedWork=$,a.finishedLanes=b,o){case 0:case 1:throw Error(p$1(345));case 2:Qk(a,uk,vk);break;case 3:if(Dk(a,b),(b&130023424)===b&&(o=gk+500-B(),10<o)){if(uc(a,0)!==0)break;if($=a.suspendedLanes,($&b)!==b){L$1(),a.pingedLanes|=a.suspendedLanes&$;break}a.timeoutHandle=Ff(Qk.bind(null,a,uk,vk),o);break}Qk(a,uk,vk);break;case 4:if(Dk(a,b),(b&4194240)===b)break;for(o=a.eventTimes,$=-1;0<b;){var et=31-oc(b);_e=1<<et,et=o[et],et>$&&($=et),b&=~_e}if(b=$,b=B()-b,b=(120>b?120:480>b?480:1080>b?1080:1920>b?1920:3e3>b?3e3:4320>b?4320:1960*mk(b/1960))-b,10<b){a.timeoutHandle=Ff(Qk.bind(null,a,uk,vk),b);break}Qk(a,uk,vk);break;case 5:Qk(a,uk,vk);break;default:throw Error(p$1(329))}}}return Ek(a,B()),a.callbackNode===_?Hk.bind(null,a):null}function Ok(a,o){var _=tk;return a.current.memoizedState.isDehydrated&&(Lk(a,o).flags|=256),a=Jk(a,o),a!==2&&(o=uk,uk=_,o!==null&&Gj(o)),a}function Gj(a){uk===null?uk=a:uk.push.apply(uk,a)}function Pk(a){for(var o=a;;){if(o.flags&16384){var _=o.updateQueue;if(_!==null&&(_=_.stores,_!==null))for(var b=0;b<_.length;b++){var $=_[b],_e=$.getSnapshot;$=$.value;try{if(!He(_e(),$))return!1}catch{return!1}}}if(_=o.child,o.subtreeFlags&16384&&_!==null)_.return=o,o=_;else{if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Dk(a,o){for(o&=~sk,o&=~rk,a.suspendedLanes|=o,a.pingedLanes&=~o,a=a.expirationTimes;0<o;){var _=31-oc(o),b=1<<_;a[_]=-1,o&=~b}}function Fk(a){if(K&6)throw Error(p$1(327));Ik();var o=uc(a,0);if(!(o&1))return Ek(a,B()),null;var _=Jk(a,o);if(a.tag!==0&&_===2){var b=xc(a);b!==0&&(o=b,_=Ok(a,b))}if(_===1)throw _=qk,Lk(a,0),Dk(a,o),Ek(a,B()),_;if(_===6)throw Error(p$1(345));return a.finishedWork=a.current.alternate,a.finishedLanes=o,Qk(a,uk,vk),Ek(a,B()),null}function Rk(a,o){var _=K;K|=1;try{return a(o)}finally{K=_,K===0&&(Hj=B()+500,fg&&jg())}}function Sk(a){xk!==null&&xk.tag===0&&!(K&6)&&Ik();var o=K;K|=1;var _=pk.transition,b=C;try{if(pk.transition=null,C=1,a)return a()}finally{C=b,pk.transition=_,K=o,!(K&6)&&jg()}}function Ij(){gj=fj.current,E(fj)}function Lk(a,o){a.finishedWork=null,a.finishedLanes=0;var _=a.timeoutHandle;if(_!==-1&&(a.timeoutHandle=-1,Gf(_)),Y!==null)for(_=Y.return;_!==null;){var b=_;switch(wg(b),b.tag){case 1:b=b.type.childContextTypes,b!=null&&$f();break;case 3:Jh(),E(Wf),E(H),Oh();break;case 5:Lh(b);break;case 4:Jh();break;case 13:E(M);break;case 19:E(M);break;case 10:Rg(b.type._context);break;case 22:case 23:Ij()}_=_.return}if(R=a,Y=a=wh(a.current,null),Z=gj=o,T=0,qk=null,sk=rk=hh=0,uk=tk=null,Wg!==null){for(o=0;o<Wg.length;o++)if(_=Wg[o],b=_.interleaved,b!==null){_.interleaved=null;var $=b.next,_e=_.pending;if(_e!==null){var et=_e.next;_e.next=$,b.next=et}_.pending=b}Wg=null}return a}function Nk(a,o){do{var _=Y;try{if(Qg(),Ph.current=ai,Sh){for(var b=N.memoizedState;b!==null;){var $=b.queue;$!==null&&($.pending=null),b=b.next}Sh=!1}if(Rh=0,P=O=N=null,Th=!1,Uh=0,ok.current=null,_===null||_.return===null){T=1,qk=o,Y=null;break}e:{var _e=a,et=_.return,tt=_,rt=o;if(o=Z,tt.flags|=32768,rt!==null&&typeof rt=="object"&&typeof rt.then=="function"){var st=rt,it=tt,lt=it.tag;if(!(it.mode&1)&&(lt===0||lt===11||lt===15)){var at=it.alternate;at?(it.updateQueue=at.updateQueue,it.memoizedState=at.memoizedState,it.lanes=at.lanes):(it.updateQueue=null,it.memoizedState=null)}var ft=Vi(et);if(ft!==null){ft.flags&=-257,Wi(ft,et,tt,_e,o),ft.mode&1&&Ti(_e,st,o),o=ft,rt=st;var ht=o.updateQueue;if(ht===null){var pt=new Set;pt.add(rt),o.updateQueue=pt}else ht.add(rt);break e}else{if(!(o&1)){Ti(_e,st,o),uj();break e}rt=Error(p$1(426))}}else if(I&&tt.mode&1){var vt=Vi(et);if(vt!==null){!(vt.flags&65536)&&(vt.flags|=256),Wi(vt,et,tt,_e,o),Jg(Ki(rt,tt));break e}}_e=rt=Ki(rt,tt),T!==4&&(T=2),tk===null?tk=[_e]:tk.push(_e),_e=et;do{switch(_e.tag){case 3:_e.flags|=65536,o&=-o,_e.lanes|=o;var ut=Oi(_e,rt,o);fh(_e,ut);break e;case 1:tt=rt;var ot=_e.type,nt=_e.stateNode;if(!(_e.flags&128)&&(typeof ot.getDerivedStateFromError=="function"||nt!==null&&typeof nt.componentDidCatch=="function"&&(Si===null||!Si.has(nt)))){_e.flags|=65536,o&=-o,_e.lanes|=o;var dt=Ri(_e,tt,o);fh(_e,dt);break e}}_e=_e.return}while(_e!==null)}Tk(_)}catch(yt){o=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,o){var _=K;K|=2;var b=Kk();(R!==a||Z!==o)&&(vk=null,Lk(a,o));do try{Uk();break}catch($){Nk(a,$)}while(!0);if(Qg(),K=_,nk.current=b,Y!==null)throw Error(p$1(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 o=Wk(a.alternate,a,gj);a.memoizedProps=a.pendingProps,o===null?Tk(a):Y=o,ok.current=null}function Tk(a){var o=a;do{var _=o.alternate;if(a=o.return,o.flags&32768){if(_=Jj(_,o),_!==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(_,o,gj),_!==null){Y=_;return}if(o=o.sibling,o!==null){Y=o;return}Y=o=a}while(o!==null);T===0&&(T=5)}function Qk(a,o,_){var b=C,$=pk.transition;try{pk.transition=null,C=1,Xk(a,o,_,b)}finally{pk.transition=$,C=b}return null}function Xk(a,o,_,b){do Ik();while(xk!==null);if(K&6)throw Error(p$1(327));_=a.finishedWork;var $=a.finishedLanes;if(_===null)return null;if(a.finishedWork=null,a.finishedLanes=0,_===a.current)throw Error(p$1(177));a.callbackNode=null,a.callbackPriority=0;var _e=_.lanes|_.childLanes;if(Bc(a,_e),a===R&&(Y=R=null,Z=0),!(_.subtreeFlags&2064)&&!(_.flags&2064)||wk||(wk=!0,Gk(hc,function(){return Ik(),null})),_e=(_.flags&15990)!==0,_.subtreeFlags&15990||_e){_e=pk.transition,pk.transition=null;var et=C;C=1;var tt=K;K|=4,ok.current=null,Pj(a,_),ek(_,a),Oe(Df),dd=!!Cf,Df=Cf=null,a.current=_,ik(_),dc(),K=tt,C=et,pk.transition=_e}else a.current=_;if(wk&&(wk=!1,xk=a,yk=$),_e=a.pendingLanes,_e===0&&(Si=null),mc(_.stateNode),Ek(a,B()),o!==null)for(b=a.onRecoverableError,_=0;_<o.length;_++)$=o[_],b($.value,{componentStack:$.stack,digest:$.digest});if(Pi)throw Pi=!1,a=Qi,Qi=null,a;return yk&1&&a.tag!==0&&Ik(),_e=a.pendingLanes,_e&1?a===Ak?zk++:(zk=0,Ak=a):zk=0,jg(),null}function Ik(){if(xk!==null){var a=Dc(yk),o=pk.transition,_=C;try{if(pk.transition=null,C=16>a?16:a,xk===null)var b=!1;else{if(a=xk,xk=null,yk=0,K&6)throw Error(p$1(331));var $=K;for(K|=4,V=a.current;V!==null;){var _e=V,et=_e.child;if(V.flags&16){var tt=_e.deletions;if(tt!==null){for(var rt=0;rt<tt.length;rt++){var st=tt[rt];for(V=st;V!==null;){var it=V;switch(it.tag){case 0:case 11:case 15:Qj(8,it,_e)}var lt=it.child;if(lt!==null)lt.return=it,V=lt;else for(;V!==null;){it=V;var at=it.sibling,ft=it.return;if(Tj(it),it===st){V=null;break}if(at!==null){at.return=ft,V=at;break}V=ft}}}var ht=_e.alternate;if(ht!==null){var pt=ht.child;if(pt!==null){ht.child=null;do{var vt=pt.sibling;pt.sibling=null,pt=vt}while(pt!==null)}}V=_e}}if(_e.subtreeFlags&2064&&et!==null)et.return=_e,V=et;else e:for(;V!==null;){if(_e=V,_e.flags&2048)switch(_e.tag){case 0:case 11:case 15:Qj(9,_e,_e.return)}var ut=_e.sibling;if(ut!==null){ut.return=_e.return,V=ut;break e}V=_e.return}}var ot=a.current;for(V=ot;V!==null;){et=V;var nt=et.child;if(et.subtreeFlags&2064&&nt!==null)nt.return=et,V=nt;else e:for(et=ot;V!==null;){if(tt=V,tt.flags&2048)try{switch(tt.tag){case 0:case 11:case 15:Rj(9,tt)}}catch(yt){W(tt,tt.return,yt)}if(tt===et){V=null;break e}var dt=tt.sibling;if(dt!==null){dt.return=tt.return,V=dt;break e}V=tt.return}}if(K=$,jg(),lc&&typeof lc.onPostCommitFiberRoot=="function")try{lc.onPostCommitFiberRoot(kc,a)}catch{}b=!0}return b}finally{C=_,pk.transition=o}}return!1}function Yk(a,o,_){o=Ki(_,o),o=Oi(a,o,1),a=dh(a,o,1),o=L$1(),a!==null&&(Ac(a,1,o),Ek(a,o))}function W(a,o,_){if(a.tag===3)Yk(a,a,_);else for(;o!==null;){if(o.tag===3){Yk(o,a,_);break}else if(o.tag===1){var b=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&(Si===null||!Si.has(b))){a=Ki(_,a),a=Ri(o,a,1),o=dh(o,a,1),a=L$1(),o!==null&&(Ac(o,1,a),Ek(o,a));break}}o=o.return}}function Ui(a,o,_){var b=a.pingCache;b!==null&&b.delete(o),o=L$1(),a.pingedLanes|=a.suspendedLanes&_,R===a&&(Z&_)===_&&(T===4||T===3&&(Z&130023424)===Z&&500>B()-gk?Lk(a,0):sk|=_),Ek(a,o)}function Zk(a,o){o===0&&(a.mode&1?(o=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):o=1);var _=L$1();a=Zg(a,o),a!==null&&(Ac(a,o,_),Ek(a,_))}function vj(a){var o=a.memoizedState,_=0;o!==null&&(_=o.retryLane),Zk(a,_)}function ck(a,o){var _=0;switch(a.tag){case 13:var b=a.stateNode,$=a.memoizedState;$!==null&&(_=$.retryLane);break;case 19:b=a.stateNode;break;default:throw Error(p$1(314))}b!==null&&b.delete(o),Zk(a,_)}var Wk;Wk=function(a,o,_){if(a!==null)if(a.memoizedProps!==o.pendingProps||Wf.current)Ug=!0;else{if(!(a.lanes&_)&&!(o.flags&128))return Ug=!1,zj(a,o,_);Ug=!!(a.flags&131072)}else Ug=!1,I&&o.flags&1048576&&ug(o,ng,o.index);switch(o.lanes=0,o.tag){case 2:var b=o.type;jj(a,o),a=o.pendingProps;var $=Yf(o,H.current);Tg(o,_),$=Xh(null,o,b,a,$,_);var _e=bi();return o.flags|=1,typeof $=="object"&&$!==null&&typeof $.render=="function"&&$.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,Zf(b)?(_e=!0,cg(o)):_e=!1,o.memoizedState=$.state!==null&&$.state!==void 0?$.state:null,ah(o),$.updater=nh,o.stateNode=$,$._reactInternals=o,rh(o,b,a,_),o=kj(null,o,b,!0,_e,_)):(o.tag=0,I&&_e&&vg(o),Yi(null,o,$,_),o=o.child),o;case 16:b=o.elementType;e:{switch(jj(a,o),a=o.pendingProps,$=b._init,b=$(b._payload),o.type=b,$=o.tag=$k(b),a=Lg(b,a),$){case 0:o=dj(null,o,b,a,_);break e;case 1:o=ij(null,o,b,a,_);break e;case 11:o=Zi(null,o,b,a,_);break e;case 14:o=aj(null,o,b,Lg(b.type,a),_);break e}throw Error(p$1(306,b,""))}return o;case 0:return b=o.type,$=o.pendingProps,$=o.elementType===b?$:Lg(b,$),dj(a,o,b,$,_);case 1:return b=o.type,$=o.pendingProps,$=o.elementType===b?$:Lg(b,$),ij(a,o,b,$,_);case 3:e:{if(lj(o),a===null)throw Error(p$1(387));b=o.pendingProps,_e=o.memoizedState,$=_e.element,bh(a,o),gh(o,b,null,_);var et=o.memoizedState;if(b=et.element,_e.isDehydrated)if(_e={element:b,isDehydrated:!1,cache:et.cache,pendingSuspenseBoundaries:et.pendingSuspenseBoundaries,transitions:et.transitions},o.updateQueue.baseState=_e,o.memoizedState=_e,o.flags&256){$=Ki(Error(p$1(423)),o),o=mj(a,o,b,_,$);break e}else if(b!==$){$=Ki(Error(p$1(424)),o),o=mj(a,o,b,_,$);break e}else for(yg=Lf(o.stateNode.containerInfo.firstChild),xg=o,I=!0,zg=null,_=Ch(o,null,b,_),o.child=_;_;)_.flags=_.flags&-3|4096,_=_.sibling;else{if(Ig(),b===$){o=$i(a,o,_);break e}Yi(a,o,b,_)}o=o.child}return o;case 5:return Kh(o),a===null&&Eg(o),b=o.type,$=o.pendingProps,_e=a!==null?a.memoizedProps:null,et=$.children,Ef(b,$)?et=null:_e!==null&&Ef(b,_e)&&(o.flags|=32),hj(a,o),Yi(a,o,et,_),o.child;case 6:return a===null&&Eg(o),null;case 13:return pj(a,o,_);case 4:return Ih(o,o.stateNode.containerInfo),b=o.pendingProps,a===null?o.child=Bh(o,null,b,_):Yi(a,o,b,_),o.child;case 11:return b=o.type,$=o.pendingProps,$=o.elementType===b?$:Lg(b,$),Zi(a,o,b,$,_);case 7:return Yi(a,o,o.pendingProps,_),o.child;case 8:return Yi(a,o,o.pendingProps.children,_),o.child;case 12:return Yi(a,o,o.pendingProps.children,_),o.child;case 10:e:{if(b=o.type._context,$=o.pendingProps,_e=o.memoizedProps,et=$.value,G(Mg,b._currentValue),b._currentValue=et,_e!==null)if(He(_e.value,et)){if(_e.children===$.children&&!Wf.current){o=$i(a,o,_);break e}}else for(_e=o.child,_e!==null&&(_e.return=o);_e!==null;){var tt=_e.dependencies;if(tt!==null){et=_e.child;for(var rt=tt.firstContext;rt!==null;){if(rt.context===b){if(_e.tag===1){rt=ch(-1,_&-_),rt.tag=2;var st=_e.updateQueue;if(st!==null){st=st.shared;var it=st.pending;it===null?rt.next=rt:(rt.next=it.next,it.next=rt),st.pending=rt}}_e.lanes|=_,rt=_e.alternate,rt!==null&&(rt.lanes|=_),Sg(_e.return,_,o),tt.lanes|=_;break}rt=rt.next}}else if(_e.tag===10)et=_e.type===o.type?null:_e.child;else if(_e.tag===18){if(et=_e.return,et===null)throw Error(p$1(341));et.lanes|=_,tt=et.alternate,tt!==null&&(tt.lanes|=_),Sg(et,_,o),et=_e.sibling}else et=_e.child;if(et!==null)et.return=_e;else for(et=_e;et!==null;){if(et===o){et=null;break}if(_e=et.sibling,_e!==null){_e.return=et.return,et=_e;break}et=et.return}_e=et}Yi(a,o,$.children,_),o=o.child}return o;case 9:return $=o.type,b=o.pendingProps.children,Tg(o,_),$=Vg($),b=b($),o.flags|=1,Yi(a,o,b,_),o.child;case 14:return b=o.type,$=Lg(b,o.pendingProps),$=Lg(b.type,$),aj(a,o,b,$,_);case 15:return cj(a,o,o.type,o.pendingProps,_);case 17:return b=o.type,$=o.pendingProps,$=o.elementType===b?$:Lg(b,$),jj(a,o),o.tag=1,Zf(b)?(a=!0,cg(o)):a=!1,Tg(o,_),ph(o,b,$),rh(o,b,$,_),kj(null,o,b,!0,a,_);case 19:return yj(a,o,_);case 22:return ej(a,o,_)}throw Error(p$1(156,o.tag))};function Gk(a,o){return ac(a,o)}function al(a,o,_,b){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=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(a,o,_,b){return new al(a,o,_,b)}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,o){var _=a.alternate;return _===null?(_=Bg(a.tag,o,a.key,a.mode),_.elementType=a.elementType,_.type=a.type,_.stateNode=a.stateNode,_.alternate=a,a.alternate=_):(_.pendingProps=o,_.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,o=a.dependencies,_.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},_.sibling=a.sibling,_.index=a.index,_.ref=a.ref,_}function yh(a,o,_,b,$,_e){var et=2;if(b=a,typeof a=="function")bj(a)&&(et=1);else if(typeof a=="string")et=5;else e:switch(a){case ya:return Ah(_.children,$,_e,o);case za:et=8,$|=8;break;case Aa:return a=Bg(12,_,o,$|2),a.elementType=Aa,a.lanes=_e,a;case Ea:return a=Bg(13,_,o,$),a.elementType=Ea,a.lanes=_e,a;case Fa:return a=Bg(19,_,o,$),a.elementType=Fa,a.lanes=_e,a;case Ia:return qj(_,$,_e,o);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case Ba:et=10;break e;case Ca:et=9;break e;case Da:et=11;break e;case Ga:et=14;break e;case Ha:et=16,b=null;break e}throw Error(p$1(130,a==null?a:typeof a,""))}return o=Bg(et,_,o,$),o.elementType=a,o.type=b,o.lanes=_e,o}function Ah(a,o,_,b){return a=Bg(7,a,b,o),a.lanes=_,a}function qj(a,o,_,b){return a=Bg(22,a,b,o),a.elementType=Ia,a.lanes=_,a.stateNode={isHidden:!1},a}function xh(a,o,_){return a=Bg(6,a,null,o),a.lanes=_,a}function zh(a,o,_){return o=Bg(4,a.children!==null?a.children:[],a.key,o),o.lanes=_,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}function bl(a,o,_,b,$){this.tag=o,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=b,this.onRecoverableError=$,this.mutableSourceEagerHydrationData=null}function cl(a,o,_,b,$,_e,et,tt,rt){return a=new bl(a,o,_,tt,rt),o===1?(o=1,_e===!0&&(o|=8)):o=0,_e=Bg(3,null,null,o),a.current=_e,_e.stateNode=a,_e.memoizedState={element:b,isDehydrated:_,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(_e),a}function dl(a,o,_){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wa,key:b==null?null:""+b,children:a,containerInfo:o,implementation:_}}function el(a){if(!a)return Vf;a=a._reactInternals;e:{if(Vb(a)!==a||a.tag!==1)throw Error(p$1(170));var o=a;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(Zf(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(p$1(171))}if(a.tag===1){var _=a.type;if(Zf(_))return bg(a,_,o)}return o}function fl(a,o,_,b,$,_e,et,tt,rt){return a=cl(_,b,!0,a,$,_e,et,tt,rt),a.context=el(null),_=a.current,b=L$1(),$=lh(_),_e=ch(b,$),_e.callback=o??null,dh(_,_e,$),a.current.lanes=$,Ac(a,$,b),Ek(a,b),a}function gl(a,o,_,b){var $=o.current,_e=L$1(),et=lh($);return _=el(_),o.context===null?o.context=_:o.pendingContext=_,o=ch(_e,et),o.payload={element:a},b=b===void 0?null:b,b!==null&&(o.callback=b),a=dh($,o,et),a!==null&&(mh(a,$,et,_e),eh(a,$,et)),et}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(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var _=a.retryLane;a.retryLane=_!==0&&_<o?_:o}}function jl(a,o){il(a,o),(a=a.alternate)&&il(a,o)}function kl(){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 o=this._internalRoot;if(o===null)throw Error(p$1(409));gl(a,o,null,null)};nl.prototype.unmount=ml.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var o=a.containerInfo;Sk(function(){gl(null,a,null,null)}),o[uf]=null}};function nl(a){this._internalRoot=a}nl.prototype.unstable_scheduleHydration=function(a){if(a){var o=Hc();a={blockedOn:null,target:a,priority:o};for(var _=0;_<Qc.length&&o!==0&&o<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,o,_,b,$){if($){if(typeof b=="function"){var _e=b;b=function(){var st=hl(et);_e.call(st)}}var et=fl(o,b,a,0,null,!1,!1,"",ql);return a._reactRootContainer=et,a[uf]=et.current,sf(a.nodeType===8?a.parentNode:a),Sk(),et}for(;$=a.lastChild;)a.removeChild($);if(typeof b=="function"){var tt=b;b=function(){var st=hl(rt);tt.call(st)}}var rt=cl(a,0,!1,null,null,!1,!1,"",ql);return a._reactRootContainer=rt,a[uf]=rt.current,sf(a.nodeType===8?a.parentNode:a),Sk(function(){gl(o,rt,_,b)}),rt}function sl(a,o,_,b,$){var _e=_._reactRootContainer;if(_e){var et=_e;if(typeof $=="function"){var tt=$;$=function(){var rt=hl(et);tt.call(rt)}}gl(o,et,a,$)}else et=rl(_,o,a,$,b);return hl(et)}Ec=function(a){switch(a.tag){case 3:var o=a.stateNode;if(o.current.memoizedState.isDehydrated){var _=tc(o.pendingLanes);_!==0&&(Cc(o,_|1),Ek(o,B()),!(K&6)&&(Hj=B()+500,jg()))}break;case 13:Sk(function(){var b=Zg(a,1);if(b!==null){var $=L$1();mh(b,a,1,$)}}),jl(a,1)}};Fc=function(a){if(a.tag===13){var o=Zg(a,134217728);if(o!==null){var _=L$1();mh(o,a,134217728,_)}jl(a,134217728)}};Gc=function(a){if(a.tag===13){var o=lh(a),_=Zg(a,o);if(_!==null){var b=L$1();mh(_,a,o,b)}jl(a,o)}};Hc=function(){return C};Ic=function(a,o){var _=C;try{return C=a,o()}finally{C=_}};yb=function(a,o,_){switch(o){case"input":if(bb(a,_),o=_.name,_.type==="radio"&&o!=null){for(_=a;_.parentNode;)_=_.parentNode;for(_=_.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<_.length;o++){var b=_[o];if(b!==a&&b.form===a.form){var $=Db(b);if(!$)throw Error(p$1(90));Wa(b),bb(b,$)}}}break;case"textarea":ib(a,_);break;case"select":o=_.value,o!=null&&fb(a,!!_.multiple,o,!1)}};Gb=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,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,o){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ol(o))throw Error(p$1(200));return dl(a,o,null,_)};reactDom_production_min.createRoot=function(a,o){if(!ol(a))throw Error(p$1(299));var _=!1,b="",$=ll;return o!=null&&(o.unstable_strictMode===!0&&(_=!0),o.identifierPrefix!==void 0&&(b=o.identifierPrefix),o.onRecoverableError!==void 0&&($=o.onRecoverableError)),o=cl(a,1,!1,null,null,_,!1,b,$),a[uf]=o.current,sf(a.nodeType===8?a.parentNode:a),new ml(o)};reactDom_production_min.findDOMNode=function(a){if(a==null)return null;if(a.nodeType===1)return a;var o=a._reactInternals;if(o===void 0)throw typeof a.render=="function"?Error(p$1(188)):(a=Object.keys(a).join(","),Error(p$1(268,a)));return a=Zb(o),a=a===null?null:a.stateNode,a};reactDom_production_min.flushSync=function(a){return Sk(a)};reactDom_production_min.hydrate=function(a,o,_){if(!pl(o))throw Error(p$1(200));return sl(null,a,o,!0,_)};reactDom_production_min.hydrateRoot=function(a,o,_){if(!ol(a))throw Error(p$1(405));var b=_!=null&&_.hydratedSources||null,$=!1,_e="",et=ll;if(_!=null&&(_.unstable_strictMode===!0&&($=!0),_.identifierPrefix!==void 0&&(_e=_.identifierPrefix),_.onRecoverableError!==void 0&&(et=_.onRecoverableError)),o=fl(o,null,a,1,_??null,$,!1,_e,et),a[uf]=o.current,sf(a),b)for(a=0;a<b.length;a++)_=b[a],$=_._getVersion,$=$(_._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[_,$]:o.mutableSourceEagerHydrationData.push(_,$);return new nl(o)};reactDom_production_min.render=function(a,o,_){if(!pl(o))throw Error(p$1(200));return sl(null,a,o,!1,_)};reactDom_production_min.unmountComponentAtNode=function(a){if(!pl(a))throw Error(p$1(40));return a._reactRootContainer?(Sk(function(){sl(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,o,_,b){if(!pl(_))throw Error(p$1(200));if(a==null||a._reactInternals===void 0)throw Error(p$1(38));return sl(a,o,_,!1,b)};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,createRoot,m$1=reactDomExports;createRoot=m$1.createRoot,m$1.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$1(){}function functionalUpdate(a,o){return typeof a=="function"?a(o):a}function isValidTimeout(a){return typeof a=="number"&&a>=0&&a!==1/0}function timeUntilStale(a,o){return Math.max(a+(o||0)-Date.now(),0)}function resolveStaleTime(a,o){return typeof a=="function"?a(o):a}function resolveEnabled(a,o){return typeof a=="function"?a(o):a}function matchQuery(a,o){const{type:_="all",exact:b,fetchStatus:$,predicate:_e,queryKey:et,stale:tt}=a;if(et){if(b){if(o.queryHash!==hashQueryKeyByOptions(et,o.options))return!1}else if(!partialMatchKey(o.queryKey,et))return!1}if(_!=="all"){const rt=o.isActive();if(_==="active"&&!rt||_==="inactive"&&rt)return!1}return!(typeof tt=="boolean"&&o.isStale()!==tt||$&&$!==o.state.fetchStatus||_e&&!_e(o))}function matchMutation(a,o){const{exact:_,status:b,predicate:$,mutationKey:_e}=a;if(_e){if(!o.options.mutationKey)return!1;if(_){if(hashKey(o.options.mutationKey)!==hashKey(_e))return!1}else if(!partialMatchKey(o.options.mutationKey,_e))return!1}return!(b&&o.state.status!==b||$&&!$(o))}function hashQueryKeyByOptions(a,o){return((o==null?void 0:o.queryKeyHashFn)||hashKey)(a)}function hashKey(a){return JSON.stringify(a,(o,_)=>isPlainObject(_)?Object.keys(_).sort().reduce((b,$)=>(b[$]=_[$],b),{}):_)}function partialMatchKey(a,o){return a===o?!0:typeof a!=typeof o?!1:a&&o&&typeof a=="object"&&typeof o=="object"?!Object.keys(o).some(_=>!partialMatchKey(a[_],o[_])):!1}function replaceEqualDeep(a,o){if(a===o)return a;const _=isPlainArray(a)&&isPlainArray(o);if(_||isPlainObject(a)&&isPlainObject(o)){const b=_?a:Object.keys(a),$=b.length,_e=_?o:Object.keys(o),et=_e.length,tt=_?[]:{};let rt=0;for(let st=0;st<et;st++){const it=_?st:_e[st];(!_&&b.includes(it)||_)&&a[it]===void 0&&o[it]===void 0?(tt[it]=void 0,rt++):(tt[it]=replaceEqualDeep(a[it],o[it]),tt[it]===a[it]&&a[it]!==void 0&&rt++)}return $===et&&rt===$?a:tt}return o}function shallowEqualObjects(a,o){if(!o||Object.keys(a).length!==Object.keys(o).length)return!1;for(const _ in a)if(a[_]!==o[_])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 o=a.constructor;if(o===void 0)return!0;const _=o.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(o=>{setTimeout(o,a)})}function replaceData(a,o,_){return typeof _.structuralSharing=="function"?_.structuralSharing(a,o):_.structuralSharing!==!1?replaceEqualDeep(a,o):o}function addToEnd(a,o,_=0){const b=[...a,o];return _&&b.length>_?b.slice(1):b}function addToStart(a,o,_=0){const b=[o,...a];return _&&b.length>_?b.slice(0,-1):b}var skipToken=Symbol();function ensureQueryFn(a,o){return!a.queryFn&&(o!=null&&o.initialPromise)?()=>o.initialPromise:!a.queryFn||a.queryFn===skipToken?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}var qr,Gr,ns,Ws,FocusManager=(Ws=class extends Subscribable{constructor(){super();er(this,qr);er(this,Gr);er(this,ns);Yt(this,ns,o=>{if(!isServer&&window.addEventListener){const _=()=>o();return window.addEventListener("visibilitychange",_,!1),()=>{window.removeEventListener("visibilitychange",_)}}})}onSubscribe(){Ot(this,Gr)||this.setEventListener(Ot(this,ns))}onUnsubscribe(){var o;this.hasListeners()||((o=Ot(this,Gr))==null||o.call(this),Yt(this,Gr,void 0))}setEventListener(o){var _;Yt(this,ns,o),(_=Ot(this,Gr))==null||_.call(this),Yt(this,Gr,o(b=>{typeof b=="boolean"?this.setFocused(b):this.onFocus()}))}setFocused(o){Ot(this,qr)!==o&&(Yt(this,qr,o),this.onFocus())}onFocus(){const o=this.isFocused();this.listeners.forEach(_=>{_(o)})}isFocused(){var o;return typeof Ot(this,qr)=="boolean"?Ot(this,qr):((o=globalThis.document)==null?void 0:o.visibilityState)!=="hidden"}},qr=new WeakMap,Gr=new WeakMap,ns=new WeakMap,Ws),focusManager=new FocusManager,is,$r,as,Ks,OnlineManager=(Ks=class extends Subscribable{constructor(){super();er(this,is,!0);er(this,$r);er(this,as);Yt(this,as,o=>{if(!isServer&&window.addEventListener){const _=()=>o(!0),b=()=>o(!1);return window.addEventListener("online",_,!1),window.addEventListener("offline",b,!1),()=>{window.removeEventListener("online",_),window.removeEventListener("offline",b)}}})}onSubscribe(){Ot(this,$r)||this.setEventListener(Ot(this,as))}onUnsubscribe(){var o;this.hasListeners()||((o=Ot(this,$r))==null||o.call(this),Yt(this,$r,void 0))}setEventListener(o){var _;Yt(this,as,o),(_=Ot(this,$r))==null||_.call(this),Yt(this,$r,o(this.setOnline.bind(this)))}setOnline(o){Ot(this,is)!==o&&(Yt(this,is,o),this.listeners.forEach(b=>{b(o)}))}isOnline(){return Ot(this,is)}},is=new WeakMap,$r=new WeakMap,as=new WeakMap,Ks),onlineManager=new OnlineManager;function pendingThenable(){let a,o;const _=new Promise(($,_e)=>{a=$,o=_e});_.status="pending",_.catch(()=>{});function b($){Object.assign(_,$),delete _.resolve,delete _.reject}return _.resolve=$=>{b({status:"fulfilled",value:$}),a($)},_.reject=$=>{b({status:"rejected",reason:$}),o($)},_}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 o=!1,_=0,b=!1,$;const _e=pendingThenable(),et=pt=>{var vt;b||(at(new CancelledError(pt)),(vt=a.abort)==null||vt.call(a))},tt=()=>{o=!0},rt=()=>{o=!1},st=()=>focusManager.isFocused()&&(a.networkMode==="always"||onlineManager.isOnline())&&a.canRun(),it=()=>canFetch(a.networkMode)&&a.canRun(),lt=pt=>{var vt;b||(b=!0,(vt=a.onSuccess)==null||vt.call(a,pt),$==null||$(),_e.resolve(pt))},at=pt=>{var vt;b||(b=!0,(vt=a.onError)==null||vt.call(a,pt),$==null||$(),_e.reject(pt))},ft=()=>new Promise(pt=>{var vt;$=ut=>{(b||st())&&pt(ut)},(vt=a.onPause)==null||vt.call(a)}).then(()=>{var pt;$=void 0,b||(pt=a.onContinue)==null||pt.call(a)}),ht=()=>{if(b)return;let pt;const vt=_===0?a.initialPromise:void 0;try{pt=vt??a.fn()}catch(ut){pt=Promise.reject(ut)}Promise.resolve(pt).then(lt).catch(ut=>{var _t;if(b)return;const ot=a.retry??(isServer?0:3),nt=a.retryDelay??defaultRetryDelay,dt=typeof nt=="function"?nt(_,ut):nt,yt=ot===!0||typeof ot=="number"&&_<ot||typeof ot=="function"&&ot(_,ut);if(o||!yt){at(ut);return}_++,(_t=a.onFail)==null||_t.call(a,_,ut),sleep(dt).then(()=>st()?void 0:ft()).then(()=>{o?at(ut):ht()})})};return{promise:_e,cancel:et,continue:()=>($==null||$(),_e),cancelRetry:tt,continueRetry:rt,canStart:it,start:()=>(it()?ht():ft().then(ht),_e)}}function createNotifyManager(){let a=[],o=0,_=tt=>{tt()},b=tt=>{tt()},$=tt=>setTimeout(tt,0);const _e=tt=>{o?a.push(tt):$(()=>{_(tt)})},et=()=>{const tt=a;a=[],tt.length&&$(()=>{b(()=>{tt.forEach(rt=>{_(rt)})})})};return{batch:tt=>{let rt;o++;try{rt=tt()}finally{o--,o||et()}return rt},batchCalls:tt=>(...rt)=>{_e(()=>{tt(...rt)})},schedule:_e,setNotifyFunction:tt=>{_=tt},setBatchNotifyFunction:tt=>{b=tt},setScheduler:tt=>{$=tt}}}var notifyManager=createNotifyManager(),Xr,Ys,Removable=(Ys=class{constructor(){er(this,Xr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.gcTime)&&Yt(this,Xr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(isServer?1/0:5*60*1e3))}clearGcTimeout(){Ot(this,Xr)&&(clearTimeout(Ot(this,Xr)),Yt(this,Xr,void 0))}},Xr=new WeakMap,Ys),os,ls,wr,yr,As,Zr,Rr,Lr,Qs,Query=(Qs=class extends Removable{constructor(o){super();er(this,Rr);er(this,os);er(this,ls);er(this,wr);er(this,yr);er(this,As);er(this,Zr);Yt(this,Zr,!1),Yt(this,As,o.defaultOptions),this.setOptions(o.options),this.observers=[],Yt(this,wr,o.cache),this.queryKey=o.queryKey,this.queryHash=o.queryHash,Yt(this,os,getDefaultState$1(this.options)),this.state=o.state??Ot(this,os),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var o;return(o=Ot(this,yr))==null?void 0:o.promise}setOptions(o){this.options={...Ot(this,As),...o},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Ot(this,wr).remove(this)}setData(o,_){const b=replaceData(this.state.data,o,this.options);return rr(this,Rr,Lr).call(this,{data:b,type:"success",dataUpdatedAt:_==null?void 0:_.updatedAt,manual:_==null?void 0:_.manual}),b}setState(o,_){rr(this,Rr,Lr).call(this,{type:"setState",state:o,setStateOptions:_})}cancel(o){var b,$;const _=(b=Ot(this,yr))==null?void 0:b.promise;return($=Ot(this,yr))==null||$.cancel(o),_?_.then(noop$1).catch(noop$1):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Ot(this,os))}isActive(){return this.observers.some(o=>resolveEnabled(o.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(o=>o.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(o=0){return this.state.isInvalidated||this.state.data===void 0||!timeUntilStale(this.state.dataUpdatedAt,o)}onFocus(){var _;const o=this.observers.find(b=>b.shouldFetchOnWindowFocus());o==null||o.refetch({cancelRefetch:!1}),(_=Ot(this,yr))==null||_.continue()}onOnline(){var _;const o=this.observers.find(b=>b.shouldFetchOnReconnect());o==null||o.refetch({cancelRefetch:!1}),(_=Ot(this,yr))==null||_.continue()}addObserver(o){this.observers.includes(o)||(this.observers.push(o),this.clearGcTimeout(),Ot(this,wr).notify({type:"observerAdded",query:this,observer:o}))}removeObserver(o){this.observers.includes(o)&&(this.observers=this.observers.filter(_=>_!==o),this.observers.length||(Ot(this,yr)&&(Ot(this,Zr)?Ot(this,yr).cancel({revert:!0}):Ot(this,yr).cancelRetry()),this.scheduleGc()),Ot(this,wr).notify({type:"observerRemoved",query:this,observer:o}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||rr(this,Rr,Lr).call(this,{type:"invalidate"})}fetch(o,_){var rt,st,it;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(_!=null&&_.cancelRefetch))this.cancel({silent:!0});else if(Ot(this,yr))return Ot(this,yr).continueRetry(),Ot(this,yr).promise}if(o&&this.setOptions(o),!this.options.queryFn){const lt=this.observers.find(at=>at.options.queryFn);lt&&this.setOptions(lt.options)}const b=new AbortController,$=lt=>{Object.defineProperty(lt,"signal",{enumerable:!0,get:()=>(Yt(this,Zr,!0),b.signal)})},_e=()=>{const lt=ensureQueryFn(this.options,_),at={queryKey:this.queryKey,meta:this.meta};return $(at),Yt(this,Zr,!1),this.options.persister?this.options.persister(lt,at,this):lt(at)},et={fetchOptions:_,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:_e};$(et),(rt=this.options.behavior)==null||rt.onFetch(et,this),Yt(this,ls,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((st=et.fetchOptions)==null?void 0:st.meta))&&rr(this,Rr,Lr).call(this,{type:"fetch",meta:(it=et.fetchOptions)==null?void 0:it.meta});const tt=lt=>{var at,ft,ht,pt;isCancelledError(lt)&&lt.silent||rr(this,Rr,Lr).call(this,{type:"error",error:lt}),isCancelledError(lt)||((ft=(at=Ot(this,wr).config).onError)==null||ft.call(at,lt,this),(pt=(ht=Ot(this,wr).config).onSettled)==null||pt.call(ht,this.state.data,lt,this)),this.scheduleGc()};return Yt(this,yr,createRetryer({initialPromise:_==null?void 0:_.initialPromise,fn:et.fetchFn,abort:b.abort.bind(b),onSuccess:lt=>{var at,ft,ht,pt;if(lt===void 0){tt(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(lt)}catch(vt){tt(vt);return}(ft=(at=Ot(this,wr).config).onSuccess)==null||ft.call(at,lt,this),(pt=(ht=Ot(this,wr).config).onSettled)==null||pt.call(ht,lt,this.state.error,this),this.scheduleGc()},onError:tt,onFail:(lt,at)=>{rr(this,Rr,Lr).call(this,{type:"failed",failureCount:lt,error:at})},onPause:()=>{rr(this,Rr,Lr).call(this,{type:"pause"})},onContinue:()=>{rr(this,Rr,Lr).call(this,{type:"continue"})},retry:et.options.retry,retryDelay:et.options.retryDelay,networkMode:et.options.networkMode,canRun:()=>!0})),Ot(this,yr).start()}},os=new WeakMap,ls=new WeakMap,wr=new WeakMap,yr=new WeakMap,As=new WeakMap,Zr=new WeakMap,Rr=new WeakSet,Lr=function(o){const _=b=>{switch(o.type){case"failed":return{...b,fetchFailureCount:o.failureCount,fetchFailureReason:o.error};case"pause":return{...b,fetchStatus:"paused"};case"continue":return{...b,fetchStatus:"fetching"};case"fetch":return{...b,...fetchState(b.data,this.options),fetchMeta:o.meta??null};case"success":return{...b,data:o.data,dataUpdateCount:b.dataUpdateCount+1,dataUpdatedAt:o.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!o.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const $=o.error;return isCancelledError($)&&$.revert&&Ot(this,ls)?{...Ot(this,ls),fetchStatus:"idle"}:{...b,error:$,errorUpdateCount:b.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:b.fetchFailureCount+1,fetchFailureReason:$,fetchStatus:"idle",status:"error"};case"invalidate":return{...b,isInvalidated:!0};case"setState":return{...b,...o.state}}};this.state=_(this.state),notifyManager.batch(()=>{this.observers.forEach(b=>{b.onQueryUpdate()}),Ot(this,wr).notify({query:this,type:"updated",action:o})})},Qs);function fetchState(a,o){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:canFetch(o.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function getDefaultState$1(a){const o=typeof a.initialData=="function"?a.initialData():a.initialData,_=o!==void 0,b=_?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:o,dataUpdateCount:0,dataUpdatedAt:_?b??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:_?"success":"pending",fetchStatus:"idle"}}var Ir,Js,QueryCache=(Js=class extends Subscribable{constructor(o={}){super();er(this,Ir);this.config=o,Yt(this,Ir,new Map)}build(o,_,b){const $=_.queryKey,_e=_.queryHash??hashQueryKeyByOptions($,_);let et=this.get(_e);return et||(et=new Query({cache:this,queryKey:$,queryHash:_e,options:o.defaultQueryOptions(_),state:b,defaultOptions:o.getQueryDefaults($)}),this.add(et)),et}add(o){Ot(this,Ir).has(o.queryHash)||(Ot(this,Ir).set(o.queryHash,o),this.notify({type:"added",query:o}))}remove(o){const _=Ot(this,Ir).get(o.queryHash);_&&(o.destroy(),_===o&&Ot(this,Ir).delete(o.queryHash),this.notify({type:"removed",query:o}))}clear(){notifyManager.batch(()=>{this.getAll().forEach(o=>{this.remove(o)})})}get(o){return Ot(this,Ir).get(o)}getAll(){return[...Ot(this,Ir).values()]}find(o){const _={exact:!0,...o};return this.getAll().find(b=>matchQuery(_,b))}findAll(o={}){const _=this.getAll();return Object.keys(o).length>0?_.filter(b=>matchQuery(o,b)):_}notify(o){notifyManager.batch(()=>{this.listeners.forEach(_=>{_(o)})})}onFocus(){notifyManager.batch(()=>{this.getAll().forEach(o=>{o.onFocus()})})}onOnline(){notifyManager.batch(()=>{this.getAll().forEach(o=>{o.onOnline()})})}},Ir=new WeakMap,Js),Nr,vr,es,jr,Vr,qs,Mutation=(qs=class extends Removable{constructor(o){super();er(this,jr);er(this,Nr);er(this,vr);er(this,es);this.mutationId=o.mutationId,Yt(this,vr,o.mutationCache),Yt(this,Nr,[]),this.state=o.state||getDefaultState(),this.setOptions(o.options),this.scheduleGc()}setOptions(o){this.options=o,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(o){Ot(this,Nr).includes(o)||(Ot(this,Nr).push(o),this.clearGcTimeout(),Ot(this,vr).notify({type:"observerAdded",mutation:this,observer:o}))}removeObserver(o){Yt(this,Nr,Ot(this,Nr).filter(_=>_!==o)),this.scheduleGc(),Ot(this,vr).notify({type:"observerRemoved",mutation:this,observer:o})}optionalRemove(){Ot(this,Nr).length||(this.state.status==="pending"?this.scheduleGc():Ot(this,vr).remove(this))}continue(){var o;return((o=Ot(this,es))==null?void 0:o.continue())??this.execute(this.state.variables)}async execute(o){var $,_e,et,tt,rt,st,it,lt,at,ft,ht,pt,vt,ut,ot,nt,dt,yt,_t,At;Yt(this,es,createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(o):Promise.reject(new Error("No mutationFn found")),onFail:(xt,wt)=>{rr(this,jr,Vr).call(this,{type:"failed",failureCount:xt,error:wt})},onPause:()=>{rr(this,jr,Vr).call(this,{type:"pause"})},onContinue:()=>{rr(this,jr,Vr).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Ot(this,vr).canRun(this)}));const _=this.state.status==="pending",b=!Ot(this,es).canStart();try{if(!_){rr(this,jr,Vr).call(this,{type:"pending",variables:o,isPaused:b}),await((_e=($=Ot(this,vr).config).onMutate)==null?void 0:_e.call($,o,this));const wt=await((tt=(et=this.options).onMutate)==null?void 0:tt.call(et,o));wt!==this.state.context&&rr(this,jr,Vr).call(this,{type:"pending",context:wt,variables:o,isPaused:b})}const xt=await Ot(this,es).start();return await((st=(rt=Ot(this,vr).config).onSuccess)==null?void 0:st.call(rt,xt,o,this.state.context,this)),await((lt=(it=this.options).onSuccess)==null?void 0:lt.call(it,xt,o,this.state.context)),await((ft=(at=Ot(this,vr).config).onSettled)==null?void 0:ft.call(at,xt,null,this.state.variables,this.state.context,this)),await((pt=(ht=this.options).onSettled)==null?void 0:pt.call(ht,xt,null,o,this.state.context)),rr(this,jr,Vr).call(this,{type:"success",data:xt}),xt}catch(xt){try{throw await((ut=(vt=Ot(this,vr).config).onError)==null?void 0:ut.call(vt,xt,o,this.state.context,this)),await((nt=(ot=this.options).onError)==null?void 0:nt.call(ot,xt,o,this.state.context)),await((yt=(dt=Ot(this,vr).config).onSettled)==null?void 0:yt.call(dt,void 0,xt,this.state.variables,this.state.context,this)),await((At=(_t=this.options).onSettled)==null?void 0:At.call(_t,void 0,xt,o,this.state.context)),xt}finally{rr(this,jr,Vr).call(this,{type:"error",error:xt})}}finally{Ot(this,vr).runNext(this)}}},Nr=new WeakMap,vr=new WeakMap,es=new WeakMap,jr=new WeakSet,Vr=function(o){const _=b=>{switch(o.type){case"failed":return{...b,failureCount:o.failureCount,failureReason:o.error};case"pause":return{...b,isPaused:!0};case"continue":return{...b,isPaused:!1};case"pending":return{...b,context:o.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:o.isPaused,status:"pending",variables:o.variables,submittedAt:Date.now()};case"success":return{...b,data:o.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...b,data:void 0,error:o.error,failureCount:b.failureCount+1,failureReason:o.error,isPaused:!1,status:"error"}}};this.state=_(this.state),notifyManager.batch(()=>{Ot(this,Nr).forEach(b=>{b.onMutationUpdate(o)}),Ot(this,vr).notify({mutation:this,type:"updated",action:o})})},qs);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 Br,Cr,Es,Xs,MutationCache=(Xs=class extends Subscribable{constructor(o={}){super();er(this,Br);er(this,Cr);er(this,Es);this.config=o,Yt(this,Br,new Set),Yt(this,Cr,new Map),Yt(this,Es,0)}build(o,_,b){const $=new Mutation({mutationCache:this,mutationId:++Rs(this,Es)._,options:o.defaultMutationOptions(_),state:b});return this.add($),$}add(o){Ot(this,Br).add(o);const _=scopeFor(o);if(typeof _=="string"){const b=Ot(this,Cr).get(_);b?b.push(o):Ot(this,Cr).set(_,[o])}this.notify({type:"added",mutation:o})}remove(o){if(Ot(this,Br).delete(o)){const _=scopeFor(o);if(typeof _=="string"){const b=Ot(this,Cr).get(_);if(b)if(b.length>1){const $=b.indexOf(o);$!==-1&&b.splice($,1)}else b[0]===o&&Ot(this,Cr).delete(_)}}this.notify({type:"removed",mutation:o})}canRun(o){const _=scopeFor(o);if(typeof _=="string"){const b=Ot(this,Cr).get(_),$=b==null?void 0:b.find(_e=>_e.state.status==="pending");return!$||$===o}else return!0}runNext(o){var b;const _=scopeFor(o);if(typeof _=="string"){const $=(b=Ot(this,Cr).get(_))==null?void 0:b.find(_e=>_e!==o&&_e.state.isPaused);return($==null?void 0:$.continue())??Promise.resolve()}else return Promise.resolve()}clear(){notifyManager.batch(()=>{Ot(this,Br).forEach(o=>{this.notify({type:"removed",mutation:o})}),Ot(this,Br).clear(),Ot(this,Cr).clear()})}getAll(){return Array.from(Ot(this,Br))}find(o){const _={exact:!0,...o};return this.getAll().find(b=>matchMutation(_,b))}findAll(o={}){return this.getAll().filter(_=>matchMutation(o,_))}notify(o){notifyManager.batch(()=>{this.listeners.forEach(_=>{_(o)})})}resumePausedMutations(){const o=this.getAll().filter(_=>_.state.isPaused);return notifyManager.batch(()=>Promise.all(o.map(_=>_.continue().catch(noop$1))))}},Br=new WeakMap,Cr=new WeakMap,Es=new WeakMap,Xs);function scopeFor(a){var o;return(o=a.options.scope)==null?void 0:o.id}function infiniteQueryBehavior(a){return{onFetch:(o,_)=>{var it,lt,at,ft,ht;const b=o.options,$=(at=(lt=(it=o.fetchOptions)==null?void 0:it.meta)==null?void 0:lt.fetchMore)==null?void 0:at.direction,_e=((ft=o.state.data)==null?void 0:ft.pages)||[],et=((ht=o.state.data)==null?void 0:ht.pageParams)||[];let tt={pages:[],pageParams:[]},rt=0;const st=async()=>{let pt=!1;const vt=nt=>{Object.defineProperty(nt,"signal",{enumerable:!0,get:()=>(o.signal.aborted?pt=!0:o.signal.addEventListener("abort",()=>{pt=!0}),o.signal)})},ut=ensureQueryFn(o.options,o.fetchOptions),ot=async(nt,dt,yt)=>{if(pt)return Promise.reject();if(dt==null&&nt.pages.length)return Promise.resolve(nt);const _t={queryKey:o.queryKey,pageParam:dt,direction:yt?"backward":"forward",meta:o.options.meta};vt(_t);const At=await ut(_t),{maxPages:xt}=o.options,wt=yt?addToStart:addToEnd;return{pages:wt(nt.pages,At,xt),pageParams:wt(nt.pageParams,dt,xt)}};if($&&_e.length){const nt=$==="backward",dt=nt?getPreviousPageParam:getNextPageParam,yt={pages:_e,pageParams:et},_t=dt(b,yt);tt=await ot(yt,_t,nt)}else{const nt=a??_e.length;do{const dt=rt===0?et[0]??b.initialPageParam:getNextPageParam(b,tt);if(rt>0&&dt==null)break;tt=await ot(tt,dt),rt++}while(rt<nt)}return tt};o.options.persister?o.fetchFn=()=>{var pt,vt;return(vt=(pt=o.options).persister)==null?void 0:vt.call(pt,st,{queryKey:o.queryKey,meta:o.options.meta,signal:o.signal},_)}:o.fetchFn=st}}}function getNextPageParam(a,{pages:o,pageParams:_}){const b=o.length-1;return o.length>0?a.getNextPageParam(o[b],o,_[b],_):void 0}function getPreviousPageParam(a,{pages:o,pageParams:_}){var b;return o.length>0?(b=a.getPreviousPageParam)==null?void 0:b.call(a,o[0],o,_[0],_):void 0}var dr,Ur,zr,us,cs,Wr,ds,ps,Zs,QueryClient=(Zs=class{constructor(a={}){er(this,dr);er(this,Ur);er(this,zr);er(this,us);er(this,cs);er(this,Wr);er(this,ds);er(this,ps);Yt(this,dr,a.queryCache||new QueryCache),Yt(this,Ur,a.mutationCache||new MutationCache),Yt(this,zr,a.defaultOptions||{}),Yt(this,us,new Map),Yt(this,cs,new Map),Yt(this,Wr,0)}mount(){Rs(this,Wr)._++,Ot(this,Wr)===1&&(Yt(this,ds,focusManager.subscribe(async a=>{a&&(await this.resumePausedMutations(),Ot(this,dr).onFocus())})),Yt(this,ps,onlineManager.subscribe(async a=>{a&&(await this.resumePausedMutations(),Ot(this,dr).onOnline())})))}unmount(){var a,o;Rs(this,Wr)._--,Ot(this,Wr)===0&&((a=Ot(this,ds))==null||a.call(this),Yt(this,ds,void 0),(o=Ot(this,ps))==null||o.call(this),Yt(this,ps,void 0))}isFetching(a){return Ot(this,dr).findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return Ot(this,Ur).findAll({...a,status:"pending"}).length}getQueryData(a){var _;const o=this.defaultQueryOptions({queryKey:a});return(_=Ot(this,dr).get(o.queryHash))==null?void 0:_.state.data}ensureQueryData(a){const o=this.defaultQueryOptions(a),_=Ot(this,dr).build(this,o),b=_.state.data;return b===void 0?this.fetchQuery(a):(a.revalidateIfStale&&_.isStaleByTime(resolveStaleTime(o.staleTime,_))&&this.prefetchQuery(o),Promise.resolve(b))}getQueriesData(a){return Ot(this,dr).findAll(a).map(({queryKey:o,state:_})=>{const b=_.data;return[o,b]})}setQueryData(a,o,_){const b=this.defaultQueryOptions({queryKey:a}),$=Ot(this,dr).get(b.queryHash),_e=$==null?void 0:$.state.data,et=functionalUpdate(o,_e);if(et!==void 0)return Ot(this,dr).build(this,b).setData(et,{..._,manual:!0})}setQueriesData(a,o,_){return notifyManager.batch(()=>Ot(this,dr).findAll(a).map(({queryKey:b})=>[b,this.setQueryData(b,o,_)]))}getQueryState(a){var _;const o=this.defaultQueryOptions({queryKey:a});return(_=Ot(this,dr).get(o.queryHash))==null?void 0:_.state}removeQueries(a){const o=Ot(this,dr);notifyManager.batch(()=>{o.findAll(a).forEach(_=>{o.remove(_)})})}resetQueries(a,o){const _=Ot(this,dr),b={type:"active",...a};return notifyManager.batch(()=>(_.findAll(a).forEach($=>{$.reset()}),this.refetchQueries(b,o)))}cancelQueries(a,o={}){const _={revert:!0,...o},b=notifyManager.batch(()=>Ot(this,dr).findAll(a).map($=>$.cancel(_)));return Promise.all(b).then(noop$1).catch(noop$1)}invalidateQueries(a,o={}){return notifyManager.batch(()=>{if(Ot(this,dr).findAll(a).forEach(b=>{b.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(_,o)})}refetchQueries(a,o={}){const _={...o,cancelRefetch:o.cancelRefetch??!0},b=notifyManager.batch(()=>Ot(this,dr).findAll(a).filter($=>!$.isDisabled()).map($=>{let _e=$.fetch(void 0,_);return _.throwOnError||(_e=_e.catch(noop$1)),$.state.fetchStatus==="paused"?Promise.resolve():_e}));return Promise.all(b).then(noop$1)}fetchQuery(a){const o=this.defaultQueryOptions(a);o.retry===void 0&&(o.retry=!1);const _=Ot(this,dr).build(this,o);return _.isStaleByTime(resolveStaleTime(o.staleTime,_))?_.fetch(o):Promise.resolve(_.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(noop$1).catch(noop$1)}fetchInfiniteQuery(a){return a.behavior=infiniteQueryBehavior(a.pages),this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(noop$1).catch(noop$1)}ensureInfiniteQueryData(a){return a.behavior=infiniteQueryBehavior(a.pages),this.ensureQueryData(a)}resumePausedMutations(){return onlineManager.isOnline()?Ot(this,Ur).resumePausedMutations():Promise.resolve()}getQueryCache(){return Ot(this,dr)}getMutationCache(){return Ot(this,Ur)}getDefaultOptions(){return Ot(this,zr)}setDefaultOptions(a){Yt(this,zr,a)}setQueryDefaults(a,o){Ot(this,us).set(hashKey(a),{queryKey:a,defaultOptions:o})}getQueryDefaults(a){const o=[...Ot(this,us).values()],_={};return o.forEach(b=>{partialMatchKey(a,b.queryKey)&&Object.assign(_,b.defaultOptions)}),_}setMutationDefaults(a,o){Ot(this,cs).set(hashKey(a),{mutationKey:a,defaultOptions:o})}getMutationDefaults(a){const o=[...Ot(this,cs).values()];let _={};return o.forEach(b=>{partialMatchKey(a,b.mutationKey)&&(_={..._,...b.defaultOptions})}),_}defaultQueryOptions(a){if(a._defaulted)return a;const o={...Ot(this,zr).queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return o.queryHash||(o.queryHash=hashQueryKeyByOptions(o.queryKey,o)),o.refetchOnReconnect===void 0&&(o.refetchOnReconnect=o.networkMode!=="always"),o.throwOnError===void 0&&(o.throwOnError=!!o.suspense),!o.networkMode&&o.persister&&(o.networkMode="offlineFirst"),o.queryFn===skipToken&&(o.enabled=!1),o}defaultMutationOptions(a){return a!=null&&a._defaulted?a:{...Ot(this,zr).mutations,...(a==null?void 0:a.mutationKey)&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){Ot(this,dr).clear(),Ot(this,Ur).clear()}},dr=new WeakMap,Ur=new WeakMap,zr=new WeakMap,us=new WeakMap,cs=new WeakMap,Wr=new WeakMap,ds=new WeakMap,ps=new WeakMap,Zs),br,nr,Ss,Ar,ts,hs,Kr,Pr,bs,fs,ms,rs,ss,Yr,gs,or,vs,js,Ps,Os,Ms,Ds,Ls,Bs,rn,en,QueryObserver=(en=class extends Subscribable{constructor(o,_){super();er(this,or);er(this,br);er(this,nr);er(this,Ss);er(this,Ar);er(this,ts);er(this,hs);er(this,Kr);er(this,Pr);er(this,bs);er(this,fs);er(this,ms);er(this,rs);er(this,ss);er(this,Yr);er(this,gs,new Set);this.options=_,Yt(this,br,o),Yt(this,Pr,null),Yt(this,Kr,pendingThenable()),this.options.experimental_prefetchInRender||Ot(this,Kr).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&&(Ot(this,nr).addObserver(this),shouldFetchOnMount(Ot(this,nr),this.options)?rr(this,or,vs).call(this):this.updateResult(),rr(this,or,Ms).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(Ot(this,nr),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(Ot(this,nr),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,rr(this,or,Ds).call(this),rr(this,or,Ls).call(this),Ot(this,nr).removeObserver(this)}setOptions(o,_){const b=this.options,$=Ot(this,nr);if(this.options=Ot(this,br).defaultQueryOptions(o),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof resolveEnabled(this.options.enabled,Ot(this,nr))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");rr(this,or,Bs).call(this),Ot(this,nr).setOptions(this.options),b._defaulted&&!shallowEqualObjects(this.options,b)&&Ot(this,br).getQueryCache().notify({type:"observerOptionsUpdated",query:Ot(this,nr),observer:this});const _e=this.hasListeners();_e&&shouldFetchOptionally(Ot(this,nr),$,this.options,b)&&rr(this,or,vs).call(this),this.updateResult(_),_e&&(Ot(this,nr)!==$||resolveEnabled(this.options.enabled,Ot(this,nr))!==resolveEnabled(b.enabled,Ot(this,nr))||resolveStaleTime(this.options.staleTime,Ot(this,nr))!==resolveStaleTime(b.staleTime,Ot(this,nr)))&&rr(this,or,js).call(this);const et=rr(this,or,Ps).call(this);_e&&(Ot(this,nr)!==$||resolveEnabled(this.options.enabled,Ot(this,nr))!==resolveEnabled(b.enabled,Ot(this,nr))||et!==Ot(this,Yr))&&rr(this,or,Os).call(this,et)}getOptimisticResult(o){const _=Ot(this,br).getQueryCache().build(Ot(this,br),o),b=this.createResult(_,o);return shouldAssignObserverCurrentProperties(this,b)&&(Yt(this,Ar,b),Yt(this,hs,this.options),Yt(this,ts,Ot(this,nr).state)),b}getCurrentResult(){return Ot(this,Ar)}trackResult(o,_){const b={};return Object.keys(o).forEach($=>{Object.defineProperty(b,$,{configurable:!1,enumerable:!0,get:()=>(this.trackProp($),_==null||_($),o[$])})}),b}trackProp(o){Ot(this,gs).add(o)}getCurrentQuery(){return Ot(this,nr)}refetch({...o}={}){return this.fetch({...o})}fetchOptimistic(o){const _=Ot(this,br).defaultQueryOptions(o),b=Ot(this,br).getQueryCache().build(Ot(this,br),_);return b.fetch().then(()=>this.createResult(b,_))}fetch(o){return rr(this,or,vs).call(this,{...o,cancelRefetch:o.cancelRefetch??!0}).then(()=>(this.updateResult(),Ot(this,Ar)))}createResult(o,_){var xt;const b=Ot(this,nr),$=this.options,_e=Ot(this,Ar),et=Ot(this,ts),tt=Ot(this,hs),st=o!==b?o.state:Ot(this,Ss),{state:it}=o;let lt={...it},at=!1,ft;if(_._optimisticResults){const wt=this.hasListeners(),Tt=!wt&&shouldFetchOnMount(o,_),It=wt&&shouldFetchOptionally(o,b,_,$);(Tt||It)&&(lt={...lt,...fetchState(it.data,o.options)}),_._optimisticResults==="isRestoring"&&(lt.fetchStatus="idle")}let{error:ht,errorUpdatedAt:pt,status:vt}=lt;if(_.select&&lt.data!==void 0)if(_e&&lt.data===(et==null?void 0:et.data)&&_.select===Ot(this,bs))ft=Ot(this,fs);else try{Yt(this,bs,_.select),ft=_.select(lt.data),ft=replaceData(_e==null?void 0:_e.data,ft,_),Yt(this,fs,ft),Yt(this,Pr,null)}catch(wt){Yt(this,Pr,wt)}else ft=lt.data;if(_.placeholderData!==void 0&&ft===void 0&&vt==="pending"){let wt;if(_e!=null&&_e.isPlaceholderData&&_.placeholderData===(tt==null?void 0:tt.placeholderData))wt=_e.data;else if(wt=typeof _.placeholderData=="function"?_.placeholderData((xt=Ot(this,ms))==null?void 0:xt.state.data,Ot(this,ms)):_.placeholderData,_.select&&wt!==void 0)try{wt=_.select(wt),Yt(this,Pr,null)}catch(Tt){Yt(this,Pr,Tt)}wt!==void 0&&(vt="success",ft=replaceData(_e==null?void 0:_e.data,wt,_),at=!0)}Ot(this,Pr)&&(ht=Ot(this,Pr),ft=Ot(this,fs),pt=Date.now(),vt="error");const ut=lt.fetchStatus==="fetching",ot=vt==="pending",nt=vt==="error",dt=ot&&ut,yt=ft!==void 0,At={status:vt,fetchStatus:lt.fetchStatus,isPending:ot,isSuccess:vt==="success",isError:nt,isInitialLoading:dt,isLoading:dt,data:ft,dataUpdatedAt:lt.dataUpdatedAt,error:ht,errorUpdatedAt:pt,failureCount:lt.fetchFailureCount,failureReason:lt.fetchFailureReason,errorUpdateCount:lt.errorUpdateCount,isFetched:lt.dataUpdateCount>0||lt.errorUpdateCount>0,isFetchedAfterMount:lt.dataUpdateCount>st.dataUpdateCount||lt.errorUpdateCount>st.errorUpdateCount,isFetching:ut,isRefetching:ut&&!ot,isLoadingError:nt&&!yt,isPaused:lt.fetchStatus==="paused",isPlaceholderData:at,isRefetchError:nt&&yt,isStale:isStale(o,_),refetch:this.refetch,promise:Ot(this,Kr)};if(this.options.experimental_prefetchInRender){const wt=Nt=>{At.status==="error"?Nt.reject(At.error):At.data!==void 0&&Nt.resolve(At.data)},Tt=()=>{const Nt=Yt(this,Kr,At.promise=pendingThenable());wt(Nt)},It=Ot(this,Kr);switch(It.status){case"pending":o.queryHash===b.queryHash&&wt(It);break;case"fulfilled":(At.status==="error"||At.data!==It.value)&&Tt();break;case"rejected":(At.status!=="error"||At.error!==It.reason)&&Tt();break}}return At}updateResult(o){const _=Ot(this,Ar),b=this.createResult(Ot(this,nr),this.options);if(Yt(this,ts,Ot(this,nr).state),Yt(this,hs,this.options),Ot(this,ts).data!==void 0&&Yt(this,ms,Ot(this,nr)),shallowEqualObjects(b,_))return;Yt(this,Ar,b);const $={},_e=()=>{if(!_)return!0;const{notifyOnChangeProps:et}=this.options,tt=typeof et=="function"?et():et;if(tt==="all"||!tt&&!Ot(this,gs).size)return!0;const rt=new Set(tt??Ot(this,gs));return this.options.throwOnError&&rt.add("error"),Object.keys(Ot(this,Ar)).some(st=>{const it=st;return Ot(this,Ar)[it]!==_[it]&&rt.has(it)})};(o==null?void 0:o.listeners)!==!1&&_e()&&($.listeners=!0),rr(this,or,rn).call(this,{...$,...o})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&rr(this,or,Ms).call(this)}},br=new WeakMap,nr=new WeakMap,Ss=new WeakMap,Ar=new WeakMap,ts=new WeakMap,hs=new WeakMap,Kr=new WeakMap,Pr=new WeakMap,bs=new WeakMap,fs=new WeakMap,ms=new WeakMap,rs=new WeakMap,ss=new WeakMap,Yr=new WeakMap,gs=new WeakMap,or=new WeakSet,vs=function(o){rr(this,or,Bs).call(this);let _=Ot(this,nr).fetch(this.options,o);return o!=null&&o.throwOnError||(_=_.catch(noop$1)),_},js=function(){rr(this,or,Ds).call(this);const o=resolveStaleTime(this.options.staleTime,Ot(this,nr));if(isServer||Ot(this,Ar).isStale||!isValidTimeout(o))return;const b=timeUntilStale(Ot(this,Ar).dataUpdatedAt,o)+1;Yt(this,rs,setTimeout(()=>{Ot(this,Ar).isStale||this.updateResult()},b))},Ps=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Ot(this,nr)):this.options.refetchInterval)??!1},Os=function(o){rr(this,or,Ls).call(this),Yt(this,Yr,o),!(isServer||resolveEnabled(this.options.enabled,Ot(this,nr))===!1||!isValidTimeout(Ot(this,Yr))||Ot(this,Yr)===0)&&Yt(this,ss,setInterval(()=>{(this.options.refetchIntervalInBackground||focusManager.isFocused())&&rr(this,or,vs).call(this)},Ot(this,Yr)))},Ms=function(){rr(this,or,js).call(this),rr(this,or,Os).call(this,rr(this,or,Ps).call(this))},Ds=function(){Ot(this,rs)&&(clearTimeout(Ot(this,rs)),Yt(this,rs,void 0))},Ls=function(){Ot(this,ss)&&(clearInterval(Ot(this,ss)),Yt(this,ss,void 0))},Bs=function(){const o=Ot(this,br).getQueryCache().build(Ot(this,br),this.options);if(o===Ot(this,nr))return;const _=Ot(this,nr);Yt(this,nr,o),Yt(this,Ss,o.state),this.hasListeners()&&(_==null||_.removeObserver(this),o.addObserver(this))},rn=function(o){notifyManager.batch(()=>{o.listeners&&this.listeners.forEach(_=>{_(Ot(this,Ar))}),Ot(this,br).getQueryCache().notify({query:Ot(this,nr),type:"observerResultsUpdated"})})},en);function shouldLoadOnMount(a,o){return resolveEnabled(o.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&o.retryOnMount===!1)}function shouldFetchOnMount(a,o){return shouldLoadOnMount(a,o)||a.state.data!==void 0&&shouldFetchOn(a,o,o.refetchOnMount)}function shouldFetchOn(a,o,_){if(resolveEnabled(o.enabled,a)!==!1){const b=typeof _=="function"?_(a):_;return b==="always"||b!==!1&&isStale(a,o)}return!1}function shouldFetchOptionally(a,o,_,b){return(a!==o||resolveEnabled(b.enabled,a)===!1)&&(!_.suspense||a.state.status!=="error")&&isStale(a,_)}function isStale(a,o){return resolveEnabled(o.enabled,a)!==!1&&a.isStaleByTime(resolveStaleTime(o.staleTime,a))}function shouldAssignObserverCurrentProperties(a,o){return!shallowEqualObjects(a.getCurrentResult(),o)}var Qr,Jr,kr,Hr,Fr,Cs,Hs,tn,MutationObserver$1=(tn=class extends Subscribable{constructor(_,b){super();er(this,Fr);er(this,Qr);er(this,Jr);er(this,kr);er(this,Hr);Yt(this,Qr,_),this.setOptions(b),this.bindMethods(),rr(this,Fr,Cs).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(_){var $;const b=this.options;this.options=Ot(this,Qr).defaultMutationOptions(_),shallowEqualObjects(this.options,b)||Ot(this,Qr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Ot(this,kr),observer:this}),b!=null&&b.mutationKey&&this.options.mutationKey&&hashKey(b.mutationKey)!==hashKey(this.options.mutationKey)?this.reset():(($=Ot(this,kr))==null?void 0:$.state.status)==="pending"&&Ot(this,kr).setOptions(this.options)}onUnsubscribe(){var _;this.hasListeners()||(_=Ot(this,kr))==null||_.removeObserver(this)}onMutationUpdate(_){rr(this,Fr,Cs).call(this),rr(this,Fr,Hs).call(this,_)}getCurrentResult(){return Ot(this,Jr)}reset(){var _;(_=Ot(this,kr))==null||_.removeObserver(this),Yt(this,kr,void 0),rr(this,Fr,Cs).call(this),rr(this,Fr,Hs).call(this)}mutate(_,b){var $;return Yt(this,Hr,b),($=Ot(this,kr))==null||$.removeObserver(this),Yt(this,kr,Ot(this,Qr).getMutationCache().build(Ot(this,Qr),this.options)),Ot(this,kr).addObserver(this),Ot(this,kr).execute(_)}},Qr=new WeakMap,Jr=new WeakMap,kr=new WeakMap,Hr=new WeakMap,Fr=new WeakSet,Cs=function(){var b;const _=((b=Ot(this,kr))==null?void 0:b.state)??getDefaultState();Yt(this,Jr,{..._,isPending:_.status==="pending",isSuccess:_.status==="success",isError:_.status==="error",isIdle:_.status==="idle",mutate:this.mutate,reset:this.reset})},Hs=function(_){notifyManager.batch(()=>{var b,$,_e,et,tt,rt,st,it;if(Ot(this,Hr)&&this.hasListeners()){const lt=Ot(this,Jr).variables,at=Ot(this,Jr).context;(_==null?void 0:_.type)==="success"?(($=(b=Ot(this,Hr)).onSuccess)==null||$.call(b,_.data,lt,at),(et=(_e=Ot(this,Hr)).onSettled)==null||et.call(_e,_.data,null,lt,at)):(_==null?void 0:_.type)==="error"&&((rt=(tt=Ot(this,Hr)).onError)==null||rt.call(tt,_.error,lt,at),(it=(st=Ot(this,Hr)).onSettled)==null||it.call(st,void 0,_.error,lt,at))}this.listeners.forEach(lt=>{lt(Ot(this,Jr))})})},tn),QueryClientContext=reactExports.createContext(void 0),useQueryClient=a=>{const o=reactExports.useContext(QueryClientContext);if(!o)throw new Error("No QueryClient set, use QueryClientProvider to set one");return o},QueryClientProvider=({client:a,children:o})=>(reactExports.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),jsxRuntimeExports.jsx(QueryClientContext.Provider,{value:a,children:o})),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,o){return typeof a=="function"?a(...o):!!a}function noop(){}var ensurePreventErrorBoundaryRetry=(a,o)=>{(a.suspense||a.throwOnError||a.experimental_prefetchInRender)&&(o.isReset()||(a.retryOnMount=!1))},useClearResetErrorBoundary=a=>{reactExports.useEffect(()=>{a.clearReset()},[a])},getHasError=({result:a,errorResetBoundary:o,throwOnError:_,query:b})=>a.isError&&!o.isReset()&&!a.isFetching&&b&&shouldThrowError(_,[a.error,b]),ensureSuspenseTimers=a=>{const o=a.staleTime;a.suspense&&(a.staleTime=typeof o=="function"?(..._)=>Math.max(o(..._),1e3):Math.max(o??1e3,1e3),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3)))},willFetch=(a,o)=>a.isLoading&&a.isFetching&&!o,shouldSuspend=(a,o)=>(a==null?void 0:a.suspense)&&o.isPending,fetchOptimistic=(a,o,_)=>o.fetchOptimistic(a).catch(()=>{_.clearReset()});function useBaseQuery(a,o,_){var lt,at,ft,ht,pt;const b=useQueryClient(),$=useIsRestoring(),_e=useQueryErrorResetBoundary(),et=b.defaultQueryOptions(a);(at=(lt=b.getDefaultOptions().queries)==null?void 0:lt._experimental_beforeQuery)==null||at.call(lt,et),et._optimisticResults=$?"isRestoring":"optimistic",ensureSuspenseTimers(et),ensurePreventErrorBoundaryRetry(et,_e),useClearResetErrorBoundary(_e);const tt=!b.getQueryCache().get(et.queryHash),[rt]=reactExports.useState(()=>new o(b,et)),st=rt.getOptimisticResult(et),it=!$&&a.subscribed!==!1;if(reactExports.useSyncExternalStore(reactExports.useCallback(vt=>{const ut=it?rt.subscribe(notifyManager.batchCalls(vt)):noop;return rt.updateResult(),ut},[rt,it]),()=>rt.getCurrentResult(),()=>rt.getCurrentResult()),reactExports.useEffect(()=>{rt.setOptions(et,{listeners:!1})},[et,rt]),shouldSuspend(et,st))throw fetchOptimistic(et,rt,_e);if(getHasError({result:st,errorResetBoundary:_e,throwOnError:et.throwOnError,query:b.getQueryCache().get(et.queryHash)}))throw st.error;if((ht=(ft=b.getDefaultOptions().queries)==null?void 0:ft._experimental_afterQuery)==null||ht.call(ft,et,st),et.experimental_prefetchInRender&&!isServer&&willFetch(st,$)){const vt=tt?fetchOptimistic(et,rt,_e):(pt=b.getQueryCache().get(et.queryHash))==null?void 0:pt.promise;vt==null||vt.catch(noop).finally(()=>{rt.updateResult()})}return et.notifyOnChangeProps?st:rt.trackResult(st)}function useQuery(a,o){return useBaseQuery(a,QueryObserver)}function useMutation(a,o){const _=useQueryClient(),[b]=reactExports.useState(()=>new MutationObserver$1(_,a));reactExports.useEffect(()=>{b.setOptions(a)},[b,a]);const $=reactExports.useSyncExternalStore(reactExports.useCallback(et=>b.subscribe(notifyManager.batchCalls(et)),[b]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),_e=reactExports.useCallback((et,tt)=>{b.mutate(et,tt).catch(noop)},[b]);if($.error&&shouldThrowError(b.options.throwOnError,[$.error]))throw $.error;return{...$,mutate:_e,mutateAsync:$.mutate}}var lottie$1={exports:{}};(function(module,exports){typeof document<"u"&&typeof navigator<"u"&&function(a,o){module.exports=o()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(o){_useWebWorker=!!o},getWebWorker=function(){return _useWebWorker},setLocationHref=function(o){locationHref=o},getLocationHref=function(){return locationHref};function createTag(a){return document.createElement(a)}function extendPrototype(a,o){var _,b=a.length,$;for(_=0;_<b;_+=1){$=a[_].prototype;for(var _e in $)Object.prototype.hasOwnProperty.call($,_e)&&(o.prototype[_e]=$[_e])}}function getDescriptor(a,o){return Object.getOwnPropertyDescriptor(a,o)}function createProxyFunction(a){function o(){}return o.prototype=a,o}var audioControllerFactory=function(){function a(o){this.audios=[],this.audioFactory=o,this._volume=1,this._isMuted=!1}return a.prototype={addAudio:function(_){this.audios.push(_)},pause:function(){var _,b=this.audios.length;for(_=0;_<b;_+=1)this.audios[_].pause()},resume:function(){var _,b=this.audios.length;for(_=0;_<b;_+=1)this.audios[_].resume()},setRate:function(_){var b,$=this.audios.length;for(b=0;b<$;b+=1)this.audios[b].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 _,b=this.audios.length;for(_=0;_<b;_+=1)this.audios[_].volume(this._volume*(this._isMuted?0:1))}},function(){return new a}}(),createTypedArray=function(){function a(_,b){var $=0,_e=[],et;switch(_){case"int16":case"uint8c":et=1;break;default:et=1.1;break}for($=0;$<b;$+=1)_e.push(et);return _e}function o(_,b){return _==="float32"?new Float32Array(b):_==="int16"?new Int16Array(b):_==="uint8c"?new Uint8ClampedArray(b):a(_,b)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?o: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(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_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"],o,_=a.length;for(o=0;o<_;o+=1)BMMath[a[o]]=Math[a[o]]})(),BMMath.random=Math.random,BMMath.abs=function(a){var o=_typeof$6(a);if(o==="object"&&a.length){var _=createSizedArray(a.length),b,$=a.length;for(b=0;b<$;b+=1)_[b]=Math.abs(a[b]);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,o,_,b){this.type=a,this.currentTime=o,this.totalTime=_,this.direction=b<0?-1:1}function BMCompleteEvent(a,o){this.type=a,this.direction=o<0?-1:1}function BMCompleteLoopEvent(a,o,_,b){this.type=a,this.currentLoop=_,this.totalLoops=o,this.direction=b<0?-1:1}function BMSegmentStartEvent(a,o,_){this.type=a,this.firstFrame=o,this.totalFrames=_}function BMDestroyEvent(a,o){this.type=a,this.target=o}function BMRenderFrameErrorEvent(a,o){this.type="renderFrameError",this.nativeError=a,this.currentTime=o}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,o,_){var b,$,_e,et,tt,rt,st,it;switch(et=Math.floor(a*6),tt=a*6-et,rt=_*(1-o),st=_*(1-tt*o),it=_*(1-(1-tt)*o),et%6){case 0:b=_,$=it,_e=rt;break;case 1:b=st,$=_,_e=rt;break;case 2:b=rt,$=_,_e=it;break;case 3:b=rt,$=st,_e=_;break;case 4:b=it,$=rt,_e=_;break;case 5:b=_,$=rt,_e=st;break}return[b,$,_e]}function RGBtoHSV(a,o,_){var b=Math.max(a,o,_),$=Math.min(a,o,_),_e=b-$,et,tt=b===0?0:_e/b,rt=b/255;switch(b){case $:et=0;break;case a:et=o-_+_e*(o<_?6:0),et/=6*_e;break;case o:et=_-a+_e*2,et/=6*_e;break;case _:et=a-o+_e*4,et/=6*_e;break}return[et,tt,rt]}function addSaturationToRGB(a,o){var _=RGBtoHSV(a[0]*255,a[1]*255,a[2]*255);return _[1]+=o,_[1]>1?_[1]=1:_[1]<=0&&(_[1]=0),HSVtoRGB(_[0],_[1],_[2])}function addBrightnessToRGB(a,o){var _=RGBtoHSV(a[0]*255,a[1]*255,a[2]*255);return _[2]+=o,_[2]>1?_[2]=1:_[2]<0&&(_[2]=0),HSVtoRGB(_[0],_[1],_[2])}function addHueToRGB(a,o){var _=RGBtoHSV(a[0]*255,a[1]*255,a[2]*255);return _[0]+=o/360,_[0]>1?_[0]-=1:_[0]<0&&(_[0]+=1),HSVtoRGB(_[0],_[1],_[2])}var rgbToHex=function(){var a=[],o,_;for(o=0;o<256;o+=1)_=o.toString(16),a[o]=_.length===1?"0"+_:_;return function(b,$,_e){return b<0&&(b=0),$<0&&($=0),_e<0&&(_e=0),"#"+a[b]+a[$]+a[_e]}}(),setSubframeEnabled=function(o){subframeEnabled=!!o},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(o){expressionsPlugin=o},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(o){expressionsInterfaces=o},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(o){defaultCurveSegments=o},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(o){idPrefix$1=o};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(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$5(a)}var dataManager=function(){var a=1,o=[],_,b,$={onmessage:function(){},postMessage:function(ft){_({data:ft})}},_e={postMessage:function(ft){$.onmessage({data:ft})}};function et(at){if(window.Worker&&window.Blob&&getWebWorker()){var ft=new Blob(["var _workerSelf = self; self.onmessage = ",at.toString()],{type:"text/javascript"}),ht=URL.createObjectURL(ft);return new Worker(ht)}return _=at,$}function tt(){b||(b=et(function(ft){function ht(){function vt(Et,gt){var St,ct,mt=Et.length,Rt,kt,Dt,bt;for(ct=0;ct<mt;ct+=1)if(St=Et[ct],"ks"in St&&!St.completed){if(St.completed=!0,St.hasMask){var Ht=St.masksProperties;for(kt=Ht.length,Rt=0;Rt<kt;Rt+=1)if(Ht[Rt].pt.k.i)yt(Ht[Rt].pt.k);else for(bt=Ht[Rt].pt.k.length,Dt=0;Dt<bt;Dt+=1)Ht[Rt].pt.k[Dt].s&&yt(Ht[Rt].pt.k[Dt].s[0]),Ht[Rt].pt.k[Dt].e&&yt(Ht[Rt].pt.k[Dt].e[0])}St.ty===0?(St.layers=nt(St.refId,gt),vt(St.layers,gt)):St.ty===4?dt(St.shapes):St.ty===5&&Ct(St)}}function ut(Et,gt){if(Et){var St=0,ct=Et.length;for(St=0;St<ct;St+=1)Et[St].t===1&&(Et[St].data.layers=nt(Et[St].data.refId,gt),vt(Et[St].data.layers,gt))}}function ot(Et,gt){for(var St=0,ct=gt.length;St<ct;){if(gt[St].id===Et)return gt[St];St+=1}return null}function nt(Et,gt){var St=ot(Et,gt);return St?St.layers.__used?JSON.parse(JSON.stringify(St.layers)):(St.layers.__used=!0,St.layers):null}function dt(Et){var gt,St=Et.length,ct,mt;for(gt=St-1;gt>=0;gt-=1)if(Et[gt].ty==="sh")if(Et[gt].ks.k.i)yt(Et[gt].ks.k);else for(mt=Et[gt].ks.k.length,ct=0;ct<mt;ct+=1)Et[gt].ks.k[ct].s&&yt(Et[gt].ks.k[ct].s[0]),Et[gt].ks.k[ct].e&&yt(Et[gt].ks.k[ct].e[0]);else Et[gt].ty==="gr"&&dt(Et[gt].it)}function yt(Et){var gt,St=Et.i.length;for(gt=0;gt<St;gt+=1)Et.i[gt][0]+=Et.v[gt][0],Et.i[gt][1]+=Et.v[gt][1],Et.o[gt][0]+=Et.v[gt][0],Et.o[gt][1]+=Et.v[gt][1]}function _t(Et,gt){var St=gt?gt.split("."):[100,100,100];return Et[0]>St[0]?!0:St[0]>Et[0]?!1:Et[1]>St[1]?!0:St[1]>Et[1]?!1:Et[2]>St[2]?!0:St[2]>Et[2]?!1:null}var At=function(){var Et=[4,4,14];function gt(ct){var mt=ct.t.d;ct.t.d={k:[{s:mt,t:0}]}}function St(ct){var mt,Rt=ct.length;for(mt=0;mt<Rt;mt+=1)ct[mt].ty===5&&gt(ct[mt])}return function(ct){if(_t(Et,ct.v)&&(St(ct.layers),ct.assets)){var mt,Rt=ct.assets.length;for(mt=0;mt<Rt;mt+=1)ct.assets[mt].layers&&St(ct.assets[mt].layers)}}}(),xt=function(){var Et=[4,7,99];return function(gt){if(gt.chars&&!_t(Et,gt.v)){var St,ct=gt.chars.length;for(St=0;St<ct;St+=1){var mt=gt.chars[St];mt.data&&mt.data.shapes&&(dt(mt.data.shapes),mt.data.ip=0,mt.data.op=99999,mt.data.st=0,mt.data.sr=1,mt.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}},gt.chars[St].t||(mt.data.shapes.push({ty:"no"}),mt.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"})))}}}}(),wt=function(){var Et=[5,7,15];function gt(ct){var mt=ct.t.p;typeof mt.a=="number"&&(mt.a={a:0,k:mt.a}),typeof mt.p=="number"&&(mt.p={a:0,k:mt.p}),typeof mt.r=="number"&&(mt.r={a:0,k:mt.r})}function St(ct){var mt,Rt=ct.length;for(mt=0;mt<Rt;mt+=1)ct[mt].ty===5&&gt(ct[mt])}return function(ct){if(_t(Et,ct.v)&&(St(ct.layers),ct.assets)){var mt,Rt=ct.assets.length;for(mt=0;mt<Rt;mt+=1)ct.assets[mt].layers&&St(ct.assets[mt].layers)}}}(),Tt=function(){var Et=[4,1,9];function gt(ct){var mt,Rt=ct.length,kt,Dt;for(mt=0;mt<Rt;mt+=1)if(ct[mt].ty==="gr")gt(ct[mt].it);else if(ct[mt].ty==="fl"||ct[mt].ty==="st")if(ct[mt].c.k&&ct[mt].c.k[0].i)for(Dt=ct[mt].c.k.length,kt=0;kt<Dt;kt+=1)ct[mt].c.k[kt].s&&(ct[mt].c.k[kt].s[0]/=255,ct[mt].c.k[kt].s[1]/=255,ct[mt].c.k[kt].s[2]/=255,ct[mt].c.k[kt].s[3]/=255),ct[mt].c.k[kt].e&&(ct[mt].c.k[kt].e[0]/=255,ct[mt].c.k[kt].e[1]/=255,ct[mt].c.k[kt].e[2]/=255,ct[mt].c.k[kt].e[3]/=255);else ct[mt].c.k[0]/=255,ct[mt].c.k[1]/=255,ct[mt].c.k[2]/=255,ct[mt].c.k[3]/=255}function St(ct){var mt,Rt=ct.length;for(mt=0;mt<Rt;mt+=1)ct[mt].ty===4&&gt(ct[mt].shapes)}return function(ct){if(_t(Et,ct.v)&&(St(ct.layers),ct.assets)){var mt,Rt=ct.assets.length;for(mt=0;mt<Rt;mt+=1)ct.assets[mt].layers&&St(ct.assets[mt].layers)}}}(),It=function(){var Et=[4,4,18];function gt(ct){var mt,Rt=ct.length,kt,Dt;for(mt=Rt-1;mt>=0;mt-=1)if(ct[mt].ty==="sh")if(ct[mt].ks.k.i)ct[mt].ks.k.c=ct[mt].closed;else for(Dt=ct[mt].ks.k.length,kt=0;kt<Dt;kt+=1)ct[mt].ks.k[kt].s&&(ct[mt].ks.k[kt].s[0].c=ct[mt].closed),ct[mt].ks.k[kt].e&&(ct[mt].ks.k[kt].e[0].c=ct[mt].closed);else ct[mt].ty==="gr"&&gt(ct[mt].it)}function St(ct){var mt,Rt,kt=ct.length,Dt,bt,Ht,Pt;for(Rt=0;Rt<kt;Rt+=1){if(mt=ct[Rt],mt.hasMask){var Lt=mt.masksProperties;for(bt=Lt.length,Dt=0;Dt<bt;Dt+=1)if(Lt[Dt].pt.k.i)Lt[Dt].pt.k.c=Lt[Dt].cl;else for(Pt=Lt[Dt].pt.k.length,Ht=0;Ht<Pt;Ht+=1)Lt[Dt].pt.k[Ht].s&&(Lt[Dt].pt.k[Ht].s[0].c=Lt[Dt].cl),Lt[Dt].pt.k[Ht].e&&(Lt[Dt].pt.k[Ht].e[0].c=Lt[Dt].cl)}mt.ty===4&&gt(mt.shapes)}}return function(ct){if(_t(Et,ct.v)&&(St(ct.layers),ct.assets)){var mt,Rt=ct.assets.length;for(mt=0;mt<Rt;mt+=1)ct.assets[mt].layers&&St(ct.assets[mt].layers)}}}();function Nt(Et){Et.__complete||(Tt(Et),At(Et),xt(Et),wt(Et),It(Et),vt(Et.layers,Et.assets),ut(Et.chars,Et.assets),Et.__complete=!0)}function Ct(Et){Et.t.a.length===0&&"m"in Et.t.p}var jt={};return jt.completeData=Nt,jt.checkColors=Tt,jt.checkChars=xt,jt.checkPathProperties=wt,jt.checkShapes=It,jt.completeLayers=vt,jt}if(_e.dataManager||(_e.dataManager=ht()),_e.assetLoader||(_e.assetLoader=function(){function vt(ot){var nt=ot.getResponseHeader("content-type");return nt&&ot.responseType==="json"&&nt.indexOf("json")!==-1||ot.response&&_typeof$5(ot.response)==="object"?ot.response:ot.response&&typeof ot.response=="string"?JSON.parse(ot.response):ot.responseText?JSON.parse(ot.responseText):null}function ut(ot,nt,dt,yt){var _t,At=new XMLHttpRequest;try{At.responseType="json"}catch{}At.onreadystatechange=function(){if(At.readyState===4)if(At.status===200)_t=vt(At),dt(_t);else try{_t=vt(At),dt(_t)}catch(xt){yt&&yt(xt)}};try{At.open(["G","E","T"].join(""),ot,!0)}catch{At.open(["G","E","T"].join(""),nt+"/"+ot,!0)}At.send()}return{load:ut}}()),ft.data.type==="loadAnimation")_e.assetLoader.load(ft.data.path,ft.data.fullPath,function(vt){_e.dataManager.completeData(vt),_e.postMessage({id:ft.data.id,payload:vt,status:"success"})},function(){_e.postMessage({id:ft.data.id,status:"error"})});else if(ft.data.type==="complete"){var pt=ft.data.animation;_e.dataManager.completeData(pt),_e.postMessage({id:ft.data.id,payload:pt,status:"success"})}else ft.data.type==="loadData"&&_e.assetLoader.load(ft.data.path,ft.data.fullPath,function(vt){_e.postMessage({id:ft.data.id,payload:vt,status:"success"})},function(){_e.postMessage({id:ft.data.id,status:"error"})})}),b.onmessage=function(at){var ft=at.data,ht=ft.id,pt=o[ht];o[ht]=null,ft.status==="success"?pt.onComplete(ft.payload):pt.onError&&pt.onError()})}function rt(at,ft){a+=1;var ht="processId_"+a;return o[ht]={onComplete:at,onError:ft},ht}function st(at,ft,ht){tt();var pt=rt(ft,ht);b.postMessage({type:"loadAnimation",path:at,fullPath:window.location.origin+window.location.pathname,id:pt})}function it(at,ft,ht){tt();var pt=rt(ft,ht);b.postMessage({type:"loadData",path:at,fullPath:window.location.origin+window.location.pathname,id:pt})}function lt(at,ft,ht){tt();var pt=rt(ft,ht);b.postMessage({type:"complete",animation:at,id:pt})}return{loadAnimation:st,loadData:it,completeAnimation:lt}}(),ImagePreloader=function(){var a=function(){var ut=createTag("canvas");ut.width=1,ut.height=1;var ot=ut.getContext("2d");return ot.fillStyle="rgba(0,0,0,0)",ot.fillRect(0,0,1,1),ut}();function o(){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 b(ut,ot,nt){var dt="";if(ut.e)dt=ut.p;else if(ot){var yt=ut.p;yt.indexOf("images/")!==-1&&(yt=yt.split("/")[1]),dt=ot+yt}else dt=nt,dt+=ut.u?ut.u:"",dt+=ut.p;return dt}function $(ut){var ot=0,nt=setInterval((function(){var dt=ut.getBBox();(dt.width||ot>500)&&(this._imageLoaded(),clearInterval(nt)),ot+=1}).bind(this),50)}function _e(ut){var ot=b(ut,this.assetsPath,this.path),nt=createNS("image");isSafari?this.testImageLoaded(nt):nt.addEventListener("load",this._imageLoaded,!1),nt.addEventListener("error",(function(){dt.img=a,this._imageLoaded()}).bind(this),!1),nt.setAttributeNS("http://www.w3.org/1999/xlink","href",ot),this._elementHelper.append?this._elementHelper.append(nt):this._elementHelper.appendChild(nt);var dt={img:nt,assetData:ut};return dt}function et(ut){var ot=b(ut,this.assetsPath,this.path),nt=createTag("img");nt.crossOrigin="anonymous",nt.addEventListener("load",this._imageLoaded,!1),nt.addEventListener("error",(function(){dt.img=a,this._imageLoaded()}).bind(this),!1),nt.src=ot;var dt={img:nt,assetData:ut};return dt}function tt(ut){var ot={assetData:ut},nt=b(ut,this.assetsPath,this.path);return dataManager.loadData(nt,(function(dt){ot.img=dt,this._footageLoaded()}).bind(this),(function(){ot.img={},this._footageLoaded()}).bind(this)),ot}function rt(ut,ot){this.imagesLoadedCb=ot;var nt,dt=ut.length;for(nt=0;nt<dt;nt+=1)ut[nt].layers||(!ut[nt].t||ut[nt].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(ut[nt]))):ut[nt].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(ut[nt]))))}function st(ut){this.path=ut||""}function it(ut){this.assetsPath=ut||""}function lt(ut){for(var ot=0,nt=this.images.length;ot<nt;){if(this.images[ot].assetData===ut)return this.images[ot].img;ot+=1}return null}function at(){this.imagesLoadedCb=null,this.images.length=0}function ft(){return this.totalImages===this.loadedAssets}function ht(){return this.totalFootages===this.loadedFootagesCount}function pt(ut,ot){ut==="svg"?(this._elementHelper=ot,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function vt(){this._imageLoaded=o.bind(this),this._footageLoaded=_.bind(this),this.testImageLoaded=$.bind(this),this.createFootageData=tt.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return vt.prototype={loadAssets:rt,setAssetsPath:it,setPath:st,loadedImages:ft,loadedFootages:ht,destroy:at,getAsset:lt,createImgData:et,createImageData:_e,imageLoaded:o,footageLoaded:_,setCacheType:pt},vt}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(o,_){if(this._cbs[o])for(var b=this._cbs[o],$=0;$<b.length;$+=1)b[$](_)},addEventListener:function(o,_){return this._cbs[o]||(this._cbs[o]=[]),this._cbs[o].push(_),(function(){this.removeEventListener(o,_)}).bind(this)},removeEventListener:function(o,_){if(!_)this._cbs[o]=null;else if(this._cbs[o]){for(var b=0,$=this._cbs[o].length;b<$;)this._cbs[o][b]===_&&(this._cbs[o].splice(b,1),b-=1,$-=1),b+=1;this._cbs[o].length||(this._cbs[o]=null)}}};var markerParser=function(){function a(o){for(var _=o.split(`\r
41
+ `),b={},$,_e=0,et=0;et<_.length;et+=1)$=_[et].split(":"),$.length===2&&(b[$[0]]=$[1].trim(),_e+=1);if(_e===0)throw new Error;return b}return function(o){for(var _=[],b=0;b<o.length;b+=1){var $=o[b],_e={time:$.tm,duration:$.dr};try{_e.payload=JSON.parse(o[b].cm)}catch{try{_e.payload=a(o[b].cm)}catch{_e.payload={name:o[b].cm}}}_.push(_e)}return _}}(),ProjectInterface=function(){function a(o){this.compositions.push(o)}return function(){function o(_){for(var b=0,$=this.compositions.length;b<$;){if(this.compositions[b].data&&this.compositions[b].data.nm===_)return this.compositions[b].prepareFrame&&this.compositions[b].data.xt&&this.compositions[b].prepareFrame(this.currentFrame),this.compositions[b].compInterface;b+=1}return null}return o.compositions=[],o.currentFrame=0,o.registerComposition=a,o}}(),renderers={},registerRenderer=function(o,_){renderers[o]=_};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(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_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 o="svg";a.animType?o=a.animType:a.renderer&&(o=a.renderer);var _=getRenderer(o);this.renderer=new _(this,a.rendererSettings),this.imagePreloader.setCacheType(o,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=o,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,o){o&&_typeof$4(o)!=="object"&&(o=JSON.parse(o));var _={wrapper:a,animationData:o},b=a.attributes;_.path=b.getNamedItem("data-animation-path")?b.getNamedItem("data-animation-path").value:b.getNamedItem("data-bm-path")?b.getNamedItem("data-bm-path").value:b.getNamedItem("bm-path")?b.getNamedItem("bm-path").value:"",_.animType=b.getNamedItem("data-anim-type")?b.getNamedItem("data-anim-type").value:b.getNamedItem("data-bm-type")?b.getNamedItem("data-bm-type").value:b.getNamedItem("bm-type")?b.getNamedItem("bm-type").value:b.getNamedItem("data-bm-renderer")?b.getNamedItem("data-bm-renderer").value:b.getNamedItem("bm-renderer")?b.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var $=b.getNamedItem("data-anim-loop")?b.getNamedItem("data-anim-loop").value:b.getNamedItem("data-bm-loop")?b.getNamedItem("data-bm-loop").value:b.getNamedItem("bm-loop")?b.getNamedItem("bm-loop").value:"";$==="false"?_.loop=!1:$==="true"?_.loop=!0:$!==""&&(_.loop=parseInt($,10));var _e=b.getNamedItem("data-anim-autoplay")?b.getNamedItem("data-anim-autoplay").value:b.getNamedItem("data-bm-autoplay")?b.getNamedItem("data-bm-autoplay").value:b.getNamedItem("bm-autoplay")?b.getNamedItem("bm-autoplay").value:!0;_.autoplay=_e!=="false",_.name=b.getNamedItem("data-name")?b.getNamedItem("data-name").value:b.getNamedItem("data-bm-name")?b.getNamedItem("data-bm-name").value:b.getNamedItem("bm-name")?b.getNamedItem("bm-name").value:"";var et=b.getNamedItem("data-anim-prerender")?b.getNamedItem("data-anim-prerender").value:b.getNamedItem("data-bm-prerender")?b.getNamedItem("data-bm-prerender").value:b.getNamedItem("bm-prerender")?b.getNamedItem("bm-prerender").value:"";et==="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 o=this.animationData.layers,_,b=o.length,$=a.layers,_e,et=$.length;for(_e=0;_e<et;_e+=1)for(_=0;_<b;){if(o[_].id===$[_e].id){o[_]=$[_e];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(b=a.assets.length,_=0;_<b;_+=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 o=getExpressionsPlugin();o&&o.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 o=a.shift();this.timeCompleted=o.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(o){this.triggerConfigError(o)}},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,o){var _=typeof a=="number"?a:void 0,b=typeof o=="number"?o:void 0;this.renderer.updateContainerSize(_,b)},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 o,_=0;_<this.markers.length;_+=1)if(o=this.markers[_],o.payload&&o.payload.name===a)return o;return null},AnimationItem.prototype.goToAndStop=function(a,o,_){if(!(_&&this.name!==_)){var b=Number(a);if(isNaN(b)){var $=this.getMarkerData(a);$&&this.goToAndStop($.time,!0)}else o?this.setCurrentRawFrameValue(a):this.setCurrentRawFrameValue(a*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(a,o,_){if(!(_&&this.name!==_)){var b=Number(a);if(isNaN(b)){var $=this.getMarkerData(a);$&&($.duration?this.playSegments([$.time,$.time+$.duration],!0):this.goToAndStop($.time,!0))}else this.goToAndStop(b,o,_);this.play()}},AnimationItem.prototype.advanceTime=function(a){if(!(this.isPaused===!0||this.isLoaded===!1)){var o=this.currentRawFrame+a*this.frameModifier,_=!1;o>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(o>this.totalFrames?o%this.totalFrames:0)||(_=!0,o=this.totalFrames-1):o>=this.totalFrames?(this.playCount+=1,this.checkSegments(o%this.totalFrames)||(this.setCurrentRawFrameValue(o%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(o):o<0?this.checkSegments(o%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+o%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(_=!0,o=0)):this.setCurrentRawFrameValue(o),_&&(this.setCurrentRawFrameValue(o),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(a,o){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-o)):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+o)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(a,o){var _=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<a?_=a:this.currentRawFrame+this.firstFrame>o&&(_=o-a)),this.firstFrame=a,this.totalFrames=o-a,this.timeCompleted=this.totalFrames,_!==-1&&this.goToAndStop(_,!0)},AnimationItem.prototype.playSegments=function(a,o){if(o&&(this.segments.length=0),_typeof$4(a[0])==="object"){var _,b=a.length;for(_=0;_<b;_+=1)this.segments.push(a[_])}else this.segments.push(a);this.segments.length&&o&&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,o){o&&this.name!==o||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 o="";if(a.e)o=a.p;else if(this.assetsPath){var _=a.p;_.indexOf("images/")!==-1&&(_=_.split("/")[1]),o=this.assetsPath+_}else o=this.path,o+=a.u?a.u:"",o+=a.p;return o},AnimationItem.prototype.getAssetData=function(a){for(var o=0,_=this.assets.length;o<_;){if(a===this.assets[o].id)return this.assets[o];o+=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,o,_){try{var b=this.renderer.getElementByPath(a);b.updateDocumentData(o,_)}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 o=new BMRenderFrameErrorEvent(a,this.currentFrame);this.triggerEvent("error",o),this.onError&&this.onError.call(this,o)},AnimationItem.prototype.triggerConfigError=function(a){var o=new BMConfigErrorEvent(a,this.currentFrame);this.triggerEvent("error",o),this.onError&&this.onError.call(this,o)};var animationManager=function(){var a={},o=[],_=0,b=0,$=0,_e=!0,et=!1;function tt(gt){for(var St=0,ct=gt.target;St<b;)o[St].animation===ct&&(o.splice(St,1),St-=1,b-=1,ct.isPaused||lt()),St+=1}function rt(gt,St){if(!gt)return null;for(var ct=0;ct<b;){if(o[ct].elem===gt&&o[ct].elem!==null)return o[ct].animation;ct+=1}var mt=new AnimationItem;return at(mt,gt),mt.setData(gt,St),mt}function st(){var gt,St=o.length,ct=[];for(gt=0;gt<St;gt+=1)ct.push(o[gt].animation);return ct}function it(){$+=1,Tt()}function lt(){$-=1}function at(gt,St){gt.addEventListener("destroy",tt),gt.addEventListener("_active",it),gt.addEventListener("_idle",lt),o.push({elem:St,animation:gt}),b+=1}function ft(gt){var St=new AnimationItem;return at(St,null),St.setParams(gt),St}function ht(gt,St){var ct;for(ct=0;ct<b;ct+=1)o[ct].animation.setSpeed(gt,St)}function pt(gt,St){var ct;for(ct=0;ct<b;ct+=1)o[ct].animation.setDirection(gt,St)}function vt(gt){var St;for(St=0;St<b;St+=1)o[St].animation.play(gt)}function ut(gt){var St=gt-_,ct;for(ct=0;ct<b;ct+=1)o[ct].animation.advanceTime(St);_=gt,$&&!et?window.requestAnimationFrame(ut):_e=!0}function ot(gt){_=gt,window.requestAnimationFrame(ut)}function nt(gt){var St;for(St=0;St<b;St+=1)o[St].animation.pause(gt)}function dt(gt,St,ct){var mt;for(mt=0;mt<b;mt+=1)o[mt].animation.goToAndStop(gt,St,ct)}function yt(gt){var St;for(St=0;St<b;St+=1)o[St].animation.stop(gt)}function _t(gt){var St;for(St=0;St<b;St+=1)o[St].animation.togglePause(gt)}function At(gt){var St;for(St=b-1;St>=0;St-=1)o[St].animation.destroy(gt)}function xt(gt,St,ct){var mt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Rt,kt=mt.length;for(Rt=0;Rt<kt;Rt+=1)ct&&mt[Rt].setAttribute("data-bm-type",ct),rt(mt[Rt],gt);if(St&&kt===0){ct||(ct="svg");var Dt=document.getElementsByTagName("body")[0];Dt.innerText="";var bt=createTag("div");bt.style.width="100%",bt.style.height="100%",bt.setAttribute("data-bm-type",ct),Dt.appendChild(bt),rt(bt,gt)}}function wt(){var gt;for(gt=0;gt<b;gt+=1)o[gt].animation.resize()}function Tt(){!et&&$&&_e&&(window.requestAnimationFrame(ot),_e=!1)}function It(){et=!0}function Nt(){et=!1,Tt()}function Ct(gt,St){var ct;for(ct=0;ct<b;ct+=1)o[ct].animation.setVolume(gt,St)}function jt(gt){var St;for(St=0;St<b;St+=1)o[St].animation.mute(gt)}function Et(gt){var St;for(St=0;St<b;St+=1)o[St].animation.unmute(gt)}return a.registerAnimation=rt,a.loadAnimation=ft,a.setSpeed=ht,a.setDirection=pt,a.play=vt,a.pause=nt,a.stop=yt,a.togglePause=_t,a.searchAnimations=xt,a.resize=wt,a.goToAndStop=dt,a.destroy=At,a.freeze=It,a.unfreeze=Nt,a.setVolume=Ct,a.mute=jt,a.unmute=Et,a.getRegisteredAnimations=st,a}(),BezierFactory=function(){var a={};a.getBezierEasing=_;var o={};function _(ot,nt,dt,yt,_t){var At=_t||("bez_"+ot+"_"+nt+"_"+dt+"_"+yt).replace(/\./g,"p");if(o[At])return o[At];var xt=new ut([ot,nt,dt,yt]);return o[At]=xt,xt}var b=4,$=.001,_e=1e-7,et=10,tt=11,rt=1/(tt-1),st=typeof Float32Array=="function";function it(ot,nt){return 1-3*nt+3*ot}function lt(ot,nt){return 3*nt-6*ot}function at(ot){return 3*ot}function ft(ot,nt,dt){return((it(nt,dt)*ot+lt(nt,dt))*ot+at(nt))*ot}function ht(ot,nt,dt){return 3*it(nt,dt)*ot*ot+2*lt(nt,dt)*ot+at(nt)}function pt(ot,nt,dt,yt,_t){var At,xt,wt=0;do xt=nt+(dt-nt)/2,At=ft(xt,yt,_t)-ot,At>0?dt=xt:nt=xt;while(Math.abs(At)>_e&&++wt<et);return xt}function vt(ot,nt,dt,yt){for(var _t=0;_t<b;++_t){var At=ht(nt,dt,yt);if(At===0)return nt;var xt=ft(nt,dt,yt)-ot;nt-=xt/At}return nt}function ut(ot){this._p=ot,this._mSampleValues=st?new Float32Array(tt):new Array(tt),this._precomputed=!1,this.get=this.get.bind(this)}return ut.prototype={get:function(nt){var dt=this._p[0],yt=this._p[1],_t=this._p[2],At=this._p[3];return this._precomputed||this._precompute(),dt===yt&&_t===At?nt:nt===0?0:nt===1?1:ft(this._getTForX(nt),yt,At)},_precompute:function(){var nt=this._p[0],dt=this._p[1],yt=this._p[2],_t=this._p[3];this._precomputed=!0,(nt!==dt||yt!==_t)&&this._calcSampleValues()},_calcSampleValues:function(){for(var nt=this._p[0],dt=this._p[2],yt=0;yt<tt;++yt)this._mSampleValues[yt]=ft(yt*rt,nt,dt)},_getTForX:function(nt){for(var dt=this._p[0],yt=this._p[2],_t=this._mSampleValues,At=0,xt=1,wt=tt-1;xt!==wt&&_t[xt]<=nt;++xt)At+=rt;--xt;var Tt=(nt-_t[xt])/(_t[xt+1]-_t[xt]),It=At+Tt*rt,Nt=ht(It,dt,yt);return Nt>=$?vt(nt,It,dt,yt):Nt===0?It:pt(nt,At,At+rt,dt,yt)}},a}(),pooling=function(){function a(o){return o.concat(createSizedArray(o.length))}return{double:a}}(),poolFactory=function(){return function(a,o,_){var b=0,$=a,_e=createSizedArray($),et={newElement:tt,release:rt};function tt(){var st;return b?(b-=1,st=_e[b]):st=o(),st}function rt(st){b===$&&(_e=pooling.double(_e),$*=2),_&&_(st),_e[b]=st,b+=1}return et}}(),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 o(_){var b,$=_.lengths.length;for(b=0;b<$;b+=1)bezierLengthPool.release(_.lengths[b]);_.lengths.length=0}return poolFactory(8,a,o)}();function bezFunction(){var a=Math;function o(at,ft,ht,pt,vt,ut){var ot=at*pt+ft*vt+ht*ut-vt*pt-ut*at-ht*ft;return ot>-.001&&ot<.001}function _(at,ft,ht,pt,vt,ut,ot,nt,dt){if(ht===0&&ut===0&&dt===0)return o(at,ft,pt,vt,ot,nt);var yt=a.sqrt(a.pow(pt-at,2)+a.pow(vt-ft,2)+a.pow(ut-ht,2)),_t=a.sqrt(a.pow(ot-at,2)+a.pow(nt-ft,2)+a.pow(dt-ht,2)),At=a.sqrt(a.pow(ot-pt,2)+a.pow(nt-vt,2)+a.pow(dt-ut,2)),xt;return yt>_t?yt>At?xt=yt-_t-At:xt=At-_t-yt:At>_t?xt=At-_t-yt:xt=_t-yt-At,xt>-1e-4&&xt<1e-4}var b=function(){return function(at,ft,ht,pt){var vt=getDefaultCurveSegments(),ut,ot,nt,dt,yt,_t=0,At,xt=[],wt=[],Tt=bezierLengthPool.newElement();for(nt=ht.length,ut=0;ut<vt;ut+=1){for(yt=ut/(vt-1),At=0,ot=0;ot<nt;ot+=1)dt=bmPow(1-yt,3)*at[ot]+3*bmPow(1-yt,2)*yt*ht[ot]+3*(1-yt)*bmPow(yt,2)*pt[ot]+bmPow(yt,3)*ft[ot],xt[ot]=dt,wt[ot]!==null&&(At+=bmPow(xt[ot]-wt[ot],2)),wt[ot]=xt[ot];At&&(At=bmSqrt(At),_t+=At),Tt.percents[ut]=yt,Tt.lengths[ut]=_t}return Tt.addedLength=_t,Tt}}();function $(at){var ft=segmentsLengthPool.newElement(),ht=at.c,pt=at.v,vt=at.o,ut=at.i,ot,nt=at._length,dt=ft.lengths,yt=0;for(ot=0;ot<nt-1;ot+=1)dt[ot]=b(pt[ot],pt[ot+1],vt[ot],ut[ot+1]),yt+=dt[ot].addedLength;return ht&&nt&&(dt[ot]=b(pt[ot],pt[0],vt[ot],ut[0]),yt+=dt[ot].addedLength),ft.totalLength=yt,ft}function _e(at){this.segmentLength=0,this.points=new Array(at)}function et(at,ft){this.partialLength=at,this.point=ft}var tt=function(){var at={};return function(ft,ht,pt,vt){var ut=(ft[0]+"_"+ft[1]+"_"+ht[0]+"_"+ht[1]+"_"+pt[0]+"_"+pt[1]+"_"+vt[0]+"_"+vt[1]).replace(/\./g,"p");if(!at[ut]){var ot=getDefaultCurveSegments(),nt,dt,yt,_t,At,xt=0,wt,Tt,It=null;ft.length===2&&(ft[0]!==ht[0]||ft[1]!==ht[1])&&o(ft[0],ft[1],ht[0],ht[1],ft[0]+pt[0],ft[1]+pt[1])&&o(ft[0],ft[1],ht[0],ht[1],ht[0]+vt[0],ht[1]+vt[1])&&(ot=2);var Nt=new _e(ot);for(yt=pt.length,nt=0;nt<ot;nt+=1){for(Tt=createSizedArray(yt),At=nt/(ot-1),wt=0,dt=0;dt<yt;dt+=1)_t=bmPow(1-At,3)*ft[dt]+3*bmPow(1-At,2)*At*(ft[dt]+pt[dt])+3*(1-At)*bmPow(At,2)*(ht[dt]+vt[dt])+bmPow(At,3)*ht[dt],Tt[dt]=_t,It!==null&&(wt+=bmPow(Tt[dt]-It[dt],2));wt=bmSqrt(wt),xt+=wt,Nt.points[nt]=new et(wt,Tt),It=Tt}Nt.segmentLength=xt,at[ut]=Nt}return at[ut]}}();function rt(at,ft){var ht=ft.percents,pt=ft.lengths,vt=ht.length,ut=bmFloor((vt-1)*at),ot=at*ft.addedLength,nt=0;if(ut===vt-1||ut===0||ot===pt[ut])return ht[ut];for(var dt=pt[ut]>ot?-1:1,yt=!0;yt;)if(pt[ut]<=ot&&pt[ut+1]>ot?(nt=(ot-pt[ut])/(pt[ut+1]-pt[ut]),yt=!1):ut+=dt,ut<0||ut>=vt-1){if(ut===vt-1)return ht[ut];yt=!1}return ht[ut]+(ht[ut+1]-ht[ut])*nt}function st(at,ft,ht,pt,vt,ut){var ot=rt(vt,ut),nt=1-ot,dt=a.round((nt*nt*nt*at[0]+(ot*nt*nt+nt*ot*nt+nt*nt*ot)*ht[0]+(ot*ot*nt+nt*ot*ot+ot*nt*ot)*pt[0]+ot*ot*ot*ft[0])*1e3)/1e3,yt=a.round((nt*nt*nt*at[1]+(ot*nt*nt+nt*ot*nt+nt*nt*ot)*ht[1]+(ot*ot*nt+nt*ot*ot+ot*nt*ot)*pt[1]+ot*ot*ot*ft[1])*1e3)/1e3;return[dt,yt]}var it=createTypedArray("float32",8);function lt(at,ft,ht,pt,vt,ut,ot){vt<0?vt=0:vt>1&&(vt=1);var nt=rt(vt,ot);ut=ut>1?1:ut;var dt=rt(ut,ot),yt,_t=at.length,At=1-nt,xt=1-dt,wt=At*At*At,Tt=nt*At*At*3,It=nt*nt*At*3,Nt=nt*nt*nt,Ct=At*At*xt,jt=nt*At*xt+At*nt*xt+At*At*dt,Et=nt*nt*xt+At*nt*dt+nt*At*dt,gt=nt*nt*dt,St=At*xt*xt,ct=nt*xt*xt+At*dt*xt+At*xt*dt,mt=nt*dt*xt+At*dt*dt+nt*xt*dt,Rt=nt*dt*dt,kt=xt*xt*xt,Dt=dt*xt*xt+xt*dt*xt+xt*xt*dt,bt=dt*dt*xt+xt*dt*dt+dt*xt*dt,Ht=dt*dt*dt;for(yt=0;yt<_t;yt+=1)it[yt*4]=a.round((wt*at[yt]+Tt*ht[yt]+It*pt[yt]+Nt*ft[yt])*1e3)/1e3,it[yt*4+1]=a.round((Ct*at[yt]+jt*ht[yt]+Et*pt[yt]+gt*ft[yt])*1e3)/1e3,it[yt*4+2]=a.round((St*at[yt]+ct*ht[yt]+mt*pt[yt]+Rt*ft[yt])*1e3)/1e3,it[yt*4+3]=a.round((kt*at[yt]+Dt*ht[yt]+bt*pt[yt]+Ht*ft[yt])*1e3)/1e3;return it}return{getSegmentsLength:$,getNewSegment:lt,getPointInSegment:st,buildBezierData:tt,pointOnLine2D:o,pointOnLine3D:_}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(a,o){var _=this.offsetTime,b;this.propType==="multidimensional"&&(b=createTypedArray("float32",this.pv.length));for(var $=o.lastIndex,_e=$,et=this.keyframes.length-1,tt=!0,rt,st,it;tt;){if(rt=this.keyframes[_e],st=this.keyframes[_e+1],_e===et-1&&a>=st.t-_){rt.h&&(rt=st),$=0;break}if(st.t-_>a){$=_e;break}_e<et-1?_e+=1:($=0,tt=!1)}it=this.keyframesMetadata[_e]||{};var lt,at,ft,ht,pt,vt,ut=st.t-_,ot=rt.t-_,nt;if(rt.to){it.bezierData||(it.bezierData=bez.buildBezierData(rt.s,st.s||rt.e,rt.to,rt.ti));var dt=it.bezierData;if(a>=ut||a<ot){var yt=a>=ut?dt.points.length-1:0;for(at=dt.points[yt].point.length,lt=0;lt<at;lt+=1)b[lt]=dt.points[yt].point[lt]}else{it.__fnct?vt=it.__fnct:(vt=BezierFactory.getBezierEasing(rt.o.x,rt.o.y,rt.i.x,rt.i.y,rt.n).get,it.__fnct=vt),ft=vt((a-ot)/(ut-ot));var _t=dt.segmentLength*ft,At,xt=o.lastFrame<a&&o._lastKeyframeIndex===_e?o._lastAddedLength:0;for(pt=o.lastFrame<a&&o._lastKeyframeIndex===_e?o._lastPoint:0,tt=!0,ht=dt.points.length;tt;){if(xt+=dt.points[pt].partialLength,_t===0||ft===0||pt===dt.points.length-1){for(at=dt.points[pt].point.length,lt=0;lt<at;lt+=1)b[lt]=dt.points[pt].point[lt];break}else if(_t>=xt&&_t<xt+dt.points[pt+1].partialLength){for(At=(_t-xt)/dt.points[pt+1].partialLength,at=dt.points[pt].point.length,lt=0;lt<at;lt+=1)b[lt]=dt.points[pt].point[lt]+(dt.points[pt+1].point[lt]-dt.points[pt].point[lt])*At;break}pt<ht-1?pt+=1:tt=!1}o._lastPoint=pt,o._lastAddedLength=xt-dt.points[pt].partialLength,o._lastKeyframeIndex=_e}}else{var wt,Tt,It,Nt,Ct;if(et=rt.s.length,nt=st.s||rt.e,this.sh&&rt.h!==1)if(a>=ut)b[0]=nt[0],b[1]=nt[1],b[2]=nt[2];else if(a<=ot)b[0]=rt.s[0],b[1]=rt.s[1],b[2]=rt.s[2];else{var jt=createQuaternion(rt.s),Et=createQuaternion(nt),gt=(a-ot)/(ut-ot);quaternionToEuler(b,slerp(jt,Et,gt))}else for(_e=0;_e<et;_e+=1)rt.h!==1&&(a>=ut?ft=1:a<ot?ft=0:(rt.o.x.constructor===Array?(it.__fnct||(it.__fnct=[]),it.__fnct[_e]?vt=it.__fnct[_e]:(wt=rt.o.x[_e]===void 0?rt.o.x[0]:rt.o.x[_e],Tt=rt.o.y[_e]===void 0?rt.o.y[0]:rt.o.y[_e],It=rt.i.x[_e]===void 0?rt.i.x[0]:rt.i.x[_e],Nt=rt.i.y[_e]===void 0?rt.i.y[0]:rt.i.y[_e],vt=BezierFactory.getBezierEasing(wt,Tt,It,Nt).get,it.__fnct[_e]=vt)):it.__fnct?vt=it.__fnct:(wt=rt.o.x,Tt=rt.o.y,It=rt.i.x,Nt=rt.i.y,vt=BezierFactory.getBezierEasing(wt,Tt,It,Nt).get,rt.keyframeMetadata=vt),ft=vt((a-ot)/(ut-ot)))),nt=st.s||rt.e,Ct=rt.h===1?rt.s[_e]:rt.s[_e]+(nt[_e]-rt.s[_e])*ft,this.propType==="multidimensional"?b[_e]=Ct:b=Ct}return o.lastIndex=$,b}function slerp(a,o,_){var b=[],$=a[0],_e=a[1],et=a[2],tt=a[3],rt=o[0],st=o[1],it=o[2],lt=o[3],at,ft,ht,pt,vt;return ft=$*rt+_e*st+et*it+tt*lt,ft<0&&(ft=-ft,rt=-rt,st=-st,it=-it,lt=-lt),1-ft>1e-6?(at=Math.acos(ft),ht=Math.sin(at),pt=Math.sin((1-_)*at)/ht,vt=Math.sin(_*at)/ht):(pt=1-_,vt=_),b[0]=pt*$+vt*rt,b[1]=pt*_e+vt*st,b[2]=pt*et+vt*it,b[3]=pt*tt+vt*lt,b}function quaternionToEuler(a,o){var _=o[0],b=o[1],$=o[2],_e=o[3],et=Math.atan2(2*b*_e-2*_*$,1-2*b*b-2*$*$),tt=Math.asin(2*_*b+2*$*_e),rt=Math.atan2(2*_*_e-2*b*$,1-2*_*_-2*$*$);a[0]=et/degToRads,a[1]=tt/degToRads,a[2]=rt/degToRads}function createQuaternion(a){var o=a[0]*degToRads,_=a[1]*degToRads,b=a[2]*degToRads,$=Math.cos(o/2),_e=Math.cos(_/2),et=Math.cos(b/2),tt=Math.sin(o/2),rt=Math.sin(_/2),st=Math.sin(b/2),it=$*_e*et-tt*rt*st,lt=tt*rt*et+$*_e*st,at=tt*_e*et+$*rt*st,ft=$*rt*et-tt*_e*st;return[lt,at,ft,it]}function getValueAtCurrentTime(){var a=this.comp.renderedFrame-this.offsetTime,o=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<o&&a<o))){this._caching.lastFrame>=a&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var b=this.interpolateValue(a,this._caching);this.pv=b}return this._caching.lastFrame=a,this.pv}function setVValue(a){var o;if(this.propType==="unidimensional")o=a*this.mult,mathAbs(this.v-o)>1e-5&&(this.v=o,this._mdf=!0);else for(var _=0,b=this.v.length;_<b;)o=a[_]*this.mult,mathAbs(this.v[_]-o)>1e-5&&(this.v[_]=o,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,o=this.effectsSequence.length,_=this.kf?this.pv:this.data.k;for(a=0;a<o;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,o,_,b){this.propType="unidimensional",this.mult=_||1,this.data=o,this.v=_?o.k*_:o.k,this.pv=o.k,this._mdf=!1,this.elem=a,this.container=b,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,o,_,b){this.propType="multidimensional",this.mult=_||1,this.data=o,this._mdf=!1,this.elem=a,this.container=b,this.comp=a.comp,this.k=!1,this.kf=!1,this.frameId=-1;var $,_e=o.k.length;for(this.v=createTypedArray("float32",_e),this.pv=createTypedArray("float32",_e),this.vel=createTypedArray("float32",_e),$=0;$<_e;$+=1)this.v[$]=o.k[$]*this.mult,this.pv[$]=o.k[$];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(a,o,_,b){this.propType="unidimensional",this.keyframes=o.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=o,this.mult=_||1,this.elem=a,this.container=b,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,o,_,b){this.propType="multidimensional";var $,_e=o.k.length,et,tt,rt,st;for($=0;$<_e-1;$+=1)o.k[$].to&&o.k[$].s&&o.k[$+1]&&o.k[$+1].s&&(et=o.k[$].s,tt=o.k[$+1].s,rt=o.k[$].to,st=o.k[$].ti,(et.length===2&&!(et[0]===tt[0]&&et[1]===tt[1])&&bez.pointOnLine2D(et[0],et[1],tt[0],tt[1],et[0]+rt[0],et[1]+rt[1])&&bez.pointOnLine2D(et[0],et[1],tt[0],tt[1],tt[0]+st[0],tt[1]+st[1])||et.length===3&&!(et[0]===tt[0]&&et[1]===tt[1]&&et[2]===tt[2])&&bez.pointOnLine3D(et[0],et[1],et[2],tt[0],tt[1],tt[2],et[0]+rt[0],et[1]+rt[1],et[2]+rt[2])&&bez.pointOnLine3D(et[0],et[1],et[2],tt[0],tt[1],tt[2],tt[0]+st[0],tt[1]+st[1],tt[2]+st[2]))&&(o.k[$].to=null,o.k[$].ti=null),et[0]===tt[0]&&et[1]===tt[1]&&rt[0]===0&&rt[1]===0&&st[0]===0&&st[1]===0&&(et.length===2||et[2]===tt[2]&&rt[2]===0&&st[2]===0)&&(o.k[$].to=null,o.k[$].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=o,this.keyframes=o.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=b,this.comp=a.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var it=o.k[0].s.length;for(this.v=createTypedArray("float32",it),this.pv=createTypedArray("float32",it),$=0;$<it;$+=1)this.v[$]=initFrame,this.pv[$]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",it)},this.addEffect=addEffect}var PropertyFactory=function(){function a(_,b,$,_e,et){b.sid&&(b=_.globalData.slotManager.getProp(b));var tt;if(!b.k.length)tt=new ValueProperty(_,b,_e,et);else if(typeof b.k[0]=="number")tt=new MultiDimensionalProperty(_,b,_e,et);else switch($){case 0:tt=new KeyframedValueProperty(_,b,_e,et);break;case 1:tt=new KeyframedMultidimensionalProperty(_,b,_e,et);break}return tt.effectsSequence.length&&et.addDynamicProperty(tt),tt}var o={getProp:a};return o}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(o){this.dynamicProperties.indexOf(o)===-1&&(this.dynamicProperties.push(o),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var o,_=this.dynamicProperties.length;for(o=0;o<_;o+=1)this.dynamicProperties[o].getValue(),this.dynamicProperties[o]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(o){this.container=o,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,o){this.c=a,this.setLength(o);for(var _=0;_<o;)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,o,_,b,$){var _e;switch(this._length=Math.max(this._length,b+1),this._length>=this._maxLength&&this.doubleArrayLength(),_){case"v":_e=this.v;break;case"i":_e=this.i;break;case"o":_e=this.o;break;default:_e=[];break}(!_e[b]||_e[b]&&!$)&&(_e[b]=pointPool.newElement()),_e[b][0]=a,_e[b][1]=o},ShapePath.prototype.setTripleAt=function(a,o,_,b,$,_e,et,tt){this.setXYAt(a,o,"v",et,tt),this.setXYAt(_,b,"o",et,tt),this.setXYAt($,_e,"i",et,tt)},ShapePath.prototype.reverse=function(){var a=new ShapePath;a.setPathData(this.c,this._length);var o=this.v,_=this.o,b=this.i,$=0;this.c&&(a.setTripleAt(o[0][0],o[0][1],b[0][0],b[0][1],_[0][0],_[0][1],0,!1),$=1);var _e=this._length-1,et=this._length,tt;for(tt=$;tt<et;tt+=1)a.setTripleAt(o[_e][0],o[_e][1],b[_e][0],b[_e][1],_[_e][0],_[_e][1],tt,!1),_e-=1;return a},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function a(){return new ShapePath}function o($){var _e=$._length,et;for(et=0;et<_e;et+=1)pointPool.release($.v[et]),pointPool.release($.i[et]),pointPool.release($.o[et]),$.v[et]=null,$.i[et]=null,$.o[et]=null;$._length=0,$.c=!1}function _($){var _e=b.newElement(),et,tt=$._length===void 0?$.v.length:$._length;for(_e.setLength(tt),_e.c=$.c,et=0;et<tt;et+=1)_e.setTripleAt($.v[et][0],$.v[et][1],$.o[et][0],$.o[et][1],$.i[et][0],$.i[et][1],et);return _e}var b=poolFactory(4,a,o);return b.clone=_,b}();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:$,release:_e},o=0,_=4,b=createSizedArray(_);function $(){var et;return o?(o-=1,et=b[o]):et=new ShapeCollection,et}function _e(et){var tt,rt=et._length;for(tt=0;tt<rt;tt+=1)shapePool.release(et.shapes[tt]);et._length=0,o===_&&(b=pooling.double(b),_*=2),b[o]=et,o+=1}return a}(),ShapePropertyFactory=function(){var a=-999999;function o(ut,ot,nt){var dt=nt.lastIndex,yt,_t,At,xt,wt,Tt,It,Nt,Ct,jt=this.keyframes;if(ut<jt[0].t-this.offsetTime)yt=jt[0].s[0],At=!0,dt=0;else if(ut>=jt[jt.length-1].t-this.offsetTime)yt=jt[jt.length-1].s?jt[jt.length-1].s[0]:jt[jt.length-2].e[0],At=!0;else{for(var Et=dt,gt=jt.length-1,St=!0,ct,mt,Rt;St&&(ct=jt[Et],mt=jt[Et+1],!(mt.t-this.offsetTime>ut));)Et<gt-1?Et+=1:St=!1;if(Rt=this.keyframesMetadata[Et]||{},At=ct.h===1,dt=Et,!At){if(ut>=mt.t-this.offsetTime)Nt=1;else if(ut<ct.t-this.offsetTime)Nt=0;else{var kt;Rt.__fnct?kt=Rt.__fnct:(kt=BezierFactory.getBezierEasing(ct.o.x,ct.o.y,ct.i.x,ct.i.y).get,Rt.__fnct=kt),Nt=kt((ut-(ct.t-this.offsetTime))/(mt.t-this.offsetTime-(ct.t-this.offsetTime)))}_t=mt.s?mt.s[0]:ct.e[0]}yt=ct.s[0]}for(Tt=ot._length,It=yt.i[0].length,nt.lastIndex=dt,xt=0;xt<Tt;xt+=1)for(wt=0;wt<It;wt+=1)Ct=At?yt.i[xt][wt]:yt.i[xt][wt]+(_t.i[xt][wt]-yt.i[xt][wt])*Nt,ot.i[xt][wt]=Ct,Ct=At?yt.o[xt][wt]:yt.o[xt][wt]+(_t.o[xt][wt]-yt.o[xt][wt])*Nt,ot.o[xt][wt]=Ct,Ct=At?yt.v[xt][wt]:yt.v[xt][wt]+(_t.v[xt][wt]-yt.v[xt][wt])*Nt,ot.v[xt][wt]=Ct}function _(){var ut=this.comp.renderedFrame-this.offsetTime,ot=this.keyframes[0].t-this.offsetTime,nt=this.keyframes[this.keyframes.length-1].t-this.offsetTime,dt=this._caching.lastFrame;return dt!==a&&(dt<ot&&ut<ot||dt>nt&&ut>nt)||(this._caching.lastIndex=dt<ut?this._caching.lastIndex:0,this.interpolateShape(ut,this.pv,this._caching)),this._caching.lastFrame=ut,this.pv}function b(){this.paths=this.localShapeCollection}function $(ut,ot){if(ut._length!==ot._length||ut.c!==ot.c)return!1;var nt,dt=ut._length;for(nt=0;nt<dt;nt+=1)if(ut.v[nt][0]!==ot.v[nt][0]||ut.v[nt][1]!==ot.v[nt][1]||ut.o[nt][0]!==ot.o[nt][0]||ut.o[nt][1]!==ot.o[nt][1]||ut.i[nt][0]!==ot.i[nt][0]||ut.i[nt][1]!==ot.i[nt][1])return!1;return!0}function _e(ut){$(this.v,ut)||(this.v=shapePool.clone(ut),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function et(){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 ut;this.kf?ut=this.pv:this.data.ks?ut=this.data.ks.k:ut=this.data.pt.k;var ot,nt=this.effectsSequence.length;for(ot=0;ot<nt;ot+=1)ut=this.effectsSequence[ot](ut);this.setVValue(ut),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function tt(ut,ot,nt){this.propType="shape",this.comp=ut.comp,this.container=ut,this.elem=ut,this.data=ot,this.k=!1,this.kf=!1,this._mdf=!1;var dt=nt===3?ot.pt.k:ot.ks.k;this.v=shapePool.clone(dt),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=b,this.effectsSequence=[]}function rt(ut){this.effectsSequence.push(ut),this.container.addDynamicProperty(this)}tt.prototype.interpolateShape=o,tt.prototype.getValue=et,tt.prototype.setVValue=_e,tt.prototype.addEffect=rt;function st(ut,ot,nt){this.propType="shape",this.comp=ut.comp,this.elem=ut,this.container=ut,this.offsetTime=ut.data.st,this.keyframes=nt===3?ot.pt.k:ot.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var dt=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,dt),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=a,this.reset=b,this._caching={lastFrame:a,lastIndex:0},this.effectsSequence=[_.bind(this)]}st.prototype.getValue=et,st.prototype.interpolateShape=o,st.prototype.setVValue=_e,st.prototype.addEffect=rt;var it=function(){var ut=roundCorner;function ot(nt,dt){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=dt.d,this.elem=nt,this.comp=nt.comp,this.frameId=-1,this.initDynamicPropertyContainer(nt),this.p=PropertyFactory.getProp(nt,dt.p,1,0,this),this.s=PropertyFactory.getProp(nt,dt.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return ot.prototype={reset:b,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var dt=this.p.v[0],yt=this.p.v[1],_t=this.s.v[0]/2,At=this.s.v[1]/2,xt=this.d!==3,wt=this.v;wt.v[0][0]=dt,wt.v[0][1]=yt-At,wt.v[1][0]=xt?dt+_t:dt-_t,wt.v[1][1]=yt,wt.v[2][0]=dt,wt.v[2][1]=yt+At,wt.v[3][0]=xt?dt-_t:dt+_t,wt.v[3][1]=yt,wt.i[0][0]=xt?dt-_t*ut:dt+_t*ut,wt.i[0][1]=yt-At,wt.i[1][0]=xt?dt+_t:dt-_t,wt.i[1][1]=yt-At*ut,wt.i[2][0]=xt?dt+_t*ut:dt-_t*ut,wt.i[2][1]=yt+At,wt.i[3][0]=xt?dt-_t:dt+_t,wt.i[3][1]=yt+At*ut,wt.o[0][0]=xt?dt+_t*ut:dt-_t*ut,wt.o[0][1]=yt-At,wt.o[1][0]=xt?dt+_t:dt-_t,wt.o[1][1]=yt+At*ut,wt.o[2][0]=xt?dt-_t*ut:dt+_t*ut,wt.o[2][1]=yt+At,wt.o[3][0]=xt?dt-_t:dt+_t,wt.o[3][1]=yt-At*ut}},extendPrototype([DynamicPropertyContainer],ot),ot}(),lt=function(){function ut(ot,nt){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=ot,this.comp=ot.comp,this.data=nt,this.frameId=-1,this.d=nt.d,this.initDynamicPropertyContainer(ot),nt.sy===1?(this.ir=PropertyFactory.getProp(ot,nt.ir,0,0,this),this.is=PropertyFactory.getProp(ot,nt.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(ot,nt.pt,0,0,this),this.p=PropertyFactory.getProp(ot,nt.p,1,0,this),this.r=PropertyFactory.getProp(ot,nt.r,0,degToRads,this),this.or=PropertyFactory.getProp(ot,nt.or,0,0,this),this.os=PropertyFactory.getProp(ot,nt.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 ut.prototype={reset:b,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var nt=Math.floor(this.pt.v)*2,dt=Math.PI*2/nt,yt=!0,_t=this.or.v,At=this.ir.v,xt=this.os.v,wt=this.is.v,Tt=2*Math.PI*_t/(nt*2),It=2*Math.PI*At/(nt*2),Nt,Ct,jt,Et,gt=-Math.PI/2;gt+=this.r.v;var St=this.data.d===3?-1:1;for(this.v._length=0,Nt=0;Nt<nt;Nt+=1){Ct=yt?_t:At,jt=yt?xt:wt,Et=yt?Tt:It;var ct=Ct*Math.cos(gt),mt=Ct*Math.sin(gt),Rt=ct===0&&mt===0?0:mt/Math.sqrt(ct*ct+mt*mt),kt=ct===0&&mt===0?0:-ct/Math.sqrt(ct*ct+mt*mt);ct+=+this.p.v[0],mt+=+this.p.v[1],this.v.setTripleAt(ct,mt,ct-Rt*Et*jt*St,mt-kt*Et*jt*St,ct+Rt*Et*jt*St,mt+kt*Et*jt*St,Nt,!0),yt=!yt,gt+=dt*St}},convertPolygonToPath:function(){var nt=Math.floor(this.pt.v),dt=Math.PI*2/nt,yt=this.or.v,_t=this.os.v,At=2*Math.PI*yt/(nt*4),xt,wt=-Math.PI*.5,Tt=this.data.d===3?-1:1;for(wt+=this.r.v,this.v._length=0,xt=0;xt<nt;xt+=1){var It=yt*Math.cos(wt),Nt=yt*Math.sin(wt),Ct=It===0&&Nt===0?0:Nt/Math.sqrt(It*It+Nt*Nt),jt=It===0&&Nt===0?0:-It/Math.sqrt(It*It+Nt*Nt);It+=+this.p.v[0],Nt+=+this.p.v[1],this.v.setTripleAt(It,Nt,It-Ct*At*_t*Tt,Nt-jt*At*_t*Tt,It+Ct*At*_t*Tt,Nt+jt*At*_t*Tt,xt,!0),wt+=dt*Tt}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],ut),ut}(),at=function(){function ut(ot,nt){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=ot,this.comp=ot.comp,this.frameId=-1,this.d=nt.d,this.initDynamicPropertyContainer(ot),this.p=PropertyFactory.getProp(ot,nt.p,1,0,this),this.s=PropertyFactory.getProp(ot,nt.s,1,0,this),this.r=PropertyFactory.getProp(ot,nt.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return ut.prototype={convertRectToPath:function(){var nt=this.p.v[0],dt=this.p.v[1],yt=this.s.v[0]/2,_t=this.s.v[1]/2,At=bmMin(yt,_t,this.r.v),xt=At*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(nt+yt,dt-_t+At,nt+yt,dt-_t+At,nt+yt,dt-_t+xt,0,!0),this.v.setTripleAt(nt+yt,dt+_t-At,nt+yt,dt+_t-xt,nt+yt,dt+_t-At,1,!0),At!==0?(this.v.setTripleAt(nt+yt-At,dt+_t,nt+yt-At,dt+_t,nt+yt-xt,dt+_t,2,!0),this.v.setTripleAt(nt-yt+At,dt+_t,nt-yt+xt,dt+_t,nt-yt+At,dt+_t,3,!0),this.v.setTripleAt(nt-yt,dt+_t-At,nt-yt,dt+_t-At,nt-yt,dt+_t-xt,4,!0),this.v.setTripleAt(nt-yt,dt-_t+At,nt-yt,dt-_t+xt,nt-yt,dt-_t+At,5,!0),this.v.setTripleAt(nt-yt+At,dt-_t,nt-yt+At,dt-_t,nt-yt+xt,dt-_t,6,!0),this.v.setTripleAt(nt+yt-At,dt-_t,nt+yt-xt,dt-_t,nt+yt-At,dt-_t,7,!0)):(this.v.setTripleAt(nt-yt,dt+_t,nt-yt+xt,dt+_t,nt-yt,dt+_t,2),this.v.setTripleAt(nt-yt,dt-_t,nt-yt,dt-_t+xt,nt-yt,dt-_t,3))):(this.v.setTripleAt(nt+yt,dt-_t+At,nt+yt,dt-_t+xt,nt+yt,dt-_t+At,0,!0),At!==0?(this.v.setTripleAt(nt+yt-At,dt-_t,nt+yt-At,dt-_t,nt+yt-xt,dt-_t,1,!0),this.v.setTripleAt(nt-yt+At,dt-_t,nt-yt+xt,dt-_t,nt-yt+At,dt-_t,2,!0),this.v.setTripleAt(nt-yt,dt-_t+At,nt-yt,dt-_t+At,nt-yt,dt-_t+xt,3,!0),this.v.setTripleAt(nt-yt,dt+_t-At,nt-yt,dt+_t-xt,nt-yt,dt+_t-At,4,!0),this.v.setTripleAt(nt-yt+At,dt+_t,nt-yt+At,dt+_t,nt-yt+xt,dt+_t,5,!0),this.v.setTripleAt(nt+yt-At,dt+_t,nt+yt-xt,dt+_t,nt+yt-At,dt+_t,6,!0),this.v.setTripleAt(nt+yt,dt+_t-At,nt+yt,dt+_t-At,nt+yt,dt+_t-xt,7,!0)):(this.v.setTripleAt(nt-yt,dt-_t,nt-yt+xt,dt-_t,nt-yt,dt-_t,1,!0),this.v.setTripleAt(nt-yt,dt+_t,nt-yt,dt+_t-xt,nt-yt,dt+_t,2,!0),this.v.setTripleAt(nt+yt,dt+_t,nt+yt-xt,dt+_t,nt+yt,dt+_t,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:b},extendPrototype([DynamicPropertyContainer],ut),ut}();function ft(ut,ot,nt){var dt;if(nt===3||nt===4){var yt=nt===3?ot.pt:ot.ks,_t=yt.k;_t.length?dt=new st(ut,ot,nt):dt=new tt(ut,ot,nt)}else nt===5?dt=new at(ut,ot):nt===6?dt=new it(ut,ot):nt===7&&(dt=new lt(ut,ot));return dt.k&&ut.addDynamicProperty(dt),dt}function ht(){return tt}function pt(){return st}var vt={};return vt.getShapeProp=ft,vt.getConstructorFunction=ht,vt.getKeyframedConstructorFunction=pt,vt}();/*!
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,o=Math.sin,_=Math.tan,b=Math.round;function $(){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 _e(ct){if(ct===0)return this;var mt=a(ct),Rt=o(ct);return this._t(mt,-Rt,0,0,Rt,mt,0,0,0,0,1,0,0,0,0,1)}function et(ct){if(ct===0)return this;var mt=a(ct),Rt=o(ct);return this._t(1,0,0,0,0,mt,-Rt,0,0,Rt,mt,0,0,0,0,1)}function tt(ct){if(ct===0)return this;var mt=a(ct),Rt=o(ct);return this._t(mt,0,Rt,0,0,1,0,0,-Rt,0,mt,0,0,0,0,1)}function rt(ct){if(ct===0)return this;var mt=a(ct),Rt=o(ct);return this._t(mt,-Rt,0,0,Rt,mt,0,0,0,0,1,0,0,0,0,1)}function st(ct,mt){return this._t(1,mt,ct,1,0,0)}function it(ct,mt){return this.shear(_(ct),_(mt))}function lt(ct,mt){var Rt=a(mt),Tt=o(mt);return this._t(Rt,Tt,0,0,-Tt,Rt,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,_(ct),1,0,0,0,0,1,0,0,0,0,1)._t(Rt,-Tt,0,0,Tt,Rt,0,0,0,0,1,0,0,0,0,1)}function at(ct,mt,Rt){return!Rt&&Rt!==0&&(Rt=1),ct===1&&mt===1&&Rt===1?this:this._t(ct,0,0,0,0,mt,0,0,0,0,Rt,0,0,0,0,1)}function ft(ct,mt,Rt,Tt,Dt,kt,Ht,Pt,Lt,Bt,$t,Vt,Gt,zt,Qt,Kt){return this.props[0]=ct,this.props[1]=mt,this.props[2]=Rt,this.props[3]=Tt,this.props[4]=Dt,this.props[5]=kt,this.props[6]=Ht,this.props[7]=Pt,this.props[8]=Lt,this.props[9]=Bt,this.props[10]=$t,this.props[11]=Vt,this.props[12]=Gt,this.props[13]=zt,this.props[14]=Qt,this.props[15]=Kt,this}function ht(ct,mt,Rt){return Rt=Rt||0,ct!==0||mt!==0||Rt!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,ct,mt,Rt,1):this}function pt(ct,mt,Rt,Tt,Dt,kt,Ht,Pt,Lt,Bt,$t,Vt,Gt,zt,Qt,Kt){var Ut=this.props;if(ct===1&&mt===0&&Rt===0&&Tt===0&&Dt===0&&kt===1&&Ht===0&&Pt===0&&Lt===0&&Bt===0&&$t===1&&Vt===0)return Ut[12]=Ut[12]*ct+Ut[15]*Gt,Ut[13]=Ut[13]*kt+Ut[15]*zt,Ut[14]=Ut[14]*$t+Ut[15]*Qt,Ut[15]*=Kt,this._identityCalculated=!1,this;var Jt=Ut[0],ur=Ut[1],ir=Ut[2],tr=Ut[3],Zt=Ut[4],Xt=Ut[5],Mt=Ut[6],Ft=Ut[7],ar=Ut[8],qt=Ut[9],sr=Ut[10],cr=Ut[11],xr=Ut[12],pr=Ut[13],Or=Ut[14],gr=Ut[15];return Ut[0]=Jt*ct+ur*Dt+ir*Lt+tr*Gt,Ut[1]=Jt*mt+ur*kt+ir*Bt+tr*zt,Ut[2]=Jt*Rt+ur*Ht+ir*$t+tr*Qt,Ut[3]=Jt*Tt+ur*Pt+ir*Vt+tr*Kt,Ut[4]=Zt*ct+Xt*Dt+Mt*Lt+Ft*Gt,Ut[5]=Zt*mt+Xt*kt+Mt*Bt+Ft*zt,Ut[6]=Zt*Rt+Xt*Ht+Mt*$t+Ft*Qt,Ut[7]=Zt*Tt+Xt*Pt+Mt*Vt+Ft*Kt,Ut[8]=ar*ct+qt*Dt+sr*Lt+cr*Gt,Ut[9]=ar*mt+qt*kt+sr*Bt+cr*zt,Ut[10]=ar*Rt+qt*Ht+sr*$t+cr*Qt,Ut[11]=ar*Tt+qt*Pt+sr*Vt+cr*Kt,Ut[12]=xr*ct+pr*Dt+Or*Lt+gr*Gt,Ut[13]=xr*mt+pr*kt+Or*Bt+gr*zt,Ut[14]=xr*Rt+pr*Ht+Or*$t+gr*Qt,Ut[15]=xr*Tt+pr*Pt+Or*Vt+gr*Kt,this._identityCalculated=!1,this}function vt(ct){var mt=ct.props;return this.transform(mt[0],mt[1],mt[2],mt[3],mt[4],mt[5],mt[6],mt[7],mt[8],mt[9],mt[10],mt[11],mt[12],mt[13],mt[14],mt[15])}function ut(){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 ot(ct){for(var mt=0;mt<16;){if(ct.props[mt]!==this.props[mt])return!1;mt+=1}return!0}function nt(ct){var mt;for(mt=0;mt<16;mt+=1)ct.props[mt]=this.props[mt];return ct}function dt(ct){var mt;for(mt=0;mt<16;mt+=1)this.props[mt]=ct[mt]}function yt(ct,mt,Rt){return{x:ct*this.props[0]+mt*this.props[4]+Rt*this.props[8]+this.props[12],y:ct*this.props[1]+mt*this.props[5]+Rt*this.props[9]+this.props[13],z:ct*this.props[2]+mt*this.props[6]+Rt*this.props[10]+this.props[14]}}function _t(ct,mt,Rt){return ct*this.props[0]+mt*this.props[4]+Rt*this.props[8]+this.props[12]}function At(ct,mt,Rt){return ct*this.props[1]+mt*this.props[5]+Rt*this.props[9]+this.props[13]}function xt(ct,mt,Rt){return ct*this.props[2]+mt*this.props[6]+Rt*this.props[10]+this.props[14]}function wt(){var ct=this.props[0]*this.props[5]-this.props[1]*this.props[4],mt=this.props[5]/ct,Rt=-this.props[1]/ct,Tt=-this.props[4]/ct,Dt=this.props[0]/ct,kt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/ct,Ht=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/ct,Pt=new Matrix;return Pt.props[0]=mt,Pt.props[1]=Rt,Pt.props[4]=Tt,Pt.props[5]=Dt,Pt.props[12]=kt,Pt.props[13]=Ht,Pt}function bt(ct){var mt=this.getInverseMatrix();return mt.applyToPointArray(ct[0],ct[1],ct[2]||0)}function It(ct){var mt,Rt=ct.length,Tt=[];for(mt=0;mt<Rt;mt+=1)Tt[mt]=bt(ct[mt]);return Tt}function Nt(ct,mt,Rt){var Tt=createTypedArray("float32",6);if(this.isIdentity())Tt[0]=ct[0],Tt[1]=ct[1],Tt[2]=mt[0],Tt[3]=mt[1],Tt[4]=Rt[0],Tt[5]=Rt[1];else{var Dt=this.props[0],kt=this.props[1],Ht=this.props[4],Pt=this.props[5],Lt=this.props[12],Bt=this.props[13];Tt[0]=ct[0]*Dt+ct[1]*Ht+Lt,Tt[1]=ct[0]*kt+ct[1]*Pt+Bt,Tt[2]=mt[0]*Dt+mt[1]*Ht+Lt,Tt[3]=mt[0]*kt+mt[1]*Pt+Bt,Tt[4]=Rt[0]*Dt+Rt[1]*Ht+Lt,Tt[5]=Rt[0]*kt+Rt[1]*Pt+Bt}return Tt}function Ct(ct,mt,Rt){var Tt;return this.isIdentity()?Tt=[ct,mt,Rt]:Tt=[ct*this.props[0]+mt*this.props[4]+Rt*this.props[8]+this.props[12],ct*this.props[1]+mt*this.props[5]+Rt*this.props[9]+this.props[13],ct*this.props[2]+mt*this.props[6]+Rt*this.props[10]+this.props[14]],Tt}function jt(ct,mt){if(this.isIdentity())return ct+","+mt;var Rt=this.props;return Math.round((ct*Rt[0]+mt*Rt[4]+Rt[12])*100)/100+","+Math.round((ct*Rt[1]+mt*Rt[5]+Rt[13])*100)/100}function Et(){for(var ct=0,mt=this.props,Rt="matrix3d(",Tt=1e4;ct<16;)Rt+=b(mt[ct]*Tt)/Tt,Rt+=ct===15?")":",",ct+=1;return Rt}function gt(ct){var mt=1e4;return ct<1e-6&&ct>0||ct>-1e-6&&ct<0?b(ct*mt)/mt:ct}function St(){var ct=this.props,mt=gt(ct[0]),Rt=gt(ct[1]),Tt=gt(ct[4]),Dt=gt(ct[5]),kt=gt(ct[12]),Ht=gt(ct[13]);return"matrix("+mt+","+Rt+","+Tt+","+Dt+","+kt+","+Ht+")"}return function(){this.reset=$,this.rotate=_e,this.rotateX=et,this.rotateY=tt,this.rotateZ=rt,this.skew=it,this.skewFromAxis=lt,this.shear=st,this.scale=at,this.setTransform=ft,this.translate=ht,this.transform=pt,this.multiply=vt,this.applyToPoint=yt,this.applyToX=_t,this.applyToY=At,this.applyToZ=xt,this.applyToPointArray=Ct,this.applyToTriplePoints=Nt,this.applyToPointStringified=jt,this.toCSS=Et,this.to2dCSS=St,this.clone=nt,this.cloneFromProps=dt,this.equals=ot,this.inversePoints=It,this.inversePoint=bt,this.getInverseMatrix=wt,this._t=this.transform,this.isIdentity=ut,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(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_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,o){a==="expressions"&&setExpressionsPlugin(o)}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 o=queryString.split("&"),_=0;_<o.length;_+=1){var b=o[_].split("=");if(decodeURIComponent(b[0])==a)return decodeURIComponent(b[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={},o={};a.registerModifier=_,a.getModifier=b;function _($,_e){o[$]||(o[$]=_e)}function b($,_e,et){return new o[$](_e,et)}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 o={shape:a.sh,data:a,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(o),this.addShapeToModifier(o),this._isAnimated&&a.setAsAnimated()}},ShapeModifier.prototype.init=function(a,o){this.shapes=[],this.elem=a,this.initDynamicPropertyContainer(a),this.initModifierProperties(a,o),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,o){this.s=PropertyFactory.getProp(a,o.s,0,.01,this),this.e=PropertyFactory.getProp(a,o.e,0,.01,this),this.o=PropertyFactory.getProp(a,o.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=o.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,o,_,b,$){var _e=[];o<=1?_e.push({s:a,e:o}):a>=1?_e.push({s:a-1,e:o-1}):(_e.push({s:a,e:1}),_e.push({s:0,e:o-1}));var et=[],tt,rt=_e.length,st;for(tt=0;tt<rt;tt+=1)if(st=_e[tt],!(st.e*$<b||st.s*$>b+_)){var it,lt;st.s*$<=b?it=0:it=(st.s*$-b)/_,st.e*$>=b+_?lt=1:lt=(st.e*$-b)/_,et.push([it,lt])}return et.length||et.push([0,0]),et},TrimModifier.prototype.releasePathsData=function(a){var o,_=a.length;for(o=0;o<_;o+=1)segmentsLengthPool.release(a[o]);return a.length=0,a},TrimModifier.prototype.processShapes=function(a){var o,_;if(this._mdf||a){var b=this.o.v%360/360;if(b<0&&(b+=1),this.s.v>1?o=1+b:this.s.v<0?o=0+b:o=this.s.v+b,this.e.v>1?_=1+b:this.e.v<0?_=0+b:_=this.e.v+b,o>_){var $=o;o=_,_=$}o=Math.round(o*1e4)*1e-4,_=Math.round(_*1e4)*1e-4,this.sValue=o,this.eValue=_}else o=this.sValue,_=this.eValue;var _e,et,tt=this.shapes.length,rt,st,it,lt,at,ft=0;if(_===o)for(et=0;et<tt;et+=1)this.shapes[et].localShapeCollection.releaseShapes(),this.shapes[et].shape._mdf=!0,this.shapes[et].shape.paths=this.shapes[et].localShapeCollection,this._mdf&&(this.shapes[et].pathsData.length=0);else if(_===1&&o===0||_===0&&o===1){if(this._mdf)for(et=0;et<tt;et+=1)this.shapes[et].pathsData.length=0,this.shapes[et].shape._mdf=!0}else{var ht=[],pt,vt;for(et=0;et<tt;et+=1)if(pt=this.shapes[et],!pt.shape._mdf&&!this._mdf&&!a&&this.m!==2)pt.shape.paths=pt.localShapeCollection;else{if(_e=pt.shape.paths,st=_e._length,at=0,!pt.shape._mdf&&pt.pathsData.length)at=pt.totalShapeLength;else{for(it=this.releasePathsData(pt.pathsData),rt=0;rt<st;rt+=1)lt=bez.getSegmentsLength(_e.shapes[rt]),it.push(lt),at+=lt.totalLength;pt.totalShapeLength=at,pt.pathsData=it}ft+=at,pt.shape._mdf=!0}var ut=o,ot=_,nt=0,dt;for(et=tt-1;et>=0;et-=1)if(pt=this.shapes[et],pt.shape._mdf){for(vt=pt.localShapeCollection,vt.releaseShapes(),this.m===2&&tt>1?(dt=this.calculateShapeEdges(o,_,pt.totalShapeLength,nt,ft),nt+=pt.totalShapeLength):dt=[[ut,ot]],st=dt.length,rt=0;rt<st;rt+=1){ut=dt[rt][0],ot=dt[rt][1],ht.length=0,ot<=1?ht.push({s:pt.totalShapeLength*ut,e:pt.totalShapeLength*ot}):ut>=1?ht.push({s:pt.totalShapeLength*(ut-1),e:pt.totalShapeLength*(ot-1)}):(ht.push({s:pt.totalShapeLength*ut,e:pt.totalShapeLength}),ht.push({s:0,e:pt.totalShapeLength*(ot-1)}));var yt=this.addShapes(pt,ht[0]);if(ht[0].s!==ht[0].e){if(ht.length>1){var _t=pt.shape.paths.shapes[pt.shape.paths._length-1];if(_t.c){var At=yt.pop();this.addPaths(yt,vt),yt=this.addShapes(pt,ht[1],At)}else this.addPaths(yt,vt),yt=this.addShapes(pt,ht[1])}this.addPaths(yt,vt)}}pt.shape.paths=vt}}},TrimModifier.prototype.addPaths=function(a,o){var _,b=a.length;for(_=0;_<b;_+=1)o.addShape(a[_])},TrimModifier.prototype.addSegment=function(a,o,_,b,$,_e,et){$.setXYAt(o[0],o[1],"o",_e),$.setXYAt(_[0],_[1],"i",_e+1),et&&$.setXYAt(a[0],a[1],"v",_e),$.setXYAt(b[0],b[1],"v",_e+1)},TrimModifier.prototype.addSegmentFromArray=function(a,o,_,b){o.setXYAt(a[1],a[5],"o",_),o.setXYAt(a[2],a[6],"i",_+1),b&&o.setXYAt(a[0],a[4],"v",_),o.setXYAt(a[3],a[7],"v",_+1)},TrimModifier.prototype.addShapes=function(a,o,_){var b=a.pathsData,$=a.shape.paths.shapes,_e,et=a.shape.paths._length,tt,rt,st=0,it,lt,at,ft,ht=[],pt,vt=!0;for(_?(lt=_._length,pt=_._length):(_=shapePool.newElement(),lt=0,pt=0),ht.push(_),_e=0;_e<et;_e+=1){for(at=b[_e].lengths,_.c=$[_e].c,rt=$[_e].c?at.length:at.length+1,tt=1;tt<rt;tt+=1)if(it=at[tt-1],st+it.addedLength<o.s)st+=it.addedLength,_.c=!1;else if(st>o.e){_.c=!1;break}else o.s<=st&&o.e>=st+it.addedLength?(this.addSegment($[_e].v[tt-1],$[_e].o[tt-1],$[_e].i[tt],$[_e].v[tt],_,lt,vt),vt=!1):(ft=bez.getNewSegment($[_e].v[tt-1],$[_e].v[tt],$[_e].o[tt-1],$[_e].i[tt],(o.s-st)/it.addedLength,(o.e-st)/it.addedLength,at[tt-1]),this.addSegmentFromArray(ft,_,lt,vt),vt=!1,_.c=!1),st+=it.addedLength,lt+=1;if($[_e].c&&at.length){if(it=at[tt-1],st<=o.e){var ut=at[tt-1].addedLength;o.s<=st&&o.e>=st+ut?(this.addSegment($[_e].v[tt-1],$[_e].o[tt-1],$[_e].i[0],$[_e].v[0],_,lt,vt),vt=!1):(ft=bez.getNewSegment($[_e].v[tt-1],$[_e].v[0],$[_e].o[tt-1],$[_e].i[0],(o.s-st)/ut,(o.e-st)/ut,at[tt-1]),this.addSegmentFromArray(ft,_,lt,vt),vt=!1,_.c=!1)}else _.c=!1;st+=it.addedLength,lt+=1}if(_._length&&(_.setXYAt(_.v[pt][0],_.v[pt][1],"i",pt),_.setXYAt(_.v[_._length-1][0],_.v[_._length-1][1],"o",_._length-1)),st>o.e)break;_e<et-1&&(_=shapePool.newElement(),vt=!0,ht.push(_),lt=0)}return ht};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(a,o){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(a,o.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(a,o){var _=o/100,b=[0,0],$=a._length,_e=0;for(_e=0;_e<$;_e+=1)b[0]+=a.v[_e][0],b[1]+=a.v[_e][1];b[0]/=$,b[1]/=$;var et=shapePool.newElement();et.c=a.c;var tt,rt,st,it,lt,at;for(_e=0;_e<$;_e+=1)tt=a.v[_e][0]+(b[0]-a.v[_e][0])*_,rt=a.v[_e][1]+(b[1]-a.v[_e][1])*_,st=a.o[_e][0]+(b[0]-a.o[_e][0])*-_,it=a.o[_e][1]+(b[1]-a.o[_e][1])*-_,lt=a.i[_e][0]+(b[0]-a.i[_e][0])*-_,at=a.i[_e][1]+(b[1]-a.i[_e][1])*-_,et.setTripleAt(tt,rt,st,it,lt,at,_e);return et},PuckerAndBloatModifier.prototype.processShapes=function(a){var o,_,b=this.shapes.length,$,_e,et=this.amount.v;if(et!==0){var tt,rt;for(_=0;_<b;_+=1){if(tt=this.shapes[_],rt=tt.localShapeCollection,!(!tt.shape._mdf&&!this._mdf&&!a))for(rt.releaseShapes(),tt.shape._mdf=!0,o=tt.shape.paths.shapes,_e=tt.shape.paths._length,$=0;$<_e;$+=1)rt.addShape(this.processPath(o[$],et));tt.shape.paths=tt.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var a=[0,0];function o(rt){var st=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||st,this.a&&rt.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&rt.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&rt.skewFromAxis(-this.sk.v,this.sa.v),this.r?rt.rotate(-this.r.v):rt.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?rt.translate(this.px.v,this.py.v,-this.pz.v):rt.translate(this.px.v,this.py.v,0):rt.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function _(rt){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||rt){var st;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 it,lt;if(st=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(it=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/st,0),lt=this.p.getValueAtTime(this.p.keyframes[0].t/st,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(it=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/st,0),lt=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/st,0)):(it=this.p.pv,lt=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/st,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){it=[],lt=[];var at=this.px,ft=this.py;at._caching.lastFrame+at.offsetTime<=at.keyframes[0].t?(it[0]=at.getValueAtTime((at.keyframes[0].t+.01)/st,0),it[1]=ft.getValueAtTime((ft.keyframes[0].t+.01)/st,0),lt[0]=at.getValueAtTime(at.keyframes[0].t/st,0),lt[1]=ft.getValueAtTime(ft.keyframes[0].t/st,0)):at._caching.lastFrame+at.offsetTime>=at.keyframes[at.keyframes.length-1].t?(it[0]=at.getValueAtTime(at.keyframes[at.keyframes.length-1].t/st,0),it[1]=ft.getValueAtTime(ft.keyframes[ft.keyframes.length-1].t/st,0),lt[0]=at.getValueAtTime((at.keyframes[at.keyframes.length-1].t-.01)/st,0),lt[1]=ft.getValueAtTime((ft.keyframes[ft.keyframes.length-1].t-.01)/st,0)):(it=[at.pv,ft.pv],lt[0]=at.getValueAtTime((at._caching.lastFrame+at.offsetTime-.01)/st,at.offsetTime),lt[1]=ft.getValueAtTime((ft._caching.lastFrame+ft.offsetTime-.01)/st,ft.offsetTime))}else lt=a,it=lt;this.v.rotate(-Math.atan2(it[1]-lt[1],it[0]-lt[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 b(){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 $(){}function _e(rt){this._addDynamicProperty(rt),this.elem.addDynamicProperty(rt),this._isDirty=!0}function et(rt,st,it){if(this.elem=rt,this.frameId=-1,this.propType="transform",this.data=st,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(it||rt),st.p&&st.p.s?(this.px=PropertyFactory.getProp(rt,st.p.x,0,0,this),this.py=PropertyFactory.getProp(rt,st.p.y,0,0,this),st.p.z&&(this.pz=PropertyFactory.getProp(rt,st.p.z,0,0,this))):this.p=PropertyFactory.getProp(rt,st.p||{k:[0,0,0]},1,0,this),st.rx){if(this.rx=PropertyFactory.getProp(rt,st.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(rt,st.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(rt,st.rz,0,degToRads,this),st.or.k[0].ti){var lt,at=st.or.k.length;for(lt=0;lt<at;lt+=1)st.or.k[lt].to=null,st.or.k[lt].ti=null}this.or=PropertyFactory.getProp(rt,st.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(rt,st.r||{k:0},0,degToRads,this);st.sk&&(this.sk=PropertyFactory.getProp(rt,st.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(rt,st.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(rt,st.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(rt,st.s||{k:[100,100,100]},1,.01,this),st.o?this.o=PropertyFactory.getProp(rt,st.o,0,.01,rt):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}et.prototype={applyToMatrix:o,getValue:_,precalculateMatrix:b,autoOrient:$},extendPrototype([DynamicPropertyContainer],et),et.prototype.addDynamicProperty=_e,et.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function tt(rt,st,it){return new et(rt,st,it)}return{getTransformProperty:tt}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(a,o){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(a,o.c,0,null,this),this.o=PropertyFactory.getProp(a,o.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(a,o.tr,this),this.so=PropertyFactory.getProp(a,o.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(a,o.tr.eo,0,.01,this),this.data=o,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,o,_,b,$,_e){var et=_e?-1:1,tt=b.s.v[0]+(1-b.s.v[0])*(1-$),rt=b.s.v[1]+(1-b.s.v[1])*(1-$);a.translate(b.p.v[0]*et*$,b.p.v[1]*et*$,b.p.v[2]),o.translate(-b.a.v[0],-b.a.v[1],b.a.v[2]),o.rotate(-b.r.v*et*$),o.translate(b.a.v[0],b.a.v[1],b.a.v[2]),_.translate(-b.a.v[0],-b.a.v[1],b.a.v[2]),_.scale(_e?1/tt:tt,_e?1/rt:rt),_.translate(b.a.v[0],b.a.v[1],b.a.v[2])},RepeaterModifier.prototype.init=function(a,o,_,b){for(this.elem=a,this.arr=o,this.pos=_,this.elemsData=b,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(a),this.initModifierProperties(a,o[_]);_>0;)_-=1,this._elements.unshift(o[_]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(a){var o,_=a.length;for(o=0;o<_;o+=1)a[o]._processed=!1,a[o].ty==="gr"&&this.resetElements(a[o].it)},RepeaterModifier.prototype.cloneElements=function(a){var o=JSON.parse(JSON.stringify(a));return this.resetElements(o),o},RepeaterModifier.prototype.changeGroupRender=function(a,o){var _,b=a.length;for(_=0;_<b;_+=1)a[_]._render=o,a[_].ty==="gr"&&this.changeGroupRender(a[_].it,o)},RepeaterModifier.prototype.processShapes=function(a){var o,_,b,$,_e,et=!1;if(this._mdf||a){var tt=Math.ceil(this.c.v);if(this._groups.length<tt){for(;this._groups.length<tt;){var rt={it:this.cloneElements(this._elements),ty:"gr"};rt.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,rt),this._groups.splice(0,0,rt),this._currentCopies+=1}this.elem.reloadShapes(),et=!0}_e=0;var st;for(b=0;b<=this._groups.length-1;b+=1){if(st=_e<tt,this._groups[b]._render=st,this.changeGroupRender(this._groups[b].it,st),!st){var it=this.elemsData[b].it,lt=it[it.length-1];lt.transform.op.v!==0?(lt.transform.op._mdf=!0,lt.transform.op.v=0):lt.transform.op._mdf=!1}_e+=1}this._currentCopies=tt;var at=this.o.v,ft=at%1,ht=at>0?Math.floor(at):Math.ceil(at),pt=this.pMatrix.props,vt=this.rMatrix.props,ut=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var ot=0;if(at>0){for(;ot<ht;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),ot+=1;ft&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,ft,!1),ot+=ft)}else if(at<0){for(;ot>ht;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),ot-=1;ft&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-ft,!0),ot-=ft)}b=this.data.m===1?0:this._currentCopies-1,$=this.data.m===1?1:-1,_e=this._currentCopies;for(var nt,dt;_e;){if(o=this.elemsData[b].it,_=o[o.length-1].transform.mProps.v.props,dt=_.length,o[o.length-1].transform.mProps._mdf=!0,o[o.length-1].transform.op._mdf=!0,o[o.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(b/(this._currentCopies-1)),ot!==0){for((b!==0&&$===1||b!==this._currentCopies-1&&$===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(vt[0],vt[1],vt[2],vt[3],vt[4],vt[5],vt[6],vt[7],vt[8],vt[9],vt[10],vt[11],vt[12],vt[13],vt[14],vt[15]),this.matrix.transform(ut[0],ut[1],ut[2],ut[3],ut[4],ut[5],ut[6],ut[7],ut[8],ut[9],ut[10],ut[11],ut[12],ut[13],ut[14],ut[15]),this.matrix.transform(pt[0],pt[1],pt[2],pt[3],pt[4],pt[5],pt[6],pt[7],pt[8],pt[9],pt[10],pt[11],pt[12],pt[13],pt[14],pt[15]),nt=0;nt<dt;nt+=1)_[nt]=this.matrix.props[nt];this.matrix.reset()}else for(this.matrix.reset(),nt=0;nt<dt;nt+=1)_[nt]=this.matrix.props[nt];ot+=1,_e-=1,b+=$}}else for(_e=this._currentCopies,b=0,$=1;_e;)o=this.elemsData[b].it,_=o[o.length-1].transform.mProps.v.props,o[o.length-1].transform.mProps._mdf=!1,o[o.length-1].transform.op._mdf=!1,_e-=1,b+=$;return et},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(a,o){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(a,o.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(a,o){var _=shapePool.newElement();_.c=a.c;var b,$=a._length,_e,et,tt,rt,st,it,lt=0,at,ft,ht,pt,vt,ut;for(b=0;b<$;b+=1)_e=a.v[b],tt=a.o[b],et=a.i[b],_e[0]===tt[0]&&_e[1]===tt[1]&&_e[0]===et[0]&&_e[1]===et[1]?(b===0||b===$-1)&&!a.c?(_.setTripleAt(_e[0],_e[1],tt[0],tt[1],et[0],et[1],lt),lt+=1):(b===0?rt=a.v[$-1]:rt=a.v[b-1],st=Math.sqrt(Math.pow(_e[0]-rt[0],2)+Math.pow(_e[1]-rt[1],2)),it=st?Math.min(st/2,o)/st:0,vt=_e[0]+(rt[0]-_e[0])*it,at=vt,ut=_e[1]-(_e[1]-rt[1])*it,ft=ut,ht=at-(at-_e[0])*roundCorner,pt=ft-(ft-_e[1])*roundCorner,_.setTripleAt(at,ft,ht,pt,vt,ut,lt),lt+=1,b===$-1?rt=a.v[0]:rt=a.v[b+1],st=Math.sqrt(Math.pow(_e[0]-rt[0],2)+Math.pow(_e[1]-rt[1],2)),it=st?Math.min(st/2,o)/st:0,ht=_e[0]+(rt[0]-_e[0])*it,at=ht,pt=_e[1]+(rt[1]-_e[1])*it,ft=pt,vt=at-(at-_e[0])*roundCorner,ut=ft-(ft-_e[1])*roundCorner,_.setTripleAt(at,ft,ht,pt,vt,ut,lt),lt+=1):(_.setTripleAt(a.v[b][0],a.v[b][1],a.o[b][0],a.o[b][1],a.i[b][0],a.i[b][1],lt),lt+=1);return _},RoundCornersModifier.prototype.processShapes=function(a){var o,_,b=this.shapes.length,$,_e,et=this.rd.v;if(et!==0){var tt,rt;for(_=0;_<b;_+=1){if(tt=this.shapes[_],rt=tt.localShapeCollection,!(!tt.shape._mdf&&!this._mdf&&!a))for(rt.releaseShapes(),tt.shape._mdf=!0,o=tt.shape.paths.shapes,_e=tt.shape.paths._length,$=0;$<_e;$+=1)rt.addShape(this.processPath(o[$],et));tt.shape.paths=tt.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(a,o){return Math.abs(a-o)*1e5<=Math.min(Math.abs(a),Math.abs(o))}function floatZero(a){return Math.abs(a)<=1e-5}function lerp(a,o,_){return a*(1-_)+o*_}function lerpPoint(a,o,_){return[lerp(a[0],o[0],_),lerp(a[1],o[1],_)]}function quadRoots(a,o,_){if(a===0)return[];var b=o*o-4*a*_;if(b<0)return[];var $=-o/(2*a);if(b===0)return[$];var _e=Math.sqrt(b)/(2*a);return[$-_e,$+_e]}function polynomialCoefficients(a,o,_,b){return[-a+3*o-3*_+b,3*a-6*o+3*_,-3*a+3*o,a]}function singlePoint(a){return new PolynomialBezier(a,a,a,a,!1)}function PolynomialBezier(a,o,_,b,$){$&&pointEqual(a,o)&&(o=lerpPoint(a,b,1/3)),$&&pointEqual(_,b)&&(_=lerpPoint(a,b,2/3));var _e=polynomialCoefficients(a[0],o[0],_[0],b[0]),et=polynomialCoefficients(a[1],o[1],_[1],b[1]);this.a=[_e[0],et[0]],this.b=[_e[1],et[1]],this.c=[_e[2],et[2]],this.d=[_e[3],et[3]],this.points=[a,o,_,b]}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 o=this.derivative(a);return Math.atan2(o[1],o[0])},PolynomialBezier.prototype.normalAngle=function(a){var o=this.derivative(a);return Math.atan2(o[0],o[1])},PolynomialBezier.prototype.inflectionPoints=function(){var a=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(a))return[];var o=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/a,_=o*o-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/a;if(_<0)return[];var b=Math.sqrt(_);return floatZero(b)?b>0&&b<1?[o]:[]:[o-b,o+b].filter(function($){return $>0&&$<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 o=lerpPoint(this.points[0],this.points[1],a),_=lerpPoint(this.points[1],this.points[2],a),b=lerpPoint(this.points[2],this.points[3],a),$=lerpPoint(o,_,a),_e=lerpPoint(_,b,a),et=lerpPoint($,_e,a);return[new PolynomialBezier(this.points[0],o,$,et,!0),new PolynomialBezier(et,_e,b,this.points[3],!0)]};function extrema(a,o){var _=a.points[0][o],b=a.points[a.points.length-1][o];if(_>b){var $=b;b=_,_=$}for(var _e=quadRoots(3*a.a[o],2*a.b[o],a.c[o]),et=0;et<_e.length;et+=1)if(_e[et]>0&&_e[et]<1){var tt=a.point(_e[et])[o];tt<_?_=tt:tt>b&&(b=tt)}return{min:_,max:b}}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,o,_){var b=a.boundingBox();return{cx:b.cx,cy:b.cy,width:b.width,height:b.height,bez:a,t:(o+_)/2,t1:o,t2:_}}function splitData(a){var o=a.bez.split(.5);return[intersectData(o[0],a.t1,a.t),intersectData(o[1],a.t,a.t2)]}function boxIntersect(a,o){return Math.abs(a.cx-o.cx)*2<a.width+o.width&&Math.abs(a.cy-o.cy)*2<a.height+o.height}function intersectsImpl(a,o,_,b,$,_e){if(boxIntersect(a,o)){if(_>=_e||a.width<=b&&a.height<=b&&o.width<=b&&o.height<=b){$.push([a.t,o.t]);return}var et=splitData(a),tt=splitData(o);intersectsImpl(et[0],tt[0],_+1,b,$,_e),intersectsImpl(et[0],tt[1],_+1,b,$,_e),intersectsImpl(et[1],tt[0],_+1,b,$,_e),intersectsImpl(et[1],tt[1],_+1,b,$,_e)}}PolynomialBezier.prototype.intersections=function(a,o,_){o===void 0&&(o=2),_===void 0&&(_=7);var b=[];return intersectsImpl(intersectData(this,0,1),intersectData(a,0,1),0,o,b,_),b},PolynomialBezier.shapeSegment=function(a,o){var _=(o+1)%a.length();return new PolynomialBezier(a.v[o],a.o[o],a.i[_],a.v[_],!0)},PolynomialBezier.shapeSegmentInverted=function(a,o){var _=(o+1)%a.length();return new PolynomialBezier(a.v[_],a.i[_],a.o[o],a.v[o],!0)};function crossProduct(a,o){return[a[1]*o[2]-a[2]*o[1],a[2]*o[0]-a[0]*o[2],a[0]*o[1]-a[1]*o[0]]}function lineIntersection(a,o,_,b){var $=[a[0],a[1],1],_e=[o[0],o[1],1],et=[_[0],_[1],1],tt=[b[0],b[1],1],rt=crossProduct(crossProduct($,_e),crossProduct(et,tt));return floatZero(rt[2])?null:[rt[0]/rt[2],rt[1]/rt[2]]}function polarOffset(a,o,_){return[a[0]+Math.cos(o)*_,a[1]-Math.sin(o)*_]}function pointDistance(a,o){return Math.hypot(a[0]-o[0],a[1]-o[1])}function pointEqual(a,o){return floatEqual(a[0],o[0])&&floatEqual(a[1],o[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(a,o){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(a,o.s,0,null,this),this.frequency=PropertyFactory.getProp(a,o.r,0,null,this),this.pointsType=PropertyFactory.getProp(a,o.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(a,o,_,b,$,_e,et){var tt=_-Math.PI/2,rt=_+Math.PI/2,st=o[0]+Math.cos(_)*b*$,it=o[1]-Math.sin(_)*b*$;a.setTripleAt(st,it,st+Math.cos(tt)*_e,it-Math.sin(tt)*_e,st+Math.cos(rt)*et,it-Math.sin(rt)*et,a.length())}function getPerpendicularVector(a,o){var _=[o[0]-a[0],o[1]-a[1]],b=-Math.PI*.5,$=[Math.cos(b)*_[0]-Math.sin(b)*_[1],Math.sin(b)*_[0]+Math.cos(b)*_[1]];return $}function getProjectingAngle(a,o){var _=o===0?a.length()-1:o-1,b=(o+1)%a.length(),$=a.v[_],_e=a.v[b],et=getPerpendicularVector($,_e);return Math.atan2(0,1)-Math.atan2(et[1],et[0])}function zigZagCorner(a,o,_,b,$,_e,et){var tt=getProjectingAngle(o,_),rt=o.v[_%o._length],st=o.v[_===0?o._length-1:_-1],it=o.v[(_+1)%o._length],lt=_e===2?Math.sqrt(Math.pow(rt[0]-st[0],2)+Math.pow(rt[1]-st[1],2)):0,at=_e===2?Math.sqrt(Math.pow(rt[0]-it[0],2)+Math.pow(rt[1]-it[1],2)):0;setPoint(a,o.v[_%o._length],tt,et,b,at/(($+1)*2),lt/(($+1)*2))}function zigZagSegment(a,o,_,b,$,_e){for(var et=0;et<b;et+=1){var tt=(et+1)/(b+1),rt=$===2?Math.sqrt(Math.pow(o.points[3][0]-o.points[0][0],2)+Math.pow(o.points[3][1]-o.points[0][1],2)):0,st=o.normalAngle(tt),it=o.point(tt);setPoint(a,it,st,_e,_,rt/((b+1)*2),rt/((b+1)*2)),_e=-_e}return _e}ZigZagModifier.prototype.processPath=function(a,o,_,b){var $=a._length,_e=shapePool.newElement();if(_e.c=a.c,a.c||($-=1),$===0)return _e;var et=-1,tt=PolynomialBezier.shapeSegment(a,0);zigZagCorner(_e,a,0,o,_,b,et);for(var rt=0;rt<$;rt+=1)et=zigZagSegment(_e,tt,o,_,b,-et),rt===$-1&&!a.c?tt=null:tt=PolynomialBezier.shapeSegment(a,(rt+1)%$),zigZagCorner(_e,a,rt+1,o,_,b,et);return _e},ZigZagModifier.prototype.processShapes=function(a){var o,_,b=this.shapes.length,$,_e,et=this.amplitude.v,tt=Math.max(0,Math.round(this.frequency.v)),rt=this.pointsType.v;if(et!==0){var st,it;for(_=0;_<b;_+=1){if(st=this.shapes[_],it=st.localShapeCollection,!(!st.shape._mdf&&!this._mdf&&!a))for(it.releaseShapes(),st.shape._mdf=!0,o=st.shape.paths.shapes,_e=st.shape.paths._length,$=0;$<_e;$+=1)it.addShape(this.processPath(o[$],et,tt,rt));st.shape.paths=st.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(a,o,_){var b=Math.atan2(o[0]-a[0],o[1]-a[1]);return[polarOffset(a,b,_),polarOffset(o,b,_)]}function offsetSegment(a,o){var _,b,$,_e,et,tt,rt;rt=linearOffset(a.points[0],a.points[1],o),_=rt[0],b=rt[1],rt=linearOffset(a.points[1],a.points[2],o),$=rt[0],_e=rt[1],rt=linearOffset(a.points[2],a.points[3],o),et=rt[0],tt=rt[1];var st=lineIntersection(_,b,$,_e);st===null&&(st=b);var it=lineIntersection(et,tt,$,_e);return it===null&&(it=et),new PolynomialBezier(_,st,it,tt)}function joinLines(a,o,_,b,$){var _e=o.points[3],et=_.points[0];if(b===3||pointEqual(_e,et))return _e;if(b===2){var tt=-o.tangentAngle(1),rt=-_.tangentAngle(0)+Math.PI,st=lineIntersection(_e,polarOffset(_e,tt+Math.PI/2,100),et,polarOffset(et,tt+Math.PI/2,100)),it=st?pointDistance(st,_e):pointDistance(_e,et)/2,lt=polarOffset(_e,tt,2*it*roundCorner);return a.setXYAt(lt[0],lt[1],"o",a.length()-1),lt=polarOffset(et,rt,2*it*roundCorner),a.setTripleAt(et[0],et[1],et[0],et[1],lt[0],lt[1],a.length()),et}var at=pointEqual(_e,o.points[2])?o.points[0]:o.points[2],ft=pointEqual(et,_.points[1])?_.points[3]:_.points[1],ht=lineIntersection(at,_e,et,ft);return ht&&pointDistance(ht,_e)<$?(a.setTripleAt(ht[0],ht[1],ht[0],ht[1],ht[0],ht[1],a.length()),ht):_e}function getIntersection(a,o){var _=a.intersections(o);return _.length&&floatEqual(_[0][0],1)&&_.shift(),_.length?_[0]:null}function pruneSegmentIntersection(a,o){var _=a.slice(),b=o.slice(),$=getIntersection(a[a.length-1],o[0]);return $&&(_[a.length-1]=a[a.length-1].split($[0])[0],b[0]=o[0].split($[1])[1]),a.length>1&&o.length>1&&($=getIntersection(a[0],o[o.length-1]),$)?[[a[0].split($[0])[0]],[o[o.length-1].split($[1])[1]]]:[_,b]}function pruneIntersections(a){for(var o,_=1;_<a.length;_+=1)o=pruneSegmentIntersection(a[_-1],a[_]),a[_-1]=o[0],a[_]=o[1];return a.length>1&&(o=pruneSegmentIntersection(a[a.length-1],a[0]),a[a.length-1]=o[0],a[0]=o[1]),a}function offsetSegmentSplit(a,o){var _=a.inflectionPoints(),b,$,_e,et;if(_.length===0)return[offsetSegment(a,o)];if(_.length===1||floatEqual(_[1],1))return _e=a.split(_[0]),b=_e[0],$=_e[1],[offsetSegment(b,o),offsetSegment($,o)];_e=a.split(_[0]),b=_e[0];var tt=(_[1]-_[0])/(1-_[0]);return _e=_e[1].split(tt),et=_e[0],$=_e[1],[offsetSegment(b,o),offsetSegment(et,o),offsetSegment($,o)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(a,o){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(a,o.a,0,null,this),this.miterLimit=PropertyFactory.getProp(a,o.ml,0,null,this),this.lineJoin=o.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(a,o,_,b){var $=shapePool.newElement();$.c=a.c;var _e=a.length();a.c||(_e-=1);var et,tt,rt,st=[];for(et=0;et<_e;et+=1)rt=PolynomialBezier.shapeSegment(a,et),st.push(offsetSegmentSplit(rt,o));if(!a.c)for(et=_e-1;et>=0;et-=1)rt=PolynomialBezier.shapeSegmentInverted(a,et),st.push(offsetSegmentSplit(rt,o));st=pruneIntersections(st);var it=null,lt=null;for(et=0;et<st.length;et+=1){var at=st[et];for(lt&&(it=joinLines($,lt,at[0],_,b)),lt=at[at.length-1],tt=0;tt<at.length;tt+=1)rt=at[tt],it&&pointEqual(rt.points[0],it)?$.setXYAt(rt.points[1][0],rt.points[1][1],"o",$.length()-1):$.setTripleAt(rt.points[0][0],rt.points[0][1],rt.points[1][0],rt.points[1][1],rt.points[0][0],rt.points[0][1],$.length()),$.setTripleAt(rt.points[3][0],rt.points[3][1],rt.points[3][0],rt.points[3][1],rt.points[2][0],rt.points[2][1],$.length()),it=rt.points[3]}return st.length&&joinLines($,lt,st[0][0],_,b),$},OffsetPathModifier.prototype.processShapes=function(a){var o,_,b=this.shapes.length,$,_e,et=this.amount.v,tt=this.miterLimit.v,rt=this.lineJoin;if(et!==0){var st,it;for(_=0;_<b;_+=1){if(st=this.shapes[_],it=st.localShapeCollection,!(!st.shape._mdf&&!this._mdf&&!a))for(it.releaseShapes(),st.shape._mdf=!0,o=st.shape.paths.shapes,_e=st.shape.paths._length,$=0;$<_e;$+=1)it.addShape(this.processPath(o[$],et,rt,tt));st.shape.paths=st.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(a){for(var o=a.fStyle?a.fStyle.split(" "):[],_="normal",b="normal",$=o.length,_e,et=0;et<$;et+=1)switch(_e=o[et].toLowerCase(),_e){case"italic":b="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:b,weight:a.fWeight||_}}var FontManager=function(){var a=5e3,o={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 b=127988,$=917631,_e=917601,et=917626,tt=65039,rt=8205,st=127462,it=127487,lt=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function at(gt){var St=gt.split(","),ct,mt=St.length,Rt=[];for(ct=0;ct<mt;ct+=1)St[ct]!=="sans-serif"&&St[ct]!=="monospace"&&Rt.push(St[ct]);return Rt.join(",")}function ft(gt,St){var ct=createTag("span");ct.setAttribute("aria-hidden",!0),ct.style.fontFamily=St;var mt=createTag("span");mt.innerText="giItT1WQy@!-/#",ct.style.position="absolute",ct.style.left="-10000px",ct.style.top="-10000px",ct.style.fontSize="300px",ct.style.fontVariant="normal",ct.style.fontStyle="normal",ct.style.fontWeight="normal",ct.style.letterSpacing="0",ct.appendChild(mt),document.body.appendChild(ct);var Rt=mt.offsetWidth;return mt.style.fontFamily=at(gt)+", "+St,{node:mt,w:Rt,parent:ct}}function ht(){var gt,St=this.fonts.length,ct,mt,Rt=St;for(gt=0;gt<St;gt+=1)this.fonts[gt].loaded?Rt-=1:this.fonts[gt].fOrigin==="n"||this.fonts[gt].origin===0?this.fonts[gt].loaded=!0:(ct=this.fonts[gt].monoCase.node,mt=this.fonts[gt].monoCase.w,ct.offsetWidth!==mt?(Rt-=1,this.fonts[gt].loaded=!0):(ct=this.fonts[gt].sansCase.node,mt=this.fonts[gt].sansCase.w,ct.offsetWidth!==mt&&(Rt-=1,this.fonts[gt].loaded=!0)),this.fonts[gt].loaded&&(this.fonts[gt].sansCase.parent.parentNode.removeChild(this.fonts[gt].sansCase.parent),this.fonts[gt].monoCase.parent.parentNode.removeChild(this.fonts[gt].monoCase.parent)));Rt!==0&&Date.now()-this.initTime<a?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function pt(gt,St){var ct=document.body&&St?"svg":"canvas",mt,Rt=getFontProperties(gt);if(ct==="svg"){var Tt=createNS("text");Tt.style.fontSize="100px",Tt.setAttribute("font-family",gt.fFamily),Tt.setAttribute("font-style",Rt.style),Tt.setAttribute("font-weight",Rt.weight),Tt.textContent="1",gt.fClass?(Tt.style.fontFamily="inherit",Tt.setAttribute("class",gt.fClass)):Tt.style.fontFamily=gt.fFamily,St.appendChild(Tt),mt=Tt}else{var Dt=new OffscreenCanvas(500,500).getContext("2d");Dt.font=Rt.style+" "+Rt.weight+" 100px "+gt.fFamily,mt=Dt}function kt(Ht){return ct==="svg"?(mt.textContent=Ht,mt.getComputedTextLength()):mt.measureText(Ht).width}return{measureText:kt}}function vt(gt,St){if(!gt){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=gt.list;return}if(!document.body){this.isLoaded=!0,gt.list.forEach(function($t){$t.helper=pt($t),$t.cache={}}),this.fonts=gt.list;return}var ct=gt.list,mt,Rt=ct.length,Tt=Rt;for(mt=0;mt<Rt;mt+=1){var Dt=!0,kt,Ht;if(ct[mt].loaded=!1,ct[mt].monoCase=ft(ct[mt].fFamily,"monospace"),ct[mt].sansCase=ft(ct[mt].fFamily,"sans-serif"),!ct[mt].fPath)ct[mt].loaded=!0,Tt-=1;else if(ct[mt].fOrigin==="p"||ct[mt].origin===3){if(kt=document.querySelectorAll('style[f-forigin="p"][f-family="'+ct[mt].fFamily+'"], style[f-origin="3"][f-family="'+ct[mt].fFamily+'"]'),kt.length>0&&(Dt=!1),Dt){var Pt=createTag("style");Pt.setAttribute("f-forigin",ct[mt].fOrigin),Pt.setAttribute("f-origin",ct[mt].origin),Pt.setAttribute("f-family",ct[mt].fFamily),Pt.type="text/css",Pt.innerText="@font-face {font-family: "+ct[mt].fFamily+"; font-style: normal; src: url('"+ct[mt].fPath+"');}",St.appendChild(Pt)}}else if(ct[mt].fOrigin==="g"||ct[mt].origin===1){for(kt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Ht=0;Ht<kt.length;Ht+=1)kt[Ht].href.indexOf(ct[mt].fPath)!==-1&&(Dt=!1);if(Dt){var Lt=createTag("link");Lt.setAttribute("f-forigin",ct[mt].fOrigin),Lt.setAttribute("f-origin",ct[mt].origin),Lt.type="text/css",Lt.rel="stylesheet",Lt.href=ct[mt].fPath,document.body.appendChild(Lt)}}else if(ct[mt].fOrigin==="t"||ct[mt].origin===2){for(kt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Ht=0;Ht<kt.length;Ht+=1)ct[mt].fPath===kt[Ht].src&&(Dt=!1);if(Dt){var Bt=createTag("link");Bt.setAttribute("f-forigin",ct[mt].fOrigin),Bt.setAttribute("f-origin",ct[mt].origin),Bt.setAttribute("rel","stylesheet"),Bt.setAttribute("href",ct[mt].fPath),St.appendChild(Bt)}}ct[mt].helper=pt(ct[mt],St),ct[mt].cache={},this.fonts.push(ct[mt])}Tt===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function ut(gt){if(gt){this.chars||(this.chars=[]);var St,ct=gt.length,mt,Rt=this.chars.length,Tt;for(St=0;St<ct;St+=1){for(mt=0,Tt=!1;mt<Rt;)this.chars[mt].style===gt[St].style&&this.chars[mt].fFamily===gt[St].fFamily&&this.chars[mt].ch===gt[St].ch&&(Tt=!0),mt+=1;Tt||(this.chars.push(gt[St]),Rt+=1)}}}function ot(gt,St,ct){for(var mt=0,Rt=this.chars.length;mt<Rt;){if(this.chars[mt].ch===gt&&this.chars[mt].style===St&&this.chars[mt].fFamily===ct)return this.chars[mt];mt+=1}return(typeof gt=="string"&&gt.charCodeAt(0)!==13||!gt)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",gt,St,ct)),o}function nt(gt,St,ct){var mt=this.getFontByName(St),Rt=gt;if(!mt.cache[Rt]){var Tt=mt.helper;if(gt===" "){var Dt=Tt.measureText("|"+gt+"|"),kt=Tt.measureText("||");mt.cache[Rt]=(Dt-kt)/100}else mt.cache[Rt]=Tt.measureText(gt)/100}return mt.cache[Rt]*ct}function dt(gt){for(var St=0,ct=this.fonts.length;St<ct;){if(this.fonts[St].fName===gt)return this.fonts[St];St+=1}return this.fonts[0]}function yt(gt){var St=0,ct=gt.charCodeAt(0);if(ct>=55296&&ct<=56319){var mt=gt.charCodeAt(1);mt>=56320&&mt<=57343&&(St=(ct-55296)*1024+mt-56320+65536)}return St}function _t(gt,St){var ct=gt.toString(16)+St.toString(16);return lt.indexOf(ct)!==-1}function At(gt){return gt===rt}function xt(gt){return gt===tt}function wt(gt){var St=yt(gt);return St>=st&&St<=it}function bt(gt){return wt(gt.substr(0,2))&&wt(gt.substr(2,2))}function It(gt){return _.indexOf(gt)!==-1}function Nt(gt,St){var ct=yt(gt.substr(St,2));if(ct!==b)return!1;var mt=0;for(St+=2;mt<5;){if(ct=yt(gt.substr(St,2)),ct<_e||ct>et)return!1;mt+=1,St+=2}return yt(gt.substr(St,2))===$}function Ct(){this.isLoaded=!0}var jt=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)};jt.isModifier=_t,jt.isZeroWidthJoiner=At,jt.isFlagEmoji=bt,jt.isRegionalCode=wt,jt.isCombinedCharacter=It,jt.isRegionalFlag=Nt,jt.isVariationSelector=xt,jt.BLACK_FLAG_CODE_POINT=b;var Et={addChars:ut,addFonts:vt,getCharData:ot,getFontByName:dt,measureText:nt,checkLoadedFonts:ht,setIsLoaded:Ct};return jt.prototype=Et,jt}();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(o){this.renderableComponents.indexOf(o)===-1&&this.renderableComponents.push(o)},removeRenderableComponent:function(o){this.renderableComponents.indexOf(o)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(o),1)},prepareRenderableFrame:function(o){this.checkLayerLimits(o)},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(o){this.data.ip-this.data.st<=o&&this.data.op-this.data.st>o?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 o,_=this.renderableComponents.length;for(o=0;o<_;o+=1)this.renderableComponents[o].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(o){return a[o]||""}}();function SliderEffect(a,o,_){this.p=PropertyFactory.getProp(o,a.v,0,0,_)}function AngleEffect(a,o,_){this.p=PropertyFactory.getProp(o,a.v,0,0,_)}function ColorEffect(a,o,_){this.p=PropertyFactory.getProp(o,a.v,1,0,_)}function PointEffect(a,o,_){this.p=PropertyFactory.getProp(o,a.v,1,0,_)}function LayerIndexEffect(a,o,_){this.p=PropertyFactory.getProp(o,a.v,0,0,_)}function MaskIndexEffect(a,o,_){this.p=PropertyFactory.getProp(o,a.v,0,0,_)}function CheckboxEffect(a,o,_){this.p=PropertyFactory.getProp(o,a.v,0,0,_)}function NoValueEffect(){this.p={}}function EffectsManager(a,o){var _=a.ef||[];this.effectElements=[];var b,$=_.length,_e;for(b=0;b<$;b+=1)_e=new GroupEffect(_[b],o),this.effectElements.push(_e)}function GroupEffect(a,o){this.init(a,o)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(a,o){this.data=a,this.effectElements=[],this.initDynamicPropertyContainer(o);var _,b=this.data.ef.length,$,_e=this.data.ef;for(_=0;_<b;_+=1){switch($=null,_e[_].ty){case 0:$=new SliderEffect(_e[_],o,this);break;case 1:$=new AngleEffect(_e[_],o,this);break;case 2:$=new ColorEffect(_e[_],o,this);break;case 3:$=new PointEffect(_e[_],o,this);break;case 4:case 7:$=new CheckboxEffect(_e[_],o,this);break;case 10:$=new LayerIndexEffect(_e[_],o,this);break;case 11:$=new MaskIndexEffect(_e[_],o,this);break;case 5:$=new EffectsManager(_e[_],o);break;default:$=new NoValueEffect(_e[_]);break}$&&this.effectElements.push($)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var o=0,_=this.data.masksProperties.length;o<_;){if(this.data.masksProperties[o].mode!=="n"&&this.data.masksProperties[o].cl!==!1)return!0;o+=1}return!1},initExpressions:function(){var o=getExpressionInterfaces();if(o){var _=o("layer"),b=o("effects"),$=o("shape"),_e=o("text"),et=o("comp");this.layerInterface=_(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var tt=b.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(tt),this.data.ty===0||this.data.xt?this.compInterface=et(this):this.data.ty===4?(this.layerInterface.shapeInterface=$(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=_e(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var o=getBlendMode(this.data.bm),_=this.baseElement||this.layerElement;_.style["mix-blend-mode"]=o},initBaseData:function(o,_,b){this.globalData=_,this.comp=b,this.data=o,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(o,_){var b,$=this.dynamicProperties.length;for(b=0;b<$;b+=1)(_||this._isParent&&this.dynamicProperties[b].propType==="transform")&&(this.dynamicProperties[b].getValue(),this.dynamicProperties[b]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(o){this.dynamicProperties.indexOf(o)===-1&&this.dynamicProperties.push(o)}};function FootageElement(a,o,_){this.initFrame(),this.initRenderable(),this.assetData=o.getAssetData(a.refId),this.footageData=o.imageLoader.getAsset(this.assetData),this.initBaseData(a,o,_)}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 o=a("footage");this.layerInterface=o(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(a,o,_){this.initFrame(),this.initRenderable(),this.assetData=o.getAssetData(a.refId),this.initBaseData(a,o,_),this._isPlaying=!1,this._canPlay=!1;var b=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(b),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,o.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 o=this.tm.v;this._currentTime=o}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 o,_=this.layers.length,b;for(this.completeLayers=!0,o=_-1;o>=0;o-=1)this.elements[o]||(b=this.layers[o],b.ip-b.st<=a-this.layers[o].st&&b.op-b.st>a-this.layers[o].st&&this.buildItem(o)),this.completeLayers=this.elements[o]?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,o=this.layers.length;for(a=0;a<o;a+=1)this.buildItem(a);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(a){this.completeLayers=!1;var o,_=a.length,b,$=this.layers.length;for(o=0;o<_;o+=1)for(b=0;b<$;){if(this.layers[b].id===a[o].id){this.layers[b]=a[o];break}b+=1}},BaseRenderer.prototype.setProjectInterface=function(a){this.globalData.projectInterface=a},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(a,o,_){for(var b=this.elements,$=this.layers,_e=0,et=$.length;_e<et;)$[_e].ind==o&&(!b[_e]||b[_e]===!0?(this.buildItem(_e),this.addPendingElement(a)):(_.push(b[_e]),b[_e].setAsParent(),$[_e].parent!==void 0?this.buildElementParenting(a,$[_e].parent,_):a.setHierarchy(_))),_e+=1},BaseRenderer.prototype.addPendingElement=function(a){this.pendingElements.push(a)},BaseRenderer.prototype.searchExtraCompositions=function(a){var o,_=a.length;for(o=0;o<_;o+=1)if(a[o].xt){var b=this.createComp(a[o]);b.initExpressions(),this.globalData.projectInterface.registerComposition(b)}},BaseRenderer.prototype.getElementById=function(a){var o,_=this.elements.length;for(o=0;o<_;o+=1)if(this.elements[o].data.ind===a)return this.elements[o];return null},BaseRenderer.prototype.getElementByPath=function(a){var o=a.shift(),_;if(typeof o=="number")_=this.elements[o];else{var b,$=this.elements.length;for(b=0;b<$;b+=1)if(this.elements[b].data.nm===o){_=this.elements[b];break}}return a.length===0?_:_.getElementByPath(a)},BaseRenderer.prototype.setupGlobalData=function(a,o){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(a),this.globalData.fontManager.addChars(a.chars),this.globalData.fontManager.addFonts(a.fonts,o),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 o=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:o,localMat:o,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 o,_=this.finalTransform.mat,b=0,$=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;b<$;){if(this.hierarchy[b].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}b+=1}if(this.finalTransform._matMdf)for(o=this.finalTransform.mProp.v.props,_.cloneFromProps(o),b=0;b<$;b+=1)_.multiply(this.hierarchy[b].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 o=0,_=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;o<_;)this.localTransforms[o]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[o]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),o+=1;if(this.finalTransform._localMatMdf){var b=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(b),o=1;o<_;o+=1){var $=this.localTransforms[o].matrix;b.multiply($)}b.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var _e=this.finalTransform.localOpacity;for(o=0;o<_;o+=1)_e*=this.localTransforms[o].opacity*.01;this.finalTransform.localOpacity=_e}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var o=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(o.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var _=0,b=o.length;for(_=0;_<b;_+=1)this.localTransforms.push(o[_])}}},globalToLocal:function(o){var _=[];_.push(this.finalTransform);for(var b=!0,$=this.comp;b;)$.finalTransform?($.data.hasMask&&_.splice(0,0,$.finalTransform),$=$.comp):b=!1;var _e,et=_.length,tt;for(_e=0;_e<et;_e+=1)tt=_[_e].mat.applyToPointArray(0,0,0),o=[o[0]-tt[0],o[1]-tt[1],0];return o},mHelper:new Matrix};function MaskElement(a,o,_){this.data=a,this.element=o,this.globalData=_,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var b=this.globalData.defs,$,_e=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(_e),this.solidPath="";var et,tt=this.masksProperties,rt=0,st=[],it,lt,at=createElementID(),ft,ht,pt,vt,ut="clipPath",ot="clip-path";for($=0;$<_e;$+=1)if((tt[$].mode!=="a"&&tt[$].mode!=="n"||tt[$].inv||tt[$].o.k!==100||tt[$].o.x)&&(ut="mask",ot="mask"),(tt[$].mode==="s"||tt[$].mode==="i")&&rt===0?(ft=createNS("rect"),ft.setAttribute("fill","#ffffff"),ft.setAttribute("width",this.element.comp.data.w||0),ft.setAttribute("height",this.element.comp.data.h||0),st.push(ft)):ft=null,et=createNS("path"),tt[$].mode==="n")this.viewData[$]={op:PropertyFactory.getProp(this.element,tt[$].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,tt[$],3),elem:et,lastPath:""},b.appendChild(et);else{rt+=1,et.setAttribute("fill",tt[$].mode==="s"?"#000000":"#ffffff"),et.setAttribute("clip-rule","nonzero");var nt;if(tt[$].x.k!==0?(ut="mask",ot="mask",vt=PropertyFactory.getProp(this.element,tt[$].x,0,null,this.element),nt=createElementID(),ht=createNS("filter"),ht.setAttribute("id",nt),pt=createNS("feMorphology"),pt.setAttribute("operator","erode"),pt.setAttribute("in","SourceGraphic"),pt.setAttribute("radius","0"),ht.appendChild(pt),b.appendChild(ht),et.setAttribute("stroke",tt[$].mode==="s"?"#000000":"#ffffff")):(pt=null,vt=null),this.storedData[$]={elem:et,x:vt,expan:pt,lastPath:"",lastOperator:"",filterId:nt,lastRadius:0},tt[$].mode==="i"){lt=st.length;var dt=createNS("g");for(it=0;it<lt;it+=1)dt.appendChild(st[it]);var yt=createNS("mask");yt.setAttribute("mask-type","alpha"),yt.setAttribute("id",at+"_"+rt),yt.appendChild(et),b.appendChild(yt),dt.setAttribute("mask","url("+getLocationHref()+"#"+at+"_"+rt+")"),st.length=0,st.push(dt)}else st.push(et);tt[$].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[$]={elem:et,lastPath:"",op:PropertyFactory.getProp(this.element,tt[$].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,tt[$],3),invRect:ft},this.viewData[$].prop.k||this.drawPath(tt[$],this.viewData[$].prop.v,this.viewData[$])}for(this.maskElement=createNS(ut),_e=st.length,$=0;$<_e;$+=1)this.maskElement.appendChild(st[$]);rt>0&&(this.maskElement.setAttribute("id",at),this.element.maskedElement.setAttribute(ot,"url("+getLocationHref()+"#"+at+")"),b.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 o=this.element.finalTransform.mat,_,b=this.masksProperties.length;for(_=0;_<b;_+=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",o.getInverseMatrix().to2dCSS()),this.storedData[_].x&&(this.storedData[_].x._mdf||a))){var $=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+")")),$.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,o,_){var b=" M"+o.v[0][0]+","+o.v[0][1],$,_e;for(_e=o._length,$=1;$<_e;$+=1)b+=" C"+o.o[$-1][0]+","+o.o[$-1][1]+" "+o.i[$][0]+","+o.i[$][1]+" "+o.v[$][0]+","+o.v[$][1];if(o.c&&_e>1&&(b+=" C"+o.o[$-1][0]+","+o.o[$-1][1]+" "+o.i[0][0]+","+o.i[0][1]+" "+o.v[0][0]+","+o.v[0][1]),_.lastPath!==b){var et="";_.elem&&(o.c&&(et=a.inv?this.solidPath+b:b),_.elem.setAttribute("d",et)),_.lastPath=b}},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=o,a.createAlphaToLuminanceFilter=_;function o(b,$){var _e=createNS("filter");return _e.setAttribute("id",b),$!==!0&&(_e.setAttribute("filterUnits","objectBoundingBox"),_e.setAttribute("x","0%"),_e.setAttribute("y","0%"),_e.setAttribute("width","100%"),_e.setAttribute("height","100%")),_e}function _(){var b=createNS("feColorMatrix");return b.setAttribute("type","matrix"),b.setAttribute("color-interpolation-filters","sRGB"),b.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),b}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 o,_="SourceGraphic",b=a.data.ef?a.data.ef.length:0,$=createElementID(),_e=filtersFactory.createFilter($,!0),et=0;this.filters=[];var tt;for(o=0;o<b;o+=1){tt=null;var rt=a.data.ef[o].ty;if(registeredEffects$1[rt]){var st=registeredEffects$1[rt].effect;tt=new st(_e,a.effectsManager.effectElements[o],a,idPrefix+et,_),_=idPrefix+et,registeredEffects$1[rt].countsAsEffect&&(et+=1)}tt&&this.filters.push(tt)}et&&(a.globalData.defs.appendChild(_e),a.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+$+")")),this.filters.length&&a.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(a){var o,_=this.filters.length;for(o=0;o<_;o+=1)this.filters[o].renderFrame(a)},SVGEffects.prototype.getEffects=function(a){var o,_=this.filters.length,b=[];for(o=0;o<_;o+=1)this.filters[o].type===a&&b.push(this.filters[o]);return b};function registerEffect$1(a,o,_){registeredEffects$1[a]={effect:o,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 o=null;if(this.data.td){this.matteMasks={};var _=createNS("g");_.setAttribute("id",this.layerId),_.appendChild(this.layerElement),o=_,this.globalData.defs.appendChild(_)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),o=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 b=createNS("clipPath"),$=createNS("path");$.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var _e=createElementID();if(b.setAttribute("id",_e),b.appendChild($),this.globalData.defs.appendChild(b),this.checkMasks()){var et=createNS("g");et.setAttribute("clip-path","url("+getLocationHref()+"#"+_e+")"),et.appendChild(this.layerElement),this.transformedElement=et,o?o.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+_e+")")}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(o){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[o]){var _=this.layerId+"_"+o,b,$,_e,et;if(o===1||o===3){var tt=createNS("mask");tt.setAttribute("id",_),tt.setAttribute("mask-type",o===3?"luminance":"alpha"),_e=createNS("use"),_e.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),tt.appendChild(_e),this.globalData.defs.appendChild(tt),!featureSupport.maskType&&o===1&&(tt.setAttribute("mask-type","luminance"),b=createElementID(),$=filtersFactory.createFilter(b),this.globalData.defs.appendChild($),$.appendChild(filtersFactory.createAlphaToLuminanceFilter()),et=createNS("g"),et.appendChild(_e),tt.appendChild(et),et.setAttribute("filter","url("+getLocationHref()+"#"+b+")"))}else if(o===2){var rt=createNS("mask");rt.setAttribute("id",_),rt.setAttribute("mask-type","alpha");var st=createNS("g");rt.appendChild(st),b=createElementID(),$=filtersFactory.createFilter(b);var it=createNS("feComponentTransfer");it.setAttribute("in","SourceGraphic"),$.appendChild(it);var lt=createNS("feFuncA");lt.setAttribute("type","table"),lt.setAttribute("tableValues","1.0 0.0"),it.appendChild(lt),this.globalData.defs.appendChild($);var at=createNS("rect");at.setAttribute("width",this.comp.data.w),at.setAttribute("height",this.comp.data.h),at.setAttribute("x","0"),at.setAttribute("y","0"),at.setAttribute("fill","#ffffff"),at.setAttribute("opacity","0"),st.setAttribute("filter","url("+getLocationHref()+"#"+b+")"),st.appendChild(at),_e=createNS("use"),_e.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),st.appendChild(_e),featureSupport.maskType||(rt.setAttribute("mask-type","luminance"),$.appendChild(filtersFactory.createAlphaToLuminanceFilter()),et=createNS("g"),st.appendChild(at),et.appendChild(this.layerElement),st.appendChild(et)),this.globalData.defs.appendChild(rt)}this.matteMasks[o]=_}return this.matteMasks[o]},setMatte:function(o){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+o+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(o){this.hierarchy=o},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(_,b,$){this.initFrame(),this.initBaseData(_,b,$),this.initTransform(_,b,$),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,o,_){this.assetData=o.getAssetData(a.refId),this.assetData&&this.assetData.sid&&(this.assetData=o.slotManager.getProp(this.assetData)),this.initElement(a,o,_),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,o){this.elem=a,this.pos=o}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(o){var _,b=this.shapeModifiers.length;for(_=0;_<b;_+=1)this.shapeModifiers[_].addShape(o)},isShapeInAnimatedModifiers:function(o){for(var _=0,b=this.shapeModifiers.length;_<b;)if(this.shapeModifiers[_].isAnimatedWithShape(o))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var o,_=this.shapes.length;for(o=0;o<_;o+=1)this.shapes[o].sh.reset();_=this.shapeModifiers.length;var b;for(o=_-1;o>=0&&(b=this.shapeModifiers[o].processShapes(this._isFirstFrame),!b);o-=1);}},searchProcessedElement:function(o){for(var _=this.processedElements,b=0,$=_.length;b<$;){if(_[b].elem===o)return _[b].pos;b+=1}return 0},addProcessedElement:function(o,_){for(var b=this.processedElements,$=b.length;$;)if($-=1,b[$].elem===o){b[$].pos=_;return}b.push(new ProcessedElement(o,_))},prepareFrame:function(o){this.prepareRenderableFrame(o),this.prepareProperties(o,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(a,o,_){this.caches=[],this.styles=[],this.transformers=a,this.lStr="",this.sh=_,this.lvl=o,this._isAnimated=!!_.k;for(var b=0,$=a.length;b<$;){if(a[b].mProps.dynamicProperties.length){this._isAnimated=!0;break}b+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(a,o){this.data=a,this.type=a.ty,this.d="",this.lvl=o,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,o,_,b){this.elem=a,this.frameId=-1,this.dataProps=createSizedArray(o.length),this.renderer=_,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",o.length?o.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(b);var $,_e=o.length||0,et;for($=0;$<_e;$+=1)et=PropertyFactory.getProp(a,o[$].v,0,0,this),this.k=et.k||this.k,this.dataProps[$]={n:o[$].n,p:et};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 o=0,_=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),o=0;o<_;o+=1)this.dataProps[o].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[o].p.v:this.dashArray[o]=this.dataProps[o].p.v:this.dashoffset[0]=this.dataProps[o].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(a,o,_){this.initDynamicPropertyContainer(a),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(a,o.o,0,.01,this),this.w=PropertyFactory.getProp(a,o.w,0,null,this),this.d=new DashProperty(a,o.d||{},"svg",this),this.c=PropertyFactory.getProp(a,o.c,1,255,this),this.style=_,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(a,o,_){this.initDynamicPropertyContainer(a),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(a,o.o,0,.01,this),this.c=PropertyFactory.getProp(a,o.c,1,255,this),this.style=_}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(a,o,_){this.initDynamicPropertyContainer(a),this.getValue=this.iterateDynamicProperties,this.style=_}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(a,o,_){this.data=o,this.c=createTypedArray("uint8c",o.p*4);var b=o.k.k[0].s?o.k.k[0].s.length-o.p*4:o.k.k.length-o.p*4;this.o=createTypedArray("float32",b),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=b,this.initDynamicPropertyContainer(_),this.prop=PropertyFactory.getProp(a,o.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(a,o){for(var _=0,b=this.o.length/2,$;_<b;){if($=Math.abs(a[_*4]-a[o*4+_*2]),$>.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,o=this.data.k.k.length;a<o;){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 o,_=this.data.p*4,b,$;for(o=0;o<_;o+=1)b=o%4===0?100:255,$=Math.round(this.prop.v[o]*b),this.c[o]!==$&&(this.c[o]=$,this._cmdf=!a);if(this.o.length)for(_=this.prop.v.length,o=this.data.p*4;o<_;o+=1)b=o%2===0?100:1,$=o%2===0?Math.round(this.prop.v[o]*100):this.prop.v[o],this.o[o-this.data.p*4]!==$&&(this.o[o-this.data.p*4]=$,this._omdf=!a);this._mdf=!a}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(a,o,_){this.initDynamicPropertyContainer(a),this.getValue=this.iterateDynamicProperties,this.initGradientData(a,o,_)}SVGGradientFillStyleData.prototype.initGradientData=function(a,o,_){this.o=PropertyFactory.getProp(a,o.o,0,.01,this),this.s=PropertyFactory.getProp(a,o.s,1,null,this),this.e=PropertyFactory.getProp(a,o.e,1,null,this),this.h=PropertyFactory.getProp(a,o.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(a,o.a||{k:0},0,degToRads,this),this.g=new GradientProperty(a,o.g,this),this.style=_,this.stops=[],this.setGradientData(_.pElem,o),this.setGradientOpacity(o,_),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(a,o){var _=createElementID(),b=createNS(o.t===1?"linearGradient":"radialGradient");b.setAttribute("id",_),b.setAttribute("spreadMethod","pad"),b.setAttribute("gradientUnits","userSpaceOnUse");var $=[],_e,et,tt;for(tt=o.g.p*4,et=0;et<tt;et+=4)_e=createNS("stop"),b.appendChild(_e),$.push(_e);a.setAttribute(o.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+_+")"),this.gf=b,this.cst=$},SVGGradientFillStyleData.prototype.setGradientOpacity=function(a,o){if(this.g._hasOpacity&&!this.g._collapsable){var _,b,$,_e=createNS("mask"),et=createNS("path");_e.appendChild(et);var tt=createElementID(),rt=createElementID();_e.setAttribute("id",rt);var st=createNS(a.t===1?"linearGradient":"radialGradient");st.setAttribute("id",tt),st.setAttribute("spreadMethod","pad"),st.setAttribute("gradientUnits","userSpaceOnUse"),$=a.g.k.k[0].s?a.g.k.k[0].s.length:a.g.k.k.length;var it=this.stops;for(b=a.g.p*4;b<$;b+=2)_=createNS("stop"),_.setAttribute("stop-color","rgb(255,255,255)"),st.appendChild(_),it.push(_);et.setAttribute(a.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+tt+")"),a.ty==="gs"&&(et.setAttribute("stroke-linecap",lineCapEnum[a.lc||2]),et.setAttribute("stroke-linejoin",lineJoinEnum[a.lj||2]),a.lj===1&&et.setAttribute("stroke-miterlimit",a.ml)),this.of=st,this.ms=_e,this.ost=it,this.maskId=rt,o.msElem=et}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(a,o,_){this.initDynamicPropertyContainer(a),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(a,o.w,0,null,this),this.d=new DashProperty(a,o.d||{},"svg",this),this.initGradientData(a,o,_),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(a,o,_){this.transform={mProps:a,op:o,container:_},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(o,_,b,$){if(_===0)return"";var _e=o.o,et=o.i,tt=o.v,rt,st=" M"+$.applyToPointStringified(tt[0][0],tt[0][1]);for(rt=1;rt<_;rt+=1)st+=" C"+$.applyToPointStringified(_e[rt-1][0],_e[rt-1][1])+" "+$.applyToPointStringified(et[rt][0],et[rt][1])+" "+$.applyToPointStringified(tt[rt][0],tt[rt][1]);return b&&_&&(st+=" C"+$.applyToPointStringified(_e[rt-1][0],_e[rt-1][1])+" "+$.applyToPointStringified(et[0][0],et[0][1])+" "+$.applyToPointStringified(tt[0][0],tt[0][1]),st+="z"),st},SVGElementsRenderer=function(){var a=new Matrix,o=new Matrix,_={createRenderFunction:b};function b(lt){switch(lt.ty){case"fl":return tt;case"gf":return st;case"gs":return rt;case"st":return it;case"sh":case"el":case"rc":case"sr":return et;case"tr":return $;case"no":return _e;default:return null}}function $(lt,at,ft){(ft||at.transform.op._mdf)&&at.transform.container.setAttribute("opacity",at.transform.op.v),(ft||at.transform.mProps._mdf)&&at.transform.container.setAttribute("transform",at.transform.mProps.v.to2dCSS())}function _e(){}function et(lt,at,ft){var ht,pt,vt,ut,ot,nt,dt=at.styles.length,yt=at.lvl,_t,At,xt,wt;for(nt=0;nt<dt;nt+=1){if(ut=at.sh._mdf||ft,at.styles[nt].lvl<yt){for(At=o.reset(),xt=yt-at.styles[nt].lvl,wt=at.transformers.length-1;!ut&&xt>0;)ut=at.transformers[wt].mProps._mdf||ut,xt-=1,wt-=1;if(ut)for(xt=yt-at.styles[nt].lvl,wt=at.transformers.length-1;xt>0;)At.multiply(at.transformers[wt].mProps.v),xt-=1,wt-=1}else At=a;if(_t=at.sh.paths,pt=_t._length,ut){for(vt="",ht=0;ht<pt;ht+=1)ot=_t.shapes[ht],ot&&ot._length&&(vt+=buildShapeString(ot,ot._length,ot.c,At));at.caches[nt]=vt}else vt=at.caches[nt];at.styles[nt].d+=lt.hd===!0?"":vt,at.styles[nt]._mdf=ut||at.styles[nt]._mdf}}function tt(lt,at,ft){var ht=at.style;(at.c._mdf||ft)&&ht.pElem.setAttribute("fill","rgb("+bmFloor(at.c.v[0])+","+bmFloor(at.c.v[1])+","+bmFloor(at.c.v[2])+")"),(at.o._mdf||ft)&&ht.pElem.setAttribute("fill-opacity",at.o.v)}function rt(lt,at,ft){st(lt,at,ft),it(lt,at,ft)}function st(lt,at,ft){var ht=at.gf,pt=at.g._hasOpacity,vt=at.s.v,ut=at.e.v;if(at.o._mdf||ft){var ot=lt.ty==="gf"?"fill-opacity":"stroke-opacity";at.style.pElem.setAttribute(ot,at.o.v)}if(at.s._mdf||ft){var nt=lt.t===1?"x1":"cx",dt=nt==="x1"?"y1":"cy";ht.setAttribute(nt,vt[0]),ht.setAttribute(dt,vt[1]),pt&&!at.g._collapsable&&(at.of.setAttribute(nt,vt[0]),at.of.setAttribute(dt,vt[1]))}var yt,_t,At,xt;if(at.g._cmdf||ft){yt=at.cst;var wt=at.g.c;for(At=yt.length,_t=0;_t<At;_t+=1)xt=yt[_t],xt.setAttribute("offset",wt[_t*4]+"%"),xt.setAttribute("stop-color","rgb("+wt[_t*4+1]+","+wt[_t*4+2]+","+wt[_t*4+3]+")")}if(pt&&(at.g._omdf||ft)){var bt=at.g.o;for(at.g._collapsable?yt=at.cst:yt=at.ost,At=yt.length,_t=0;_t<At;_t+=1)xt=yt[_t],at.g._collapsable||xt.setAttribute("offset",bt[_t*2]+"%"),xt.setAttribute("stop-opacity",bt[_t*2+1])}if(lt.t===1)(at.e._mdf||ft)&&(ht.setAttribute("x2",ut[0]),ht.setAttribute("y2",ut[1]),pt&&!at.g._collapsable&&(at.of.setAttribute("x2",ut[0]),at.of.setAttribute("y2",ut[1])));else{var It;if((at.s._mdf||at.e._mdf||ft)&&(It=Math.sqrt(Math.pow(vt[0]-ut[0],2)+Math.pow(vt[1]-ut[1],2)),ht.setAttribute("r",It),pt&&!at.g._collapsable&&at.of.setAttribute("r",It)),at.s._mdf||at.e._mdf||at.h._mdf||at.a._mdf||ft){It||(It=Math.sqrt(Math.pow(vt[0]-ut[0],2)+Math.pow(vt[1]-ut[1],2)));var Nt=Math.atan2(ut[1]-vt[1],ut[0]-vt[0]),Ct=at.h.v;Ct>=1?Ct=.99:Ct<=-1&&(Ct=-.99);var jt=It*Ct,Et=Math.cos(Nt+at.a.v)*jt+vt[0],gt=Math.sin(Nt+at.a.v)*jt+vt[1];ht.setAttribute("fx",Et),ht.setAttribute("fy",gt),pt&&!at.g._collapsable&&(at.of.setAttribute("fx",Et),at.of.setAttribute("fy",gt))}}}function it(lt,at,ft){var ht=at.style,pt=at.d;pt&&(pt._mdf||ft)&&pt.dashStr&&(ht.pElem.setAttribute("stroke-dasharray",pt.dashStr),ht.pElem.setAttribute("stroke-dashoffset",pt.dashoffset[0])),at.c&&(at.c._mdf||ft)&&ht.pElem.setAttribute("stroke","rgb("+bmFloor(at.c.v[0])+","+bmFloor(at.c.v[1])+","+bmFloor(at.c.v[2])+")"),(at.o._mdf||ft)&&ht.pElem.setAttribute("stroke-opacity",at.o.v),(at.w._mdf||ft)&&(ht.pElem.setAttribute("stroke-width",at.w.v),ht.msElem&&ht.msElem.setAttribute("stroke-width",at.w.v))}return _}();function SVGShapeElement(a,o,_){this.shapes=[],this.shapesData=a.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(a,o,_),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,o=this.shapes.length,_,b,$=this.stylesList.length,_e,et=[],tt=!1;for(b=0;b<$;b+=1){for(_e=this.stylesList[b],tt=!1,et.length=0,a=0;a<o;a+=1)_=this.shapes[a],_.styles.indexOf(_e)!==-1&&(et.push(_),tt=_._isAnimated||tt);et.length>1&&tt&&this.setShapesAsAnimated(et)}},SVGShapeElement.prototype.setShapesAsAnimated=function(a){var o,_=a.length;for(o=0;o<_;o+=1)a[o].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(a,o){var _,b=new SVGStyleData(a,o),$=b.pElem;if(a.ty==="st")_=new SVGStrokeStyleData(this,a,b);else if(a.ty==="fl")_=new SVGFillStyleData(this,a,b);else if(a.ty==="gf"||a.ty==="gs"){var _e=a.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;_=new _e(this,a,b),this.globalData.defs.appendChild(_.gf),_.maskId&&(this.globalData.defs.appendChild(_.ms),this.globalData.defs.appendChild(_.of),$.setAttribute("mask","url("+getLocationHref()+"#"+_.maskId+")"))}else a.ty==="no"&&(_=new SVGNoStyleData(this,a,b));return(a.ty==="st"||a.ty==="gs")&&($.setAttribute("stroke-linecap",lineCapEnum[a.lc||2]),$.setAttribute("stroke-linejoin",lineJoinEnum[a.lj||2]),$.setAttribute("fill-opacity","0"),a.lj===1&&$.setAttribute("stroke-miterlimit",a.ml)),a.r===2&&$.setAttribute("fill-rule","evenodd"),a.ln&&$.setAttribute("id",a.ln),a.cl&&$.setAttribute("class",a.cl),a.bm&&($.style["mix-blend-mode"]=getBlendMode(a.bm)),this.stylesList.push(b),this.addToAnimatedContents(a,_),_},SVGShapeElement.prototype.createGroupElement=function(a){var o=new ShapeGroupData;return a.ln&&o.gr.setAttribute("id",a.ln),a.cl&&o.gr.setAttribute("class",a.cl),a.bm&&(o.gr.style["mix-blend-mode"]=getBlendMode(a.bm)),o},SVGShapeElement.prototype.createTransformElement=function(a,o){var _=TransformPropertyFactory.getTransformProperty(this,a,this),b=new SVGTransformData(_,_.o,o);return this.addToAnimatedContents(a,b),b},SVGShapeElement.prototype.createShapeElement=function(a,o,_){var b=4;a.ty==="rc"?b=5:a.ty==="el"?b=6:a.ty==="sr"&&(b=7);var $=ShapePropertyFactory.getShapeProp(this,a,b,this),_e=new SVGShapeData(o,_,$);return this.shapes.push(_e),this.addShapeToModifiers(_e),this.addToAnimatedContents(a,_e),_e},SVGShapeElement.prototype.addToAnimatedContents=function(a,o){for(var _=0,b=this.animatedContents.length;_<b;){if(this.animatedContents[_].element===o)return;_+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(a),element:o,data:a})},SVGShapeElement.prototype.setElementStyles=function(a){var o=a.styles,_,b=this.stylesList.length;for(_=0;_<b;_+=1)o.indexOf(this.stylesList[_])===-1&&!this.stylesList[_].closed&&o.push(this.stylesList[_])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var a,o=this.itemsData.length;for(a=0;a<o;a+=1)this.prevViewData[a]=this.itemsData[a];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),o=this.dynamicProperties.length,a=0;a<o;a+=1)this.dynamicProperties[a].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(a,o,_,b,$,_e,et){var tt=[].concat(_e),rt,st=a.length-1,it,lt,at=[],ft=[],ht,pt,vt;for(rt=st;rt>=0;rt-=1){if(vt=this.searchProcessedElement(a[rt]),vt?o[rt]=_[vt-1]:a[rt]._render=et,a[rt].ty==="fl"||a[rt].ty==="st"||a[rt].ty==="gf"||a[rt].ty==="gs"||a[rt].ty==="no")vt?o[rt].style.closed=a[rt].hd:o[rt]=this.createStyleElement(a[rt],$),a[rt]._render&&o[rt].style.pElem.parentNode!==b&&b.appendChild(o[rt].style.pElem),at.push(o[rt].style);else if(a[rt].ty==="gr"){if(!vt)o[rt]=this.createGroupElement(a[rt]);else for(lt=o[rt].it.length,it=0;it<lt;it+=1)o[rt].prevViewData[it]=o[rt].it[it];this.searchShapes(a[rt].it,o[rt].it,o[rt].prevViewData,o[rt].gr,$+1,tt,et),a[rt]._render&&o[rt].gr.parentNode!==b&&b.appendChild(o[rt].gr)}else a[rt].ty==="tr"?(vt||(o[rt]=this.createTransformElement(a[rt],b)),ht=o[rt].transform,tt.push(ht)):a[rt].ty==="sh"||a[rt].ty==="rc"||a[rt].ty==="el"||a[rt].ty==="sr"?(vt||(o[rt]=this.createShapeElement(a[rt],tt,$)),this.setElementStyles(o[rt])):a[rt].ty==="tm"||a[rt].ty==="rd"||a[rt].ty==="ms"||a[rt].ty==="pb"||a[rt].ty==="zz"||a[rt].ty==="op"?(vt?(pt=o[rt],pt.closed=!1):(pt=ShapeModifiers.getModifier(a[rt].ty),pt.init(this,a[rt]),o[rt]=pt,this.shapeModifiers.push(pt)),ft.push(pt)):a[rt].ty==="rp"&&(vt?(pt=o[rt],pt.closed=!0):(pt=ShapeModifiers.getModifier(a[rt].ty),o[rt]=pt,pt.init(this,a,rt,o),this.shapeModifiers.push(pt),et=!1),ft.push(pt));this.addProcessedElement(a[rt],rt+1)}for(st=at.length,rt=0;rt<st;rt+=1)at[rt].closed=!0;for(st=ft.length,rt=0;rt<st;rt+=1)ft[rt].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var a,o=this.stylesList.length;for(a=0;a<o;a+=1)this.stylesList[a].reset();for(this.renderShape(),a=0;a<o;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,o=this.animatedContents.length,_;for(a=0;a<o;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,o,_,b,$,_e){this.o=a,this.sw=o,this.sc=_,this.fc=b,this.m=$,this.p=_e,this._mdf={o:!0,sw:!!o,sc:!!_,fc:!!b,m:!0,p:!0}}LetterProps.prototype.update=function(a,o,_,b,$,_e){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 et=!1;return this.o!==a&&(this.o=a,this._mdf.o=!0,et=!0),this.sw!==o&&(this.sw=o,this._mdf.sw=!0,et=!0),this.sc!==_&&(this.sc=_,this._mdf.sc=!0,et=!0),this.fc!==b&&(this.fc=b,this._mdf.fc=!0,et=!0),this.m!==$&&(this.m=$,this._mdf.m=!0,et=!0),_e.length&&(this.p[0]!==_e[0]||this.p[1]!==_e[1]||this.p[4]!==_e[4]||this.p[5]!==_e[5]||this.p[12]!==_e[12]||this.p[13]!==_e[13])&&(this.p=_e,this._mdf.p=!0,et=!0),et};function TextProperty(a,o){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,o.d&&o.d.sid&&(o.d=a.globalData.slotManager.getProp(o.d)),this.data=o,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,o){for(var _ in o)Object.prototype.hasOwnProperty.call(o,_)&&(a[_]=o[_]);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 o=this.currentData,_=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var b,$=this.effectsSequence.length,_e=a||this.data.d.k[this.keysIndex].s;for(b=0;b<$;b+=1)_!==this.keysIndex?_e=this.effectsSequence[b](_e,_e.t):_e=this.effectsSequence[b](this.currentData,_e.t);o!==_e&&this.setCurrentData(_e),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,o=this.elem.comp.renderedFrame,_=0,b=a.length;_<=b-1&&!(_===b-1||a[_+1].t>o);)_+=1;return this.keysIndex!==_&&(this.keysIndex=_),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(a){for(var o=[],_=0,b=a.length,$,_e,et=!1,tt=!1,rt="";_<b;)et=tt,tt=!1,$=a.charCodeAt(_),rt=a.charAt(_),FontManager.isCombinedCharacter($)?et=!0:$>=55296&&$<=56319?FontManager.isRegionalFlag(a,_)?rt=a.substr(_,14):(_e=a.charCodeAt(_+1),_e>=56320&&_e<=57343&&(FontManager.isModifier($,_e)?(rt=a.substr(_,2),et=!0):FontManager.isFlagEmoji(a.substr(_,4))?rt=a.substr(_,4):rt=a.substr(_,2))):$>56319?(_e=a.charCodeAt(_+1),FontManager.isVariationSelector($)&&(et=!0)):FontManager.isZeroWidthJoiner($)&&(et=!0,tt=!0),et?(o[o.length-1]+=rt,et=!1):o.push(rt),_+=rt.length;return o},TextProperty.prototype.completeTextData=function(a){a.__complete=!0;var o=this.elem.globalData.fontManager,_=this.data,b=[],$,_e,et,tt=0,rt,st=_.m.g,it=0,lt=0,at=0,ft=[],ht=0,pt=0,vt,ut,ot=o.getFontByName(a.f),nt,dt=0,yt=getFontProperties(ot);a.fWeight=yt.weight,a.fStyle=yt.style,a.finalSize=a.s,a.finalText=this.buildFinalText(a.t),_e=a.finalText.length,a.finalLineHeight=a.lh;var _t=a.tr/1e3*a.finalSize,At;if(a.sz)for(var xt=!0,wt=a.sz[0],bt=a.sz[1],It,Nt;xt;){Nt=this.buildFinalText(a.t),It=0,ht=0,_e=Nt.length,_t=a.tr/1e3*a.finalSize;var Ct=-1;for($=0;$<_e;$+=1)At=Nt[$].charCodeAt(0),et=!1,Nt[$]===" "?Ct=$:(At===13||At===3)&&(ht=0,et=!0,It+=a.finalLineHeight||a.finalSize*1.2),o.chars?(nt=o.getCharData(Nt[$],ot.fStyle,ot.fFamily),dt=et?0:nt.w*a.finalSize/100):dt=o.measureText(Nt[$],a.f,a.finalSize),ht+dt>wt&&Nt[$]!==" "?(Ct===-1?_e+=1:$=Ct,It+=a.finalLineHeight||a.finalSize*1.2,Nt.splice($,Ct===$?1:0,"\r"),Ct=-1,ht=0):(ht+=dt,ht+=_t);It+=ot.ascent*a.finalSize/100,this.canResize&&a.finalSize>this.minimumFontSize&&bt<It?(a.finalSize-=1,a.finalLineHeight=a.finalSize*a.lh/a.s):(a.finalText=Nt,_e=a.finalText.length,xt=!1)}ht=-_t,dt=0;var jt=0,Et;for($=0;$<_e;$+=1)if(et=!1,Et=a.finalText[$],At=Et.charCodeAt(0),At===13||At===3?(jt=0,ft.push(ht),pt=ht>pt?ht:pt,ht=-2*_t,rt="",et=!0,at+=1):rt=Et,o.chars?(nt=o.getCharData(Et,ot.fStyle,o.getFontByName(a.f).fFamily),dt=et?0:nt.w*a.finalSize/100):dt=o.measureText(rt,a.f,a.finalSize),Et===" "?jt+=dt+_t:(ht+=dt+_t+jt,jt=0),b.push({l:dt,an:dt,add:it,n:et,anIndexes:[],val:rt,line:at,animatorJustifyOffset:0}),st==2){if(it+=dt,rt===""||rt===" "||$===_e-1){for((rt===""||rt===" ")&&(it-=dt);lt<=$;)b[lt].an=it,b[lt].ind=tt,b[lt].extra=dt,lt+=1;tt+=1,it=0}}else if(st==3){if(it+=dt,rt===""||$===_e-1){for(rt===""&&(it-=dt);lt<=$;)b[lt].an=it,b[lt].ind=tt,b[lt].extra=dt,lt+=1;it=0,tt+=1}}else b[tt].ind=tt,b[tt].extra=0,tt+=1;if(a.l=b,pt=ht>pt?ht:pt,ft.push(ht),a.sz)a.boxWidth=a.sz[0],a.justifyOffset=0;else switch(a.boxWidth=pt,a.j){case 1:a.justifyOffset=-a.boxWidth;break;case 2:a.justifyOffset=-a.boxWidth/2;break;default:a.justifyOffset=0}a.lineWidths=ft;var gt=_.a,St,ct;ut=gt.length;var mt,Rt,Tt=[];for(vt=0;vt<ut;vt+=1){for(St=gt[vt],St.a.sc&&(a.strokeColorAnim=!0),St.a.sw&&(a.strokeWidthAnim=!0),(St.a.fc||St.a.fh||St.a.fs||St.a.fb)&&(a.fillColorAnim=!0),Rt=0,mt=St.s.b,$=0;$<_e;$+=1)ct=b[$],ct.anIndexes[vt]=Rt,(mt==1&&ct.val!==""||mt==2&&ct.val!==""&&ct.val!==" "||mt==3&&(ct.n||ct.val==" "||$==_e-1)||mt==4&&(ct.n||$==_e-1))&&(St.s.rn===1&&Tt.push(Rt),Rt+=1);_.a[vt].s.totalChars=Rt;var Dt=-1,kt;if(St.s.rn===1)for($=0;$<_e;$+=1)ct=b[$],Dt!=ct.anIndexes[vt]&&(Dt=ct.anIndexes[vt],kt=Tt.splice(Math.floor(Math.random()*Tt.length),1)[0]),ct.anIndexes[vt]=kt}a.yOffset=a.finalLineHeight||a.finalSize*1.2,a.ls=a.ls||0,a.ascent=ot.ascent*a.finalSize/100},TextProperty.prototype.updateDocumentData=function(a,o){o=o===void 0?this.keysIndex:o;var _=this.copyData({},this.data.d.k[o].s);_=this.copyData(_,a),this.data.d.k[o].s=_,this.recalculate(o),this.setCurrentData(_),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(a){var o=this.data.d.k[a].s;o.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(o)},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,o=Math.min,_=Math.floor;function b(_e,et){this._currentTextLength=-1,this.k=!1,this.data=et,this.elem=_e,this.comp=_e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(_e),this.s=PropertyFactory.getProp(_e,et.s||{k:0},0,0,this),"e"in et?this.e=PropertyFactory.getProp(_e,et.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(_e,et.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(_e,et.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(_e,et.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(_e,et.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(_e,et.a,0,.01,this),this.dynamicProperties.length||this.getValue()}b.prototype={getMult:function(et){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var tt=0,rt=0,st=1,it=1;this.ne.v>0?tt=this.ne.v/100:rt=-this.ne.v/100,this.xe.v>0?st=1-this.xe.v/100:it=1+this.xe.v/100;var lt=BezierFactory.getBezierEasing(tt,rt,st,it).get,at=0,ft=this.finalS,ht=this.finalE,pt=this.data.sh;if(pt===2)ht===ft?at=et>=ht?1:0:at=a(0,o(.5/(ht-ft)+(et-ft)/(ht-ft),1)),at=lt(at);else if(pt===3)ht===ft?at=et>=ht?0:1:at=1-a(0,o(.5/(ht-ft)+(et-ft)/(ht-ft),1)),at=lt(at);else if(pt===4)ht===ft?at=0:(at=a(0,o(.5/(ht-ft)+(et-ft)/(ht-ft),1)),at<.5?at*=2:at=1-2*(at-.5)),at=lt(at);else if(pt===5){if(ht===ft)at=0;else{var vt=ht-ft;et=o(a(0,et+.5-ft),ht-ft);var ut=-vt/2+et,ot=vt/2;at=Math.sqrt(1-ut*ut/(ot*ot))}at=lt(at)}else pt===6?(ht===ft?at=0:(et=o(a(0,et+.5-ft),ht-ft),at=(1+Math.cos(Math.PI+Math.PI*2*et/(ht-ft)))/2),at=lt(at)):(et>=_(ft)&&(et-ft<0?at=a(0,o(o(ht,1)-(ft-et),1)):at=a(0,o(ht-et,1))),at=lt(at));if(this.sm.v!==100){var nt=this.sm.v*.01;nt===0&&(nt=1e-8);var dt=.5-nt*.5;at<dt?at=0:(at=(at-dt)/nt,at>1&&(at=1))}return at*this.a.v},getValue:function(et){this.iterateDynamicProperties(),this._mdf=et||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,et&&this.data.r===2&&(this.e.v=this._currentTextLength);var tt=this.data.r===2?1:100/this.data.totalChars,rt=this.o.v/tt,st=this.s.v/tt+rt,it=this.e.v/tt+rt;if(st>it){var lt=st;st=it,it=lt}this.finalS=st,this.finalE=it}},extendPrototype([DynamicPropertyContainer],b);function $(_e,et,tt){return new b(_e,et)}return{getTextSelectorProp:$}}();function TextAnimatorDataProperty(a,o,_){var b={propType:!1},$=PropertyFactory.getProp,_e=o.a;this.a={r:_e.r?$(a,_e.r,0,degToRads,_):b,rx:_e.rx?$(a,_e.rx,0,degToRads,_):b,ry:_e.ry?$(a,_e.ry,0,degToRads,_):b,sk:_e.sk?$(a,_e.sk,0,degToRads,_):b,sa:_e.sa?$(a,_e.sa,0,degToRads,_):b,s:_e.s?$(a,_e.s,1,.01,_):b,a:_e.a?$(a,_e.a,1,0,_):b,o:_e.o?$(a,_e.o,0,.01,_):b,p:_e.p?$(a,_e.p,1,0,_):b,sw:_e.sw?$(a,_e.sw,0,0,_):b,sc:_e.sc?$(a,_e.sc,1,0,_):b,fc:_e.fc?$(a,_e.fc,1,0,_):b,fh:_e.fh?$(a,_e.fh,0,0,_):b,fs:_e.fs?$(a,_e.fs,0,.01,_):b,fb:_e.fb?$(a,_e.fb,0,.01,_):b,t:_e.t?$(a,_e.t,0,0,_):b},this.s=TextSelectorProp.getTextSelectorProp(a,o.s,_),this.s.t=o.s.t}function TextAnimatorProperty(a,o,_){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=a,this._renderType=o,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,o=this._textData.a.length,_,b=PropertyFactory.getProp;for(a=0;a<o;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:b(this._elem,this._textData.p.a,0,0,this),f:b(this._elem,this._textData.p.f,0,0,this),l:b(this._elem,this._textData.p.l,0,0,this),r:b(this._elem,this._textData.p.r,0,0,this),p:b(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=b(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(a,o){if(this.lettersChangedFlag=o,!(!this._mdf&&!this._isFirstFrame&&!o&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var _=this._moreOptions.alignment.v,b=this._animatorsData,$=this._textData,_e=this.mHelper,et=this._renderType,tt=this.renderedLetters.length,rt,st,it,lt,at=a.l,ft,ht,pt,vt,ut,ot,nt,dt,yt,_t,At,xt,wt,bt,It;if(this._hasMaskedPath){if(It=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Nt=It.v;this._pathData.r.v&&(Nt=Nt.reverse()),ft={tLength:0,segments:[]},lt=Nt._length-1;var Ct;for(xt=0,it=0;it<lt;it+=1)Ct=bez.buildBezierData(Nt.v[it],Nt.v[it+1],[Nt.o[it][0]-Nt.v[it][0],Nt.o[it][1]-Nt.v[it][1]],[Nt.i[it+1][0]-Nt.v[it+1][0],Nt.i[it+1][1]-Nt.v[it+1][1]]),ft.tLength+=Ct.segmentLength,ft.segments.push(Ct),xt+=Ct.segmentLength;it=lt,It.v.c&&(Ct=bez.buildBezierData(Nt.v[it],Nt.v[0],[Nt.o[it][0]-Nt.v[it][0],Nt.o[it][1]-Nt.v[it][1]],[Nt.i[0][0]-Nt.v[0][0],Nt.i[0][1]-Nt.v[0][1]]),ft.tLength+=Ct.segmentLength,ft.segments.push(Ct),xt+=Ct.segmentLength),this._pathData.pi=ft}if(ft=this._pathData.pi,ht=this._pathData.f.v,nt=0,ot=1,vt=0,ut=!0,_t=ft.segments,ht<0&&It.v.c)for(ft.tLength<Math.abs(ht)&&(ht=-Math.abs(ht)%ft.tLength),nt=_t.length-1,yt=_t[nt].points,ot=yt.length-1;ht<0;)ht+=yt[ot].partialLength,ot-=1,ot<0&&(nt-=1,yt=_t[nt].points,ot=yt.length-1);yt=_t[nt].points,dt=yt[ot-1],pt=yt[ot],At=pt.partialLength}lt=at.length,rt=0,st=0;var jt=a.finalSize*1.2*.714,Et=!0,gt,St,ct,mt,Rt;mt=b.length;var Tt,Dt=-1,kt,Ht,Pt,Lt=ht,Bt=nt,$t=ot,Vt=-1,Gt,zt,Qt,Kt,Ut,Jt,ur,ir,tr="",Zt=this.defaultPropsArray,Xt;if(a.j===2||a.j===1){var Mt=0,Ft=0,ar=a.j===2?-.5:-1,qt=0,sr=!0;for(it=0;it<lt;it+=1)if(at[it].n){for(Mt&&(Mt+=Ft);qt<it;)at[qt].animatorJustifyOffset=Mt,qt+=1;Mt=0,sr=!0}else{for(ct=0;ct<mt;ct+=1)gt=b[ct].a,gt.t.propType&&(sr&&a.j===2&&(Ft+=gt.t.v*ar),St=b[ct].s,Tt=St.getMult(at[it].anIndexes[ct],$.a[ct].s.totalChars),Tt.length?Mt+=gt.t.v*Tt[0]*ar:Mt+=gt.t.v*Tt*ar);sr=!1}for(Mt&&(Mt+=Ft);qt<it;)at[qt].animatorJustifyOffset=Mt,qt+=1}for(it=0;it<lt;it+=1){if(_e.reset(),Gt=1,at[it].n)rt=0,st+=a.yOffset,st+=Et?1:0,ht=Lt,Et=!1,this._hasMaskedPath&&(nt=Bt,ot=$t,yt=_t[nt].points,dt=yt[ot-1],pt=yt[ot],At=pt.partialLength,vt=0),tr="",ir="",Jt="",Xt="",Zt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Vt!==at[it].line){switch(a.j){case 1:ht+=xt-a.lineWidths[at[it].line];break;case 2:ht+=(xt-a.lineWidths[at[it].line])/2;break}Vt=at[it].line}Dt!==at[it].ind&&(at[Dt]&&(ht+=at[Dt].extra),ht+=at[it].an/2,Dt=at[it].ind),ht+=_[0]*at[it].an*.005;var cr=0;for(ct=0;ct<mt;ct+=1)gt=b[ct].a,gt.p.propType&&(St=b[ct].s,Tt=St.getMult(at[it].anIndexes[ct],$.a[ct].s.totalChars),Tt.length?cr+=gt.p.v[0]*Tt[0]:cr+=gt.p.v[0]*Tt),gt.a.propType&&(St=b[ct].s,Tt=St.getMult(at[it].anIndexes[ct],$.a[ct].s.totalChars),Tt.length?cr+=gt.a.v[0]*Tt[0]:cr+=gt.a.v[0]*Tt);for(ut=!0,this._pathData.a.v&&(ht=at[0].an*.5+(xt-this._pathData.f.v-at[0].an*.5-at[at.length-1].an*.5)*Dt/(lt-1),ht+=this._pathData.f.v);ut;)vt+At>=ht+cr||!yt?(wt=(ht+cr-vt)/pt.partialLength,Ht=dt.point[0]+(pt.point[0]-dt.point[0])*wt,Pt=dt.point[1]+(pt.point[1]-dt.point[1])*wt,_e.translate(-_[0]*at[it].an*.005,-(_[1]*jt)*.01),ut=!1):yt&&(vt+=pt.partialLength,ot+=1,ot>=yt.length&&(ot=0,nt+=1,_t[nt]?yt=_t[nt].points:It.v.c?(ot=0,nt=0,yt=_t[nt].points):(vt-=pt.partialLength,yt=null)),yt&&(dt=pt,pt=yt[ot],At=pt.partialLength));kt=at[it].an/2-at[it].add,_e.translate(-kt,0,0)}else kt=at[it].an/2-at[it].add,_e.translate(-kt,0,0),_e.translate(-_[0]*at[it].an*.005,-_[1]*jt*.01,0);for(ct=0;ct<mt;ct+=1)gt=b[ct].a,gt.t.propType&&(St=b[ct].s,Tt=St.getMult(at[it].anIndexes[ct],$.a[ct].s.totalChars),(rt!==0||a.j!==0)&&(this._hasMaskedPath?Tt.length?ht+=gt.t.v*Tt[0]:ht+=gt.t.v*Tt:Tt.length?rt+=gt.t.v*Tt[0]:rt+=gt.t.v*Tt));for(a.strokeWidthAnim&&(Qt=a.sw||0),a.strokeColorAnim&&(a.sc?zt=[a.sc[0],a.sc[1],a.sc[2]]:zt=[0,0,0]),a.fillColorAnim&&a.fc&&(Kt=[a.fc[0],a.fc[1],a.fc[2]]),ct=0;ct<mt;ct+=1)gt=b[ct].a,gt.a.propType&&(St=b[ct].s,Tt=St.getMult(at[it].anIndexes[ct],$.a[ct].s.totalChars),Tt.length?_e.translate(-gt.a.v[0]*Tt[0],-gt.a.v[1]*Tt[1],gt.a.v[2]*Tt[2]):_e.translate(-gt.a.v[0]*Tt,-gt.a.v[1]*Tt,gt.a.v[2]*Tt));for(ct=0;ct<mt;ct+=1)gt=b[ct].a,gt.s.propType&&(St=b[ct].s,Tt=St.getMult(at[it].anIndexes[ct],$.a[ct].s.totalChars),Tt.length?_e.scale(1+(gt.s.v[0]-1)*Tt[0],1+(gt.s.v[1]-1)*Tt[1],1):_e.scale(1+(gt.s.v[0]-1)*Tt,1+(gt.s.v[1]-1)*Tt,1));for(ct=0;ct<mt;ct+=1){if(gt=b[ct].a,St=b[ct].s,Tt=St.getMult(at[it].anIndexes[ct],$.a[ct].s.totalChars),gt.sk.propType&&(Tt.length?_e.skewFromAxis(-gt.sk.v*Tt[0],gt.sa.v*Tt[1]):_e.skewFromAxis(-gt.sk.v*Tt,gt.sa.v*Tt)),gt.r.propType&&(Tt.length?_e.rotateZ(-gt.r.v*Tt[2]):_e.rotateZ(-gt.r.v*Tt)),gt.ry.propType&&(Tt.length?_e.rotateY(gt.ry.v*Tt[1]):_e.rotateY(gt.ry.v*Tt)),gt.rx.propType&&(Tt.length?_e.rotateX(gt.rx.v*Tt[0]):_e.rotateX(gt.rx.v*Tt)),gt.o.propType&&(Tt.length?Gt+=(gt.o.v*Tt[0]-Gt)*Tt[0]:Gt+=(gt.o.v*Tt-Gt)*Tt),a.strokeWidthAnim&&gt.sw.propType&&(Tt.length?Qt+=gt.sw.v*Tt[0]:Qt+=gt.sw.v*Tt),a.strokeColorAnim&&gt.sc.propType)for(Ut=0;Ut<3;Ut+=1)Tt.length?zt[Ut]+=(gt.sc.v[Ut]-zt[Ut])*Tt[0]:zt[Ut]+=(gt.sc.v[Ut]-zt[Ut])*Tt;if(a.fillColorAnim&&a.fc){if(gt.fc.propType)for(Ut=0;Ut<3;Ut+=1)Tt.length?Kt[Ut]+=(gt.fc.v[Ut]-Kt[Ut])*Tt[0]:Kt[Ut]+=(gt.fc.v[Ut]-Kt[Ut])*Tt;gt.fh.propType&&(Tt.length?Kt=addHueToRGB(Kt,gt.fh.v*Tt[0]):Kt=addHueToRGB(Kt,gt.fh.v*Tt)),gt.fs.propType&&(Tt.length?Kt=addSaturationToRGB(Kt,gt.fs.v*Tt[0]):Kt=addSaturationToRGB(Kt,gt.fs.v*Tt)),gt.fb.propType&&(Tt.length?Kt=addBrightnessToRGB(Kt,gt.fb.v*Tt[0]):Kt=addBrightnessToRGB(Kt,gt.fb.v*Tt))}}for(ct=0;ct<mt;ct+=1)gt=b[ct].a,gt.p.propType&&(St=b[ct].s,Tt=St.getMult(at[it].anIndexes[ct],$.a[ct].s.totalChars),this._hasMaskedPath?Tt.length?_e.translate(0,gt.p.v[1]*Tt[0],-gt.p.v[2]*Tt[1]):_e.translate(0,gt.p.v[1]*Tt,-gt.p.v[2]*Tt):Tt.length?_e.translate(gt.p.v[0]*Tt[0],gt.p.v[1]*Tt[1],-gt.p.v[2]*Tt[2]):_e.translate(gt.p.v[0]*Tt,gt.p.v[1]*Tt,-gt.p.v[2]*Tt));if(a.strokeWidthAnim&&(Jt=Qt<0?0:Qt),a.strokeColorAnim&&(ur="rgb("+Math.round(zt[0]*255)+","+Math.round(zt[1]*255)+","+Math.round(zt[2]*255)+")"),a.fillColorAnim&&a.fc&&(ir="rgb("+Math.round(Kt[0]*255)+","+Math.round(Kt[1]*255)+","+Math.round(Kt[2]*255)+")"),this._hasMaskedPath){if(_e.translate(0,-a.ls),_e.translate(0,_[1]*jt*.01+st,0),this._pathData.p.v){bt=(pt.point[1]-dt.point[1])/(pt.point[0]-dt.point[0]);var xr=Math.atan(bt)*180/Math.PI;pt.point[0]<dt.point[0]&&(xr+=180),_e.rotate(-xr*Math.PI/180)}_e.translate(Ht,Pt,0),ht-=_[0]*at[it].an*.005,at[it+1]&&Dt!==at[it+1].ind&&(ht+=at[it].an/2,ht+=a.tr*.001*a.finalSize)}else{switch(_e.translate(rt,st,0),a.ps&&_e.translate(a.ps[0],a.ps[1]+a.ascent,0),a.j){case 1:_e.translate(at[it].animatorJustifyOffset+a.justifyOffset+(a.boxWidth-a.lineWidths[at[it].line]),0,0);break;case 2:_e.translate(at[it].animatorJustifyOffset+a.justifyOffset+(a.boxWidth-a.lineWidths[at[it].line])/2,0,0);break}_e.translate(0,-a.ls),_e.translate(kt,0,0),_e.translate(_[0]*at[it].an*.005,_[1]*jt*.01,0),rt+=at[it].l+a.tr*.001*a.finalSize}et==="html"?tr=_e.toCSS():et==="svg"?tr=_e.to2dCSS():Zt=[_e.props[0],_e.props[1],_e.props[2],_e.props[3],_e.props[4],_e.props[5],_e.props[6],_e.props[7],_e.props[8],_e.props[9],_e.props[10],_e.props[11],_e.props[12],_e.props[13],_e.props[14],_e.props[15]],Xt=Gt}tt<=it?(Rt=new LetterProps(Xt,Jt,ur,ir,tr,Zt),this.renderedLetters.push(Rt),tt+=1,this.lettersChangedFlag=!0):(Rt=this.renderedLetters[it],this.lettersChangedFlag=Rt.update(Xt,Jt,ur,ir,tr,Zt)||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,o,_){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(a,o,_),this.textProperty=new TextProperty(this,a.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(a.t,this.renderType,this),this.initTransform(a,o,_),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,o){var _,b=o.length,$,_e="";for(_=0;_<b;_+=1)o[_].ty==="sh"&&($=o[_].ks.k,_e+=buildShapeString($,$.i.length,!0,a));return _e},ITextElement.prototype.updateDocumentData=function(a,o){this.textProperty.updateDocumentData(a,o)},ITextElement.prototype.canResizeFont=function(a){this.textProperty.canResizeFont(a)},ITextElement.prototype.setMinimumFontSize=function(a){this.textProperty.setMinimumFontSize(a)},ITextElement.prototype.applyTextPropertiesToMatrix=function(a,o,_,b,$){switch(a.ps&&o.translate(a.ps[0],a.ps[1]+a.ascent,0),o.translate(0,-a.ls,0),a.j){case 1:o.translate(a.justifyOffset+(a.boxWidth-a.lineWidths[_]),0,0);break;case 2:o.translate(a.justifyOffset+(a.boxWidth-a.lineWidths[_])/2,0,0);break}o.translate(b,$,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,o,_){this.textSpans=[],this.renderType="svg",this.initElement(a,o,_)}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 o=0,_=a.length,b=[],$="";o<_;)a[o]==="\r"||a[o]===""?(b.push($),$=""):$+=a[o],o+=1;return b.push($),b},SVGTextLottieElement.prototype.buildShapeData=function(a,o){if(a.shapes&&a.shapes.length){var _=a.shapes[0];if(_.it){var b=_.it[_.it.length-1];b.s&&(b.s.k[0]=o,b.s.k[1]=o)}}return a},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var a,o,_=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 b=this.globalData.fontManager.getFontByName(_.f);if(b.fClass)this.layerElement.setAttribute("class",b.fClass);else{this.layerElement.setAttribute("font-family",b.fFamily);var $=_.fWeight,_e=_.fStyle;this.layerElement.setAttribute("font-style",_e),this.layerElement.setAttribute("font-weight",$)}this.layerElement.setAttribute("aria-label",_.t);var et=_.l||[],tt=!!this.globalData.fontManager.chars;o=et.length;var rt,st=this.mHelper,it="",lt=this.data.singleShape,at=0,ft=0,ht=!0,pt=_.tr*.001*_.finalSize;if(lt&&!tt&&!_.sz){var vt=this.textContainer,ut="start";switch(_.j){case 1:ut="end";break;case 2:ut="middle";break;default:ut="start";break}vt.setAttribute("text-anchor",ut),vt.setAttribute("letter-spacing",pt);var ot=this.buildTextContents(_.finalText);for(o=ot.length,ft=_.ps?_.ps[1]+_.ascent:0,a=0;a<o;a+=1)rt=this.textSpans[a].span||createNS("tspan"),rt.textContent=ot[a],rt.setAttribute("x",0),rt.setAttribute("y",ft),rt.style.display="inherit",vt.appendChild(rt),this.textSpans[a]||(this.textSpans[a]={span:null,glyph:null}),this.textSpans[a].span=rt,ft+=_.finalLineHeight;this.layerElement.appendChild(vt)}else{var nt=this.textSpans.length,dt;for(a=0;a<o;a+=1){if(this.textSpans[a]||(this.textSpans[a]={span:null,childSpan:null,glyph:null}),!tt||!lt||a===0){if(rt=nt>a?this.textSpans[a].span:createNS(tt?"g":"text"),nt<=a){if(rt.setAttribute("stroke-linecap","butt"),rt.setAttribute("stroke-linejoin","round"),rt.setAttribute("stroke-miterlimit","4"),this.textSpans[a].span=rt,tt){var yt=createNS("g");rt.appendChild(yt),this.textSpans[a].childSpan=yt}this.textSpans[a].span=rt,this.layerElement.appendChild(rt)}rt.style.display="inherit"}if(st.reset(),lt&&(et[a].n&&(at=-pt,ft+=_.yOffset,ft+=ht?1:0,ht=!1),this.applyTextPropertiesToMatrix(_,st,et[a].line,at,ft),at+=et[a].l||0,at+=pt),tt){dt=this.globalData.fontManager.getCharData(_.finalText[a],b.fStyle,this.globalData.fontManager.getFontByName(_.f).fFamily);var _t;if(dt.t===1)_t=new SVGCompElement(dt.data,this.globalData,this);else{var At=emptyShapeData;dt.data&&dt.data.shapes&&(At=this.buildShapeData(dt.data,_.finalSize)),_t=new SVGShapeElement(At,this.globalData,this)}if(this.textSpans[a].glyph){var xt=this.textSpans[a].glyph;this.textSpans[a].childSpan.removeChild(xt.layerElement),xt.destroy()}this.textSpans[a].glyph=_t,_t._debug=!0,_t.prepareFrame(0),_t.renderFrame(),this.textSpans[a].childSpan.appendChild(_t.layerElement),dt.t===1&&this.textSpans[a].childSpan.setAttribute("transform","scale("+_.finalSize/100+","+_.finalSize/100+")")}else lt&&rt.setAttribute("transform","translate("+st.props[12]+","+st.props[13]+")"),rt.textContent=et[a].val,rt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}lt&&rt&&rt.setAttribute("d",it)}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,o=this.textSpans.length,_;for(this.renderedFrame=this.comp.renderedFrame,a=0;a<o;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,o,_=this.textAnimator.renderedLetters,b=this.textProperty.currentData.l;o=b.length;var $,_e,et;for(a=0;a<o;a+=1)b[a].n||($=_[a],_e=this.textSpans[a].span,et=this.textSpans[a].glyph,et&&et.renderFrame(),$._mdf.m&&_e.setAttribute("transform",$.m),$._mdf.o&&_e.setAttribute("opacity",$.o),$._mdf.sw&&_e.setAttribute("stroke-width",$.sw),$._mdf.sc&&_e.setAttribute("stroke",$.sc),$._mdf.fc&&_e.setAttribute("fill",$.fc))}};function ISolidElement(a,o,_){this.initElement(a,o,_)}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,o,_){this.initFrame(),this.initBaseData(a,o,_),this.initFrame(),this.initTransform(a,o,_),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 o=this.globalData.defs;this.setupGlobalData(a,o),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=a;var _=createNS("clipPath"),b=createNS("rect");b.setAttribute("width",a.w),b.setAttribute("height",a.h),b.setAttribute("x",0),b.setAttribute("y",0);var $=createElementID();_.setAttribute("id",$),_.appendChild(b),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+$+")"),o.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,o=this.layers?this.layers.length:0;for(a=0;a<o;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 o=0,_=this.layers.length;for(o=0;o<_;o+=1)if(this.layers[o].ind===a)return o;return-1},SVGRendererBase.prototype.buildItem=function(a){var o=this.elements;if(!(o[a]||this.layers[a].ty===99)){o[a]=!0;var _=this.createItem(this.layers[a]);if(o[a]=_,getExpressionsPlugin()&&(this.layers[a].ty===0&&this.globalData.projectInterface.registerComposition(_),_.initExpressions()),this.appendElementInPos(_,a),this.layers[a].tt){var b="tp"in this.layers[a]?this.findIndexByInd(this.layers[a].tp):a-1;if(b===-1)return;if(!this.elements[b]||this.elements[b]===!0)this.buildItem(b),this.addPendingElement(_);else{var $=o[b],_e=$.getMatte(this.layers[a].tt);_.setMatte(_e)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var a=this.pendingElements.pop();if(a.checkParenting(),a.data.tt)for(var o=0,_=this.elements.length;o<_;){if(this.elements[o]===a){var b="tp"in a.data?this.findIndexByInd(a.data.tp):o-1,$=this.elements[b],_e=$.getMatte(this.layers[o].tt);a.setMatte(_e);break}o+=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 o,_=this.layers.length;for(this.completeLayers||this.checkLayers(a),o=_-1;o>=0;o-=1)(this.completeLayers||this.elements[o])&&this.elements[o].prepareFrame(a-this.layers[o].st);if(this.globalData._mdf)for(o=0;o<_;o+=1)(this.completeLayers||this.elements[o])&&this.elements[o].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(a,o){var _=a.getBaseElement();if(_){for(var b=0,$;b<o;)this.elements[b]&&this.elements[b]!==!0&&this.elements[b].getBaseElement()&&($=this.elements[b].getBaseElement()),b+=1;$?this.layerElement.insertBefore(_,$):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,o,_){this.initFrame(),this.initBaseData(a,o,_),this.initTransform(a,o,_),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!o.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 o=this.tm.v;o===this.data.op&&(o=this.data.op-1),this.renderedFrame=o}var _,b=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),_=b-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,o=this.layers.length;for(a=0;a<o;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,o=this.layers.length;for(a=0;a<o;a+=1)this.elements[a]&&this.elements[a].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(a,o,_){this.layers=a.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(a,o,_),this.tm=a.tm?PropertyFactory.getProp(this,a.tm,0,o.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(a){return new SVGCompElement(a,this.globalData,this)};function SVGRenderer(a,o){this.animationItem=a,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var _="";if(o&&o.title){var b=createNS("title"),$=createElementID();b.setAttribute("id",$),b.textContent=o.title,this.svgElement.appendChild(b),_+=$}if(o&&o.description){var _e=createNS("desc"),et=createElementID();_e.setAttribute("id",et),_e.textContent=o.description,this.svgElement.appendChild(_e),_+=" "+et}_&&this.svgElement.setAttribute("aria-labelledby",_);var tt=createNS("defs");this.svgElement.appendChild(tt);var rt=createNS("g");this.svgElement.appendChild(rt),this.layerElement=rt,this.renderConfig={preserveAspectRatio:o&&o.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:o&&o.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:o&&o.contentVisibility||"visible",progressiveLoad:o&&o.progressiveLoad||!1,hideOnTransparent:!(o&&o.hideOnTransparent===!1),viewBoxOnly:o&&o.viewBoxOnly||!1,viewBoxSize:o&&o.viewBoxSize||!1,className:o&&o.className||"",id:o&&o.id||"",focusable:o&&o.focusable,filterSize:{width:o&&o.filterSize&&o.filterSize.width||"100%",height:o&&o.filterSize&&o.filterSize.height||"100%",x:o&&o.filterSize&&o.filterSize.x||"0%",y:o&&o.filterSize&&o.filterSize.y||"0%"},width:o&&o.width,height:o&&o.height,runExpressions:!o||o.runExpressions===void 0||o.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:tt,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(o){var _,b=o.length,$="_";for(_=0;_<b;_+=1)$+=o[_].transform.key+"_";var _e=this.sequences[$];return _e||(_e={transforms:[].concat(o),finalTransform:new Matrix,_mdf:!1},this.sequences[$]=_e,this.sequenceList.push(_e)),_e},processSequence:function(o,_){for(var b=0,$=o.transforms.length,_e=_;b<$&&!_;){if(o.transforms[b].transform.mProps._mdf){_e=!0;break}b+=1}if(_e)for(o.finalTransform.reset(),b=$-1;b>=0;b-=1)o.finalTransform.multiply(o.transforms[b].transform.mProps.v);o._mdf=_e},processSequences:function(o){var _,b=this.sequenceList.length;for(_=0;_<b;_+=1)this.processSequence(this.sequenceList[_],o)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var o="__lottie_element_luma_buffer",_=null,b=null,$=null;function _e(){var rt=createNS("svg"),st=createNS("filter"),it=createNS("feColorMatrix");return st.setAttribute("id",o),it.setAttribute("type","matrix"),it.setAttribute("color-interpolation-filters","sRGB"),it.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"),st.appendChild(it),rt.appendChild(st),rt.setAttribute("id",o+"_svg"),featureSupport.svgLumaHidden&&(rt.style.display="none"),rt}function et(){_||($=_e(),document.body.appendChild($),_=createTag("canvas"),b=_.getContext("2d"),b.filter="url(#"+o+")",b.fillStyle="rgba(0,0,0,0)",b.fillRect(0,0,1,1))}function tt(rt){return _||et(),_.width=rt.width,_.height=rt.height,b.filter="url(#"+o+")",_}return{load:et,get:tt}};function createCanvas(a,o){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(a,o);var _=createTag("canvas");return _.width=a,_.height=o,_}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(a){var o,_=a.data.ef?a.data.ef.length:0;this.filters=[];var b;for(o=0;o<_;o+=1){b=null;var $=a.data.ef[o].ty;if(registeredEffects[$]){var _e=registeredEffects[$].effect;b=new _e(a.effectsManager.effectElements[o],a)}b&&this.filters.push(b)}this.filters.length&&a.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(a){var o,_=this.filters.length;for(o=0;o<_;o+=1)this.filters[o].renderFrame(a)},CVEffects.prototype.getEffects=function(a){var o,_=this.filters.length,b=[];for(o=0;o<_;o+=1)this.filters[o].type===a&&b.push(this.filters[o]);return b};function registerEffect(a,o){registeredEffects[a]={effect:o}}function CVMaskElement(a,o){this.data=a,this.element=o,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var _,b=this.masksProperties.length,$=!1;for(_=0;_<b;_+=1)this.masksProperties[_].mode!=="n"&&($=!0),this.viewData[_]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[_],3);this.hasMasks=$,$&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var a=this.element.finalTransform.mat,o=this.element.canvasContext,_,b=this.masksProperties.length,$,_e,et;for(o.beginPath(),_=0;_<b;_+=1)if(this.masksProperties[_].mode!=="n"){this.masksProperties[_].inv&&(o.moveTo(0,0),o.lineTo(this.element.globalData.compSize.w,0),o.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),o.lineTo(0,this.element.globalData.compSize.h),o.lineTo(0,0)),et=this.viewData[_].v,$=a.applyToPointArray(et.v[0][0],et.v[0][1],0),o.moveTo($[0],$[1]);var tt,rt=et._length;for(tt=1;tt<rt;tt+=1)_e=a.applyToTriplePoints(et.o[tt-1],et.i[tt],et.v[tt]),o.bezierCurveTo(_e[0],_e[1],_e[2],_e[3],_e[4],_e[5]);_e=a.applyToTriplePoints(et.o[tt-1],et.i[0],et.v[0]),o.bezierCurveTo(_e[0],_e[1],_e[2],_e[3],_e[4],_e[5])}this.element.globalData.renderer.save(!0),o.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 o=this.globalData.canvasContext,_=assetLoader.createCanvas(o.canvas.width,o.canvas.height);this.buffers.push(_);var b=assetLoader.createCanvas(o.canvas.width,o.canvas.height);this.buffers.push(b),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 o=this.globalData;if(o.blendMode!==this.data.bm){o.blendMode=this.data.bm;var _=getBlendMode(this.data.bm);o.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(o){o.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 o=this.buffers[0],_=o.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 o=this.buffers[1],_=o.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 b=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(b.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var $=assetLoader.getLumaCanvas(this.canvasContext.canvas),_e=$.getContext("2d");_e.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage($,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(o,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(o){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!o)){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,o,_,b){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var $=4;o.ty==="rc"?$=5:o.ty==="el"?$=6:o.ty==="sr"&&($=7),this.sh=ShapePropertyFactory.getShapeProp(a,o,$,a);var _e,et=_.length,tt;for(_e=0;_e<et;_e+=1)_[_e].closed||(tt={transforms:b.addTransformSequence(_[_e].transforms),trNodes:[]},this.styledShapes.push(tt),_[_e].elements.push(tt))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(a,o,_){this.shapes=[],this.shapesData=a.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(a,o,_)}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,o){var _={data:a,type:a.ty,preTransforms:this.transformsManager.addTransformSequence(o),transforms:[],elements:[],closed:a.hd===!0},b={};if(a.ty==="fl"||a.ty==="st"?(b.c=PropertyFactory.getProp(this,a.c,1,255,this),b.c.k||(_.co="rgb("+bmFloor(b.c.v[0])+","+bmFloor(b.c.v[1])+","+bmFloor(b.c.v[2])+")")):(a.ty==="gf"||a.ty==="gs")&&(b.s=PropertyFactory.getProp(this,a.s,1,null,this),b.e=PropertyFactory.getProp(this,a.e,1,null,this),b.h=PropertyFactory.getProp(this,a.h||{k:0},0,.01,this),b.a=PropertyFactory.getProp(this,a.a||{k:0},0,degToRads,this),b.g=new GradientProperty(this,a.g,this)),b.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),b.w=PropertyFactory.getProp(this,a.w,0,null,this),b.w.k||(_.wi=b.w.v),a.d){var $=new DashProperty(this,a.d,"canvas",this);b.d=$,b.d.k||(_.da=b.d.dashArray,_.do=b.d.dashoffset[0])}}else _.r=a.r===2?"evenodd":"nonzero";return this.stylesList.push(_),b.style=_,b},CVShapeElement.prototype.createGroupElement=function(){var a={it:[],prevViewData:[]};return a},CVShapeElement.prototype.createTransformElement=function(a){var o={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 o},CVShapeElement.prototype.createShapeElement=function(a){var o=new CVShapeData(this,a,this.stylesList,this.transformsManager);return this.shapes.push(o),this.addShapeToModifiers(o),o},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var a,o=this.itemsData.length;for(a=0;a<o;a+=1)this.prevViewData[a]=this.itemsData[a];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),o=this.dynamicProperties.length,a=0;a<o;a+=1)this.dynamicProperties[a].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(a){var o,_=this.stylesList.length;for(o=0;o<_;o+=1)this.stylesList[o].closed||this.stylesList[o].transforms.push(a)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var a,o=this.stylesList.length;for(a=0;a<o;a+=1)this.stylesList[a].closed||this.stylesList[a].transforms.pop()},CVShapeElement.prototype.closeStyles=function(a){var o,_=a.length;for(o=0;o<_;o+=1)a[o].closed=!0},CVShapeElement.prototype.searchShapes=function(a,o,_,b,$){var _e,et=a.length-1,tt,rt,st=[],it=[],lt,at,ft,ht=[].concat($);for(_e=et;_e>=0;_e-=1){if(lt=this.searchProcessedElement(a[_e]),lt?o[_e]=_[lt-1]:a[_e]._shouldRender=b,a[_e].ty==="fl"||a[_e].ty==="st"||a[_e].ty==="gf"||a[_e].ty==="gs")lt?o[_e].style.closed=!1:o[_e]=this.createStyleElement(a[_e],ht),st.push(o[_e].style);else if(a[_e].ty==="gr"){if(!lt)o[_e]=this.createGroupElement(a[_e]);else for(rt=o[_e].it.length,tt=0;tt<rt;tt+=1)o[_e].prevViewData[tt]=o[_e].it[tt];this.searchShapes(a[_e].it,o[_e].it,o[_e].prevViewData,b,ht)}else a[_e].ty==="tr"?(lt||(ft=this.createTransformElement(a[_e]),o[_e]=ft),ht.push(o[_e]),this.addTransformToStyleList(o[_e])):a[_e].ty==="sh"||a[_e].ty==="rc"||a[_e].ty==="el"||a[_e].ty==="sr"?lt||(o[_e]=this.createShapeElement(a[_e])):a[_e].ty==="tm"||a[_e].ty==="rd"||a[_e].ty==="pb"||a[_e].ty==="zz"||a[_e].ty==="op"?(lt?(at=o[_e],at.closed=!1):(at=ShapeModifiers.getModifier(a[_e].ty),at.init(this,a[_e]),o[_e]=at,this.shapeModifiers.push(at)),it.push(at)):a[_e].ty==="rp"&&(lt?(at=o[_e],at.closed=!0):(at=ShapeModifiers.getModifier(a[_e].ty),o[_e]=at,at.init(this,a,_e,o),this.shapeModifiers.push(at),b=!1),it.push(at));this.addProcessedElement(a[_e],_e+1)}for(this.removeTransformFromStyleList(),this.closeStyles(st),et=it.length,_e=0;_e<et;_e+=1)it[_e].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,o){(a._opMdf||o.op._mdf||this._isFirstFrame)&&(o.opacity=a.opacity,o.opacity*=o.op.v,o._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var a,o=this.stylesList.length,_,b,$,_e,et,tt,rt=this.globalData.renderer,st=this.globalData.canvasContext,it,lt;for(a=0;a<o;a+=1)if(lt=this.stylesList[a],it=lt.type,!((it==="st"||it==="gs")&&lt.wi===0||!lt.data._shouldRender||lt.coOp===0||this.globalData.currentGlobalAlpha===0)){for(rt.save(),et=lt.elements,it==="st"||it==="gs"?(rt.ctxStrokeStyle(it==="st"?lt.co:lt.grd),rt.ctxLineWidth(lt.wi),rt.ctxLineCap(lt.lc),rt.ctxLineJoin(lt.lj),rt.ctxMiterLimit(lt.ml||0)):rt.ctxFillStyle(it==="fl"?lt.co:lt.grd),rt.ctxOpacity(lt.coOp),it!=="st"&&it!=="gs"&&st.beginPath(),rt.ctxTransform(lt.preTransforms.finalTransform.props),b=et.length,_=0;_<b;_+=1){for((it==="st"||it==="gs")&&(st.beginPath(),lt.da&&(st.setLineDash(lt.da),st.lineDashOffset=lt.do)),tt=et[_].trNodes,_e=tt.length,$=0;$<_e;$+=1)tt[$].t==="m"?st.moveTo(tt[$].p[0],tt[$].p[1]):tt[$].t==="c"?st.bezierCurveTo(tt[$].pts[0],tt[$].pts[1],tt[$].pts[2],tt[$].pts[3],tt[$].pts[4],tt[$].pts[5]):st.closePath();(it==="st"||it==="gs")&&(rt.ctxStroke(),lt.da&&st.setLineDash(this.dashResetter))}it!=="st"&&it!=="gs"&&this.globalData.renderer.ctxFill(lt.r),rt.restore()}},CVShapeElement.prototype.renderShape=function(a,o,_,b){var $,_e=o.length-1,et;for(et=a,$=_e;$>=0;$-=1)o[$].ty==="tr"?(et=_[$].transform,this.renderShapeTransform(a,et)):o[$].ty==="sh"||o[$].ty==="el"||o[$].ty==="rc"||o[$].ty==="sr"?this.renderPath(o[$],_[$]):o[$].ty==="fl"?this.renderFill(o[$],_[$],et):o[$].ty==="st"?this.renderStroke(o[$],_[$],et):o[$].ty==="gf"||o[$].ty==="gs"?this.renderGradientFill(o[$],_[$],et):o[$].ty==="gr"?this.renderShape(et,o[$].it,_[$].it):o[$].ty;b&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(a,o){if(this._isFirstFrame||o._mdf||a.transforms._mdf){var _=a.trNodes,b=o.paths,$,_e,et,tt=b._length;_.length=0;var rt=a.transforms.finalTransform;for(et=0;et<tt;et+=1){var st=b.shapes[et];if(st&&st.v){for(_e=st._length,$=1;$<_e;$+=1)$===1&&_.push({t:"m",p:rt.applyToPointArray(st.v[0][0],st.v[0][1],0)}),_.push({t:"c",pts:rt.applyToTriplePoints(st.o[$-1],st.i[$],st.v[$])});_e===1&&_.push({t:"m",p:rt.applyToPointArray(st.v[0][0],st.v[0][1],0)}),st.c&&_e&&(_.push({t:"c",pts:rt.applyToTriplePoints(st.o[$-1],st.i[0],st.v[0])}),_.push({t:"z"}))}}a.trNodes=_}},CVShapeElement.prototype.renderPath=function(a,o){if(a.hd!==!0&&a._shouldRender){var _,b=o.styledShapes.length;for(_=0;_<b;_+=1)this.renderStyledShape(o.styledShapes[_],o.sh)}},CVShapeElement.prototype.renderFill=function(a,o,_){var b=o.style;(o.c._mdf||this._isFirstFrame)&&(b.co="rgb("+bmFloor(o.c.v[0])+","+bmFloor(o.c.v[1])+","+bmFloor(o.c.v[2])+")"),(o.o._mdf||_._opMdf||this._isFirstFrame)&&(b.coOp=o.o.v*_.opacity)},CVShapeElement.prototype.renderGradientFill=function(a,o,_){var b=o.style,$;if(!b.grd||o.g._mdf||o.s._mdf||o.e._mdf||a.t!==1&&(o.h._mdf||o.a._mdf)){var _e=this.globalData.canvasContext,et=o.s.v,tt=o.e.v;if(a.t===1)$=_e.createLinearGradient(et[0],et[1],tt[0],tt[1]);else{var rt=Math.sqrt(Math.pow(et[0]-tt[0],2)+Math.pow(et[1]-tt[1],2)),st=Math.atan2(tt[1]-et[1],tt[0]-et[0]),it=o.h.v;it>=1?it=.99:it<=-1&&(it=-.99);var lt=rt*it,at=Math.cos(st+o.a.v)*lt+et[0],ft=Math.sin(st+o.a.v)*lt+et[1];$=_e.createRadialGradient(at,ft,0,et[0],et[1],rt)}var ht,pt=a.g.p,vt=o.g.c,ut=1;for(ht=0;ht<pt;ht+=1)o.g._hasOpacity&&o.g._collapsable&&(ut=o.g.o[ht*2+1]),$.addColorStop(vt[ht*4]/100,"rgba("+vt[ht*4+1]+","+vt[ht*4+2]+","+vt[ht*4+3]+","+ut+")");b.grd=$}b.coOp=o.o.v*_.opacity},CVShapeElement.prototype.renderStroke=function(a,o,_){var b=o.style,$=o.d;$&&($._mdf||this._isFirstFrame)&&(b.da=$.dashArray,b.do=$.dashoffset[0]),(o.c._mdf||this._isFirstFrame)&&(b.co="rgb("+bmFloor(o.c.v[0])+","+bmFloor(o.c.v[1])+","+bmFloor(o.c.v[2])+")"),(o.o._mdf||_._opMdf||this._isFirstFrame)&&(b.coOp=o.o.v*_.opacity),(o.w._mdf||this._isFirstFrame)&&(b.wi=o.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,o,_){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,o,_)}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 o=!1;a.fc?(o=!0,this.values.fill=this.buildColor(a.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=o;var _=!1;a.sc&&(_=!0,this.values.stroke=this.buildColor(a.sc),this.values.sWidth=a.sw);var b=this.globalData.fontManager.getFontByName(a.f),$,_e,et=a.l,tt=this.mHelper;this.stroke=_,this.values.fValue=a.finalSize+"px "+this.globalData.fontManager.getFontByName(a.f).fFamily,_e=a.finalText.length;var rt,st,it,lt,at,ft,ht,pt,vt,ut,ot=this.data.singleShape,nt=a.tr*.001*a.finalSize,dt=0,yt=0,_t=!0,At=0;for($=0;$<_e;$+=1){rt=this.globalData.fontManager.getCharData(a.finalText[$],b.fStyle,this.globalData.fontManager.getFontByName(a.f).fFamily),st=rt&&rt.data||{},tt.reset(),ot&&et[$].n&&(dt=-nt,yt+=a.yOffset,yt+=_t?1:0,_t=!1),at=st.shapes?st.shapes[0].it:[],ht=at.length,tt.scale(a.finalSize/100,a.finalSize/100),ot&&this.applyTextPropertiesToMatrix(a,tt,et[$].line,dt,yt),vt=createSizedArray(ht-1);var xt=0;for(ft=0;ft<ht;ft+=1)if(at[ft].ty==="sh"){for(lt=at[ft].ks.k.i.length,pt=at[ft].ks.k,ut=[],it=1;it<lt;it+=1)it===1&&ut.push(tt.applyToX(pt.v[0][0],pt.v[0][1],0),tt.applyToY(pt.v[0][0],pt.v[0][1],0)),ut.push(tt.applyToX(pt.o[it-1][0],pt.o[it-1][1],0),tt.applyToY(pt.o[it-1][0],pt.o[it-1][1],0),tt.applyToX(pt.i[it][0],pt.i[it][1],0),tt.applyToY(pt.i[it][0],pt.i[it][1],0),tt.applyToX(pt.v[it][0],pt.v[it][1],0),tt.applyToY(pt.v[it][0],pt.v[it][1],0));ut.push(tt.applyToX(pt.o[it-1][0],pt.o[it-1][1],0),tt.applyToY(pt.o[it-1][0],pt.o[it-1][1],0),tt.applyToX(pt.i[0][0],pt.i[0][1],0),tt.applyToY(pt.i[0][0],pt.i[0][1],0),tt.applyToX(pt.v[0][0],pt.v[0][1],0),tt.applyToY(pt.v[0][0],pt.v[0][1],0)),vt[xt]=ut,xt+=1}ot&&(dt+=et[$].l,dt+=nt),this.textSpans[At]?this.textSpans[At].elem=vt:this.textSpans[At]={elem:vt},At+=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 o,_,b,$,_e,et,tt=this.textAnimator.renderedLetters,rt=this.textProperty.currentData.l;_=rt.length;var st,it=null,lt=null,at=null,ft,ht,pt=this.globalData.renderer;for(o=0;o<_;o+=1)if(!rt[o].n){if(st=tt[o],st&&(pt.save(),pt.ctxTransform(st.p),pt.ctxOpacity(st.o)),this.fill){for(st&&st.fc?it!==st.fc&&(pt.ctxFillStyle(st.fc),it=st.fc):it!==this.values.fill&&(it=this.values.fill,pt.ctxFillStyle(this.values.fill)),ft=this.textSpans[o].elem,$=ft.length,this.globalData.canvasContext.beginPath(),b=0;b<$;b+=1)for(ht=ft[b],et=ht.length,this.globalData.canvasContext.moveTo(ht[0],ht[1]),_e=2;_e<et;_e+=6)this.globalData.canvasContext.bezierCurveTo(ht[_e],ht[_e+1],ht[_e+2],ht[_e+3],ht[_e+4],ht[_e+5]);this.globalData.canvasContext.closePath(),pt.ctxFill()}if(this.stroke){for(st&&st.sw?at!==st.sw&&(at=st.sw,pt.ctxLineWidth(st.sw)):at!==this.values.sWidth&&(at=this.values.sWidth,pt.ctxLineWidth(this.values.sWidth)),st&&st.sc?lt!==st.sc&&(lt=st.sc,pt.ctxStrokeStyle(st.sc)):lt!==this.values.stroke&&(lt=this.values.stroke,pt.ctxStrokeStyle(this.values.stroke)),ft=this.textSpans[o].elem,$=ft.length,this.globalData.canvasContext.beginPath(),b=0;b<$;b+=1)for(ht=ft[b],et=ht.length,this.globalData.canvasContext.moveTo(ht[0],ht[1]),_e=2;_e<et;_e+=6)this.globalData.canvasContext.bezierCurveTo(ht[_e],ht[_e+1],ht[_e+2],ht[_e+3],ht[_e+4],ht[_e+5]);this.globalData.canvasContext.closePath(),pt.ctxStroke()}st&&this.globalData.renderer.restore()}};function CVImageElement(a,o,_){this.assetData=o.getAssetData(a.refId),this.img=o.imageLoader.getAsset(this.assetData),this.initElement(a,o,_)}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 o=a.getContext("2d"),_=this.img.width,b=this.img.height,$=_/b,_e=this.assetData.w/this.assetData.h,et,tt,rt=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;$>_e&&rt==="xMidYMid slice"||$<_e&&rt!=="xMidYMid slice"?(tt=b,et=tt*_e):(et=_,tt=et/_e),o.drawImage(this.img,(_-et)/2,(b-tt)/2,et,tt,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,o,_){this.initElement(a,o,_)}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,o,_,b){this.canvasContext.fillRect(a,o,_,b)},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 o=this.animationItem.container.style;o.width="100%",o.height="100%";var _="0px 0px 0px";o.transformOrigin=_,o.mozTransformOrigin=_,o.webkitTransformOrigin=_,o["-webkit-transform"]=_,o.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,o){this.reset();var _,b;a?(_=a,b=o,this.canvasContext.canvas.width=_,this.canvasContext.canvas.height=b):(this.animationItem.wrapper&&this.animationItem.container?(_=this.animationItem.wrapper.offsetWidth,b=this.animationItem.wrapper.offsetHeight):(_=this.canvasContext.canvas.width,b=this.canvasContext.canvas.height),this.canvasContext.canvas.width=_*this.renderConfig.dpr,this.canvasContext.canvas.height=b*this.renderConfig.dpr);var $,_e;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var et=this.renderConfig.preserveAspectRatio.split(" "),tt=et[1]||"meet",rt=et[0]||"xMidYMid",st=rt.substr(0,4),it=rt.substr(4);$=_/b,_e=this.transformCanvas.w/this.transformCanvas.h,_e>$&&tt==="meet"||_e<$&&tt==="slice"?(this.transformCanvas.sx=_/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=_/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=b/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=b/(this.transformCanvas.h/this.renderConfig.dpr)),st==="xMid"&&(_e<$&&tt==="meet"||_e>$&&tt==="slice")?this.transformCanvas.tx=(_-this.transformCanvas.w*(b/this.transformCanvas.h))/2*this.renderConfig.dpr:st==="xMax"&&(_e<$&&tt==="meet"||_e>$&&tt==="slice")?this.transformCanvas.tx=(_-this.transformCanvas.w*(b/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,it==="YMid"&&(_e>$&&tt==="meet"||_e<$&&tt==="slice")?this.transformCanvas.ty=(b-this.transformCanvas.h*(_/this.transformCanvas.w))/2*this.renderConfig.dpr:it==="YMax"&&(_e>$&&tt==="meet"||_e<$&&tt==="slice")?this.transformCanvas.ty=(b-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=b/(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,o=this.layers?this.layers.length:0;for(a=o-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,o){if(!(this.renderedFrame===a&&this.renderConfig.clearCanvas===!0&&!o||this.destroyed||a===-1)){this.renderedFrame=a,this.globalData.frameNum=a-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||o,this.globalData.projectInterface.currentFrame=a;var _,b=this.layers.length;for(this.completeLayers||this.checkLayers(a),_=b-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(),_=b-1;_>=0;_-=1)(this.completeLayers||this.elements[_])&&this.elements[_].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(a){var o=this.elements;if(!(o[a]||this.layers[a].ty===99)){var _=this.createItem(this.layers[a],this,this.globalData);o[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,o=15;for(a=0;a<o;a+=1){var _=new CanvasContext;this.stack[a]=_}this._length=o,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,o=0;for(o=this._length;o<a;o+=1)this.stack[o]=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 o=this.stack[this.cArrPos],_=o.transform,b,$=this.cTr.props;for(b=0;b<16;b+=1)$[b]=_[b];if(a){this.nativeContext.restore();var _e=this.stack[this.cArrPos+1];this.appliedFillStyle=_e.fillStyle,this.appliedStrokeStyle=_e.strokeStyle,this.appliedLineWidth=_e.lineWidth,this.appliedLineCap=_e.lineCap,this.appliedLineJoin=_e.lineJoin,this.appliedMiterLimit=_e.miterLimit}this.nativeContext.setTransform(_[0],_[1],_[4],_[5],_[12],_[13]),(a||o.opacity!==-1&&this.currentOpacity!==o.opacity)&&(this.nativeContext.globalAlpha=o.opacity,this.currentOpacity=o.opacity),this.currentFillStyle=o.fillStyle,this.currentStrokeStyle=o.strokeStyle,this.currentLineWidth=o.lineWidth,this.currentLineCap=o.lineCap,this.currentLineJoin=o.lineJoin,this.currentMiterLimit=o.miterLimit},CVContextData.prototype.save=function(a){a&&this.nativeContext.save();var o=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var _=this.stack[this.cArrPos],b;for(b=0;b<16;b+=1)_.transform[b]=o[b];this.cArrPos+=1;var $=this.stack[this.cArrPos];$.opacity=_.opacity,$.fillStyle=_.fillStyle,$.strokeStyle=_.strokeStyle,$.lineWidth=_.lineWidth,$.lineCap=_.lineCap,$.lineJoin=_.lineJoin,$.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 o=this.cTr;this.transformMat.multiply(o),o.cloneFromProps(this.transformMat.props);var _=o.props;this.nativeContext.setTransform(_[0],_[1],_[4],_[5],_[12],_[13])},CVContextData.prototype.opacity=function(a){var o=this.stack[this.cArrPos].opacity;o*=a<0?0:a,this.stack[this.cArrPos].opacity!==o&&(this.currentOpacity!==a&&(this.nativeContext.globalAlpha=a,this.currentOpacity=a),this.stack[this.cArrPos].opacity=o)},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,o,_,b){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(a,o,_,b)},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,o,_){this.completeLayers=!1,this.layers=a.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(a,o,_),this.tm=a.tm?PropertyFactory.getProp(this,a.tm,0,o.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 o,_=this.layers.length;for(o=_-1;o>=0;o-=1)(this.completeLayers||this.elements[o])&&this.elements[o].renderFrame()},CVCompElement.prototype.destroy=function(){var a,o=this.layers.length;for(a=o-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,o){this.animationItem=a,this.renderConfig={clearCanvas:o&&o.clearCanvas!==void 0?o.clearCanvas:!0,context:o&&o.context||null,progressiveLoad:o&&o.progressiveLoad||!1,preserveAspectRatio:o&&o.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:o&&o.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:o&&o.contentVisibility||"visible",className:o&&o.className||"",id:o&&o.id||"",runExpressions:!o||o.runExpressions===void 0||o.runExpressions},this.renderConfig.dpr=o&&o.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=o&&o.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 o=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var _=this.finalTransform.mat.toCSS();o.transform=_,o.webkitTransform=_}this.finalTransform._opMdf&&(o.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,o,_){this.initElement(a,o,_)}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,o,_){this.shapes=[],this.shapesData=a.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(a,o,_),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 o=this.comp.data?this.comp.data:this.globalData.compSize;a.setAttribute("width",o.w),a.setAttribute("height",o.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,o){var _,b=a.length;for(_=0;_<b;_+=1)o=a[_].mProps.v.applyToPointArray(o[0],o[1],0);return o},HShapeElement.prototype.calculateShapeBoundingBox=function(a,o){var _=a.sh.v,b=a.transformers,$,_e=_._length,et,tt,rt,st;if(!(_e<=1)){for($=0;$<_e-1;$+=1)et=this.getTransformedPoint(b,_.v[$]),tt=this.getTransformedPoint(b,_.o[$]),rt=this.getTransformedPoint(b,_.i[$+1]),st=this.getTransformedPoint(b,_.v[$+1]),this.checkBounds(et,tt,rt,st,o);_.c&&(et=this.getTransformedPoint(b,_.v[$]),tt=this.getTransformedPoint(b,_.o[$]),rt=this.getTransformedPoint(b,_.i[0]),st=this.getTransformedPoint(b,_.v[0]),this.checkBounds(et,tt,rt,st,o))}},HShapeElement.prototype.checkBounds=function(a,o,_,b,$){this.getBoundsOfCurve(a,o,_,b);var _e=this.shapeBoundingBox;$.x=bmMin(_e.left,$.x),$.xMax=bmMax(_e.right,$.xMax),$.y=bmMin(_e.top,$.y),$.yMax=bmMax(_e.bottom,$.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,o,_,b){for(var $=[[a[0],b[0]],[a[1],b[1]]],_e,et,tt,rt,st,it,lt,at=0;at<2;++at)et=6*a[at]-12*o[at]+6*_[at],_e=-3*a[at]+9*o[at]-9*_[at]+3*b[at],tt=3*o[at]-3*a[at],et|=0,_e|=0,tt|=0,_e===0&&et===0||(_e===0?(rt=-tt/et,rt>0&&rt<1&&$[at].push(this.calculateF(rt,a,o,_,b,at))):(st=et*et-4*tt*_e,st>=0&&(it=(-et+bmSqrt(st))/(2*_e),it>0&&it<1&&$[at].push(this.calculateF(it,a,o,_,b,at)),lt=(-et-bmSqrt(st))/(2*_e),lt>0&&lt<1&&$[at].push(this.calculateF(lt,a,o,_,b,at)))));this.shapeBoundingBox.left=bmMin.apply(null,$[0]),this.shapeBoundingBox.top=bmMin.apply(null,$[1]),this.shapeBoundingBox.right=bmMax.apply(null,$[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,$[1])},HShapeElement.prototype.calculateF=function(a,o,_,b,$,_e){return bmPow(1-a,3)*o[_e]+3*bmPow(1-a,2)*a*_[_e]+3*(1-a)*bmPow(a,2)*b[_e]+bmPow(a,3)*$[_e]},HShapeElement.prototype.calculateBoundingBox=function(a,o){var _,b=a.length;for(_=0;_<b;_+=1)a[_]&&a[_].sh?this.calculateShapeBoundingBox(a[_],o):a[_]&&a[_].it?this.calculateBoundingBox(a[_].it,o):a[_]&&a[_].style&&a[_].w&&this.expandStrokeBoundingBox(a[_].w,o)},HShapeElement.prototype.expandStrokeBoundingBox=function(a,o){var _=0;if(a.keyframes){for(var b=0;b<a.keyframes.length;b+=1){var $=a.keyframes[b].s;$>_&&(_=$)}_*=a.mult}else _=a.v*a.mult;o.x-=_,o.xMax+=_,o.y-=_,o.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,o=999999;if(a.x=o,a.xMax=-o,a.y=o,a.yMax=-o,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 b=this.shapeCont.style,$="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";b.transform=$,b.webkitTransform=$}}};function HTextElement(a,o,_){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(a,o,_)}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 o=this.innerElem.style,_=a.fc?this.buildColor(a.fc):"rgba(0,0,0,0)";o.fill=_,o.color=_,a.sc&&(o.stroke=this.buildColor(a.sc),o.strokeWidth=a.sw+"px");var b=this.globalData.fontManager.getFontByName(a.f);if(!this.globalData.fontManager.chars)if(o.fontSize=a.finalSize+"px",o.lineHeight=a.finalSize+"px",b.fClass)this.innerElem.className=b.fClass;else{o.fontFamily=b.fFamily;var $=a.fWeight,_e=a.fStyle;o.fontStyle=_e,o.fontWeight=$}var et,tt,rt=a.l;tt=rt.length;var st,it,lt,at=this.mHelper,ft,ht="",pt=0;for(et=0;et<tt;et+=1){if(this.globalData.fontManager.chars?(this.textPaths[pt]?st=this.textPaths[pt]:(st=createNS("path"),st.setAttribute("stroke-linecap",lineCapEnum[1]),st.setAttribute("stroke-linejoin",lineJoinEnum[2]),st.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[pt]?(it=this.textSpans[pt],lt=it.children[0]):(it=createTag("div"),it.style.lineHeight=0,lt=createNS("svg"),lt.appendChild(st),styleDiv(it)))):this.isMasked?st=this.textPaths[pt]?this.textPaths[pt]:createNS("text"):this.textSpans[pt]?(it=this.textSpans[pt],st=this.textPaths[pt]):(it=createTag("span"),styleDiv(it),st=createTag("span"),styleDiv(st),it.appendChild(st)),this.globalData.fontManager.chars){var vt=this.globalData.fontManager.getCharData(a.finalText[et],b.fStyle,this.globalData.fontManager.getFontByName(a.f).fFamily),ut;if(vt?ut=vt.data:ut=null,at.reset(),ut&&ut.shapes&&ut.shapes.length&&(ft=ut.shapes[0].it,at.scale(a.finalSize/100,a.finalSize/100),ht=this.createPathShape(at,ft),st.setAttribute("d",ht)),this.isMasked)this.innerElem.appendChild(st);else{if(this.innerElem.appendChild(it),ut&&ut.shapes){document.body.appendChild(lt);var ot=lt.getBBox();lt.setAttribute("width",ot.width+2),lt.setAttribute("height",ot.height+2),lt.setAttribute("viewBox",ot.x-1+" "+(ot.y-1)+" "+(ot.width+2)+" "+(ot.height+2));var nt=lt.style,dt="translate("+(ot.x-1)+"px,"+(ot.y-1)+"px)";nt.transform=dt,nt.webkitTransform=dt,rt[et].yOffset=ot.y-1}else lt.setAttribute("width",1),lt.setAttribute("height",1);it.appendChild(lt)}}else if(st.textContent=rt[et].val,st.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(st);else{this.innerElem.appendChild(it);var yt=st.style,_t="translate3d(0,"+-a.finalSize/1.2+"px,0)";yt.transform=_t,yt.webkitTransform=_t}this.isMasked?this.textSpans[pt]=st:this.textSpans[pt]=it,this.textSpans[pt].style.display="block",this.textPaths[pt]=st,pt+=1}for(;pt<this.textSpans.length;)this.textSpans[pt].style.display="none",pt+=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 o="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";a.transform=o,a.webkitTransform=o}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var _,b,$=0,_e=this.textAnimator.renderedLetters,et=this.textProperty.currentData.l;b=et.length;var tt,rt,st;for(_=0;_<b;_+=1)et[_].n?$+=1:(rt=this.textSpans[_],st=this.textPaths[_],tt=_e[$],$+=1,tt._mdf.m&&(this.isMasked?rt.setAttribute("transform",tt.m):(rt.style.webkitTransform=tt.m,rt.style.transform=tt.m)),rt.style.opacity=tt.o,tt.sw&&tt._mdf.sw&&st.setAttribute("stroke-width",tt.sw),tt.sc&&tt._mdf.sc&&st.setAttribute("stroke",tt.sc),tt.fc&&tt._mdf.fc&&(st.setAttribute("fill",tt.fc),st.style.color=tt.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var it=this.innerElem.getBBox();this.currentBBox.w!==it.width&&(this.currentBBox.w=it.width,this.svgElement.setAttribute("width",it.width)),this.currentBBox.h!==it.height&&(this.currentBBox.h=it.height,this.svgElement.setAttribute("height",it.height));var lt=1;if(this.currentBBox.w!==it.width+lt*2||this.currentBBox.h!==it.height+lt*2||this.currentBBox.x!==it.x-lt||this.currentBBox.y!==it.y-lt){this.currentBBox.w=it.width+lt*2,this.currentBBox.h=it.height+lt*2,this.currentBBox.x=it.x-lt,this.currentBBox.y=it.y-lt,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),a=this.svgElement.style;var at="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";a.transform=at,a.webkitTransform=at}}}};function HCameraElement(a,o,_){this.initFrame(),this.initBaseData(a,o,_),this.initHierarchy();var b=PropertyFactory.getProp;if(this.pe=b(this,a.pe,0,0,this),a.ks.p.s?(this.px=b(this,a.ks.p.x,1,0,this),this.py=b(this,a.ks.p.y,1,0,this),this.pz=b(this,a.ks.p.z,1,0,this)):this.p=b(this,a.ks.p,1,0,this),a.ks.a&&(this.a=b(this,a.ks.a,1,0,this)),a.ks.or.k.length&&a.ks.or.k[0].to){var $,_e=a.ks.or.k.length;for($=0;$<_e;$+=1)a.ks.or.k[$].to=null,a.ks.or.k[$].ti=null}this.or=b(this,a.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=b(this,a.ks.rx,0,degToRads,this),this.ry=b(this,a.ks.ry,0,degToRads,this),this.rz=b(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,o=this.comp.threeDElements.length,_,b,$;for(a=0;a<o;a+=1)if(_=this.comp.threeDElements[a],_.type==="3d"){b=_.perspectiveElem.style,$=_.container.style;var _e=this.pe.v+"px",et="0px 0px 0px",tt="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";b.perspective=_e,b.webkitPerspective=_e,$.transformOrigin=et,$.mozTransformOrigin=et,$.webkitTransformOrigin=et,b.transform=tt,b.webkitTransform=tt}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var a=this._isFirstFrame,o,_;if(this.hierarchy)for(_=this.hierarchy.length,o=0;o<_;o+=1)a=this.hierarchy[o].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,o=_;o>=0;o-=1){var b=this.hierarchy[o].finalTransform.mProp;this.mat.translate(-b.p.v[0],-b.p.v[1],b.p.v[2]),this.mat.rotateX(-b.or.v[0]).rotateY(-b.or.v[1]).rotateZ(b.or.v[2]),this.mat.rotateX(-b.rx.v).rotateY(-b.ry.v).rotateZ(b.rz.v),this.mat.scale(1/b.s.v[0],1/b.s.v[1],1/b.s.v[2]),this.mat.translate(b.a.v[0],b.a.v[1],b.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 $;this.p?$=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:$=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var _e=Math.sqrt(Math.pow($[0],2)+Math.pow($[1],2)+Math.pow($[2],2)),et=[$[0]/_e,$[1]/_e,$[2]/_e],tt=Math.sqrt(et[2]*et[2]+et[0]*et[0]),rt=Math.atan2(et[1],tt),st=Math.atan2(et[0],-et[2]);this.mat.rotateY(st).rotateX(-rt)}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 it=!this._prevMat.equals(this.mat);if((it||this.pe._mdf)&&this.comp.threeDElements){_=this.comp.threeDElements.length;var lt,at,ft;for(o=0;o<_;o+=1)if(lt=this.comp.threeDElements[o],lt.type==="3d"){if(it){var ht=this.mat.toCSS();ft=lt.container.style,ft.transform=ht,ft.webkitTransform=ht}this.pe._mdf&&(at=lt.perspectiveElem.style,at.perspective=this.pe.v+"px",at.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,o,_){this.assetData=o.getAssetData(a.refId),this.initElement(a,o,_)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var a=this.globalData.getAssetsPath(this.assetData),o=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(o),o.crossOrigin="anonymous",o.src=a,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(a,o){this.animationItem=a,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:o&&o.className||"",imagePreserveAspectRatio:o&&o.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(o&&o.hideOnTransparent===!1),filterSize:{width:o&&o.filterSize&&o.filterSize.width||"400%",height:o&&o.filterSize&&o.filterSize.height||"400%",x:o&&o.filterSize&&o.filterSize.x||"-100%",y:o&&o.filterSize&&o.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,o){var _=a.getBaseElement();if(_){var b=this.layers[o];if(!b.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(_,o);else{for(var $=0,_e,et,tt;$<o;)this.elements[$]&&this.elements[$]!==!0&&this.elements[$].getBaseElement&&(et=this.elements[$],tt=this.layers[$].ddd?this.getThreeDContainerByPos($):et.getBaseElement(),_e=tt||_e),$+=1;_e?(!b.ddd||!this.supports3d)&&this.layerElement.insertBefore(_,_e):(!b.ddd||!this.supports3d)&&this.layerElement.appendChild(_)}else this.addTo3dContainer(_,o)}},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 o=0,_=this.threeDElements.length;o<_;){if(this.threeDElements[o].startPos<=a&&this.threeDElements[o].endPos>=a)return this.threeDElements[o].perspectiveElem;o+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(a,o){var _=createTag("div"),b,$;styleDiv(_);var _e=createTag("div");if(styleDiv(_e),o==="3d"){b=_.style,b.width=this.globalData.compSize.w+"px",b.height=this.globalData.compSize.h+"px";var et="50% 50%";b.webkitTransformOrigin=et,b.mozTransformOrigin=et,b.transformOrigin=et,$=_e.style;var tt="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";$.transform=tt,$.webkitTransform=tt}_.appendChild(_e);var rt={container:_e,perspectiveElem:_,startPos:a,endPos:a,type:o};return this.threeDElements.push(rt),rt},HybridRendererBase.prototype.build3dContainers=function(){var a,o=this.layers.length,_,b="";for(a=0;a<o;a+=1)this.layers[a].ddd&&this.layers[a].ty!==3?(b!=="3d"&&(b="3d",_=this.createThreeDContainer(a,"3d")),_.endPos=Math.max(_.endPos,a)):(b!=="2d"&&(b="2d",_=this.createThreeDContainer(a,"2d")),_.endPos=Math.max(_.endPos,a));for(o=this.threeDElements.length,a=o-1;a>=0;a-=1)this.resizerElem.appendChild(this.threeDElements[a].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(a,o){for(var _=0,b=this.threeDElements.length;_<b;){if(o<=this.threeDElements[_].endPos){for(var $=this.threeDElements[_].startPos,_e;$<o;)this.elements[$]&&this.elements[$].getBaseElement&&(_e=this.elements[$].getBaseElement()),$+=1;_e?this.threeDElements[_].container.insertBefore(a,_e):this.threeDElements[_].container.appendChild(a);break}_+=1}},HybridRendererBase.prototype.configAnimation=function(a){var o=createTag("div"),_=this.animationItem.wrapper,b=o.style;b.width=a.w+"px",b.height=a.h+"px",this.resizerElem=o,styleDiv(o),b.transformStyle="flat",b.mozTransformStyle="flat",b.webkitTransformStyle="flat",this.renderConfig.className&&o.setAttribute("class",this.renderConfig.className),_.appendChild(o),b.overflow="hidden";var $=createNS("svg");$.setAttribute("width","1"),$.setAttribute("height","1"),styleDiv($),this.resizerElem.appendChild($);var _e=createNS("defs");$.appendChild(_e),this.data=a,this.setupGlobalData(a,$),this.globalData.defs=_e,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,o=this.layers?this.layers.length:0;for(a=0;a<o;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,o=this.animationItem.wrapper.offsetHeight,_=a/o,b=this.globalData.compSize.w/this.globalData.compSize.h,$,_e,et,tt;b>_?($=a/this.globalData.compSize.w,_e=a/this.globalData.compSize.w,et=0,tt=(o-this.globalData.compSize.h*(a/this.globalData.compSize.w))/2):($=o/this.globalData.compSize.h,_e=o/this.globalData.compSize.h,et=(a-this.globalData.compSize.w*(o/this.globalData.compSize.h))/2,tt=0);var rt=this.resizerElem.style;rt.webkitTransform="matrix3d("+$+",0,0,0,0,"+_e+",0,0,0,0,1,0,"+et+","+tt+",0,1)",rt.transform=rt.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,o=this.globalData.compSize.h,_,b=this.threeDElements.length;for(_=0;_<b;_+=1){var $=this.threeDElements[_].perspectiveElem.style;$.webkitPerspective=Math.sqrt(Math.pow(a,2)+Math.pow(o,2))+"px",$.perspective=$.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(a){var o,_=a.length,b=createTag("div");for(o=0;o<_;o+=1)if(a[o].xt){var $=this.createComp(a[o],b,this.globalData.comp,null);$.initExpressions(),this.globalData.projectInterface.registerComposition($)}};function HCompElement(a,o,_){this.layers=a.layers,this.supports3d=!a.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(a,o,_),this.tm=a.tm?PropertyFactory.getProp(this,a.tm,0,o.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,o){for(var _=0,b;_<o;)this.elements[_]&&this.elements[_].getBaseElement&&(b=this.elements[_].getBaseElement()),_+=1;b?this.layerElement.insertBefore(a,b):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,o){this.animationItem=a,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:o&&o.className||"",imagePreserveAspectRatio:o&&o.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(o&&o.hideOnTransparent===!1),filterSize:{width:o&&o.filterSize&&o.filterSize.width||"400%",height:o&&o.filterSize&&o.filterSize.height||"400%",x:o&&o.filterSize&&o.filterSize.x||"-100%",y:o&&o.filterSize&&o.filterSize.y||"-100%"},runExpressions:!o||o.runExpressions===void 0||o.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 o(_){for(var b=0,$=a.layers.length;b<$;){if(a.layers[b].nm===_||a.layers[b].ind===_)return a.elements[b].layerInterface;b+=1}return null}return Object.defineProperty(o,"_name",{value:a.data.nm}),o.layer=o,o.pixelAspect=1,o.height=a.data.h||a.globalData.compSize.h,o.width=a.data.w||a.globalData.compSize.w,o.pixelAspect=1,o.frameDuration=1/a.globalData.frameRate,o.displayStartTime=0,o.numLayers=a.layers.length,o}}();function _typeof$2(a){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$2(a)}function seedRandom(a,o){var _=this,b=256,$=6,_e=52,et="random",tt=o.pow(b,$),rt=o.pow(2,_e),st=rt*2,it=b-1,lt;function at(nt,dt,yt){var _t=[];dt=dt===!0?{entropy:!0}:dt||{};var At=vt(pt(dt.entropy?[nt,ot(a)]:nt===null?ut():nt,3),_t),xt=new ft(_t),wt=function(){for(var It=xt.g($),Nt=tt,Ct=0;It<rt;)It=(It+Ct)*b,Nt*=b,Ct=xt.g(1);for(;It>=st;)It/=2,Nt/=2,Ct>>>=1;return(It+Ct)/Nt};return wt.int32=function(){return xt.g(4)|0},wt.quick=function(){return xt.g(4)/4294967296},wt.double=wt,vt(ot(xt.S),a),(dt.pass||yt||function(bt,It,Nt,Ct){return Ct&&(Ct.S&&ht(Ct,xt),bt.state=function(){return ht(xt,{})}),Nt?(o[et]=bt,It):bt})(wt,At,"global"in dt?dt.global:this==o,dt.state)}o["seed"+et]=at;function ft(nt){var dt,yt=nt.length,_t=this,At=0,xt=_t.i=_t.j=0,wt=_t.S=[];for(yt||(nt=[yt++]);At<b;)wt[At]=At++;for(At=0;At<b;At++)wt[At]=wt[xt=it&xt+nt[At%yt]+(dt=wt[At])],wt[xt]=dt;_t.g=function(bt){for(var It,Nt=0,Ct=_t.i,jt=_t.j,Et=_t.S;bt--;)It=Et[Ct=it&Ct+1],Nt=Nt*b+Et[it&(Et[Ct]=Et[jt=it&jt+It])+(Et[jt]=It)];return _t.i=Ct,_t.j=jt,Nt}}function ht(nt,dt){return dt.i=nt.i,dt.j=nt.j,dt.S=nt.S.slice(),dt}function pt(nt,dt){var yt=[],_t=_typeof$2(nt),At;if(dt&&_t=="object")for(At in nt)try{yt.push(pt(nt[At],dt-1))}catch{}return yt.length?yt:_t=="string"?nt:nt+"\0"}function vt(nt,dt){for(var yt=nt+"",_t,At=0;At<yt.length;)dt[it&At]=it&(_t^=dt[it&At]*19)+yt.charCodeAt(At++);return ot(dt)}function ut(){try{var nt=new Uint8Array(b);return(_.crypto||_.msCrypto).getRandomValues(nt),ot(nt)}catch{var dt=_.navigator,yt=dt&&dt.plugins;return[+new Date,_,yt,_.screen,ot(a)]}}function ot(nt){return String.fromCharCode.apply(0,nt)}vt(o.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(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_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,o){return a==="number"||o instanceof Number||a==="boolean"||a==="string"}function $bm_neg(a){var o=_typeof$1(a);if(o==="number"||a instanceof Number||o==="boolean")return-a;if($bm_isInstanceOfArray(a)){var _,b=a.length,$=[];for(_=0;_<b;_+=1)$[_]=-a[_];return $}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,o){var _=_typeof$1(a),b=_typeof$1(o);if(isNumerable(_,a)&&isNumerable(b,o)||_==="string"||b==="string")return a+o;if($bm_isInstanceOfArray(a)&&isNumerable(b,o))return a=a.slice(0),a[0]+=o,a;if(isNumerable(_,a)&&$bm_isInstanceOfArray(o))return o=o.slice(0),o[0]=a+o[0],o;if($bm_isInstanceOfArray(a)&&$bm_isInstanceOfArray(o)){for(var $=0,_e=a.length,et=o.length,tt=[];$<_e||$<et;)(typeof a[$]=="number"||a[$]instanceof Number)&&(typeof o[$]=="number"||o[$]instanceof Number)?tt[$]=a[$]+o[$]:tt[$]=o[$]===void 0?a[$]:a[$]||o[$],$+=1;return tt}return 0}var add=sum;function sub(a,o){var _=_typeof$1(a),b=_typeof$1(o);if(isNumerable(_,a)&&isNumerable(b,o))return _==="string"&&(a=parseInt(a,10)),b==="string"&&(o=parseInt(o,10)),a-o;if($bm_isInstanceOfArray(a)&&isNumerable(b,o))return a=a.slice(0),a[0]-=o,a;if(isNumerable(_,a)&&$bm_isInstanceOfArray(o))return o=o.slice(0),o[0]=a-o[0],o;if($bm_isInstanceOfArray(a)&&$bm_isInstanceOfArray(o)){for(var $=0,_e=a.length,et=o.length,tt=[];$<_e||$<et;)(typeof a[$]=="number"||a[$]instanceof Number)&&(typeof o[$]=="number"||o[$]instanceof Number)?tt[$]=a[$]-o[$]:tt[$]=o[$]===void 0?a[$]:a[$]||o[$],$+=1;return tt}return 0}function mul(a,o){var _=_typeof$1(a),b=_typeof$1(o),$;if(isNumerable(_,a)&&isNumerable(b,o))return a*o;var _e,et;if($bm_isInstanceOfArray(a)&&isNumerable(b,o)){for(et=a.length,$=createTypedArray("float32",et),_e=0;_e<et;_e+=1)$[_e]=a[_e]*o;return $}if(isNumerable(_,a)&&$bm_isInstanceOfArray(o)){for(et=o.length,$=createTypedArray("float32",et),_e=0;_e<et;_e+=1)$[_e]=a*o[_e];return $}return 0}function div(a,o){var _=_typeof$1(a),b=_typeof$1(o),$;if(isNumerable(_,a)&&isNumerable(b,o))return a/o;var _e,et;if($bm_isInstanceOfArray(a)&&isNumerable(b,o)){for(et=a.length,$=createTypedArray("float32",et),_e=0;_e<et;_e+=1)$[_e]=a[_e]/o;return $}if(isNumerable(_,a)&&$bm_isInstanceOfArray(o)){for(et=o.length,$=createTypedArray("float32",et),_e=0;_e<et;_e+=1)$[_e]=a/o[_e];return $}return 0}function mod(a,o){return typeof a=="string"&&(a=parseInt(a,10)),typeof o=="string"&&(o=parseInt(o,10)),a%o}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(a,o,_){if(o>_){var b=_;_=o,o=b}return Math.min(Math.max(a,o),_)}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,o){if(typeof a=="number"||a instanceof Number)return o=o||0,Math.abs(a-o);o||(o=helperLengthArray);var _,b=Math.min(a.length,o.length),$=0;for(_=0;_<b;_+=1)$+=Math.pow(o[_]-a[_],2);return Math.sqrt($)}function normalize(a){return div(a,length(a))}function rgbToHsl(a){var o=a[0],_=a[1],b=a[2],$=Math.max(o,_,b),_e=Math.min(o,_,b),et,tt,rt=($+_e)/2;if($===_e)et=0,tt=0;else{var st=$-_e;switch(tt=rt>.5?st/(2-$-_e):st/($+_e),$){case o:et=(_-b)/st+(_<b?6:0);break;case _:et=(b-o)/st+2;break;case b:et=(o-_)/st+4;break}et/=6}return[et,tt,rt,a[3]]}function hue2rgb(a,o,_){return _<0&&(_+=1),_>1&&(_-=1),_<1/6?a+(o-a)*6*_:_<1/2?o:_<2/3?a+(o-a)*(2/3-_)*6:a}function hslToRgb(a){var o=a[0],_=a[1],b=a[2],$,_e,et;if(_===0)$=b,et=b,_e=b;else{var tt=b<.5?b*(1+_):b+_-b*_,rt=2*b-tt;$=hue2rgb(rt,tt,o+1/3),_e=hue2rgb(rt,tt,o),et=hue2rgb(rt,tt,o-1/3)}return[$,_e,et,a[3]]}function linear(a,o,_,b,$){if((b===void 0||$===void 0)&&(b=o,$=_,o=0,_=1),_<o){var _e=_;_=o,o=_e}if(a<=o)return b;if(a>=_)return $;var et=_===o?0:(a-o)/(_-o);if(!b.length)return b+($-b)*et;var tt,rt=b.length,st=createTypedArray("float32",rt);for(tt=0;tt<rt;tt+=1)st[tt]=b[tt]+($[tt]-b[tt])*et;return st}function random(a,o){if(o===void 0&&(a===void 0?(a=0,o=1):(o=a,a=void 0)),o.length){var _,b=o.length;a||(a=createTypedArray("float32",b));var $=createTypedArray("float32",b),_e=BMMath.random();for(_=0;_<b;_+=1)$[_]=a[_]+_e*(o[_]-a[_]);return $}a===void 0&&(a=0);var et=BMMath.random();return a+et*(o-a)}function createPath(a,o,_,b){var $,_e=a.length,et=shapePool.newElement();et.setPathData(!!b,_e);var tt=[0,0],rt,st;for($=0;$<_e;$+=1)rt=o&&o[$]?o[$]:tt,st=_&&_[$]?_[$]:tt,et.setTripleAt(a[$][0],a[$][1],st[0]+a[$][0],st[1]+a[$][1],rt[0]+a[$][0],rt[1]+a[$][1],$,!0);return et}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(o,_){var b,$,_e=this.pv.length?this.pv.length:1,et=createTypedArray("float32",_e);o=5;var tt=Math.floor(time*o);for(b=0,$=0;b<tt;){for($=0;$<_e;$+=1)et[$]+=-_+_*2*BMMath.random();b+=1}var rt=time*o,st=rt-Math.floor(rt),it=createTypedArray("float32",_e);if(_e>1){for($=0;$<_e;$+=1)it[$]=this.pv[$]+et[$]+(-_+_*2*BMMath.random())*st;return it}return this.pv+et[0]+(-_+_*2*BMMath.random())*st}).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,o){return loopIn(a,o,!0)}function loopOutDuration(a,o){return loopOut(a,o,!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,o){var _=[o[0]-a[0],o[1]-a[1],o[2]-a[2]],b=Math.atan2(_[0],Math.sqrt(_[1]*_[1]+_[2]*_[2]))/degToRads,$=-Math.atan2(_[1],_[2])/degToRads;return[$,b,0]}function easeOut(a,o,_,b,$){return applyEase(easeOutBez,a,o,_,b,$)}function easeIn(a,o,_,b,$){return applyEase(easeInBez,a,o,_,b,$)}function ease(a,o,_,b,$){return applyEase(easeInOutBez,a,o,_,b,$)}function applyEase(a,o,_,b,$,_e){$===void 0?($=_,_e=b):o=(o-_)/(b-_),o>1?o=1:o<0&&(o=0);var et=a(o);if($bm_isInstanceOfArray($)){var tt,rt=$.length,st=createTypedArray("float32",rt);for(tt=0;tt<rt;tt+=1)st[tt]=(_e[tt]-$[tt])*et+$[tt];return st}return(_e-$)*et+$}function nearestKey(a){var o,_=data.k.length,b,$;if(!data.k.length||typeof data.k[0]=="number")b=0,$=0;else if(b=-1,a*=elem.comp.globalData.frameRate,a<data.k[0].t)b=1,$=data.k[0].t;else{for(o=0;o<_-1;o+=1)if(a===data.k[o].t){b=o+1,$=data.k[o].t;break}else if(a>data.k[o].t&&a<data.k[o+1].t){a-data.k[o].t>data.k[o+1].t-a?(b=o+2,$=data.k[o+1].t):(b=o+1,$=data.k[o].t);break}b===-1&&(b=o+1,$=data.k[o].t)}var _e={};return _e.index=b,_e.time=$/elem.comp.globalData.frameRate,_e}function key(a){var o,_,b;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+a);a-=1,o={time:data.k[a].t/elem.comp.globalData.frameRate,value:[]};var $=Object.prototype.hasOwnProperty.call(data.k[a],"s")?data.k[a].s:data.k[a-1].e;for(b=$.length,_=0;_<b;_+=1)o[_]=$[_],o.value[_]=$[_];return o}function framesToTime(a,o){return o||(o=elem.comp.globalData.frameRate),a/o}function timeToFrames(a,o){return!a&&a!==0&&(a=time),o||(o=elem.comp.globalData.frameRate),a*o}function seedRandom(a){BMMath.seedrandom(randSeed+a)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(a,o){return typeof value=="string"?o===void 0?value.substring(a):value.substring(a,o):""}function substr(a,o){return typeof value=="string"?o===void 0?value.substr(a):value.substr(a,o):""}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=o,a.resetFrame=ExpressionManager.resetFrame;function o(_){var b=0,$=[];function _e(){b+=1}function et(){b-=1,b===0&&rt()}function tt(st){$.indexOf(st)===-1&&$.push(st)}function rt(){var st,it=$.length;for(st=0;st<it;st+=1)$[st].release();$.length=0}_.renderer.compInterface=CompExpressionInterface(_.renderer),_.renderer.globalData.projectInterface.registerComposition(_.renderer),_.renderer.globalData.pushExpression=_e,_.renderer.globalData.popExpression=et,_.renderer.globalData.registerExpressionProperty=tt}return a}(),MaskManagerInterface=function(){function a(_,b){this._mask=_,this._data=b}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 o=function(b){var $=createSizedArray(b.viewData.length),_e,et=b.viewData.length;for(_e=0;_e<et;_e+=1)$[_e]=new a(b.viewData[_e],b.masksProperties[_e]);var tt=function(st){for(_e=0;_e<et;){if(b.masksProperties[_e].nm===st)return $[_e];_e+=1}return null};return tt};return o}(),ExpressionPropertyInterface=function(){var a={pv:0,v:0,mult:1},o={pv:[0,0,0],v:[0,0,0],mult:1};function _(et,tt,rt){Object.defineProperty(et,"velocity",{get:function(){return tt.getVelocityAtTime(tt.comp.currentFrame)}}),et.numKeys=tt.keyframes?tt.keyframes.length:0,et.key=function(st){if(!et.numKeys)return 0;var it="";"s"in tt.keyframes[st-1]?it=tt.keyframes[st-1].s:"e"in tt.keyframes[st-2]?it=tt.keyframes[st-2].e:it=tt.keyframes[st-2].s;var lt=rt==="unidimensional"?new Number(it):Object.assign({},it);return lt.time=tt.keyframes[st-1].t/tt.elem.comp.globalData.frameRate,lt.value=rt==="unidimensional"?it[0]:it,lt},et.valueAtTime=tt.getValueAtTime,et.speedAtTime=tt.getSpeedAtTime,et.velocityAtTime=tt.getVelocityAtTime,et.propertyGroup=tt.propertyGroup}function b(et){(!et||!("pv"in et))&&(et=a);var tt=1/et.mult,rt=et.pv*tt,st=new Number(rt);return st.value=rt,_(st,et,"unidimensional"),function(){return et.k&&et.getValue(),rt=et.v*tt,st.value!==rt&&(st=new Number(rt),st.value=rt,st[0]=rt,_(st,et,"unidimensional")),st}}function $(et){(!et||!("pv"in et))&&(et=o);var tt=1/et.mult,rt=et.data&&et.data.l||et.pv.length,st=createTypedArray("float32",rt),it=createTypedArray("float32",rt);return st.value=it,_(st,et,"multidimensional"),function(){et.k&&et.getValue();for(var lt=0;lt<rt;lt+=1)it[lt]=et.v[lt]*tt,st[lt]=it[lt];return st}}function _e(){return a}return function(et){return et?et.propType==="unidimensional"?b(et):$(et):_e}}(),TransformExpressionInterface=function(){return function(a){function o(et){switch(et){case"scale":case"Scale":case"ADBE Scale":case 6:return o.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return o.rotation;case"ADBE Rotate X":return o.xRotation;case"ADBE Rotate Y":return o.yRotation;case"position":case"Position":case"ADBE Position":case 2:return o.position;case"ADBE Position_0":return o.xPosition;case"ADBE Position_1":return o.yPosition;case"ADBE Position_2":return o.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return o.anchorPoint;case"opacity":case"Opacity":case 11:return o.opacity;default:return null}}Object.defineProperty(o,"rotation",{get:ExpressionPropertyInterface(a.r||a.rz)}),Object.defineProperty(o,"zRotation",{get:ExpressionPropertyInterface(a.rz||a.r)}),Object.defineProperty(o,"xRotation",{get:ExpressionPropertyInterface(a.rx)}),Object.defineProperty(o,"yRotation",{get:ExpressionPropertyInterface(a.ry)}),Object.defineProperty(o,"scale",{get:ExpressionPropertyInterface(a.s)});var _,b,$,_e;return a.p?_e=ExpressionPropertyInterface(a.p):(_=ExpressionPropertyInterface(a.px),b=ExpressionPropertyInterface(a.py),a.pz&&($=ExpressionPropertyInterface(a.pz))),Object.defineProperty(o,"position",{get:function(){return a.p?_e():[_(),b(),$?$():0]}}),Object.defineProperty(o,"xPosition",{get:ExpressionPropertyInterface(a.px)}),Object.defineProperty(o,"yPosition",{get:ExpressionPropertyInterface(a.py)}),Object.defineProperty(o,"zPosition",{get:ExpressionPropertyInterface(a.pz)}),Object.defineProperty(o,"anchorPoint",{get:ExpressionPropertyInterface(a.a)}),Object.defineProperty(o,"opacity",{get:ExpressionPropertyInterface(a.o)}),Object.defineProperty(o,"skew",{get:ExpressionPropertyInterface(a.sk)}),Object.defineProperty(o,"skewAxis",{get:ExpressionPropertyInterface(a.sa)}),Object.defineProperty(o,"orientation",{get:ExpressionPropertyInterface(a.or)}),o}}(),LayerExpressionInterface=function(){function a(st){var it=new Matrix;if(st!==void 0){var lt=this._elem.finalTransform.mProp.getValueAtTime(st);lt.clone(it)}else{var at=this._elem.finalTransform.mProp;at.applyToMatrix(it)}return it}function o(st,it){var lt=this.getMatrix(it);return lt.props[12]=0,lt.props[13]=0,lt.props[14]=0,this.applyPoint(lt,st)}function _(st,it){var lt=this.getMatrix(it);return this.applyPoint(lt,st)}function b(st,it){var lt=this.getMatrix(it);return lt.props[12]=0,lt.props[13]=0,lt.props[14]=0,this.invertPoint(lt,st)}function $(st,it){var lt=this.getMatrix(it);return this.invertPoint(lt,st)}function _e(st,it){if(this._elem.hierarchy&&this._elem.hierarchy.length){var lt,at=this._elem.hierarchy.length;for(lt=0;lt<at;lt+=1)this._elem.hierarchy[lt].finalTransform.mProp.applyToMatrix(st)}return st.applyToPointArray(it[0],it[1],it[2]||0)}function et(st,it){if(this._elem.hierarchy&&this._elem.hierarchy.length){var lt,at=this._elem.hierarchy.length;for(lt=0;lt<at;lt+=1)this._elem.hierarchy[lt].finalTransform.mProp.applyToMatrix(st)}return st.inversePoint(it)}function tt(st){var it=new Matrix;if(it.reset(),this._elem.finalTransform.mProp.applyToMatrix(it),this._elem.hierarchy&&this._elem.hierarchy.length){var lt,at=this._elem.hierarchy.length;for(lt=0;lt<at;lt+=1)this._elem.hierarchy[lt].finalTransform.mProp.applyToMatrix(it);return it.inversePoint(st)}return it.inversePoint(st)}function rt(){return[1,1,1,1]}return function(st){var it;function lt(pt){ft.mask=new MaskManagerInterface(pt,st)}function at(pt){ft.effect=pt}function ft(pt){switch(pt){case"ADBE Root Vectors Group":case"Contents":case 2:return ft.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return it;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return ft.effect;case"ADBE Text Properties":return ft.textInterface;default:return null}}ft.getMatrix=a,ft.invertPoint=et,ft.applyPoint=_e,ft.toWorld=_,ft.toWorldVec=o,ft.fromWorld=$,ft.fromWorldVec=b,ft.toComp=_,ft.fromComp=tt,ft.sampleImage=rt,ft.sourceRectAtTime=st.sourceRectAtTime.bind(st),ft._elem=st,it=TransformExpressionInterface(st.finalTransform.mProp);var ht=getDescriptor(it,"anchorPoint");return Object.defineProperties(ft,{hasParent:{get:function(){return st.hierarchy.length}},parent:{get:function(){return st.hierarchy[0].layerInterface}},rotation:getDescriptor(it,"rotation"),scale:getDescriptor(it,"scale"),position:getDescriptor(it,"position"),opacity:getDescriptor(it,"opacity"),anchorPoint:ht,anchor_point:ht,transform:{get:function(){return it}},active:{get:function(){return st.isInRange}}}),ft.startTime=st.data.st,ft.index=st.data.ind,ft.source=st.data.refId,ft.height=st.data.ty===0?st.data.h:100,ft.width=st.data.ty===0?st.data.w:100,ft.inPoint=st.data.ip/st.comp.globalData.frameRate,ft.outPoint=st.data.op/st.comp.globalData.frameRate,ft._name=st.data.nm,ft.registerMaskInterface=lt,ft.registerEffectsInterface=at,ft}}(),propertyGroupFactory=function(){return function(a,o){return function(_){return _=_===void 0?1:_,_<=0?a:o(_-1)}}}(),PropertyInterface=function(){return function(a,o){var _={_name:a};function b($){return $=$===void 0?1:$,$<=0?_:o($-1)}return b}}(),EffectsExpressionInterface=function(){var a={createEffectsInterface:o};function o($,_e){if($.effectsManager){var et=[],tt=$.data.ef,rt,st=$.effectsManager.effectElements.length;for(rt=0;rt<st;rt+=1)et.push(_(tt[rt],$.effectsManager.effectElements[rt],_e,$));var it=$.data.ef||[],lt=function(ft){for(rt=0,st=it.length;rt<st;){if(ft===it[rt].nm||ft===it[rt].mn||ft===it[rt].ix)return et[rt];rt+=1}return null};return Object.defineProperty(lt,"numProperties",{get:function(){return it.length}}),lt}return null}function _($,_e,et,tt){function rt(ft){for(var ht=$.ef,pt=0,vt=ht.length;pt<vt;){if(ft===ht[pt].nm||ft===ht[pt].mn||ft===ht[pt].ix)return ht[pt].ty===5?it[pt]:it[pt]();pt+=1}throw new Error}var st=propertyGroupFactory(rt,et),it=[],lt,at=$.ef.length;for(lt=0;lt<at;lt+=1)$.ef[lt].ty===5?it.push(_($.ef[lt],_e.effectElements[lt],_e.effectElements[lt].propertyGroup,tt)):it.push(b(_e.effectElements[lt],$.ef[lt].ty,tt,st));return $.mn==="ADBE Color Control"&&Object.defineProperty(rt,"color",{get:function(){return it[0]()}}),Object.defineProperties(rt,{numProperties:{get:function(){return $.np}},_name:{value:$.nm},propertyGroup:{value:st}}),rt.enabled=$.en!==0,rt.active=rt.enabled,rt}function b($,_e,et,tt){var rt=ExpressionPropertyInterface($.p);function st(){return _e===10?et.comp.compInterface($.p.v):rt()}return $.p.setGroupProperty&&$.p.setGroupProperty(PropertyInterface("",tt)),st}return a}(),ShapePathInterface=function(){return function(o,_,b){var $=_.sh;function _e(tt){return tt==="Shape"||tt==="shape"||tt==="Path"||tt==="path"||tt==="ADBE Vector Shape"||tt===2?_e.path:null}var et=propertyGroupFactory(_e,b);return $.setGroupProperty(PropertyInterface("Path",et)),Object.defineProperties(_e,{path:{get:function(){return $.k&&$.getValue(),$}},shape:{get:function(){return $.k&&$.getValue(),$}},_name:{value:o.nm},ix:{value:o.ix},propertyIndex:{value:o.ix},mn:{value:o.mn},propertyGroup:{value:b}}),_e}}(),ShapeExpressionInterface=function(){function a(ht,pt,vt){var ut=[],ot,nt=ht?ht.length:0;for(ot=0;ot<nt;ot+=1)ht[ot].ty==="gr"?ut.push(_(ht[ot],pt[ot],vt)):ht[ot].ty==="fl"?ut.push(b(ht[ot],pt[ot],vt)):ht[ot].ty==="st"?ut.push(et(ht[ot],pt[ot],vt)):ht[ot].ty==="tm"?ut.push(tt(ht[ot],pt[ot],vt)):ht[ot].ty==="tr"||(ht[ot].ty==="el"?ut.push(st(ht[ot],pt[ot],vt)):ht[ot].ty==="sr"?ut.push(it(ht[ot],pt[ot],vt)):ht[ot].ty==="sh"?ut.push(ShapePathInterface(ht[ot],pt[ot],vt)):ht[ot].ty==="rc"?ut.push(lt(ht[ot],pt[ot],vt)):ht[ot].ty==="rd"?ut.push(at(ht[ot],pt[ot],vt)):ht[ot].ty==="rp"?ut.push(ft(ht[ot],pt[ot],vt)):ht[ot].ty==="gf"?ut.push($(ht[ot],pt[ot],vt)):ut.push(_e(ht[ot],pt[ot])));return ut}function o(ht,pt,vt){var ut,ot=function(yt){for(var _t=0,At=ut.length;_t<At;){if(ut[_t]._name===yt||ut[_t].mn===yt||ut[_t].propertyIndex===yt||ut[_t].ix===yt||ut[_t].ind===yt)return ut[_t];_t+=1}return typeof yt=="number"?ut[yt-1]:null};ot.propertyGroup=propertyGroupFactory(ot,vt),ut=a(ht.it,pt.it,ot.propertyGroup),ot.numProperties=ut.length;var nt=rt(ht.it[ht.it.length-1],pt.it[pt.it.length-1],ot.propertyGroup);return ot.transform=nt,ot.propertyIndex=ht.cix,ot._name=ht.nm,ot}function _(ht,pt,vt){var ut=function(yt){switch(yt){case"ADBE Vectors Group":case"Contents":case 2:return ut.content;default:return ut.transform}};ut.propertyGroup=propertyGroupFactory(ut,vt);var ot=o(ht,pt,ut.propertyGroup),nt=rt(ht.it[ht.it.length-1],pt.it[pt.it.length-1],ut.propertyGroup);return ut.content=ot,ut.transform=nt,Object.defineProperty(ut,"_name",{get:function(){return ht.nm}}),ut.numProperties=ht.np,ut.propertyIndex=ht.ix,ut.nm=ht.nm,ut.mn=ht.mn,ut}function b(ht,pt,vt){function ut(ot){return ot==="Color"||ot==="color"?ut.color:ot==="Opacity"||ot==="opacity"?ut.opacity:null}return Object.defineProperties(ut,{color:{get:ExpressionPropertyInterface(pt.c)},opacity:{get:ExpressionPropertyInterface(pt.o)},_name:{value:ht.nm},mn:{value:ht.mn}}),pt.c.setGroupProperty(PropertyInterface("Color",vt)),pt.o.setGroupProperty(PropertyInterface("Opacity",vt)),ut}function $(ht,pt,vt){function ut(ot){return ot==="Start Point"||ot==="start point"?ut.startPoint:ot==="End Point"||ot==="end point"?ut.endPoint:ot==="Opacity"||ot==="opacity"?ut.opacity:null}return Object.defineProperties(ut,{startPoint:{get:ExpressionPropertyInterface(pt.s)},endPoint:{get:ExpressionPropertyInterface(pt.e)},opacity:{get:ExpressionPropertyInterface(pt.o)},type:{get:function(){return"a"}},_name:{value:ht.nm},mn:{value:ht.mn}}),pt.s.setGroupProperty(PropertyInterface("Start Point",vt)),pt.e.setGroupProperty(PropertyInterface("End Point",vt)),pt.o.setGroupProperty(PropertyInterface("Opacity",vt)),ut}function _e(){function ht(){return null}return ht}function et(ht,pt,vt){var ut=propertyGroupFactory(At,vt),ot=propertyGroupFactory(_t,ut);function nt(xt){Object.defineProperty(_t,ht.d[xt].nm,{get:ExpressionPropertyInterface(pt.d.dataProps[xt].p)})}var dt,yt=ht.d?ht.d.length:0,_t={};for(dt=0;dt<yt;dt+=1)nt(dt),pt.d.dataProps[dt].p.setGroupProperty(ot);function At(xt){return xt==="Color"||xt==="color"?At.color:xt==="Opacity"||xt==="opacity"?At.opacity:xt==="Stroke Width"||xt==="stroke width"?At.strokeWidth:null}return Object.defineProperties(At,{color:{get:ExpressionPropertyInterface(pt.c)},opacity:{get:ExpressionPropertyInterface(pt.o)},strokeWidth:{get:ExpressionPropertyInterface(pt.w)},dash:{get:function(){return _t}},_name:{value:ht.nm},mn:{value:ht.mn}}),pt.c.setGroupProperty(PropertyInterface("Color",ut)),pt.o.setGroupProperty(PropertyInterface("Opacity",ut)),pt.w.setGroupProperty(PropertyInterface("Stroke Width",ut)),At}function tt(ht,pt,vt){function ut(nt){return nt===ht.e.ix||nt==="End"||nt==="end"?ut.end:nt===ht.s.ix?ut.start:nt===ht.o.ix?ut.offset:null}var ot=propertyGroupFactory(ut,vt);return ut.propertyIndex=ht.ix,pt.s.setGroupProperty(PropertyInterface("Start",ot)),pt.e.setGroupProperty(PropertyInterface("End",ot)),pt.o.setGroupProperty(PropertyInterface("Offset",ot)),ut.propertyIndex=ht.ix,ut.propertyGroup=vt,Object.defineProperties(ut,{start:{get:ExpressionPropertyInterface(pt.s)},end:{get:ExpressionPropertyInterface(pt.e)},offset:{get:ExpressionPropertyInterface(pt.o)},_name:{value:ht.nm}}),ut.mn=ht.mn,ut}function rt(ht,pt,vt){function ut(nt){return ht.a.ix===nt||nt==="Anchor Point"?ut.anchorPoint:ht.o.ix===nt||nt==="Opacity"?ut.opacity:ht.p.ix===nt||nt==="Position"?ut.position:ht.r.ix===nt||nt==="Rotation"||nt==="ADBE Vector Rotation"?ut.rotation:ht.s.ix===nt||nt==="Scale"?ut.scale:ht.sk&&ht.sk.ix===nt||nt==="Skew"?ut.skew:ht.sa&&ht.sa.ix===nt||nt==="Skew Axis"?ut.skewAxis:null}var ot=propertyGroupFactory(ut,vt);return pt.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",ot)),pt.transform.mProps.p.setGroupProperty(PropertyInterface("Position",ot)),pt.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",ot)),pt.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",ot)),pt.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",ot)),pt.transform.mProps.sk&&(pt.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",ot)),pt.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",ot))),pt.transform.op.setGroupProperty(PropertyInterface("Opacity",ot)),Object.defineProperties(ut,{opacity:{get:ExpressionPropertyInterface(pt.transform.mProps.o)},position:{get:ExpressionPropertyInterface(pt.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(pt.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(pt.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(pt.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(pt.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(pt.transform.mProps.sa)},_name:{value:ht.nm}}),ut.ty="tr",ut.mn=ht.mn,ut.propertyGroup=vt,ut}function st(ht,pt,vt){function ut(dt){return ht.p.ix===dt?ut.position:ht.s.ix===dt?ut.size:null}var ot=propertyGroupFactory(ut,vt);ut.propertyIndex=ht.ix;var nt=pt.sh.ty==="tm"?pt.sh.prop:pt.sh;return nt.s.setGroupProperty(PropertyInterface("Size",ot)),nt.p.setGroupProperty(PropertyInterface("Position",ot)),Object.defineProperties(ut,{size:{get:ExpressionPropertyInterface(nt.s)},position:{get:ExpressionPropertyInterface(nt.p)},_name:{value:ht.nm}}),ut.mn=ht.mn,ut}function it(ht,pt,vt){function ut(dt){return ht.p.ix===dt?ut.position:ht.r.ix===dt?ut.rotation:ht.pt.ix===dt?ut.points:ht.or.ix===dt||dt==="ADBE Vector Star Outer Radius"?ut.outerRadius:ht.os.ix===dt?ut.outerRoundness:ht.ir&&(ht.ir.ix===dt||dt==="ADBE Vector Star Inner Radius")?ut.innerRadius:ht.is&&ht.is.ix===dt?ut.innerRoundness:null}var ot=propertyGroupFactory(ut,vt),nt=pt.sh.ty==="tm"?pt.sh.prop:pt.sh;return ut.propertyIndex=ht.ix,nt.or.setGroupProperty(PropertyInterface("Outer Radius",ot)),nt.os.setGroupProperty(PropertyInterface("Outer Roundness",ot)),nt.pt.setGroupProperty(PropertyInterface("Points",ot)),nt.p.setGroupProperty(PropertyInterface("Position",ot)),nt.r.setGroupProperty(PropertyInterface("Rotation",ot)),ht.ir&&(nt.ir.setGroupProperty(PropertyInterface("Inner Radius",ot)),nt.is.setGroupProperty(PropertyInterface("Inner Roundness",ot))),Object.defineProperties(ut,{position:{get:ExpressionPropertyInterface(nt.p)},rotation:{get:ExpressionPropertyInterface(nt.r)},points:{get:ExpressionPropertyInterface(nt.pt)},outerRadius:{get:ExpressionPropertyInterface(nt.or)},outerRoundness:{get:ExpressionPropertyInterface(nt.os)},innerRadius:{get:ExpressionPropertyInterface(nt.ir)},innerRoundness:{get:ExpressionPropertyInterface(nt.is)},_name:{value:ht.nm}}),ut.mn=ht.mn,ut}function lt(ht,pt,vt){function ut(dt){return ht.p.ix===dt?ut.position:ht.r.ix===dt?ut.roundness:ht.s.ix===dt||dt==="Size"||dt==="ADBE Vector Rect Size"?ut.size:null}var ot=propertyGroupFactory(ut,vt),nt=pt.sh.ty==="tm"?pt.sh.prop:pt.sh;return ut.propertyIndex=ht.ix,nt.p.setGroupProperty(PropertyInterface("Position",ot)),nt.s.setGroupProperty(PropertyInterface("Size",ot)),nt.r.setGroupProperty(PropertyInterface("Rotation",ot)),Object.defineProperties(ut,{position:{get:ExpressionPropertyInterface(nt.p)},roundness:{get:ExpressionPropertyInterface(nt.r)},size:{get:ExpressionPropertyInterface(nt.s)},_name:{value:ht.nm}}),ut.mn=ht.mn,ut}function at(ht,pt,vt){function ut(dt){return ht.r.ix===dt||dt==="Round Corners 1"?ut.radius:null}var ot=propertyGroupFactory(ut,vt),nt=pt;return ut.propertyIndex=ht.ix,nt.rd.setGroupProperty(PropertyInterface("Radius",ot)),Object.defineProperties(ut,{radius:{get:ExpressionPropertyInterface(nt.rd)},_name:{value:ht.nm}}),ut.mn=ht.mn,ut}function ft(ht,pt,vt){function ut(dt){return ht.c.ix===dt||dt==="Copies"?ut.copies:ht.o.ix===dt||dt==="Offset"?ut.offset:null}var ot=propertyGroupFactory(ut,vt),nt=pt;return ut.propertyIndex=ht.ix,nt.c.setGroupProperty(PropertyInterface("Copies",ot)),nt.o.setGroupProperty(PropertyInterface("Offset",ot)),Object.defineProperties(ut,{copies:{get:ExpressionPropertyInterface(nt.c)},offset:{get:ExpressionPropertyInterface(nt.o)},_name:{value:ht.nm}}),ut.mn=ht.mn,ut}return function(ht,pt,vt){var ut;function ot(dt){if(typeof dt=="number")return dt=dt===void 0?1:dt,dt===0?vt:ut[dt-1];for(var yt=0,_t=ut.length;yt<_t;){if(ut[yt]._name===dt)return ut[yt];yt+=1}return null}function nt(){return vt}return ot.propertyGroup=propertyGroupFactory(ot,nt),ut=a(ht,pt,ot.propertyGroup),ot.numProperties=ut.length,ot._name="Contents",ot}}(),TextExpressionInterface=function(){return function(a){var o;function _(b){switch(b){case"ADBE Text Document":return _.sourceText;default:return null}}return Object.defineProperty(_,"sourceText",{get:function(){a.textProperty.getValue();var $=a.textProperty.currentData.t;return(!o||$!==o.value)&&(o=new String($),o.value=$||new String($),Object.defineProperty(o,"style",{get:function(){return{fillColor:a.textProperty.currentData.fc}}})),o}}),_}}();function _typeof(a){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(a)}var FootageInterface=function(){var a=function(b){var $="",_e=b.getFootageData();function et(){return $="",_e=b.getFootageData(),tt}function tt(rt){if(_e[rt])return $=rt,_e=_e[rt],_typeof(_e)==="object"?tt:_e;var st=rt.indexOf($);if(st!==-1){var it=parseInt(rt.substr(st+$.length),10);return _e=_e[it],_typeof(_e)==="object"?tt:_e}return""}return et},o=function(b){function $(_e){return _e==="Outline"?$.outlineInterface():null}return $._name="Outline",$.outlineInterface=a(b),$};return function(_){function b($){return $==="Data"?b.dataInterface:null}return b._name="Data",b.dataInterface=o(_),b}}(),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(et,tt,rt){tt.x&&(rt.k=!0,rt.x=!0,rt.initiateExpression=ExpressionManager.initiateExpression,rt.effectsSequence.push(rt.initiateExpression(et,tt,rt).bind(rt)))}function o(et){return et*=this.elem.globalData.frameRate,et-=this.offsetTime,et!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<et?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(et,this._cachingAtTime),this._cachingAtTime.lastFrame=et),this._cachingAtTime.value}function _(et){var tt=-.01,rt=this.getValueAtTime(et),st=this.getValueAtTime(et+tt),it=0;if(rt.length){var lt;for(lt=0;lt<rt.length;lt+=1)it+=Math.pow(st[lt]-rt[lt],2);it=Math.sqrt(it)*100}else it=0;return it}function b(et){if(this.vel!==void 0)return this.vel;var tt=-.001,rt=this.getValueAtTime(et),st=this.getValueAtTime(et+tt),it;if(rt.length){it=createTypedArray("float32",rt.length);var lt;for(lt=0;lt<rt.length;lt+=1)it[lt]=(st[lt]-rt[lt])/tt}else it=(st-rt)/tt;return it}function $(){return this.pv}function _e(et){this.propertyGroup=et}return{searchExpressions:a,getSpeedAtTime:_,getVelocityAtTime:b,getValueAtTime:o,getStaticValueAtTime:$,setGroupProperty:_e}}();function addPropertyDecorator(){function a(at,ft,ht){if(!this.k||!this.keyframes)return this.pv;at=at?at.toLowerCase():"";var pt=this.comp.renderedFrame,vt=this.keyframes,ut=vt[vt.length-1].t;if(pt<=ut)return this.pv;var ot,nt;ht?(ft?ot=Math.abs(ut-this.elem.comp.globalData.frameRate*ft):ot=Math.max(0,ut-this.elem.data.ip),nt=ut-ot):((!ft||ft>vt.length-1)&&(ft=vt.length-1),nt=vt[vt.length-1-ft].t,ot=ut-nt);var dt,yt,_t;if(at==="pingpong"){var At=Math.floor((pt-nt)/ot);if(At%2!==0)return this.getValueAtTime((ot-(pt-nt)%ot+nt)/this.comp.globalData.frameRate,0)}else if(at==="offset"){var xt=this.getValueAtTime(nt/this.comp.globalData.frameRate,0),wt=this.getValueAtTime(ut/this.comp.globalData.frameRate,0),bt=this.getValueAtTime(((pt-nt)%ot+nt)/this.comp.globalData.frameRate,0),It=Math.floor((pt-nt)/ot);if(this.pv.length){for(_t=new Array(xt.length),yt=_t.length,dt=0;dt<yt;dt+=1)_t[dt]=(wt[dt]-xt[dt])*It+bt[dt];return _t}return(wt-xt)*It+bt}else if(at==="continue"){var Nt=this.getValueAtTime(ut/this.comp.globalData.frameRate,0),Ct=this.getValueAtTime((ut-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(_t=new Array(Nt.length),yt=_t.length,dt=0;dt<yt;dt+=1)_t[dt]=Nt[dt]+(Nt[dt]-Ct[dt])*((pt-ut)/this.comp.globalData.frameRate)/5e-4;return _t}return Nt+(Nt-Ct)*((pt-ut)/.001)}return this.getValueAtTime(((pt-nt)%ot+nt)/this.comp.globalData.frameRate,0)}function o(at,ft,ht){if(!this.k)return this.pv;at=at?at.toLowerCase():"";var pt=this.comp.renderedFrame,vt=this.keyframes,ut=vt[0].t;if(pt>=ut)return this.pv;var ot,nt;ht?(ft?ot=Math.abs(this.elem.comp.globalData.frameRate*ft):ot=Math.max(0,this.elem.data.op-ut),nt=ut+ot):((!ft||ft>vt.length-1)&&(ft=vt.length-1),nt=vt[ft].t,ot=nt-ut);var dt,yt,_t;if(at==="pingpong"){var At=Math.floor((ut-pt)/ot);if(At%2===0)return this.getValueAtTime(((ut-pt)%ot+ut)/this.comp.globalData.frameRate,0)}else if(at==="offset"){var xt=this.getValueAtTime(ut/this.comp.globalData.frameRate,0),wt=this.getValueAtTime(nt/this.comp.globalData.frameRate,0),bt=this.getValueAtTime((ot-(ut-pt)%ot+ut)/this.comp.globalData.frameRate,0),It=Math.floor((ut-pt)/ot)+1;if(this.pv.length){for(_t=new Array(xt.length),yt=_t.length,dt=0;dt<yt;dt+=1)_t[dt]=bt[dt]-(wt[dt]-xt[dt])*It;return _t}return bt-(wt-xt)*It}else if(at==="continue"){var Nt=this.getValueAtTime(ut/this.comp.globalData.frameRate,0),Ct=this.getValueAtTime((ut+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(_t=new Array(Nt.length),yt=_t.length,dt=0;dt<yt;dt+=1)_t[dt]=Nt[dt]+(Nt[dt]-Ct[dt])*(ut-pt)/.001;return _t}return Nt+(Nt-Ct)*(ut-pt)/.001}return this.getValueAtTime((ot-((ut-pt)%ot+ut))/this.comp.globalData.frameRate,0)}function _(at,ft){if(!this.k)return this.pv;if(at=(at||.4)*.5,ft=Math.floor(ft||5),ft<=1)return this.pv;var ht=this.comp.renderedFrame/this.comp.globalData.frameRate,pt=ht-at,vt=ht+at,ut=ft>1?(vt-pt)/(ft-1):1,ot=0,nt=0,dt;this.pv.length?dt=createTypedArray("float32",this.pv.length):dt=0;for(var yt;ot<ft;){if(yt=this.getValueAtTime(pt+ot*ut),this.pv.length)for(nt=0;nt<this.pv.length;nt+=1)dt[nt]+=yt[nt];else dt+=yt;ot+=1}if(this.pv.length)for(nt=0;nt<this.pv.length;nt+=1)dt[nt]/=ft;else dt/=ft;return dt}function b(at){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var ft=this._transformCachingAtTime.v;if(ft.cloneFromProps(this.pre.props),this.appliedTransformations<1){var ht=this.a.getValueAtTime(at);ft.translate(-ht[0]*this.a.mult,-ht[1]*this.a.mult,ht[2]*this.a.mult)}if(this.appliedTransformations<2){var pt=this.s.getValueAtTime(at);ft.scale(pt[0]*this.s.mult,pt[1]*this.s.mult,pt[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var vt=this.sk.getValueAtTime(at),ut=this.sa.getValueAtTime(at);ft.skewFromAxis(-vt*this.sk.mult,ut*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var ot=this.r.getValueAtTime(at);ft.rotate(-ot*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var nt=this.rz.getValueAtTime(at),dt=this.ry.getValueAtTime(at),yt=this.rx.getValueAtTime(at),_t=this.or.getValueAtTime(at);ft.rotateZ(-nt*this.rz.mult).rotateY(dt*this.ry.mult).rotateX(yt*this.rx.mult).rotateZ(-_t[2]*this.or.mult).rotateY(_t[1]*this.or.mult).rotateX(_t[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var At=this.px.getValueAtTime(at),xt=this.py.getValueAtTime(at);if(this.data.p.z){var wt=this.pz.getValueAtTime(at);ft.translate(At*this.px.mult,xt*this.py.mult,-wt*this.pz.mult)}else ft.translate(At*this.px.mult,xt*this.py.mult,0)}else{var bt=this.p.getValueAtTime(at);ft.translate(bt[0]*this.p.mult,bt[1]*this.p.mult,-bt[2]*this.p.mult)}return ft}function $(){return this.v.clone(new Matrix)}var _e=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(at,ft,ht){var pt=_e(at,ft,ht);return pt.dynamicProperties.length?pt.getValueAtTime=b.bind(pt):pt.getValueAtTime=$.bind(pt),pt.setGroupProperty=expressionHelpers.setGroupProperty,pt};var et=PropertyFactory.getProp;PropertyFactory.getProp=function(at,ft,ht,pt,vt){var ut=et(at,ft,ht,pt,vt);ut.kf?ut.getValueAtTime=expressionHelpers.getValueAtTime.bind(ut):ut.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(ut),ut.setGroupProperty=expressionHelpers.setGroupProperty,ut.loopOut=a,ut.loopIn=o,ut.smooth=_,ut.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(ut),ut.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(ut),ut.numKeys=ft.a===1?ft.k.length:0,ut.propertyIndex=ft.ix;var ot=0;return ht!==0&&(ot=createTypedArray("float32",ft.a===1?ft.k[0].s.length:ft.k.length)),ut._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:ot},expressionHelpers.searchExpressions(at,ft,ut),ut.k&&vt.addDynamicProperty(ut),ut};function tt(at){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),at*=this.elem.globalData.frameRate,at-=this.offsetTime,at!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<at?this._caching.lastIndex:0,this._cachingAtTime.lastTime=at,this.interpolateShape(at,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var rt=ShapePropertyFactory.getConstructorFunction(),st=ShapePropertyFactory.getKeyframedConstructorFunction();function it(){}it.prototype={vertices:function(ft,ht){this.k&&this.getValue();var pt=this.v;ht!==void 0&&(pt=this.getValueAtTime(ht,0));var vt,ut=pt._length,ot=pt[ft],nt=pt.v,dt=createSizedArray(ut);for(vt=0;vt<ut;vt+=1)ft==="i"||ft==="o"?dt[vt]=[ot[vt][0]-nt[vt][0],ot[vt][1]-nt[vt][1]]:dt[vt]=[ot[vt][0],ot[vt][1]];return dt},points:function(ft){return this.vertices("v",ft)},inTangents:function(ft){return this.vertices("i",ft)},outTangents:function(ft){return this.vertices("o",ft)},isClosed:function(){return this.v.c},pointOnPath:function(ft,ht){var pt=this.v;ht!==void 0&&(pt=this.getValueAtTime(ht,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(pt));for(var vt=this._segmentsLength,ut=vt.lengths,ot=vt.totalLength*ft,nt=0,dt=ut.length,yt=0,_t;nt<dt;){if(yt+ut[nt].addedLength>ot){var At=nt,xt=pt.c&&nt===dt-1?0:nt+1,wt=(ot-yt)/ut[nt].addedLength;_t=bez.getPointInSegment(pt.v[At],pt.v[xt],pt.o[At],pt.i[xt],wt,ut[nt]);break}else yt+=ut[nt].addedLength;nt+=1}return _t||(_t=pt.c?[pt.v[0][0],pt.v[0][1]]:[pt.v[pt._length-1][0],pt.v[pt._length-1][1]]),_t},vectorOnPath:function(ft,ht,pt){ft==1?ft=this.v.c:ft==0&&(ft=.999);var vt=this.pointOnPath(ft,ht),ut=this.pointOnPath(ft+.001,ht),ot=ut[0]-vt[0],nt=ut[1]-vt[1],dt=Math.sqrt(Math.pow(ot,2)+Math.pow(nt,2));if(dt===0)return[0,0];var yt=pt==="tangent"?[ot/dt,nt/dt]:[-nt/dt,ot/dt];return yt},tangentOnPath:function(ft,ht){return this.vectorOnPath(ft,ht,"tangent")},normalOnPath:function(ft,ht){return this.vectorOnPath(ft,ht,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([it],rt),extendPrototype([it],st),st.prototype.getValueAtTime=tt,st.prototype.initiateExpression=ExpressionManager.initiateExpression;var lt=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(at,ft,ht,pt,vt){var ut=lt(at,ft,ht,pt,vt);return ut.propertyIndex=ft.ix,ut.lock=!1,ht===3?expressionHelpers.searchExpressions(at,ft.pt,ut):ht===4&&expressionHelpers.searchExpressions(at,ft.ks,ut),ut.k&&at.addDynamicProperty(ut),ut}}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(o,_){var b=this.calculateExpression(_);if(o.t!==b){var $={};return this.copyData($,o),$.t=b.toString(),$.__complete=!1,$}return o},TextProperty.prototype.searchProperty=function(){var o=this.searchKeyframes(),_=this.searchExpressions();return this.kf=o||_,this.kf},TextProperty.prototype.searchExpressions=a}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function a(o,_){var b=createNS("feMerge");b.setAttribute("result",o);var $,_e;for(_e=0;_e<_.length;_e+=1)$=createNS("feMergeNode"),$.setAttribute("in",_[_e]),b.appendChild($),b.appendChild($);return b}};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,o,_,b,$){this.filterManager=o;var _e=createNS("feColorMatrix");_e.setAttribute("type","matrix"),_e.setAttribute("color-interpolation-filters","linearRGB"),_e.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=_e,_e.setAttribute("result",b+"_tint_1"),a.appendChild(_e),_e=createNS("feColorMatrix"),_e.setAttribute("type","matrix"),_e.setAttribute("color-interpolation-filters","sRGB"),_e.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),_e.setAttribute("result",b+"_tint_2"),a.appendChild(_e),this.matrixFilter=_e;var et=this.createMergeNode(b,[$,b+"_tint_1",b+"_tint_2"]);a.appendChild(et)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(a){if(a||this.filterManager._mdf){var o=this.filterManager.effectElements[0].p.v,_=this.filterManager.effectElements[1].p.v,b=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+b+" 0"),this.matrixFilter.setAttribute("values",_[0]-o[0]+" 0 0 0 "+o[0]+" "+(_[1]-o[1])+" 0 0 0 "+o[1]+" "+(_[2]-o[2])+" 0 0 0 "+o[2]+" 0 0 0 1 0")}};function SVGFillFilter(a,o,_,b){this.filterManager=o;var $=createNS("feColorMatrix");$.setAttribute("type","matrix"),$.setAttribute("color-interpolation-filters","sRGB"),$.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),$.setAttribute("result",b),a.appendChild($),this.matrixFilter=$}SVGFillFilter.prototype.renderFrame=function(a){if(a||this.filterManager._mdf){var o=this.filterManager.effectElements[2].p.v,_=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+o[0]+" 0 0 0 0 "+o[1]+" 0 0 0 0 "+o[2]+" 0 0 0 "+_+" 0")}};function SVGStrokeEffect(a,o,_){this.initialized=!1,this.filterManager=o,this.elem=_,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var a=this.elem.layerElement.children||this.elem.layerElement.childNodes,o,_,b,$;for(this.filterManager.effectElements[1].p.v===1?($=this.elem.maskManager.masksProperties.length,b=0):(b=this.filterManager.effectElements[0].p.v-1,$=b+1),_=createNS("g"),_.setAttribute("fill","none"),_.setAttribute("stroke-linecap","round"),_.setAttribute("stroke-dashoffset",1),b;b<$;b+=1)o=createNS("path"),_.appendChild(o),this.paths.push({p:o,m:b});if(this.filterManager.effectElements[10].p.v===3){var _e=createNS("mask"),et=createElementID();_e.setAttribute("id",et),_e.setAttribute("mask-type","alpha"),_e.appendChild(_),this.elem.globalData.defs.appendChild(_e);var tt=createNS("g");for(tt.setAttribute("mask","url("+getLocationHref()+"#"+et+")");a[0];)tt.appendChild(a[0]);this.elem.layerElement.appendChild(tt),this.masker=_e,_.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 o,_=this.paths.length,b,$;for(o=0;o<_;o+=1)if(this.paths[o].m!==-1&&(b=this.elem.maskManager.viewData[this.paths[o].m],$=this.paths[o].p,(a||this.filterManager._mdf||b.prop._mdf)&&$.setAttribute("d",b.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||b.prop._mdf)){var _e;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var et=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,tt=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,rt=$.getTotalLength();_e="0 0 0 "+rt*et+" ";var st=rt*(tt-et),it=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,lt=Math.floor(st/it),at;for(at=0;at<lt;at+=1)_e+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";_e+="0 "+rt*10+" 0 0"}else _e="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;$.setAttribute("stroke-dasharray",_e)}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 ft=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(ft[0]*255)+","+bmFloor(ft[1]*255)+","+bmFloor(ft[2]*255)+")")}};function SVGTritoneFilter(a,o,_,b){this.filterManager=o;var $=createNS("feColorMatrix");$.setAttribute("type","matrix"),$.setAttribute("color-interpolation-filters","linearRGB"),$.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($);var _e=createNS("feComponentTransfer");_e.setAttribute("color-interpolation-filters","sRGB"),_e.setAttribute("result",b),this.matrixFilter=_e;var et=createNS("feFuncR");et.setAttribute("type","table"),_e.appendChild(et),this.feFuncR=et;var tt=createNS("feFuncG");tt.setAttribute("type","table"),_e.appendChild(tt),this.feFuncG=tt;var rt=createNS("feFuncB");rt.setAttribute("type","table"),_e.appendChild(rt),this.feFuncB=rt,a.appendChild(_e)}SVGTritoneFilter.prototype.renderFrame=function(a){if(a||this.filterManager._mdf){var o=this.filterManager.effectElements[0].p.v,_=this.filterManager.effectElements[1].p.v,b=this.filterManager.effectElements[2].p.v,$=b[0]+" "+_[0]+" "+o[0],_e=b[1]+" "+_[1]+" "+o[1],et=b[2]+" "+_[2]+" "+o[2];this.feFuncR.setAttribute("tableValues",$),this.feFuncG.setAttribute("tableValues",_e),this.feFuncB.setAttribute("tableValues",et)}};function SVGProLevelsFilter(a,o,_,b){this.filterManager=o;var $=this.filterManager.effectElements,_e=createNS("feComponentTransfer");($[10].p.k||$[10].p.v!==0||$[11].p.k||$[11].p.v!==1||$[12].p.k||$[12].p.v!==1||$[13].p.k||$[13].p.v!==0||$[14].p.k||$[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",_e)),($[17].p.k||$[17].p.v!==0||$[18].p.k||$[18].p.v!==1||$[19].p.k||$[19].p.v!==1||$[20].p.k||$[20].p.v!==0||$[21].p.k||$[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",_e)),($[24].p.k||$[24].p.v!==0||$[25].p.k||$[25].p.v!==1||$[26].p.k||$[26].p.v!==1||$[27].p.k||$[27].p.v!==0||$[28].p.k||$[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",_e)),($[31].p.k||$[31].p.v!==0||$[32].p.k||$[32].p.v!==1||$[33].p.k||$[33].p.v!==1||$[34].p.k||$[34].p.v!==0||$[35].p.k||$[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",_e)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(_e.setAttribute("color-interpolation-filters","sRGB"),a.appendChild(_e)),($[3].p.k||$[3].p.v!==0||$[4].p.k||$[4].p.v!==1||$[5].p.k||$[5].p.v!==1||$[6].p.k||$[6].p.v!==0||$[7].p.k||$[7].p.v!==1)&&(_e=createNS("feComponentTransfer"),_e.setAttribute("color-interpolation-filters","sRGB"),_e.setAttribute("result",b),a.appendChild(_e),this.feFuncRComposed=this.createFeFunc("feFuncR",_e),this.feFuncGComposed=this.createFeFunc("feFuncG",_e),this.feFuncBComposed=this.createFeFunc("feFuncB",_e))}SVGProLevelsFilter.prototype.createFeFunc=function(a,o){var _=createNS(a);return _.setAttribute("type","table"),o.appendChild(_),_},SVGProLevelsFilter.prototype.getTableValue=function(a,o,_,b,$){for(var _e=0,et=256,tt,rt=Math.min(a,o),st=Math.max(a,o),it=Array.call(null,{length:et}),lt,at=0,ft=$-b,ht=o-a;_e<=256;)tt=_e/256,tt<=rt?lt=ht<0?$:b:tt>=st?lt=ht<0?b:$:lt=b+ft*Math.pow((tt-a)/ht,1/_),it[at]=lt,at+=1,_e+=256/(et-1);return it.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(a){if(a||this.filterManager._mdf){var o,_=this.filterManager.effectElements;this.feFuncRComposed&&(a||_[3].p._mdf||_[4].p._mdf||_[5].p._mdf||_[6].p._mdf||_[7].p._mdf)&&(o=this.getTableValue(_[3].p.v,_[4].p.v,_[5].p.v,_[6].p.v,_[7].p.v),this.feFuncRComposed.setAttribute("tableValues",o),this.feFuncGComposed.setAttribute("tableValues",o),this.feFuncBComposed.setAttribute("tableValues",o)),this.feFuncR&&(a||_[10].p._mdf||_[11].p._mdf||_[12].p._mdf||_[13].p._mdf||_[14].p._mdf)&&(o=this.getTableValue(_[10].p.v,_[11].p.v,_[12].p.v,_[13].p.v,_[14].p.v),this.feFuncR.setAttribute("tableValues",o)),this.feFuncG&&(a||_[17].p._mdf||_[18].p._mdf||_[19].p._mdf||_[20].p._mdf||_[21].p._mdf)&&(o=this.getTableValue(_[17].p.v,_[18].p.v,_[19].p.v,_[20].p.v,_[21].p.v),this.feFuncG.setAttribute("tableValues",o)),this.feFuncB&&(a||_[24].p._mdf||_[25].p._mdf||_[26].p._mdf||_[27].p._mdf||_[28].p._mdf)&&(o=this.getTableValue(_[24].p.v,_[25].p.v,_[26].p.v,_[27].p.v,_[28].p.v),this.feFuncB.setAttribute("tableValues",o)),this.feFuncA&&(a||_[31].p._mdf||_[32].p._mdf||_[33].p._mdf||_[34].p._mdf||_[35].p._mdf)&&(o=this.getTableValue(_[31].p.v,_[32].p.v,_[33].p.v,_[34].p.v,_[35].p.v),this.feFuncA.setAttribute("tableValues",o))}};function SVGDropShadowEffect(a,o,_,b,$){var _e=o.container.globalData.renderConfig.filterSize,et=o.data.fs||_e;a.setAttribute("x",et.x||_e.x),a.setAttribute("y",et.y||_e.y),a.setAttribute("width",et.width||_e.width),a.setAttribute("height",et.height||_e.height),this.filterManager=o;var tt=createNS("feGaussianBlur");tt.setAttribute("in","SourceAlpha"),tt.setAttribute("result",b+"_drop_shadow_1"),tt.setAttribute("stdDeviation","0"),this.feGaussianBlur=tt,a.appendChild(tt);var rt=createNS("feOffset");rt.setAttribute("dx","25"),rt.setAttribute("dy","0"),rt.setAttribute("in",b+"_drop_shadow_1"),rt.setAttribute("result",b+"_drop_shadow_2"),this.feOffset=rt,a.appendChild(rt);var st=createNS("feFlood");st.setAttribute("flood-color","#00ff00"),st.setAttribute("flood-opacity","1"),st.setAttribute("result",b+"_drop_shadow_3"),this.feFlood=st,a.appendChild(st);var it=createNS("feComposite");it.setAttribute("in",b+"_drop_shadow_3"),it.setAttribute("in2",b+"_drop_shadow_2"),it.setAttribute("operator","in"),it.setAttribute("result",b+"_drop_shadow_4"),a.appendChild(it);var lt=this.createMergeNode(b,[b+"_drop_shadow_4",$]);a.appendChild(lt)}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 o=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(o[0]*255),Math.round(o[1]*255),Math.round(o[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,b=(this.filterManager.effectElements[2].p.v-90)*degToRads,$=_*Math.cos(b),_e=_*Math.sin(b);this.feOffset.setAttribute("dx",$),this.feOffset.setAttribute("dy",_e)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(a,o,_){this.initialized=!1,this.filterManager=o,this.filterElem=a,this.elem=_,_.matteElement=createNS("g"),_.matteElement.appendChild(_.layerElement),_.matteElement.appendChild(_.transformedElement),_.baseElement=_.matteElement}SVGMatte3Effect.prototype.findSymbol=function(a){for(var o=0,_=_svgMatteSymbols.length;o<_;){if(_svgMatteSymbols[o]===a)return _svgMatteSymbols[o];o+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(a,o){var _=a.layerElement.parentNode;if(_){for(var b=_.children,$=0,_e=b.length;$<_e&&b[$]!==a.layerElement;)$+=1;var et;$<=_e-2&&(et=b[$+1]);var tt=createNS("use");tt.setAttribute("href","#"+o),et?_.insertBefore(tt,et):_.appendChild(tt)}},SVGMatte3Effect.prototype.setElementAsMask=function(a,o){if(!this.findSymbol(o)){var _=createElementID(),b=createNS("mask");b.setAttribute("id",o.layerId),b.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(o);var $=a.globalData.defs;$.appendChild(b);var _e=createNS("symbol");_e.setAttribute("id",_),this.replaceInParent(o,_),_e.appendChild(o.layerElement),$.appendChild(_e);var et=createNS("use");et.setAttribute("href","#"+_),b.appendChild(et),o.data.hd=!1,o.show()}a.setMatte(o.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var a=this.filterManager.effectElements[0].p.v,o=this.elem.comp.elements,_=0,b=o.length;_<b;)o[_]&&o[_].data.ind===a&&this.setElementAsMask(this.elem,o[_]),_+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(a,o,_,b){a.setAttribute("x","-100%"),a.setAttribute("y","-100%"),a.setAttribute("width","300%"),a.setAttribute("height","300%"),this.filterManager=o;var $=createNS("feGaussianBlur");$.setAttribute("result",b),a.appendChild($),this.feGaussianBlur=$}SVGGaussianBlurEffect.prototype.renderFrame=function(a){if(a||this.filterManager._mdf){var o=.3,_=this.filterManager.effectElements[0].p.v*o,b=this.filterManager.effectElements[1].p.v,$=b==3?0:_,_e=b==2?0:_;this.feGaussianBlur.setAttribute("stdDeviation",$+" "+_e);var et=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",et)}};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 o=this.effectsManager.effectElements,_=o[0].p.v,b=o[1].p.v,$=o[2].p.v===1,_e=o[3].p.v,et=$?_e:o[4].p.v,tt=o[5].p.v,rt=o[6].p.v,st=o[7].p.v;this.matrix.reset(),this.matrix.translate(-_[0],-_[1],_[2]),this.matrix.scale(et*.01,_e*.01,1),this.matrix.rotate(-st*degToRads),this.matrix.skewFromAxis(-tt*degToRads,(rt+90)*degToRads),this.matrix.translate(b[0],b[1],0),this._mdf=!0,this.opacity!==o[8].p.v&&(this.opacity=o[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(a,o){this.init(o)}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(a,o){(o==null||o>a.length)&&(o=a.length);for(var _=0,b=Array(o);_<o;_++)b[_]=a[_];return b}function _arrayWithHoles(a){if(Array.isArray(a))return a}function _defineProperty(a,o,_){return(o=_toPropertyKey(o))in a?Object.defineProperty(a,o,{value:_,enumerable:!0,configurable:!0,writable:!0}):a[o]=_,a}function _iterableToArrayLimit(a,o){var _=a==null?null:typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(_!=null){var b,$,_e,et,tt=[],rt=!0,st=!1;try{if(_e=(_=_.call(a)).next,o!==0)for(;!(rt=(b=_e.call(_)).done)&&(tt.push(b.value),tt.length!==o);rt=!0);}catch(it){st=!0,$=it}finally{try{if(!rt&&_.return!=null&&(et=_.return(),Object(et)!==et))return}finally{if(st)throw $}}return tt}}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(a,o){var _=Object.keys(a);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(a);o&&(b=b.filter(function($){return Object.getOwnPropertyDescriptor(a,$).enumerable})),_.push.apply(_,b)}return _}function _objectSpread2(a){for(var o=1;o<arguments.length;o++){var _=arguments[o]!=null?arguments[o]:{};o%2?ownKeys(Object(_),!0).forEach(function(b){_defineProperty(a,b,_[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(_)):ownKeys(Object(_)).forEach(function(b){Object.defineProperty(a,b,Object.getOwnPropertyDescriptor(_,b))})}return a}function _objectWithoutProperties$2(a,o){if(a==null)return{};var _,b,$=_objectWithoutPropertiesLoose(a,o);if(Object.getOwnPropertySymbols){var _e=Object.getOwnPropertySymbols(a);for(b=0;b<_e.length;b++)_=_e[b],o.includes(_)||{}.propertyIsEnumerable.call(a,_)&&($[_]=a[_])}return $}function _objectWithoutPropertiesLoose(a,o){if(a==null)return{};var _={};for(var b in a)if({}.hasOwnProperty.call(a,b)){if(o.includes(b))continue;_[b]=a[b]}return _}function _slicedToArray(a,o){return _arrayWithHoles(a)||_iterableToArrayLimit(a,o)||_unsupportedIterableToArray(a,o)||_nonIterableRest()}function _toPrimitive(a,o){if(typeof a!="object"||!a)return a;var _=a[Symbol.toPrimitive];if(_!==void 0){var b=_.call(a,o||"default");if(typeof b!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(a)}function _toPropertyKey(a){var o=_toPrimitive(a,"string");return typeof o=="symbol"?o:o+""}function _unsupportedIterableToArray(a,o){if(a){if(typeof a=="string")return _arrayLikeToArray(a,o);var _={}.toString.call(a).slice(8,-1);return _==="Object"&&a.constructor&&(_=a.constructor.name),_==="Map"||_==="Set"?Array.from(a):_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?_arrayLikeToArray(a,o):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 a(o,_){var b=o.animationData,$=o.loop,_e=o.autoplay,et=o.initialSegment,tt=o.onComplete,rt=o.onLoopComplete,st=o.onEnterFrame,it=o.onSegmentStart,lt=o.onConfigReady,at=o.onDataReady,ft=o.onDataFailed,ht=o.onLoadedImages,pt=o.onDOMLoaded,vt=o.onDestroy;o.lottieRef,o.renderer,o.name,o.assetsPath,o.rendererSettings;var ut=_objectWithoutProperties$2(o,_excluded$1),ot=reactExports.useState(!1),nt=_slicedToArray(ot,2),dt=nt[0],yt=nt[1],_t=reactExports.useRef(),At=reactExports.useRef(null),xt=function(){var Dt;(Dt=_t.current)===null||Dt===void 0||Dt.play()},wt=function(){var Dt;(Dt=_t.current)===null||Dt===void 0||Dt.stop()},bt=function(){var Dt;(Dt=_t.current)===null||Dt===void 0||Dt.pause()},It=function(Dt){var kt;(kt=_t.current)===null||kt===void 0||kt.setSpeed(Dt)},Nt=function(Dt,kt){var Ht;(Ht=_t.current)===null||Ht===void 0||Ht.goToAndPlay(Dt,kt)},Ct=function(Dt,kt){var Ht;(Ht=_t.current)===null||Ht===void 0||Ht.goToAndStop(Dt,kt)},jt=function(Dt){var kt;(kt=_t.current)===null||kt===void 0||kt.setDirection(Dt)},Et=function(Dt,kt){var Ht;(Ht=_t.current)===null||Ht===void 0||Ht.playSegments(Dt,kt)},gt=function(Dt){var kt;(kt=_t.current)===null||kt===void 0||kt.setSubframe(Dt)},St=function(Dt){var kt;return(kt=_t.current)===null||kt===void 0?void 0:kt.getDuration(Dt)},ct=function(){var Dt;(Dt=_t.current)===null||Dt===void 0||Dt.destroy(),_t.current=void 0},mt=function(){var Dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},kt;if(At.current){(kt=_t.current)===null||kt===void 0||kt.destroy();var Ht=_objectSpread2(_objectSpread2(_objectSpread2({},o),Dt),{},{container:At.current});return _t.current=lottie.loadAnimation(Ht),yt(!!_t.current),function(){var Pt;(Pt=_t.current)===null||Pt===void 0||Pt.destroy(),_t.current=void 0}}};reactExports.useEffect(function(){var Tt=mt();return function(){return Tt==null?void 0:Tt()}},[b,$]),reactExports.useEffect(function(){_t.current&&(_t.current.autoplay=!!_e)},[_e]),reactExports.useEffect(function(){if(_t.current){if(!et){_t.current.resetSegments(!0);return}!Array.isArray(et)||!et.length||((_t.current.currentRawFrame<et[0]||_t.current.currentRawFrame>et[1])&&(_t.current.currentRawFrame=et[0]),_t.current.setSegment(et[0],et[1]))}},[et]),reactExports.useEffect(function(){var Tt=[{name:"complete",handler:tt},{name:"loopComplete",handler:rt},{name:"enterFrame",handler:st},{name:"segmentStart",handler:it},{name:"config_ready",handler:lt},{name:"data_ready",handler:at},{name:"data_failed",handler:ft},{name:"loaded_images",handler:ht},{name:"DOMLoaded",handler:pt},{name:"destroy",handler:vt}],Dt=Tt.filter(function(Ht){return Ht.handler!=null});if(Dt.length){var kt=Dt.map(function(Ht){var Pt;return(Pt=_t.current)===null||Pt===void 0||Pt.addEventListener(Ht.name,Ht.handler),function(){var Lt;(Lt=_t.current)===null||Lt===void 0||Lt.removeEventListener(Ht.name,Ht.handler)}});return function(){kt.forEach(function(Ht){return Ht()})}}},[tt,rt,st,it,lt,at,ft,ht,pt,vt]);var Rt=React.createElement("div",_objectSpread2({style:_,ref:At},ut));return{View:Rt,play:xt,stop:wt,pause:bt,setSpeed:It,goToAndStop:Ct,goToAndPlay:Nt,setDirection:jt,playSegments:Et,setSubframe:gt,getDuration:St,destroy:ct,animationContainerRef:At,animationLoaded:dt,animationItem:_t.current}};function getContainerVisibility(a){var o=a.getBoundingClientRect(),_=o.top,b=o.height,$=window.innerHeight-_,_e=window.innerHeight+b;return $/_e}function getContainerCursorPosition(a,o,_){var b=a.getBoundingClientRect(),$=b.top,_e=b.left,et=b.width,tt=b.height,rt=(o-_e)/et,st=(_-$)/tt;return{x:rt,y:st}}var useInitInteractivity=function a(o){var _=o.wrapperRef,b=o.animationItem,$=o.mode,_e=o.actions;reactExports.useEffect(function(){var et=_.current;if(!(!et||!b||!_e.length)){b.stop();var tt=function(){var it=null,lt=function(){var ft=getContainerVisibility(et),ht=_e.find(function(vt){var ut=vt.visibility;return ut&&ft>=ut[0]&&ft<=ut[1]});if(ht){if(ht.type==="seek"&&ht.visibility&&ht.frames.length===2){var pt=ht.frames[0]+Math.ceil((ft-ht.visibility[0])/(ht.visibility[1]-ht.visibility[0])*ht.frames[1]);//! goToAndStop must be relative to the start of the current segment
50
- b.goToAndStop(pt-b.firstFrame-1,!0)}ht.type==="loop"&&(it===null||it!==ht.frames||b.isPaused)&&(b.playSegments(ht.frames,!0),it=ht.frames),ht.type==="play"&&b.isPaused&&(b.resetSegments(!0),b.play()),ht.type==="stop"&&b.goToAndStop(ht.frames[0]-b.firstFrame-1,!0)}};return document.addEventListener("scroll",lt),function(){document.removeEventListener("scroll",lt)}},rt=function(){var it=function(ht,pt){var vt=ht,ut=pt;if(vt!==-1&&ut!==-1){var ot=getContainerCursorPosition(et,vt,ut);vt=ot.x,ut=ot.y}var nt=_e.find(function(_t){var At=_t.position;return At&&Array.isArray(At.x)&&Array.isArray(At.y)?vt>=At.x[0]&&vt<=At.x[1]&&ut>=At.y[0]&&ut<=At.y[1]:At&&!Number.isNaN(At.x)&&!Number.isNaN(At.y)?vt===At.x&&ut===At.y:!1});if(nt){if(nt.type==="seek"&&nt.position&&Array.isArray(nt.position.x)&&Array.isArray(nt.position.y)&&nt.frames.length===2){var dt=(vt-nt.position.x[0])/(nt.position.x[1]-nt.position.x[0]),yt=(ut-nt.position.y[0])/(nt.position.y[1]-nt.position.y[0]);b.playSegments(nt.frames,!0),b.goToAndStop(Math.ceil((dt+yt)/2*(nt.frames[1]-nt.frames[0])),!0)}nt.type==="loop"&&b.playSegments(nt.frames,!0),nt.type==="play"&&(b.isPaused&&b.resetSegments(!1),b.playSegments(nt.frames)),nt.type==="stop"&&b.goToAndStop(nt.frames[0],!0)}},lt=function(ht){it(ht.clientX,ht.clientY)},at=function(){it(-1,-1)};return et.addEventListener("mousemove",lt),et.addEventListener("mouseout",at),function(){et.removeEventListener("mousemove",lt),et.removeEventListener("mouseout",at)}};switch($){case"scroll":return tt();case"cursor":return rt()}}},[$,b])},useLottieInteractivity=function a(o){var _=o.actions,b=o.mode,$=o.lottieObj,_e=$.animationItem,et=$.View,tt=$.animationContainerRef;return useInitInteractivity({actions:_,animationItem:_e,mode:b,wrapperRef:tt}),et},_excluded=["style","interactivity"],Lottie=function a(o){var _,b,$,_e=o.style,et=o.interactivity,tt=_objectWithoutProperties$2(o,_excluded),rt=useLottie(tt,_e),st=rt.View,it=rt.play,lt=rt.stop,at=rt.pause,ft=rt.setSpeed,ht=rt.goToAndStop,pt=rt.goToAndPlay,vt=rt.setDirection,ut=rt.playSegments,ot=rt.setSubframe,nt=rt.getDuration,dt=rt.destroy,yt=rt.animationContainerRef,_t=rt.animationLoaded,At=rt.animationItem;return reactExports.useEffect(function(){o.lottieRef&&(o.lottieRef.current={play:it,stop:lt,pause:at,setSpeed:ft,goToAndPlay:pt,goToAndStop:ht,setDirection:vt,playSegments:ut,setSubframe:ot,getDuration:nt,destroy:dt,animationContainerRef:yt,animationLoaded:_t,animationItem:At})},[(_=o.lottieRef)===null||_===void 0?void 0:_.current]),useLottieInteractivity({lottieObj:{View:st,play:it,stop:lt,pause:at,setSpeed:ft,goToAndStop:ht,goToAndPlay:pt,setDirection:vt,playSegments:ut,setSubframe:ot,getDuration:nt,destroy:dt,animationContainerRef:yt,animationLoaded:_t,animationItem:At},actions:(b=et==null?void 0:et.actions)!==null&&b!==void 0?b:[],mode:($=et==null?void 0:et.mode)!==null&&$!==void 0?$:"scroll"})};const v$4="5.9.6",fr$4=60,ip$4=0,op$4=106,w$4=1080,h$6=1080,nm$4="Check Mark 01",ddd$3=0,assets$4=[],layers$4=[{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$4=[],animationData$2={v:v$4,fr:fr$4,ip:ip$4,op:op$4,w:w$4,h:h$6,nm:nm$4,ddd:ddd$3,assets:assets$4,layers:layers$4,markers:markers$4},v$3="5.9.6",fr$3=60,ip$3=0,op$3=36,w$3=1080,h$5=1080,nm$3="Check Mark 01",ddd$2=0,assets$3=[],layers$3=[{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$3=[],animationDataLoading$1={v:v$3,fr:fr$3,ip:ip$3,op:op$3,w:w$3,h:h$5,nm:nm$3,ddd:ddd$2,assets:assets$3,layers:layers$3,markers:markers$3},AbhaVerificationStatus=({loading:a=!1,loadingText:o,successText:_})=>jsxRuntimeExports.jsx("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 pds2-bg-surface-subtle",children:a?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Lottie,{animationData:animationDataLoading$1,loop:!0,className:"pds2-w-400"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-content-primary Heading4Semibold pds2-absolute pds2-mt-220",children:o})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Lottie,{animationData:animationData$2,loop:!1,className:"pds2-w-400"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-content-primary Heading4Semibold pds2-absolute pds2-mt-220",children:_})]})}),createStoreImpl=a=>{let o;const _=new Set,b=(st,it)=>{const lt=typeof st=="function"?st(o):st;if(!Object.is(lt,o)){const at=o;o=it??(typeof lt!="object"||lt===null)?lt:Object.assign({},o,lt),_.forEach(ft=>ft(o,at))}},$=()=>o,tt={setState:b,getState:$,getInitialState:()=>rt,subscribe:st=>(_.add(st),()=>_.delete(st))},rt=o=a(b,$,tt);return tt},createStore=a=>a?createStoreImpl(a):createStoreImpl,identity=a=>a;function useStore(a,o=identity){const _=React.useSyncExternalStore(a.subscribe,()=>o(a.getState()),()=>o(a.getInitialState()));return React.useDebugValue(_),_}const createImpl=a=>{const o=createStore(a),_=b=>useStore(o,b);return Object.assign(_,o),_},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.VERIFY_KYC_OTP_LOGIN_WITH_ABHA="VERIFY_KYC_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.CONSENT_LOADER_SCREEN="CONSENT_LOADER_SCREEN",a.CONSENT_DENY="CONSENT_DENY",a.CONSENT_REVOKE="CONSENT_REVOKE",a.CONSENT_APPROVE="CONSENT_APPROVE",a.CONSENT_SCREEN="CONSENT_SCREEN",a.SELF_ASSESSMENT="SELF_ASSESSMENT",a.SA_LISTING_SCREEN="SA_LISTING_SCREEN",a.KYC_LOGIN_SCREEN="KYC_LOGIN_SCREEN",a.KYC_ALREADY_VERIFIED="KYC_ALREADY_VERIFIED",a.SESSION_STATUS_LOADER_SCREEN="SESSION_STATUS_LOADER_SCREEN",a.ABHA_AUTH_QR_SCREEN="ABHA_AUTH_QR_SCREEN",a.AADHAAR_FACEAUTH_VERIFICATION_STATUS="AADHAAR_FACEAUTH_VERIFICATION_STATUS",a.ABHA_MOBILE_AND_OTP_SCREEN="ABHA_MOBILE_AND_OTP_SCREEN",a.ABHA_HEALTHID_CARD_SCREEN="ABHA_HEALTHID_CARD_SCREEN",a.EARN_WITH_ABHA_SCREEN="EARN_WITH_ABHA_SCREEN",a.BOOK_APPOINTMENT_SCREEN="BOOK_APPOINTMENT_SCREEN",a.APPOINTMENT_TOKEN_GENERATED_SCREEN="APPOINTMENT_TOKEN_GENERATED_SCREEN",a.APPOINTMENT_TOKEN_LOADER_SCREEN="APPOINTMENT_TOKEN_LOADER_SCREEN",a))(SCREEN_NAMES||{});const EARN_ABHA_SCREEN_TRIED_KEY="earn_abha_screen_tried_date",FACE_AUTH_TRIED_KEY="face_auth_tried_date",FACE_AUTH_STEPS_URL=["https://cdn.eka.care/vagus/cmj9rtghd00000teue5jf52tf.png","https://cdn.eka.care/vagus/cmj9rtyvh00000tdk8knj75m8.jpg","https://cdn.eka.care/vagus/cmj9rujbm00010teu4jc35t7o.jpg","https://cdn.eka.care/vagus/cmj9rvcy300010tdkb7mg6t5r.jpg","https://cdn.eka.care/vagus/cmj9rvu9o00020teuftb39n9a.png","https://cdn.eka.care/vagus/cmj9rwc4c00020tdkdhmd4tl9.png"],storeInitState={screen:[SCREEN_NAMES.LOGIN_WITH_ABHA],authTxnId:null,txnId:null,aadhaarOtpSentToHint:null,mobileOtpSentToHint:null,kycOtpSentToHint:null,sessionInitTxnId:null,faceAuthQrUrl:null,aadhaarFaceAuthOtpSentToHint:null,aadhaarVerificationSkipStateStatus:null,ekaSmallToken:null,bottomsheetErrorInfo:null,abhaAddressList:null,faceAuthEnable:!1,loginIdentifierValue:null,selectedAadhaarAuth:AADHAAR_AUTH_STATES.OTP,abhaAuthFlowMethod:ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,selectedAbhaAddress:null,ekaProfileInfo:null,registrationType:null,initAbhaAppMethod:"login_or_create_abha",initAbhaAppMobileNumber:null,initAbhaAppIdentifier:null,initAbhaAppIdentifierType:null,consentApiBody:null,consentDetails:null,abhaRequestConsentId:null,initAbhaFlow:null,successRedirect:null,isEkaAppLogin:!1,isDocAppRequest:!1,isEkaDocWebRequest:!1,isSkipABHAEnable:!1,isLoggedInFromRedirect:!1,clientId:"",oid:"",isApiTriggered:!1,isNewLoginOrCreateFlow:!1,selectedAbhaFlow:"",isInitApiTriggered:!1,identityValue:"",currentStepperIndex:1,goBackToLogin:!1,otpFromAutoRead:"",identifierValue:{mobile:"",phr_address:"",abha_number:"",aadhaar_number:""},linkToOrgIcon:void 0,orgIconUrl:void 0,providerDetails:null,appointmentRequestId:null,appointmentTokenDetails:null,qrCodeColors:{bgColor:void 0,fgColor:void 0}},useAuthAbhaStore=create((a,o)=>({screen:[SCREEN_NAMES.LOGIN_WITH_ABHA],setScreen:_=>a(b=>({screen:[...b.screen,_]})),goBackScreen:()=>{const{screen:_}=o();if(_.length===0)return null;a({screen:_.slice(0,-1)}),a(b=>({currentStepperIndex:_.slice(0,-1).at(-1)==="LOGIN_OR_CREATE_ABHA"?1:b.currentStepperIndex-1}))},goBackLoginScreen:()=>{const _=SCREEN_NAMES.LOGIN_OR_CREATE_ABHA;a({screen:[_]}),a({currentStepperIndex:1}),a({goBackToLogin:!0})},setUrlParams:_=>a({urlParams:_}),authTxnId:null,txnId:null,setTxnId:_=>a({txnId:_}),aadhaarOtpSentToHint:null,setAadhaarInitResponse:_=>a(_),aadhaarFaceAuthOtpSentToHint:null,faceAuthQrUrl:null,setAadhaarFaceAuthInitResponse:_=>a(_),kycOtpSentToHint:null,setKycInitResponse:_=>a(_),sessionInitTxnId:null,setSessionInitResponse:_=>a({sessionInitTxnId:_}),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.AADHAR_NUMBER,setAbhaAuthFlowMethod:_=>a({abhaAuthFlowMethod:_}),selectedAadhaarAuth:AADHAAR_AUTH_STATES.OTP,setSelectedAadhaarAuth:_=>a({selectedAadhaarAuth:_}),selectedAbhaAddress:null,setSelectedAbhaAddress:_=>a({selectedAbhaAddress:_}),ekaProfileInfo:null,setEkaProfileInfo:_=>a({ekaProfileInfo:_}),providerDetails:null,setProviderDetails:_=>a({providerDetails:_}),initAbhaAppMethod:"login_or_create_abha",setInitAbhaAppMethod:_=>a({initAbhaAppMethod:_}),initAbhaAppMobileNumber:null,setInitAbhaAppMobileNumber:_=>a({initAbhaAppMobileNumber:_}),initAbhaAppIdentifier:null,setInitAbhaAppIdentifier:_=>a({initAbhaAppIdentifier:_}),initAbhaAppIdentifierType:null,setInitAbhaAppIdentifierType:_=>a({initAbhaAppIdentifierType:_}),initAbhaFlow:null,setInitAbhaFlow:_=>a({initAbhaFlow:_}),successRedirect:null,setSuccessRedirect:_=>a({successRedirect:_}),abhaRequestConsentId:null,setAbhaRequestConsentId:_=>a({abhaRequestConsentId:_}),consentApiBody:{},setConsentApiBody:_=>a(b=>({consentApiBody:{...b.consentApiBody,..._}})),consentDetails:null,setConsentDetails:_=>a({consentDetails:_}),isEkaAppLogin:!1,setIsEkaAppLogin:_=>a({isEkaAppLogin:_}),isDocAppRequest:!1,setIsDocAppRequest:_=>a({isDocAppRequest:_}),isEkaDocWebRequest:!1,setIsEkaDocWebRequest:_=>a({isEkaDocWebRequest:_}),isSkipABHAEnable:!1,setIsSkipABHAEnable:_=>a({isSkipABHAEnable:_}),faceAuthEnable:!1,setFaceAuthEnable:_=>a({faceAuthEnable:_}),setInitState:_=>a(_),isLoggedInFromRedirect:!1,setIsLoggedInFromRedirect:_=>a({isLoggedInFromRedirect:_}),clientId:"",setClientId:_=>a({clientId:_}),otpFromAutoRead:"",setOTPFromAutoRead:_=>a({otpFromAutoRead:_}),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:_}),identifierValue:{mobile:"",phr_address:"",abha_number:"",aadhaar_number:""},linkToOrgIcon:void 0,setLinkToOrgIcon:_=>a({linkToOrgIcon:_}),orgIconUrl:void 0,setOrgIconUrl:_=>a({orgIconUrl:_}),qrCodeColors:{fgColor:void 0,bgColor:void 0},setQrCodeColors:_=>a({qrCodeColors:_}),setIdentifierValue:_=>a(b=>({identifierValue:{...b.identifierValue,..._}})),goBackToLogin:!1,setGoBackToLogin:_=>a({goBackToLogin:_}),appointmentRequestId:null,setAppointmentRequestId:_=>a({appointmentRequestId:_}),appointmentTokenDetails:null,setAppointmentTokenDetails:_=>a({appointmentTokenDetails:_}),clearAbhaAuthStore:()=>a(storeInitState)})),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"]||[]}}}),handleReadOTP=()=>{var a,o;(a=window==null?void 0:window.Eka)!=null&&a.requestAutoReadOTP&&((o=window.Eka)==null||o.requestAutoReadOTP())};function pushToMxpDataLayer({data:a}){typeof window<"u"&&(window.mxpDataLayer=window.mxpDataLayer||[],window.mxpDataLayer.push(a))}function sendApiFailedEvent({category:a="api-failed",url:o,params:_}){pushToMxpDataLayer({data:{name:a,data:{url:o,..._}}}),{..._}}const handleSendEvent=({eventName:a,eventData:o})=>{var _,b,$,_e,et;try{if(window!=null&&window.Bridge){const tt=new window.Bridge;(_=tt.track)==null||_.call(tt,a,o)}(b=window==null?void 0:window.Eka)!=null&&b.sendEvent&&window.Eka.sendEvent(JSON.stringify({event:a,properties:o})),(et=(_e=($=window==null?void 0:window.webkit)==null?void 0:$.messageHandlers)==null?void 0:_e.mixPanel)!=null&&et.postMessage&&window.webkit.messageHandlers.mixPanel.postMessage(JSON.stringify({event:a,properties:o}))}catch(tt){console.error("Analytics error:",tt)}};async function refreshToken(){if(await updateToken())return!0;const o=new Headers;o.append("Content-Type","application/json"),o.set("client-id",GET_CLIENT_ID());const _=JSON.stringify({}),b={method:"POST",headers:o,body:_,redirect:"follow",credentials:"include",mode:"cors"};try{const $=GET_AORTA_GO_HOST();if((await fetch(`${$}/emr/v3/auth/refresh`,{...b,body:JSON.stringify({})})).status===401)return!1}catch{return!1}return!0}async function fetchWrapper(a,o={},_=!0,b=!1,$=[]){var _e,et;try{const tt=((et=(_e=window==null?void 0:window.Eka)==null?void 0:_e.getSessionToken)==null?void 0:et.call(_e))||"",rt=new Headers(o.headers);let st,it;!rt.get("client-id")&&!b&&rt.set("client-id",GET_CLIENT_ID()),tt&&!rt.get("auth")&&rt.set("auth",tt);const lt=GET_EXTRA_HEADERS();lt&&Object.keys(lt).forEach(ft=>{$.includes(ft)||rt.set(ft,lt[ft])}),$.forEach(ft=>rt.delete(ft));const at=await fetch(a,{...o,headers:rt});return window&&(it=window.location.pathname,st=rt.get("client-id")),at.status===401&&_&&await refreshToken()?await fetchWrapper(a,o,!1):(at.status>401&&sendApiFailedEvent({url:a,params:{responseStatus:at.status}}),at)}catch(tt){throw sendApiFailedEvent({url:a,params:{error:`${tt.message||tt}`}}),console.error(tt),tt}}let androidRefreshCB=[];async function refreshCallback(a){androidRefreshCB.forEach(o=>o(!0)),androidRefreshCB=[]}async function updateToken(){var a,o,_,b,$,_e;if(typeof window<"u"){if(typeof((a=window==null?void 0:window.Eka)==null?void 0:a.updateToken)=="function")return(o=window.parent)==null||o.postMessage({type:"REFRESH_TOKEN"},"*"),window.refreshCallback=window.refreshCallback||refreshCallback,new Promise(et=>{var tt;androidRefreshCB.push(et),(tt=window==null?void 0:window.Eka)==null||tt.updateToken("refreshCallback")});if(typeof(($=(b=(_=window==null?void 0:window.webkit)==null?void 0:_.messageHandlers)==null?void 0:b.statusCodeHandler)==null?void 0:$.postMessage)=="function")return(_e=window.parent)==null||_e.postMessage({type:"REFRESH_TOKEN"},"*"),window.refreshCallback=window.refreshCallback||refreshCallback,new Promise(et=>{var tt,rt,st;androidRefreshCB.push(et),(st=(rt=(tt=window==null?void 0:window.webkit)==null?void 0:tt.messageHandlers)==null?void 0:rt.statusCodeHandler)==null||st.postMessage(JSON.stringify({status:401}))})}return!1}async function postAuthInitV2({method:a,identifier:o}){const _=new Headers;_.append("Content-Type","application/json");const b=JSON.stringify({method:a,identifier:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${_e}/v2/auth/init`,$,!0,!1,["X-Pt-Id"])).json()}catch(_e){console.error(_e)}return{}}async function postAuthVerifyV3(a){const o=new Headers,_=GET_CLIENT_ID();o.append("Content-Type","application/json"),o.append("client-id",_);const b=JSON.stringify(a),$={method:"POST",headers:o,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${_e}/phr/v3/auth/verify`,$,!0,!1,["X-Pt-Id"])).json()}catch(_e){return{error:{message:_e instanceof Error?_e.message:"Something went wrong. Please try again later."}}}}async function postAuthSwitchV3({oid:a,refresh:o}){const _=new Headers;_.append("Content-Type","application/json");const b=JSON.stringify({oid:a,refresh:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${_e}/v3/auth/switch`,$,!0,!1,["X-Pt-Id"])).json()}catch(_e){console.error("postAuthSwitchError: ",_e)}return{}}async function getProfilePhrUser(){const a=new Headers;a.append("Content-Type","application/json");const o={method:"GET",headers:a,redirect:"follow",credentials:"include"};try{const _=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${_}/profiles/v1/patient`,o,!0,!1,["X-Pt-Id"])).json()}catch(_){return console.error("profilePhrUser error =>",_),[]}}async function getProfilesPatient(){const a=new Headers;a.append("Content-Type","application/json");const o={method:"GET",headers:a,redirect:"follow",credentials:"include"},_=GET_EXTRA_HEADERS(),b=_==null?void 0:_["X-User-ID"];if(!b)return{};try{const $=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${$}/profiles/v1/patient/${b}`,o,!0,!1,["X-Pt-Id"])).json()}catch($){return console.error("profilePhrUser error =>",$),{}}}async function getPatientData(a){const o=new Headers;o.append("Content-Type","application/json");const _={method:"GET",headers:o,redirect:"follow",credentials:"include"};if(!a)return{};try{const b=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${b}/profiles/v1/patient/${a}`,_,!0,!1,["X-Pt-Id"])).json()}catch(b){return console.error("profilePhrUser error =>",b),{}}}async function postAuthLogoutV2(){var tt;console.log("inside postAuthLogoutV2 api call");const a=new Headers;a.append("Content-Type","application/json");const o=GET_REFRESH_TOKEN(),_=((tt=GET_EXTRA_HEADERS())==null?void 0:tt.auth)||"",b=o&&_,_e=`${GET_AORTA_GO_HOST()}/v3/auth/logout`,et={method:"POST",headers:a,...b?{body:JSON.stringify({refresh:o,sess:_})}:{},redirect:"follow",credentials:"include"};try{const rt=await fetchWrapper(_e,et,!0,!1,["X-Pt-Id"]);return rt.ok?!0:(console.log("Logout failed with status",rt==null?void 0:rt.status),!1)}catch(rt){return console.error("Logout API failed:",rt),!1}}async function postAbdmLoginInit({method:a,identifier:o}){const _=new Headers;_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b=JSON.stringify({method:a,identifier:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_NDHM_HOST();return await(await fetchWrapper(`${_e}/abdm/na/v1/profile/login/init`,$)).json()}catch(_e){console.error("postAbdmLoginInit error =>",_e)}return{}}async function postAbdmKycInit({method:a,identifier:o}){const _=new Headers,b=GET_EXTRA_HEADERS();_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const $=JSON.stringify({method:a,identifier:o,user_x_token:(b==null?void 0:b.auth)??""}),_e={method:"POST",headers:_,body:$,redirect:"follow",credentials:"include"};try{const et=GET_NDHM_HOST();return await(await fetchWrapper(`${et}/abdm/v1/profile/kyc/init`,_e)).json()}catch(et){console.error("postAbdmKycInit error =>",et)}return{}}async function postAbdmSessionInit({abha_address:a}){const o=new Headers;o.append("Content-Type","application/json"),o.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&o.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _=JSON.stringify({abha_address:a}),b={method:"POST",headers:o,body:_,redirect:"follow",credentials:"include"};try{const $=GET_NDHM_HOST();return await(await fetchWrapper(`${$}/abdm/v1/session/init`,b)).json()}catch($){console.error("postAbdmSessionInit error =>",$)}return{}}async function postAbdmConsentDeny({consentId:a}){const o=new Headers;o.append("Content-Type","application/json"),o.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&o.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _=GET_NDHM_HOST(),b=JSON.stringify({id:a,reason:"Consent Denied"}),$={method:"POST",headers:o,body:b,credentials:"include"};try{const _e=await fetchWrapper(`${_}/abdm/v1/consents/deny`,$);return _e.ok?{success:!0}:await _e.json()}catch(_e){console.error("postabdmConsentDenyError error =>",_e)}return{}}async function postAbdmConsentRevoke({consent_artefacts_ids:a}){const o=new Headers;o.append("Content-Type","application/json"),o.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&o.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _=GET_NDHM_HOST(),b=JSON.stringify({consent_artefacts:a}),$={method:"POST",headers:o,body:b,credentials:"include"};try{const _e=await fetchWrapper(`${_}/abdm/v1/consents/revoke`,$);return _e.ok?{success:!0}:await _e.json()}catch(_e){console.error("postabdmConsentRevokeError error =>",_e)}return{}}async function postAbdmConsentApprove({consentApprovePayload:a}){const o=new Headers;o.append("Content-Type","application/json"),o.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&o.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _=GET_NDHM_HOST(),b=JSON.stringify(a),$={method:"POST",headers:o,body:b,credentials:"include"};try{const _e=await fetchWrapper(`${_}/abdm/v1/consents/approve`,$);return _e.ok?{success:!0}:await _e.json()}catch(_e){console.error("postabdmConsentDenyError error =>",_e)}return{}}async function postAbdmLoginVerify({txn_id:a,otp:o}){const _=new Headers;_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b=JSON.stringify({txn_id:a,otp:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_NDHM_HOST();return await(await fetchWrapper(`${_e}/abdm/na/v1/profile/login/verify`,$)).json()}catch(_e){console.error("postAbdmLoginVerify error =>",_e)}return{}}async function postAbdmKycVerify({txn_id:a,otp:o}){const _=new Headers,b=GET_EXTRA_HEADERS();_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const $=JSON.stringify({txn_id:a,otp:o,user_x_token:(b==null?void 0:b.auth)??""}),_e={method:"POST",headers:_,body:$,redirect:"follow",credentials:"include"};try{const et=GET_NDHM_HOST();return await(await fetchWrapper(`${et}/abdm/v1/profile/kyc/verify`,_e)).json()}catch(et){console.error("postAbdmKycVerify error =>",et)}return{}}async function postAbdmSessionVerify({txn_id:a,otp:o}){const _=new Headers,b=GET_EXTRA_HEADERS();_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const $=JSON.stringify({txn_id:a,otp:o,user_x_token:(b==null?void 0:b.auth)??""}),_e={method:"POST",headers:_,body:$,redirect:"follow",credentials:"include"},et=GET_NDHM_HOST(),tt=await fetchWrapper(`${et}/abdm/v1/session/verify`,_e);let rt=null;const st=await tt.text();if(st)try{rt=JSON.parse(st)}catch(it){console.error("Invalid JSON response",it)}return{statusCode:tt.status,data:rt}}async function postRegisterAadhaarInit({aadhaar_number:a}){const o=new Headers;o.append("Content-Type","application/json"),o.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&o.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _=JSON.stringify({aadhaar_number:a}),b={method:"POST",headers:o,body:_,redirect:"follow",credentials:"include"};try{const $=GET_NDHM_HOST();return await(await fetchWrapper(`${$}/abdm/na/v1/registration/aadhaar/init`,b)).json()}catch{}return{}}async function postRegisterAadhaarFaceAuthInit(){const a=new Headers;a.append("Content-Type","application/json"),a.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&a.append("X-Journey-Id",GET_REG_JOURNEY_ID());const o={method:"POST",headers:a,redirect:"follow",credentials:"include"};try{const _=GET_NDHM_HOST();return await(await fetchWrapper(`${_}/abdm/na/v1/registration/aadhaar/face-auth/init`,o)).json()}catch{}return{}}async function postRegisterAadhaarFaceAuthCapture({txn_id:a}){const o=new Headers;o.append("Content-Type","application/json"),o.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&o.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _=JSON.stringify({txn_id:a}),b={method:"POST",headers:o,body:_,redirect:"follow",credentials:"include"};try{const $=GET_NDHM_HOST();return await(await fetchWrapper(`${$}/abdm/na/v1/registration/aadhaar/face-auth/capture`,b)).json()}catch{}return{}}async function postRegisterAadhaarFaceAuthVerify({txn_id:a,aadhaar:o}){const _=new Headers;_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b=JSON.stringify({txn_id:a,aadhaar:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_NDHM_HOST();return await(await fetchWrapper(`${_e}/abdm/na/v1/registration/aadhaar/face-auth/verify`,$)).json()}catch{}return{}}async function postRegisterMobileInit({mobile_number:a}){const o=new Headers;o.append("Content-Type","application/json"),o.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&o.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _=JSON.stringify({mobile_number:a}),b={method:"POST",headers:o,body:_,redirect:"follow",credentials:"include"};try{const $=GET_NDHM_HOST();return await(await fetchWrapper(`${$}/abdm/na/v1/registration/mobile/init`,b)).json()}catch($){console.error($)}return{}}async function postRegisterAadhaarMobileInit({mobile:a,txn_id:o}){const _=new Headers;_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b=JSON.stringify({mobile:a,txn_id:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_NDHM_HOST();return await(await fetchWrapper(`${_e}/abdm/na/v1/registration/aadhaar/mobile/init`,$)).json()}catch(_e){console.error(_e)}return{}}async function postRegisterAadhaarVerify({txn_id:a,mobile:o,otp:_}){const b=new Headers;b.append("Content-Type","application/json"),b.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&b.append("X-Journey-Id",GET_REG_JOURNEY_ID());const $=JSON.stringify({txn_id:a,mobile:o,otp:_}),_e={method:"POST",headers:b,body:$,redirect:"follow",credentials:"include"};try{const et=GET_NDHM_HOST();return await(await fetchWrapper(`${et}/abdm/na/v1/registration/aadhaar/verify`,_e)).json()}catch{}return{}}async function postRegisterAadhaarAutoLogin({txn_id:a,abha_address:o}){const _=new Headers;_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b=JSON.stringify({txn_id:a,abha_address:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_NDHM_HOST();return await(await fetchWrapper(`${_e}/abdm/na/v1/registration/aadhaar/auto-login`,$)).json()}catch{}return{}}async function postRegisterAadhaarMobileVerify({txn_id:a,otp:o}){const _=new Headers;_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b=JSON.stringify({txn_id:a,otp:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_NDHM_HOST();return await(await fetchWrapper(`${_e}/abdm/na/v1/registration/aadhaar/mobile/verify`,$)).json()}catch{}return{}}async function postRegisterAadhaarResendOtp({txn_id:a}){const o=new Headers;o.append("Content-Type","application/json"),o.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&o.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _=JSON.stringify({txn_id:a}),b={method:"POST",headers:o,body:_,redirect:"follow",credentials:"include"};try{const $=GET_NDHM_HOST();return await(await fetchWrapper(`${$}/abdm/na/v1/registration/aadhaar/resend`,b)).json()}catch{}return{}}async function postAbdmKycVerifyResendOtp({txn_id:a}){const o=new Headers;o.append("Content-Type","application/json"),o.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&o.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _=JSON.stringify({txn_id:a}),b={method:"POST",headers:o,body:_,redirect:"follow",credentials:"include"};try{const $=GET_NDHM_HOST();return await(await fetchWrapper(`${$}/abdm/v1/profile/kyc/resend`,b)).json()}catch{}return{}}async function postRegisterAadhaarMobileResendOtp({txn_id:a}){const o=new Headers;o.append("Content-Type","application/json"),o.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&o.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _=JSON.stringify({txn_id:a}),b={method:"POST",headers:o,body:_,redirect:"follow",credentials:"include"};try{const $=GET_NDHM_HOST();return await(await fetchWrapper(`${$}/abdm/na/v1/registration/aadhaar/mobile/resend`,b)).json()}catch{}return{}}async function postRegisterAadhaarCreatePhr({abha_address:a,txn_id:o}){const _=new Headers;_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b=JSON.stringify({abha_address:a,txn_id:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_NDHM_HOST();return await(await fetchWrapper(`${_e}/abdm/na/v1/registration/aadhaar/create-phr`,$)).json()}catch(_e){console.error("postRegisterAadhaarCreatePhr ==>",_e)}return{}}async function postAbdmRegisterMobileCreatePhr({abha_address:a,address:o,first_name:_,last_name:b,day_of_birth:$,month_of_birth:_e,year_of_birth:et,gender:tt,middle_name:rt,pincode:st,txn_id:it}){const lt=new Headers;lt.append("Content-Type","application/json"),lt.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&lt.append("X-Journey-Id",GET_REG_JOURNEY_ID());const at=JSON.stringify({abha_address:a,profile:{address:o,day_of_birth:$,first_name:_,gender:tt,last_name:b,middle_name:rt,month_of_birth:_e,pincode:st,year_of_birth:et},txn_id:it}),ft={method:"POST",headers:lt,body:at,redirect:"follow",credentials:"include"};try{const ht=GET_NDHM_HOST();return await(await fetchWrapper(`${ht}/abdm/na/v1/registration/mobile/create-phr`,ft)).json()}catch(ht){console.error("postAbdmRegisterMobileCreatePhr error =>",ht)}return{}}async function postAbdmProfileLoginPhr({txn_id:a,phr_address:o}){const _=new Headers;_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b=JSON.stringify({txn_id:a,phr_address:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_NDHM_HOST();return await(await fetchWrapper(`${_e}/abdm/na/v1/profile/login/phr`,$)).json()}catch(_e){console.error("postAbdmProfileLoginPhr error =>",_e)}return{}}async function getAbdmRegisterSuggest({txn_id:a,fn:o,mn:_,ln:b,dob:$}){const _e=new Headers;_e.append("Content-Type","application/json"),_e.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_e.append("X-Journey-Id",GET_REG_JOURNEY_ID());const et={method:"GET",headers:_e,redirect:"follow",credentials:"include"};try{const tt=GET_NDHM_HOST();return await(await fetchWrapper(`${tt}/abdm/na/v1/registration/suggest?transactionId=${a}&fn=${o||""}&mn=${_||""}&ln=${b||""}&dob=${$||""}`,et)).json()}catch(tt){console.error("postAbdmLoginVerify error =>",tt)}return{}}async function postAbdmRegisterAbhaNumberCreatePhr({abha_address:a,txn_id:o}){const _=new Headers;_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b=JSON.stringify({abha_address:a,txn_id:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_NDHM_HOST();return await(await fetchWrapper(`${_e}/abdm/na/v1/registration/abha-number/create-phr`,$)).json()}catch(_e){console.error("postAbdmRegisterAbhaNumberCreatePhr ==>",_e)}return{}}async function postAbdmRegisterPhrCheck({abha_address:a}){const o=new Headers;o.append("Content-Type","application/json"),o.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&o.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _=JSON.stringify({abha_address:a}),b={method:"POST",headers:o,body:_,redirect:"follow",credentials:"include"};try{const $=GET_NDHM_HOST();return await(await fetchWrapper(`${$}/abdm/na/v1/registration/phr/check`,b)).json()}catch($){console.error("postAbdmRegisterPhrCheck ==>",$)}return{}}async function postRequestGenerateToken(){const a=new Headers;a.append("Content-Type","application/json"),a.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&a.append("X-Journey-Id",GET_REG_JOURNEY_ID());const o=JSON.stringify({counter_id:GET_COUNTER_ID(),hip_id:GET_HIP_ID()}),_={method:"POST",headers:a,body:o,redirect:"follow",credentials:"include"},b=GET_NDHM_HOST(),$=await fetchWrapper(`${b}/abdm/v2/profile/share`,_);let _e=null;const et=await $.text();if(et)try{_e=JSON.parse(et)}catch(tt){console.error("Invalid JSON response",tt)}return{statusCode:$.status,data:_e}}async function postAbdmProfileEka({abha_address:a,address:o,first_name:_,last_name:b,day_of_birth:$,month_of_birth:_e,year_of_birth:et,gender:tt,middle_name:rt,pincode:st}){const it=new Headers;it.append("Content-Type","application/json"),it.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&it.append("X-Journey-Id",GET_REG_JOURNEY_ID());const lt=JSON.stringify({abha_address:a,profile:{address:o,day_of_birth:$,first_name:_,gender:tt,last_name:b,middle_name:rt,month_of_birth:_e,pincode:st,year_of_birth:et}}),at={method:"POST",headers:it,body:lt,redirect:"follow",credentials:"include"};try{const ft=GET_NDHM_HOST();return await(await fetchWrapper(`${ft}/abdm/v1/profile/eka`,at)).json()}catch(ft){console.error("postAbdmProfileEka error =>",ft)}return{}}async function postMagicUrl({magic:a,whatsapp:o}){const _=new Headers;_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b=JSON.stringify({magic:a,whatsapp:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{return await(await fetchWrapper("https://ndhm.eka.care/v2/phr/auth/link-notification",$)).json()}catch(_e){console.error("postMagicUrl ==>",_e)}return{}}async function postAbdmProfileEkaLinkPhr({abha_address:a,oid:o}){const _=new Headers;_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b=JSON.stringify({abha_address:a,oid:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_NDHM_HOST();return await(await fetchWrapper(`${_e}/abdm/v1/profile/eka/link-phr`,$)).json()}catch(_e){console.error("postAbdmProfileLinkPhr ==>",_e)}return{}}async function postAbdmRegisterMobileVerify({txn_id:a,otp:o}){const _=new Headers;_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b=JSON.stringify({txn_id:a,otp:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_NDHM_HOST();return await(await fetchWrapper(`${_e}/abdm/na/v1/registration/mobile/verify`,$)).json()}catch{}return{}}async function postAbdmRegisterMobileResendOtp({txn_id:a}){const o=new Headers;o.append("Content-Type","application/json"),o.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&o.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _={method:"POST",headers:o,body:JSON.stringify({txn_id:a}),redirect:"follow",credentials:"include"};try{const b=GET_NDHM_HOST();return await(await fetchWrapper(`${b}/abdm/na/v1/registration/mobile/resend`,_)).json()}catch{}return{}}async function getPincodeDetails({pincode:a}){const _=`${GET_NDHM_HOST()}/abdm/na/v1/registration/pincode/${a}`,b=new Headers;b.append("Content-Type","application/json"),b.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&b.append("X-Journey-Id",GET_REG_JOURNEY_ID());const $={method:"GET",headers:b,redirect:"follow",credentials:"include"};try{return await(await fetchWrapper(_,$)).json()}catch(_e){console.error(_e)}return{}}async function getProviderDetails(){const a=GET_NDHM_HOST(),o=GET_HIP_ID(),_=`${a}/abdm/v1/provider/${o}`,b=new Headers;b.append("Content-Type","application/json"),b.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&b.append("X-Journey-Id",GET_REG_JOURNEY_ID());const $={method:"GET",headers:b,redirect:"follow",credentials:"include"};try{return await(await fetchWrapper(_,$)).json()}catch(_e){console.error(_e)}return{}}var ConsentStatus=(a=>(a.REQUESTED="REQUESTED",a.GRANTED="GRANTED",a.DENIED="DENIED",a.EXPIRED="EXPIRED",a.REVOKED="REVOKED",a))(ConsentStatus||{});async function getConsentRequest({id:a,type:o}){const _=GET_NDHM_HOST();console.log("NDHM_HOST",_);const b=`${_}/abdm/v1/request?type=consent&status=${o}&id=${a}`,$=new Headers;$.append("Content-Type","application/json"),$.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&$.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _e={method:"GET",headers:$,redirect:"follow",credentials:"include"};try{const et=await fetchWrapper(b,_e);if(et.status===200)return await et.json();throw Error("Error fetching Consent Details")}catch(et){console.error(et)}return{}}async function getAbdmAssestCard(){const a=GET_NDHM_HOST();console.log("NDHM_HOST",a);const o=`${a}/abdm/v1/profile/asset/card`,_=new Headers;_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b={method:"GET",headers:_,redirect:"follow",credentials:"include"};try{const $=await fetchWrapper(o,b);if($.status===200)return await $.blob();throw Error("Error fetching Consent Details")}catch($){console.error($)}return{}}async function getAbdmProfileV1(){const a=GET_NDHM_HOST();console.log("NDHM_HOST",a);const o=`${a}/abdm/v1/profile`,_=new Headers;_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b={method:"GET",headers:_,redirect:"follow",credentials:"include"};try{const $=await fetchWrapper(o,b);if($.status===200)return await $.json();throw Error("Error fetching Consent Details")}catch($){console.error($)}return{}}async function getAbdmSessionStatus(){const a=GET_NDHM_HOST();console.log("NDHM_HOST",a);const o=`${a}/abdm/v1/session/status`,_=new Headers;_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b={method:"GET",headers:_,redirect:"follow",credentials:"include"};try{const $=await fetchWrapper(o,b);if($.status===200)return await $.json();throw Error("Error fetching Consent Details")}catch($){console.error($)}return{}}async function getAppointmentToken({request_id:a}){const o=GET_NDHM_HOST();console.log("NDHM_HOST",o);const _=`${o}/abdm/v2/profile/share/${a}`,b=new Headers;b.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&b.append("X-Journey-Id",GET_REG_JOURNEY_ID());const $={method:"GET",headers:b,redirect:"follow",credentials:"include"};try{const _e=await fetchWrapper(_,$);if(_e.status===200)return await _e.json();throw Error("Error fetching Consent Details")}catch(_e){console.error(_e)}return{}}async function postAbdmProfileSearch({mobile:a}){const o=new Headers;o.append("Content-Type","application/json"),o.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&o.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _=GET_NDHM_HOST(),b=JSON.stringify({mobile:a}),$={method:"POST",headers:o,body:b,credentials:"include"};try{return(await fetchWrapper(`${_}/abdm/v1/profile/search`,$)).json()}catch(_e){console.error("postAbdmProfileSearch error =>",_e)}return{}}const useTrackAbhaEvent=()=>{const a=useAuthAbhaStore(b=>b.isNewLoginOrCreateFlow),o=useAuthAbhaStore(b=>b.isEkaAppLogin),_=useAuthAbhaStore(b=>b.clientId);return({name:b,data:$={}})=>{var it,lt;const _e=GET_EXTRA_HEADERS(),et=(_e==null?void 0:_e.auth)||"",tt=(_e==null?void 0:_e["X-User-ID"])||"",st={...{auth:et||"missing authToken",x_id:tt||"missing xId",login_platform:_,is_eka_app_login:o?"true":"false",is_new_login_or_create_flow:a?"true":"false"},...$};(lt=(it=window.curio)==null?void 0:it.pushToMixpanel)==null||lt.call(it,b,st),handleSendEvent==null||handleSendEvent({eventName:b,eventData:st})}},AbhaAadhaarVerificationStatusScreen=()=>{const a=useAuthAbhaStore(nt=>nt.aadhaarVerificationSkipStateStatus),o=useAuthAbhaStore(nt=>nt.setAbhaAuthFlowMethod),_=useAuthAbhaStore(nt=>nt.authTxnId),b=useAuthAbhaStore(nt=>nt.ekaSmallToken),$=useAuthAbhaStore(nt=>nt.setScreen),_e=useAuthAbhaStore(nt=>nt.setOTPFromAutoRead),et=useAuthAbhaStore(nt=>nt.abhaAddressList),[tt,rt]=reactExports.useState(!0),st=useAuthAbhaStore(nt=>nt.clientId),it=useAuthAbhaStore(nt=>nt.isEkaAppLogin),lt=useAuthAbhaStore(nt=>nt.oid),at=useAuthAbhaStore(nt=>nt.ekaProfileInfo),ft=["M","F","O","U"],ht=useAuthAbhaStore(nt=>nt.setSelectedAbhaFlow),pt=useAuthAbhaStore(nt=>nt.initAbhaFlow),vt=useAuthAbhaStore(nt=>nt.setIsInitApiTriggered),ut=useAuthAbhaStore(nt=>nt.setIdentifierValue),ot=useTrackAbhaEvent();return reactExports.useEffect(()=>{var yt,_t;const nt=new Promise(At=>{setTimeout(()=>{At(rt(!1))},500)});ot({name:"page_view",data:{page_view:"aadhaar_verified_successful",flow:pt,platform:st}}),(_t=(yt=window.curio)==null?void 0:yt.pushToMixpanel)==null||_t.call(yt,"page_view",{platform:st,page_view:"aadhaar_verified_successful"});async function dt(){await nt,setTimeout(async()=>{var At,xt,wt,bt,It,Nt;if(a===ABHA_V3_SKIP_STATES.CONFIRM_MOBILE_OTP)console.log("setting the selected abha flow to aadhaar"),ht("aadhaar"),ot({name:"abha_aadhaar_verification_status",data:{type:"confirm_mobile_otp",flow:pt,platform:st,transactionId:_||"",skipState:"confirm_mobile_otp",minToken:b||"",oid:(at==null?void 0:at.oid)||"",abhaAddress:(at==null?void 0:at.abha_address)||"",isEkaAppLogin:it?"true":"false"}}),_e(""),handleReadOTP(),$(SCREEN_NAMES.ABHA_PHONE_NUMBER_VERIFICATION);else{if(a===ABHA_V3_SKIP_STATES.ABHA_CREATE&&pt===ABHA_INIT_FLOW.ABHA_KYC){vt(!1),ut({abha_number:at==null?void 0:at.abha_number}),setIndividualEnv({extraHeaders:{"X-Pt-Id":(at==null?void 0:at.oid)??""}}),o(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER),$(SCREEN_NAMES.KYC_LOGIN_SCREEN);return}if(it){const jt=ft.includes(at==null?void 0:at.gender)?at==null?void 0:at.gender:void 0,Et={oid:(at==null?void 0:at.oid)||"",fln:(at==null?void 0:at.name)||"",dob:at==null?void 0:at.date_of_birth,gen:jt,mobile:at==null?void 0:at.mobile,at:"",fn:(at==null?void 0:at.firstname)||"",mn:(at==null?void 0:at.middlename)||"",ln:(at==null?void 0:at.lastname)||"",abha_number:(at==null?void 0:at.abha_number)||"","health-ids":at!=null&&at.abha_address?[at==null?void 0:at.abha_address]:void 0};console.log("inside abha aadhaar verification status auth profile response ",Et);const gt=getMockAuthVerifyResponse(Et);if(console.log("authResponse ",gt),a===ABHA_V3_SKIP_STATES.ABHA_END&&lt){if(ot({name:"abha_aadhaar_verification_status_eka_flow",data:{type:"verify",flow:pt,platform:st,transactionId:_||"",skipState:"abha_end",minToken:b||"",oid:lt||"",abhaAddress:(at==null?void 0:at.abha_address)||"",isEkaAppLogin:it?"true":"false"}}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(At=window.EkaAbha)==null||At.onAbhaSuccess(JSON.stringify({response:gt}));return}onAbhaSuccess({response:gt}),unMount();return}if(a===ABHA_V3_SKIP_STATES.ABHA_CREATE&&et){$(SCREEN_NAMES.SELECT_ABHA_FROM_LIST);return}console.log("redirecting to create eka profile for abha address creation -> mobile"),$(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(!_||!b)return;const Ct=await postAuthVerifyV3({code:b,idp_id:"eka_min_token"});if(Ct.data){if(a===ABHA_V3_SKIP_STATES.ABHA_END){if(lt){const jt=await getPatientData(lt),Et={...Ct,data:{...Ct.data??{},profile:jt}};if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(xt=window.EkaAbha)==null||xt.onAbhaSuccess(JSON.stringify({response:Et}));return}onAbhaSuccess({response:Et}),unMount();return}setIndividualEnv({extraHeaders:{auth:(wt=Ct.data)==null?void 0:wt.tokens.sess}}),setRefreshToken((bt=Ct.data)==null?void 0:bt.tokens.refresh),$(SCREEN_NAMES.GET_ALL_PROFILES);return}setIndividualEnv({extraHeaders:{auth:(It=Ct.data)==null?void 0:It.tokens.sess}}),setRefreshToken((Nt=Ct.data)==null?void 0:Nt.tokens.refresh),ot({name:"abha_login_otp_verify_abha_select",data:{type:"verify",flow:pt,platform:st}}),$(SCREEN_NAMES.SELECT_ABHA_FROM_LIST);return}}},2e3)}dt()},[]),jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:tt,loadingText:"Verifying...",successText:"Aadhaar Verification Successful!"})};var i$1=Object.defineProperty,j=Object.defineProperties,k=Object.getOwnPropertyDescriptors,e$2=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,h$4=Object.prototype.propertyIsEnumerable,f=(a,o,_)=>o in a?i$1(a,o,{enumerable:!0,configurable:!0,writable:!0,value:_}):a[o]=_,l$7=(a,o)=>{for(var _ in o||(o={}))g.call(o,_)&&f(a,_,o[_]);if(e$2)for(var _ of e$2(o))h$4.call(o,_)&&f(a,_,o[_]);return a},m=(a,o)=>j(a,k(o)),c$5=a=>jsxRuntimeExports.jsx("svg",m(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$e=c$5,n$5=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},a),{children:jsxRuntimeExports.jsx("path",{d:"M416.9 85.2L372 130.1L509.9 268L554.8 223.1C568.4 209.6 576 191.2 576 172C576 152.8 568.4 134.4 554.8 120.9L519.1 85.2C505.6 71.6 487.2 64 468 64C448.8 64 430.4 71.6 416.9 85.2zM338.1 164L122.9 379.1C112.2 389.8 104.4 403.2 100.3 417.8L64.9 545.6C62.6 553.9 64.9 562.9 71.1 569C77.3 575.1 86.2 577.5 94.5 575.2L222.3 539.7C236.9 535.6 250.2 527.9 261 517.1L476 301.9L338.1 164z",fill:"currentColor"})})),t$d=n$5,c$4=a=>jsxRuntimeExports.jsx("svg",m(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$4,t$c=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},a),{children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M208 64C172.7 64 144 92.7 144 128L144 176L96 176C60.7 176 32 204.7 32 240L32 512C32 547.3 60.7 576 96 576L544 576C579.3 576 608 547.3 608 512L608 240C608 204.7 579.3 176 544 176L496 176L496 128C496 92.7 467.3 64 432 64L208 64zM192 128C192 119.2 199.2 112 208 112L432 112C440.8 112 448 119.2 448 128L448 200C448 213.3 458.7 224 472 224L544 224C552.8 224 560 231.2 560 240L560 512C560 520.8 552.8 528 544 528L368 528L368 448C368 430.3 353.7 416 336 416L304 416C286.3 416 272 430.3 272 448L272 528L96 528C87.2 528 80 520.8 80 512L80 240C80 231.2 87.2 224 96 224L168 224C181.3 224 192 213.3 192 200L192 128zM144 288C135.2 288 128 295.2 128 304L128 336C128 344.8 135.2 352 144 352L176 352C184.8 352 192 344.8 192 336L192 304C192 295.2 184.8 288 176 288L144 288zM128 400L128 432C128 440.8 135.2 448 144 448L176 448C184.8 448 192 440.8 192 432L192 400C192 391.2 184.8 384 176 384L144 384C135.2 384 128 391.2 128 400zM448 400L448 432C448 440.8 455.2 448 464 448L496 448C504.8 448 512 440.8 512 432L512 400C512 391.2 504.8 384 496 384L464 384C455.2 384 448 391.2 448 400zM464 288C455.2 288 448 295.2 448 304L448 336C448 344.8 455.2 352 464 352L496 352C504.8 352 512 344.8 512 336L512 304C512 295.2 504.8 288 496 288L464 288zM296 168L296 200L264 200C255.2 200 248 207.2 248 216L248 232C248 240.8 255.2 248 264 248L296 248L296 280C296 288.8 303.2 296 312 296L328 296C336.8 296 344 288.8 344 280L344 248L376 248C384.8 248 392 240.8 392 232L392 216C392 207.2 384.8 200 376 200L344 200L344 168C344 159.2 336.8 152 328 152L312 152C303.2 152 296 159.2 296 168z"})})),l$5=t$c,l$4=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 384 512"},a),{children:jsxRuntimeExports.jsx("path",{d:"M0 24C0 10.7 10.7 0 24 0H360c13.3 0 24 10.7 24 24s-10.7 24-24 24h-8V67c0 40.3-16 79-44.5 107.5L225.9 256l81.5 81.5C336 366 352 404.7 352 445v19h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.3 0-24-10.7-24-24s10.7-24 24-24h8V445c0-40.3 16-79 44.5-107.5L158.1 256 76.5 174.5C48 146 32 107.3 32 67V48H24C10.7 48 0 37.3 0 24zM110.5 371.5c-3.9 3.9-7.5 8.1-10.7 12.5H284.2c-3.2-4.4-6.8-8.6-10.7-12.5L192 289.9l-81.5 81.5zM284.2 128C297 110.4 304 89 304 67V48H80V67c0 22.1 7 43.4 19.8 61H284.2z",fill:"currentColor"})})),t$b=l$4,s$5=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:"0 0 512 512",fill:"currentColor"},a),{children:jsxRuntimeExports.jsx("path",{d:"M280 24c0-13.3-10.7-24-24-24s-24 10.7-24 24V294.1l-95-95c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 369c9.4 9.4 24.6 9.4 33.9 0L409 233c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-95 95V24zM128.8 304H64c-35.3 0-64 28.7-64 64v80c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V368c0-35.3-28.7-64-64-64H383.2l-48 48H448c8.8 0 16 7.2 16 16v80c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V368c0-8.8 7.2-16 16-16H176.8l-48-48zM432 408a24 24 0 1 0 -48 0 24 24 0 1 0 48 0z"})})),t$a=s$5,t$9=a=>jsxRuntimeExports.jsx("svg",m(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$9,s$4=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 512 512"},a),{children:jsxRuntimeExports.jsx("path",{d:"M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z",fill:"currentColor"})})),t$8=s$4,t$7=a=>jsxRuntimeExports.jsx("svg",m(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$3=t$7,c$2=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 512 512"},a),{children:jsxRuntimeExports.jsx("path",{d:"M273 111c-9.4-9.4-24.6-9.4-33.9 0L47 303c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l175-175 175 175c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L273 111z",fill:"currentColor"})})),e=c$2,L=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},a),{children:jsxRuntimeExports.jsx("path",{d:"M128 320L156.5 92C158.5 76 172.1 64 188.3 64L356.9 64C371.9 64 384 76.1 384 91.1C384 94.3 383.4 97.6 382.3 100.6L336 224L475.3 224C495.5 224 512 240.4 512 260.7C512 268.1 509.8 275.3 505.6 281.4L313.4 562.4C307.5 571 297.8 576.1 287.5 576.1L284.6 576.1C268.9 576.1 256.1 563.3 256.1 547.6C256.1 545.3 256.4 543 257 540.7L304 352L160 352C142.3 352 128 337.7 128 320z",fill:"currentColor"})})),n$4=L,l$3=a=>jsxRuntimeExports.jsx("svg",m(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$3=l$3,s$3=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 512 512"},a),{children:jsxRuntimeExports.jsx("path",{d:"M505 273c9.4-9.4 9.4-24.6 0-33.9L377 111c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l87 87L184 232c-13.3 0-24 10.7-24 24s10.7 24 24 24l246.1 0-87 87c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0L505 273zM168 80c13.3 0 24-10.7 24-24s-10.7-24-24-24L88 32C39.4 32 0 71.4 0 120L0 392c0 48.6 39.4 88 88 88l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-80 0c-22.1 0-40-17.9-40-40l0-272c0-22.1 17.9-40 40-40l80 0z",fill:"currentColor"})})),t$6=s$3,c$1=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 512 512",fill:"currentColor"},a),{children:jsxRuntimeExports.jsx("path",{d:"M502.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224H32c-17.7 0-32 14.3-32 32s14.3 32 32 32h370.7L297.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"})})),l$2=c$1,n$2=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},a),{children:jsxRuntimeExports.jsx("path",{d:"M256 160C256 124.7 284.7 96 320 96C351.7 96 378 119 383.1 149.3C386 166.7 402.5 178.5 420 175.6C437.5 172.7 449.2 156.2 446.3 138.7C436.1 78.1 383.5 32 320 32C249.3 32 192 89.3 192 160L192 224C156.7 224 128 252.7 128 288L128 512C128 547.3 156.7 576 192 576L448 576C483.3 576 512 547.3 512 512L512 288C512 252.7 483.3 224 448 224L256 224L256 160z",fill:"currentColor"})})),t$5=n$2,t$4=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},a),{children:jsxRuntimeExports.jsx("path",{d:"M320 312C386.3 312 440 258.3 440 192C440 125.7 386.3 72 320 72C253.7 72 200 125.7 200 192C200 258.3 253.7 312 320 312zM290.3 368C191.8 368 112 447.8 112 546.3C112 562.7 125.3 576 141.7 576L498.3 576C514.7 576 528 562.7 528 546.3C528 447.8 448.2 368 349.7 368L290.3 368z",fill:"currentColor"})})),l$1=t$4,t$3=a=>jsxRuntimeExports.jsx("svg",m(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$3,s$2=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 512 512"},a),{children:jsxRuntimeExports.jsx("path",{d:"M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z",fill:"currentColor"})})),t$2=s$2,l=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 448 512"},a),{children:jsxRuntimeExports.jsx("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z",fill:"currentColor"})})),n=l,s$1=a=>jsxRuntimeExports.jsx("svg",m(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,c=a=>jsxRuntimeExports.jsx("svg",m(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$3=c,s=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor"},a),{children:jsxRuntimeExports.jsx("path",{d:"M142.9 142.9c-17.5 17.5-30.1 38-37.8 59.8c-5.9 16.7-24.2 25.4-40.8 19.5s-25.4-24.2-19.5-40.8C55.6 150.7 73.2 122 97.6 97.6c87.2-87.2 228.3-87.5 315.8-1L455 55c6.9-6.9 17.2-8.9 26.2-5.2s14.8 12.5 14.8 22.2l0 128c0 13.3-10.7 24-24 24l-8.4 0c0 0 0 0 0 0L344 224c-9.7 0-18.5-5.8-22.2-14.8s-1.7-19.3 5.2-26.2l41.1-41.1c-62.6-61.5-163.1-61.2-225.3 1zM16 312c0-13.3 10.7-24 24-24l7.6 0 .7 0L168 288c9.7 0 18.5 5.8 22.2 14.8s1.7 19.3-5.2 26.2l-41.1 41.1c62.6 61.5 163.1 61.2 225.3-1c17.5-17.5 30.1-38 37.8-59.8c5.9-16.7 24.2-25.4 40.8-19.5s25.4 24.2 19.5 40.8c-10.8 30.6-28.4 59.3-52.9 83.8c-87.2 87.2-228.3 87.5-315.8 1L57 457c-6.9 6.9-17.2 8.9-26.2 5.2S16 449.7 16 440l0-119.6 0-.7 0-7.6z"})})),t=s;const Pds2Spinner=({className:a="",size:o=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:o,height:o,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:a,textColor:o,size:_,state:b,buttonColor:$="",isLoading:_e,className:et,onClick:tt,width:rt,buttonIconPosition:st="right",IconComponent:it,padding:lt})=>jsxRuntimeExports.jsx("button",{title:a.toString()||"",className:`${et} ${lt||"pds2-px-24 pds2-py-16"} pds2-text-content-enabled ${$||"pds2-bg-primary-brand"} pds2-flex pds2-justify-center pds2-items-center pds2-rounded-16 ${_e?"pds2-pointer-events-none pds2-cursor-not-allowed":""} disabled:pds2-pointer-events-none disabled:pds2-bg-surface-strong disabled:pds2-text-content-secondary ${b==="disabled"?"":"ripple"}`,onClick:tt,...rt?{style:{width:rt}}:null,disabled:b==="disabled",children:_e?jsxRuntimeExports.jsx(Pds2Spinner,{size:24,className:o}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[it&&st==="left"?jsxRuntimeExports.jsx(it,{}):null,jsxRuntimeExports.jsx("div",{className:`${o} ${_==="large"?"Body1Semibold":"Body2Semibold"}`,children:a}),it&&st==="right"?jsxRuntimeExports.jsx(it,{}):null]})}),BottomSheetWrapper=({isOpen:a,setIsOpen:o,children:_,shouldCloseOnClickOutside:b=!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-content-primary pds2-bg-opacity-60 pds2-transition-opacity pds2-duration-300",onClick:()=>b&&o(!1)}),jsxRuntimeExports.jsx("div",{className:"pds2-absolute pds2-bottom-0 pds2-left-0 pds2-right-0 pds2-w-full pds2-bg-surface-base 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$2=({description:a,subText:o,submitText:_,onSubmitClick:b,iconUrl:$,isBottomSheetOpen:_e,onBottomSheetClose:et,shouldCloseOnClickOutside:tt=!0})=>jsxRuntimeExports.jsx(BottomSheetWrapper,{isOpen:_e,setIsOpen:et,shouldCloseOnClickOutside:tt,children:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-p-16 pds2-text-center",children:[tt?jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-end pds2-items-center",children:jsxRuntimeExports.jsx("button",{onClick:et,className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",children:jsxRuntimeExports.jsx(t$e,{className:"pds2-w-18 pds2-h-18 pds2-text-content-secondary"})})}):null,jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-8",children:[$&&jsxRuntimeExports.jsx("span",{className:"pds2-flex pds2-justify-center",children:jsxRuntimeExports.jsx("img",{src:$,className:"pds2-w-64 pds2-h-64",alt:"Bottom sheet icon"})}),jsxRuntimeExports.jsx("div",{className:"Heading4Semibold pds2-text-content-primary pds2-py-16 pds2-text-18",children:a}),o&&jsxRuntimeExports.jsx("div",{className:"Body2Regular pds2-text-content-secondary",children:o}),jsxRuntimeExports.jsx(Pds2Button,{title:_,onClick:b,state:"enabled",className:"pds2-w-full"})]})]})}),AbhaErrorBottomSheet=({onSubmitClick:a})=>{const o=useAuthAbhaStore($=>$.bottomsheetErrorInfo),_=useAuthAbhaStore($=>$.setBottomsheetErrorInfo),b=()=>{_(null)};return jsxRuntimeExports.jsx(AbhaBottomSheet$2,{description:(o==null?void 0:o.title)||"Something went wrong",subText:(o==null?void 0:o.description)||"Something went wrong",submitText:(o==null?void 0:o.cta.title)||"Retry",onSubmitClick:a,iconUrl:o==null?void 0:o.img,isBottomSheetOpen:!!o,onBottomSheetClose:b,shouldCloseOnClickOutside:!1})},AbhaInputComponent=({isOtpInput:a,isAbhaNum:o,numberOfInputs:_,length:b=1,placeholder:$="",setIsValid:_e,onSubmit:et,error:tt,containerClassName:rt,setError:st,initialValues:it,setValue:lt,disabled:at=!1,autoComplete:ft})=>{const ht=reactExports.useRef([]),[pt,vt]=reactExports.useState(it||Array(_).fill("")),ut=o?_-1:_,ot=o?14:_*b,nt=useAuthAbhaStore(wt=>wt.otpFromAutoRead);reactExports.useEffect(()=>{var wt;if(it&&it.length===_){const bt=it.join(""),It=pt.join("");bt!==It&&(vt(it),_e==null||_e(bt.length===ot))}if(nt&&a){const bt=nt.slice(0,ot).split("");vt(bt),lt==null||lt(o?bt.join("-"):bt.join("")),_e==null||_e(!0),et({inputVal:bt.join("")}),(wt=ht.current[_-1])==null||wt.focus();return}},[it,_,b,nt]);const dt=(wt,bt)=>{var Et,gt,St;if(at)return;st&&st(null);const It=wt.target.value;if(isNaN(Number(It)))return;if(It.trim().length===ot){At({otpValue:It,index:0});return}const Ct=[...pt];Ct[bt]=It;const jt=Ct.join("").length;if(!(jt>ot)){if(vt(Ct),lt==null||lt(Ct.join("")),o&&bt===0&&ht.current[bt].value.length>1){(Et=ht.current[bt+1])==null||Et.focus();return}else if(ht.current[bt].value.length>b){(gt=ht.current[bt+1])==null||gt.focus();return}jt===ot?(_e==null||_e(!0),et({inputVal:Ct.join("")}),lt&&lt(o?Ct.join("-"):Ct.join(""))):_e==null||_e(!1),It.length===b&&bt<_-1&&((St=ht.current[bt+1])==null||St.focus())}},yt=(wt,bt)=>{var It;at||wt.key==="Backspace"&&pt[bt]===""&&bt>0&&((It=ht.current[bt-1])==null||It.focus())},_t=(wt,bt)=>{if(at)return;wt.preventDefault();const It=wt.clipboardData.getData("text").replace(/\D/g,"");if(!It)return;const Nt=o?ot+2:ot,Ct=It.slice(0,Nt);At({otpValue:Ct,index:bt})},At=({otpValue:wt,index:bt})=>{var jt,Et;let It=wt.match(new RegExp(`.{1,${b}}`,"g"))||[];if(o){const gt=wt.slice(0,2),ct=wt.slice(2).match(new RegExp(`.{1,${b}}`,"g"))||[];It=[gt,...ct]}const Nt=[...pt];It.forEach((gt,St)=>{bt+St<_&&(Nt[bt+St]=gt)}),vt(Nt);const Ct=Nt.findIndex((gt,St)=>St>=bt&&!gt);Ct!==-1?(jt=ht.current[Ct])==null||jt.focus():(Et=ht.current[_-1])==null||Et.focus(),Nt.join("").length===ot?(_e==null||_e(!0),et({inputVal:Nt.join("")}),lt&&Nt.join("").length===ot&&lt(o?Nt.join("-"):Nt.join(""))):_e==null||_e(!1)},xt=reactExports.useMemo(()=>{if(o){const bt=pt.map((Nt,Ct)=>Ct===0?2:4),It=pt.findIndex((Nt,Ct)=>Nt.length<bt[Ct]);return It!==-1?It:pt.length>0?pt.length-1:0}const wt=pt.findIndex(bt=>bt.length<b);return wt!==-1?wt:pt.length>0?pt.length-1:0},[pt,b]);return jsxRuntimeExports.jsxs("div",{className:`pds2-flex pds2-justify-center pds2-items-center pds2-space-x-8 ${rt}`,children:[o&&jsxRuntimeExports.jsx("label",{className:`focus-within:pds2-border-primary-brand pds2-border ${tt?"pds2-border-semantic-error":"pds2-border-surface-muted"} pds2-rounded-12 pds2-bg-surface-base`,children:jsxRuntimeExports.jsx("input",{autoFocus:xt===0&&!at,placeholder:"XX",value:pt[0],type:"text",autoComplete:ft,inputMode:"numeric",pattern:"[0-9]*",maxLength:2,onPaste:wt=>_t(wt,0),ref:wt=>{wt&&(ht.current[0]=wt)},onChange:wt=>dt(wt,0),onKeyDown:wt=>yt(wt,0),disabled:at,className:"pds2-w-full pds2-text-center pds2-h-56 pds2-rounded-12 pds2-outline-none pds2-bg-transparent disabled:pds2-text-content-muted"},0)}),Array.from({length:ut}).map((wt,bt)=>(o&&(bt=bt+1),jsxRuntimeExports.jsx("label",{className:`focus-within:pds2-border-primary-brand pds2-border ${tt?"pds2-border-semantic-error":"pds2-border-surface-muted"} pds2-rounded-12 pds2-bg-surface-base`,children:jsxRuntimeExports.jsx("input",{autoFocus:bt===xt&&!at,placeholder:$,value:pt[bt],type:"text",autoComplete:ft,inputMode:"numeric",pattern:"[0-9]*",onPaste:It=>_t(It,bt),ref:It=>{It&&(ht.current[bt]=It)},onChange:It=>dt(It,bt),onKeyDown:It=>yt(It,bt),disabled:at,maxLength:b,className:"pds2-w-full pds2-text-center pds2-h-56 pds2-rounded-12 pds2-outline-none pds2-bg-transparent disabled:pds2-text-content-muted"},bt+1)},bt)))]})};function formatTime(a){const o=Math.floor(a/60),_=a%60;return`${o.toString().padStart(2,"0")}:${_.toString().padStart(2,"0")}`}const ResendTimer=({time:a,onResendOtpClick:o,error:_})=>{const[b,$]=reactExports.useState(a);return reactExports.useEffect(()=>{const _e=setInterval(()=>{$(b-1)},1e3);return()=>clearInterval(_e)},[b]),b>0?jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-between pds2-items-center pds2-w-full",children:jsxRuntimeExports.jsxs("div",{className:"pds2-text-content-muted",children:[jsxRuntimeExports.jsx("span",{className:"Body3Semibold",children:"Resend OTP in"})," ",jsxRuntimeExports.jsx("span",{className:"Body3Semibold",children:formatTime(b)})]})}):jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-between pds2-items-center pds2-w-full",children:jsxRuntimeExports.jsx("button",{className:"Body3Semibold pds2-text-content-primary cursor-pointer",onClick:()=>{$(a),o()},children:"Resend OTP"})})},AbhaOtpCard=({otpSentToText:a,onOtpCompletion:o,onResendOtpClick:_,setIsValid:b,error:$,setError:_e,prefixIcon:et=jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm5mcdm3h00070tfs9fjkepff.webp",alt:"aadhaar-icon",className:"pds2-w-48"})})=>{const tt=useAuthAbhaStore(ft=>ft.goBackScreen),rt=useAuthAbhaStore(ft=>ft.screen),st=useAuthAbhaStore(ft=>ft.setGoBackToLogin),it=useAuthAbhaStore(ft=>ft.abhaAuthFlowMethod),lt=GET_EXTRA_HEADERS(),at=(lt==null?void 0:lt["X-User-ID"])??void 0;return reactExports.useEffect(()=>{st(!1)},[]),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-p-16 pds2-rounded-16 pds2-bg-surface-base pds2-space-y-8",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-space-x-16",children:[a&&jsxRuntimeExports.jsxs("div",{className:"Body1Regular pds2-text-content-primary pds2-flex-1",children:[a,jsxRuntimeExports.jsx("sup",{className:"pds2-text-semantic-error Body3Semibold",children:" *"})]}),et]}),jsxRuntimeExports.jsx(AbhaInputComponent,{isOtpInput:!0,numberOfInputs:6,length:1,onSubmit:({inputVal:ft})=>o({otp:ft}),setIsValid:b,error:$,setError:_e,autoComplete:"one-time-code"}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex",children:[jsxRuntimeExports.jsx(ResendTimer,{time:60,onResendOtpClick:_,error:$}),rt.length===2&&!(it===ABHA_AUTH_FLOW_METHOD.MOBILE&&at)&&jsxRuntimeExports.jsx("button",{className:"Body3Semibold pds2-text-primary-brand cursor-pointer",onClick:()=>{tt(),st(!0)},children:"Change"})]}),$&&jsxRuntimeExports.jsx("div",{className:"Body3Semibold pds2-text-semantic-error",children:$})]})},usePostAbdmLoginVerify=()=>{const a=useAuthAbhaStore(o=>o.setSelectedAbhaAddress);return useMutation({mutationFn:({txn_id:o,otp:_})=>postAbdmLoginVerify({otp:_,txn_id:o}),onSuccess(o){o.profile&&(queryClient.setQueryData(["abdmProfilePhrResponse"],o.profile),a(o.profile.abha_address))}})},Pds2CustomButton=({prefixIcon:a,title:o,suffixIcon:_,className:b="",onClick:$,width:_e="pds2-w-full",padding:et,isRippleStyle:tt=!0,bgColor:rt})=>jsxRuntimeExports.jsx("div",{className:"pds2-bg-surface-base pds2-rounded-16",children:jsxRuntimeExports.jsxs("button",{onClick:$,className:`pds2-flex pds2-flex-row pds2-items-center pds2-gap-12 ${rt||"pds2-bg-surface-base"} ${et||"pds2-p-16"} pds2-rounded-16 pds2-text-bg-inver pds2-border pds2-border-surface-muted ${tt&&"ripple"} ${_e} ${b}`,children:[a||null,jsxRuntimeExports.jsx("span",{className:"Body1Medium",children:o}),_||null]})}),ExitPopup=({open:a,setOpen:o})=>{const _=useAuthAbhaStore(lt=>lt.goBackLoginScreen),b=useAuthAbhaStore(lt=>lt.clientId),$=useAuthAbhaStore(lt=>lt.setAbhaAuthFlowMethod),_e=useAuthAbhaStore(lt=>lt.setGoBackToLogin),et=useAuthAbhaStore(lt=>lt.screen),tt=useAuthAbhaStore(lt=>lt.initAbhaFlow),rt=useAuthAbhaStore(lt=>lt.abhaAuthFlowMethod),st=useTrackAbhaEvent(),it=()=>{st({name:"abha_exit_popup_confirmed",data:{flow:tt,action:"go_back_to_login_screen"}}),et.at(-2)===SCREEN_NAMES.SELECT_ABHA_FROM_LIST&&rt===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&$(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),tt===ABHA_INIT_FLOW.ABHA_KYC&&b!="phr"&&$(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS),_e(!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-content-primary pds2-bg-opacity-60 pds2-transition-opacity pds2-duration-300",onClick:()=>o(!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-surface-base pds2-rounded-16 pds2-w-full pds2-p-24",children:[jsxRuntimeExports.jsx("h2",{className:"pds2-text-content-primary pds2-font-500 pds2-text-18",children:"Are you sure you want to exit?"}),jsxRuntimeExports.jsx("p",{className:"pds2-text-content-secondary 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-semantic-error pds2-font-600 pds2-text-16 pds2-border-none",width:"pds2-w-fit",onClick:()=>o(!1)}),jsxRuntimeExports.jsx(Pds2CustomButton,{title:"Yes, I'm done",padding:"pds2-px-12 pds2-py-8",className:"pds2-text-primary-brand pds2-font-600 pds2-text-16 pds2-border-none",width:"pds2-w-fit",onClick:it})]})]})})})}):null})},AbhaStepper=()=>{const a=useAuthAbhaStore(st=>st.screen),o=useAuthAbhaStore(st=>st.currentStepperIndex),_=useAuthAbhaStore(st=>st.setCurrentStepperIndex),b=a[a.length-1],$=a.length>1&&a[a.length-2],_e=useAuthAbhaStore(st=>st.abhaAuthFlowMethod),et={1:["LOGIN_WITH_ABHA","LOGIN_OR_CREATE_ABHA","CREATE_ABHA_WITH_AADHAAR"],2:["VERIFY_OTP_LOGIN_WITH_ABHA","ABHA_OTP_AND_MOBILE","ABHA_AUTH_QR_SCREEN"],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"],4:["ABHA_HEALTHID_CARD_SCREEN"]};reactExports.useEffect(()=>{var it;const st=(it=Object.entries(et).find(([lt,at])=>at.includes(b)))==null?void 0:it[0];if(st){if(_e==="abha_number"||_e==="phr_address"){if(b==="VERIFY_OTP_LOGIN_WITH_ABHA"){_(3);return}}else if(($==="LOGIN_OR_CREATE_ABHA"||$==="LOGIN_WITH_ABHA"||$==="CREATE_ABHA_WITH_AADHAAR")&&a.length>1){_(2);return}Number(st)>=o&&_(Number(st))}},[a]);const tt=Array.from({length:4},(st,it)=>{const lt=it+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-content-enabled ${lt<=o?"pds2-bg-primary-brand":"pds2-bg-surface-strong"}`,children:lt},lt)}),rt=o===1?20:o===2?50:o===3?80:100;return jsxRuntimeExports.jsxs("div",{className:"pds2-bg-surface-subtle 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:tt}),jsxRuntimeExports.jsx("progress",{className:"abhaStepper pds2-absolute pds2-w-full pds2-h-2 pds2-px-60",max:100,value:rt})]})},usePostAuthSwitchV3=()=>{const a=useAuthAbhaStore(rt=>rt.setScreen),o=useAuthAbhaStore(rt=>rt.successRedirect),_=useAuthAbhaStore(rt=>rt.abhaAuthFlowMethod),b=useAuthAbhaStore(rt=>rt.setAbhaAuthFlowMethod),$=useAuthAbhaStore(rt=>rt.initAbhaFlow),_e=useAuthAbhaStore(rt=>rt.ekaProfileInfo),et=useAuthAbhaStore(rt=>rt.setIsInitApiTriggered),tt=GET_REFRESH_TOKEN();return useMutation({mutationFn:({oid:rt,refresh:st})=>postAuthSwitchV3({oid:rt,refresh:st||tt}),onSuccess:rt=>{var st,it,lt,at,ft,ht,pt,vt,ut;if(rt){if(rt.error){console.error(rt.error);return}const{sess:ot,refresh:nt}=rt,dt={data:{tokens:{sess:ot,refresh:nt},profile:{fln:(_e==null?void 0:_e.name)||"",fn:(_e==null?void 0:_e.firstname)||"",ln:(_e==null?void 0:_e.lastname)||"",gen:(_e==null?void 0:_e.gender)||void 0,dob:(_e==null?void 0:_e.date_of_birth)||"",mobile:(_e==null?void 0:_e.mobile)||"",uuid:(_e==null?void 0:_e.patient_uuid)||"",oid:(_e==null?void 0:_e.oid)||"","health-ids":_e!=null&&_e.abha_address?[_e.abha_address]:[]}}};if((st=dt.data)!=null&&st.tokens.sess&&($===ABHA_INIT_FLOW.SCAN_AND_SHARE||$===ABHA_INIT_FLOW.SCAN_AND_SHARE_KIOSK)){setIndividualEnv({extraHeaders:{auth:(it=dt.data)==null?void 0:it.tokens.sess}}),setIndividualEnv({extraHeaders:{"X-Pt-Id":(_e==null?void 0:_e.oid)??""}}),setRefreshToken((lt=dt.data)==null?void 0:lt.tokens.refresh),a(SCREEN_NAMES.BOOK_APPOINTMENT_SCREEN);return}else if(_===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&((at=dt.data)!=null&&at.tokens.sess)&&$){if(setIndividualEnv({extraHeaders:{auth:(ft=dt.data)==null?void 0:ft.tokens.sess}}),setRefreshToken((ht=dt.data)==null?void 0:ht.tokens.refresh),$===ABHA_INIT_FLOW.CONSENT){a(SCREEN_NAMES.CONSENT_LOADER_SCREEN);return}else if($===ABHA_INIT_FLOW.ABHA_KYC)if(_e!=null&&_e.kyc_verified){a(SCREEN_NAMES.KYC_ALREADY_VERIFIED);return}else{setIndividualEnv({extraHeaders:{"X-Pt-Id":(_e==null?void 0:_e.oid)??""}}),et(!1),b(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),a(SCREEN_NAMES.KYC_LOGIN_SCREEN);return}}if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(pt=window.EkaAbha)==null||pt.onAbhaSuccess(JSON.stringify({response:dt}));return}if(onAbhaSuccess({response:dt}),o==="abha-card"&&((vt=dt.data)!=null&&vt.tokens.sess)){setIndividualEnv({extraHeaders:{"X-Pt-Id":(_e==null?void 0:_e.oid)??""}}),setIndividualEnv({extraHeaders:{auth:(ut=dt.data)==null?void 0:ut.tokens.sess}}),a(SCREEN_NAMES.ABHA_HEALTHID_CARD_SCREEN);return}else unMount();return}}})},setAuthEnv=(a,o)=>{a&&(setIndividualEnv({extraHeaders:{auth:a}}),o&&setRefreshToken(o))},usePostAuthVerifyV3=()=>{const{clientId:a,isEkaAppLogin:o,isNewLoginOrCreateFlow:_,txnId:b,setScreen:$,successRedirect:_e,abhaAuthFlowMethod:et,initAbhaFlow:tt,setAbhaAuthFlowMethod:rt,ekaProfileInfo:st,setIsInitApiTriggered:it,setBottomsheetErrorInfo:lt}=useAuthAbhaStore(),at=GET_REFRESH_TOKEN();useAuthAbhaStore(pt=>pt.abhaAuthFlowMethod||ABHA_AUTH_FLOW_METHOD.MOBILE);const ft=useTrackAbhaEvent(),{mutateAsync:ht}=usePostAuthSwitchV3();return useMutation({mutationFn:pt=>postAuthVerifyV3(pt),onSuccess:async(pt,{oid:vt})=>{var nt,dt,yt,_t;const ut=(nt=pt.data)==null?void 0:nt.tokens;if(!ut)return pt;if(setAuthEnv(ut==null?void 0:ut.sess,ut==null?void 0:ut.refresh),!vt){$(SCREEN_NAMES.GET_ALL_PROFILES);return}const ot=await ht({oid:vt,refresh:(ut==null?void 0:ut.refresh)||at});if(!ot||ot.error){ft({name:"abha_switch_failed",data:{method:(et==null?void 0:et.toLowerCase())||"unknown_method",flow:tt,is_eka_app_login:o?"true":"false",platform:a,oid:vt||"missing_oid",oid_exists:!!vt,error_message:((dt=ot.error)==null?void 0:dt.message)||"unknown_error",error_message_exists:!!((yt=ot.error)!=null&&yt.message)}}),lt({title:"Something went wrong",img:"",description:((_t=ot.error)==null?void 0:_t.message)||"Please try again",cta:{title:"",pid:"",params:null}});return}ft({name:"abha_switch_success",data:{method:et==null?void 0:et.toLowerCase(),flow:tt,is_eka_app_login:o?"true":"false",platform:a,oid:vt}})}})},Pds2Header=({prefixIcon:a,title:o,suffixIcon:_,className:b="",showHeaderStrip:$=!0})=>{const _e=useAuthAbhaStore(st=>st.clientId),et=useAuthAbhaStore(st=>st.initAbhaFlow);useAuthAbhaStore(st=>st.isNewLoginOrCreateFlow),useAuthAbhaStore(st=>st.txnId),useAuthAbhaStore(st=>st.abhaAuthFlowMethod||ABHA_AUTH_FLOW_METHOD.MOBILE);const tt=useTrackAbhaEvent(),rt=()=>{tt({name:"abha_app_open_clicked",data:{flow:et,type:"app",platform:_e}}),window.open("https://eka.im/EKA/SEXVL9pr","_blank")};return jsxRuntimeExports.jsxs("div",{className:` pds2-w-full pds2-sticky pds2-top-0 pds2-z-50 pds2-bg-surface-base ${b}`,children:[_e==="eka-web"&&et!=ABHA_INIT_FLOW.SCAN_AND_SHARE_KIOSK&&jsxRuntimeExports.jsxs("div",{className:"pds2-w-full lg:pds2-hidden pds2-px-16 pds2-py-14 pds2-flex pds2-items-center pds2-justify-center pds2-bg-primary-brand",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex-none pds2-w-1/6",children:jsxRuntimeExports.jsx("img",{className:"pds2-w-24 pds2-h-24",src:"https://cdn.eka.care/vagus/cmljdkhj700030td1c3id7f91.png",alt:"Eka PHR"})}),jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-text-content-enabled pds2-flex-none pds2-w-3/5",children:"Get seamless experience with all records in one place."}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-end pds2-flex-none pds2-w-1/4 hover:pds2-cursor-pointer",children:jsxRuntimeExports.jsx("div",{onClick:rt,className:"Body3Semibold pds2-px-7 pds2-py-5 pds2-bg-surface-base pds2-text-primary-brand pds2-rounded-4",children:"Open App"})})]}),$&&jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-justify-between pds2-p-16",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-content-primary",children:o}),_||jsxRuntimeExports.jsx("div",{className:"pds2-w-24 pds2-h-24"})]})]})},AbhaLoginOtpVerifyScreen=()=>{const a=useAuthAbhaStore(kt=>kt.authTxnId),o=useAuthAbhaStore(kt=>kt.txnId),_=useAuthAbhaStore(kt=>kt.setAbhaAddressList),b=useAuthAbhaStore(kt=>kt.clearAbhaAuthStore),$=useAuthAbhaStore(kt=>kt.aadhaarOtpSentToHint),_e=useAuthAbhaStore(kt=>kt.loginIdentifierValue),et=useAuthAbhaStore(kt=>kt.abhaAuthFlowMethod),tt=useAuthAbhaStore(kt=>kt.setScreen),rt=useAuthAbhaStore(kt=>kt.goBackLoginScreen),st=useAuthAbhaStore(kt=>kt.setTxnId),it=useAuthAbhaStore(kt=>kt.setOTPFromAutoRead),lt=useAuthAbhaStore(kt=>kt.setBottomsheetErrorInfo),[at,ft]=reactExports.useState(!1),ht=useAuthAbhaStore(kt=>kt.setEkaProfileInfo),pt=useAuthAbhaStore(kt=>kt.setAbhaAuthFlowMethod),vt=useAuthAbhaStore(kt=>kt.setIsInitApiTriggered),ut=useAuthAbhaStore(kt=>kt.setAadhaarVerificationSkipStateStatus),ot=useAuthAbhaStore(kt=>kt.setSelectedAbhaAddress),[nt,dt]=reactExports.useState(""),[yt,_t]=reactExports.useState(!1),[At,xt]=reactExports.useState(""),[wt,bt]=reactExports.useState(LOADING_STATE.IDLE),It=["M","F","O","U"],{mutateAsync:Nt}=usePostAuthVerifyV3(),{mutateAsync:Ct}=usePostAbdmLoginVerify(),jt=useAuthAbhaStore(kt=>kt.isEkaAppLogin),Et=useAuthAbhaStore(kt=>kt.clientId);useAuthAbhaStore(kt=>kt.oid);const gt=useAuthAbhaStore(kt=>kt.initAbhaFlow),St=useAuthAbhaStore(kt=>kt.successRedirect),ct=useTrackAbhaEvent();reactExports.useEffect(()=>{ct({name:"page_view",data:{page_view:"abha_login_otp_verify",platform:Et,flow:gt}})},[]);const mt=()=>{ct({name:"abha_login_otp_verify_error_bottomsheet_dismissed",data:{platform:Et,flow:gt}}),rt();const kt=Et,Ht=useAuthAbhaStore.getState().isEkaAppLogin;b(),useAuthAbhaStore.setState({clientId:kt}),useAuthAbhaStore.setState({isEkaAppLogin:Ht})},Rt=({otp:kt})=>{dt(kt),ct({name:"abha_login_otp_completion",data:{type:"verify",platform:Et,txn_id:o,otp_entered:!0,method:et,flow:gt}}),Tt(kt)},Tt=async kt=>{var Qt,Kt,Ut,Jt,ur,ir;if(it(""),!o){ct({name:"abha_login_otp_verify_txnId_not_found",data:{type:"verify",platform:Et,txn_id:o||"missing_txn_id",txn_id_exists:!!o,method:(et==null?void 0:et.toLowerCase())||"unknown_method",flow:gt}});return}ct({name:"abha_login_otp_verify",data:{type:"verify",platform:Et,txn_id:o,flow:gt}}),bt(LOADING_STATE.LOADING);const{abha_profiles:Ht=[],skip_state:Pt,profile:Lt,error:Bt,action:$t,eka:Vt}=await Ct({otp:kt,txn_id:o});if($t){ct({name:"abha_login_otp_verify_error_action",data:{type:"verify",platform:Et,error_action:$t||"no_error_action",error_message:Bt||"no_error_message",error_action_exists:!!$t,error_message_exists:!!Bt,flow:gt}}),lt($t);return}if(Bt){ct({name:"abha_login_otp_verify_error",data:{type:"verify",platform:Et,error_message:Bt||"unknown_error",error_message_exists:!!Bt,flow:gt}}),bt(LOADING_STATE.REJECTED),xt(Bt);return}if(!Pt){xt("Skip State is missing"),ct({name:"abha_login_skip_state_missing",data:{platform:Et,skipState:Pt||"missing_skip_state",skipState_exists:!!Pt,flow:gt}});return}ut(Pt),Lt&&ot(Lt.abha_address),Lt&&ht({date_of_birth:`${Lt.year_of_birth}-${String(Lt.month_of_birth).padStart(2,"0")}-${String(Lt.day_of_birth).padStart(2,"0")}`,firstname:Lt.first_name,lastname:Lt.last_name,pincode:Lt.pincode,gender:Lt.gender,name:Lt.first_name+" "+Lt.last_name,mobile:Lt.mobile,oid:Vt==null?void 0:Vt.oid,patient_uuid:Vt==null?void 0:Vt.uuid,abha_address:Lt==null?void 0:Lt.abha_address,abha_number:Lt==null?void 0:Lt.abha_number,kyc_verified:Lt==null?void 0:Lt.kyc_verified});const Gt=It.includes(Lt==null?void 0:Lt.gender)?Lt==null?void 0:Lt.gender:void 0,zt={oid:(Vt==null?void 0:Vt.oid)||"",fln:(Lt==null?void 0:Lt.first_name)+" "+(Lt==null?void 0:Lt.last_name),dob:`${Lt==null?void 0:Lt.year_of_birth}-${String(Lt==null?void 0:Lt.month_of_birth).padStart(2,"0")}-${String(Lt==null?void 0:Lt.day_of_birth).padStart(2,"0")}`,gen:Gt,mobile:Lt==null?void 0:Lt.mobile,at:"",fn:(Lt==null?void 0:Lt.first_name)||"",mn:(Lt==null?void 0:Lt.middle_name)||"",ln:(Lt==null?void 0:Lt.last_name)||"","health-ids":Lt!=null&&Lt.abha_address?[Lt.abha_address]:void 0,abha_number:(Lt==null?void 0:Lt.abha_number)||""};if(Pt===ABHA_V3_SKIP_STATES.ABHA_END){if(Et==="doctor"&&gt===ABHA_INIT_FLOW.ABHA_KYC){if(setIndividualEnv({extraHeaders:{"X-Pt-Id":(Vt==null?void 0:Vt.oid)??""}}),Lt!=null&&Lt.kyc_verified){tt(SCREEN_NAMES.KYC_ALREADY_VERIFIED);return}pt(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),vt(!1),tt(SCREEN_NAMES.KYC_LOGIN_SCREEN);return}if(jt){if(ct({name:"abha_login_otp_verify_eka_app",data:{type:"verify",platform:Et,txn_id:o,skip_state:Pt,flow:gt}}),bt(LOADING_STATE.RESOLVED),!Vt){ct({name:"abha_login_otp_verify_eka_app_error",data:{type:"null_oid",platform:Et,txn_id:o||"missing_txn_id",txn_id_exists:!!o,eka:Vt||"missing_eka",eka_exists:!!Vt,skip_state:Pt||"missing_skip_state",skip_state_exists:!!Pt,flow:gt}}),bt(LOADING_STATE.REJECTED),xt("Something went wrong, please try again");return}const Zt=getMockAuthVerifyResponse(zt);if(ct({name:"abha_login_otp_verify_success",data:{type:"verify",platform:Et,txn_id:o,skip_state:Pt,method:et,flow:gt}}),gt===ABHA_INIT_FLOW.ABHA_REGISTRATION&&St==="abha-card"){tt(SCREEN_NAMES.ABHA_HEALTHID_CARD_SCREEN);return}if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Qt=window.EkaAbha)==null||Qt.onAbhaSuccess(JSON.stringify({response:Zt}));return}onAbhaSuccess({response:Zt}),unMount();return}if(!Vt||!Vt.min_token||!a){ct({name:"abha_login_otp_verify_eka_error",data:{type:"verify",platform:Et,eka:Vt||"missing_eka",eka_exists:!!Vt,auth_txnId:a||"missing_auth_txnId",auth_txnId_exists:!!a,skip_state:Pt||"missing_skip_state",skip_state_exists:!!Pt,flow:gt}}),bt(LOADING_STATE.REJECTED),xt("Something went wrong, please try again");return}const tr=await Nt({code:Vt.min_token,idp_id:"eka_min_token",...Vt.oid?{oid:Vt.oid}:null});if(!tr.data){ct({name:"abha_login_otp_verify_auth_verify_error",data:{type:"verify",platform:Et,skip_state:Pt||"missing_skip_state",skip_state_exists:!!Pt,auth_verify_data_exists:!1,flow:gt}}),bt(LOADING_STATE.REJECTED),xt(((Kt=tr.error)==null?void 0:Kt.message)||"Something went wrong, please try again");return}ct({name:"abha_login_otp_verify_abha_end_success",data:{type:"verify",platform:Et,txn_id:o,skip_state:Pt,flow:gt}}),bt(LOADING_STATE.RESOLVED);return}if(Pt===ABHA_V3_SKIP_STATES.ABHA_SELECT&&Ht.length>0){ct({name:"abha_login_otp_verify_abha_select",data:{type:"verify",platform:Et,flow:gt}}),tt(SCREEN_NAMES.SELECT_ABHA_FROM_LIST),_(Ht);return}if(Pt===ABHA_V3_SKIP_STATES.ABHA_CREATE&&et===ABHA_AUTH_FLOW_METHOD.MOBILE){tt(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(Pt===ABHA_V3_SKIP_STATES.ABHA_CREATE){tt(SCREEN_NAMES.CREATE_ABHA_ADDRESS);return}if(jt){if(!Vt){ct({name:"abha_login_otp_verify_eka_failed",data:{type:"verify",platform:Et,txn_id:a||"missing_authTxnId",txn_id_exists:!!a,flow:gt}}),bt(LOADING_STATE.REJECTED),xt("Something went wrong, please try again");return}const tr=getMockAuthVerifyResponse(zt);if(bt(LOADING_STATE.RESOLVED),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Ut=window.EkaAbha)==null||Ut.onAbhaSuccess(JSON.stringify({response:tr}));return}onAbhaSuccess({response:tr}),unMount();return}if(!Pt||!(Vt!=null&&Vt.min_token)){bt(LOADING_STATE.REJECTED),xt(Bt||"Something went wrong, please try again"),$t&&lt($t);return}if(Vt.min_token&&a){const tr=await Nt({code:Vt.min_token,idp_id:"eka_min_token",...Vt.oid?{oid:Vt.oid}:null});tr.data?ct({name:"abha_login_auth_verify_success",data:{platform:Et,txn_id:a,flow:gt}}):(ct({name:"abha_login_auth_verify_failed",data:{platform:Et,txn_id:a||"missing_authTxnId",txn_id_exists:!!a,error_message:((Jt=tr==null?void 0:tr.error)==null?void 0:Jt.message)||"unknown_error",error_message_exists:!!((ur=tr==null?void 0:tr.error)!=null&&ur.message),flow:gt}}),bt(LOADING_STATE.REJECTED),xt(((ir=tr.error)==null?void 0:ir.message)||"Something went wrong, please try again"))}bt(LOADING_STATE.RESOLVED)},Dt=async()=>{if(_e&&et){const{txn_id:kt}=await postAbdmLoginInit({method:et,identifier:_e});ct({name:"abha_login_verify_resend_otp",data:{method:et,platform:Et,txn_id:kt,flow:gt}}),kt&&st(kt)}};return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-base",children:[jsxRuntimeExports.jsx(Pds2Header,{prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:()=>ft(!0),children:jsxRuntimeExports.jsx(n$3,{className:""})}),title:"OTP Verification",className:"pds2-border-b-1 pds2-border-surface-muted"}),gt==null||gt===ABHA_INIT_FLOW.ABHA_REGISTRATION?jsxRuntimeExports.jsx(AbhaStepper,{}):jsxRuntimeExports.jsx("div",{className:"pds2-pt-40 pds2-bg-surface-subtle"}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-space-y-16 pds2-overflow-y-auto pds2-flex-1 pds2-bg-surface-subtle",children:jsxRuntimeExports.jsx(AbhaOtpCard,{otpSentToText:$||"Enter OTP sent on mobile number linked with your Aadhaar",onOtpCompletion:Rt,onResendOtpClick:Dt,error:At,setIsValid:kt=>{At&&xt(null),_t(kt)},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-surface-base pds2-w-full pds2-border pds2-border-surface-muted",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Verify",state:!yt||wt===LOADING_STATE.LOADING?"disabled":"enabled",className:"pds2-w-full",onClick:()=>Tt(nt),isLoading:wt===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:mt}),jsxRuntimeExports.jsx(ExitPopup,{open:at,setOpen:ft})]})},AbhaMobileLinkingStatusScreen=()=>{const a=useAuthAbhaStore(vt=>vt.aadhaarVerificationSkipStateStatus),o=useAuthAbhaStore(vt=>vt.authTxnId),_=useAuthAbhaStore(vt=>vt.ekaSmallToken),b=useAuthAbhaStore(vt=>vt.oid),$=useAuthAbhaStore(vt=>vt.setScreen),[_e,et]=reactExports.useState(!0),tt=useAuthAbhaStore(vt=>vt.setEkaProfileInfo),rt=useAuthAbhaStore(vt=>vt.clientId),st=useAuthAbhaStore(vt=>vt.initAbhaFlow),it=useAuthAbhaStore(vt=>vt.isEkaAppLogin),lt=useAuthAbhaStore(vt=>vt.ekaProfileInfo),at=["M","F","O","U"],ft=reactExports.useRef(!1),ht=useAuthAbhaStore(vt=>vt.txnId),pt=useTrackAbhaEvent();return reactExports.useEffect(()=>{const vt=new Promise(ot=>{setTimeout(()=>{ot(et(!1))},500)});pt({name:"page_view",data:{page_view:"mobile_verified_successful",platform:rt,flow:st}});async function ut(){await vt,setTimeout(async()=>{var ot,nt,dt,yt,_t,At,xt;if(a===ABHA_V3_SKIP_STATES.ABHA_CREATE||a===ABHA_V3_SKIP_STATES.ABHA_END){if(pt({name:"abha_create_mobile_initiate",data:{platform:rt,oid_received:b,txn_id:ht,skip_state:a,flow:st}}),b&&!ft.current){const bt=await getProfilesPatient();ft.current=!0,bt&&tt({date_of_birth:bt.dob,firstname:bt.fn,lastname:bt.ln,pincode:"",gender:bt.gen,oid:bt==null?void 0:bt.oid,middlename:bt==null?void 0:bt.mn,abha_address:(ot=bt==null?void 0:bt["health-ids"])==null?void 0:ot[0],abha_number:bt==null?void 0:bt.abha_number,kyc_verified:bt==null?void 0:bt.kyc_verified})}if(it&&a===ABHA_V3_SKIP_STATES.ABHA_END&&b){const bt=at.includes(lt==null?void 0:lt.gender)?lt==null?void 0:lt.gender:void 0,It={oid:(lt==null?void 0:lt.oid)||"",fln:(lt==null?void 0:lt.name)||"",dob:lt==null?void 0:lt.date_of_birth,gen:bt,mobile:lt==null?void 0:lt.mobile,at:"",fn:(lt==null?void 0:lt.firstname)||"",mn:(lt==null?void 0:lt.middlename)||"",ln:(lt==null?void 0:lt.lastname)||"","health-ids":lt!=null&&lt.abha_address?[lt.abha_address]:void 0,abha_number:(lt==null?void 0:lt.abha_number)||""};pt({name:"abha_mobile_linking_success",data:{type:"unmount",isEkaAppLogin:it,skip_state:a,flow:st}});const Nt=getMockAuthVerifyResponse(It);if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(nt=window.EkaAbha)==null||nt.onAbhaSuccess(JSON.stringify({response:Nt}));return}onAbhaSuccess({response:Nt}),unMount();return}if(it&&a===ABHA_V3_SKIP_STATES.ABHA_CREATE){pt({name:"navigate_to_screen",data:{destination:"create_eka_profile",reason:"abha_create_from_mobile_flow",flow:st}}),$(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(!o||!_){pt({name:"authTxnId_or_minToken_not_found",data:{platform:rt,type:"error",auth_txnId:o||"missing_authTxnId",auth_txnId_exists:!!o,ekaSmallToken_exists:!!_,flow:st}});return}const wt=await postAuthVerifyV3({code:_,idp_id:"eka_min_token"});if(wt.data){if(setIndividualEnv({extraHeaders:{auth:(dt=wt.data)==null?void 0:dt.tokens.sess}}),setRefreshToken((yt=wt.data)==null?void 0:yt.tokens.refresh),a===ABHA_V3_SKIP_STATES.ABHA_END){const bt=await getPatientData(b),It={...wt,data:{...wt.data??{},profile:bt}};if(b){if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(_t=window.EkaAbha)==null||_t.onAbhaSuccess(JSON.stringify({response:It}));return}onAbhaSuccess({response:It}),unMount();return}setIndividualEnv({extraHeaders:{auth:(At=wt.data)==null?void 0:At.tokens.sess}}),pt({name:"navigate_to_screen",data:{destination:"get_all_profiles",reason:"abha_end_with_no_oid",flow:st}}),$(SCREEN_NAMES.GET_ALL_PROFILES);return}setIndividualEnv({extraHeaders:{auth:(xt=wt.data)==null?void 0:xt.tokens.sess}}),pt({name:"navigate_to_screen",data:{destination:"get_all_profiles",reason:"auth_verify_success",flow:st}}),$(SCREEN_NAMES.GET_ALL_PROFILES);return}}},2e3)}ut()},[]),jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:_e,loadingText:"Verifying...",successText:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Successfully linked mobile",jsxRuntimeExports.jsx("br",{}),"number with ABHA!"]})})},AbhaOtpAndMobileScreen=()=>{var $t;const a=useAuthAbhaStore(Vt=>Vt.setAbhaAddressList),o=useAuthAbhaStore(Vt=>Vt.setScreen),_=useAuthAbhaStore(Vt=>Vt.identifierValue),b=useAuthAbhaStore(Vt=>Vt.txnId),$=useAuthAbhaStore(Vt=>Vt.setTxnId),_e=useAuthAbhaStore(Vt=>Vt.aadhaarOtpSentToHint),et=useAuthAbhaStore(Vt=>Vt.setAadhaarVerificationSkipStateStatus),tt=useAuthAbhaStore(Vt=>Vt.setEkaSmallToken),rt=useAuthAbhaStore(Vt=>Vt.setOTPFromAutoRead),st=useAuthAbhaStore(Vt=>Vt.setOid),it=useAuthAbhaStore(Vt=>Vt.clearAbhaAuthStore),lt=useAuthAbhaStore(Vt=>Vt.setBottomsheetErrorInfo),at=useAuthAbhaStore(Vt=>Vt.goBackLoginScreen),ft=useAuthAbhaStore(Vt=>Vt.goBackScreen),ht=useAuthAbhaStore(Vt=>Vt.isDocAppRequest),pt=useAuthAbhaStore(Vt=>Vt.setEkaProfileInfo),vt=useAuthAbhaStore(Vt=>Vt.ekaProfileInfo),[ut,ot]=reactExports.useState(""),[nt,dt]=reactExports.useState(!1),[yt,_t]=reactExports.useState(_!=null&&_.mobile&&(_==null?void 0:_.mobile.length)===10?_.mobile:vt!=null&&vt.mobile&&(vt==null?void 0:vt.mobile.length)===10?vt.mobile:""),[At,xt]=reactExports.useState(null),[wt,bt]=reactExports.useState(null),[It,Nt]=reactExports.useState(!0),[Ct,jt]=reactExports.useState(!0),[Et,gt]=reactExports.useState(LOADING_STATE.IDLE),St=useAuthAbhaStore(Vt=>Vt.setSelectedAbhaAddress),ct=useAuthAbhaStore(Vt=>Vt.initAbhaAppMobileNumber),mt=useAuthAbhaStore(Vt=>Vt.clientId);useAuthAbhaStore(Vt=>Vt.isEkaAppLogin);const Rt=useAuthAbhaStore(Vt=>Vt.initAbhaFlow);useAuthAbhaStore(Vt=>Vt.abhaAuthFlowMethod);const Tt=useTrackAbhaEvent();reactExports.useEffect(()=>{Tt({name:"abha_otp_and_mobile_screen",data:{flow:Rt}}),handleReadOTP()},[]),reactExports.useEffect(()=>{ct&&_t(ct)},[ct]);const Dt=({otp:Vt})=>{Tt({name:"abha_aadhaar_otp_enter_clicks",data:{page_view:"aadhaar_verification",platform:mt,otp_entered:!0,flow:Rt}}),ot(Vt)},kt=({mobileNumber:Vt})=>{wt||xt(null),_t(Vt),Tt({name:"abha_aadhaar_mobile_otp_enter",data:{page_view:"aadhaar_verification",platform:mt,flow:Rt}})},Ht=async()=>{if(!b){Tt({name:"aadhaar_otp_resend_clicked_no_txnId",data:{platform:mt,txn_id:b||"missing_txnId",txn_id_exists:!!b,flow:Rt}});return}const{txn_id:Vt,error:Gt,action:zt}=await postRegisterAadhaarResendOtp({txn_id:b});if(!Vt){Tt({name:"aadhaar_otp_resend_failed",data:{platform:mt,reason:Gt||"no_txn_id",reason_exists:!!Gt,flow:Rt}}),xt(Gt||"Something went wrong, please try again"),zt&&lt(zt);return}Tt({name:"aadhaar_otp_resend_success",data:{platform:mt,txn_id:Vt,flow:Rt}}),$(Vt)},Pt=async()=>{if(rt(""),!b){Tt({name:"aadhaar_otp_verification_no_txnId",data:{platform:mt,type:"verify",txn_id:b||"missing_txnId",txn_id_exists:!!b,flow:Rt}});return}Tt({name:"abha_aadhaar_otp_verify_submitted",data:{platform:mt,type:"verify",flow:Rt}}),gt(LOADING_STATE.LOADING);const{txn_id:Vt,skip_state:Gt,profile:zt,eka:Qt,error:Kt,abha_profiles:Ut,source_error:Jt,action:ur}=await postRegisterAadhaarVerify({otp:ut,mobile:yt,txn_id:b});if(!Vt||!Gt){Tt({name:"aadhaar_otp_verification_failed",data:{platform:mt,reason:Kt||"missing_txn_id_or_skip_state",txn_id_exists:!!Vt,skip_state_exists:!!Gt,flow:Rt}}),gt(LOADING_STATE.REJECTED),bt(Jt??null),xt(Kt||"Something went wrong, please try again"),ur&&lt(ur);return}Tt({name:"aadhaar_otp_verification_success",data:{platform:mt,skip_state:Gt,oid:Qt==null?void 0:Qt.oid,flow:Rt}}),gt(LOADING_STATE.RESOLVED),et(Gt),Qt!=null&&Qt.min_token&&tt(Qt.min_token),zt&&zt.abha_address&&St(zt.abha_address),Qt!=null&&Qt.oid&&st(Qt.oid),zt&&pt({date_of_birth:`${zt.year_of_birth}-${String(zt.month_of_birth).padStart(2,"0")}-${String(zt.day_of_birth).padStart(2,"0")}`,firstname:zt.first_name,lastname:zt.last_name,pincode:zt.pincode,gender:zt.gender,name:zt.first_name+" "+zt.last_name,mobile:zt.mobile,oid:Qt==null?void 0:Qt.oid,abha_address:zt.abha_address,abha_number:zt.abha_number,kyc_verified:zt==null?void 0:zt.kyc_verified}),Tt({name:"abha_aadhaar_otp_verification_success",data:{platform:mt,skip_state:Gt,oid:Qt==null?void 0:Qt.oid,flow:Rt}}),Ut&&a(Ut),o(SCREEN_NAMES.AADHAAR_VERIFICATION_STATUS)},Lt=()=>{o(SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR);const Vt=useAuthAbhaStore.getState().isEkaAppLogin,Gt=mt;it(),useAuthAbhaStore.setState({clientId:Gt}),useAuthAbhaStore.setState({isEkaAppLogin:Vt})},Bt=nt&&yt.length===10&&It&&Ct;return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-subtle",children:[jsxRuntimeExports.jsx(Pds2Header,{prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:Rt?ft:at,children:jsxRuntimeExports.jsx(n$3,{className:""})}),title:"Create ABHA",className:"pds2-border-b-1 pds2-border-surface-muted"}),Rt==null||Rt===ABHA_INIT_FLOW.ABHA_REGISTRATION?jsxRuntimeExports.jsx(AbhaStepper,{}):jsxRuntimeExports.jsx("div",{className:"pds2-pt-40 pds2-bg-surface-subtle"}),jsxRuntimeExports.jsxs("div",{className:"pds2-px-16 pds2-pb-16 pds2-space-y-12 pds2-overflow-y-auto pds2-flex-1 pds2-bg-surface-subtle",children:[jsxRuntimeExports.jsx(AbhaOtpCard,{otpSentToText:_e||"Enter OTP sent on mobile number linked with your Aadhaar",onOtpCompletion:Dt,onResendOtpClick:Ht,setIsValid:dt,error:wt?At:null,setError:xt}),jsxRuntimeExports.jsx(EnterMobileNumberCard$1,{mobileNumber:yt,disabled:!ht&&(($t=_==null?void 0:_.mobile)==null?void 0:$t.length)===10,onMobileNumberChange:kt,isOtpValid:nt,error:wt?null:At,onKeyDown:({key:Vt})=>{Vt==="Enter"&&Pt()}}),jsxRuntimeExports.jsx("div",{className:"pds2-space-y-8",children:jsxRuntimeExports.jsxs("div",{className:"Body2Regular pds2-flex pds2-items-center pds2-gap-5 pds2-px-5 pds2-space-x-8 pds2-text-content-secondary",children:[jsxRuntimeExports.jsx(h$3,{className:"pds2-w-14 pds2-h-14 pds2-text-content-muted"}),jsxRuntimeExports.jsx("span",{children:`Allow Eka Care to ${ht?"":"create ABHA locker and"} link health data`})]})})]}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-sticky pds2-bottom-0 pds2-bg-surface-base pds2-w-full pds2-border pds2-border-surface-muted",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Verify",state:!Bt||Et===LOADING_STATE.LOADING?"disabled":"enabled",className:"pds2-w-full",onClick:Pt,isLoading:Et===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:Lt})]})},EnterMobileNumberCard$1=({mobileNumber:a,disabled:o,onMobileNumberChange:_,isOtpValid:b,onKeyDown:$,error:_e})=>{const et=GET_EXTRA_HEADERS(),tt=(et==null?void 0:et["X-User-ID"])??void 0,rt=useAuthAbhaStore(at=>at.isDocAppRequest),st=reactExports.useRef(null);reactExports.useEffect(()=>{st.current&&b&&st.current.focus()},[b]);const it=useAuthAbhaStore(at=>at.abhaAuthFlowMethod),lt=useAuthAbhaStore(at=>at.initAbhaAppMobileNumber);return lt&&(a=lt),ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,jsxRuntimeExports.jsxs(CustomCardLayout$1,{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-content-primary pds2-flex-1",children:["Enter ",rt?"the patient's":"your"," mobile number to link with ABHA"," ",jsxRuntimeExports.jsx("sup",{className:"pds2-text-semantic-error Body3Semibold",children:"*"})]}),jsxRuntimeExports.jsx(n$1,{className:"pds2-w-48 pds2-h-48 pds2-text-semantic-success pds2-p-6"})]}),jsxRuntimeExports.jsxs("label",{className:`pds2-relative pds2-border pds2-rounded-12 ${_e?"pds2-border-semantic-error focus-within:pds2-border-semantic-error ":"pds2-border-surface-muted focus-within:pds2-border-primary-brand"}`,children:[jsxRuntimeExports.jsx("span",{className:"Body1Regular pds2-absolute pds2-left-16 pds2-top-1/2 pds2-transform pds2--translate-y-1/2 pds2-text-content-primary",children:"+91 -"}),jsxRuntimeExports.jsx("input",{ref:st,placeholder:"Mobile Number",type:"tel",name:"phone",autoComplete:"tel",inputMode:"numeric",defaultValue:a,disabled:o,pattern:"[0-9]*",onChange:at=>{const ft=at.target.value.replace(/\D/g,"").slice(-10);at.target.value=ft,_({mobileNumber:ft})},className:"Body1Regular pds2-w-full pds2-pl-60 pds2-pr-12 pds2-py-12 pds2-rounded-12 pds2-outline-none pds2-bg-surface-base",onKeyDown:$})]}),_e&&jsxRuntimeExports.jsx("div",{className:"Body3Semibold pds2-text-semantic-error",children:_e}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-items-center pds2-space-x-8 pds2-text-content-secondary"})]})},CustomCardLayout$1=({children:a,className:o="pds2-space-y-12"})=>jsxRuntimeExports.jsx("div",{className:`pds2-flex pds2-flex-col pds2-w-full pds2-p-16 pds2-rounded-16 pds2-bg-surface-base ${o}`,children:a}),AbhaPhoneNumberVerificationScreen=()=>{const a=useAuthAbhaStore(ct=>ct.txnId),o=useAuthAbhaStore(ct=>ct.clearAbhaAuthStore),_=useAuthAbhaStore(ct=>ct.setAbhaAuthFlowMethod),b=useAuthAbhaStore(ct=>ct.setIsInitApiTriggered),$=useAuthAbhaStore(ct=>ct.setIdentifierValue),_e=useAuthAbhaStore(ct=>ct.setBottomsheetErrorInfo),et=useAuthAbhaStore(ct=>ct.setEkaSmallToken),tt=useAuthAbhaStore(ct=>ct.setOid),rt=useAuthAbhaStore(ct=>ct.setOTPFromAutoRead),st=useAuthAbhaStore(ct=>ct.setAadhaarVerificationSkipStateStatus),it=useAuthAbhaStore(ct=>ct.setSelectedAbhaAddress),lt=useAuthAbhaStore(ct=>ct.setAbhaAddressList),at=useAuthAbhaStore(ct=>ct.setScreen),ft=useAuthAbhaStore(ct=>ct.abhaAuthFlowMethod),[ht,pt]=reactExports.useState(""),[vt,ut]=reactExports.useState(!1),[ot,nt]=reactExports.useState(""),[dt,yt]=reactExports.useState(LOADING_STATE.IDLE),_t=useAuthAbhaStore(ct=>ct.setTxnId),At=useAuthAbhaStore(ct=>ct.setEkaProfileInfo),xt=useAuthAbhaStore(ct=>ct.clientId),wt=useAuthAbhaStore(ct=>ct.selectedAbhaFlow);useAuthAbhaStore(ct=>ct.isEkaAppLogin);const bt=useAuthAbhaStore(ct=>ct.initAbhaFlow),[It,Nt]=reactExports.useState(!1);console.log("selectedAbhaFlow is : ",wt);const Ct=useTrackAbhaEvent();reactExports.useEffect(()=>{Ct({name:"page_view",data:{page_view:"abha_mobile_otp_verify",platform:xt,flow:bt}})},[]);const jt=({otp:ct})=>{pt(ct),Ct({name:"abha_mobile_otp_completion",data:{platform:xt,type:"verify",otp_entered:!0,flow:bt}}),gt(ct)},Et=async()=>{if(!a){Ct({name:"abha_mobile_otp_resend_clicked_no_txnId",data:{type:"resend",platform:xt,txn_id:"missing_txnId",txn_id_exists:!1,flow:bt}});return}Ct({name:"abha_mobile_otp_verify_clicks",data:{type:"resend",platform:xt,flow:bt}}),console.log("selectedMethod",ft);let ct;wt==="mobile"?(Ct({name:"abha_mobile_otp_resend_initiated",data:{platform:xt,type:"verify",flow_type:wt,flow:bt}}),console.log("selectedFlow is mobile, so triggering mobile resend otp api",wt),ct=await postAbdmRegisterMobileResendOtp({txn_id:a})):(Ct({name:"aadhaar_mobile_otp_resend_initiated",data:{platform:xt,type:"verify",flow_type:wt,flow:bt}}),console.log("selectedFlow is aadhaar, so triggering aadhaar resend otp api",wt),ct=await postRegisterAadhaarMobileResendOtp({txn_id:a}));const{txn_id:mt,error:Rt,action:Tt}=ct;if(!mt){Ct({name:"abha_mobile_otp_resend_failed",data:{platform:xt,reason:Rt||"no_txn_id",reason_exists:!!Rt,flow:bt}}),nt(Rt||"Something went wrong, please try again"),Tt&&_e(Tt);return}mt&&_t(mt),Ct({name:"abha_mobile_otp_resend_success",data:{platform:xt,txn_id:mt,flow:bt}})},gt=async ct=>{if(rt(""),!a){Ct({name:"abha_mobile_verify_no_txnId",data:{type:"verify",platform:xt,txn_id:"missing_txnId",txn_id_exists:!1,flow:bt}});return}Ct({name:"abha_mobile_otp_submitted",data:{type:"verify",platform:xt,txn_id:a,flow:bt}}),yt(LOADING_STATE.LOADING);try{let mt;wt==="mobile"?(Ct({name:"abha_mobile_otp_verification_started",data:{platform:xt,flow_type:wt,flow:bt}}),mt=await postAbdmRegisterMobileVerify({otp:ct,txn_id:a})):(Ct({name:"aadhaar_otp_verification_started",data:{platform:xt,flow_type:wt,flow:bt}}),mt=await postRegisterAadhaarMobileVerify({otp:ct,txn_id:a}));const{txn_id:Rt,skip_state:Tt,eka:Dt,profile:kt,error:Ht,action:Pt,abha_profiles:Lt}=mt;if(!Rt||!Tt){Ct({name:"abha_mobile_otp_verification_failed",data:{platform:xt,reason:Ht||"missing_txn_id_or_skip_state",txn_id_exists:!!Rt,skip_state_exists:!!Tt,flow:bt}}),yt(LOADING_STATE.REJECTED),nt(Ht||"Something went wrong, please try again"),Pt&&_e(Pt);return}if(yt(LOADING_STATE.RESOLVED),st(Tt),Dt!=null&&Dt.min_token&&et(Dt.min_token),Dt!=null&&Dt.oid&&tt(Dt.oid),kt&&kt.abha_address&&it(kt.abha_address),kt&&At({date_of_birth:`${kt.year_of_birth}-${String(kt.month_of_birth).padStart(2,"0")}-${String(kt.day_of_birth).padStart(2,"0")}`,firstname:kt.first_name,lastname:kt.last_name,pincode:kt.pincode,gender:kt.gender,oid:Dt==null?void 0:Dt.oid,abha_address:kt==null?void 0:kt.abha_address,abha_number:kt==null?void 0:kt.abha_number,middlename:kt==null?void 0:kt.middle_name,kyc_verified:kt==null?void 0:kt.kyc_verified}),console.log("remove oid from set indvidual env"),Ct({name:"abha_mobile_otp_verification_success",data:{platform:xt,skip_state:Tt,flow:bt}}),kt!=null&&kt.abha_number&&bt===ABHA_INIT_FLOW.ABHA_KYC){b(!1),$({abha_number:kt==null?void 0:kt.abha_number}),setIndividualEnv({extraHeaders:{"X-Pt-Id":(Dt==null?void 0:Dt.oid)??""}}),_(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER),at(SCREEN_NAMES.KYC_LOGIN_SCREEN);return}if(Lt!=null&&Lt.length){lt(Lt),at(SCREEN_NAMES.SELECT_ABHA_FROM_LIST);return}at(SCREEN_NAMES.ABHA_MOBILE_LINKING_STATUS)}catch{Ct({name:"abha_mobile_otp_verification_exception",data:{platform:xt,reason:"exception_thrown",flow:bt}}),yt(LOADING_STATE.REJECTED),nt("Something went wrong, please try again")}},St=()=>{at(SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR);const ct=useAuthAbhaStore.getState().isEkaAppLogin,mt=xt;o(),useAuthAbhaStore.setState({clientId:mt}),useAuthAbhaStore.setState({isEkaAppLogin:ct})};return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-base",children:[jsxRuntimeExports.jsx(Pds2Header,{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$3,{className:""})}),title:"Phone Number Verification",className:"pds2-border-b-1 pds2-border-surface-muted"}),bt==null||bt===ABHA_INIT_FLOW.ABHA_REGISTRATION?jsxRuntimeExports.jsx(AbhaStepper,{}):jsxRuntimeExports.jsx("div",{className:"pds2-pt-40 pds2-bg-surface-subtle"}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-space-y-16 pds2-overflow-y-auto pds2-flex-1 pds2-bg-surface-subtle",children:jsxRuntimeExports.jsx(AbhaOtpCard,{otpSentToText:"Enter OTP received through ABDM to verify mobile number",onOtpCompletion:jt,onResendOtpClick:Et,error:ot,setIsValid:ct=>{ot&&nt(null),ut(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-surface-base pds2-w-full pds2-border pds2-border-surface-muted",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Verify",state:!vt||dt===LOADING_STATE.LOADING?"disabled":"enabled",className:"pds2-w-full",onClick:()=>gt(ht),isLoading:dt===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:St}),jsxRuntimeExports.jsx(ExitPopup,{open:It,setOpen:Nt})]})},usePostRegisterMobileCreatePhr=()=>{const a=useAuthAbhaStore(o=>o.setSelectedAbhaAddress);return useMutation({mutationFn:o=>postAbdmRegisterMobileCreatePhr(o),onSuccess(o){o.profile&&(queryClient.setQueryData(["abdmProfilePhrResponse"],o.profile),a(o.profile.abha_address))}})},AbhaAddressCard=({address:a,setAddress:o,suggestions:_})=>jsxRuntimeExports.jsxs(CustomCardLayout$1,{className:"pds2-space-y-24",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-12",children:[jsxRuntimeExports.jsx("div",{className:"DisplayBig pds2-text-primary-brand",children:"@"}),jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-4",children:[jsxRuntimeExports.jsx("div",{className:"pds2-text-content-primary Body1Regular",children:"Choose your ABHA Address"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-content-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-primary-brand BodyInputLabel",children:["ABHA Address",jsxRuntimeExports.jsx("sup",{className:"pds2-text-semantic-error Body3Semibold",children:" *"})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-relative pds2-text-content-primary Body1Semibold",children:[jsxRuntimeExports.jsx("input",{value:a,className:"pds2-py-4 pds2-bg-surface-neutral pds2-border-b-1 pds2-border-b-primary-brand pds2-w-full pds2-pr-16 pds2-outline-none",id:"abha-address",onChange:b=>{const $=b.target.value.replace(/[^a-zA-Z0-9]/g,"");$.length<=18&&o($)},autoCapitalize:"off",autoCorrect:"off"}),jsxRuntimeExports.jsx("span",{className:"pds2-text-content-secondary pds2-absolute pds2-right-0 pds2-top-1/2 pds2-transform pds2--translate-y-1/2 pds2-pointer-events-none",children:"@abdm"})]}),jsxRuntimeExports.jsx("div",{className:"pds2-py-6 pds2-text-content-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-content-muted 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(b=>jsxRuntimeExports.jsxs("label",{className:`
48
+ */var Matrix=function(){var a=Math.cos,o=Math.sin,_=Math.tan,b=Math.round;function $(){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 _e(ct){if(ct===0)return this;var mt=a(ct),Rt=o(ct);return this._t(mt,-Rt,0,0,Rt,mt,0,0,0,0,1,0,0,0,0,1)}function et(ct){if(ct===0)return this;var mt=a(ct),Rt=o(ct);return this._t(1,0,0,0,0,mt,-Rt,0,0,Rt,mt,0,0,0,0,1)}function tt(ct){if(ct===0)return this;var mt=a(ct),Rt=o(ct);return this._t(mt,0,Rt,0,0,1,0,0,-Rt,0,mt,0,0,0,0,1)}function rt(ct){if(ct===0)return this;var mt=a(ct),Rt=o(ct);return this._t(mt,-Rt,0,0,Rt,mt,0,0,0,0,1,0,0,0,0,1)}function st(ct,mt){return this._t(1,mt,ct,1,0,0)}function it(ct,mt){return this.shear(_(ct),_(mt))}function lt(ct,mt){var Rt=a(mt),kt=o(mt);return this._t(Rt,kt,0,0,-kt,Rt,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,_(ct),1,0,0,0,0,1,0,0,0,0,1)._t(Rt,-kt,0,0,kt,Rt,0,0,0,0,1,0,0,0,0,1)}function at(ct,mt,Rt){return!Rt&&Rt!==0&&(Rt=1),ct===1&&mt===1&&Rt===1?this:this._t(ct,0,0,0,0,mt,0,0,0,0,Rt,0,0,0,0,1)}function ft(ct,mt,Rt,kt,Dt,bt,Ht,Pt,Lt,Bt,$t,Vt,Gt,zt,Qt,Kt){return this.props[0]=ct,this.props[1]=mt,this.props[2]=Rt,this.props[3]=kt,this.props[4]=Dt,this.props[5]=bt,this.props[6]=Ht,this.props[7]=Pt,this.props[8]=Lt,this.props[9]=Bt,this.props[10]=$t,this.props[11]=Vt,this.props[12]=Gt,this.props[13]=zt,this.props[14]=Qt,this.props[15]=Kt,this}function ht(ct,mt,Rt){return Rt=Rt||0,ct!==0||mt!==0||Rt!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,ct,mt,Rt,1):this}function pt(ct,mt,Rt,kt,Dt,bt,Ht,Pt,Lt,Bt,$t,Vt,Gt,zt,Qt,Kt){var Ut=this.props;if(ct===1&&mt===0&&Rt===0&&kt===0&&Dt===0&&bt===1&&Ht===0&&Pt===0&&Lt===0&&Bt===0&&$t===1&&Vt===0)return Ut[12]=Ut[12]*ct+Ut[15]*Gt,Ut[13]=Ut[13]*bt+Ut[15]*zt,Ut[14]=Ut[14]*$t+Ut[15]*Qt,Ut[15]*=Kt,this._identityCalculated=!1,this;var Jt=Ut[0],ur=Ut[1],ir=Ut[2],tr=Ut[3],Zt=Ut[4],Xt=Ut[5],Mt=Ut[6],Ft=Ut[7],ar=Ut[8],qt=Ut[9],sr=Ut[10],cr=Ut[11],xr=Ut[12],pr=Ut[13],Or=Ut[14],gr=Ut[15];return Ut[0]=Jt*ct+ur*Dt+ir*Lt+tr*Gt,Ut[1]=Jt*mt+ur*bt+ir*Bt+tr*zt,Ut[2]=Jt*Rt+ur*Ht+ir*$t+tr*Qt,Ut[3]=Jt*kt+ur*Pt+ir*Vt+tr*Kt,Ut[4]=Zt*ct+Xt*Dt+Mt*Lt+Ft*Gt,Ut[5]=Zt*mt+Xt*bt+Mt*Bt+Ft*zt,Ut[6]=Zt*Rt+Xt*Ht+Mt*$t+Ft*Qt,Ut[7]=Zt*kt+Xt*Pt+Mt*Vt+Ft*Kt,Ut[8]=ar*ct+qt*Dt+sr*Lt+cr*Gt,Ut[9]=ar*mt+qt*bt+sr*Bt+cr*zt,Ut[10]=ar*Rt+qt*Ht+sr*$t+cr*Qt,Ut[11]=ar*kt+qt*Pt+sr*Vt+cr*Kt,Ut[12]=xr*ct+pr*Dt+Or*Lt+gr*Gt,Ut[13]=xr*mt+pr*bt+Or*Bt+gr*zt,Ut[14]=xr*Rt+pr*Ht+Or*$t+gr*Qt,Ut[15]=xr*kt+pr*Pt+Or*Vt+gr*Kt,this._identityCalculated=!1,this}function vt(ct){var mt=ct.props;return this.transform(mt[0],mt[1],mt[2],mt[3],mt[4],mt[5],mt[6],mt[7],mt[8],mt[9],mt[10],mt[11],mt[12],mt[13],mt[14],mt[15])}function ut(){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 ot(ct){for(var mt=0;mt<16;){if(ct.props[mt]!==this.props[mt])return!1;mt+=1}return!0}function nt(ct){var mt;for(mt=0;mt<16;mt+=1)ct.props[mt]=this.props[mt];return ct}function dt(ct){var mt;for(mt=0;mt<16;mt+=1)this.props[mt]=ct[mt]}function yt(ct,mt,Rt){return{x:ct*this.props[0]+mt*this.props[4]+Rt*this.props[8]+this.props[12],y:ct*this.props[1]+mt*this.props[5]+Rt*this.props[9]+this.props[13],z:ct*this.props[2]+mt*this.props[6]+Rt*this.props[10]+this.props[14]}}function _t(ct,mt,Rt){return ct*this.props[0]+mt*this.props[4]+Rt*this.props[8]+this.props[12]}function At(ct,mt,Rt){return ct*this.props[1]+mt*this.props[5]+Rt*this.props[9]+this.props[13]}function xt(ct,mt,Rt){return ct*this.props[2]+mt*this.props[6]+Rt*this.props[10]+this.props[14]}function wt(){var ct=this.props[0]*this.props[5]-this.props[1]*this.props[4],mt=this.props[5]/ct,Rt=-this.props[1]/ct,kt=-this.props[4]/ct,Dt=this.props[0]/ct,bt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/ct,Ht=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/ct,Pt=new Matrix;return Pt.props[0]=mt,Pt.props[1]=Rt,Pt.props[4]=kt,Pt.props[5]=Dt,Pt.props[12]=bt,Pt.props[13]=Ht,Pt}function Tt(ct){var mt=this.getInverseMatrix();return mt.applyToPointArray(ct[0],ct[1],ct[2]||0)}function It(ct){var mt,Rt=ct.length,kt=[];for(mt=0;mt<Rt;mt+=1)kt[mt]=Tt(ct[mt]);return kt}function Nt(ct,mt,Rt){var kt=createTypedArray("float32",6);if(this.isIdentity())kt[0]=ct[0],kt[1]=ct[1],kt[2]=mt[0],kt[3]=mt[1],kt[4]=Rt[0],kt[5]=Rt[1];else{var Dt=this.props[0],bt=this.props[1],Ht=this.props[4],Pt=this.props[5],Lt=this.props[12],Bt=this.props[13];kt[0]=ct[0]*Dt+ct[1]*Ht+Lt,kt[1]=ct[0]*bt+ct[1]*Pt+Bt,kt[2]=mt[0]*Dt+mt[1]*Ht+Lt,kt[3]=mt[0]*bt+mt[1]*Pt+Bt,kt[4]=Rt[0]*Dt+Rt[1]*Ht+Lt,kt[5]=Rt[0]*bt+Rt[1]*Pt+Bt}return kt}function Ct(ct,mt,Rt){var kt;return this.isIdentity()?kt=[ct,mt,Rt]:kt=[ct*this.props[0]+mt*this.props[4]+Rt*this.props[8]+this.props[12],ct*this.props[1]+mt*this.props[5]+Rt*this.props[9]+this.props[13],ct*this.props[2]+mt*this.props[6]+Rt*this.props[10]+this.props[14]],kt}function jt(ct,mt){if(this.isIdentity())return ct+","+mt;var Rt=this.props;return Math.round((ct*Rt[0]+mt*Rt[4]+Rt[12])*100)/100+","+Math.round((ct*Rt[1]+mt*Rt[5]+Rt[13])*100)/100}function Et(){for(var ct=0,mt=this.props,Rt="matrix3d(",kt=1e4;ct<16;)Rt+=b(mt[ct]*kt)/kt,Rt+=ct===15?")":",",ct+=1;return Rt}function gt(ct){var mt=1e4;return ct<1e-6&&ct>0||ct>-1e-6&&ct<0?b(ct*mt)/mt:ct}function St(){var ct=this.props,mt=gt(ct[0]),Rt=gt(ct[1]),kt=gt(ct[4]),Dt=gt(ct[5]),bt=gt(ct[12]),Ht=gt(ct[13]);return"matrix("+mt+","+Rt+","+kt+","+Dt+","+bt+","+Ht+")"}return function(){this.reset=$,this.rotate=_e,this.rotateX=et,this.rotateY=tt,this.rotateZ=rt,this.skew=it,this.skewFromAxis=lt,this.shear=st,this.scale=at,this.setTransform=ft,this.translate=ht,this.transform=pt,this.multiply=vt,this.applyToPoint=yt,this.applyToX=_t,this.applyToY=At,this.applyToZ=xt,this.applyToPointArray=Ct,this.applyToTriplePoints=Nt,this.applyToPointStringified=jt,this.toCSS=Et,this.to2dCSS=St,this.clone=nt,this.cloneFromProps=dt,this.equals=ot,this.inversePoints=It,this.inversePoint=Tt,this.getInverseMatrix=wt,this._t=this.transform,this.isIdentity=ut,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(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_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,o){a==="expressions"&&setExpressionsPlugin(o)}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 o=queryString.split("&"),_=0;_<o.length;_+=1){var b=o[_].split("=");if(decodeURIComponent(b[0])==a)return decodeURIComponent(b[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={},o={};a.registerModifier=_,a.getModifier=b;function _($,_e){o[$]||(o[$]=_e)}function b($,_e,et){return new o[$](_e,et)}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 o={shape:a.sh,data:a,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(o),this.addShapeToModifier(o),this._isAnimated&&a.setAsAnimated()}},ShapeModifier.prototype.init=function(a,o){this.shapes=[],this.elem=a,this.initDynamicPropertyContainer(a),this.initModifierProperties(a,o),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,o){this.s=PropertyFactory.getProp(a,o.s,0,.01,this),this.e=PropertyFactory.getProp(a,o.e,0,.01,this),this.o=PropertyFactory.getProp(a,o.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=o.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,o,_,b,$){var _e=[];o<=1?_e.push({s:a,e:o}):a>=1?_e.push({s:a-1,e:o-1}):(_e.push({s:a,e:1}),_e.push({s:0,e:o-1}));var et=[],tt,rt=_e.length,st;for(tt=0;tt<rt;tt+=1)if(st=_e[tt],!(st.e*$<b||st.s*$>b+_)){var it,lt;st.s*$<=b?it=0:it=(st.s*$-b)/_,st.e*$>=b+_?lt=1:lt=(st.e*$-b)/_,et.push([it,lt])}return et.length||et.push([0,0]),et},TrimModifier.prototype.releasePathsData=function(a){var o,_=a.length;for(o=0;o<_;o+=1)segmentsLengthPool.release(a[o]);return a.length=0,a},TrimModifier.prototype.processShapes=function(a){var o,_;if(this._mdf||a){var b=this.o.v%360/360;if(b<0&&(b+=1),this.s.v>1?o=1+b:this.s.v<0?o=0+b:o=this.s.v+b,this.e.v>1?_=1+b:this.e.v<0?_=0+b:_=this.e.v+b,o>_){var $=o;o=_,_=$}o=Math.round(o*1e4)*1e-4,_=Math.round(_*1e4)*1e-4,this.sValue=o,this.eValue=_}else o=this.sValue,_=this.eValue;var _e,et,tt=this.shapes.length,rt,st,it,lt,at,ft=0;if(_===o)for(et=0;et<tt;et+=1)this.shapes[et].localShapeCollection.releaseShapes(),this.shapes[et].shape._mdf=!0,this.shapes[et].shape.paths=this.shapes[et].localShapeCollection,this._mdf&&(this.shapes[et].pathsData.length=0);else if(_===1&&o===0||_===0&&o===1){if(this._mdf)for(et=0;et<tt;et+=1)this.shapes[et].pathsData.length=0,this.shapes[et].shape._mdf=!0}else{var ht=[],pt,vt;for(et=0;et<tt;et+=1)if(pt=this.shapes[et],!pt.shape._mdf&&!this._mdf&&!a&&this.m!==2)pt.shape.paths=pt.localShapeCollection;else{if(_e=pt.shape.paths,st=_e._length,at=0,!pt.shape._mdf&&pt.pathsData.length)at=pt.totalShapeLength;else{for(it=this.releasePathsData(pt.pathsData),rt=0;rt<st;rt+=1)lt=bez.getSegmentsLength(_e.shapes[rt]),it.push(lt),at+=lt.totalLength;pt.totalShapeLength=at,pt.pathsData=it}ft+=at,pt.shape._mdf=!0}var ut=o,ot=_,nt=0,dt;for(et=tt-1;et>=0;et-=1)if(pt=this.shapes[et],pt.shape._mdf){for(vt=pt.localShapeCollection,vt.releaseShapes(),this.m===2&&tt>1?(dt=this.calculateShapeEdges(o,_,pt.totalShapeLength,nt,ft),nt+=pt.totalShapeLength):dt=[[ut,ot]],st=dt.length,rt=0;rt<st;rt+=1){ut=dt[rt][0],ot=dt[rt][1],ht.length=0,ot<=1?ht.push({s:pt.totalShapeLength*ut,e:pt.totalShapeLength*ot}):ut>=1?ht.push({s:pt.totalShapeLength*(ut-1),e:pt.totalShapeLength*(ot-1)}):(ht.push({s:pt.totalShapeLength*ut,e:pt.totalShapeLength}),ht.push({s:0,e:pt.totalShapeLength*(ot-1)}));var yt=this.addShapes(pt,ht[0]);if(ht[0].s!==ht[0].e){if(ht.length>1){var _t=pt.shape.paths.shapes[pt.shape.paths._length-1];if(_t.c){var At=yt.pop();this.addPaths(yt,vt),yt=this.addShapes(pt,ht[1],At)}else this.addPaths(yt,vt),yt=this.addShapes(pt,ht[1])}this.addPaths(yt,vt)}}pt.shape.paths=vt}}},TrimModifier.prototype.addPaths=function(a,o){var _,b=a.length;for(_=0;_<b;_+=1)o.addShape(a[_])},TrimModifier.prototype.addSegment=function(a,o,_,b,$,_e,et){$.setXYAt(o[0],o[1],"o",_e),$.setXYAt(_[0],_[1],"i",_e+1),et&&$.setXYAt(a[0],a[1],"v",_e),$.setXYAt(b[0],b[1],"v",_e+1)},TrimModifier.prototype.addSegmentFromArray=function(a,o,_,b){o.setXYAt(a[1],a[5],"o",_),o.setXYAt(a[2],a[6],"i",_+1),b&&o.setXYAt(a[0],a[4],"v",_),o.setXYAt(a[3],a[7],"v",_+1)},TrimModifier.prototype.addShapes=function(a,o,_){var b=a.pathsData,$=a.shape.paths.shapes,_e,et=a.shape.paths._length,tt,rt,st=0,it,lt,at,ft,ht=[],pt,vt=!0;for(_?(lt=_._length,pt=_._length):(_=shapePool.newElement(),lt=0,pt=0),ht.push(_),_e=0;_e<et;_e+=1){for(at=b[_e].lengths,_.c=$[_e].c,rt=$[_e].c?at.length:at.length+1,tt=1;tt<rt;tt+=1)if(it=at[tt-1],st+it.addedLength<o.s)st+=it.addedLength,_.c=!1;else if(st>o.e){_.c=!1;break}else o.s<=st&&o.e>=st+it.addedLength?(this.addSegment($[_e].v[tt-1],$[_e].o[tt-1],$[_e].i[tt],$[_e].v[tt],_,lt,vt),vt=!1):(ft=bez.getNewSegment($[_e].v[tt-1],$[_e].v[tt],$[_e].o[tt-1],$[_e].i[tt],(o.s-st)/it.addedLength,(o.e-st)/it.addedLength,at[tt-1]),this.addSegmentFromArray(ft,_,lt,vt),vt=!1,_.c=!1),st+=it.addedLength,lt+=1;if($[_e].c&&at.length){if(it=at[tt-1],st<=o.e){var ut=at[tt-1].addedLength;o.s<=st&&o.e>=st+ut?(this.addSegment($[_e].v[tt-1],$[_e].o[tt-1],$[_e].i[0],$[_e].v[0],_,lt,vt),vt=!1):(ft=bez.getNewSegment($[_e].v[tt-1],$[_e].v[0],$[_e].o[tt-1],$[_e].i[0],(o.s-st)/ut,(o.e-st)/ut,at[tt-1]),this.addSegmentFromArray(ft,_,lt,vt),vt=!1,_.c=!1)}else _.c=!1;st+=it.addedLength,lt+=1}if(_._length&&(_.setXYAt(_.v[pt][0],_.v[pt][1],"i",pt),_.setXYAt(_.v[_._length-1][0],_.v[_._length-1][1],"o",_._length-1)),st>o.e)break;_e<et-1&&(_=shapePool.newElement(),vt=!0,ht.push(_),lt=0)}return ht};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(a,o){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(a,o.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(a,o){var _=o/100,b=[0,0],$=a._length,_e=0;for(_e=0;_e<$;_e+=1)b[0]+=a.v[_e][0],b[1]+=a.v[_e][1];b[0]/=$,b[1]/=$;var et=shapePool.newElement();et.c=a.c;var tt,rt,st,it,lt,at;for(_e=0;_e<$;_e+=1)tt=a.v[_e][0]+(b[0]-a.v[_e][0])*_,rt=a.v[_e][1]+(b[1]-a.v[_e][1])*_,st=a.o[_e][0]+(b[0]-a.o[_e][0])*-_,it=a.o[_e][1]+(b[1]-a.o[_e][1])*-_,lt=a.i[_e][0]+(b[0]-a.i[_e][0])*-_,at=a.i[_e][1]+(b[1]-a.i[_e][1])*-_,et.setTripleAt(tt,rt,st,it,lt,at,_e);return et},PuckerAndBloatModifier.prototype.processShapes=function(a){var o,_,b=this.shapes.length,$,_e,et=this.amount.v;if(et!==0){var tt,rt;for(_=0;_<b;_+=1){if(tt=this.shapes[_],rt=tt.localShapeCollection,!(!tt.shape._mdf&&!this._mdf&&!a))for(rt.releaseShapes(),tt.shape._mdf=!0,o=tt.shape.paths.shapes,_e=tt.shape.paths._length,$=0;$<_e;$+=1)rt.addShape(this.processPath(o[$],et));tt.shape.paths=tt.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var a=[0,0];function o(rt){var st=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||st,this.a&&rt.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&rt.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&rt.skewFromAxis(-this.sk.v,this.sa.v),this.r?rt.rotate(-this.r.v):rt.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?rt.translate(this.px.v,this.py.v,-this.pz.v):rt.translate(this.px.v,this.py.v,0):rt.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function _(rt){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||rt){var st;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 it,lt;if(st=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(it=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/st,0),lt=this.p.getValueAtTime(this.p.keyframes[0].t/st,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(it=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/st,0),lt=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/st,0)):(it=this.p.pv,lt=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/st,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){it=[],lt=[];var at=this.px,ft=this.py;at._caching.lastFrame+at.offsetTime<=at.keyframes[0].t?(it[0]=at.getValueAtTime((at.keyframes[0].t+.01)/st,0),it[1]=ft.getValueAtTime((ft.keyframes[0].t+.01)/st,0),lt[0]=at.getValueAtTime(at.keyframes[0].t/st,0),lt[1]=ft.getValueAtTime(ft.keyframes[0].t/st,0)):at._caching.lastFrame+at.offsetTime>=at.keyframes[at.keyframes.length-1].t?(it[0]=at.getValueAtTime(at.keyframes[at.keyframes.length-1].t/st,0),it[1]=ft.getValueAtTime(ft.keyframes[ft.keyframes.length-1].t/st,0),lt[0]=at.getValueAtTime((at.keyframes[at.keyframes.length-1].t-.01)/st,0),lt[1]=ft.getValueAtTime((ft.keyframes[ft.keyframes.length-1].t-.01)/st,0)):(it=[at.pv,ft.pv],lt[0]=at.getValueAtTime((at._caching.lastFrame+at.offsetTime-.01)/st,at.offsetTime),lt[1]=ft.getValueAtTime((ft._caching.lastFrame+ft.offsetTime-.01)/st,ft.offsetTime))}else lt=a,it=lt;this.v.rotate(-Math.atan2(it[1]-lt[1],it[0]-lt[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 b(){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 $(){}function _e(rt){this._addDynamicProperty(rt),this.elem.addDynamicProperty(rt),this._isDirty=!0}function et(rt,st,it){if(this.elem=rt,this.frameId=-1,this.propType="transform",this.data=st,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(it||rt),st.p&&st.p.s?(this.px=PropertyFactory.getProp(rt,st.p.x,0,0,this),this.py=PropertyFactory.getProp(rt,st.p.y,0,0,this),st.p.z&&(this.pz=PropertyFactory.getProp(rt,st.p.z,0,0,this))):this.p=PropertyFactory.getProp(rt,st.p||{k:[0,0,0]},1,0,this),st.rx){if(this.rx=PropertyFactory.getProp(rt,st.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(rt,st.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(rt,st.rz,0,degToRads,this),st.or.k[0].ti){var lt,at=st.or.k.length;for(lt=0;lt<at;lt+=1)st.or.k[lt].to=null,st.or.k[lt].ti=null}this.or=PropertyFactory.getProp(rt,st.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(rt,st.r||{k:0},0,degToRads,this);st.sk&&(this.sk=PropertyFactory.getProp(rt,st.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(rt,st.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(rt,st.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(rt,st.s||{k:[100,100,100]},1,.01,this),st.o?this.o=PropertyFactory.getProp(rt,st.o,0,.01,rt):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}et.prototype={applyToMatrix:o,getValue:_,precalculateMatrix:b,autoOrient:$},extendPrototype([DynamicPropertyContainer],et),et.prototype.addDynamicProperty=_e,et.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function tt(rt,st,it){return new et(rt,st,it)}return{getTransformProperty:tt}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(a,o){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(a,o.c,0,null,this),this.o=PropertyFactory.getProp(a,o.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(a,o.tr,this),this.so=PropertyFactory.getProp(a,o.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(a,o.tr.eo,0,.01,this),this.data=o,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,o,_,b,$,_e){var et=_e?-1:1,tt=b.s.v[0]+(1-b.s.v[0])*(1-$),rt=b.s.v[1]+(1-b.s.v[1])*(1-$);a.translate(b.p.v[0]*et*$,b.p.v[1]*et*$,b.p.v[2]),o.translate(-b.a.v[0],-b.a.v[1],b.a.v[2]),o.rotate(-b.r.v*et*$),o.translate(b.a.v[0],b.a.v[1],b.a.v[2]),_.translate(-b.a.v[0],-b.a.v[1],b.a.v[2]),_.scale(_e?1/tt:tt,_e?1/rt:rt),_.translate(b.a.v[0],b.a.v[1],b.a.v[2])},RepeaterModifier.prototype.init=function(a,o,_,b){for(this.elem=a,this.arr=o,this.pos=_,this.elemsData=b,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(a),this.initModifierProperties(a,o[_]);_>0;)_-=1,this._elements.unshift(o[_]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(a){var o,_=a.length;for(o=0;o<_;o+=1)a[o]._processed=!1,a[o].ty==="gr"&&this.resetElements(a[o].it)},RepeaterModifier.prototype.cloneElements=function(a){var o=JSON.parse(JSON.stringify(a));return this.resetElements(o),o},RepeaterModifier.prototype.changeGroupRender=function(a,o){var _,b=a.length;for(_=0;_<b;_+=1)a[_]._render=o,a[_].ty==="gr"&&this.changeGroupRender(a[_].it,o)},RepeaterModifier.prototype.processShapes=function(a){var o,_,b,$,_e,et=!1;if(this._mdf||a){var tt=Math.ceil(this.c.v);if(this._groups.length<tt){for(;this._groups.length<tt;){var rt={it:this.cloneElements(this._elements),ty:"gr"};rt.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,rt),this._groups.splice(0,0,rt),this._currentCopies+=1}this.elem.reloadShapes(),et=!0}_e=0;var st;for(b=0;b<=this._groups.length-1;b+=1){if(st=_e<tt,this._groups[b]._render=st,this.changeGroupRender(this._groups[b].it,st),!st){var it=this.elemsData[b].it,lt=it[it.length-1];lt.transform.op.v!==0?(lt.transform.op._mdf=!0,lt.transform.op.v=0):lt.transform.op._mdf=!1}_e+=1}this._currentCopies=tt;var at=this.o.v,ft=at%1,ht=at>0?Math.floor(at):Math.ceil(at),pt=this.pMatrix.props,vt=this.rMatrix.props,ut=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var ot=0;if(at>0){for(;ot<ht;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),ot+=1;ft&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,ft,!1),ot+=ft)}else if(at<0){for(;ot>ht;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),ot-=1;ft&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-ft,!0),ot-=ft)}b=this.data.m===1?0:this._currentCopies-1,$=this.data.m===1?1:-1,_e=this._currentCopies;for(var nt,dt;_e;){if(o=this.elemsData[b].it,_=o[o.length-1].transform.mProps.v.props,dt=_.length,o[o.length-1].transform.mProps._mdf=!0,o[o.length-1].transform.op._mdf=!0,o[o.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(b/(this._currentCopies-1)),ot!==0){for((b!==0&&$===1||b!==this._currentCopies-1&&$===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(vt[0],vt[1],vt[2],vt[3],vt[4],vt[5],vt[6],vt[7],vt[8],vt[9],vt[10],vt[11],vt[12],vt[13],vt[14],vt[15]),this.matrix.transform(ut[0],ut[1],ut[2],ut[3],ut[4],ut[5],ut[6],ut[7],ut[8],ut[9],ut[10],ut[11],ut[12],ut[13],ut[14],ut[15]),this.matrix.transform(pt[0],pt[1],pt[2],pt[3],pt[4],pt[5],pt[6],pt[7],pt[8],pt[9],pt[10],pt[11],pt[12],pt[13],pt[14],pt[15]),nt=0;nt<dt;nt+=1)_[nt]=this.matrix.props[nt];this.matrix.reset()}else for(this.matrix.reset(),nt=0;nt<dt;nt+=1)_[nt]=this.matrix.props[nt];ot+=1,_e-=1,b+=$}}else for(_e=this._currentCopies,b=0,$=1;_e;)o=this.elemsData[b].it,_=o[o.length-1].transform.mProps.v.props,o[o.length-1].transform.mProps._mdf=!1,o[o.length-1].transform.op._mdf=!1,_e-=1,b+=$;return et},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(a,o){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(a,o.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(a,o){var _=shapePool.newElement();_.c=a.c;var b,$=a._length,_e,et,tt,rt,st,it,lt=0,at,ft,ht,pt,vt,ut;for(b=0;b<$;b+=1)_e=a.v[b],tt=a.o[b],et=a.i[b],_e[0]===tt[0]&&_e[1]===tt[1]&&_e[0]===et[0]&&_e[1]===et[1]?(b===0||b===$-1)&&!a.c?(_.setTripleAt(_e[0],_e[1],tt[0],tt[1],et[0],et[1],lt),lt+=1):(b===0?rt=a.v[$-1]:rt=a.v[b-1],st=Math.sqrt(Math.pow(_e[0]-rt[0],2)+Math.pow(_e[1]-rt[1],2)),it=st?Math.min(st/2,o)/st:0,vt=_e[0]+(rt[0]-_e[0])*it,at=vt,ut=_e[1]-(_e[1]-rt[1])*it,ft=ut,ht=at-(at-_e[0])*roundCorner,pt=ft-(ft-_e[1])*roundCorner,_.setTripleAt(at,ft,ht,pt,vt,ut,lt),lt+=1,b===$-1?rt=a.v[0]:rt=a.v[b+1],st=Math.sqrt(Math.pow(_e[0]-rt[0],2)+Math.pow(_e[1]-rt[1],2)),it=st?Math.min(st/2,o)/st:0,ht=_e[0]+(rt[0]-_e[0])*it,at=ht,pt=_e[1]+(rt[1]-_e[1])*it,ft=pt,vt=at-(at-_e[0])*roundCorner,ut=ft-(ft-_e[1])*roundCorner,_.setTripleAt(at,ft,ht,pt,vt,ut,lt),lt+=1):(_.setTripleAt(a.v[b][0],a.v[b][1],a.o[b][0],a.o[b][1],a.i[b][0],a.i[b][1],lt),lt+=1);return _},RoundCornersModifier.prototype.processShapes=function(a){var o,_,b=this.shapes.length,$,_e,et=this.rd.v;if(et!==0){var tt,rt;for(_=0;_<b;_+=1){if(tt=this.shapes[_],rt=tt.localShapeCollection,!(!tt.shape._mdf&&!this._mdf&&!a))for(rt.releaseShapes(),tt.shape._mdf=!0,o=tt.shape.paths.shapes,_e=tt.shape.paths._length,$=0;$<_e;$+=1)rt.addShape(this.processPath(o[$],et));tt.shape.paths=tt.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(a,o){return Math.abs(a-o)*1e5<=Math.min(Math.abs(a),Math.abs(o))}function floatZero(a){return Math.abs(a)<=1e-5}function lerp(a,o,_){return a*(1-_)+o*_}function lerpPoint(a,o,_){return[lerp(a[0],o[0],_),lerp(a[1],o[1],_)]}function quadRoots(a,o,_){if(a===0)return[];var b=o*o-4*a*_;if(b<0)return[];var $=-o/(2*a);if(b===0)return[$];var _e=Math.sqrt(b)/(2*a);return[$-_e,$+_e]}function polynomialCoefficients(a,o,_,b){return[-a+3*o-3*_+b,3*a-6*o+3*_,-3*a+3*o,a]}function singlePoint(a){return new PolynomialBezier(a,a,a,a,!1)}function PolynomialBezier(a,o,_,b,$){$&&pointEqual(a,o)&&(o=lerpPoint(a,b,1/3)),$&&pointEqual(_,b)&&(_=lerpPoint(a,b,2/3));var _e=polynomialCoefficients(a[0],o[0],_[0],b[0]),et=polynomialCoefficients(a[1],o[1],_[1],b[1]);this.a=[_e[0],et[0]],this.b=[_e[1],et[1]],this.c=[_e[2],et[2]],this.d=[_e[3],et[3]],this.points=[a,o,_,b]}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 o=this.derivative(a);return Math.atan2(o[1],o[0])},PolynomialBezier.prototype.normalAngle=function(a){var o=this.derivative(a);return Math.atan2(o[0],o[1])},PolynomialBezier.prototype.inflectionPoints=function(){var a=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(a))return[];var o=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/a,_=o*o-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/a;if(_<0)return[];var b=Math.sqrt(_);return floatZero(b)?b>0&&b<1?[o]:[]:[o-b,o+b].filter(function($){return $>0&&$<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 o=lerpPoint(this.points[0],this.points[1],a),_=lerpPoint(this.points[1],this.points[2],a),b=lerpPoint(this.points[2],this.points[3],a),$=lerpPoint(o,_,a),_e=lerpPoint(_,b,a),et=lerpPoint($,_e,a);return[new PolynomialBezier(this.points[0],o,$,et,!0),new PolynomialBezier(et,_e,b,this.points[3],!0)]};function extrema(a,o){var _=a.points[0][o],b=a.points[a.points.length-1][o];if(_>b){var $=b;b=_,_=$}for(var _e=quadRoots(3*a.a[o],2*a.b[o],a.c[o]),et=0;et<_e.length;et+=1)if(_e[et]>0&&_e[et]<1){var tt=a.point(_e[et])[o];tt<_?_=tt:tt>b&&(b=tt)}return{min:_,max:b}}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,o,_){var b=a.boundingBox();return{cx:b.cx,cy:b.cy,width:b.width,height:b.height,bez:a,t:(o+_)/2,t1:o,t2:_}}function splitData(a){var o=a.bez.split(.5);return[intersectData(o[0],a.t1,a.t),intersectData(o[1],a.t,a.t2)]}function boxIntersect(a,o){return Math.abs(a.cx-o.cx)*2<a.width+o.width&&Math.abs(a.cy-o.cy)*2<a.height+o.height}function intersectsImpl(a,o,_,b,$,_e){if(boxIntersect(a,o)){if(_>=_e||a.width<=b&&a.height<=b&&o.width<=b&&o.height<=b){$.push([a.t,o.t]);return}var et=splitData(a),tt=splitData(o);intersectsImpl(et[0],tt[0],_+1,b,$,_e),intersectsImpl(et[0],tt[1],_+1,b,$,_e),intersectsImpl(et[1],tt[0],_+1,b,$,_e),intersectsImpl(et[1],tt[1],_+1,b,$,_e)}}PolynomialBezier.prototype.intersections=function(a,o,_){o===void 0&&(o=2),_===void 0&&(_=7);var b=[];return intersectsImpl(intersectData(this,0,1),intersectData(a,0,1),0,o,b,_),b},PolynomialBezier.shapeSegment=function(a,o){var _=(o+1)%a.length();return new PolynomialBezier(a.v[o],a.o[o],a.i[_],a.v[_],!0)},PolynomialBezier.shapeSegmentInverted=function(a,o){var _=(o+1)%a.length();return new PolynomialBezier(a.v[_],a.i[_],a.o[o],a.v[o],!0)};function crossProduct(a,o){return[a[1]*o[2]-a[2]*o[1],a[2]*o[0]-a[0]*o[2],a[0]*o[1]-a[1]*o[0]]}function lineIntersection(a,o,_,b){var $=[a[0],a[1],1],_e=[o[0],o[1],1],et=[_[0],_[1],1],tt=[b[0],b[1],1],rt=crossProduct(crossProduct($,_e),crossProduct(et,tt));return floatZero(rt[2])?null:[rt[0]/rt[2],rt[1]/rt[2]]}function polarOffset(a,o,_){return[a[0]+Math.cos(o)*_,a[1]-Math.sin(o)*_]}function pointDistance(a,o){return Math.hypot(a[0]-o[0],a[1]-o[1])}function pointEqual(a,o){return floatEqual(a[0],o[0])&&floatEqual(a[1],o[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(a,o){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(a,o.s,0,null,this),this.frequency=PropertyFactory.getProp(a,o.r,0,null,this),this.pointsType=PropertyFactory.getProp(a,o.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(a,o,_,b,$,_e,et){var tt=_-Math.PI/2,rt=_+Math.PI/2,st=o[0]+Math.cos(_)*b*$,it=o[1]-Math.sin(_)*b*$;a.setTripleAt(st,it,st+Math.cos(tt)*_e,it-Math.sin(tt)*_e,st+Math.cos(rt)*et,it-Math.sin(rt)*et,a.length())}function getPerpendicularVector(a,o){var _=[o[0]-a[0],o[1]-a[1]],b=-Math.PI*.5,$=[Math.cos(b)*_[0]-Math.sin(b)*_[1],Math.sin(b)*_[0]+Math.cos(b)*_[1]];return $}function getProjectingAngle(a,o){var _=o===0?a.length()-1:o-1,b=(o+1)%a.length(),$=a.v[_],_e=a.v[b],et=getPerpendicularVector($,_e);return Math.atan2(0,1)-Math.atan2(et[1],et[0])}function zigZagCorner(a,o,_,b,$,_e,et){var tt=getProjectingAngle(o,_),rt=o.v[_%o._length],st=o.v[_===0?o._length-1:_-1],it=o.v[(_+1)%o._length],lt=_e===2?Math.sqrt(Math.pow(rt[0]-st[0],2)+Math.pow(rt[1]-st[1],2)):0,at=_e===2?Math.sqrt(Math.pow(rt[0]-it[0],2)+Math.pow(rt[1]-it[1],2)):0;setPoint(a,o.v[_%o._length],tt,et,b,at/(($+1)*2),lt/(($+1)*2))}function zigZagSegment(a,o,_,b,$,_e){for(var et=0;et<b;et+=1){var tt=(et+1)/(b+1),rt=$===2?Math.sqrt(Math.pow(o.points[3][0]-o.points[0][0],2)+Math.pow(o.points[3][1]-o.points[0][1],2)):0,st=o.normalAngle(tt),it=o.point(tt);setPoint(a,it,st,_e,_,rt/((b+1)*2),rt/((b+1)*2)),_e=-_e}return _e}ZigZagModifier.prototype.processPath=function(a,o,_,b){var $=a._length,_e=shapePool.newElement();if(_e.c=a.c,a.c||($-=1),$===0)return _e;var et=-1,tt=PolynomialBezier.shapeSegment(a,0);zigZagCorner(_e,a,0,o,_,b,et);for(var rt=0;rt<$;rt+=1)et=zigZagSegment(_e,tt,o,_,b,-et),rt===$-1&&!a.c?tt=null:tt=PolynomialBezier.shapeSegment(a,(rt+1)%$),zigZagCorner(_e,a,rt+1,o,_,b,et);return _e},ZigZagModifier.prototype.processShapes=function(a){var o,_,b=this.shapes.length,$,_e,et=this.amplitude.v,tt=Math.max(0,Math.round(this.frequency.v)),rt=this.pointsType.v;if(et!==0){var st,it;for(_=0;_<b;_+=1){if(st=this.shapes[_],it=st.localShapeCollection,!(!st.shape._mdf&&!this._mdf&&!a))for(it.releaseShapes(),st.shape._mdf=!0,o=st.shape.paths.shapes,_e=st.shape.paths._length,$=0;$<_e;$+=1)it.addShape(this.processPath(o[$],et,tt,rt));st.shape.paths=st.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(a,o,_){var b=Math.atan2(o[0]-a[0],o[1]-a[1]);return[polarOffset(a,b,_),polarOffset(o,b,_)]}function offsetSegment(a,o){var _,b,$,_e,et,tt,rt;rt=linearOffset(a.points[0],a.points[1],o),_=rt[0],b=rt[1],rt=linearOffset(a.points[1],a.points[2],o),$=rt[0],_e=rt[1],rt=linearOffset(a.points[2],a.points[3],o),et=rt[0],tt=rt[1];var st=lineIntersection(_,b,$,_e);st===null&&(st=b);var it=lineIntersection(et,tt,$,_e);return it===null&&(it=et),new PolynomialBezier(_,st,it,tt)}function joinLines(a,o,_,b,$){var _e=o.points[3],et=_.points[0];if(b===3||pointEqual(_e,et))return _e;if(b===2){var tt=-o.tangentAngle(1),rt=-_.tangentAngle(0)+Math.PI,st=lineIntersection(_e,polarOffset(_e,tt+Math.PI/2,100),et,polarOffset(et,tt+Math.PI/2,100)),it=st?pointDistance(st,_e):pointDistance(_e,et)/2,lt=polarOffset(_e,tt,2*it*roundCorner);return a.setXYAt(lt[0],lt[1],"o",a.length()-1),lt=polarOffset(et,rt,2*it*roundCorner),a.setTripleAt(et[0],et[1],et[0],et[1],lt[0],lt[1],a.length()),et}var at=pointEqual(_e,o.points[2])?o.points[0]:o.points[2],ft=pointEqual(et,_.points[1])?_.points[3]:_.points[1],ht=lineIntersection(at,_e,et,ft);return ht&&pointDistance(ht,_e)<$?(a.setTripleAt(ht[0],ht[1],ht[0],ht[1],ht[0],ht[1],a.length()),ht):_e}function getIntersection(a,o){var _=a.intersections(o);return _.length&&floatEqual(_[0][0],1)&&_.shift(),_.length?_[0]:null}function pruneSegmentIntersection(a,o){var _=a.slice(),b=o.slice(),$=getIntersection(a[a.length-1],o[0]);return $&&(_[a.length-1]=a[a.length-1].split($[0])[0],b[0]=o[0].split($[1])[1]),a.length>1&&o.length>1&&($=getIntersection(a[0],o[o.length-1]),$)?[[a[0].split($[0])[0]],[o[o.length-1].split($[1])[1]]]:[_,b]}function pruneIntersections(a){for(var o,_=1;_<a.length;_+=1)o=pruneSegmentIntersection(a[_-1],a[_]),a[_-1]=o[0],a[_]=o[1];return a.length>1&&(o=pruneSegmentIntersection(a[a.length-1],a[0]),a[a.length-1]=o[0],a[0]=o[1]),a}function offsetSegmentSplit(a,o){var _=a.inflectionPoints(),b,$,_e,et;if(_.length===0)return[offsetSegment(a,o)];if(_.length===1||floatEqual(_[1],1))return _e=a.split(_[0]),b=_e[0],$=_e[1],[offsetSegment(b,o),offsetSegment($,o)];_e=a.split(_[0]),b=_e[0];var tt=(_[1]-_[0])/(1-_[0]);return _e=_e[1].split(tt),et=_e[0],$=_e[1],[offsetSegment(b,o),offsetSegment(et,o),offsetSegment($,o)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(a,o){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(a,o.a,0,null,this),this.miterLimit=PropertyFactory.getProp(a,o.ml,0,null,this),this.lineJoin=o.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(a,o,_,b){var $=shapePool.newElement();$.c=a.c;var _e=a.length();a.c||(_e-=1);var et,tt,rt,st=[];for(et=0;et<_e;et+=1)rt=PolynomialBezier.shapeSegment(a,et),st.push(offsetSegmentSplit(rt,o));if(!a.c)for(et=_e-1;et>=0;et-=1)rt=PolynomialBezier.shapeSegmentInverted(a,et),st.push(offsetSegmentSplit(rt,o));st=pruneIntersections(st);var it=null,lt=null;for(et=0;et<st.length;et+=1){var at=st[et];for(lt&&(it=joinLines($,lt,at[0],_,b)),lt=at[at.length-1],tt=0;tt<at.length;tt+=1)rt=at[tt],it&&pointEqual(rt.points[0],it)?$.setXYAt(rt.points[1][0],rt.points[1][1],"o",$.length()-1):$.setTripleAt(rt.points[0][0],rt.points[0][1],rt.points[1][0],rt.points[1][1],rt.points[0][0],rt.points[0][1],$.length()),$.setTripleAt(rt.points[3][0],rt.points[3][1],rt.points[3][0],rt.points[3][1],rt.points[2][0],rt.points[2][1],$.length()),it=rt.points[3]}return st.length&&joinLines($,lt,st[0][0],_,b),$},OffsetPathModifier.prototype.processShapes=function(a){var o,_,b=this.shapes.length,$,_e,et=this.amount.v,tt=this.miterLimit.v,rt=this.lineJoin;if(et!==0){var st,it;for(_=0;_<b;_+=1){if(st=this.shapes[_],it=st.localShapeCollection,!(!st.shape._mdf&&!this._mdf&&!a))for(it.releaseShapes(),st.shape._mdf=!0,o=st.shape.paths.shapes,_e=st.shape.paths._length,$=0;$<_e;$+=1)it.addShape(this.processPath(o[$],et,rt,tt));st.shape.paths=st.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(a){for(var o=a.fStyle?a.fStyle.split(" "):[],_="normal",b="normal",$=o.length,_e,et=0;et<$;et+=1)switch(_e=o[et].toLowerCase(),_e){case"italic":b="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:b,weight:a.fWeight||_}}var FontManager=function(){var a=5e3,o={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 b=127988,$=917631,_e=917601,et=917626,tt=65039,rt=8205,st=127462,it=127487,lt=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function at(gt){var St=gt.split(","),ct,mt=St.length,Rt=[];for(ct=0;ct<mt;ct+=1)St[ct]!=="sans-serif"&&St[ct]!=="monospace"&&Rt.push(St[ct]);return Rt.join(",")}function ft(gt,St){var ct=createTag("span");ct.setAttribute("aria-hidden",!0),ct.style.fontFamily=St;var mt=createTag("span");mt.innerText="giItT1WQy@!-/#",ct.style.position="absolute",ct.style.left="-10000px",ct.style.top="-10000px",ct.style.fontSize="300px",ct.style.fontVariant="normal",ct.style.fontStyle="normal",ct.style.fontWeight="normal",ct.style.letterSpacing="0",ct.appendChild(mt),document.body.appendChild(ct);var Rt=mt.offsetWidth;return mt.style.fontFamily=at(gt)+", "+St,{node:mt,w:Rt,parent:ct}}function ht(){var gt,St=this.fonts.length,ct,mt,Rt=St;for(gt=0;gt<St;gt+=1)this.fonts[gt].loaded?Rt-=1:this.fonts[gt].fOrigin==="n"||this.fonts[gt].origin===0?this.fonts[gt].loaded=!0:(ct=this.fonts[gt].monoCase.node,mt=this.fonts[gt].monoCase.w,ct.offsetWidth!==mt?(Rt-=1,this.fonts[gt].loaded=!0):(ct=this.fonts[gt].sansCase.node,mt=this.fonts[gt].sansCase.w,ct.offsetWidth!==mt&&(Rt-=1,this.fonts[gt].loaded=!0)),this.fonts[gt].loaded&&(this.fonts[gt].sansCase.parent.parentNode.removeChild(this.fonts[gt].sansCase.parent),this.fonts[gt].monoCase.parent.parentNode.removeChild(this.fonts[gt].monoCase.parent)));Rt!==0&&Date.now()-this.initTime<a?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function pt(gt,St){var ct=document.body&&St?"svg":"canvas",mt,Rt=getFontProperties(gt);if(ct==="svg"){var kt=createNS("text");kt.style.fontSize="100px",kt.setAttribute("font-family",gt.fFamily),kt.setAttribute("font-style",Rt.style),kt.setAttribute("font-weight",Rt.weight),kt.textContent="1",gt.fClass?(kt.style.fontFamily="inherit",kt.setAttribute("class",gt.fClass)):kt.style.fontFamily=gt.fFamily,St.appendChild(kt),mt=kt}else{var Dt=new OffscreenCanvas(500,500).getContext("2d");Dt.font=Rt.style+" "+Rt.weight+" 100px "+gt.fFamily,mt=Dt}function bt(Ht){return ct==="svg"?(mt.textContent=Ht,mt.getComputedTextLength()):mt.measureText(Ht).width}return{measureText:bt}}function vt(gt,St){if(!gt){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=gt.list;return}if(!document.body){this.isLoaded=!0,gt.list.forEach(function($t){$t.helper=pt($t),$t.cache={}}),this.fonts=gt.list;return}var ct=gt.list,mt,Rt=ct.length,kt=Rt;for(mt=0;mt<Rt;mt+=1){var Dt=!0,bt,Ht;if(ct[mt].loaded=!1,ct[mt].monoCase=ft(ct[mt].fFamily,"monospace"),ct[mt].sansCase=ft(ct[mt].fFamily,"sans-serif"),!ct[mt].fPath)ct[mt].loaded=!0,kt-=1;else if(ct[mt].fOrigin==="p"||ct[mt].origin===3){if(bt=document.querySelectorAll('style[f-forigin="p"][f-family="'+ct[mt].fFamily+'"], style[f-origin="3"][f-family="'+ct[mt].fFamily+'"]'),bt.length>0&&(Dt=!1),Dt){var Pt=createTag("style");Pt.setAttribute("f-forigin",ct[mt].fOrigin),Pt.setAttribute("f-origin",ct[mt].origin),Pt.setAttribute("f-family",ct[mt].fFamily),Pt.type="text/css",Pt.innerText="@font-face {font-family: "+ct[mt].fFamily+"; font-style: normal; src: url('"+ct[mt].fPath+"');}",St.appendChild(Pt)}}else if(ct[mt].fOrigin==="g"||ct[mt].origin===1){for(bt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Ht=0;Ht<bt.length;Ht+=1)bt[Ht].href.indexOf(ct[mt].fPath)!==-1&&(Dt=!1);if(Dt){var Lt=createTag("link");Lt.setAttribute("f-forigin",ct[mt].fOrigin),Lt.setAttribute("f-origin",ct[mt].origin),Lt.type="text/css",Lt.rel="stylesheet",Lt.href=ct[mt].fPath,document.body.appendChild(Lt)}}else if(ct[mt].fOrigin==="t"||ct[mt].origin===2){for(bt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Ht=0;Ht<bt.length;Ht+=1)ct[mt].fPath===bt[Ht].src&&(Dt=!1);if(Dt){var Bt=createTag("link");Bt.setAttribute("f-forigin",ct[mt].fOrigin),Bt.setAttribute("f-origin",ct[mt].origin),Bt.setAttribute("rel","stylesheet"),Bt.setAttribute("href",ct[mt].fPath),St.appendChild(Bt)}}ct[mt].helper=pt(ct[mt],St),ct[mt].cache={},this.fonts.push(ct[mt])}kt===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function ut(gt){if(gt){this.chars||(this.chars=[]);var St,ct=gt.length,mt,Rt=this.chars.length,kt;for(St=0;St<ct;St+=1){for(mt=0,kt=!1;mt<Rt;)this.chars[mt].style===gt[St].style&&this.chars[mt].fFamily===gt[St].fFamily&&this.chars[mt].ch===gt[St].ch&&(kt=!0),mt+=1;kt||(this.chars.push(gt[St]),Rt+=1)}}}function ot(gt,St,ct){for(var mt=0,Rt=this.chars.length;mt<Rt;){if(this.chars[mt].ch===gt&&this.chars[mt].style===St&&this.chars[mt].fFamily===ct)return this.chars[mt];mt+=1}return(typeof gt=="string"&&gt.charCodeAt(0)!==13||!gt)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",gt,St,ct)),o}function nt(gt,St,ct){var mt=this.getFontByName(St),Rt=gt;if(!mt.cache[Rt]){var kt=mt.helper;if(gt===" "){var Dt=kt.measureText("|"+gt+"|"),bt=kt.measureText("||");mt.cache[Rt]=(Dt-bt)/100}else mt.cache[Rt]=kt.measureText(gt)/100}return mt.cache[Rt]*ct}function dt(gt){for(var St=0,ct=this.fonts.length;St<ct;){if(this.fonts[St].fName===gt)return this.fonts[St];St+=1}return this.fonts[0]}function yt(gt){var St=0,ct=gt.charCodeAt(0);if(ct>=55296&&ct<=56319){var mt=gt.charCodeAt(1);mt>=56320&&mt<=57343&&(St=(ct-55296)*1024+mt-56320+65536)}return St}function _t(gt,St){var ct=gt.toString(16)+St.toString(16);return lt.indexOf(ct)!==-1}function At(gt){return gt===rt}function xt(gt){return gt===tt}function wt(gt){var St=yt(gt);return St>=st&&St<=it}function Tt(gt){return wt(gt.substr(0,2))&&wt(gt.substr(2,2))}function It(gt){return _.indexOf(gt)!==-1}function Nt(gt,St){var ct=yt(gt.substr(St,2));if(ct!==b)return!1;var mt=0;for(St+=2;mt<5;){if(ct=yt(gt.substr(St,2)),ct<_e||ct>et)return!1;mt+=1,St+=2}return yt(gt.substr(St,2))===$}function Ct(){this.isLoaded=!0}var jt=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)};jt.isModifier=_t,jt.isZeroWidthJoiner=At,jt.isFlagEmoji=Tt,jt.isRegionalCode=wt,jt.isCombinedCharacter=It,jt.isRegionalFlag=Nt,jt.isVariationSelector=xt,jt.BLACK_FLAG_CODE_POINT=b;var Et={addChars:ut,addFonts:vt,getCharData:ot,getFontByName:dt,measureText:nt,checkLoadedFonts:ht,setIsLoaded:Ct};return jt.prototype=Et,jt}();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(o){this.renderableComponents.indexOf(o)===-1&&this.renderableComponents.push(o)},removeRenderableComponent:function(o){this.renderableComponents.indexOf(o)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(o),1)},prepareRenderableFrame:function(o){this.checkLayerLimits(o)},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(o){this.data.ip-this.data.st<=o&&this.data.op-this.data.st>o?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 o,_=this.renderableComponents.length;for(o=0;o<_;o+=1)this.renderableComponents[o].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(o){return a[o]||""}}();function SliderEffect(a,o,_){this.p=PropertyFactory.getProp(o,a.v,0,0,_)}function AngleEffect(a,o,_){this.p=PropertyFactory.getProp(o,a.v,0,0,_)}function ColorEffect(a,o,_){this.p=PropertyFactory.getProp(o,a.v,1,0,_)}function PointEffect(a,o,_){this.p=PropertyFactory.getProp(o,a.v,1,0,_)}function LayerIndexEffect(a,o,_){this.p=PropertyFactory.getProp(o,a.v,0,0,_)}function MaskIndexEffect(a,o,_){this.p=PropertyFactory.getProp(o,a.v,0,0,_)}function CheckboxEffect(a,o,_){this.p=PropertyFactory.getProp(o,a.v,0,0,_)}function NoValueEffect(){this.p={}}function EffectsManager(a,o){var _=a.ef||[];this.effectElements=[];var b,$=_.length,_e;for(b=0;b<$;b+=1)_e=new GroupEffect(_[b],o),this.effectElements.push(_e)}function GroupEffect(a,o){this.init(a,o)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(a,o){this.data=a,this.effectElements=[],this.initDynamicPropertyContainer(o);var _,b=this.data.ef.length,$,_e=this.data.ef;for(_=0;_<b;_+=1){switch($=null,_e[_].ty){case 0:$=new SliderEffect(_e[_],o,this);break;case 1:$=new AngleEffect(_e[_],o,this);break;case 2:$=new ColorEffect(_e[_],o,this);break;case 3:$=new PointEffect(_e[_],o,this);break;case 4:case 7:$=new CheckboxEffect(_e[_],o,this);break;case 10:$=new LayerIndexEffect(_e[_],o,this);break;case 11:$=new MaskIndexEffect(_e[_],o,this);break;case 5:$=new EffectsManager(_e[_],o);break;default:$=new NoValueEffect(_e[_]);break}$&&this.effectElements.push($)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var o=0,_=this.data.masksProperties.length;o<_;){if(this.data.masksProperties[o].mode!=="n"&&this.data.masksProperties[o].cl!==!1)return!0;o+=1}return!1},initExpressions:function(){var o=getExpressionInterfaces();if(o){var _=o("layer"),b=o("effects"),$=o("shape"),_e=o("text"),et=o("comp");this.layerInterface=_(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var tt=b.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(tt),this.data.ty===0||this.data.xt?this.compInterface=et(this):this.data.ty===4?(this.layerInterface.shapeInterface=$(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=_e(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var o=getBlendMode(this.data.bm),_=this.baseElement||this.layerElement;_.style["mix-blend-mode"]=o},initBaseData:function(o,_,b){this.globalData=_,this.comp=b,this.data=o,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(o,_){var b,$=this.dynamicProperties.length;for(b=0;b<$;b+=1)(_||this._isParent&&this.dynamicProperties[b].propType==="transform")&&(this.dynamicProperties[b].getValue(),this.dynamicProperties[b]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(o){this.dynamicProperties.indexOf(o)===-1&&this.dynamicProperties.push(o)}};function FootageElement(a,o,_){this.initFrame(),this.initRenderable(),this.assetData=o.getAssetData(a.refId),this.footageData=o.imageLoader.getAsset(this.assetData),this.initBaseData(a,o,_)}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 o=a("footage");this.layerInterface=o(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(a,o,_){this.initFrame(),this.initRenderable(),this.assetData=o.getAssetData(a.refId),this.initBaseData(a,o,_),this._isPlaying=!1,this._canPlay=!1;var b=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(b),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,o.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 o=this.tm.v;this._currentTime=o}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 o,_=this.layers.length,b;for(this.completeLayers=!0,o=_-1;o>=0;o-=1)this.elements[o]||(b=this.layers[o],b.ip-b.st<=a-this.layers[o].st&&b.op-b.st>a-this.layers[o].st&&this.buildItem(o)),this.completeLayers=this.elements[o]?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,o=this.layers.length;for(a=0;a<o;a+=1)this.buildItem(a);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(a){this.completeLayers=!1;var o,_=a.length,b,$=this.layers.length;for(o=0;o<_;o+=1)for(b=0;b<$;){if(this.layers[b].id===a[o].id){this.layers[b]=a[o];break}b+=1}},BaseRenderer.prototype.setProjectInterface=function(a){this.globalData.projectInterface=a},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(a,o,_){for(var b=this.elements,$=this.layers,_e=0,et=$.length;_e<et;)$[_e].ind==o&&(!b[_e]||b[_e]===!0?(this.buildItem(_e),this.addPendingElement(a)):(_.push(b[_e]),b[_e].setAsParent(),$[_e].parent!==void 0?this.buildElementParenting(a,$[_e].parent,_):a.setHierarchy(_))),_e+=1},BaseRenderer.prototype.addPendingElement=function(a){this.pendingElements.push(a)},BaseRenderer.prototype.searchExtraCompositions=function(a){var o,_=a.length;for(o=0;o<_;o+=1)if(a[o].xt){var b=this.createComp(a[o]);b.initExpressions(),this.globalData.projectInterface.registerComposition(b)}},BaseRenderer.prototype.getElementById=function(a){var o,_=this.elements.length;for(o=0;o<_;o+=1)if(this.elements[o].data.ind===a)return this.elements[o];return null},BaseRenderer.prototype.getElementByPath=function(a){var o=a.shift(),_;if(typeof o=="number")_=this.elements[o];else{var b,$=this.elements.length;for(b=0;b<$;b+=1)if(this.elements[b].data.nm===o){_=this.elements[b];break}}return a.length===0?_:_.getElementByPath(a)},BaseRenderer.prototype.setupGlobalData=function(a,o){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(a),this.globalData.fontManager.addChars(a.chars),this.globalData.fontManager.addFonts(a.fonts,o),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 o=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:o,localMat:o,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 o,_=this.finalTransform.mat,b=0,$=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;b<$;){if(this.hierarchy[b].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}b+=1}if(this.finalTransform._matMdf)for(o=this.finalTransform.mProp.v.props,_.cloneFromProps(o),b=0;b<$;b+=1)_.multiply(this.hierarchy[b].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 o=0,_=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;o<_;)this.localTransforms[o]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[o]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),o+=1;if(this.finalTransform._localMatMdf){var b=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(b),o=1;o<_;o+=1){var $=this.localTransforms[o].matrix;b.multiply($)}b.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var _e=this.finalTransform.localOpacity;for(o=0;o<_;o+=1)_e*=this.localTransforms[o].opacity*.01;this.finalTransform.localOpacity=_e}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var o=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(o.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var _=0,b=o.length;for(_=0;_<b;_+=1)this.localTransforms.push(o[_])}}},globalToLocal:function(o){var _=[];_.push(this.finalTransform);for(var b=!0,$=this.comp;b;)$.finalTransform?($.data.hasMask&&_.splice(0,0,$.finalTransform),$=$.comp):b=!1;var _e,et=_.length,tt;for(_e=0;_e<et;_e+=1)tt=_[_e].mat.applyToPointArray(0,0,0),o=[o[0]-tt[0],o[1]-tt[1],0];return o},mHelper:new Matrix};function MaskElement(a,o,_){this.data=a,this.element=o,this.globalData=_,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var b=this.globalData.defs,$,_e=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(_e),this.solidPath="";var et,tt=this.masksProperties,rt=0,st=[],it,lt,at=createElementID(),ft,ht,pt,vt,ut="clipPath",ot="clip-path";for($=0;$<_e;$+=1)if((tt[$].mode!=="a"&&tt[$].mode!=="n"||tt[$].inv||tt[$].o.k!==100||tt[$].o.x)&&(ut="mask",ot="mask"),(tt[$].mode==="s"||tt[$].mode==="i")&&rt===0?(ft=createNS("rect"),ft.setAttribute("fill","#ffffff"),ft.setAttribute("width",this.element.comp.data.w||0),ft.setAttribute("height",this.element.comp.data.h||0),st.push(ft)):ft=null,et=createNS("path"),tt[$].mode==="n")this.viewData[$]={op:PropertyFactory.getProp(this.element,tt[$].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,tt[$],3),elem:et,lastPath:""},b.appendChild(et);else{rt+=1,et.setAttribute("fill",tt[$].mode==="s"?"#000000":"#ffffff"),et.setAttribute("clip-rule","nonzero");var nt;if(tt[$].x.k!==0?(ut="mask",ot="mask",vt=PropertyFactory.getProp(this.element,tt[$].x,0,null,this.element),nt=createElementID(),ht=createNS("filter"),ht.setAttribute("id",nt),pt=createNS("feMorphology"),pt.setAttribute("operator","erode"),pt.setAttribute("in","SourceGraphic"),pt.setAttribute("radius","0"),ht.appendChild(pt),b.appendChild(ht),et.setAttribute("stroke",tt[$].mode==="s"?"#000000":"#ffffff")):(pt=null,vt=null),this.storedData[$]={elem:et,x:vt,expan:pt,lastPath:"",lastOperator:"",filterId:nt,lastRadius:0},tt[$].mode==="i"){lt=st.length;var dt=createNS("g");for(it=0;it<lt;it+=1)dt.appendChild(st[it]);var yt=createNS("mask");yt.setAttribute("mask-type","alpha"),yt.setAttribute("id",at+"_"+rt),yt.appendChild(et),b.appendChild(yt),dt.setAttribute("mask","url("+getLocationHref()+"#"+at+"_"+rt+")"),st.length=0,st.push(dt)}else st.push(et);tt[$].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[$]={elem:et,lastPath:"",op:PropertyFactory.getProp(this.element,tt[$].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,tt[$],3),invRect:ft},this.viewData[$].prop.k||this.drawPath(tt[$],this.viewData[$].prop.v,this.viewData[$])}for(this.maskElement=createNS(ut),_e=st.length,$=0;$<_e;$+=1)this.maskElement.appendChild(st[$]);rt>0&&(this.maskElement.setAttribute("id",at),this.element.maskedElement.setAttribute(ot,"url("+getLocationHref()+"#"+at+")"),b.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 o=this.element.finalTransform.mat,_,b=this.masksProperties.length;for(_=0;_<b;_+=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",o.getInverseMatrix().to2dCSS()),this.storedData[_].x&&(this.storedData[_].x._mdf||a))){var $=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+")")),$.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,o,_){var b=" M"+o.v[0][0]+","+o.v[0][1],$,_e;for(_e=o._length,$=1;$<_e;$+=1)b+=" C"+o.o[$-1][0]+","+o.o[$-1][1]+" "+o.i[$][0]+","+o.i[$][1]+" "+o.v[$][0]+","+o.v[$][1];if(o.c&&_e>1&&(b+=" C"+o.o[$-1][0]+","+o.o[$-1][1]+" "+o.i[0][0]+","+o.i[0][1]+" "+o.v[0][0]+","+o.v[0][1]),_.lastPath!==b){var et="";_.elem&&(o.c&&(et=a.inv?this.solidPath+b:b),_.elem.setAttribute("d",et)),_.lastPath=b}},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=o,a.createAlphaToLuminanceFilter=_;function o(b,$){var _e=createNS("filter");return _e.setAttribute("id",b),$!==!0&&(_e.setAttribute("filterUnits","objectBoundingBox"),_e.setAttribute("x","0%"),_e.setAttribute("y","0%"),_e.setAttribute("width","100%"),_e.setAttribute("height","100%")),_e}function _(){var b=createNS("feColorMatrix");return b.setAttribute("type","matrix"),b.setAttribute("color-interpolation-filters","sRGB"),b.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),b}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 o,_="SourceGraphic",b=a.data.ef?a.data.ef.length:0,$=createElementID(),_e=filtersFactory.createFilter($,!0),et=0;this.filters=[];var tt;for(o=0;o<b;o+=1){tt=null;var rt=a.data.ef[o].ty;if(registeredEffects$1[rt]){var st=registeredEffects$1[rt].effect;tt=new st(_e,a.effectsManager.effectElements[o],a,idPrefix+et,_),_=idPrefix+et,registeredEffects$1[rt].countsAsEffect&&(et+=1)}tt&&this.filters.push(tt)}et&&(a.globalData.defs.appendChild(_e),a.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+$+")")),this.filters.length&&a.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(a){var o,_=this.filters.length;for(o=0;o<_;o+=1)this.filters[o].renderFrame(a)},SVGEffects.prototype.getEffects=function(a){var o,_=this.filters.length,b=[];for(o=0;o<_;o+=1)this.filters[o].type===a&&b.push(this.filters[o]);return b};function registerEffect$1(a,o,_){registeredEffects$1[a]={effect:o,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 o=null;if(this.data.td){this.matteMasks={};var _=createNS("g");_.setAttribute("id",this.layerId),_.appendChild(this.layerElement),o=_,this.globalData.defs.appendChild(_)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),o=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 b=createNS("clipPath"),$=createNS("path");$.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var _e=createElementID();if(b.setAttribute("id",_e),b.appendChild($),this.globalData.defs.appendChild(b),this.checkMasks()){var et=createNS("g");et.setAttribute("clip-path","url("+getLocationHref()+"#"+_e+")"),et.appendChild(this.layerElement),this.transformedElement=et,o?o.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+_e+")")}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(o){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[o]){var _=this.layerId+"_"+o,b,$,_e,et;if(o===1||o===3){var tt=createNS("mask");tt.setAttribute("id",_),tt.setAttribute("mask-type",o===3?"luminance":"alpha"),_e=createNS("use"),_e.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),tt.appendChild(_e),this.globalData.defs.appendChild(tt),!featureSupport.maskType&&o===1&&(tt.setAttribute("mask-type","luminance"),b=createElementID(),$=filtersFactory.createFilter(b),this.globalData.defs.appendChild($),$.appendChild(filtersFactory.createAlphaToLuminanceFilter()),et=createNS("g"),et.appendChild(_e),tt.appendChild(et),et.setAttribute("filter","url("+getLocationHref()+"#"+b+")"))}else if(o===2){var rt=createNS("mask");rt.setAttribute("id",_),rt.setAttribute("mask-type","alpha");var st=createNS("g");rt.appendChild(st),b=createElementID(),$=filtersFactory.createFilter(b);var it=createNS("feComponentTransfer");it.setAttribute("in","SourceGraphic"),$.appendChild(it);var lt=createNS("feFuncA");lt.setAttribute("type","table"),lt.setAttribute("tableValues","1.0 0.0"),it.appendChild(lt),this.globalData.defs.appendChild($);var at=createNS("rect");at.setAttribute("width",this.comp.data.w),at.setAttribute("height",this.comp.data.h),at.setAttribute("x","0"),at.setAttribute("y","0"),at.setAttribute("fill","#ffffff"),at.setAttribute("opacity","0"),st.setAttribute("filter","url("+getLocationHref()+"#"+b+")"),st.appendChild(at),_e=createNS("use"),_e.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),st.appendChild(_e),featureSupport.maskType||(rt.setAttribute("mask-type","luminance"),$.appendChild(filtersFactory.createAlphaToLuminanceFilter()),et=createNS("g"),st.appendChild(at),et.appendChild(this.layerElement),st.appendChild(et)),this.globalData.defs.appendChild(rt)}this.matteMasks[o]=_}return this.matteMasks[o]},setMatte:function(o){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+o+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(o){this.hierarchy=o},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(_,b,$){this.initFrame(),this.initBaseData(_,b,$),this.initTransform(_,b,$),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,o,_){this.assetData=o.getAssetData(a.refId),this.assetData&&this.assetData.sid&&(this.assetData=o.slotManager.getProp(this.assetData)),this.initElement(a,o,_),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,o){this.elem=a,this.pos=o}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(o){var _,b=this.shapeModifiers.length;for(_=0;_<b;_+=1)this.shapeModifiers[_].addShape(o)},isShapeInAnimatedModifiers:function(o){for(var _=0,b=this.shapeModifiers.length;_<b;)if(this.shapeModifiers[_].isAnimatedWithShape(o))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var o,_=this.shapes.length;for(o=0;o<_;o+=1)this.shapes[o].sh.reset();_=this.shapeModifiers.length;var b;for(o=_-1;o>=0&&(b=this.shapeModifiers[o].processShapes(this._isFirstFrame),!b);o-=1);}},searchProcessedElement:function(o){for(var _=this.processedElements,b=0,$=_.length;b<$;){if(_[b].elem===o)return _[b].pos;b+=1}return 0},addProcessedElement:function(o,_){for(var b=this.processedElements,$=b.length;$;)if($-=1,b[$].elem===o){b[$].pos=_;return}b.push(new ProcessedElement(o,_))},prepareFrame:function(o){this.prepareRenderableFrame(o),this.prepareProperties(o,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(a,o,_){this.caches=[],this.styles=[],this.transformers=a,this.lStr="",this.sh=_,this.lvl=o,this._isAnimated=!!_.k;for(var b=0,$=a.length;b<$;){if(a[b].mProps.dynamicProperties.length){this._isAnimated=!0;break}b+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(a,o){this.data=a,this.type=a.ty,this.d="",this.lvl=o,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,o,_,b){this.elem=a,this.frameId=-1,this.dataProps=createSizedArray(o.length),this.renderer=_,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",o.length?o.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(b);var $,_e=o.length||0,et;for($=0;$<_e;$+=1)et=PropertyFactory.getProp(a,o[$].v,0,0,this),this.k=et.k||this.k,this.dataProps[$]={n:o[$].n,p:et};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 o=0,_=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),o=0;o<_;o+=1)this.dataProps[o].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[o].p.v:this.dashArray[o]=this.dataProps[o].p.v:this.dashoffset[0]=this.dataProps[o].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(a,o,_){this.initDynamicPropertyContainer(a),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(a,o.o,0,.01,this),this.w=PropertyFactory.getProp(a,o.w,0,null,this),this.d=new DashProperty(a,o.d||{},"svg",this),this.c=PropertyFactory.getProp(a,o.c,1,255,this),this.style=_,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(a,o,_){this.initDynamicPropertyContainer(a),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(a,o.o,0,.01,this),this.c=PropertyFactory.getProp(a,o.c,1,255,this),this.style=_}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(a,o,_){this.initDynamicPropertyContainer(a),this.getValue=this.iterateDynamicProperties,this.style=_}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(a,o,_){this.data=o,this.c=createTypedArray("uint8c",o.p*4);var b=o.k.k[0].s?o.k.k[0].s.length-o.p*4:o.k.k.length-o.p*4;this.o=createTypedArray("float32",b),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=b,this.initDynamicPropertyContainer(_),this.prop=PropertyFactory.getProp(a,o.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(a,o){for(var _=0,b=this.o.length/2,$;_<b;){if($=Math.abs(a[_*4]-a[o*4+_*2]),$>.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,o=this.data.k.k.length;a<o;){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 o,_=this.data.p*4,b,$;for(o=0;o<_;o+=1)b=o%4===0?100:255,$=Math.round(this.prop.v[o]*b),this.c[o]!==$&&(this.c[o]=$,this._cmdf=!a);if(this.o.length)for(_=this.prop.v.length,o=this.data.p*4;o<_;o+=1)b=o%2===0?100:1,$=o%2===0?Math.round(this.prop.v[o]*100):this.prop.v[o],this.o[o-this.data.p*4]!==$&&(this.o[o-this.data.p*4]=$,this._omdf=!a);this._mdf=!a}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(a,o,_){this.initDynamicPropertyContainer(a),this.getValue=this.iterateDynamicProperties,this.initGradientData(a,o,_)}SVGGradientFillStyleData.prototype.initGradientData=function(a,o,_){this.o=PropertyFactory.getProp(a,o.o,0,.01,this),this.s=PropertyFactory.getProp(a,o.s,1,null,this),this.e=PropertyFactory.getProp(a,o.e,1,null,this),this.h=PropertyFactory.getProp(a,o.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(a,o.a||{k:0},0,degToRads,this),this.g=new GradientProperty(a,o.g,this),this.style=_,this.stops=[],this.setGradientData(_.pElem,o),this.setGradientOpacity(o,_),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(a,o){var _=createElementID(),b=createNS(o.t===1?"linearGradient":"radialGradient");b.setAttribute("id",_),b.setAttribute("spreadMethod","pad"),b.setAttribute("gradientUnits","userSpaceOnUse");var $=[],_e,et,tt;for(tt=o.g.p*4,et=0;et<tt;et+=4)_e=createNS("stop"),b.appendChild(_e),$.push(_e);a.setAttribute(o.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+_+")"),this.gf=b,this.cst=$},SVGGradientFillStyleData.prototype.setGradientOpacity=function(a,o){if(this.g._hasOpacity&&!this.g._collapsable){var _,b,$,_e=createNS("mask"),et=createNS("path");_e.appendChild(et);var tt=createElementID(),rt=createElementID();_e.setAttribute("id",rt);var st=createNS(a.t===1?"linearGradient":"radialGradient");st.setAttribute("id",tt),st.setAttribute("spreadMethod","pad"),st.setAttribute("gradientUnits","userSpaceOnUse"),$=a.g.k.k[0].s?a.g.k.k[0].s.length:a.g.k.k.length;var it=this.stops;for(b=a.g.p*4;b<$;b+=2)_=createNS("stop"),_.setAttribute("stop-color","rgb(255,255,255)"),st.appendChild(_),it.push(_);et.setAttribute(a.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+tt+")"),a.ty==="gs"&&(et.setAttribute("stroke-linecap",lineCapEnum[a.lc||2]),et.setAttribute("stroke-linejoin",lineJoinEnum[a.lj||2]),a.lj===1&&et.setAttribute("stroke-miterlimit",a.ml)),this.of=st,this.ms=_e,this.ost=it,this.maskId=rt,o.msElem=et}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(a,o,_){this.initDynamicPropertyContainer(a),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(a,o.w,0,null,this),this.d=new DashProperty(a,o.d||{},"svg",this),this.initGradientData(a,o,_),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(a,o,_){this.transform={mProps:a,op:o,container:_},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(o,_,b,$){if(_===0)return"";var _e=o.o,et=o.i,tt=o.v,rt,st=" M"+$.applyToPointStringified(tt[0][0],tt[0][1]);for(rt=1;rt<_;rt+=1)st+=" C"+$.applyToPointStringified(_e[rt-1][0],_e[rt-1][1])+" "+$.applyToPointStringified(et[rt][0],et[rt][1])+" "+$.applyToPointStringified(tt[rt][0],tt[rt][1]);return b&&_&&(st+=" C"+$.applyToPointStringified(_e[rt-1][0],_e[rt-1][1])+" "+$.applyToPointStringified(et[0][0],et[0][1])+" "+$.applyToPointStringified(tt[0][0],tt[0][1]),st+="z"),st},SVGElementsRenderer=function(){var a=new Matrix,o=new Matrix,_={createRenderFunction:b};function b(lt){switch(lt.ty){case"fl":return tt;case"gf":return st;case"gs":return rt;case"st":return it;case"sh":case"el":case"rc":case"sr":return et;case"tr":return $;case"no":return _e;default:return null}}function $(lt,at,ft){(ft||at.transform.op._mdf)&&at.transform.container.setAttribute("opacity",at.transform.op.v),(ft||at.transform.mProps._mdf)&&at.transform.container.setAttribute("transform",at.transform.mProps.v.to2dCSS())}function _e(){}function et(lt,at,ft){var ht,pt,vt,ut,ot,nt,dt=at.styles.length,yt=at.lvl,_t,At,xt,wt;for(nt=0;nt<dt;nt+=1){if(ut=at.sh._mdf||ft,at.styles[nt].lvl<yt){for(At=o.reset(),xt=yt-at.styles[nt].lvl,wt=at.transformers.length-1;!ut&&xt>0;)ut=at.transformers[wt].mProps._mdf||ut,xt-=1,wt-=1;if(ut)for(xt=yt-at.styles[nt].lvl,wt=at.transformers.length-1;xt>0;)At.multiply(at.transformers[wt].mProps.v),xt-=1,wt-=1}else At=a;if(_t=at.sh.paths,pt=_t._length,ut){for(vt="",ht=0;ht<pt;ht+=1)ot=_t.shapes[ht],ot&&ot._length&&(vt+=buildShapeString(ot,ot._length,ot.c,At));at.caches[nt]=vt}else vt=at.caches[nt];at.styles[nt].d+=lt.hd===!0?"":vt,at.styles[nt]._mdf=ut||at.styles[nt]._mdf}}function tt(lt,at,ft){var ht=at.style;(at.c._mdf||ft)&&ht.pElem.setAttribute("fill","rgb("+bmFloor(at.c.v[0])+","+bmFloor(at.c.v[1])+","+bmFloor(at.c.v[2])+")"),(at.o._mdf||ft)&&ht.pElem.setAttribute("fill-opacity",at.o.v)}function rt(lt,at,ft){st(lt,at,ft),it(lt,at,ft)}function st(lt,at,ft){var ht=at.gf,pt=at.g._hasOpacity,vt=at.s.v,ut=at.e.v;if(at.o._mdf||ft){var ot=lt.ty==="gf"?"fill-opacity":"stroke-opacity";at.style.pElem.setAttribute(ot,at.o.v)}if(at.s._mdf||ft){var nt=lt.t===1?"x1":"cx",dt=nt==="x1"?"y1":"cy";ht.setAttribute(nt,vt[0]),ht.setAttribute(dt,vt[1]),pt&&!at.g._collapsable&&(at.of.setAttribute(nt,vt[0]),at.of.setAttribute(dt,vt[1]))}var yt,_t,At,xt;if(at.g._cmdf||ft){yt=at.cst;var wt=at.g.c;for(At=yt.length,_t=0;_t<At;_t+=1)xt=yt[_t],xt.setAttribute("offset",wt[_t*4]+"%"),xt.setAttribute("stop-color","rgb("+wt[_t*4+1]+","+wt[_t*4+2]+","+wt[_t*4+3]+")")}if(pt&&(at.g._omdf||ft)){var Tt=at.g.o;for(at.g._collapsable?yt=at.cst:yt=at.ost,At=yt.length,_t=0;_t<At;_t+=1)xt=yt[_t],at.g._collapsable||xt.setAttribute("offset",Tt[_t*2]+"%"),xt.setAttribute("stop-opacity",Tt[_t*2+1])}if(lt.t===1)(at.e._mdf||ft)&&(ht.setAttribute("x2",ut[0]),ht.setAttribute("y2",ut[1]),pt&&!at.g._collapsable&&(at.of.setAttribute("x2",ut[0]),at.of.setAttribute("y2",ut[1])));else{var It;if((at.s._mdf||at.e._mdf||ft)&&(It=Math.sqrt(Math.pow(vt[0]-ut[0],2)+Math.pow(vt[1]-ut[1],2)),ht.setAttribute("r",It),pt&&!at.g._collapsable&&at.of.setAttribute("r",It)),at.s._mdf||at.e._mdf||at.h._mdf||at.a._mdf||ft){It||(It=Math.sqrt(Math.pow(vt[0]-ut[0],2)+Math.pow(vt[1]-ut[1],2)));var Nt=Math.atan2(ut[1]-vt[1],ut[0]-vt[0]),Ct=at.h.v;Ct>=1?Ct=.99:Ct<=-1&&(Ct=-.99);var jt=It*Ct,Et=Math.cos(Nt+at.a.v)*jt+vt[0],gt=Math.sin(Nt+at.a.v)*jt+vt[1];ht.setAttribute("fx",Et),ht.setAttribute("fy",gt),pt&&!at.g._collapsable&&(at.of.setAttribute("fx",Et),at.of.setAttribute("fy",gt))}}}function it(lt,at,ft){var ht=at.style,pt=at.d;pt&&(pt._mdf||ft)&&pt.dashStr&&(ht.pElem.setAttribute("stroke-dasharray",pt.dashStr),ht.pElem.setAttribute("stroke-dashoffset",pt.dashoffset[0])),at.c&&(at.c._mdf||ft)&&ht.pElem.setAttribute("stroke","rgb("+bmFloor(at.c.v[0])+","+bmFloor(at.c.v[1])+","+bmFloor(at.c.v[2])+")"),(at.o._mdf||ft)&&ht.pElem.setAttribute("stroke-opacity",at.o.v),(at.w._mdf||ft)&&(ht.pElem.setAttribute("stroke-width",at.w.v),ht.msElem&&ht.msElem.setAttribute("stroke-width",at.w.v))}return _}();function SVGShapeElement(a,o,_){this.shapes=[],this.shapesData=a.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(a,o,_),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,o=this.shapes.length,_,b,$=this.stylesList.length,_e,et=[],tt=!1;for(b=0;b<$;b+=1){for(_e=this.stylesList[b],tt=!1,et.length=0,a=0;a<o;a+=1)_=this.shapes[a],_.styles.indexOf(_e)!==-1&&(et.push(_),tt=_._isAnimated||tt);et.length>1&&tt&&this.setShapesAsAnimated(et)}},SVGShapeElement.prototype.setShapesAsAnimated=function(a){var o,_=a.length;for(o=0;o<_;o+=1)a[o].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(a,o){var _,b=new SVGStyleData(a,o),$=b.pElem;if(a.ty==="st")_=new SVGStrokeStyleData(this,a,b);else if(a.ty==="fl")_=new SVGFillStyleData(this,a,b);else if(a.ty==="gf"||a.ty==="gs"){var _e=a.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;_=new _e(this,a,b),this.globalData.defs.appendChild(_.gf),_.maskId&&(this.globalData.defs.appendChild(_.ms),this.globalData.defs.appendChild(_.of),$.setAttribute("mask","url("+getLocationHref()+"#"+_.maskId+")"))}else a.ty==="no"&&(_=new SVGNoStyleData(this,a,b));return(a.ty==="st"||a.ty==="gs")&&($.setAttribute("stroke-linecap",lineCapEnum[a.lc||2]),$.setAttribute("stroke-linejoin",lineJoinEnum[a.lj||2]),$.setAttribute("fill-opacity","0"),a.lj===1&&$.setAttribute("stroke-miterlimit",a.ml)),a.r===2&&$.setAttribute("fill-rule","evenodd"),a.ln&&$.setAttribute("id",a.ln),a.cl&&$.setAttribute("class",a.cl),a.bm&&($.style["mix-blend-mode"]=getBlendMode(a.bm)),this.stylesList.push(b),this.addToAnimatedContents(a,_),_},SVGShapeElement.prototype.createGroupElement=function(a){var o=new ShapeGroupData;return a.ln&&o.gr.setAttribute("id",a.ln),a.cl&&o.gr.setAttribute("class",a.cl),a.bm&&(o.gr.style["mix-blend-mode"]=getBlendMode(a.bm)),o},SVGShapeElement.prototype.createTransformElement=function(a,o){var _=TransformPropertyFactory.getTransformProperty(this,a,this),b=new SVGTransformData(_,_.o,o);return this.addToAnimatedContents(a,b),b},SVGShapeElement.prototype.createShapeElement=function(a,o,_){var b=4;a.ty==="rc"?b=5:a.ty==="el"?b=6:a.ty==="sr"&&(b=7);var $=ShapePropertyFactory.getShapeProp(this,a,b,this),_e=new SVGShapeData(o,_,$);return this.shapes.push(_e),this.addShapeToModifiers(_e),this.addToAnimatedContents(a,_e),_e},SVGShapeElement.prototype.addToAnimatedContents=function(a,o){for(var _=0,b=this.animatedContents.length;_<b;){if(this.animatedContents[_].element===o)return;_+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(a),element:o,data:a})},SVGShapeElement.prototype.setElementStyles=function(a){var o=a.styles,_,b=this.stylesList.length;for(_=0;_<b;_+=1)o.indexOf(this.stylesList[_])===-1&&!this.stylesList[_].closed&&o.push(this.stylesList[_])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var a,o=this.itemsData.length;for(a=0;a<o;a+=1)this.prevViewData[a]=this.itemsData[a];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),o=this.dynamicProperties.length,a=0;a<o;a+=1)this.dynamicProperties[a].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(a,o,_,b,$,_e,et){var tt=[].concat(_e),rt,st=a.length-1,it,lt,at=[],ft=[],ht,pt,vt;for(rt=st;rt>=0;rt-=1){if(vt=this.searchProcessedElement(a[rt]),vt?o[rt]=_[vt-1]:a[rt]._render=et,a[rt].ty==="fl"||a[rt].ty==="st"||a[rt].ty==="gf"||a[rt].ty==="gs"||a[rt].ty==="no")vt?o[rt].style.closed=a[rt].hd:o[rt]=this.createStyleElement(a[rt],$),a[rt]._render&&o[rt].style.pElem.parentNode!==b&&b.appendChild(o[rt].style.pElem),at.push(o[rt].style);else if(a[rt].ty==="gr"){if(!vt)o[rt]=this.createGroupElement(a[rt]);else for(lt=o[rt].it.length,it=0;it<lt;it+=1)o[rt].prevViewData[it]=o[rt].it[it];this.searchShapes(a[rt].it,o[rt].it,o[rt].prevViewData,o[rt].gr,$+1,tt,et),a[rt]._render&&o[rt].gr.parentNode!==b&&b.appendChild(o[rt].gr)}else a[rt].ty==="tr"?(vt||(o[rt]=this.createTransformElement(a[rt],b)),ht=o[rt].transform,tt.push(ht)):a[rt].ty==="sh"||a[rt].ty==="rc"||a[rt].ty==="el"||a[rt].ty==="sr"?(vt||(o[rt]=this.createShapeElement(a[rt],tt,$)),this.setElementStyles(o[rt])):a[rt].ty==="tm"||a[rt].ty==="rd"||a[rt].ty==="ms"||a[rt].ty==="pb"||a[rt].ty==="zz"||a[rt].ty==="op"?(vt?(pt=o[rt],pt.closed=!1):(pt=ShapeModifiers.getModifier(a[rt].ty),pt.init(this,a[rt]),o[rt]=pt,this.shapeModifiers.push(pt)),ft.push(pt)):a[rt].ty==="rp"&&(vt?(pt=o[rt],pt.closed=!0):(pt=ShapeModifiers.getModifier(a[rt].ty),o[rt]=pt,pt.init(this,a,rt,o),this.shapeModifiers.push(pt),et=!1),ft.push(pt));this.addProcessedElement(a[rt],rt+1)}for(st=at.length,rt=0;rt<st;rt+=1)at[rt].closed=!0;for(st=ft.length,rt=0;rt<st;rt+=1)ft[rt].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var a,o=this.stylesList.length;for(a=0;a<o;a+=1)this.stylesList[a].reset();for(this.renderShape(),a=0;a<o;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,o=this.animatedContents.length,_;for(a=0;a<o;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,o,_,b,$,_e){this.o=a,this.sw=o,this.sc=_,this.fc=b,this.m=$,this.p=_e,this._mdf={o:!0,sw:!!o,sc:!!_,fc:!!b,m:!0,p:!0}}LetterProps.prototype.update=function(a,o,_,b,$,_e){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 et=!1;return this.o!==a&&(this.o=a,this._mdf.o=!0,et=!0),this.sw!==o&&(this.sw=o,this._mdf.sw=!0,et=!0),this.sc!==_&&(this.sc=_,this._mdf.sc=!0,et=!0),this.fc!==b&&(this.fc=b,this._mdf.fc=!0,et=!0),this.m!==$&&(this.m=$,this._mdf.m=!0,et=!0),_e.length&&(this.p[0]!==_e[0]||this.p[1]!==_e[1]||this.p[4]!==_e[4]||this.p[5]!==_e[5]||this.p[12]!==_e[12]||this.p[13]!==_e[13])&&(this.p=_e,this._mdf.p=!0,et=!0),et};function TextProperty(a,o){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,o.d&&o.d.sid&&(o.d=a.globalData.slotManager.getProp(o.d)),this.data=o,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,o){for(var _ in o)Object.prototype.hasOwnProperty.call(o,_)&&(a[_]=o[_]);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 o=this.currentData,_=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var b,$=this.effectsSequence.length,_e=a||this.data.d.k[this.keysIndex].s;for(b=0;b<$;b+=1)_!==this.keysIndex?_e=this.effectsSequence[b](_e,_e.t):_e=this.effectsSequence[b](this.currentData,_e.t);o!==_e&&this.setCurrentData(_e),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,o=this.elem.comp.renderedFrame,_=0,b=a.length;_<=b-1&&!(_===b-1||a[_+1].t>o);)_+=1;return this.keysIndex!==_&&(this.keysIndex=_),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(a){for(var o=[],_=0,b=a.length,$,_e,et=!1,tt=!1,rt="";_<b;)et=tt,tt=!1,$=a.charCodeAt(_),rt=a.charAt(_),FontManager.isCombinedCharacter($)?et=!0:$>=55296&&$<=56319?FontManager.isRegionalFlag(a,_)?rt=a.substr(_,14):(_e=a.charCodeAt(_+1),_e>=56320&&_e<=57343&&(FontManager.isModifier($,_e)?(rt=a.substr(_,2),et=!0):FontManager.isFlagEmoji(a.substr(_,4))?rt=a.substr(_,4):rt=a.substr(_,2))):$>56319?(_e=a.charCodeAt(_+1),FontManager.isVariationSelector($)&&(et=!0)):FontManager.isZeroWidthJoiner($)&&(et=!0,tt=!0),et?(o[o.length-1]+=rt,et=!1):o.push(rt),_+=rt.length;return o},TextProperty.prototype.completeTextData=function(a){a.__complete=!0;var o=this.elem.globalData.fontManager,_=this.data,b=[],$,_e,et,tt=0,rt,st=_.m.g,it=0,lt=0,at=0,ft=[],ht=0,pt=0,vt,ut,ot=o.getFontByName(a.f),nt,dt=0,yt=getFontProperties(ot);a.fWeight=yt.weight,a.fStyle=yt.style,a.finalSize=a.s,a.finalText=this.buildFinalText(a.t),_e=a.finalText.length,a.finalLineHeight=a.lh;var _t=a.tr/1e3*a.finalSize,At;if(a.sz)for(var xt=!0,wt=a.sz[0],Tt=a.sz[1],It,Nt;xt;){Nt=this.buildFinalText(a.t),It=0,ht=0,_e=Nt.length,_t=a.tr/1e3*a.finalSize;var Ct=-1;for($=0;$<_e;$+=1)At=Nt[$].charCodeAt(0),et=!1,Nt[$]===" "?Ct=$:(At===13||At===3)&&(ht=0,et=!0,It+=a.finalLineHeight||a.finalSize*1.2),o.chars?(nt=o.getCharData(Nt[$],ot.fStyle,ot.fFamily),dt=et?0:nt.w*a.finalSize/100):dt=o.measureText(Nt[$],a.f,a.finalSize),ht+dt>wt&&Nt[$]!==" "?(Ct===-1?_e+=1:$=Ct,It+=a.finalLineHeight||a.finalSize*1.2,Nt.splice($,Ct===$?1:0,"\r"),Ct=-1,ht=0):(ht+=dt,ht+=_t);It+=ot.ascent*a.finalSize/100,this.canResize&&a.finalSize>this.minimumFontSize&&Tt<It?(a.finalSize-=1,a.finalLineHeight=a.finalSize*a.lh/a.s):(a.finalText=Nt,_e=a.finalText.length,xt=!1)}ht=-_t,dt=0;var jt=0,Et;for($=0;$<_e;$+=1)if(et=!1,Et=a.finalText[$],At=Et.charCodeAt(0),At===13||At===3?(jt=0,ft.push(ht),pt=ht>pt?ht:pt,ht=-2*_t,rt="",et=!0,at+=1):rt=Et,o.chars?(nt=o.getCharData(Et,ot.fStyle,o.getFontByName(a.f).fFamily),dt=et?0:nt.w*a.finalSize/100):dt=o.measureText(rt,a.f,a.finalSize),Et===" "?jt+=dt+_t:(ht+=dt+_t+jt,jt=0),b.push({l:dt,an:dt,add:it,n:et,anIndexes:[],val:rt,line:at,animatorJustifyOffset:0}),st==2){if(it+=dt,rt===""||rt===" "||$===_e-1){for((rt===""||rt===" ")&&(it-=dt);lt<=$;)b[lt].an=it,b[lt].ind=tt,b[lt].extra=dt,lt+=1;tt+=1,it=0}}else if(st==3){if(it+=dt,rt===""||$===_e-1){for(rt===""&&(it-=dt);lt<=$;)b[lt].an=it,b[lt].ind=tt,b[lt].extra=dt,lt+=1;it=0,tt+=1}}else b[tt].ind=tt,b[tt].extra=0,tt+=1;if(a.l=b,pt=ht>pt?ht:pt,ft.push(ht),a.sz)a.boxWidth=a.sz[0],a.justifyOffset=0;else switch(a.boxWidth=pt,a.j){case 1:a.justifyOffset=-a.boxWidth;break;case 2:a.justifyOffset=-a.boxWidth/2;break;default:a.justifyOffset=0}a.lineWidths=ft;var gt=_.a,St,ct;ut=gt.length;var mt,Rt,kt=[];for(vt=0;vt<ut;vt+=1){for(St=gt[vt],St.a.sc&&(a.strokeColorAnim=!0),St.a.sw&&(a.strokeWidthAnim=!0),(St.a.fc||St.a.fh||St.a.fs||St.a.fb)&&(a.fillColorAnim=!0),Rt=0,mt=St.s.b,$=0;$<_e;$+=1)ct=b[$],ct.anIndexes[vt]=Rt,(mt==1&&ct.val!==""||mt==2&&ct.val!==""&&ct.val!==" "||mt==3&&(ct.n||ct.val==" "||$==_e-1)||mt==4&&(ct.n||$==_e-1))&&(St.s.rn===1&&kt.push(Rt),Rt+=1);_.a[vt].s.totalChars=Rt;var Dt=-1,bt;if(St.s.rn===1)for($=0;$<_e;$+=1)ct=b[$],Dt!=ct.anIndexes[vt]&&(Dt=ct.anIndexes[vt],bt=kt.splice(Math.floor(Math.random()*kt.length),1)[0]),ct.anIndexes[vt]=bt}a.yOffset=a.finalLineHeight||a.finalSize*1.2,a.ls=a.ls||0,a.ascent=ot.ascent*a.finalSize/100},TextProperty.prototype.updateDocumentData=function(a,o){o=o===void 0?this.keysIndex:o;var _=this.copyData({},this.data.d.k[o].s);_=this.copyData(_,a),this.data.d.k[o].s=_,this.recalculate(o),this.setCurrentData(_),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(a){var o=this.data.d.k[a].s;o.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(o)},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,o=Math.min,_=Math.floor;function b(_e,et){this._currentTextLength=-1,this.k=!1,this.data=et,this.elem=_e,this.comp=_e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(_e),this.s=PropertyFactory.getProp(_e,et.s||{k:0},0,0,this),"e"in et?this.e=PropertyFactory.getProp(_e,et.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(_e,et.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(_e,et.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(_e,et.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(_e,et.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(_e,et.a,0,.01,this),this.dynamicProperties.length||this.getValue()}b.prototype={getMult:function(et){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var tt=0,rt=0,st=1,it=1;this.ne.v>0?tt=this.ne.v/100:rt=-this.ne.v/100,this.xe.v>0?st=1-this.xe.v/100:it=1+this.xe.v/100;var lt=BezierFactory.getBezierEasing(tt,rt,st,it).get,at=0,ft=this.finalS,ht=this.finalE,pt=this.data.sh;if(pt===2)ht===ft?at=et>=ht?1:0:at=a(0,o(.5/(ht-ft)+(et-ft)/(ht-ft),1)),at=lt(at);else if(pt===3)ht===ft?at=et>=ht?0:1:at=1-a(0,o(.5/(ht-ft)+(et-ft)/(ht-ft),1)),at=lt(at);else if(pt===4)ht===ft?at=0:(at=a(0,o(.5/(ht-ft)+(et-ft)/(ht-ft),1)),at<.5?at*=2:at=1-2*(at-.5)),at=lt(at);else if(pt===5){if(ht===ft)at=0;else{var vt=ht-ft;et=o(a(0,et+.5-ft),ht-ft);var ut=-vt/2+et,ot=vt/2;at=Math.sqrt(1-ut*ut/(ot*ot))}at=lt(at)}else pt===6?(ht===ft?at=0:(et=o(a(0,et+.5-ft),ht-ft),at=(1+Math.cos(Math.PI+Math.PI*2*et/(ht-ft)))/2),at=lt(at)):(et>=_(ft)&&(et-ft<0?at=a(0,o(o(ht,1)-(ft-et),1)):at=a(0,o(ht-et,1))),at=lt(at));if(this.sm.v!==100){var nt=this.sm.v*.01;nt===0&&(nt=1e-8);var dt=.5-nt*.5;at<dt?at=0:(at=(at-dt)/nt,at>1&&(at=1))}return at*this.a.v},getValue:function(et){this.iterateDynamicProperties(),this._mdf=et||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,et&&this.data.r===2&&(this.e.v=this._currentTextLength);var tt=this.data.r===2?1:100/this.data.totalChars,rt=this.o.v/tt,st=this.s.v/tt+rt,it=this.e.v/tt+rt;if(st>it){var lt=st;st=it,it=lt}this.finalS=st,this.finalE=it}},extendPrototype([DynamicPropertyContainer],b);function $(_e,et,tt){return new b(_e,et)}return{getTextSelectorProp:$}}();function TextAnimatorDataProperty(a,o,_){var b={propType:!1},$=PropertyFactory.getProp,_e=o.a;this.a={r:_e.r?$(a,_e.r,0,degToRads,_):b,rx:_e.rx?$(a,_e.rx,0,degToRads,_):b,ry:_e.ry?$(a,_e.ry,0,degToRads,_):b,sk:_e.sk?$(a,_e.sk,0,degToRads,_):b,sa:_e.sa?$(a,_e.sa,0,degToRads,_):b,s:_e.s?$(a,_e.s,1,.01,_):b,a:_e.a?$(a,_e.a,1,0,_):b,o:_e.o?$(a,_e.o,0,.01,_):b,p:_e.p?$(a,_e.p,1,0,_):b,sw:_e.sw?$(a,_e.sw,0,0,_):b,sc:_e.sc?$(a,_e.sc,1,0,_):b,fc:_e.fc?$(a,_e.fc,1,0,_):b,fh:_e.fh?$(a,_e.fh,0,0,_):b,fs:_e.fs?$(a,_e.fs,0,.01,_):b,fb:_e.fb?$(a,_e.fb,0,.01,_):b,t:_e.t?$(a,_e.t,0,0,_):b},this.s=TextSelectorProp.getTextSelectorProp(a,o.s,_),this.s.t=o.s.t}function TextAnimatorProperty(a,o,_){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=a,this._renderType=o,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,o=this._textData.a.length,_,b=PropertyFactory.getProp;for(a=0;a<o;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:b(this._elem,this._textData.p.a,0,0,this),f:b(this._elem,this._textData.p.f,0,0,this),l:b(this._elem,this._textData.p.l,0,0,this),r:b(this._elem,this._textData.p.r,0,0,this),p:b(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=b(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(a,o){if(this.lettersChangedFlag=o,!(!this._mdf&&!this._isFirstFrame&&!o&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var _=this._moreOptions.alignment.v,b=this._animatorsData,$=this._textData,_e=this.mHelper,et=this._renderType,tt=this.renderedLetters.length,rt,st,it,lt,at=a.l,ft,ht,pt,vt,ut,ot,nt,dt,yt,_t,At,xt,wt,Tt,It;if(this._hasMaskedPath){if(It=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Nt=It.v;this._pathData.r.v&&(Nt=Nt.reverse()),ft={tLength:0,segments:[]},lt=Nt._length-1;var Ct;for(xt=0,it=0;it<lt;it+=1)Ct=bez.buildBezierData(Nt.v[it],Nt.v[it+1],[Nt.o[it][0]-Nt.v[it][0],Nt.o[it][1]-Nt.v[it][1]],[Nt.i[it+1][0]-Nt.v[it+1][0],Nt.i[it+1][1]-Nt.v[it+1][1]]),ft.tLength+=Ct.segmentLength,ft.segments.push(Ct),xt+=Ct.segmentLength;it=lt,It.v.c&&(Ct=bez.buildBezierData(Nt.v[it],Nt.v[0],[Nt.o[it][0]-Nt.v[it][0],Nt.o[it][1]-Nt.v[it][1]],[Nt.i[0][0]-Nt.v[0][0],Nt.i[0][1]-Nt.v[0][1]]),ft.tLength+=Ct.segmentLength,ft.segments.push(Ct),xt+=Ct.segmentLength),this._pathData.pi=ft}if(ft=this._pathData.pi,ht=this._pathData.f.v,nt=0,ot=1,vt=0,ut=!0,_t=ft.segments,ht<0&&It.v.c)for(ft.tLength<Math.abs(ht)&&(ht=-Math.abs(ht)%ft.tLength),nt=_t.length-1,yt=_t[nt].points,ot=yt.length-1;ht<0;)ht+=yt[ot].partialLength,ot-=1,ot<0&&(nt-=1,yt=_t[nt].points,ot=yt.length-1);yt=_t[nt].points,dt=yt[ot-1],pt=yt[ot],At=pt.partialLength}lt=at.length,rt=0,st=0;var jt=a.finalSize*1.2*.714,Et=!0,gt,St,ct,mt,Rt;mt=b.length;var kt,Dt=-1,bt,Ht,Pt,Lt=ht,Bt=nt,$t=ot,Vt=-1,Gt,zt,Qt,Kt,Ut,Jt,ur,ir,tr="",Zt=this.defaultPropsArray,Xt;if(a.j===2||a.j===1){var Mt=0,Ft=0,ar=a.j===2?-.5:-1,qt=0,sr=!0;for(it=0;it<lt;it+=1)if(at[it].n){for(Mt&&(Mt+=Ft);qt<it;)at[qt].animatorJustifyOffset=Mt,qt+=1;Mt=0,sr=!0}else{for(ct=0;ct<mt;ct+=1)gt=b[ct].a,gt.t.propType&&(sr&&a.j===2&&(Ft+=gt.t.v*ar),St=b[ct].s,kt=St.getMult(at[it].anIndexes[ct],$.a[ct].s.totalChars),kt.length?Mt+=gt.t.v*kt[0]*ar:Mt+=gt.t.v*kt*ar);sr=!1}for(Mt&&(Mt+=Ft);qt<it;)at[qt].animatorJustifyOffset=Mt,qt+=1}for(it=0;it<lt;it+=1){if(_e.reset(),Gt=1,at[it].n)rt=0,st+=a.yOffset,st+=Et?1:0,ht=Lt,Et=!1,this._hasMaskedPath&&(nt=Bt,ot=$t,yt=_t[nt].points,dt=yt[ot-1],pt=yt[ot],At=pt.partialLength,vt=0),tr="",ir="",Jt="",Xt="",Zt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Vt!==at[it].line){switch(a.j){case 1:ht+=xt-a.lineWidths[at[it].line];break;case 2:ht+=(xt-a.lineWidths[at[it].line])/2;break}Vt=at[it].line}Dt!==at[it].ind&&(at[Dt]&&(ht+=at[Dt].extra),ht+=at[it].an/2,Dt=at[it].ind),ht+=_[0]*at[it].an*.005;var cr=0;for(ct=0;ct<mt;ct+=1)gt=b[ct].a,gt.p.propType&&(St=b[ct].s,kt=St.getMult(at[it].anIndexes[ct],$.a[ct].s.totalChars),kt.length?cr+=gt.p.v[0]*kt[0]:cr+=gt.p.v[0]*kt),gt.a.propType&&(St=b[ct].s,kt=St.getMult(at[it].anIndexes[ct],$.a[ct].s.totalChars),kt.length?cr+=gt.a.v[0]*kt[0]:cr+=gt.a.v[0]*kt);for(ut=!0,this._pathData.a.v&&(ht=at[0].an*.5+(xt-this._pathData.f.v-at[0].an*.5-at[at.length-1].an*.5)*Dt/(lt-1),ht+=this._pathData.f.v);ut;)vt+At>=ht+cr||!yt?(wt=(ht+cr-vt)/pt.partialLength,Ht=dt.point[0]+(pt.point[0]-dt.point[0])*wt,Pt=dt.point[1]+(pt.point[1]-dt.point[1])*wt,_e.translate(-_[0]*at[it].an*.005,-(_[1]*jt)*.01),ut=!1):yt&&(vt+=pt.partialLength,ot+=1,ot>=yt.length&&(ot=0,nt+=1,_t[nt]?yt=_t[nt].points:It.v.c?(ot=0,nt=0,yt=_t[nt].points):(vt-=pt.partialLength,yt=null)),yt&&(dt=pt,pt=yt[ot],At=pt.partialLength));bt=at[it].an/2-at[it].add,_e.translate(-bt,0,0)}else bt=at[it].an/2-at[it].add,_e.translate(-bt,0,0),_e.translate(-_[0]*at[it].an*.005,-_[1]*jt*.01,0);for(ct=0;ct<mt;ct+=1)gt=b[ct].a,gt.t.propType&&(St=b[ct].s,kt=St.getMult(at[it].anIndexes[ct],$.a[ct].s.totalChars),(rt!==0||a.j!==0)&&(this._hasMaskedPath?kt.length?ht+=gt.t.v*kt[0]:ht+=gt.t.v*kt:kt.length?rt+=gt.t.v*kt[0]:rt+=gt.t.v*kt));for(a.strokeWidthAnim&&(Qt=a.sw||0),a.strokeColorAnim&&(a.sc?zt=[a.sc[0],a.sc[1],a.sc[2]]:zt=[0,0,0]),a.fillColorAnim&&a.fc&&(Kt=[a.fc[0],a.fc[1],a.fc[2]]),ct=0;ct<mt;ct+=1)gt=b[ct].a,gt.a.propType&&(St=b[ct].s,kt=St.getMult(at[it].anIndexes[ct],$.a[ct].s.totalChars),kt.length?_e.translate(-gt.a.v[0]*kt[0],-gt.a.v[1]*kt[1],gt.a.v[2]*kt[2]):_e.translate(-gt.a.v[0]*kt,-gt.a.v[1]*kt,gt.a.v[2]*kt));for(ct=0;ct<mt;ct+=1)gt=b[ct].a,gt.s.propType&&(St=b[ct].s,kt=St.getMult(at[it].anIndexes[ct],$.a[ct].s.totalChars),kt.length?_e.scale(1+(gt.s.v[0]-1)*kt[0],1+(gt.s.v[1]-1)*kt[1],1):_e.scale(1+(gt.s.v[0]-1)*kt,1+(gt.s.v[1]-1)*kt,1));for(ct=0;ct<mt;ct+=1){if(gt=b[ct].a,St=b[ct].s,kt=St.getMult(at[it].anIndexes[ct],$.a[ct].s.totalChars),gt.sk.propType&&(kt.length?_e.skewFromAxis(-gt.sk.v*kt[0],gt.sa.v*kt[1]):_e.skewFromAxis(-gt.sk.v*kt,gt.sa.v*kt)),gt.r.propType&&(kt.length?_e.rotateZ(-gt.r.v*kt[2]):_e.rotateZ(-gt.r.v*kt)),gt.ry.propType&&(kt.length?_e.rotateY(gt.ry.v*kt[1]):_e.rotateY(gt.ry.v*kt)),gt.rx.propType&&(kt.length?_e.rotateX(gt.rx.v*kt[0]):_e.rotateX(gt.rx.v*kt)),gt.o.propType&&(kt.length?Gt+=(gt.o.v*kt[0]-Gt)*kt[0]:Gt+=(gt.o.v*kt-Gt)*kt),a.strokeWidthAnim&&gt.sw.propType&&(kt.length?Qt+=gt.sw.v*kt[0]:Qt+=gt.sw.v*kt),a.strokeColorAnim&&gt.sc.propType)for(Ut=0;Ut<3;Ut+=1)kt.length?zt[Ut]+=(gt.sc.v[Ut]-zt[Ut])*kt[0]:zt[Ut]+=(gt.sc.v[Ut]-zt[Ut])*kt;if(a.fillColorAnim&&a.fc){if(gt.fc.propType)for(Ut=0;Ut<3;Ut+=1)kt.length?Kt[Ut]+=(gt.fc.v[Ut]-Kt[Ut])*kt[0]:Kt[Ut]+=(gt.fc.v[Ut]-Kt[Ut])*kt;gt.fh.propType&&(kt.length?Kt=addHueToRGB(Kt,gt.fh.v*kt[0]):Kt=addHueToRGB(Kt,gt.fh.v*kt)),gt.fs.propType&&(kt.length?Kt=addSaturationToRGB(Kt,gt.fs.v*kt[0]):Kt=addSaturationToRGB(Kt,gt.fs.v*kt)),gt.fb.propType&&(kt.length?Kt=addBrightnessToRGB(Kt,gt.fb.v*kt[0]):Kt=addBrightnessToRGB(Kt,gt.fb.v*kt))}}for(ct=0;ct<mt;ct+=1)gt=b[ct].a,gt.p.propType&&(St=b[ct].s,kt=St.getMult(at[it].anIndexes[ct],$.a[ct].s.totalChars),this._hasMaskedPath?kt.length?_e.translate(0,gt.p.v[1]*kt[0],-gt.p.v[2]*kt[1]):_e.translate(0,gt.p.v[1]*kt,-gt.p.v[2]*kt):kt.length?_e.translate(gt.p.v[0]*kt[0],gt.p.v[1]*kt[1],-gt.p.v[2]*kt[2]):_e.translate(gt.p.v[0]*kt,gt.p.v[1]*kt,-gt.p.v[2]*kt));if(a.strokeWidthAnim&&(Jt=Qt<0?0:Qt),a.strokeColorAnim&&(ur="rgb("+Math.round(zt[0]*255)+","+Math.round(zt[1]*255)+","+Math.round(zt[2]*255)+")"),a.fillColorAnim&&a.fc&&(ir="rgb("+Math.round(Kt[0]*255)+","+Math.round(Kt[1]*255)+","+Math.round(Kt[2]*255)+")"),this._hasMaskedPath){if(_e.translate(0,-a.ls),_e.translate(0,_[1]*jt*.01+st,0),this._pathData.p.v){Tt=(pt.point[1]-dt.point[1])/(pt.point[0]-dt.point[0]);var xr=Math.atan(Tt)*180/Math.PI;pt.point[0]<dt.point[0]&&(xr+=180),_e.rotate(-xr*Math.PI/180)}_e.translate(Ht,Pt,0),ht-=_[0]*at[it].an*.005,at[it+1]&&Dt!==at[it+1].ind&&(ht+=at[it].an/2,ht+=a.tr*.001*a.finalSize)}else{switch(_e.translate(rt,st,0),a.ps&&_e.translate(a.ps[0],a.ps[1]+a.ascent,0),a.j){case 1:_e.translate(at[it].animatorJustifyOffset+a.justifyOffset+(a.boxWidth-a.lineWidths[at[it].line]),0,0);break;case 2:_e.translate(at[it].animatorJustifyOffset+a.justifyOffset+(a.boxWidth-a.lineWidths[at[it].line])/2,0,0);break}_e.translate(0,-a.ls),_e.translate(bt,0,0),_e.translate(_[0]*at[it].an*.005,_[1]*jt*.01,0),rt+=at[it].l+a.tr*.001*a.finalSize}et==="html"?tr=_e.toCSS():et==="svg"?tr=_e.to2dCSS():Zt=[_e.props[0],_e.props[1],_e.props[2],_e.props[3],_e.props[4],_e.props[5],_e.props[6],_e.props[7],_e.props[8],_e.props[9],_e.props[10],_e.props[11],_e.props[12],_e.props[13],_e.props[14],_e.props[15]],Xt=Gt}tt<=it?(Rt=new LetterProps(Xt,Jt,ur,ir,tr,Zt),this.renderedLetters.push(Rt),tt+=1,this.lettersChangedFlag=!0):(Rt=this.renderedLetters[it],this.lettersChangedFlag=Rt.update(Xt,Jt,ur,ir,tr,Zt)||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,o,_){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(a,o,_),this.textProperty=new TextProperty(this,a.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(a.t,this.renderType,this),this.initTransform(a,o,_),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,o){var _,b=o.length,$,_e="";for(_=0;_<b;_+=1)o[_].ty==="sh"&&($=o[_].ks.k,_e+=buildShapeString($,$.i.length,!0,a));return _e},ITextElement.prototype.updateDocumentData=function(a,o){this.textProperty.updateDocumentData(a,o)},ITextElement.prototype.canResizeFont=function(a){this.textProperty.canResizeFont(a)},ITextElement.prototype.setMinimumFontSize=function(a){this.textProperty.setMinimumFontSize(a)},ITextElement.prototype.applyTextPropertiesToMatrix=function(a,o,_,b,$){switch(a.ps&&o.translate(a.ps[0],a.ps[1]+a.ascent,0),o.translate(0,-a.ls,0),a.j){case 1:o.translate(a.justifyOffset+(a.boxWidth-a.lineWidths[_]),0,0);break;case 2:o.translate(a.justifyOffset+(a.boxWidth-a.lineWidths[_])/2,0,0);break}o.translate(b,$,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,o,_){this.textSpans=[],this.renderType="svg",this.initElement(a,o,_)}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 o=0,_=a.length,b=[],$="";o<_;)a[o]==="\r"||a[o]===""?(b.push($),$=""):$+=a[o],o+=1;return b.push($),b},SVGTextLottieElement.prototype.buildShapeData=function(a,o){if(a.shapes&&a.shapes.length){var _=a.shapes[0];if(_.it){var b=_.it[_.it.length-1];b.s&&(b.s.k[0]=o,b.s.k[1]=o)}}return a},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var a,o,_=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 b=this.globalData.fontManager.getFontByName(_.f);if(b.fClass)this.layerElement.setAttribute("class",b.fClass);else{this.layerElement.setAttribute("font-family",b.fFamily);var $=_.fWeight,_e=_.fStyle;this.layerElement.setAttribute("font-style",_e),this.layerElement.setAttribute("font-weight",$)}this.layerElement.setAttribute("aria-label",_.t);var et=_.l||[],tt=!!this.globalData.fontManager.chars;o=et.length;var rt,st=this.mHelper,it="",lt=this.data.singleShape,at=0,ft=0,ht=!0,pt=_.tr*.001*_.finalSize;if(lt&&!tt&&!_.sz){var vt=this.textContainer,ut="start";switch(_.j){case 1:ut="end";break;case 2:ut="middle";break;default:ut="start";break}vt.setAttribute("text-anchor",ut),vt.setAttribute("letter-spacing",pt);var ot=this.buildTextContents(_.finalText);for(o=ot.length,ft=_.ps?_.ps[1]+_.ascent:0,a=0;a<o;a+=1)rt=this.textSpans[a].span||createNS("tspan"),rt.textContent=ot[a],rt.setAttribute("x",0),rt.setAttribute("y",ft),rt.style.display="inherit",vt.appendChild(rt),this.textSpans[a]||(this.textSpans[a]={span:null,glyph:null}),this.textSpans[a].span=rt,ft+=_.finalLineHeight;this.layerElement.appendChild(vt)}else{var nt=this.textSpans.length,dt;for(a=0;a<o;a+=1){if(this.textSpans[a]||(this.textSpans[a]={span:null,childSpan:null,glyph:null}),!tt||!lt||a===0){if(rt=nt>a?this.textSpans[a].span:createNS(tt?"g":"text"),nt<=a){if(rt.setAttribute("stroke-linecap","butt"),rt.setAttribute("stroke-linejoin","round"),rt.setAttribute("stroke-miterlimit","4"),this.textSpans[a].span=rt,tt){var yt=createNS("g");rt.appendChild(yt),this.textSpans[a].childSpan=yt}this.textSpans[a].span=rt,this.layerElement.appendChild(rt)}rt.style.display="inherit"}if(st.reset(),lt&&(et[a].n&&(at=-pt,ft+=_.yOffset,ft+=ht?1:0,ht=!1),this.applyTextPropertiesToMatrix(_,st,et[a].line,at,ft),at+=et[a].l||0,at+=pt),tt){dt=this.globalData.fontManager.getCharData(_.finalText[a],b.fStyle,this.globalData.fontManager.getFontByName(_.f).fFamily);var _t;if(dt.t===1)_t=new SVGCompElement(dt.data,this.globalData,this);else{var At=emptyShapeData;dt.data&&dt.data.shapes&&(At=this.buildShapeData(dt.data,_.finalSize)),_t=new SVGShapeElement(At,this.globalData,this)}if(this.textSpans[a].glyph){var xt=this.textSpans[a].glyph;this.textSpans[a].childSpan.removeChild(xt.layerElement),xt.destroy()}this.textSpans[a].glyph=_t,_t._debug=!0,_t.prepareFrame(0),_t.renderFrame(),this.textSpans[a].childSpan.appendChild(_t.layerElement),dt.t===1&&this.textSpans[a].childSpan.setAttribute("transform","scale("+_.finalSize/100+","+_.finalSize/100+")")}else lt&&rt.setAttribute("transform","translate("+st.props[12]+","+st.props[13]+")"),rt.textContent=et[a].val,rt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}lt&&rt&&rt.setAttribute("d",it)}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,o=this.textSpans.length,_;for(this.renderedFrame=this.comp.renderedFrame,a=0;a<o;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,o,_=this.textAnimator.renderedLetters,b=this.textProperty.currentData.l;o=b.length;var $,_e,et;for(a=0;a<o;a+=1)b[a].n||($=_[a],_e=this.textSpans[a].span,et=this.textSpans[a].glyph,et&&et.renderFrame(),$._mdf.m&&_e.setAttribute("transform",$.m),$._mdf.o&&_e.setAttribute("opacity",$.o),$._mdf.sw&&_e.setAttribute("stroke-width",$.sw),$._mdf.sc&&_e.setAttribute("stroke",$.sc),$._mdf.fc&&_e.setAttribute("fill",$.fc))}};function ISolidElement(a,o,_){this.initElement(a,o,_)}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,o,_){this.initFrame(),this.initBaseData(a,o,_),this.initFrame(),this.initTransform(a,o,_),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 o=this.globalData.defs;this.setupGlobalData(a,o),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=a;var _=createNS("clipPath"),b=createNS("rect");b.setAttribute("width",a.w),b.setAttribute("height",a.h),b.setAttribute("x",0),b.setAttribute("y",0);var $=createElementID();_.setAttribute("id",$),_.appendChild(b),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+$+")"),o.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,o=this.layers?this.layers.length:0;for(a=0;a<o;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 o=0,_=this.layers.length;for(o=0;o<_;o+=1)if(this.layers[o].ind===a)return o;return-1},SVGRendererBase.prototype.buildItem=function(a){var o=this.elements;if(!(o[a]||this.layers[a].ty===99)){o[a]=!0;var _=this.createItem(this.layers[a]);if(o[a]=_,getExpressionsPlugin()&&(this.layers[a].ty===0&&this.globalData.projectInterface.registerComposition(_),_.initExpressions()),this.appendElementInPos(_,a),this.layers[a].tt){var b="tp"in this.layers[a]?this.findIndexByInd(this.layers[a].tp):a-1;if(b===-1)return;if(!this.elements[b]||this.elements[b]===!0)this.buildItem(b),this.addPendingElement(_);else{var $=o[b],_e=$.getMatte(this.layers[a].tt);_.setMatte(_e)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var a=this.pendingElements.pop();if(a.checkParenting(),a.data.tt)for(var o=0,_=this.elements.length;o<_;){if(this.elements[o]===a){var b="tp"in a.data?this.findIndexByInd(a.data.tp):o-1,$=this.elements[b],_e=$.getMatte(this.layers[o].tt);a.setMatte(_e);break}o+=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 o,_=this.layers.length;for(this.completeLayers||this.checkLayers(a),o=_-1;o>=0;o-=1)(this.completeLayers||this.elements[o])&&this.elements[o].prepareFrame(a-this.layers[o].st);if(this.globalData._mdf)for(o=0;o<_;o+=1)(this.completeLayers||this.elements[o])&&this.elements[o].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(a,o){var _=a.getBaseElement();if(_){for(var b=0,$;b<o;)this.elements[b]&&this.elements[b]!==!0&&this.elements[b].getBaseElement()&&($=this.elements[b].getBaseElement()),b+=1;$?this.layerElement.insertBefore(_,$):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,o,_){this.initFrame(),this.initBaseData(a,o,_),this.initTransform(a,o,_),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!o.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 o=this.tm.v;o===this.data.op&&(o=this.data.op-1),this.renderedFrame=o}var _,b=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),_=b-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,o=this.layers.length;for(a=0;a<o;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,o=this.layers.length;for(a=0;a<o;a+=1)this.elements[a]&&this.elements[a].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(a,o,_){this.layers=a.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(a,o,_),this.tm=a.tm?PropertyFactory.getProp(this,a.tm,0,o.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(a){return new SVGCompElement(a,this.globalData,this)};function SVGRenderer(a,o){this.animationItem=a,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var _="";if(o&&o.title){var b=createNS("title"),$=createElementID();b.setAttribute("id",$),b.textContent=o.title,this.svgElement.appendChild(b),_+=$}if(o&&o.description){var _e=createNS("desc"),et=createElementID();_e.setAttribute("id",et),_e.textContent=o.description,this.svgElement.appendChild(_e),_+=" "+et}_&&this.svgElement.setAttribute("aria-labelledby",_);var tt=createNS("defs");this.svgElement.appendChild(tt);var rt=createNS("g");this.svgElement.appendChild(rt),this.layerElement=rt,this.renderConfig={preserveAspectRatio:o&&o.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:o&&o.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:o&&o.contentVisibility||"visible",progressiveLoad:o&&o.progressiveLoad||!1,hideOnTransparent:!(o&&o.hideOnTransparent===!1),viewBoxOnly:o&&o.viewBoxOnly||!1,viewBoxSize:o&&o.viewBoxSize||!1,className:o&&o.className||"",id:o&&o.id||"",focusable:o&&o.focusable,filterSize:{width:o&&o.filterSize&&o.filterSize.width||"100%",height:o&&o.filterSize&&o.filterSize.height||"100%",x:o&&o.filterSize&&o.filterSize.x||"0%",y:o&&o.filterSize&&o.filterSize.y||"0%"},width:o&&o.width,height:o&&o.height,runExpressions:!o||o.runExpressions===void 0||o.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:tt,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(o){var _,b=o.length,$="_";for(_=0;_<b;_+=1)$+=o[_].transform.key+"_";var _e=this.sequences[$];return _e||(_e={transforms:[].concat(o),finalTransform:new Matrix,_mdf:!1},this.sequences[$]=_e,this.sequenceList.push(_e)),_e},processSequence:function(o,_){for(var b=0,$=o.transforms.length,_e=_;b<$&&!_;){if(o.transforms[b].transform.mProps._mdf){_e=!0;break}b+=1}if(_e)for(o.finalTransform.reset(),b=$-1;b>=0;b-=1)o.finalTransform.multiply(o.transforms[b].transform.mProps.v);o._mdf=_e},processSequences:function(o){var _,b=this.sequenceList.length;for(_=0;_<b;_+=1)this.processSequence(this.sequenceList[_],o)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var o="__lottie_element_luma_buffer",_=null,b=null,$=null;function _e(){var rt=createNS("svg"),st=createNS("filter"),it=createNS("feColorMatrix");return st.setAttribute("id",o),it.setAttribute("type","matrix"),it.setAttribute("color-interpolation-filters","sRGB"),it.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"),st.appendChild(it),rt.appendChild(st),rt.setAttribute("id",o+"_svg"),featureSupport.svgLumaHidden&&(rt.style.display="none"),rt}function et(){_||($=_e(),document.body.appendChild($),_=createTag("canvas"),b=_.getContext("2d"),b.filter="url(#"+o+")",b.fillStyle="rgba(0,0,0,0)",b.fillRect(0,0,1,1))}function tt(rt){return _||et(),_.width=rt.width,_.height=rt.height,b.filter="url(#"+o+")",_}return{load:et,get:tt}};function createCanvas(a,o){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(a,o);var _=createTag("canvas");return _.width=a,_.height=o,_}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(a){var o,_=a.data.ef?a.data.ef.length:0;this.filters=[];var b;for(o=0;o<_;o+=1){b=null;var $=a.data.ef[o].ty;if(registeredEffects[$]){var _e=registeredEffects[$].effect;b=new _e(a.effectsManager.effectElements[o],a)}b&&this.filters.push(b)}this.filters.length&&a.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(a){var o,_=this.filters.length;for(o=0;o<_;o+=1)this.filters[o].renderFrame(a)},CVEffects.prototype.getEffects=function(a){var o,_=this.filters.length,b=[];for(o=0;o<_;o+=1)this.filters[o].type===a&&b.push(this.filters[o]);return b};function registerEffect(a,o){registeredEffects[a]={effect:o}}function CVMaskElement(a,o){this.data=a,this.element=o,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var _,b=this.masksProperties.length,$=!1;for(_=0;_<b;_+=1)this.masksProperties[_].mode!=="n"&&($=!0),this.viewData[_]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[_],3);this.hasMasks=$,$&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var a=this.element.finalTransform.mat,o=this.element.canvasContext,_,b=this.masksProperties.length,$,_e,et;for(o.beginPath(),_=0;_<b;_+=1)if(this.masksProperties[_].mode!=="n"){this.masksProperties[_].inv&&(o.moveTo(0,0),o.lineTo(this.element.globalData.compSize.w,0),o.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),o.lineTo(0,this.element.globalData.compSize.h),o.lineTo(0,0)),et=this.viewData[_].v,$=a.applyToPointArray(et.v[0][0],et.v[0][1],0),o.moveTo($[0],$[1]);var tt,rt=et._length;for(tt=1;tt<rt;tt+=1)_e=a.applyToTriplePoints(et.o[tt-1],et.i[tt],et.v[tt]),o.bezierCurveTo(_e[0],_e[1],_e[2],_e[3],_e[4],_e[5]);_e=a.applyToTriplePoints(et.o[tt-1],et.i[0],et.v[0]),o.bezierCurveTo(_e[0],_e[1],_e[2],_e[3],_e[4],_e[5])}this.element.globalData.renderer.save(!0),o.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 o=this.globalData.canvasContext,_=assetLoader.createCanvas(o.canvas.width,o.canvas.height);this.buffers.push(_);var b=assetLoader.createCanvas(o.canvas.width,o.canvas.height);this.buffers.push(b),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 o=this.globalData;if(o.blendMode!==this.data.bm){o.blendMode=this.data.bm;var _=getBlendMode(this.data.bm);o.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(o){o.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 o=this.buffers[0],_=o.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 o=this.buffers[1],_=o.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 b=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(b.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var $=assetLoader.getLumaCanvas(this.canvasContext.canvas),_e=$.getContext("2d");_e.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage($,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(o,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(o){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!o)){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,o,_,b){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var $=4;o.ty==="rc"?$=5:o.ty==="el"?$=6:o.ty==="sr"&&($=7),this.sh=ShapePropertyFactory.getShapeProp(a,o,$,a);var _e,et=_.length,tt;for(_e=0;_e<et;_e+=1)_[_e].closed||(tt={transforms:b.addTransformSequence(_[_e].transforms),trNodes:[]},this.styledShapes.push(tt),_[_e].elements.push(tt))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(a,o,_){this.shapes=[],this.shapesData=a.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(a,o,_)}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,o){var _={data:a,type:a.ty,preTransforms:this.transformsManager.addTransformSequence(o),transforms:[],elements:[],closed:a.hd===!0},b={};if(a.ty==="fl"||a.ty==="st"?(b.c=PropertyFactory.getProp(this,a.c,1,255,this),b.c.k||(_.co="rgb("+bmFloor(b.c.v[0])+","+bmFloor(b.c.v[1])+","+bmFloor(b.c.v[2])+")")):(a.ty==="gf"||a.ty==="gs")&&(b.s=PropertyFactory.getProp(this,a.s,1,null,this),b.e=PropertyFactory.getProp(this,a.e,1,null,this),b.h=PropertyFactory.getProp(this,a.h||{k:0},0,.01,this),b.a=PropertyFactory.getProp(this,a.a||{k:0},0,degToRads,this),b.g=new GradientProperty(this,a.g,this)),b.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),b.w=PropertyFactory.getProp(this,a.w,0,null,this),b.w.k||(_.wi=b.w.v),a.d){var $=new DashProperty(this,a.d,"canvas",this);b.d=$,b.d.k||(_.da=b.d.dashArray,_.do=b.d.dashoffset[0])}}else _.r=a.r===2?"evenodd":"nonzero";return this.stylesList.push(_),b.style=_,b},CVShapeElement.prototype.createGroupElement=function(){var a={it:[],prevViewData:[]};return a},CVShapeElement.prototype.createTransformElement=function(a){var o={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 o},CVShapeElement.prototype.createShapeElement=function(a){var o=new CVShapeData(this,a,this.stylesList,this.transformsManager);return this.shapes.push(o),this.addShapeToModifiers(o),o},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var a,o=this.itemsData.length;for(a=0;a<o;a+=1)this.prevViewData[a]=this.itemsData[a];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),o=this.dynamicProperties.length,a=0;a<o;a+=1)this.dynamicProperties[a].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(a){var o,_=this.stylesList.length;for(o=0;o<_;o+=1)this.stylesList[o].closed||this.stylesList[o].transforms.push(a)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var a,o=this.stylesList.length;for(a=0;a<o;a+=1)this.stylesList[a].closed||this.stylesList[a].transforms.pop()},CVShapeElement.prototype.closeStyles=function(a){var o,_=a.length;for(o=0;o<_;o+=1)a[o].closed=!0},CVShapeElement.prototype.searchShapes=function(a,o,_,b,$){var _e,et=a.length-1,tt,rt,st=[],it=[],lt,at,ft,ht=[].concat($);for(_e=et;_e>=0;_e-=1){if(lt=this.searchProcessedElement(a[_e]),lt?o[_e]=_[lt-1]:a[_e]._shouldRender=b,a[_e].ty==="fl"||a[_e].ty==="st"||a[_e].ty==="gf"||a[_e].ty==="gs")lt?o[_e].style.closed=!1:o[_e]=this.createStyleElement(a[_e],ht),st.push(o[_e].style);else if(a[_e].ty==="gr"){if(!lt)o[_e]=this.createGroupElement(a[_e]);else for(rt=o[_e].it.length,tt=0;tt<rt;tt+=1)o[_e].prevViewData[tt]=o[_e].it[tt];this.searchShapes(a[_e].it,o[_e].it,o[_e].prevViewData,b,ht)}else a[_e].ty==="tr"?(lt||(ft=this.createTransformElement(a[_e]),o[_e]=ft),ht.push(o[_e]),this.addTransformToStyleList(o[_e])):a[_e].ty==="sh"||a[_e].ty==="rc"||a[_e].ty==="el"||a[_e].ty==="sr"?lt||(o[_e]=this.createShapeElement(a[_e])):a[_e].ty==="tm"||a[_e].ty==="rd"||a[_e].ty==="pb"||a[_e].ty==="zz"||a[_e].ty==="op"?(lt?(at=o[_e],at.closed=!1):(at=ShapeModifiers.getModifier(a[_e].ty),at.init(this,a[_e]),o[_e]=at,this.shapeModifiers.push(at)),it.push(at)):a[_e].ty==="rp"&&(lt?(at=o[_e],at.closed=!0):(at=ShapeModifiers.getModifier(a[_e].ty),o[_e]=at,at.init(this,a,_e,o),this.shapeModifiers.push(at),b=!1),it.push(at));this.addProcessedElement(a[_e],_e+1)}for(this.removeTransformFromStyleList(),this.closeStyles(st),et=it.length,_e=0;_e<et;_e+=1)it[_e].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,o){(a._opMdf||o.op._mdf||this._isFirstFrame)&&(o.opacity=a.opacity,o.opacity*=o.op.v,o._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var a,o=this.stylesList.length,_,b,$,_e,et,tt,rt=this.globalData.renderer,st=this.globalData.canvasContext,it,lt;for(a=0;a<o;a+=1)if(lt=this.stylesList[a],it=lt.type,!((it==="st"||it==="gs")&&lt.wi===0||!lt.data._shouldRender||lt.coOp===0||this.globalData.currentGlobalAlpha===0)){for(rt.save(),et=lt.elements,it==="st"||it==="gs"?(rt.ctxStrokeStyle(it==="st"?lt.co:lt.grd),rt.ctxLineWidth(lt.wi),rt.ctxLineCap(lt.lc),rt.ctxLineJoin(lt.lj),rt.ctxMiterLimit(lt.ml||0)):rt.ctxFillStyle(it==="fl"?lt.co:lt.grd),rt.ctxOpacity(lt.coOp),it!=="st"&&it!=="gs"&&st.beginPath(),rt.ctxTransform(lt.preTransforms.finalTransform.props),b=et.length,_=0;_<b;_+=1){for((it==="st"||it==="gs")&&(st.beginPath(),lt.da&&(st.setLineDash(lt.da),st.lineDashOffset=lt.do)),tt=et[_].trNodes,_e=tt.length,$=0;$<_e;$+=1)tt[$].t==="m"?st.moveTo(tt[$].p[0],tt[$].p[1]):tt[$].t==="c"?st.bezierCurveTo(tt[$].pts[0],tt[$].pts[1],tt[$].pts[2],tt[$].pts[3],tt[$].pts[4],tt[$].pts[5]):st.closePath();(it==="st"||it==="gs")&&(rt.ctxStroke(),lt.da&&st.setLineDash(this.dashResetter))}it!=="st"&&it!=="gs"&&this.globalData.renderer.ctxFill(lt.r),rt.restore()}},CVShapeElement.prototype.renderShape=function(a,o,_,b){var $,_e=o.length-1,et;for(et=a,$=_e;$>=0;$-=1)o[$].ty==="tr"?(et=_[$].transform,this.renderShapeTransform(a,et)):o[$].ty==="sh"||o[$].ty==="el"||o[$].ty==="rc"||o[$].ty==="sr"?this.renderPath(o[$],_[$]):o[$].ty==="fl"?this.renderFill(o[$],_[$],et):o[$].ty==="st"?this.renderStroke(o[$],_[$],et):o[$].ty==="gf"||o[$].ty==="gs"?this.renderGradientFill(o[$],_[$],et):o[$].ty==="gr"?this.renderShape(et,o[$].it,_[$].it):o[$].ty;b&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(a,o){if(this._isFirstFrame||o._mdf||a.transforms._mdf){var _=a.trNodes,b=o.paths,$,_e,et,tt=b._length;_.length=0;var rt=a.transforms.finalTransform;for(et=0;et<tt;et+=1){var st=b.shapes[et];if(st&&st.v){for(_e=st._length,$=1;$<_e;$+=1)$===1&&_.push({t:"m",p:rt.applyToPointArray(st.v[0][0],st.v[0][1],0)}),_.push({t:"c",pts:rt.applyToTriplePoints(st.o[$-1],st.i[$],st.v[$])});_e===1&&_.push({t:"m",p:rt.applyToPointArray(st.v[0][0],st.v[0][1],0)}),st.c&&_e&&(_.push({t:"c",pts:rt.applyToTriplePoints(st.o[$-1],st.i[0],st.v[0])}),_.push({t:"z"}))}}a.trNodes=_}},CVShapeElement.prototype.renderPath=function(a,o){if(a.hd!==!0&&a._shouldRender){var _,b=o.styledShapes.length;for(_=0;_<b;_+=1)this.renderStyledShape(o.styledShapes[_],o.sh)}},CVShapeElement.prototype.renderFill=function(a,o,_){var b=o.style;(o.c._mdf||this._isFirstFrame)&&(b.co="rgb("+bmFloor(o.c.v[0])+","+bmFloor(o.c.v[1])+","+bmFloor(o.c.v[2])+")"),(o.o._mdf||_._opMdf||this._isFirstFrame)&&(b.coOp=o.o.v*_.opacity)},CVShapeElement.prototype.renderGradientFill=function(a,o,_){var b=o.style,$;if(!b.grd||o.g._mdf||o.s._mdf||o.e._mdf||a.t!==1&&(o.h._mdf||o.a._mdf)){var _e=this.globalData.canvasContext,et=o.s.v,tt=o.e.v;if(a.t===1)$=_e.createLinearGradient(et[0],et[1],tt[0],tt[1]);else{var rt=Math.sqrt(Math.pow(et[0]-tt[0],2)+Math.pow(et[1]-tt[1],2)),st=Math.atan2(tt[1]-et[1],tt[0]-et[0]),it=o.h.v;it>=1?it=.99:it<=-1&&(it=-.99);var lt=rt*it,at=Math.cos(st+o.a.v)*lt+et[0],ft=Math.sin(st+o.a.v)*lt+et[1];$=_e.createRadialGradient(at,ft,0,et[0],et[1],rt)}var ht,pt=a.g.p,vt=o.g.c,ut=1;for(ht=0;ht<pt;ht+=1)o.g._hasOpacity&&o.g._collapsable&&(ut=o.g.o[ht*2+1]),$.addColorStop(vt[ht*4]/100,"rgba("+vt[ht*4+1]+","+vt[ht*4+2]+","+vt[ht*4+3]+","+ut+")");b.grd=$}b.coOp=o.o.v*_.opacity},CVShapeElement.prototype.renderStroke=function(a,o,_){var b=o.style,$=o.d;$&&($._mdf||this._isFirstFrame)&&(b.da=$.dashArray,b.do=$.dashoffset[0]),(o.c._mdf||this._isFirstFrame)&&(b.co="rgb("+bmFloor(o.c.v[0])+","+bmFloor(o.c.v[1])+","+bmFloor(o.c.v[2])+")"),(o.o._mdf||_._opMdf||this._isFirstFrame)&&(b.coOp=o.o.v*_.opacity),(o.w._mdf||this._isFirstFrame)&&(b.wi=o.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,o,_){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,o,_)}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 o=!1;a.fc?(o=!0,this.values.fill=this.buildColor(a.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=o;var _=!1;a.sc&&(_=!0,this.values.stroke=this.buildColor(a.sc),this.values.sWidth=a.sw);var b=this.globalData.fontManager.getFontByName(a.f),$,_e,et=a.l,tt=this.mHelper;this.stroke=_,this.values.fValue=a.finalSize+"px "+this.globalData.fontManager.getFontByName(a.f).fFamily,_e=a.finalText.length;var rt,st,it,lt,at,ft,ht,pt,vt,ut,ot=this.data.singleShape,nt=a.tr*.001*a.finalSize,dt=0,yt=0,_t=!0,At=0;for($=0;$<_e;$+=1){rt=this.globalData.fontManager.getCharData(a.finalText[$],b.fStyle,this.globalData.fontManager.getFontByName(a.f).fFamily),st=rt&&rt.data||{},tt.reset(),ot&&et[$].n&&(dt=-nt,yt+=a.yOffset,yt+=_t?1:0,_t=!1),at=st.shapes?st.shapes[0].it:[],ht=at.length,tt.scale(a.finalSize/100,a.finalSize/100),ot&&this.applyTextPropertiesToMatrix(a,tt,et[$].line,dt,yt),vt=createSizedArray(ht-1);var xt=0;for(ft=0;ft<ht;ft+=1)if(at[ft].ty==="sh"){for(lt=at[ft].ks.k.i.length,pt=at[ft].ks.k,ut=[],it=1;it<lt;it+=1)it===1&&ut.push(tt.applyToX(pt.v[0][0],pt.v[0][1],0),tt.applyToY(pt.v[0][0],pt.v[0][1],0)),ut.push(tt.applyToX(pt.o[it-1][0],pt.o[it-1][1],0),tt.applyToY(pt.o[it-1][0],pt.o[it-1][1],0),tt.applyToX(pt.i[it][0],pt.i[it][1],0),tt.applyToY(pt.i[it][0],pt.i[it][1],0),tt.applyToX(pt.v[it][0],pt.v[it][1],0),tt.applyToY(pt.v[it][0],pt.v[it][1],0));ut.push(tt.applyToX(pt.o[it-1][0],pt.o[it-1][1],0),tt.applyToY(pt.o[it-1][0],pt.o[it-1][1],0),tt.applyToX(pt.i[0][0],pt.i[0][1],0),tt.applyToY(pt.i[0][0],pt.i[0][1],0),tt.applyToX(pt.v[0][0],pt.v[0][1],0),tt.applyToY(pt.v[0][0],pt.v[0][1],0)),vt[xt]=ut,xt+=1}ot&&(dt+=et[$].l,dt+=nt),this.textSpans[At]?this.textSpans[At].elem=vt:this.textSpans[At]={elem:vt},At+=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 o,_,b,$,_e,et,tt=this.textAnimator.renderedLetters,rt=this.textProperty.currentData.l;_=rt.length;var st,it=null,lt=null,at=null,ft,ht,pt=this.globalData.renderer;for(o=0;o<_;o+=1)if(!rt[o].n){if(st=tt[o],st&&(pt.save(),pt.ctxTransform(st.p),pt.ctxOpacity(st.o)),this.fill){for(st&&st.fc?it!==st.fc&&(pt.ctxFillStyle(st.fc),it=st.fc):it!==this.values.fill&&(it=this.values.fill,pt.ctxFillStyle(this.values.fill)),ft=this.textSpans[o].elem,$=ft.length,this.globalData.canvasContext.beginPath(),b=0;b<$;b+=1)for(ht=ft[b],et=ht.length,this.globalData.canvasContext.moveTo(ht[0],ht[1]),_e=2;_e<et;_e+=6)this.globalData.canvasContext.bezierCurveTo(ht[_e],ht[_e+1],ht[_e+2],ht[_e+3],ht[_e+4],ht[_e+5]);this.globalData.canvasContext.closePath(),pt.ctxFill()}if(this.stroke){for(st&&st.sw?at!==st.sw&&(at=st.sw,pt.ctxLineWidth(st.sw)):at!==this.values.sWidth&&(at=this.values.sWidth,pt.ctxLineWidth(this.values.sWidth)),st&&st.sc?lt!==st.sc&&(lt=st.sc,pt.ctxStrokeStyle(st.sc)):lt!==this.values.stroke&&(lt=this.values.stroke,pt.ctxStrokeStyle(this.values.stroke)),ft=this.textSpans[o].elem,$=ft.length,this.globalData.canvasContext.beginPath(),b=0;b<$;b+=1)for(ht=ft[b],et=ht.length,this.globalData.canvasContext.moveTo(ht[0],ht[1]),_e=2;_e<et;_e+=6)this.globalData.canvasContext.bezierCurveTo(ht[_e],ht[_e+1],ht[_e+2],ht[_e+3],ht[_e+4],ht[_e+5]);this.globalData.canvasContext.closePath(),pt.ctxStroke()}st&&this.globalData.renderer.restore()}};function CVImageElement(a,o,_){this.assetData=o.getAssetData(a.refId),this.img=o.imageLoader.getAsset(this.assetData),this.initElement(a,o,_)}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 o=a.getContext("2d"),_=this.img.width,b=this.img.height,$=_/b,_e=this.assetData.w/this.assetData.h,et,tt,rt=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;$>_e&&rt==="xMidYMid slice"||$<_e&&rt!=="xMidYMid slice"?(tt=b,et=tt*_e):(et=_,tt=et/_e),o.drawImage(this.img,(_-et)/2,(b-tt)/2,et,tt,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,o,_){this.initElement(a,o,_)}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,o,_,b){this.canvasContext.fillRect(a,o,_,b)},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 o=this.animationItem.container.style;o.width="100%",o.height="100%";var _="0px 0px 0px";o.transformOrigin=_,o.mozTransformOrigin=_,o.webkitTransformOrigin=_,o["-webkit-transform"]=_,o.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,o){this.reset();var _,b;a?(_=a,b=o,this.canvasContext.canvas.width=_,this.canvasContext.canvas.height=b):(this.animationItem.wrapper&&this.animationItem.container?(_=this.animationItem.wrapper.offsetWidth,b=this.animationItem.wrapper.offsetHeight):(_=this.canvasContext.canvas.width,b=this.canvasContext.canvas.height),this.canvasContext.canvas.width=_*this.renderConfig.dpr,this.canvasContext.canvas.height=b*this.renderConfig.dpr);var $,_e;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var et=this.renderConfig.preserveAspectRatio.split(" "),tt=et[1]||"meet",rt=et[0]||"xMidYMid",st=rt.substr(0,4),it=rt.substr(4);$=_/b,_e=this.transformCanvas.w/this.transformCanvas.h,_e>$&&tt==="meet"||_e<$&&tt==="slice"?(this.transformCanvas.sx=_/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=_/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=b/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=b/(this.transformCanvas.h/this.renderConfig.dpr)),st==="xMid"&&(_e<$&&tt==="meet"||_e>$&&tt==="slice")?this.transformCanvas.tx=(_-this.transformCanvas.w*(b/this.transformCanvas.h))/2*this.renderConfig.dpr:st==="xMax"&&(_e<$&&tt==="meet"||_e>$&&tt==="slice")?this.transformCanvas.tx=(_-this.transformCanvas.w*(b/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,it==="YMid"&&(_e>$&&tt==="meet"||_e<$&&tt==="slice")?this.transformCanvas.ty=(b-this.transformCanvas.h*(_/this.transformCanvas.w))/2*this.renderConfig.dpr:it==="YMax"&&(_e>$&&tt==="meet"||_e<$&&tt==="slice")?this.transformCanvas.ty=(b-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=b/(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,o=this.layers?this.layers.length:0;for(a=o-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,o){if(!(this.renderedFrame===a&&this.renderConfig.clearCanvas===!0&&!o||this.destroyed||a===-1)){this.renderedFrame=a,this.globalData.frameNum=a-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||o,this.globalData.projectInterface.currentFrame=a;var _,b=this.layers.length;for(this.completeLayers||this.checkLayers(a),_=b-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(),_=b-1;_>=0;_-=1)(this.completeLayers||this.elements[_])&&this.elements[_].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(a){var o=this.elements;if(!(o[a]||this.layers[a].ty===99)){var _=this.createItem(this.layers[a],this,this.globalData);o[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,o=15;for(a=0;a<o;a+=1){var _=new CanvasContext;this.stack[a]=_}this._length=o,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,o=0;for(o=this._length;o<a;o+=1)this.stack[o]=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 o=this.stack[this.cArrPos],_=o.transform,b,$=this.cTr.props;for(b=0;b<16;b+=1)$[b]=_[b];if(a){this.nativeContext.restore();var _e=this.stack[this.cArrPos+1];this.appliedFillStyle=_e.fillStyle,this.appliedStrokeStyle=_e.strokeStyle,this.appliedLineWidth=_e.lineWidth,this.appliedLineCap=_e.lineCap,this.appliedLineJoin=_e.lineJoin,this.appliedMiterLimit=_e.miterLimit}this.nativeContext.setTransform(_[0],_[1],_[4],_[5],_[12],_[13]),(a||o.opacity!==-1&&this.currentOpacity!==o.opacity)&&(this.nativeContext.globalAlpha=o.opacity,this.currentOpacity=o.opacity),this.currentFillStyle=o.fillStyle,this.currentStrokeStyle=o.strokeStyle,this.currentLineWidth=o.lineWidth,this.currentLineCap=o.lineCap,this.currentLineJoin=o.lineJoin,this.currentMiterLimit=o.miterLimit},CVContextData.prototype.save=function(a){a&&this.nativeContext.save();var o=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var _=this.stack[this.cArrPos],b;for(b=0;b<16;b+=1)_.transform[b]=o[b];this.cArrPos+=1;var $=this.stack[this.cArrPos];$.opacity=_.opacity,$.fillStyle=_.fillStyle,$.strokeStyle=_.strokeStyle,$.lineWidth=_.lineWidth,$.lineCap=_.lineCap,$.lineJoin=_.lineJoin,$.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 o=this.cTr;this.transformMat.multiply(o),o.cloneFromProps(this.transformMat.props);var _=o.props;this.nativeContext.setTransform(_[0],_[1],_[4],_[5],_[12],_[13])},CVContextData.prototype.opacity=function(a){var o=this.stack[this.cArrPos].opacity;o*=a<0?0:a,this.stack[this.cArrPos].opacity!==o&&(this.currentOpacity!==a&&(this.nativeContext.globalAlpha=a,this.currentOpacity=a),this.stack[this.cArrPos].opacity=o)},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,o,_,b){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(a,o,_,b)},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,o,_){this.completeLayers=!1,this.layers=a.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(a,o,_),this.tm=a.tm?PropertyFactory.getProp(this,a.tm,0,o.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 o,_=this.layers.length;for(o=_-1;o>=0;o-=1)(this.completeLayers||this.elements[o])&&this.elements[o].renderFrame()},CVCompElement.prototype.destroy=function(){var a,o=this.layers.length;for(a=o-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,o){this.animationItem=a,this.renderConfig={clearCanvas:o&&o.clearCanvas!==void 0?o.clearCanvas:!0,context:o&&o.context||null,progressiveLoad:o&&o.progressiveLoad||!1,preserveAspectRatio:o&&o.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:o&&o.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:o&&o.contentVisibility||"visible",className:o&&o.className||"",id:o&&o.id||"",runExpressions:!o||o.runExpressions===void 0||o.runExpressions},this.renderConfig.dpr=o&&o.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=o&&o.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 o=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var _=this.finalTransform.mat.toCSS();o.transform=_,o.webkitTransform=_}this.finalTransform._opMdf&&(o.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,o,_){this.initElement(a,o,_)}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,o,_){this.shapes=[],this.shapesData=a.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(a,o,_),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 o=this.comp.data?this.comp.data:this.globalData.compSize;a.setAttribute("width",o.w),a.setAttribute("height",o.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,o){var _,b=a.length;for(_=0;_<b;_+=1)o=a[_].mProps.v.applyToPointArray(o[0],o[1],0);return o},HShapeElement.prototype.calculateShapeBoundingBox=function(a,o){var _=a.sh.v,b=a.transformers,$,_e=_._length,et,tt,rt,st;if(!(_e<=1)){for($=0;$<_e-1;$+=1)et=this.getTransformedPoint(b,_.v[$]),tt=this.getTransformedPoint(b,_.o[$]),rt=this.getTransformedPoint(b,_.i[$+1]),st=this.getTransformedPoint(b,_.v[$+1]),this.checkBounds(et,tt,rt,st,o);_.c&&(et=this.getTransformedPoint(b,_.v[$]),tt=this.getTransformedPoint(b,_.o[$]),rt=this.getTransformedPoint(b,_.i[0]),st=this.getTransformedPoint(b,_.v[0]),this.checkBounds(et,tt,rt,st,o))}},HShapeElement.prototype.checkBounds=function(a,o,_,b,$){this.getBoundsOfCurve(a,o,_,b);var _e=this.shapeBoundingBox;$.x=bmMin(_e.left,$.x),$.xMax=bmMax(_e.right,$.xMax),$.y=bmMin(_e.top,$.y),$.yMax=bmMax(_e.bottom,$.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,o,_,b){for(var $=[[a[0],b[0]],[a[1],b[1]]],_e,et,tt,rt,st,it,lt,at=0;at<2;++at)et=6*a[at]-12*o[at]+6*_[at],_e=-3*a[at]+9*o[at]-9*_[at]+3*b[at],tt=3*o[at]-3*a[at],et|=0,_e|=0,tt|=0,_e===0&&et===0||(_e===0?(rt=-tt/et,rt>0&&rt<1&&$[at].push(this.calculateF(rt,a,o,_,b,at))):(st=et*et-4*tt*_e,st>=0&&(it=(-et+bmSqrt(st))/(2*_e),it>0&&it<1&&$[at].push(this.calculateF(it,a,o,_,b,at)),lt=(-et-bmSqrt(st))/(2*_e),lt>0&&lt<1&&$[at].push(this.calculateF(lt,a,o,_,b,at)))));this.shapeBoundingBox.left=bmMin.apply(null,$[0]),this.shapeBoundingBox.top=bmMin.apply(null,$[1]),this.shapeBoundingBox.right=bmMax.apply(null,$[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,$[1])},HShapeElement.prototype.calculateF=function(a,o,_,b,$,_e){return bmPow(1-a,3)*o[_e]+3*bmPow(1-a,2)*a*_[_e]+3*(1-a)*bmPow(a,2)*b[_e]+bmPow(a,3)*$[_e]},HShapeElement.prototype.calculateBoundingBox=function(a,o){var _,b=a.length;for(_=0;_<b;_+=1)a[_]&&a[_].sh?this.calculateShapeBoundingBox(a[_],o):a[_]&&a[_].it?this.calculateBoundingBox(a[_].it,o):a[_]&&a[_].style&&a[_].w&&this.expandStrokeBoundingBox(a[_].w,o)},HShapeElement.prototype.expandStrokeBoundingBox=function(a,o){var _=0;if(a.keyframes){for(var b=0;b<a.keyframes.length;b+=1){var $=a.keyframes[b].s;$>_&&(_=$)}_*=a.mult}else _=a.v*a.mult;o.x-=_,o.xMax+=_,o.y-=_,o.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,o=999999;if(a.x=o,a.xMax=-o,a.y=o,a.yMax=-o,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 b=this.shapeCont.style,$="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";b.transform=$,b.webkitTransform=$}}};function HTextElement(a,o,_){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(a,o,_)}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 o=this.innerElem.style,_=a.fc?this.buildColor(a.fc):"rgba(0,0,0,0)";o.fill=_,o.color=_,a.sc&&(o.stroke=this.buildColor(a.sc),o.strokeWidth=a.sw+"px");var b=this.globalData.fontManager.getFontByName(a.f);if(!this.globalData.fontManager.chars)if(o.fontSize=a.finalSize+"px",o.lineHeight=a.finalSize+"px",b.fClass)this.innerElem.className=b.fClass;else{o.fontFamily=b.fFamily;var $=a.fWeight,_e=a.fStyle;o.fontStyle=_e,o.fontWeight=$}var et,tt,rt=a.l;tt=rt.length;var st,it,lt,at=this.mHelper,ft,ht="",pt=0;for(et=0;et<tt;et+=1){if(this.globalData.fontManager.chars?(this.textPaths[pt]?st=this.textPaths[pt]:(st=createNS("path"),st.setAttribute("stroke-linecap",lineCapEnum[1]),st.setAttribute("stroke-linejoin",lineJoinEnum[2]),st.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[pt]?(it=this.textSpans[pt],lt=it.children[0]):(it=createTag("div"),it.style.lineHeight=0,lt=createNS("svg"),lt.appendChild(st),styleDiv(it)))):this.isMasked?st=this.textPaths[pt]?this.textPaths[pt]:createNS("text"):this.textSpans[pt]?(it=this.textSpans[pt],st=this.textPaths[pt]):(it=createTag("span"),styleDiv(it),st=createTag("span"),styleDiv(st),it.appendChild(st)),this.globalData.fontManager.chars){var vt=this.globalData.fontManager.getCharData(a.finalText[et],b.fStyle,this.globalData.fontManager.getFontByName(a.f).fFamily),ut;if(vt?ut=vt.data:ut=null,at.reset(),ut&&ut.shapes&&ut.shapes.length&&(ft=ut.shapes[0].it,at.scale(a.finalSize/100,a.finalSize/100),ht=this.createPathShape(at,ft),st.setAttribute("d",ht)),this.isMasked)this.innerElem.appendChild(st);else{if(this.innerElem.appendChild(it),ut&&ut.shapes){document.body.appendChild(lt);var ot=lt.getBBox();lt.setAttribute("width",ot.width+2),lt.setAttribute("height",ot.height+2),lt.setAttribute("viewBox",ot.x-1+" "+(ot.y-1)+" "+(ot.width+2)+" "+(ot.height+2));var nt=lt.style,dt="translate("+(ot.x-1)+"px,"+(ot.y-1)+"px)";nt.transform=dt,nt.webkitTransform=dt,rt[et].yOffset=ot.y-1}else lt.setAttribute("width",1),lt.setAttribute("height",1);it.appendChild(lt)}}else if(st.textContent=rt[et].val,st.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(st);else{this.innerElem.appendChild(it);var yt=st.style,_t="translate3d(0,"+-a.finalSize/1.2+"px,0)";yt.transform=_t,yt.webkitTransform=_t}this.isMasked?this.textSpans[pt]=st:this.textSpans[pt]=it,this.textSpans[pt].style.display="block",this.textPaths[pt]=st,pt+=1}for(;pt<this.textSpans.length;)this.textSpans[pt].style.display="none",pt+=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 o="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";a.transform=o,a.webkitTransform=o}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var _,b,$=0,_e=this.textAnimator.renderedLetters,et=this.textProperty.currentData.l;b=et.length;var tt,rt,st;for(_=0;_<b;_+=1)et[_].n?$+=1:(rt=this.textSpans[_],st=this.textPaths[_],tt=_e[$],$+=1,tt._mdf.m&&(this.isMasked?rt.setAttribute("transform",tt.m):(rt.style.webkitTransform=tt.m,rt.style.transform=tt.m)),rt.style.opacity=tt.o,tt.sw&&tt._mdf.sw&&st.setAttribute("stroke-width",tt.sw),tt.sc&&tt._mdf.sc&&st.setAttribute("stroke",tt.sc),tt.fc&&tt._mdf.fc&&(st.setAttribute("fill",tt.fc),st.style.color=tt.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var it=this.innerElem.getBBox();this.currentBBox.w!==it.width&&(this.currentBBox.w=it.width,this.svgElement.setAttribute("width",it.width)),this.currentBBox.h!==it.height&&(this.currentBBox.h=it.height,this.svgElement.setAttribute("height",it.height));var lt=1;if(this.currentBBox.w!==it.width+lt*2||this.currentBBox.h!==it.height+lt*2||this.currentBBox.x!==it.x-lt||this.currentBBox.y!==it.y-lt){this.currentBBox.w=it.width+lt*2,this.currentBBox.h=it.height+lt*2,this.currentBBox.x=it.x-lt,this.currentBBox.y=it.y-lt,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),a=this.svgElement.style;var at="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";a.transform=at,a.webkitTransform=at}}}};function HCameraElement(a,o,_){this.initFrame(),this.initBaseData(a,o,_),this.initHierarchy();var b=PropertyFactory.getProp;if(this.pe=b(this,a.pe,0,0,this),a.ks.p.s?(this.px=b(this,a.ks.p.x,1,0,this),this.py=b(this,a.ks.p.y,1,0,this),this.pz=b(this,a.ks.p.z,1,0,this)):this.p=b(this,a.ks.p,1,0,this),a.ks.a&&(this.a=b(this,a.ks.a,1,0,this)),a.ks.or.k.length&&a.ks.or.k[0].to){var $,_e=a.ks.or.k.length;for($=0;$<_e;$+=1)a.ks.or.k[$].to=null,a.ks.or.k[$].ti=null}this.or=b(this,a.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=b(this,a.ks.rx,0,degToRads,this),this.ry=b(this,a.ks.ry,0,degToRads,this),this.rz=b(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,o=this.comp.threeDElements.length,_,b,$;for(a=0;a<o;a+=1)if(_=this.comp.threeDElements[a],_.type==="3d"){b=_.perspectiveElem.style,$=_.container.style;var _e=this.pe.v+"px",et="0px 0px 0px",tt="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";b.perspective=_e,b.webkitPerspective=_e,$.transformOrigin=et,$.mozTransformOrigin=et,$.webkitTransformOrigin=et,b.transform=tt,b.webkitTransform=tt}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var a=this._isFirstFrame,o,_;if(this.hierarchy)for(_=this.hierarchy.length,o=0;o<_;o+=1)a=this.hierarchy[o].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,o=_;o>=0;o-=1){var b=this.hierarchy[o].finalTransform.mProp;this.mat.translate(-b.p.v[0],-b.p.v[1],b.p.v[2]),this.mat.rotateX(-b.or.v[0]).rotateY(-b.or.v[1]).rotateZ(b.or.v[2]),this.mat.rotateX(-b.rx.v).rotateY(-b.ry.v).rotateZ(b.rz.v),this.mat.scale(1/b.s.v[0],1/b.s.v[1],1/b.s.v[2]),this.mat.translate(b.a.v[0],b.a.v[1],b.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 $;this.p?$=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:$=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var _e=Math.sqrt(Math.pow($[0],2)+Math.pow($[1],2)+Math.pow($[2],2)),et=[$[0]/_e,$[1]/_e,$[2]/_e],tt=Math.sqrt(et[2]*et[2]+et[0]*et[0]),rt=Math.atan2(et[1],tt),st=Math.atan2(et[0],-et[2]);this.mat.rotateY(st).rotateX(-rt)}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 it=!this._prevMat.equals(this.mat);if((it||this.pe._mdf)&&this.comp.threeDElements){_=this.comp.threeDElements.length;var lt,at,ft;for(o=0;o<_;o+=1)if(lt=this.comp.threeDElements[o],lt.type==="3d"){if(it){var ht=this.mat.toCSS();ft=lt.container.style,ft.transform=ht,ft.webkitTransform=ht}this.pe._mdf&&(at=lt.perspectiveElem.style,at.perspective=this.pe.v+"px",at.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,o,_){this.assetData=o.getAssetData(a.refId),this.initElement(a,o,_)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var a=this.globalData.getAssetsPath(this.assetData),o=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(o),o.crossOrigin="anonymous",o.src=a,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(a,o){this.animationItem=a,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:o&&o.className||"",imagePreserveAspectRatio:o&&o.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(o&&o.hideOnTransparent===!1),filterSize:{width:o&&o.filterSize&&o.filterSize.width||"400%",height:o&&o.filterSize&&o.filterSize.height||"400%",x:o&&o.filterSize&&o.filterSize.x||"-100%",y:o&&o.filterSize&&o.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,o){var _=a.getBaseElement();if(_){var b=this.layers[o];if(!b.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(_,o);else{for(var $=0,_e,et,tt;$<o;)this.elements[$]&&this.elements[$]!==!0&&this.elements[$].getBaseElement&&(et=this.elements[$],tt=this.layers[$].ddd?this.getThreeDContainerByPos($):et.getBaseElement(),_e=tt||_e),$+=1;_e?(!b.ddd||!this.supports3d)&&this.layerElement.insertBefore(_,_e):(!b.ddd||!this.supports3d)&&this.layerElement.appendChild(_)}else this.addTo3dContainer(_,o)}},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 o=0,_=this.threeDElements.length;o<_;){if(this.threeDElements[o].startPos<=a&&this.threeDElements[o].endPos>=a)return this.threeDElements[o].perspectiveElem;o+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(a,o){var _=createTag("div"),b,$;styleDiv(_);var _e=createTag("div");if(styleDiv(_e),o==="3d"){b=_.style,b.width=this.globalData.compSize.w+"px",b.height=this.globalData.compSize.h+"px";var et="50% 50%";b.webkitTransformOrigin=et,b.mozTransformOrigin=et,b.transformOrigin=et,$=_e.style;var tt="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";$.transform=tt,$.webkitTransform=tt}_.appendChild(_e);var rt={container:_e,perspectiveElem:_,startPos:a,endPos:a,type:o};return this.threeDElements.push(rt),rt},HybridRendererBase.prototype.build3dContainers=function(){var a,o=this.layers.length,_,b="";for(a=0;a<o;a+=1)this.layers[a].ddd&&this.layers[a].ty!==3?(b!=="3d"&&(b="3d",_=this.createThreeDContainer(a,"3d")),_.endPos=Math.max(_.endPos,a)):(b!=="2d"&&(b="2d",_=this.createThreeDContainer(a,"2d")),_.endPos=Math.max(_.endPos,a));for(o=this.threeDElements.length,a=o-1;a>=0;a-=1)this.resizerElem.appendChild(this.threeDElements[a].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(a,o){for(var _=0,b=this.threeDElements.length;_<b;){if(o<=this.threeDElements[_].endPos){for(var $=this.threeDElements[_].startPos,_e;$<o;)this.elements[$]&&this.elements[$].getBaseElement&&(_e=this.elements[$].getBaseElement()),$+=1;_e?this.threeDElements[_].container.insertBefore(a,_e):this.threeDElements[_].container.appendChild(a);break}_+=1}},HybridRendererBase.prototype.configAnimation=function(a){var o=createTag("div"),_=this.animationItem.wrapper,b=o.style;b.width=a.w+"px",b.height=a.h+"px",this.resizerElem=o,styleDiv(o),b.transformStyle="flat",b.mozTransformStyle="flat",b.webkitTransformStyle="flat",this.renderConfig.className&&o.setAttribute("class",this.renderConfig.className),_.appendChild(o),b.overflow="hidden";var $=createNS("svg");$.setAttribute("width","1"),$.setAttribute("height","1"),styleDiv($),this.resizerElem.appendChild($);var _e=createNS("defs");$.appendChild(_e),this.data=a,this.setupGlobalData(a,$),this.globalData.defs=_e,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,o=this.layers?this.layers.length:0;for(a=0;a<o;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,o=this.animationItem.wrapper.offsetHeight,_=a/o,b=this.globalData.compSize.w/this.globalData.compSize.h,$,_e,et,tt;b>_?($=a/this.globalData.compSize.w,_e=a/this.globalData.compSize.w,et=0,tt=(o-this.globalData.compSize.h*(a/this.globalData.compSize.w))/2):($=o/this.globalData.compSize.h,_e=o/this.globalData.compSize.h,et=(a-this.globalData.compSize.w*(o/this.globalData.compSize.h))/2,tt=0);var rt=this.resizerElem.style;rt.webkitTransform="matrix3d("+$+",0,0,0,0,"+_e+",0,0,0,0,1,0,"+et+","+tt+",0,1)",rt.transform=rt.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,o=this.globalData.compSize.h,_,b=this.threeDElements.length;for(_=0;_<b;_+=1){var $=this.threeDElements[_].perspectiveElem.style;$.webkitPerspective=Math.sqrt(Math.pow(a,2)+Math.pow(o,2))+"px",$.perspective=$.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(a){var o,_=a.length,b=createTag("div");for(o=0;o<_;o+=1)if(a[o].xt){var $=this.createComp(a[o],b,this.globalData.comp,null);$.initExpressions(),this.globalData.projectInterface.registerComposition($)}};function HCompElement(a,o,_){this.layers=a.layers,this.supports3d=!a.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(a,o,_),this.tm=a.tm?PropertyFactory.getProp(this,a.tm,0,o.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,o){for(var _=0,b;_<o;)this.elements[_]&&this.elements[_].getBaseElement&&(b=this.elements[_].getBaseElement()),_+=1;b?this.layerElement.insertBefore(a,b):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,o){this.animationItem=a,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:o&&o.className||"",imagePreserveAspectRatio:o&&o.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(o&&o.hideOnTransparent===!1),filterSize:{width:o&&o.filterSize&&o.filterSize.width||"400%",height:o&&o.filterSize&&o.filterSize.height||"400%",x:o&&o.filterSize&&o.filterSize.x||"-100%",y:o&&o.filterSize&&o.filterSize.y||"-100%"},runExpressions:!o||o.runExpressions===void 0||o.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 o(_){for(var b=0,$=a.layers.length;b<$;){if(a.layers[b].nm===_||a.layers[b].ind===_)return a.elements[b].layerInterface;b+=1}return null}return Object.defineProperty(o,"_name",{value:a.data.nm}),o.layer=o,o.pixelAspect=1,o.height=a.data.h||a.globalData.compSize.h,o.width=a.data.w||a.globalData.compSize.w,o.pixelAspect=1,o.frameDuration=1/a.globalData.frameRate,o.displayStartTime=0,o.numLayers=a.layers.length,o}}();function _typeof$2(a){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$2(a)}function seedRandom(a,o){var _=this,b=256,$=6,_e=52,et="random",tt=o.pow(b,$),rt=o.pow(2,_e),st=rt*2,it=b-1,lt;function at(nt,dt,yt){var _t=[];dt=dt===!0?{entropy:!0}:dt||{};var At=vt(pt(dt.entropy?[nt,ot(a)]:nt===null?ut():nt,3),_t),xt=new ft(_t),wt=function(){for(var It=xt.g($),Nt=tt,Ct=0;It<rt;)It=(It+Ct)*b,Nt*=b,Ct=xt.g(1);for(;It>=st;)It/=2,Nt/=2,Ct>>>=1;return(It+Ct)/Nt};return wt.int32=function(){return xt.g(4)|0},wt.quick=function(){return xt.g(4)/4294967296},wt.double=wt,vt(ot(xt.S),a),(dt.pass||yt||function(Tt,It,Nt,Ct){return Ct&&(Ct.S&&ht(Ct,xt),Tt.state=function(){return ht(xt,{})}),Nt?(o[et]=Tt,It):Tt})(wt,At,"global"in dt?dt.global:this==o,dt.state)}o["seed"+et]=at;function ft(nt){var dt,yt=nt.length,_t=this,At=0,xt=_t.i=_t.j=0,wt=_t.S=[];for(yt||(nt=[yt++]);At<b;)wt[At]=At++;for(At=0;At<b;At++)wt[At]=wt[xt=it&xt+nt[At%yt]+(dt=wt[At])],wt[xt]=dt;_t.g=function(Tt){for(var It,Nt=0,Ct=_t.i,jt=_t.j,Et=_t.S;Tt--;)It=Et[Ct=it&Ct+1],Nt=Nt*b+Et[it&(Et[Ct]=Et[jt=it&jt+It])+(Et[jt]=It)];return _t.i=Ct,_t.j=jt,Nt}}function ht(nt,dt){return dt.i=nt.i,dt.j=nt.j,dt.S=nt.S.slice(),dt}function pt(nt,dt){var yt=[],_t=_typeof$2(nt),At;if(dt&&_t=="object")for(At in nt)try{yt.push(pt(nt[At],dt-1))}catch{}return yt.length?yt:_t=="string"?nt:nt+"\0"}function vt(nt,dt){for(var yt=nt+"",_t,At=0;At<yt.length;)dt[it&At]=it&(_t^=dt[it&At]*19)+yt.charCodeAt(At++);return ot(dt)}function ut(){try{var nt=new Uint8Array(b);return(_.crypto||_.msCrypto).getRandomValues(nt),ot(nt)}catch{var dt=_.navigator,yt=dt&&dt.plugins;return[+new Date,_,yt,_.screen,ot(a)]}}function ot(nt){return String.fromCharCode.apply(0,nt)}vt(o.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(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_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,o){return a==="number"||o instanceof Number||a==="boolean"||a==="string"}function $bm_neg(a){var o=_typeof$1(a);if(o==="number"||a instanceof Number||o==="boolean")return-a;if($bm_isInstanceOfArray(a)){var _,b=a.length,$=[];for(_=0;_<b;_+=1)$[_]=-a[_];return $}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,o){var _=_typeof$1(a),b=_typeof$1(o);if(isNumerable(_,a)&&isNumerable(b,o)||_==="string"||b==="string")return a+o;if($bm_isInstanceOfArray(a)&&isNumerable(b,o))return a=a.slice(0),a[0]+=o,a;if(isNumerable(_,a)&&$bm_isInstanceOfArray(o))return o=o.slice(0),o[0]=a+o[0],o;if($bm_isInstanceOfArray(a)&&$bm_isInstanceOfArray(o)){for(var $=0,_e=a.length,et=o.length,tt=[];$<_e||$<et;)(typeof a[$]=="number"||a[$]instanceof Number)&&(typeof o[$]=="number"||o[$]instanceof Number)?tt[$]=a[$]+o[$]:tt[$]=o[$]===void 0?a[$]:a[$]||o[$],$+=1;return tt}return 0}var add=sum;function sub(a,o){var _=_typeof$1(a),b=_typeof$1(o);if(isNumerable(_,a)&&isNumerable(b,o))return _==="string"&&(a=parseInt(a,10)),b==="string"&&(o=parseInt(o,10)),a-o;if($bm_isInstanceOfArray(a)&&isNumerable(b,o))return a=a.slice(0),a[0]-=o,a;if(isNumerable(_,a)&&$bm_isInstanceOfArray(o))return o=o.slice(0),o[0]=a-o[0],o;if($bm_isInstanceOfArray(a)&&$bm_isInstanceOfArray(o)){for(var $=0,_e=a.length,et=o.length,tt=[];$<_e||$<et;)(typeof a[$]=="number"||a[$]instanceof Number)&&(typeof o[$]=="number"||o[$]instanceof Number)?tt[$]=a[$]-o[$]:tt[$]=o[$]===void 0?a[$]:a[$]||o[$],$+=1;return tt}return 0}function mul(a,o){var _=_typeof$1(a),b=_typeof$1(o),$;if(isNumerable(_,a)&&isNumerable(b,o))return a*o;var _e,et;if($bm_isInstanceOfArray(a)&&isNumerable(b,o)){for(et=a.length,$=createTypedArray("float32",et),_e=0;_e<et;_e+=1)$[_e]=a[_e]*o;return $}if(isNumerable(_,a)&&$bm_isInstanceOfArray(o)){for(et=o.length,$=createTypedArray("float32",et),_e=0;_e<et;_e+=1)$[_e]=a*o[_e];return $}return 0}function div(a,o){var _=_typeof$1(a),b=_typeof$1(o),$;if(isNumerable(_,a)&&isNumerable(b,o))return a/o;var _e,et;if($bm_isInstanceOfArray(a)&&isNumerable(b,o)){for(et=a.length,$=createTypedArray("float32",et),_e=0;_e<et;_e+=1)$[_e]=a[_e]/o;return $}if(isNumerable(_,a)&&$bm_isInstanceOfArray(o)){for(et=o.length,$=createTypedArray("float32",et),_e=0;_e<et;_e+=1)$[_e]=a/o[_e];return $}return 0}function mod(a,o){return typeof a=="string"&&(a=parseInt(a,10)),typeof o=="string"&&(o=parseInt(o,10)),a%o}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(a,o,_){if(o>_){var b=_;_=o,o=b}return Math.min(Math.max(a,o),_)}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,o){if(typeof a=="number"||a instanceof Number)return o=o||0,Math.abs(a-o);o||(o=helperLengthArray);var _,b=Math.min(a.length,o.length),$=0;for(_=0;_<b;_+=1)$+=Math.pow(o[_]-a[_],2);return Math.sqrt($)}function normalize(a){return div(a,length(a))}function rgbToHsl(a){var o=a[0],_=a[1],b=a[2],$=Math.max(o,_,b),_e=Math.min(o,_,b),et,tt,rt=($+_e)/2;if($===_e)et=0,tt=0;else{var st=$-_e;switch(tt=rt>.5?st/(2-$-_e):st/($+_e),$){case o:et=(_-b)/st+(_<b?6:0);break;case _:et=(b-o)/st+2;break;case b:et=(o-_)/st+4;break}et/=6}return[et,tt,rt,a[3]]}function hue2rgb(a,o,_){return _<0&&(_+=1),_>1&&(_-=1),_<1/6?a+(o-a)*6*_:_<1/2?o:_<2/3?a+(o-a)*(2/3-_)*6:a}function hslToRgb(a){var o=a[0],_=a[1],b=a[2],$,_e,et;if(_===0)$=b,et=b,_e=b;else{var tt=b<.5?b*(1+_):b+_-b*_,rt=2*b-tt;$=hue2rgb(rt,tt,o+1/3),_e=hue2rgb(rt,tt,o),et=hue2rgb(rt,tt,o-1/3)}return[$,_e,et,a[3]]}function linear(a,o,_,b,$){if((b===void 0||$===void 0)&&(b=o,$=_,o=0,_=1),_<o){var _e=_;_=o,o=_e}if(a<=o)return b;if(a>=_)return $;var et=_===o?0:(a-o)/(_-o);if(!b.length)return b+($-b)*et;var tt,rt=b.length,st=createTypedArray("float32",rt);for(tt=0;tt<rt;tt+=1)st[tt]=b[tt]+($[tt]-b[tt])*et;return st}function random(a,o){if(o===void 0&&(a===void 0?(a=0,o=1):(o=a,a=void 0)),o.length){var _,b=o.length;a||(a=createTypedArray("float32",b));var $=createTypedArray("float32",b),_e=BMMath.random();for(_=0;_<b;_+=1)$[_]=a[_]+_e*(o[_]-a[_]);return $}a===void 0&&(a=0);var et=BMMath.random();return a+et*(o-a)}function createPath(a,o,_,b){var $,_e=a.length,et=shapePool.newElement();et.setPathData(!!b,_e);var tt=[0,0],rt,st;for($=0;$<_e;$+=1)rt=o&&o[$]?o[$]:tt,st=_&&_[$]?_[$]:tt,et.setTripleAt(a[$][0],a[$][1],st[0]+a[$][0],st[1]+a[$][1],rt[0]+a[$][0],rt[1]+a[$][1],$,!0);return et}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(o,_){var b,$,_e=this.pv.length?this.pv.length:1,et=createTypedArray("float32",_e);o=5;var tt=Math.floor(time*o);for(b=0,$=0;b<tt;){for($=0;$<_e;$+=1)et[$]+=-_+_*2*BMMath.random();b+=1}var rt=time*o,st=rt-Math.floor(rt),it=createTypedArray("float32",_e);if(_e>1){for($=0;$<_e;$+=1)it[$]=this.pv[$]+et[$]+(-_+_*2*BMMath.random())*st;return it}return this.pv+et[0]+(-_+_*2*BMMath.random())*st}).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,o){return loopIn(a,o,!0)}function loopOutDuration(a,o){return loopOut(a,o,!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,o){var _=[o[0]-a[0],o[1]-a[1],o[2]-a[2]],b=Math.atan2(_[0],Math.sqrt(_[1]*_[1]+_[2]*_[2]))/degToRads,$=-Math.atan2(_[1],_[2])/degToRads;return[$,b,0]}function easeOut(a,o,_,b,$){return applyEase(easeOutBez,a,o,_,b,$)}function easeIn(a,o,_,b,$){return applyEase(easeInBez,a,o,_,b,$)}function ease(a,o,_,b,$){return applyEase(easeInOutBez,a,o,_,b,$)}function applyEase(a,o,_,b,$,_e){$===void 0?($=_,_e=b):o=(o-_)/(b-_),o>1?o=1:o<0&&(o=0);var et=a(o);if($bm_isInstanceOfArray($)){var tt,rt=$.length,st=createTypedArray("float32",rt);for(tt=0;tt<rt;tt+=1)st[tt]=(_e[tt]-$[tt])*et+$[tt];return st}return(_e-$)*et+$}function nearestKey(a){var o,_=data.k.length,b,$;if(!data.k.length||typeof data.k[0]=="number")b=0,$=0;else if(b=-1,a*=elem.comp.globalData.frameRate,a<data.k[0].t)b=1,$=data.k[0].t;else{for(o=0;o<_-1;o+=1)if(a===data.k[o].t){b=o+1,$=data.k[o].t;break}else if(a>data.k[o].t&&a<data.k[o+1].t){a-data.k[o].t>data.k[o+1].t-a?(b=o+2,$=data.k[o+1].t):(b=o+1,$=data.k[o].t);break}b===-1&&(b=o+1,$=data.k[o].t)}var _e={};return _e.index=b,_e.time=$/elem.comp.globalData.frameRate,_e}function key(a){var o,_,b;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+a);a-=1,o={time:data.k[a].t/elem.comp.globalData.frameRate,value:[]};var $=Object.prototype.hasOwnProperty.call(data.k[a],"s")?data.k[a].s:data.k[a-1].e;for(b=$.length,_=0;_<b;_+=1)o[_]=$[_],o.value[_]=$[_];return o}function framesToTime(a,o){return o||(o=elem.comp.globalData.frameRate),a/o}function timeToFrames(a,o){return!a&&a!==0&&(a=time),o||(o=elem.comp.globalData.frameRate),a*o}function seedRandom(a){BMMath.seedrandom(randSeed+a)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(a,o){return typeof value=="string"?o===void 0?value.substring(a):value.substring(a,o):""}function substr(a,o){return typeof value=="string"?o===void 0?value.substr(a):value.substr(a,o):""}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=o,a.resetFrame=ExpressionManager.resetFrame;function o(_){var b=0,$=[];function _e(){b+=1}function et(){b-=1,b===0&&rt()}function tt(st){$.indexOf(st)===-1&&$.push(st)}function rt(){var st,it=$.length;for(st=0;st<it;st+=1)$[st].release();$.length=0}_.renderer.compInterface=CompExpressionInterface(_.renderer),_.renderer.globalData.projectInterface.registerComposition(_.renderer),_.renderer.globalData.pushExpression=_e,_.renderer.globalData.popExpression=et,_.renderer.globalData.registerExpressionProperty=tt}return a}(),MaskManagerInterface=function(){function a(_,b){this._mask=_,this._data=b}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 o=function(b){var $=createSizedArray(b.viewData.length),_e,et=b.viewData.length;for(_e=0;_e<et;_e+=1)$[_e]=new a(b.viewData[_e],b.masksProperties[_e]);var tt=function(st){for(_e=0;_e<et;){if(b.masksProperties[_e].nm===st)return $[_e];_e+=1}return null};return tt};return o}(),ExpressionPropertyInterface=function(){var a={pv:0,v:0,mult:1},o={pv:[0,0,0],v:[0,0,0],mult:1};function _(et,tt,rt){Object.defineProperty(et,"velocity",{get:function(){return tt.getVelocityAtTime(tt.comp.currentFrame)}}),et.numKeys=tt.keyframes?tt.keyframes.length:0,et.key=function(st){if(!et.numKeys)return 0;var it="";"s"in tt.keyframes[st-1]?it=tt.keyframes[st-1].s:"e"in tt.keyframes[st-2]?it=tt.keyframes[st-2].e:it=tt.keyframes[st-2].s;var lt=rt==="unidimensional"?new Number(it):Object.assign({},it);return lt.time=tt.keyframes[st-1].t/tt.elem.comp.globalData.frameRate,lt.value=rt==="unidimensional"?it[0]:it,lt},et.valueAtTime=tt.getValueAtTime,et.speedAtTime=tt.getSpeedAtTime,et.velocityAtTime=tt.getVelocityAtTime,et.propertyGroup=tt.propertyGroup}function b(et){(!et||!("pv"in et))&&(et=a);var tt=1/et.mult,rt=et.pv*tt,st=new Number(rt);return st.value=rt,_(st,et,"unidimensional"),function(){return et.k&&et.getValue(),rt=et.v*tt,st.value!==rt&&(st=new Number(rt),st.value=rt,st[0]=rt,_(st,et,"unidimensional")),st}}function $(et){(!et||!("pv"in et))&&(et=o);var tt=1/et.mult,rt=et.data&&et.data.l||et.pv.length,st=createTypedArray("float32",rt),it=createTypedArray("float32",rt);return st.value=it,_(st,et,"multidimensional"),function(){et.k&&et.getValue();for(var lt=0;lt<rt;lt+=1)it[lt]=et.v[lt]*tt,st[lt]=it[lt];return st}}function _e(){return a}return function(et){return et?et.propType==="unidimensional"?b(et):$(et):_e}}(),TransformExpressionInterface=function(){return function(a){function o(et){switch(et){case"scale":case"Scale":case"ADBE Scale":case 6:return o.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return o.rotation;case"ADBE Rotate X":return o.xRotation;case"ADBE Rotate Y":return o.yRotation;case"position":case"Position":case"ADBE Position":case 2:return o.position;case"ADBE Position_0":return o.xPosition;case"ADBE Position_1":return o.yPosition;case"ADBE Position_2":return o.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return o.anchorPoint;case"opacity":case"Opacity":case 11:return o.opacity;default:return null}}Object.defineProperty(o,"rotation",{get:ExpressionPropertyInterface(a.r||a.rz)}),Object.defineProperty(o,"zRotation",{get:ExpressionPropertyInterface(a.rz||a.r)}),Object.defineProperty(o,"xRotation",{get:ExpressionPropertyInterface(a.rx)}),Object.defineProperty(o,"yRotation",{get:ExpressionPropertyInterface(a.ry)}),Object.defineProperty(o,"scale",{get:ExpressionPropertyInterface(a.s)});var _,b,$,_e;return a.p?_e=ExpressionPropertyInterface(a.p):(_=ExpressionPropertyInterface(a.px),b=ExpressionPropertyInterface(a.py),a.pz&&($=ExpressionPropertyInterface(a.pz))),Object.defineProperty(o,"position",{get:function(){return a.p?_e():[_(),b(),$?$():0]}}),Object.defineProperty(o,"xPosition",{get:ExpressionPropertyInterface(a.px)}),Object.defineProperty(o,"yPosition",{get:ExpressionPropertyInterface(a.py)}),Object.defineProperty(o,"zPosition",{get:ExpressionPropertyInterface(a.pz)}),Object.defineProperty(o,"anchorPoint",{get:ExpressionPropertyInterface(a.a)}),Object.defineProperty(o,"opacity",{get:ExpressionPropertyInterface(a.o)}),Object.defineProperty(o,"skew",{get:ExpressionPropertyInterface(a.sk)}),Object.defineProperty(o,"skewAxis",{get:ExpressionPropertyInterface(a.sa)}),Object.defineProperty(o,"orientation",{get:ExpressionPropertyInterface(a.or)}),o}}(),LayerExpressionInterface=function(){function a(st){var it=new Matrix;if(st!==void 0){var lt=this._elem.finalTransform.mProp.getValueAtTime(st);lt.clone(it)}else{var at=this._elem.finalTransform.mProp;at.applyToMatrix(it)}return it}function o(st,it){var lt=this.getMatrix(it);return lt.props[12]=0,lt.props[13]=0,lt.props[14]=0,this.applyPoint(lt,st)}function _(st,it){var lt=this.getMatrix(it);return this.applyPoint(lt,st)}function b(st,it){var lt=this.getMatrix(it);return lt.props[12]=0,lt.props[13]=0,lt.props[14]=0,this.invertPoint(lt,st)}function $(st,it){var lt=this.getMatrix(it);return this.invertPoint(lt,st)}function _e(st,it){if(this._elem.hierarchy&&this._elem.hierarchy.length){var lt,at=this._elem.hierarchy.length;for(lt=0;lt<at;lt+=1)this._elem.hierarchy[lt].finalTransform.mProp.applyToMatrix(st)}return st.applyToPointArray(it[0],it[1],it[2]||0)}function et(st,it){if(this._elem.hierarchy&&this._elem.hierarchy.length){var lt,at=this._elem.hierarchy.length;for(lt=0;lt<at;lt+=1)this._elem.hierarchy[lt].finalTransform.mProp.applyToMatrix(st)}return st.inversePoint(it)}function tt(st){var it=new Matrix;if(it.reset(),this._elem.finalTransform.mProp.applyToMatrix(it),this._elem.hierarchy&&this._elem.hierarchy.length){var lt,at=this._elem.hierarchy.length;for(lt=0;lt<at;lt+=1)this._elem.hierarchy[lt].finalTransform.mProp.applyToMatrix(it);return it.inversePoint(st)}return it.inversePoint(st)}function rt(){return[1,1,1,1]}return function(st){var it;function lt(pt){ft.mask=new MaskManagerInterface(pt,st)}function at(pt){ft.effect=pt}function ft(pt){switch(pt){case"ADBE Root Vectors Group":case"Contents":case 2:return ft.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return it;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return ft.effect;case"ADBE Text Properties":return ft.textInterface;default:return null}}ft.getMatrix=a,ft.invertPoint=et,ft.applyPoint=_e,ft.toWorld=_,ft.toWorldVec=o,ft.fromWorld=$,ft.fromWorldVec=b,ft.toComp=_,ft.fromComp=tt,ft.sampleImage=rt,ft.sourceRectAtTime=st.sourceRectAtTime.bind(st),ft._elem=st,it=TransformExpressionInterface(st.finalTransform.mProp);var ht=getDescriptor(it,"anchorPoint");return Object.defineProperties(ft,{hasParent:{get:function(){return st.hierarchy.length}},parent:{get:function(){return st.hierarchy[0].layerInterface}},rotation:getDescriptor(it,"rotation"),scale:getDescriptor(it,"scale"),position:getDescriptor(it,"position"),opacity:getDescriptor(it,"opacity"),anchorPoint:ht,anchor_point:ht,transform:{get:function(){return it}},active:{get:function(){return st.isInRange}}}),ft.startTime=st.data.st,ft.index=st.data.ind,ft.source=st.data.refId,ft.height=st.data.ty===0?st.data.h:100,ft.width=st.data.ty===0?st.data.w:100,ft.inPoint=st.data.ip/st.comp.globalData.frameRate,ft.outPoint=st.data.op/st.comp.globalData.frameRate,ft._name=st.data.nm,ft.registerMaskInterface=lt,ft.registerEffectsInterface=at,ft}}(),propertyGroupFactory=function(){return function(a,o){return function(_){return _=_===void 0?1:_,_<=0?a:o(_-1)}}}(),PropertyInterface=function(){return function(a,o){var _={_name:a};function b($){return $=$===void 0?1:$,$<=0?_:o($-1)}return b}}(),EffectsExpressionInterface=function(){var a={createEffectsInterface:o};function o($,_e){if($.effectsManager){var et=[],tt=$.data.ef,rt,st=$.effectsManager.effectElements.length;for(rt=0;rt<st;rt+=1)et.push(_(tt[rt],$.effectsManager.effectElements[rt],_e,$));var it=$.data.ef||[],lt=function(ft){for(rt=0,st=it.length;rt<st;){if(ft===it[rt].nm||ft===it[rt].mn||ft===it[rt].ix)return et[rt];rt+=1}return null};return Object.defineProperty(lt,"numProperties",{get:function(){return it.length}}),lt}return null}function _($,_e,et,tt){function rt(ft){for(var ht=$.ef,pt=0,vt=ht.length;pt<vt;){if(ft===ht[pt].nm||ft===ht[pt].mn||ft===ht[pt].ix)return ht[pt].ty===5?it[pt]:it[pt]();pt+=1}throw new Error}var st=propertyGroupFactory(rt,et),it=[],lt,at=$.ef.length;for(lt=0;lt<at;lt+=1)$.ef[lt].ty===5?it.push(_($.ef[lt],_e.effectElements[lt],_e.effectElements[lt].propertyGroup,tt)):it.push(b(_e.effectElements[lt],$.ef[lt].ty,tt,st));return $.mn==="ADBE Color Control"&&Object.defineProperty(rt,"color",{get:function(){return it[0]()}}),Object.defineProperties(rt,{numProperties:{get:function(){return $.np}},_name:{value:$.nm},propertyGroup:{value:st}}),rt.enabled=$.en!==0,rt.active=rt.enabled,rt}function b($,_e,et,tt){var rt=ExpressionPropertyInterface($.p);function st(){return _e===10?et.comp.compInterface($.p.v):rt()}return $.p.setGroupProperty&&$.p.setGroupProperty(PropertyInterface("",tt)),st}return a}(),ShapePathInterface=function(){return function(o,_,b){var $=_.sh;function _e(tt){return tt==="Shape"||tt==="shape"||tt==="Path"||tt==="path"||tt==="ADBE Vector Shape"||tt===2?_e.path:null}var et=propertyGroupFactory(_e,b);return $.setGroupProperty(PropertyInterface("Path",et)),Object.defineProperties(_e,{path:{get:function(){return $.k&&$.getValue(),$}},shape:{get:function(){return $.k&&$.getValue(),$}},_name:{value:o.nm},ix:{value:o.ix},propertyIndex:{value:o.ix},mn:{value:o.mn},propertyGroup:{value:b}}),_e}}(),ShapeExpressionInterface=function(){function a(ht,pt,vt){var ut=[],ot,nt=ht?ht.length:0;for(ot=0;ot<nt;ot+=1)ht[ot].ty==="gr"?ut.push(_(ht[ot],pt[ot],vt)):ht[ot].ty==="fl"?ut.push(b(ht[ot],pt[ot],vt)):ht[ot].ty==="st"?ut.push(et(ht[ot],pt[ot],vt)):ht[ot].ty==="tm"?ut.push(tt(ht[ot],pt[ot],vt)):ht[ot].ty==="tr"||(ht[ot].ty==="el"?ut.push(st(ht[ot],pt[ot],vt)):ht[ot].ty==="sr"?ut.push(it(ht[ot],pt[ot],vt)):ht[ot].ty==="sh"?ut.push(ShapePathInterface(ht[ot],pt[ot],vt)):ht[ot].ty==="rc"?ut.push(lt(ht[ot],pt[ot],vt)):ht[ot].ty==="rd"?ut.push(at(ht[ot],pt[ot],vt)):ht[ot].ty==="rp"?ut.push(ft(ht[ot],pt[ot],vt)):ht[ot].ty==="gf"?ut.push($(ht[ot],pt[ot],vt)):ut.push(_e(ht[ot],pt[ot])));return ut}function o(ht,pt,vt){var ut,ot=function(yt){for(var _t=0,At=ut.length;_t<At;){if(ut[_t]._name===yt||ut[_t].mn===yt||ut[_t].propertyIndex===yt||ut[_t].ix===yt||ut[_t].ind===yt)return ut[_t];_t+=1}return typeof yt=="number"?ut[yt-1]:null};ot.propertyGroup=propertyGroupFactory(ot,vt),ut=a(ht.it,pt.it,ot.propertyGroup),ot.numProperties=ut.length;var nt=rt(ht.it[ht.it.length-1],pt.it[pt.it.length-1],ot.propertyGroup);return ot.transform=nt,ot.propertyIndex=ht.cix,ot._name=ht.nm,ot}function _(ht,pt,vt){var ut=function(yt){switch(yt){case"ADBE Vectors Group":case"Contents":case 2:return ut.content;default:return ut.transform}};ut.propertyGroup=propertyGroupFactory(ut,vt);var ot=o(ht,pt,ut.propertyGroup),nt=rt(ht.it[ht.it.length-1],pt.it[pt.it.length-1],ut.propertyGroup);return ut.content=ot,ut.transform=nt,Object.defineProperty(ut,"_name",{get:function(){return ht.nm}}),ut.numProperties=ht.np,ut.propertyIndex=ht.ix,ut.nm=ht.nm,ut.mn=ht.mn,ut}function b(ht,pt,vt){function ut(ot){return ot==="Color"||ot==="color"?ut.color:ot==="Opacity"||ot==="opacity"?ut.opacity:null}return Object.defineProperties(ut,{color:{get:ExpressionPropertyInterface(pt.c)},opacity:{get:ExpressionPropertyInterface(pt.o)},_name:{value:ht.nm},mn:{value:ht.mn}}),pt.c.setGroupProperty(PropertyInterface("Color",vt)),pt.o.setGroupProperty(PropertyInterface("Opacity",vt)),ut}function $(ht,pt,vt){function ut(ot){return ot==="Start Point"||ot==="start point"?ut.startPoint:ot==="End Point"||ot==="end point"?ut.endPoint:ot==="Opacity"||ot==="opacity"?ut.opacity:null}return Object.defineProperties(ut,{startPoint:{get:ExpressionPropertyInterface(pt.s)},endPoint:{get:ExpressionPropertyInterface(pt.e)},opacity:{get:ExpressionPropertyInterface(pt.o)},type:{get:function(){return"a"}},_name:{value:ht.nm},mn:{value:ht.mn}}),pt.s.setGroupProperty(PropertyInterface("Start Point",vt)),pt.e.setGroupProperty(PropertyInterface("End Point",vt)),pt.o.setGroupProperty(PropertyInterface("Opacity",vt)),ut}function _e(){function ht(){return null}return ht}function et(ht,pt,vt){var ut=propertyGroupFactory(At,vt),ot=propertyGroupFactory(_t,ut);function nt(xt){Object.defineProperty(_t,ht.d[xt].nm,{get:ExpressionPropertyInterface(pt.d.dataProps[xt].p)})}var dt,yt=ht.d?ht.d.length:0,_t={};for(dt=0;dt<yt;dt+=1)nt(dt),pt.d.dataProps[dt].p.setGroupProperty(ot);function At(xt){return xt==="Color"||xt==="color"?At.color:xt==="Opacity"||xt==="opacity"?At.opacity:xt==="Stroke Width"||xt==="stroke width"?At.strokeWidth:null}return Object.defineProperties(At,{color:{get:ExpressionPropertyInterface(pt.c)},opacity:{get:ExpressionPropertyInterface(pt.o)},strokeWidth:{get:ExpressionPropertyInterface(pt.w)},dash:{get:function(){return _t}},_name:{value:ht.nm},mn:{value:ht.mn}}),pt.c.setGroupProperty(PropertyInterface("Color",ut)),pt.o.setGroupProperty(PropertyInterface("Opacity",ut)),pt.w.setGroupProperty(PropertyInterface("Stroke Width",ut)),At}function tt(ht,pt,vt){function ut(nt){return nt===ht.e.ix||nt==="End"||nt==="end"?ut.end:nt===ht.s.ix?ut.start:nt===ht.o.ix?ut.offset:null}var ot=propertyGroupFactory(ut,vt);return ut.propertyIndex=ht.ix,pt.s.setGroupProperty(PropertyInterface("Start",ot)),pt.e.setGroupProperty(PropertyInterface("End",ot)),pt.o.setGroupProperty(PropertyInterface("Offset",ot)),ut.propertyIndex=ht.ix,ut.propertyGroup=vt,Object.defineProperties(ut,{start:{get:ExpressionPropertyInterface(pt.s)},end:{get:ExpressionPropertyInterface(pt.e)},offset:{get:ExpressionPropertyInterface(pt.o)},_name:{value:ht.nm}}),ut.mn=ht.mn,ut}function rt(ht,pt,vt){function ut(nt){return ht.a.ix===nt||nt==="Anchor Point"?ut.anchorPoint:ht.o.ix===nt||nt==="Opacity"?ut.opacity:ht.p.ix===nt||nt==="Position"?ut.position:ht.r.ix===nt||nt==="Rotation"||nt==="ADBE Vector Rotation"?ut.rotation:ht.s.ix===nt||nt==="Scale"?ut.scale:ht.sk&&ht.sk.ix===nt||nt==="Skew"?ut.skew:ht.sa&&ht.sa.ix===nt||nt==="Skew Axis"?ut.skewAxis:null}var ot=propertyGroupFactory(ut,vt);return pt.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",ot)),pt.transform.mProps.p.setGroupProperty(PropertyInterface("Position",ot)),pt.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",ot)),pt.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",ot)),pt.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",ot)),pt.transform.mProps.sk&&(pt.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",ot)),pt.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",ot))),pt.transform.op.setGroupProperty(PropertyInterface("Opacity",ot)),Object.defineProperties(ut,{opacity:{get:ExpressionPropertyInterface(pt.transform.mProps.o)},position:{get:ExpressionPropertyInterface(pt.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(pt.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(pt.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(pt.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(pt.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(pt.transform.mProps.sa)},_name:{value:ht.nm}}),ut.ty="tr",ut.mn=ht.mn,ut.propertyGroup=vt,ut}function st(ht,pt,vt){function ut(dt){return ht.p.ix===dt?ut.position:ht.s.ix===dt?ut.size:null}var ot=propertyGroupFactory(ut,vt);ut.propertyIndex=ht.ix;var nt=pt.sh.ty==="tm"?pt.sh.prop:pt.sh;return nt.s.setGroupProperty(PropertyInterface("Size",ot)),nt.p.setGroupProperty(PropertyInterface("Position",ot)),Object.defineProperties(ut,{size:{get:ExpressionPropertyInterface(nt.s)},position:{get:ExpressionPropertyInterface(nt.p)},_name:{value:ht.nm}}),ut.mn=ht.mn,ut}function it(ht,pt,vt){function ut(dt){return ht.p.ix===dt?ut.position:ht.r.ix===dt?ut.rotation:ht.pt.ix===dt?ut.points:ht.or.ix===dt||dt==="ADBE Vector Star Outer Radius"?ut.outerRadius:ht.os.ix===dt?ut.outerRoundness:ht.ir&&(ht.ir.ix===dt||dt==="ADBE Vector Star Inner Radius")?ut.innerRadius:ht.is&&ht.is.ix===dt?ut.innerRoundness:null}var ot=propertyGroupFactory(ut,vt),nt=pt.sh.ty==="tm"?pt.sh.prop:pt.sh;return ut.propertyIndex=ht.ix,nt.or.setGroupProperty(PropertyInterface("Outer Radius",ot)),nt.os.setGroupProperty(PropertyInterface("Outer Roundness",ot)),nt.pt.setGroupProperty(PropertyInterface("Points",ot)),nt.p.setGroupProperty(PropertyInterface("Position",ot)),nt.r.setGroupProperty(PropertyInterface("Rotation",ot)),ht.ir&&(nt.ir.setGroupProperty(PropertyInterface("Inner Radius",ot)),nt.is.setGroupProperty(PropertyInterface("Inner Roundness",ot))),Object.defineProperties(ut,{position:{get:ExpressionPropertyInterface(nt.p)},rotation:{get:ExpressionPropertyInterface(nt.r)},points:{get:ExpressionPropertyInterface(nt.pt)},outerRadius:{get:ExpressionPropertyInterface(nt.or)},outerRoundness:{get:ExpressionPropertyInterface(nt.os)},innerRadius:{get:ExpressionPropertyInterface(nt.ir)},innerRoundness:{get:ExpressionPropertyInterface(nt.is)},_name:{value:ht.nm}}),ut.mn=ht.mn,ut}function lt(ht,pt,vt){function ut(dt){return ht.p.ix===dt?ut.position:ht.r.ix===dt?ut.roundness:ht.s.ix===dt||dt==="Size"||dt==="ADBE Vector Rect Size"?ut.size:null}var ot=propertyGroupFactory(ut,vt),nt=pt.sh.ty==="tm"?pt.sh.prop:pt.sh;return ut.propertyIndex=ht.ix,nt.p.setGroupProperty(PropertyInterface("Position",ot)),nt.s.setGroupProperty(PropertyInterface("Size",ot)),nt.r.setGroupProperty(PropertyInterface("Rotation",ot)),Object.defineProperties(ut,{position:{get:ExpressionPropertyInterface(nt.p)},roundness:{get:ExpressionPropertyInterface(nt.r)},size:{get:ExpressionPropertyInterface(nt.s)},_name:{value:ht.nm}}),ut.mn=ht.mn,ut}function at(ht,pt,vt){function ut(dt){return ht.r.ix===dt||dt==="Round Corners 1"?ut.radius:null}var ot=propertyGroupFactory(ut,vt),nt=pt;return ut.propertyIndex=ht.ix,nt.rd.setGroupProperty(PropertyInterface("Radius",ot)),Object.defineProperties(ut,{radius:{get:ExpressionPropertyInterface(nt.rd)},_name:{value:ht.nm}}),ut.mn=ht.mn,ut}function ft(ht,pt,vt){function ut(dt){return ht.c.ix===dt||dt==="Copies"?ut.copies:ht.o.ix===dt||dt==="Offset"?ut.offset:null}var ot=propertyGroupFactory(ut,vt),nt=pt;return ut.propertyIndex=ht.ix,nt.c.setGroupProperty(PropertyInterface("Copies",ot)),nt.o.setGroupProperty(PropertyInterface("Offset",ot)),Object.defineProperties(ut,{copies:{get:ExpressionPropertyInterface(nt.c)},offset:{get:ExpressionPropertyInterface(nt.o)},_name:{value:ht.nm}}),ut.mn=ht.mn,ut}return function(ht,pt,vt){var ut;function ot(dt){if(typeof dt=="number")return dt=dt===void 0?1:dt,dt===0?vt:ut[dt-1];for(var yt=0,_t=ut.length;yt<_t;){if(ut[yt]._name===dt)return ut[yt];yt+=1}return null}function nt(){return vt}return ot.propertyGroup=propertyGroupFactory(ot,nt),ut=a(ht,pt,ot.propertyGroup),ot.numProperties=ut.length,ot._name="Contents",ot}}(),TextExpressionInterface=function(){return function(a){var o;function _(b){switch(b){case"ADBE Text Document":return _.sourceText;default:return null}}return Object.defineProperty(_,"sourceText",{get:function(){a.textProperty.getValue();var $=a.textProperty.currentData.t;return(!o||$!==o.value)&&(o=new String($),o.value=$||new String($),Object.defineProperty(o,"style",{get:function(){return{fillColor:a.textProperty.currentData.fc}}})),o}}),_}}();function _typeof(a){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(a)}var FootageInterface=function(){var a=function(b){var $="",_e=b.getFootageData();function et(){return $="",_e=b.getFootageData(),tt}function tt(rt){if(_e[rt])return $=rt,_e=_e[rt],_typeof(_e)==="object"?tt:_e;var st=rt.indexOf($);if(st!==-1){var it=parseInt(rt.substr(st+$.length),10);return _e=_e[it],_typeof(_e)==="object"?tt:_e}return""}return et},o=function(b){function $(_e){return _e==="Outline"?$.outlineInterface():null}return $._name="Outline",$.outlineInterface=a(b),$};return function(_){function b($){return $==="Data"?b.dataInterface:null}return b._name="Data",b.dataInterface=o(_),b}}(),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(et,tt,rt){tt.x&&(rt.k=!0,rt.x=!0,rt.initiateExpression=ExpressionManager.initiateExpression,rt.effectsSequence.push(rt.initiateExpression(et,tt,rt).bind(rt)))}function o(et){return et*=this.elem.globalData.frameRate,et-=this.offsetTime,et!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<et?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(et,this._cachingAtTime),this._cachingAtTime.lastFrame=et),this._cachingAtTime.value}function _(et){var tt=-.01,rt=this.getValueAtTime(et),st=this.getValueAtTime(et+tt),it=0;if(rt.length){var lt;for(lt=0;lt<rt.length;lt+=1)it+=Math.pow(st[lt]-rt[lt],2);it=Math.sqrt(it)*100}else it=0;return it}function b(et){if(this.vel!==void 0)return this.vel;var tt=-.001,rt=this.getValueAtTime(et),st=this.getValueAtTime(et+tt),it;if(rt.length){it=createTypedArray("float32",rt.length);var lt;for(lt=0;lt<rt.length;lt+=1)it[lt]=(st[lt]-rt[lt])/tt}else it=(st-rt)/tt;return it}function $(){return this.pv}function _e(et){this.propertyGroup=et}return{searchExpressions:a,getSpeedAtTime:_,getVelocityAtTime:b,getValueAtTime:o,getStaticValueAtTime:$,setGroupProperty:_e}}();function addPropertyDecorator(){function a(at,ft,ht){if(!this.k||!this.keyframes)return this.pv;at=at?at.toLowerCase():"";var pt=this.comp.renderedFrame,vt=this.keyframes,ut=vt[vt.length-1].t;if(pt<=ut)return this.pv;var ot,nt;ht?(ft?ot=Math.abs(ut-this.elem.comp.globalData.frameRate*ft):ot=Math.max(0,ut-this.elem.data.ip),nt=ut-ot):((!ft||ft>vt.length-1)&&(ft=vt.length-1),nt=vt[vt.length-1-ft].t,ot=ut-nt);var dt,yt,_t;if(at==="pingpong"){var At=Math.floor((pt-nt)/ot);if(At%2!==0)return this.getValueAtTime((ot-(pt-nt)%ot+nt)/this.comp.globalData.frameRate,0)}else if(at==="offset"){var xt=this.getValueAtTime(nt/this.comp.globalData.frameRate,0),wt=this.getValueAtTime(ut/this.comp.globalData.frameRate,0),Tt=this.getValueAtTime(((pt-nt)%ot+nt)/this.comp.globalData.frameRate,0),It=Math.floor((pt-nt)/ot);if(this.pv.length){for(_t=new Array(xt.length),yt=_t.length,dt=0;dt<yt;dt+=1)_t[dt]=(wt[dt]-xt[dt])*It+Tt[dt];return _t}return(wt-xt)*It+Tt}else if(at==="continue"){var Nt=this.getValueAtTime(ut/this.comp.globalData.frameRate,0),Ct=this.getValueAtTime((ut-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(_t=new Array(Nt.length),yt=_t.length,dt=0;dt<yt;dt+=1)_t[dt]=Nt[dt]+(Nt[dt]-Ct[dt])*((pt-ut)/this.comp.globalData.frameRate)/5e-4;return _t}return Nt+(Nt-Ct)*((pt-ut)/.001)}return this.getValueAtTime(((pt-nt)%ot+nt)/this.comp.globalData.frameRate,0)}function o(at,ft,ht){if(!this.k)return this.pv;at=at?at.toLowerCase():"";var pt=this.comp.renderedFrame,vt=this.keyframes,ut=vt[0].t;if(pt>=ut)return this.pv;var ot,nt;ht?(ft?ot=Math.abs(this.elem.comp.globalData.frameRate*ft):ot=Math.max(0,this.elem.data.op-ut),nt=ut+ot):((!ft||ft>vt.length-1)&&(ft=vt.length-1),nt=vt[ft].t,ot=nt-ut);var dt,yt,_t;if(at==="pingpong"){var At=Math.floor((ut-pt)/ot);if(At%2===0)return this.getValueAtTime(((ut-pt)%ot+ut)/this.comp.globalData.frameRate,0)}else if(at==="offset"){var xt=this.getValueAtTime(ut/this.comp.globalData.frameRate,0),wt=this.getValueAtTime(nt/this.comp.globalData.frameRate,0),Tt=this.getValueAtTime((ot-(ut-pt)%ot+ut)/this.comp.globalData.frameRate,0),It=Math.floor((ut-pt)/ot)+1;if(this.pv.length){for(_t=new Array(xt.length),yt=_t.length,dt=0;dt<yt;dt+=1)_t[dt]=Tt[dt]-(wt[dt]-xt[dt])*It;return _t}return Tt-(wt-xt)*It}else if(at==="continue"){var Nt=this.getValueAtTime(ut/this.comp.globalData.frameRate,0),Ct=this.getValueAtTime((ut+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(_t=new Array(Nt.length),yt=_t.length,dt=0;dt<yt;dt+=1)_t[dt]=Nt[dt]+(Nt[dt]-Ct[dt])*(ut-pt)/.001;return _t}return Nt+(Nt-Ct)*(ut-pt)/.001}return this.getValueAtTime((ot-((ut-pt)%ot+ut))/this.comp.globalData.frameRate,0)}function _(at,ft){if(!this.k)return this.pv;if(at=(at||.4)*.5,ft=Math.floor(ft||5),ft<=1)return this.pv;var ht=this.comp.renderedFrame/this.comp.globalData.frameRate,pt=ht-at,vt=ht+at,ut=ft>1?(vt-pt)/(ft-1):1,ot=0,nt=0,dt;this.pv.length?dt=createTypedArray("float32",this.pv.length):dt=0;for(var yt;ot<ft;){if(yt=this.getValueAtTime(pt+ot*ut),this.pv.length)for(nt=0;nt<this.pv.length;nt+=1)dt[nt]+=yt[nt];else dt+=yt;ot+=1}if(this.pv.length)for(nt=0;nt<this.pv.length;nt+=1)dt[nt]/=ft;else dt/=ft;return dt}function b(at){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var ft=this._transformCachingAtTime.v;if(ft.cloneFromProps(this.pre.props),this.appliedTransformations<1){var ht=this.a.getValueAtTime(at);ft.translate(-ht[0]*this.a.mult,-ht[1]*this.a.mult,ht[2]*this.a.mult)}if(this.appliedTransformations<2){var pt=this.s.getValueAtTime(at);ft.scale(pt[0]*this.s.mult,pt[1]*this.s.mult,pt[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var vt=this.sk.getValueAtTime(at),ut=this.sa.getValueAtTime(at);ft.skewFromAxis(-vt*this.sk.mult,ut*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var ot=this.r.getValueAtTime(at);ft.rotate(-ot*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var nt=this.rz.getValueAtTime(at),dt=this.ry.getValueAtTime(at),yt=this.rx.getValueAtTime(at),_t=this.or.getValueAtTime(at);ft.rotateZ(-nt*this.rz.mult).rotateY(dt*this.ry.mult).rotateX(yt*this.rx.mult).rotateZ(-_t[2]*this.or.mult).rotateY(_t[1]*this.or.mult).rotateX(_t[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var At=this.px.getValueAtTime(at),xt=this.py.getValueAtTime(at);if(this.data.p.z){var wt=this.pz.getValueAtTime(at);ft.translate(At*this.px.mult,xt*this.py.mult,-wt*this.pz.mult)}else ft.translate(At*this.px.mult,xt*this.py.mult,0)}else{var Tt=this.p.getValueAtTime(at);ft.translate(Tt[0]*this.p.mult,Tt[1]*this.p.mult,-Tt[2]*this.p.mult)}return ft}function $(){return this.v.clone(new Matrix)}var _e=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(at,ft,ht){var pt=_e(at,ft,ht);return pt.dynamicProperties.length?pt.getValueAtTime=b.bind(pt):pt.getValueAtTime=$.bind(pt),pt.setGroupProperty=expressionHelpers.setGroupProperty,pt};var et=PropertyFactory.getProp;PropertyFactory.getProp=function(at,ft,ht,pt,vt){var ut=et(at,ft,ht,pt,vt);ut.kf?ut.getValueAtTime=expressionHelpers.getValueAtTime.bind(ut):ut.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(ut),ut.setGroupProperty=expressionHelpers.setGroupProperty,ut.loopOut=a,ut.loopIn=o,ut.smooth=_,ut.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(ut),ut.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(ut),ut.numKeys=ft.a===1?ft.k.length:0,ut.propertyIndex=ft.ix;var ot=0;return ht!==0&&(ot=createTypedArray("float32",ft.a===1?ft.k[0].s.length:ft.k.length)),ut._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:ot},expressionHelpers.searchExpressions(at,ft,ut),ut.k&&vt.addDynamicProperty(ut),ut};function tt(at){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),at*=this.elem.globalData.frameRate,at-=this.offsetTime,at!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<at?this._caching.lastIndex:0,this._cachingAtTime.lastTime=at,this.interpolateShape(at,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var rt=ShapePropertyFactory.getConstructorFunction(),st=ShapePropertyFactory.getKeyframedConstructorFunction();function it(){}it.prototype={vertices:function(ft,ht){this.k&&this.getValue();var pt=this.v;ht!==void 0&&(pt=this.getValueAtTime(ht,0));var vt,ut=pt._length,ot=pt[ft],nt=pt.v,dt=createSizedArray(ut);for(vt=0;vt<ut;vt+=1)ft==="i"||ft==="o"?dt[vt]=[ot[vt][0]-nt[vt][0],ot[vt][1]-nt[vt][1]]:dt[vt]=[ot[vt][0],ot[vt][1]];return dt},points:function(ft){return this.vertices("v",ft)},inTangents:function(ft){return this.vertices("i",ft)},outTangents:function(ft){return this.vertices("o",ft)},isClosed:function(){return this.v.c},pointOnPath:function(ft,ht){var pt=this.v;ht!==void 0&&(pt=this.getValueAtTime(ht,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(pt));for(var vt=this._segmentsLength,ut=vt.lengths,ot=vt.totalLength*ft,nt=0,dt=ut.length,yt=0,_t;nt<dt;){if(yt+ut[nt].addedLength>ot){var At=nt,xt=pt.c&&nt===dt-1?0:nt+1,wt=(ot-yt)/ut[nt].addedLength;_t=bez.getPointInSegment(pt.v[At],pt.v[xt],pt.o[At],pt.i[xt],wt,ut[nt]);break}else yt+=ut[nt].addedLength;nt+=1}return _t||(_t=pt.c?[pt.v[0][0],pt.v[0][1]]:[pt.v[pt._length-1][0],pt.v[pt._length-1][1]]),_t},vectorOnPath:function(ft,ht,pt){ft==1?ft=this.v.c:ft==0&&(ft=.999);var vt=this.pointOnPath(ft,ht),ut=this.pointOnPath(ft+.001,ht),ot=ut[0]-vt[0],nt=ut[1]-vt[1],dt=Math.sqrt(Math.pow(ot,2)+Math.pow(nt,2));if(dt===0)return[0,0];var yt=pt==="tangent"?[ot/dt,nt/dt]:[-nt/dt,ot/dt];return yt},tangentOnPath:function(ft,ht){return this.vectorOnPath(ft,ht,"tangent")},normalOnPath:function(ft,ht){return this.vectorOnPath(ft,ht,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([it],rt),extendPrototype([it],st),st.prototype.getValueAtTime=tt,st.prototype.initiateExpression=ExpressionManager.initiateExpression;var lt=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(at,ft,ht,pt,vt){var ut=lt(at,ft,ht,pt,vt);return ut.propertyIndex=ft.ix,ut.lock=!1,ht===3?expressionHelpers.searchExpressions(at,ft.pt,ut):ht===4&&expressionHelpers.searchExpressions(at,ft.ks,ut),ut.k&&at.addDynamicProperty(ut),ut}}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(o,_){var b=this.calculateExpression(_);if(o.t!==b){var $={};return this.copyData($,o),$.t=b.toString(),$.__complete=!1,$}return o},TextProperty.prototype.searchProperty=function(){var o=this.searchKeyframes(),_=this.searchExpressions();return this.kf=o||_,this.kf},TextProperty.prototype.searchExpressions=a}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function a(o,_){var b=createNS("feMerge");b.setAttribute("result",o);var $,_e;for(_e=0;_e<_.length;_e+=1)$=createNS("feMergeNode"),$.setAttribute("in",_[_e]),b.appendChild($),b.appendChild($);return b}};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,o,_,b,$){this.filterManager=o;var _e=createNS("feColorMatrix");_e.setAttribute("type","matrix"),_e.setAttribute("color-interpolation-filters","linearRGB"),_e.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=_e,_e.setAttribute("result",b+"_tint_1"),a.appendChild(_e),_e=createNS("feColorMatrix"),_e.setAttribute("type","matrix"),_e.setAttribute("color-interpolation-filters","sRGB"),_e.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),_e.setAttribute("result",b+"_tint_2"),a.appendChild(_e),this.matrixFilter=_e;var et=this.createMergeNode(b,[$,b+"_tint_1",b+"_tint_2"]);a.appendChild(et)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(a){if(a||this.filterManager._mdf){var o=this.filterManager.effectElements[0].p.v,_=this.filterManager.effectElements[1].p.v,b=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+b+" 0"),this.matrixFilter.setAttribute("values",_[0]-o[0]+" 0 0 0 "+o[0]+" "+(_[1]-o[1])+" 0 0 0 "+o[1]+" "+(_[2]-o[2])+" 0 0 0 "+o[2]+" 0 0 0 1 0")}};function SVGFillFilter(a,o,_,b){this.filterManager=o;var $=createNS("feColorMatrix");$.setAttribute("type","matrix"),$.setAttribute("color-interpolation-filters","sRGB"),$.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),$.setAttribute("result",b),a.appendChild($),this.matrixFilter=$}SVGFillFilter.prototype.renderFrame=function(a){if(a||this.filterManager._mdf){var o=this.filterManager.effectElements[2].p.v,_=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+o[0]+" 0 0 0 0 "+o[1]+" 0 0 0 0 "+o[2]+" 0 0 0 "+_+" 0")}};function SVGStrokeEffect(a,o,_){this.initialized=!1,this.filterManager=o,this.elem=_,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var a=this.elem.layerElement.children||this.elem.layerElement.childNodes,o,_,b,$;for(this.filterManager.effectElements[1].p.v===1?($=this.elem.maskManager.masksProperties.length,b=0):(b=this.filterManager.effectElements[0].p.v-1,$=b+1),_=createNS("g"),_.setAttribute("fill","none"),_.setAttribute("stroke-linecap","round"),_.setAttribute("stroke-dashoffset",1),b;b<$;b+=1)o=createNS("path"),_.appendChild(o),this.paths.push({p:o,m:b});if(this.filterManager.effectElements[10].p.v===3){var _e=createNS("mask"),et=createElementID();_e.setAttribute("id",et),_e.setAttribute("mask-type","alpha"),_e.appendChild(_),this.elem.globalData.defs.appendChild(_e);var tt=createNS("g");for(tt.setAttribute("mask","url("+getLocationHref()+"#"+et+")");a[0];)tt.appendChild(a[0]);this.elem.layerElement.appendChild(tt),this.masker=_e,_.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 o,_=this.paths.length,b,$;for(o=0;o<_;o+=1)if(this.paths[o].m!==-1&&(b=this.elem.maskManager.viewData[this.paths[o].m],$=this.paths[o].p,(a||this.filterManager._mdf||b.prop._mdf)&&$.setAttribute("d",b.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||b.prop._mdf)){var _e;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var et=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,tt=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,rt=$.getTotalLength();_e="0 0 0 "+rt*et+" ";var st=rt*(tt-et),it=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,lt=Math.floor(st/it),at;for(at=0;at<lt;at+=1)_e+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";_e+="0 "+rt*10+" 0 0"}else _e="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;$.setAttribute("stroke-dasharray",_e)}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 ft=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(ft[0]*255)+","+bmFloor(ft[1]*255)+","+bmFloor(ft[2]*255)+")")}};function SVGTritoneFilter(a,o,_,b){this.filterManager=o;var $=createNS("feColorMatrix");$.setAttribute("type","matrix"),$.setAttribute("color-interpolation-filters","linearRGB"),$.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($);var _e=createNS("feComponentTransfer");_e.setAttribute("color-interpolation-filters","sRGB"),_e.setAttribute("result",b),this.matrixFilter=_e;var et=createNS("feFuncR");et.setAttribute("type","table"),_e.appendChild(et),this.feFuncR=et;var tt=createNS("feFuncG");tt.setAttribute("type","table"),_e.appendChild(tt),this.feFuncG=tt;var rt=createNS("feFuncB");rt.setAttribute("type","table"),_e.appendChild(rt),this.feFuncB=rt,a.appendChild(_e)}SVGTritoneFilter.prototype.renderFrame=function(a){if(a||this.filterManager._mdf){var o=this.filterManager.effectElements[0].p.v,_=this.filterManager.effectElements[1].p.v,b=this.filterManager.effectElements[2].p.v,$=b[0]+" "+_[0]+" "+o[0],_e=b[1]+" "+_[1]+" "+o[1],et=b[2]+" "+_[2]+" "+o[2];this.feFuncR.setAttribute("tableValues",$),this.feFuncG.setAttribute("tableValues",_e),this.feFuncB.setAttribute("tableValues",et)}};function SVGProLevelsFilter(a,o,_,b){this.filterManager=o;var $=this.filterManager.effectElements,_e=createNS("feComponentTransfer");($[10].p.k||$[10].p.v!==0||$[11].p.k||$[11].p.v!==1||$[12].p.k||$[12].p.v!==1||$[13].p.k||$[13].p.v!==0||$[14].p.k||$[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",_e)),($[17].p.k||$[17].p.v!==0||$[18].p.k||$[18].p.v!==1||$[19].p.k||$[19].p.v!==1||$[20].p.k||$[20].p.v!==0||$[21].p.k||$[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",_e)),($[24].p.k||$[24].p.v!==0||$[25].p.k||$[25].p.v!==1||$[26].p.k||$[26].p.v!==1||$[27].p.k||$[27].p.v!==0||$[28].p.k||$[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",_e)),($[31].p.k||$[31].p.v!==0||$[32].p.k||$[32].p.v!==1||$[33].p.k||$[33].p.v!==1||$[34].p.k||$[34].p.v!==0||$[35].p.k||$[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",_e)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(_e.setAttribute("color-interpolation-filters","sRGB"),a.appendChild(_e)),($[3].p.k||$[3].p.v!==0||$[4].p.k||$[4].p.v!==1||$[5].p.k||$[5].p.v!==1||$[6].p.k||$[6].p.v!==0||$[7].p.k||$[7].p.v!==1)&&(_e=createNS("feComponentTransfer"),_e.setAttribute("color-interpolation-filters","sRGB"),_e.setAttribute("result",b),a.appendChild(_e),this.feFuncRComposed=this.createFeFunc("feFuncR",_e),this.feFuncGComposed=this.createFeFunc("feFuncG",_e),this.feFuncBComposed=this.createFeFunc("feFuncB",_e))}SVGProLevelsFilter.prototype.createFeFunc=function(a,o){var _=createNS(a);return _.setAttribute("type","table"),o.appendChild(_),_},SVGProLevelsFilter.prototype.getTableValue=function(a,o,_,b,$){for(var _e=0,et=256,tt,rt=Math.min(a,o),st=Math.max(a,o),it=Array.call(null,{length:et}),lt,at=0,ft=$-b,ht=o-a;_e<=256;)tt=_e/256,tt<=rt?lt=ht<0?$:b:tt>=st?lt=ht<0?b:$:lt=b+ft*Math.pow((tt-a)/ht,1/_),it[at]=lt,at+=1,_e+=256/(et-1);return it.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(a){if(a||this.filterManager._mdf){var o,_=this.filterManager.effectElements;this.feFuncRComposed&&(a||_[3].p._mdf||_[4].p._mdf||_[5].p._mdf||_[6].p._mdf||_[7].p._mdf)&&(o=this.getTableValue(_[3].p.v,_[4].p.v,_[5].p.v,_[6].p.v,_[7].p.v),this.feFuncRComposed.setAttribute("tableValues",o),this.feFuncGComposed.setAttribute("tableValues",o),this.feFuncBComposed.setAttribute("tableValues",o)),this.feFuncR&&(a||_[10].p._mdf||_[11].p._mdf||_[12].p._mdf||_[13].p._mdf||_[14].p._mdf)&&(o=this.getTableValue(_[10].p.v,_[11].p.v,_[12].p.v,_[13].p.v,_[14].p.v),this.feFuncR.setAttribute("tableValues",o)),this.feFuncG&&(a||_[17].p._mdf||_[18].p._mdf||_[19].p._mdf||_[20].p._mdf||_[21].p._mdf)&&(o=this.getTableValue(_[17].p.v,_[18].p.v,_[19].p.v,_[20].p.v,_[21].p.v),this.feFuncG.setAttribute("tableValues",o)),this.feFuncB&&(a||_[24].p._mdf||_[25].p._mdf||_[26].p._mdf||_[27].p._mdf||_[28].p._mdf)&&(o=this.getTableValue(_[24].p.v,_[25].p.v,_[26].p.v,_[27].p.v,_[28].p.v),this.feFuncB.setAttribute("tableValues",o)),this.feFuncA&&(a||_[31].p._mdf||_[32].p._mdf||_[33].p._mdf||_[34].p._mdf||_[35].p._mdf)&&(o=this.getTableValue(_[31].p.v,_[32].p.v,_[33].p.v,_[34].p.v,_[35].p.v),this.feFuncA.setAttribute("tableValues",o))}};function SVGDropShadowEffect(a,o,_,b,$){var _e=o.container.globalData.renderConfig.filterSize,et=o.data.fs||_e;a.setAttribute("x",et.x||_e.x),a.setAttribute("y",et.y||_e.y),a.setAttribute("width",et.width||_e.width),a.setAttribute("height",et.height||_e.height),this.filterManager=o;var tt=createNS("feGaussianBlur");tt.setAttribute("in","SourceAlpha"),tt.setAttribute("result",b+"_drop_shadow_1"),tt.setAttribute("stdDeviation","0"),this.feGaussianBlur=tt,a.appendChild(tt);var rt=createNS("feOffset");rt.setAttribute("dx","25"),rt.setAttribute("dy","0"),rt.setAttribute("in",b+"_drop_shadow_1"),rt.setAttribute("result",b+"_drop_shadow_2"),this.feOffset=rt,a.appendChild(rt);var st=createNS("feFlood");st.setAttribute("flood-color","#00ff00"),st.setAttribute("flood-opacity","1"),st.setAttribute("result",b+"_drop_shadow_3"),this.feFlood=st,a.appendChild(st);var it=createNS("feComposite");it.setAttribute("in",b+"_drop_shadow_3"),it.setAttribute("in2",b+"_drop_shadow_2"),it.setAttribute("operator","in"),it.setAttribute("result",b+"_drop_shadow_4"),a.appendChild(it);var lt=this.createMergeNode(b,[b+"_drop_shadow_4",$]);a.appendChild(lt)}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 o=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(o[0]*255),Math.round(o[1]*255),Math.round(o[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,b=(this.filterManager.effectElements[2].p.v-90)*degToRads,$=_*Math.cos(b),_e=_*Math.sin(b);this.feOffset.setAttribute("dx",$),this.feOffset.setAttribute("dy",_e)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(a,o,_){this.initialized=!1,this.filterManager=o,this.filterElem=a,this.elem=_,_.matteElement=createNS("g"),_.matteElement.appendChild(_.layerElement),_.matteElement.appendChild(_.transformedElement),_.baseElement=_.matteElement}SVGMatte3Effect.prototype.findSymbol=function(a){for(var o=0,_=_svgMatteSymbols.length;o<_;){if(_svgMatteSymbols[o]===a)return _svgMatteSymbols[o];o+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(a,o){var _=a.layerElement.parentNode;if(_){for(var b=_.children,$=0,_e=b.length;$<_e&&b[$]!==a.layerElement;)$+=1;var et;$<=_e-2&&(et=b[$+1]);var tt=createNS("use");tt.setAttribute("href","#"+o),et?_.insertBefore(tt,et):_.appendChild(tt)}},SVGMatte3Effect.prototype.setElementAsMask=function(a,o){if(!this.findSymbol(o)){var _=createElementID(),b=createNS("mask");b.setAttribute("id",o.layerId),b.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(o);var $=a.globalData.defs;$.appendChild(b);var _e=createNS("symbol");_e.setAttribute("id",_),this.replaceInParent(o,_),_e.appendChild(o.layerElement),$.appendChild(_e);var et=createNS("use");et.setAttribute("href","#"+_),b.appendChild(et),o.data.hd=!1,o.show()}a.setMatte(o.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var a=this.filterManager.effectElements[0].p.v,o=this.elem.comp.elements,_=0,b=o.length;_<b;)o[_]&&o[_].data.ind===a&&this.setElementAsMask(this.elem,o[_]),_+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(a,o,_,b){a.setAttribute("x","-100%"),a.setAttribute("y","-100%"),a.setAttribute("width","300%"),a.setAttribute("height","300%"),this.filterManager=o;var $=createNS("feGaussianBlur");$.setAttribute("result",b),a.appendChild($),this.feGaussianBlur=$}SVGGaussianBlurEffect.prototype.renderFrame=function(a){if(a||this.filterManager._mdf){var o=.3,_=this.filterManager.effectElements[0].p.v*o,b=this.filterManager.effectElements[1].p.v,$=b==3?0:_,_e=b==2?0:_;this.feGaussianBlur.setAttribute("stdDeviation",$+" "+_e);var et=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",et)}};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 o=this.effectsManager.effectElements,_=o[0].p.v,b=o[1].p.v,$=o[2].p.v===1,_e=o[3].p.v,et=$?_e:o[4].p.v,tt=o[5].p.v,rt=o[6].p.v,st=o[7].p.v;this.matrix.reset(),this.matrix.translate(-_[0],-_[1],_[2]),this.matrix.scale(et*.01,_e*.01,1),this.matrix.rotate(-st*degToRads),this.matrix.skewFromAxis(-tt*degToRads,(rt+90)*degToRads),this.matrix.translate(b[0],b[1],0),this._mdf=!0,this.opacity!==o[8].p.v&&(this.opacity=o[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(a,o){this.init(o)}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(a,o){(o==null||o>a.length)&&(o=a.length);for(var _=0,b=Array(o);_<o;_++)b[_]=a[_];return b}function _arrayWithHoles(a){if(Array.isArray(a))return a}function _defineProperty(a,o,_){return(o=_toPropertyKey(o))in a?Object.defineProperty(a,o,{value:_,enumerable:!0,configurable:!0,writable:!0}):a[o]=_,a}function _iterableToArrayLimit(a,o){var _=a==null?null:typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(_!=null){var b,$,_e,et,tt=[],rt=!0,st=!1;try{if(_e=(_=_.call(a)).next,o!==0)for(;!(rt=(b=_e.call(_)).done)&&(tt.push(b.value),tt.length!==o);rt=!0);}catch(it){st=!0,$=it}finally{try{if(!rt&&_.return!=null&&(et=_.return(),Object(et)!==et))return}finally{if(st)throw $}}return tt}}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(a,o){var _=Object.keys(a);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(a);o&&(b=b.filter(function($){return Object.getOwnPropertyDescriptor(a,$).enumerable})),_.push.apply(_,b)}return _}function _objectSpread2(a){for(var o=1;o<arguments.length;o++){var _=arguments[o]!=null?arguments[o]:{};o%2?ownKeys(Object(_),!0).forEach(function(b){_defineProperty(a,b,_[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(_)):ownKeys(Object(_)).forEach(function(b){Object.defineProperty(a,b,Object.getOwnPropertyDescriptor(_,b))})}return a}function _objectWithoutProperties$2(a,o){if(a==null)return{};var _,b,$=_objectWithoutPropertiesLoose(a,o);if(Object.getOwnPropertySymbols){var _e=Object.getOwnPropertySymbols(a);for(b=0;b<_e.length;b++)_=_e[b],o.includes(_)||{}.propertyIsEnumerable.call(a,_)&&($[_]=a[_])}return $}function _objectWithoutPropertiesLoose(a,o){if(a==null)return{};var _={};for(var b in a)if({}.hasOwnProperty.call(a,b)){if(o.includes(b))continue;_[b]=a[b]}return _}function _slicedToArray(a,o){return _arrayWithHoles(a)||_iterableToArrayLimit(a,o)||_unsupportedIterableToArray(a,o)||_nonIterableRest()}function _toPrimitive(a,o){if(typeof a!="object"||!a)return a;var _=a[Symbol.toPrimitive];if(_!==void 0){var b=_.call(a,o||"default");if(typeof b!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(a)}function _toPropertyKey(a){var o=_toPrimitive(a,"string");return typeof o=="symbol"?o:o+""}function _unsupportedIterableToArray(a,o){if(a){if(typeof a=="string")return _arrayLikeToArray(a,o);var _={}.toString.call(a).slice(8,-1);return _==="Object"&&a.constructor&&(_=a.constructor.name),_==="Map"||_==="Set"?Array.from(a):_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?_arrayLikeToArray(a,o):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 a(o,_){var b=o.animationData,$=o.loop,_e=o.autoplay,et=o.initialSegment,tt=o.onComplete,rt=o.onLoopComplete,st=o.onEnterFrame,it=o.onSegmentStart,lt=o.onConfigReady,at=o.onDataReady,ft=o.onDataFailed,ht=o.onLoadedImages,pt=o.onDOMLoaded,vt=o.onDestroy;o.lottieRef,o.renderer,o.name,o.assetsPath,o.rendererSettings;var ut=_objectWithoutProperties$2(o,_excluded$1),ot=reactExports.useState(!1),nt=_slicedToArray(ot,2),dt=nt[0],yt=nt[1],_t=reactExports.useRef(),At=reactExports.useRef(null),xt=function(){var Dt;(Dt=_t.current)===null||Dt===void 0||Dt.play()},wt=function(){var Dt;(Dt=_t.current)===null||Dt===void 0||Dt.stop()},Tt=function(){var Dt;(Dt=_t.current)===null||Dt===void 0||Dt.pause()},It=function(Dt){var bt;(bt=_t.current)===null||bt===void 0||bt.setSpeed(Dt)},Nt=function(Dt,bt){var Ht;(Ht=_t.current)===null||Ht===void 0||Ht.goToAndPlay(Dt,bt)},Ct=function(Dt,bt){var Ht;(Ht=_t.current)===null||Ht===void 0||Ht.goToAndStop(Dt,bt)},jt=function(Dt){var bt;(bt=_t.current)===null||bt===void 0||bt.setDirection(Dt)},Et=function(Dt,bt){var Ht;(Ht=_t.current)===null||Ht===void 0||Ht.playSegments(Dt,bt)},gt=function(Dt){var bt;(bt=_t.current)===null||bt===void 0||bt.setSubframe(Dt)},St=function(Dt){var bt;return(bt=_t.current)===null||bt===void 0?void 0:bt.getDuration(Dt)},ct=function(){var Dt;(Dt=_t.current)===null||Dt===void 0||Dt.destroy(),_t.current=void 0},mt=function(){var Dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},bt;if(At.current){(bt=_t.current)===null||bt===void 0||bt.destroy();var Ht=_objectSpread2(_objectSpread2(_objectSpread2({},o),Dt),{},{container:At.current});return _t.current=lottie.loadAnimation(Ht),yt(!!_t.current),function(){var Pt;(Pt=_t.current)===null||Pt===void 0||Pt.destroy(),_t.current=void 0}}};reactExports.useEffect(function(){var kt=mt();return function(){return kt==null?void 0:kt()}},[b,$]),reactExports.useEffect(function(){_t.current&&(_t.current.autoplay=!!_e)},[_e]),reactExports.useEffect(function(){if(_t.current){if(!et){_t.current.resetSegments(!0);return}!Array.isArray(et)||!et.length||((_t.current.currentRawFrame<et[0]||_t.current.currentRawFrame>et[1])&&(_t.current.currentRawFrame=et[0]),_t.current.setSegment(et[0],et[1]))}},[et]),reactExports.useEffect(function(){var kt=[{name:"complete",handler:tt},{name:"loopComplete",handler:rt},{name:"enterFrame",handler:st},{name:"segmentStart",handler:it},{name:"config_ready",handler:lt},{name:"data_ready",handler:at},{name:"data_failed",handler:ft},{name:"loaded_images",handler:ht},{name:"DOMLoaded",handler:pt},{name:"destroy",handler:vt}],Dt=kt.filter(function(Ht){return Ht.handler!=null});if(Dt.length){var bt=Dt.map(function(Ht){var Pt;return(Pt=_t.current)===null||Pt===void 0||Pt.addEventListener(Ht.name,Ht.handler),function(){var Lt;(Lt=_t.current)===null||Lt===void 0||Lt.removeEventListener(Ht.name,Ht.handler)}});return function(){bt.forEach(function(Ht){return Ht()})}}},[tt,rt,st,it,lt,at,ft,ht,pt,vt]);var Rt=React.createElement("div",_objectSpread2({style:_,ref:At},ut));return{View:Rt,play:xt,stop:wt,pause:Tt,setSpeed:It,goToAndStop:Ct,goToAndPlay:Nt,setDirection:jt,playSegments:Et,setSubframe:gt,getDuration:St,destroy:ct,animationContainerRef:At,animationLoaded:dt,animationItem:_t.current}};function getContainerVisibility(a){var o=a.getBoundingClientRect(),_=o.top,b=o.height,$=window.innerHeight-_,_e=window.innerHeight+b;return $/_e}function getContainerCursorPosition(a,o,_){var b=a.getBoundingClientRect(),$=b.top,_e=b.left,et=b.width,tt=b.height,rt=(o-_e)/et,st=(_-$)/tt;return{x:rt,y:st}}var useInitInteractivity=function a(o){var _=o.wrapperRef,b=o.animationItem,$=o.mode,_e=o.actions;reactExports.useEffect(function(){var et=_.current;if(!(!et||!b||!_e.length)){b.stop();var tt=function(){var it=null,lt=function(){var ft=getContainerVisibility(et),ht=_e.find(function(vt){var ut=vt.visibility;return ut&&ft>=ut[0]&&ft<=ut[1]});if(ht){if(ht.type==="seek"&&ht.visibility&&ht.frames.length===2){var pt=ht.frames[0]+Math.ceil((ft-ht.visibility[0])/(ht.visibility[1]-ht.visibility[0])*ht.frames[1]);//! goToAndStop must be relative to the start of the current segment
50
+ b.goToAndStop(pt-b.firstFrame-1,!0)}ht.type==="loop"&&(it===null||it!==ht.frames||b.isPaused)&&(b.playSegments(ht.frames,!0),it=ht.frames),ht.type==="play"&&b.isPaused&&(b.resetSegments(!0),b.play()),ht.type==="stop"&&b.goToAndStop(ht.frames[0]-b.firstFrame-1,!0)}};return document.addEventListener("scroll",lt),function(){document.removeEventListener("scroll",lt)}},rt=function(){var it=function(ht,pt){var vt=ht,ut=pt;if(vt!==-1&&ut!==-1){var ot=getContainerCursorPosition(et,vt,ut);vt=ot.x,ut=ot.y}var nt=_e.find(function(_t){var At=_t.position;return At&&Array.isArray(At.x)&&Array.isArray(At.y)?vt>=At.x[0]&&vt<=At.x[1]&&ut>=At.y[0]&&ut<=At.y[1]:At&&!Number.isNaN(At.x)&&!Number.isNaN(At.y)?vt===At.x&&ut===At.y:!1});if(nt){if(nt.type==="seek"&&nt.position&&Array.isArray(nt.position.x)&&Array.isArray(nt.position.y)&&nt.frames.length===2){var dt=(vt-nt.position.x[0])/(nt.position.x[1]-nt.position.x[0]),yt=(ut-nt.position.y[0])/(nt.position.y[1]-nt.position.y[0]);b.playSegments(nt.frames,!0),b.goToAndStop(Math.ceil((dt+yt)/2*(nt.frames[1]-nt.frames[0])),!0)}nt.type==="loop"&&b.playSegments(nt.frames,!0),nt.type==="play"&&(b.isPaused&&b.resetSegments(!1),b.playSegments(nt.frames)),nt.type==="stop"&&b.goToAndStop(nt.frames[0],!0)}},lt=function(ht){it(ht.clientX,ht.clientY)},at=function(){it(-1,-1)};return et.addEventListener("mousemove",lt),et.addEventListener("mouseout",at),function(){et.removeEventListener("mousemove",lt),et.removeEventListener("mouseout",at)}};switch($){case"scroll":return tt();case"cursor":return rt()}}},[$,b])},useLottieInteractivity=function a(o){var _=o.actions,b=o.mode,$=o.lottieObj,_e=$.animationItem,et=$.View,tt=$.animationContainerRef;return useInitInteractivity({actions:_,animationItem:_e,mode:b,wrapperRef:tt}),et},_excluded=["style","interactivity"],Lottie=function a(o){var _,b,$,_e=o.style,et=o.interactivity,tt=_objectWithoutProperties$2(o,_excluded),rt=useLottie(tt,_e),st=rt.View,it=rt.play,lt=rt.stop,at=rt.pause,ft=rt.setSpeed,ht=rt.goToAndStop,pt=rt.goToAndPlay,vt=rt.setDirection,ut=rt.playSegments,ot=rt.setSubframe,nt=rt.getDuration,dt=rt.destroy,yt=rt.animationContainerRef,_t=rt.animationLoaded,At=rt.animationItem;return reactExports.useEffect(function(){o.lottieRef&&(o.lottieRef.current={play:it,stop:lt,pause:at,setSpeed:ft,goToAndPlay:pt,goToAndStop:ht,setDirection:vt,playSegments:ut,setSubframe:ot,getDuration:nt,destroy:dt,animationContainerRef:yt,animationLoaded:_t,animationItem:At})},[(_=o.lottieRef)===null||_===void 0?void 0:_.current]),useLottieInteractivity({lottieObj:{View:st,play:it,stop:lt,pause:at,setSpeed:ft,goToAndStop:ht,goToAndPlay:pt,setDirection:vt,playSegments:ut,setSubframe:ot,getDuration:nt,destroy:dt,animationContainerRef:yt,animationLoaded:_t,animationItem:At},actions:(b=et==null?void 0:et.actions)!==null&&b!==void 0?b:[],mode:($=et==null?void 0:et.mode)!==null&&$!==void 0?$:"scroll"})};const v$4="5.9.6",fr$4=60,ip$4=0,op$4=106,w$4=1080,h$6=1080,nm$4="Check Mark 01",ddd$3=0,assets$4=[],layers$4=[{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$4=[],animationData$2={v:v$4,fr:fr$4,ip:ip$4,op:op$4,w:w$4,h:h$6,nm:nm$4,ddd:ddd$3,assets:assets$4,layers:layers$4,markers:markers$4},v$3="5.9.6",fr$3=60,ip$3=0,op$3=36,w$3=1080,h$5=1080,nm$3="Check Mark 01",ddd$2=0,assets$3=[],layers$3=[{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$3=[],animationDataLoading$1={v:v$3,fr:fr$3,ip:ip$3,op:op$3,w:w$3,h:h$5,nm:nm$3,ddd:ddd$2,assets:assets$3,layers:layers$3,markers:markers$3},AbhaVerificationStatus=({loading:a=!1,loadingText:o,successText:_})=>jsxRuntimeExports.jsx("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 pds2-bg-surface-subtle",children:a?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Lottie,{animationData:animationDataLoading$1,loop:!0,className:"pds2-w-400"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-content-primary Heading4Semibold pds2-absolute pds2-mt-220",children:o})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Lottie,{animationData:animationData$2,loop:!1,className:"pds2-w-400"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-content-primary Heading4Semibold pds2-absolute pds2-mt-220",children:_})]})}),createStoreImpl=a=>{let o;const _=new Set,b=(st,it)=>{const lt=typeof st=="function"?st(o):st;if(!Object.is(lt,o)){const at=o;o=it??(typeof lt!="object"||lt===null)?lt:Object.assign({},o,lt),_.forEach(ft=>ft(o,at))}},$=()=>o,tt={setState:b,getState:$,getInitialState:()=>rt,subscribe:st=>(_.add(st),()=>_.delete(st))},rt=o=a(b,$,tt);return tt},createStore=a=>a?createStoreImpl(a):createStoreImpl,identity=a=>a;function useStore(a,o=identity){const _=React.useSyncExternalStore(a.subscribe,()=>o(a.getState()),()=>o(a.getInitialState()));return React.useDebugValue(_),_}const createImpl=a=>{const o=createStore(a),_=b=>useStore(o,b);return Object.assign(_,o),_},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.VERIFY_KYC_OTP_LOGIN_WITH_ABHA="VERIFY_KYC_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.CONSENT_LOADER_SCREEN="CONSENT_LOADER_SCREEN",a.CONSENT_DENY="CONSENT_DENY",a.CONSENT_REVOKE="CONSENT_REVOKE",a.CONSENT_APPROVE="CONSENT_APPROVE",a.CONSENT_SCREEN="CONSENT_SCREEN",a.SELF_ASSESSMENT="SELF_ASSESSMENT",a.SA_LISTING_SCREEN="SA_LISTING_SCREEN",a.KYC_LOGIN_SCREEN="KYC_LOGIN_SCREEN",a.KYC_ALREADY_VERIFIED="KYC_ALREADY_VERIFIED",a.SESSION_STATUS_LOADER_SCREEN="SESSION_STATUS_LOADER_SCREEN",a.ABHA_AUTH_QR_SCREEN="ABHA_AUTH_QR_SCREEN",a.AADHAAR_FACEAUTH_VERIFICATION_STATUS="AADHAAR_FACEAUTH_VERIFICATION_STATUS",a.ABHA_MOBILE_AND_OTP_SCREEN="ABHA_MOBILE_AND_OTP_SCREEN",a.ABHA_HEALTHID_CARD_SCREEN="ABHA_HEALTHID_CARD_SCREEN",a.EARN_WITH_ABHA_SCREEN="EARN_WITH_ABHA_SCREEN",a.BOOK_APPOINTMENT_SCREEN="BOOK_APPOINTMENT_SCREEN",a.APPOINTMENT_TOKEN_GENERATED_SCREEN="APPOINTMENT_TOKEN_GENERATED_SCREEN",a.APPOINTMENT_TOKEN_LOADER_SCREEN="APPOINTMENT_TOKEN_LOADER_SCREEN",a))(SCREEN_NAMES||{});const EARN_ABHA_SCREEN_TRIED_KEY="earn_abha_screen_tried_date",FACE_AUTH_TRIED_KEY="face_auth_tried_date",FACE_AUTH_STEPS_URL=["https://cdn.eka.care/vagus/cmj9rtghd00000teue5jf52tf.png","https://cdn.eka.care/vagus/cmj9rtyvh00000tdk8knj75m8.jpg","https://cdn.eka.care/vagus/cmj9rujbm00010teu4jc35t7o.jpg","https://cdn.eka.care/vagus/cmj9rvcy300010tdkb7mg6t5r.jpg","https://cdn.eka.care/vagus/cmj9rvu9o00020teuftb39n9a.png","https://cdn.eka.care/vagus/cmj9rwc4c00020tdkdhmd4tl9.png"],storeInitState={screen:[SCREEN_NAMES.LOGIN_WITH_ABHA],authTxnId:null,txnId:null,aadhaarOtpSentToHint:null,mobileOtpSentToHint:null,kycOtpSentToHint:null,sessionInitTxnId:null,faceAuthQrUrl:null,aadhaarFaceAuthOtpSentToHint:null,aadhaarVerificationSkipStateStatus:null,ekaSmallToken:null,bottomsheetErrorInfo:null,abhaAddressList:null,faceAuthEnable:!1,loginIdentifierValue:null,selectedAadhaarAuth:AADHAAR_AUTH_STATES.OTP,abhaAuthFlowMethod:ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,selectedAbhaAddress:null,ekaProfileInfo:null,registrationType:null,initAbhaAppMethod:"login_or_create_abha",initAbhaAppMobileNumber:null,initAbhaAppIdentifier:null,initAbhaAppIdentifierType:null,consentApiBody:null,consentDetails:null,abhaRequestConsentId:null,initAbhaFlow:null,successRedirect:null,isEkaAppLogin:!1,isDocAppRequest:!1,isEkaDocWebRequest:!1,isSkipABHAEnable:!1,isLoggedInFromRedirect:!1,clientId:"",oid:"",isApiTriggered:!1,isNewLoginOrCreateFlow:!1,selectedAbhaFlow:"",isInitApiTriggered:!1,identityValue:"",currentStepperIndex:1,goBackToLogin:!1,otpFromAutoRead:"",identifierValue:{mobile:"",phr_address:"",abha_number:"",aadhaar_number:""},linkToOrgIcon:void 0,orgIconUrl:void 0,providerDetails:null,appointmentRequestId:null,appointmentTokenDetails:null,qrCodeColors:{bgColor:void 0,fgColor:void 0}},useAuthAbhaStore=create((a,o)=>({screen:[SCREEN_NAMES.LOGIN_WITH_ABHA],setScreen:_=>a(b=>({screen:[...b.screen,_]})),goBackScreen:()=>{const{screen:_}=o();if(_.length===0)return null;a({screen:_.slice(0,-1)}),a(b=>({currentStepperIndex:_.slice(0,-1).at(-1)==="LOGIN_OR_CREATE_ABHA"?1:b.currentStepperIndex-1}))},goBackLoginScreen:()=>{const _=SCREEN_NAMES.LOGIN_OR_CREATE_ABHA;a({screen:[_]}),a({currentStepperIndex:1}),a({goBackToLogin:!0})},setUrlParams:_=>a({urlParams:_}),authTxnId:null,txnId:null,setTxnId:_=>a({txnId:_}),aadhaarOtpSentToHint:null,setAadhaarInitResponse:_=>a(_),aadhaarFaceAuthOtpSentToHint:null,faceAuthQrUrl:null,setAadhaarFaceAuthInitResponse:_=>a(_),kycOtpSentToHint:null,setKycInitResponse:_=>a(_),sessionInitTxnId:null,setSessionInitResponse:_=>a({sessionInitTxnId:_}),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.AADHAR_NUMBER,setAbhaAuthFlowMethod:_=>a({abhaAuthFlowMethod:_}),selectedAadhaarAuth:AADHAAR_AUTH_STATES.OTP,setSelectedAadhaarAuth:_=>a({selectedAadhaarAuth:_}),selectedAbhaAddress:null,setSelectedAbhaAddress:_=>a({selectedAbhaAddress:_}),ekaProfileInfo:null,setEkaProfileInfo:_=>a({ekaProfileInfo:_}),providerDetails:null,setProviderDetails:_=>a({providerDetails:_}),initAbhaAppMethod:"login_or_create_abha",setInitAbhaAppMethod:_=>a({initAbhaAppMethod:_}),initAbhaAppMobileNumber:null,setInitAbhaAppMobileNumber:_=>a({initAbhaAppMobileNumber:_}),initAbhaAppIdentifier:null,setInitAbhaAppIdentifier:_=>a({initAbhaAppIdentifier:_}),initAbhaAppIdentifierType:null,setInitAbhaAppIdentifierType:_=>a({initAbhaAppIdentifierType:_}),initAbhaFlow:null,setInitAbhaFlow:_=>a({initAbhaFlow:_}),successRedirect:null,setSuccessRedirect:_=>a({successRedirect:_}),abhaRequestConsentId:null,setAbhaRequestConsentId:_=>a({abhaRequestConsentId:_}),consentApiBody:{},setConsentApiBody:_=>a(b=>({consentApiBody:{...b.consentApiBody,..._}})),consentDetails:null,setConsentDetails:_=>a({consentDetails:_}),isEkaAppLogin:!1,setIsEkaAppLogin:_=>a({isEkaAppLogin:_}),isDocAppRequest:!1,setIsDocAppRequest:_=>a({isDocAppRequest:_}),isEkaDocWebRequest:!1,setIsEkaDocWebRequest:_=>a({isEkaDocWebRequest:_}),isSkipABHAEnable:!1,setIsSkipABHAEnable:_=>a({isSkipABHAEnable:_}),faceAuthEnable:!1,setFaceAuthEnable:_=>a({faceAuthEnable:_}),setInitState:_=>a(_),isLoggedInFromRedirect:!1,setIsLoggedInFromRedirect:_=>a({isLoggedInFromRedirect:_}),clientId:"",setClientId:_=>a({clientId:_}),otpFromAutoRead:"",setOTPFromAutoRead:_=>a({otpFromAutoRead:_}),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:_}),identifierValue:{mobile:"",phr_address:"",abha_number:"",aadhaar_number:""},linkToOrgIcon:void 0,setLinkToOrgIcon:_=>a({linkToOrgIcon:_}),orgIconUrl:void 0,setOrgIconUrl:_=>a({orgIconUrl:_}),qrCodeColors:{fgColor:void 0,bgColor:void 0},setQrCodeColors:_=>a({qrCodeColors:_}),setIdentifierValue:_=>a(b=>({identifierValue:{...b.identifierValue,..._}})),goBackToLogin:!1,setGoBackToLogin:_=>a({goBackToLogin:_}),appointmentRequestId:null,setAppointmentRequestId:_=>a({appointmentRequestId:_}),appointmentTokenDetails:null,setAppointmentTokenDetails:_=>a({appointmentTokenDetails:_}),clearAbhaAuthStore:()=>a(storeInitState)})),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"]||[]}}}),handleReadOTP=()=>{var a,o;(a=window==null?void 0:window.Eka)!=null&&a.requestAutoReadOTP&&((o=window.Eka)==null||o.requestAutoReadOTP())};function pushToMxpDataLayer({data:a}){typeof window<"u"&&(window.mxpDataLayer=window.mxpDataLayer||[],window.mxpDataLayer.push(a))}function sendApiFailedEvent({category:a="api-failed",url:o,params:_}){pushToMxpDataLayer({data:{name:a,data:{url:o,..._}}}),{..._}}const handleSendEvent=({eventName:a,eventData:o})=>{var _,b,$,_e,et;try{if(window!=null&&window.Bridge){const tt=new window.Bridge;(_=tt.track)==null||_.call(tt,a,o)}(b=window==null?void 0:window.Eka)!=null&&b.sendEvent&&window.Eka.sendEvent(JSON.stringify({event:a,properties:o})),(et=(_e=($=window==null?void 0:window.webkit)==null?void 0:$.messageHandlers)==null?void 0:_e.mixPanel)!=null&&et.postMessage&&window.webkit.messageHandlers.mixPanel.postMessage(JSON.stringify({event:a,properties:o}))}catch(tt){console.error("Analytics error:",tt)}};async function refreshToken(){if(await updateToken())return!0;const o=new Headers;o.append("Content-Type","application/json"),o.set("client-id",GET_CLIENT_ID());const _=JSON.stringify({}),b={method:"POST",headers:o,body:_,redirect:"follow",credentials:"include",mode:"cors"};try{const $=GET_AORTA_GO_HOST();if((await fetch(`${$}/emr/v3/auth/refresh`,{...b,body:JSON.stringify({})})).status===401)return!1}catch{return!1}return!0}async function fetchWrapper(a,o={},_=!0,b=!1,$=[]){var _e,et;try{const tt=((et=(_e=window==null?void 0:window.Eka)==null?void 0:_e.getSessionToken)==null?void 0:et.call(_e))||"",rt=new Headers(o.headers);let st,it;!rt.get("client-id")&&!b&&rt.set("client-id",GET_CLIENT_ID()),tt&&!rt.get("auth")&&rt.set("auth",tt);const lt=GET_EXTRA_HEADERS();lt&&Object.keys(lt).forEach(ft=>{$.includes(ft)||rt.set(ft,lt[ft])}),$.forEach(ft=>rt.delete(ft));const at=await fetch(a,{...o,headers:rt});return window&&(it=window.location.pathname,st=rt.get("client-id")),at.status===401&&_&&await refreshToken()?await fetchWrapper(a,o,!1):(at.status>401&&sendApiFailedEvent({url:a,params:{responseStatus:at.status}}),at)}catch(tt){throw sendApiFailedEvent({url:a,params:{error:`${tt.message||tt}`}}),console.error(tt),tt}}let androidRefreshCB=[];async function refreshCallback(a){androidRefreshCB.forEach(o=>o(!0)),androidRefreshCB=[]}async function updateToken(){var a,o,_,b,$,_e;if(typeof window<"u"){if(typeof((a=window==null?void 0:window.Eka)==null?void 0:a.updateToken)=="function")return(o=window.parent)==null||o.postMessage({type:"REFRESH_TOKEN"},"*"),window.refreshCallback=window.refreshCallback||refreshCallback,new Promise(et=>{var tt;androidRefreshCB.push(et),(tt=window==null?void 0:window.Eka)==null||tt.updateToken("refreshCallback")});if(typeof(($=(b=(_=window==null?void 0:window.webkit)==null?void 0:_.messageHandlers)==null?void 0:b.statusCodeHandler)==null?void 0:$.postMessage)=="function")return(_e=window.parent)==null||_e.postMessage({type:"REFRESH_TOKEN"},"*"),window.refreshCallback=window.refreshCallback||refreshCallback,new Promise(et=>{var tt,rt,st;androidRefreshCB.push(et),(st=(rt=(tt=window==null?void 0:window.webkit)==null?void 0:tt.messageHandlers)==null?void 0:rt.statusCodeHandler)==null||st.postMessage(JSON.stringify({status:401}))})}return!1}async function postAuthInitV2({method:a,identifier:o}){const _=new Headers;_.append("Content-Type","application/json");const b=JSON.stringify({method:a,identifier:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${_e}/v2/auth/init`,$,!0,!1,["X-Pt-Id"])).json()}catch(_e){console.error(_e)}return{}}async function postAuthVerifyV3(a){const o=new Headers,_=GET_CLIENT_ID();o.append("Content-Type","application/json"),o.append("client-id",_);const b=JSON.stringify(a),$={method:"POST",headers:o,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${_e}/phr/v3/auth/verify`,$,!0,!1,["X-Pt-Id"])).json()}catch(_e){return{error:{message:_e instanceof Error?_e.message:"Something went wrong. Please try again later."}}}}async function postAuthSwitchV3({oid:a,refresh:o}){const _=new Headers;_.append("Content-Type","application/json");const b=JSON.stringify({oid:a,refresh:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${_e}/v3/auth/switch`,$,!0,!1,["X-Pt-Id"])).json()}catch(_e){console.error("postAuthSwitchError: ",_e)}return{}}async function getProfilePhrUser(){const a=new Headers;a.append("Content-Type","application/json");const o={method:"GET",headers:a,redirect:"follow",credentials:"include"};try{const _=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${_}/profiles/v1/patient`,o,!0,!1,["X-Pt-Id"])).json()}catch(_){return console.error("profilePhrUser error =>",_),[]}}async function getProfilesPatient(){const a=new Headers;a.append("Content-Type","application/json");const o={method:"GET",headers:a,redirect:"follow",credentials:"include"},_=GET_EXTRA_HEADERS(),b=_==null?void 0:_["X-User-ID"];if(!b)return{};try{const $=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${$}/profiles/v1/patient/${b}`,o,!0,!1,["X-Pt-Id"])).json()}catch($){return console.error("profilePhrUser error =>",$),{}}}async function getPatientData(a){const o=new Headers;o.append("Content-Type","application/json");const _={method:"GET",headers:o,redirect:"follow",credentials:"include"};if(!a)return{};try{const b=GET_AORTA_GO_HOST();return await(await fetchWrapper(`${b}/profiles/v1/patient/${a}`,_,!0,!1,["X-Pt-Id"])).json()}catch(b){return console.error("profilePhrUser error =>",b),{}}}async function postAuthLogoutV2(){var tt;console.log("inside postAuthLogoutV2 api call");const a=new Headers;a.append("Content-Type","application/json");const o=GET_REFRESH_TOKEN(),_=((tt=GET_EXTRA_HEADERS())==null?void 0:tt.auth)||"",b=o&&_,_e=`${GET_AORTA_GO_HOST()}/v3/auth/logout`,et={method:"POST",headers:a,...b?{body:JSON.stringify({refresh:o,sess:_})}:{},redirect:"follow",credentials:"include"};try{const rt=await fetchWrapper(_e,et,!0,!1,["X-Pt-Id"]);return rt.ok?!0:(console.log("Logout failed with status",rt==null?void 0:rt.status),!1)}catch(rt){return console.error("Logout API failed:",rt),!1}}async function postAbdmLoginInit({method:a,identifier:o}){const _=new Headers;_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b=JSON.stringify({method:a,identifier:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_NDHM_HOST();return await(await fetchWrapper(`${_e}/abdm/na/v1/profile/login/init`,$)).json()}catch(_e){console.error("postAbdmLoginInit error =>",_e)}return{}}async function postAbdmKycInit({method:a,identifier:o}){const _=new Headers,b=GET_EXTRA_HEADERS();_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const $=JSON.stringify({method:a,identifier:o,user_x_token:(b==null?void 0:b.auth)??""}),_e={method:"POST",headers:_,body:$,redirect:"follow",credentials:"include"};try{const et=GET_NDHM_HOST();return await(await fetchWrapper(`${et}/abdm/v1/profile/kyc/init`,_e)).json()}catch(et){console.error("postAbdmKycInit error =>",et)}return{}}async function postAbdmSessionInit({abha_address:a}){const o=new Headers;o.append("Content-Type","application/json"),o.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&o.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _=JSON.stringify({abha_address:a}),b={method:"POST",headers:o,body:_,redirect:"follow",credentials:"include"};try{const $=GET_NDHM_HOST();return await(await fetchWrapper(`${$}/abdm/v1/session/init`,b)).json()}catch($){console.error("postAbdmSessionInit error =>",$)}return{}}async function postAbdmConsentDeny({consentId:a}){const o=new Headers;o.append("Content-Type","application/json"),o.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&o.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _=GET_NDHM_HOST(),b=JSON.stringify({id:a,reason:"Consent Denied"}),$={method:"POST",headers:o,body:b,credentials:"include"};try{const _e=await fetchWrapper(`${_}/abdm/v1/consents/deny`,$);return _e.ok?{success:!0}:await _e.json()}catch(_e){console.error("postabdmConsentDenyError error =>",_e)}return{}}async function postAbdmConsentRevoke({consent_artefacts_ids:a}){const o=new Headers;o.append("Content-Type","application/json"),o.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&o.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _=GET_NDHM_HOST(),b=JSON.stringify({consent_artefacts:a}),$={method:"POST",headers:o,body:b,credentials:"include"};try{const _e=await fetchWrapper(`${_}/abdm/v1/consents/revoke`,$);return _e.ok?{success:!0}:await _e.json()}catch(_e){console.error("postabdmConsentRevokeError error =>",_e)}return{}}async function postAbdmConsentApprove({consentApprovePayload:a}){const o=new Headers;o.append("Content-Type","application/json"),o.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&o.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _=GET_NDHM_HOST(),b=JSON.stringify(a),$={method:"POST",headers:o,body:b,credentials:"include"};try{const _e=await fetchWrapper(`${_}/abdm/v1/consents/approve`,$);return _e.ok?{success:!0}:await _e.json()}catch(_e){console.error("postabdmConsentDenyError error =>",_e)}return{}}async function postAbdmLoginVerify({txn_id:a,otp:o}){const _=new Headers;_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b=JSON.stringify({txn_id:a,otp:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_NDHM_HOST();return await(await fetchWrapper(`${_e}/abdm/na/v1/profile/login/verify`,$)).json()}catch(_e){console.error("postAbdmLoginVerify error =>",_e)}return{}}async function postAbdmKycVerify({txn_id:a,otp:o}){const _=new Headers,b=GET_EXTRA_HEADERS();_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const $=JSON.stringify({txn_id:a,otp:o,user_x_token:(b==null?void 0:b.auth)??""}),_e={method:"POST",headers:_,body:$,redirect:"follow",credentials:"include"};try{const et=GET_NDHM_HOST();return await(await fetchWrapper(`${et}/abdm/v1/profile/kyc/verify`,_e)).json()}catch(et){console.error("postAbdmKycVerify error =>",et)}return{}}async function postAbdmSessionVerify({txn_id:a,otp:o}){const _=new Headers,b=GET_EXTRA_HEADERS();_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const $=JSON.stringify({txn_id:a,otp:o,user_x_token:(b==null?void 0:b.auth)??""}),_e={method:"POST",headers:_,body:$,redirect:"follow",credentials:"include"},et=GET_NDHM_HOST(),tt=await fetchWrapper(`${et}/abdm/v1/session/verify`,_e);let rt=null;const st=await tt.text();if(st)try{rt=JSON.parse(st)}catch(it){console.error("Invalid JSON response",it)}return{statusCode:tt.status,data:rt}}async function postRegisterAadhaarInit({aadhaar_number:a}){const o=new Headers;o.append("Content-Type","application/json"),o.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&o.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _=JSON.stringify({aadhaar_number:a}),b={method:"POST",headers:o,body:_,redirect:"follow",credentials:"include"};try{const $=GET_NDHM_HOST();return await(await fetchWrapper(`${$}/abdm/na/v1/registration/aadhaar/init`,b)).json()}catch{}return{}}async function postRegisterAadhaarFaceAuthInit(){const a=new Headers;a.append("Content-Type","application/json"),a.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&a.append("X-Journey-Id",GET_REG_JOURNEY_ID());const o={method:"POST",headers:a,redirect:"follow",credentials:"include"};try{const _=GET_NDHM_HOST();return await(await fetchWrapper(`${_}/abdm/na/v1/registration/aadhaar/face-auth/init`,o)).json()}catch{}return{}}async function postRegisterAadhaarFaceAuthCapture({txn_id:a}){const o=new Headers;o.append("Content-Type","application/json"),o.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&o.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _=JSON.stringify({txn_id:a}),b={method:"POST",headers:o,body:_,redirect:"follow",credentials:"include"};try{const $=GET_NDHM_HOST();return await(await fetchWrapper(`${$}/abdm/na/v1/registration/aadhaar/face-auth/capture`,b)).json()}catch{}return{}}async function postRegisterAadhaarFaceAuthVerify({txn_id:a,aadhaar:o}){const _=new Headers;_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b=JSON.stringify({txn_id:a,aadhaar:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_NDHM_HOST();return await(await fetchWrapper(`${_e}/abdm/na/v1/registration/aadhaar/face-auth/verify`,$)).json()}catch{}return{}}async function postRegisterMobileInit({mobile_number:a}){const o=new Headers;o.append("Content-Type","application/json"),o.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&o.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _=JSON.stringify({mobile_number:a}),b={method:"POST",headers:o,body:_,redirect:"follow",credentials:"include"};try{const $=GET_NDHM_HOST();return await(await fetchWrapper(`${$}/abdm/na/v1/registration/mobile/init`,b)).json()}catch($){console.error($)}return{}}async function postRegisterAadhaarMobileInit({mobile:a,txn_id:o}){const _=new Headers;_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b=JSON.stringify({mobile:a,txn_id:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_NDHM_HOST();return await(await fetchWrapper(`${_e}/abdm/na/v1/registration/aadhaar/mobile/init`,$)).json()}catch(_e){console.error(_e)}return{}}async function postRegisterAadhaarVerify({txn_id:a,mobile:o,otp:_}){const b=new Headers;b.append("Content-Type","application/json"),b.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&b.append("X-Journey-Id",GET_REG_JOURNEY_ID());const $=JSON.stringify({txn_id:a,mobile:o,otp:_}),_e={method:"POST",headers:b,body:$,redirect:"follow",credentials:"include"};try{const et=GET_NDHM_HOST();return await(await fetchWrapper(`${et}/abdm/na/v1/registration/aadhaar/verify`,_e)).json()}catch{}return{}}async function postRegisterAadhaarAutoLogin({txn_id:a,abha_address:o}){const _=new Headers;_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b=JSON.stringify({txn_id:a,abha_address:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_NDHM_HOST();return await(await fetchWrapper(`${_e}/abdm/na/v1/registration/aadhaar/auto-login`,$)).json()}catch{}return{}}async function postRegisterAadhaarMobileVerify({txn_id:a,otp:o}){const _=new Headers;_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b=JSON.stringify({txn_id:a,otp:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_NDHM_HOST();return await(await fetchWrapper(`${_e}/abdm/na/v1/registration/aadhaar/mobile/verify`,$)).json()}catch{}return{}}async function postRegisterAadhaarResendOtp({txn_id:a}){const o=new Headers;o.append("Content-Type","application/json"),o.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&o.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _=JSON.stringify({txn_id:a}),b={method:"POST",headers:o,body:_,redirect:"follow",credentials:"include"};try{const $=GET_NDHM_HOST();return await(await fetchWrapper(`${$}/abdm/na/v1/registration/aadhaar/resend`,b)).json()}catch{}return{}}async function postAbdmKycVerifyResendOtp({txn_id:a}){const o=new Headers;o.append("Content-Type","application/json"),o.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&o.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _=JSON.stringify({txn_id:a}),b={method:"POST",headers:o,body:_,redirect:"follow",credentials:"include"};try{const $=GET_NDHM_HOST();return await(await fetchWrapper(`${$}/abdm/v1/profile/kyc/resend`,b)).json()}catch{}return{}}async function postRegisterAadhaarMobileResendOtp({txn_id:a}){const o=new Headers;o.append("Content-Type","application/json"),o.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&o.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _=JSON.stringify({txn_id:a}),b={method:"POST",headers:o,body:_,redirect:"follow",credentials:"include"};try{const $=GET_NDHM_HOST();return await(await fetchWrapper(`${$}/abdm/na/v1/registration/aadhaar/mobile/resend`,b)).json()}catch{}return{}}async function postRegisterAadhaarCreatePhr({abha_address:a,txn_id:o}){const _=new Headers;_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b=JSON.stringify({abha_address:a,txn_id:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_NDHM_HOST();return await(await fetchWrapper(`${_e}/abdm/na/v1/registration/aadhaar/create-phr`,$)).json()}catch(_e){console.error("postRegisterAadhaarCreatePhr ==>",_e)}return{}}async function postAbdmRegisterMobileCreatePhr({abha_address:a,address:o,first_name:_,last_name:b,day_of_birth:$,month_of_birth:_e,year_of_birth:et,gender:tt,middle_name:rt,pincode:st,txn_id:it}){const lt=new Headers;lt.append("Content-Type","application/json"),lt.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&lt.append("X-Journey-Id",GET_REG_JOURNEY_ID());const at=JSON.stringify({abha_address:a,profile:{address:o,day_of_birth:$,first_name:_,gender:tt,last_name:b,middle_name:rt,month_of_birth:_e,pincode:st,year_of_birth:et},txn_id:it}),ft={method:"POST",headers:lt,body:at,redirect:"follow",credentials:"include"};try{const ht=GET_NDHM_HOST();return await(await fetchWrapper(`${ht}/abdm/na/v1/registration/mobile/create-phr`,ft)).json()}catch(ht){console.error("postAbdmRegisterMobileCreatePhr error =>",ht)}return{}}async function postAbdmProfileLoginPhr({txn_id:a,phr_address:o}){const _=new Headers;_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b=JSON.stringify({txn_id:a,phr_address:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_NDHM_HOST();return await(await fetchWrapper(`${_e}/abdm/na/v1/profile/login/phr`,$)).json()}catch(_e){console.error("postAbdmProfileLoginPhr error =>",_e)}return{}}async function getAbdmRegisterSuggest({txn_id:a,fn:o,mn:_,ln:b,dob:$}){const _e=new Headers;_e.append("Content-Type","application/json"),_e.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_e.append("X-Journey-Id",GET_REG_JOURNEY_ID());const et={method:"GET",headers:_e,redirect:"follow",credentials:"include"};try{const tt=GET_NDHM_HOST();return await(await fetchWrapper(`${tt}/abdm/na/v1/registration/suggest?transactionId=${a}&fn=${o||""}&mn=${_||""}&ln=${b||""}&dob=${$||""}`,et)).json()}catch(tt){console.error("postAbdmLoginVerify error =>",tt)}return{}}async function postAbdmRegisterAbhaNumberCreatePhr({abha_address:a,txn_id:o}){const _=new Headers;_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b=JSON.stringify({abha_address:a,txn_id:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_NDHM_HOST();return await(await fetchWrapper(`${_e}/abdm/na/v1/registration/abha-number/create-phr`,$)).json()}catch(_e){console.error("postAbdmRegisterAbhaNumberCreatePhr ==>",_e)}return{}}async function postAbdmRegisterPhrCheck({abha_address:a}){const o=new Headers;o.append("Content-Type","application/json"),o.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&o.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _=JSON.stringify({abha_address:a}),b={method:"POST",headers:o,body:_,redirect:"follow",credentials:"include"};try{const $=GET_NDHM_HOST();return await(await fetchWrapper(`${$}/abdm/na/v1/registration/phr/check`,b)).json()}catch($){console.error("postAbdmRegisterPhrCheck ==>",$)}return{}}async function postRequestGenerateToken(){const a=new Headers;a.append("Content-Type","application/json"),a.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&a.append("X-Journey-Id",GET_REG_JOURNEY_ID());const o=JSON.stringify({counter_id:GET_COUNTER_ID(),hip_id:GET_HIP_ID()}),_={method:"POST",headers:a,body:o,redirect:"follow",credentials:"include"},b=GET_NDHM_HOST(),$=await fetchWrapper(`${b}/abdm/v2/profile/share`,_);let _e=null;const et=await $.text();if(et)try{_e=JSON.parse(et)}catch(tt){console.error("Invalid JSON response",tt)}return{statusCode:$.status,data:_e}}async function postAbdmProfileEka({abha_address:a,address:o,first_name:_,last_name:b,day_of_birth:$,month_of_birth:_e,year_of_birth:et,gender:tt,middle_name:rt,pincode:st}){const it=new Headers;it.append("Content-Type","application/json"),it.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&it.append("X-Journey-Id",GET_REG_JOURNEY_ID());const lt=JSON.stringify({abha_address:a,profile:{address:o,day_of_birth:$,first_name:_,gender:tt,last_name:b,middle_name:rt,month_of_birth:_e,pincode:st,year_of_birth:et}}),at={method:"POST",headers:it,body:lt,redirect:"follow",credentials:"include"};try{const ft=GET_NDHM_HOST();return await(await fetchWrapper(`${ft}/abdm/v1/profile/eka`,at)).json()}catch(ft){console.error("postAbdmProfileEka error =>",ft)}return{}}async function postMagicUrl({magic:a,whatsapp:o}){const _=new Headers;_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b=JSON.stringify({magic:a,whatsapp:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{return await(await fetchWrapper("https://ndhm.eka.care/v2/phr/auth/link-notification",$)).json()}catch(_e){console.error("postMagicUrl ==>",_e)}return{}}async function postAbdmProfileEkaLinkPhr({abha_address:a,oid:o}){const _=new Headers;_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b=JSON.stringify({abha_address:a,oid:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_NDHM_HOST();return await(await fetchWrapper(`${_e}/abdm/v1/profile/eka/link-phr`,$)).json()}catch(_e){console.error("postAbdmProfileLinkPhr ==>",_e)}return{}}async function postAbdmRegisterMobileVerify({txn_id:a,otp:o}){const _=new Headers;_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b=JSON.stringify({txn_id:a,otp:o}),$={method:"POST",headers:_,body:b,redirect:"follow",credentials:"include"};try{const _e=GET_NDHM_HOST();return await(await fetchWrapper(`${_e}/abdm/na/v1/registration/mobile/verify`,$)).json()}catch{}return{}}async function postAbdmRegisterMobileResendOtp({txn_id:a}){const o=new Headers;o.append("Content-Type","application/json"),o.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&o.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _={method:"POST",headers:o,body:JSON.stringify({txn_id:a}),redirect:"follow",credentials:"include"};try{const b=GET_NDHM_HOST();return await(await fetchWrapper(`${b}/abdm/na/v1/registration/mobile/resend`,_)).json()}catch{}return{}}async function getPincodeDetails({pincode:a}){const _=`${GET_NDHM_HOST()}/abdm/na/v1/registration/pincode/${a}`,b=new Headers;b.append("Content-Type","application/json"),b.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&b.append("X-Journey-Id",GET_REG_JOURNEY_ID());const $={method:"GET",headers:b,redirect:"follow",credentials:"include"};try{return await(await fetchWrapper(_,$)).json()}catch(_e){console.error(_e)}return{}}async function getProviderDetails(){const a=GET_NDHM_HOST(),o=GET_HIP_ID(),_=`${a}/abdm/v1/provider/${o}`,b=new Headers;b.append("Content-Type","application/json"),b.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&b.append("X-Journey-Id",GET_REG_JOURNEY_ID());const $={method:"GET",headers:b,redirect:"follow",credentials:"include"};try{return await(await fetchWrapper(_,$)).json()}catch(_e){console.error(_e)}return{}}var ConsentStatus=(a=>(a.REQUESTED="REQUESTED",a.GRANTED="GRANTED",a.DENIED="DENIED",a.EXPIRED="EXPIRED",a.REVOKED="REVOKED",a))(ConsentStatus||{});async function getConsentRequest({id:a,type:o}){const _=GET_NDHM_HOST();console.log("NDHM_HOST",_);const b=`${_}/abdm/v1/request?type=consent&status=${o}&id=${a}`,$=new Headers;$.append("Content-Type","application/json"),$.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&$.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _e={method:"GET",headers:$,redirect:"follow",credentials:"include"};try{const et=await fetchWrapper(b,_e);if(et.status===200)return await et.json();throw Error("Error fetching Consent Details")}catch(et){console.error(et)}return{}}async function getAbdmAssestCard(){const a=GET_NDHM_HOST();console.log("NDHM_HOST",a);const o=`${a}/abdm/v1/profile/asset/card`,_=new Headers;_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b={method:"GET",headers:_,redirect:"follow",credentials:"include"};try{const $=await fetchWrapper(o,b);if($.status===200)return await $.blob();throw Error("Error fetching Consent Details")}catch($){console.error($)}return{}}async function getAbdmProfileV1(){const a=GET_NDHM_HOST();console.log("NDHM_HOST",a);const o=`${a}/abdm/v1/profile`,_=new Headers;_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b={method:"GET",headers:_,redirect:"follow",credentials:"include"};try{const $=await fetchWrapper(o,b);if($.status===200)return await $.json();throw Error("Error fetching Consent Details")}catch($){console.error($)}return{}}async function getAbdmSessionStatus(){const a=GET_NDHM_HOST();console.log("NDHM_HOST",a);const o=`${a}/abdm/v1/session/status`,_=new Headers;_.append("Content-Type","application/json"),_.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&_.append("X-Journey-Id",GET_REG_JOURNEY_ID());const b={method:"GET",headers:_,redirect:"follow",credentials:"include"};try{const $=await fetchWrapper(o,b);if($.status===200)return await $.json();throw Error("Error fetching Consent Details")}catch($){console.error($)}return{}}async function getAppointmentToken({request_id:a}){const o=GET_NDHM_HOST();console.log("NDHM_HOST",o);const _=`${o}/abdm/v2/profile/share/${a}`,b=new Headers;b.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&b.append("X-Journey-Id",GET_REG_JOURNEY_ID());const $={method:"GET",headers:b,redirect:"follow",credentials:"include"};try{const _e=await fetchWrapper(_,$);if(_e.status===200)return await _e.json();throw Error("Error fetching Consent Details")}catch(_e){console.error(_e)}return{}}async function postAbdmProfileSearch({mobile:a}){const o=new Headers;o.append("Content-Type","application/json"),o.append("X-ABHA-SDK-Version",GET_ABHA_SDK_VERSION()),GET_REG_JOURNEY_ID()&&o.append("X-Journey-Id",GET_REG_JOURNEY_ID());const _=GET_NDHM_HOST(),b=JSON.stringify({mobile:a}),$={method:"POST",headers:o,body:b,credentials:"include"};try{return(await fetchWrapper(`${_}/abdm/v1/profile/search`,$)).json()}catch(_e){console.error("postAbdmProfileSearch error =>",_e)}return{}}const useTrackAbhaEvent=()=>{const a=useAuthAbhaStore(b=>b.isNewLoginOrCreateFlow),o=useAuthAbhaStore(b=>b.isEkaAppLogin),_=useAuthAbhaStore(b=>b.clientId);return({name:b,data:$={}})=>{var it,lt;const _e=GET_EXTRA_HEADERS(),et=(_e==null?void 0:_e.auth)||"",tt=(_e==null?void 0:_e["X-User-ID"])||"",st={...{auth:et||"missing authToken",x_id:tt||"missing xId",login_platform:_,is_eka_app_login:o?"true":"false",is_new_login_or_create_flow:a?"true":"false"},...$};(lt=(it=window.curio)==null?void 0:it.pushToMixpanel)==null||lt.call(it,b,st),handleSendEvent==null||handleSendEvent({eventName:b,eventData:st})}},AbhaAadhaarVerificationStatusScreen=()=>{const a=useAuthAbhaStore(nt=>nt.aadhaarVerificationSkipStateStatus),o=useAuthAbhaStore(nt=>nt.setAbhaAuthFlowMethod),_=useAuthAbhaStore(nt=>nt.authTxnId),b=useAuthAbhaStore(nt=>nt.ekaSmallToken),$=useAuthAbhaStore(nt=>nt.setScreen),_e=useAuthAbhaStore(nt=>nt.setOTPFromAutoRead),et=useAuthAbhaStore(nt=>nt.abhaAddressList),[tt,rt]=reactExports.useState(!0),st=useAuthAbhaStore(nt=>nt.clientId),it=useAuthAbhaStore(nt=>nt.isEkaAppLogin),lt=useAuthAbhaStore(nt=>nt.oid),at=useAuthAbhaStore(nt=>nt.ekaProfileInfo),ft=["M","F","O","U"],ht=useAuthAbhaStore(nt=>nt.setSelectedAbhaFlow),pt=useAuthAbhaStore(nt=>nt.initAbhaFlow),vt=useAuthAbhaStore(nt=>nt.setIsInitApiTriggered),ut=useAuthAbhaStore(nt=>nt.setIdentifierValue),ot=useTrackAbhaEvent();return reactExports.useEffect(()=>{var yt,_t;const nt=new Promise(At=>{setTimeout(()=>{At(rt(!1))},500)});ot({name:"page_view",data:{page_view:"aadhaar_verified_successful",flow:pt,platform:st}}),(_t=(yt=window.curio)==null?void 0:yt.pushToMixpanel)==null||_t.call(yt,"page_view",{platform:st,page_view:"aadhaar_verified_successful"});async function dt(){await nt,setTimeout(async()=>{var At,xt,wt,Tt,It,Nt;if(a===ABHA_V3_SKIP_STATES.CONFIRM_MOBILE_OTP)console.log("setting the selected abha flow to aadhaar"),ht("aadhaar"),ot({name:"abha_aadhaar_verification_status",data:{type:"confirm_mobile_otp",flow:pt,platform:st,transactionId:_||"",skipState:"confirm_mobile_otp",minToken:b||"",oid:(at==null?void 0:at.oid)||"",abhaAddress:(at==null?void 0:at.abha_address)||"",isEkaAppLogin:it?"true":"false"}}),_e(""),handleReadOTP(),$(SCREEN_NAMES.ABHA_PHONE_NUMBER_VERIFICATION);else{if(a===ABHA_V3_SKIP_STATES.ABHA_CREATE&&pt===ABHA_INIT_FLOW.ABHA_KYC){vt(!1),ut({abha_number:at==null?void 0:at.abha_number}),setIndividualEnv({extraHeaders:{"X-Pt-Id":(at==null?void 0:at.oid)??""}}),o(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER),$(SCREEN_NAMES.KYC_LOGIN_SCREEN);return}if(it){const jt=ft.includes(at==null?void 0:at.gender)?at==null?void 0:at.gender:void 0,Et={oid:(at==null?void 0:at.oid)||"",fln:(at==null?void 0:at.name)||"",dob:at==null?void 0:at.date_of_birth,gen:jt,mobile:at==null?void 0:at.mobile,at:"",fn:(at==null?void 0:at.firstname)||"",mn:(at==null?void 0:at.middlename)||"",ln:(at==null?void 0:at.lastname)||"",abha_number:(at==null?void 0:at.abha_number)||"","health-ids":at!=null&&at.abha_address?[at==null?void 0:at.abha_address]:void 0};console.log("inside abha aadhaar verification status auth profile response ",Et);const gt=getMockAuthVerifyResponse(Et);if(console.log("authResponse ",gt),a===ABHA_V3_SKIP_STATES.ABHA_END&&lt){if(ot({name:"abha_aadhaar_verification_status_eka_flow",data:{type:"verify",flow:pt,platform:st,transactionId:_||"",skipState:"abha_end",minToken:b||"",oid:lt||"",abhaAddress:(at==null?void 0:at.abha_address)||"",isEkaAppLogin:it?"true":"false"}}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(At=window.EkaAbha)==null||At.onAbhaSuccess(JSON.stringify({response:gt}));return}onAbhaSuccess({response:gt}),unMount();return}if(a===ABHA_V3_SKIP_STATES.ABHA_CREATE&&et){$(SCREEN_NAMES.SELECT_ABHA_FROM_LIST);return}console.log("redirecting to create eka profile for abha address creation -> mobile"),$(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(!_||!b)return;const Ct=await postAuthVerifyV3({code:b,idp_id:"eka_min_token"});if(Ct.data){if(a===ABHA_V3_SKIP_STATES.ABHA_END){if(lt){const jt=await getPatientData(lt),Et={...Ct,data:{...Ct.data??{},profile:jt}};if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(xt=window.EkaAbha)==null||xt.onAbhaSuccess(JSON.stringify({response:Et}));return}onAbhaSuccess({response:Et}),unMount();return}setIndividualEnv({extraHeaders:{auth:(wt=Ct.data)==null?void 0:wt.tokens.sess}}),setRefreshToken((Tt=Ct.data)==null?void 0:Tt.tokens.refresh),$(SCREEN_NAMES.GET_ALL_PROFILES);return}setIndividualEnv({extraHeaders:{auth:(It=Ct.data)==null?void 0:It.tokens.sess}}),setRefreshToken((Nt=Ct.data)==null?void 0:Nt.tokens.refresh),ot({name:"abha_login_otp_verify_abha_select",data:{type:"verify",flow:pt,platform:st}}),$(SCREEN_NAMES.SELECT_ABHA_FROM_LIST);return}}},2e3)}dt()},[]),jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:tt,loadingText:"Verifying...",successText:"Aadhaar Verification Successful!"})};var i$1=Object.defineProperty,j=Object.defineProperties,k=Object.getOwnPropertyDescriptors,e$2=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,h$4=Object.prototype.propertyIsEnumerable,f=(a,o,_)=>o in a?i$1(a,o,{enumerable:!0,configurable:!0,writable:!0,value:_}):a[o]=_,l$7=(a,o)=>{for(var _ in o||(o={}))g.call(o,_)&&f(a,_,o[_]);if(e$2)for(var _ of e$2(o))h$4.call(o,_)&&f(a,_,o[_]);return a},m=(a,o)=>j(a,k(o)),c$5=a=>jsxRuntimeExports.jsx("svg",m(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$e=c$5,n$5=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},a),{children:jsxRuntimeExports.jsx("path",{d:"M416.9 85.2L372 130.1L509.9 268L554.8 223.1C568.4 209.6 576 191.2 576 172C576 152.8 568.4 134.4 554.8 120.9L519.1 85.2C505.6 71.6 487.2 64 468 64C448.8 64 430.4 71.6 416.9 85.2zM338.1 164L122.9 379.1C112.2 389.8 104.4 403.2 100.3 417.8L64.9 545.6C62.6 553.9 64.9 562.9 71.1 569C77.3 575.1 86.2 577.5 94.5 575.2L222.3 539.7C236.9 535.6 250.2 527.9 261 517.1L476 301.9L338.1 164z",fill:"currentColor"})})),t$d=n$5,c$4=a=>jsxRuntimeExports.jsx("svg",m(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$4,t$c=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},a),{children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M208 64C172.7 64 144 92.7 144 128L144 176L96 176C60.7 176 32 204.7 32 240L32 512C32 547.3 60.7 576 96 576L544 576C579.3 576 608 547.3 608 512L608 240C608 204.7 579.3 176 544 176L496 176L496 128C496 92.7 467.3 64 432 64L208 64zM192 128C192 119.2 199.2 112 208 112L432 112C440.8 112 448 119.2 448 128L448 200C448 213.3 458.7 224 472 224L544 224C552.8 224 560 231.2 560 240L560 512C560 520.8 552.8 528 544 528L368 528L368 448C368 430.3 353.7 416 336 416L304 416C286.3 416 272 430.3 272 448L272 528L96 528C87.2 528 80 520.8 80 512L80 240C80 231.2 87.2 224 96 224L168 224C181.3 224 192 213.3 192 200L192 128zM144 288C135.2 288 128 295.2 128 304L128 336C128 344.8 135.2 352 144 352L176 352C184.8 352 192 344.8 192 336L192 304C192 295.2 184.8 288 176 288L144 288zM128 400L128 432C128 440.8 135.2 448 144 448L176 448C184.8 448 192 440.8 192 432L192 400C192 391.2 184.8 384 176 384L144 384C135.2 384 128 391.2 128 400zM448 400L448 432C448 440.8 455.2 448 464 448L496 448C504.8 448 512 440.8 512 432L512 400C512 391.2 504.8 384 496 384L464 384C455.2 384 448 391.2 448 400zM464 288C455.2 288 448 295.2 448 304L448 336C448 344.8 455.2 352 464 352L496 352C504.8 352 512 344.8 512 336L512 304C512 295.2 504.8 288 496 288L464 288zM296 168L296 200L264 200C255.2 200 248 207.2 248 216L248 232C248 240.8 255.2 248 264 248L296 248L296 280C296 288.8 303.2 296 312 296L328 296C336.8 296 344 288.8 344 280L344 248L376 248C384.8 248 392 240.8 392 232L392 216C392 207.2 384.8 200 376 200L344 200L344 168C344 159.2 336.8 152 328 152L312 152C303.2 152 296 159.2 296 168z"})})),l$5=t$c,l$4=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 384 512"},a),{children:jsxRuntimeExports.jsx("path",{d:"M0 24C0 10.7 10.7 0 24 0H360c13.3 0 24 10.7 24 24s-10.7 24-24 24h-8V67c0 40.3-16 79-44.5 107.5L225.9 256l81.5 81.5C336 366 352 404.7 352 445v19h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.3 0-24-10.7-24-24s10.7-24 24-24h8V445c0-40.3 16-79 44.5-107.5L158.1 256 76.5 174.5C48 146 32 107.3 32 67V48H24C10.7 48 0 37.3 0 24zM110.5 371.5c-3.9 3.9-7.5 8.1-10.7 12.5H284.2c-3.2-4.4-6.8-8.6-10.7-12.5L192 289.9l-81.5 81.5zM284.2 128C297 110.4 304 89 304 67V48H80V67c0 22.1 7 43.4 19.8 61H284.2z",fill:"currentColor"})})),t$b=l$4,s$5=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:"0 0 512 512",fill:"currentColor"},a),{children:jsxRuntimeExports.jsx("path",{d:"M280 24c0-13.3-10.7-24-24-24s-24 10.7-24 24V294.1l-95-95c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 369c9.4 9.4 24.6 9.4 33.9 0L409 233c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-95 95V24zM128.8 304H64c-35.3 0-64 28.7-64 64v80c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V368c0-35.3-28.7-64-64-64H383.2l-48 48H448c8.8 0 16 7.2 16 16v80c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V368c0-8.8 7.2-16 16-16H176.8l-48-48zM432 408a24 24 0 1 0 -48 0 24 24 0 1 0 48 0z"})})),t$a=s$5,t$9=a=>jsxRuntimeExports.jsx("svg",m(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$9,s$4=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 512 512"},a),{children:jsxRuntimeExports.jsx("path",{d:"M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z",fill:"currentColor"})})),t$8=s$4,t$7=a=>jsxRuntimeExports.jsx("svg",m(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$3=t$7,c$2=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 512 512"},a),{children:jsxRuntimeExports.jsx("path",{d:"M273 111c-9.4-9.4-24.6-9.4-33.9 0L47 303c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l175-175 175 175c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L273 111z",fill:"currentColor"})})),e=c$2,L=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},a),{children:jsxRuntimeExports.jsx("path",{d:"M128 320L156.5 92C158.5 76 172.1 64 188.3 64L356.9 64C371.9 64 384 76.1 384 91.1C384 94.3 383.4 97.6 382.3 100.6L336 224L475.3 224C495.5 224 512 240.4 512 260.7C512 268.1 509.8 275.3 505.6 281.4L313.4 562.4C307.5 571 297.8 576.1 287.5 576.1L284.6 576.1C268.9 576.1 256.1 563.3 256.1 547.6C256.1 545.3 256.4 543 257 540.7L304 352L160 352C142.3 352 128 337.7 128 320z",fill:"currentColor"})})),n$4=L,l$3=a=>jsxRuntimeExports.jsx("svg",m(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$3=l$3,s$3=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 512 512"},a),{children:jsxRuntimeExports.jsx("path",{d:"M505 273c9.4-9.4 9.4-24.6 0-33.9L377 111c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l87 87L184 232c-13.3 0-24 10.7-24 24s10.7 24 24 24l246.1 0-87 87c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0L505 273zM168 80c13.3 0 24-10.7 24-24s-10.7-24-24-24L88 32C39.4 32 0 71.4 0 120L0 392c0 48.6 39.4 88 88 88l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-80 0c-22.1 0-40-17.9-40-40l0-272c0-22.1 17.9-40 40-40l80 0z",fill:"currentColor"})})),t$6=s$3,c$1=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 512 512",fill:"currentColor"},a),{children:jsxRuntimeExports.jsx("path",{d:"M502.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224H32c-17.7 0-32 14.3-32 32s14.3 32 32 32h370.7L297.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"})})),l$2=c$1,n$2=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},a),{children:jsxRuntimeExports.jsx("path",{d:"M256 160C256 124.7 284.7 96 320 96C351.7 96 378 119 383.1 149.3C386 166.7 402.5 178.5 420 175.6C437.5 172.7 449.2 156.2 446.3 138.7C436.1 78.1 383.5 32 320 32C249.3 32 192 89.3 192 160L192 224C156.7 224 128 252.7 128 288L128 512C128 547.3 156.7 576 192 576L448 576C483.3 576 512 547.3 512 512L512 288C512 252.7 483.3 224 448 224L256 224L256 160z",fill:"currentColor"})})),t$5=n$2,t$4=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},a),{children:jsxRuntimeExports.jsx("path",{d:"M320 312C386.3 312 440 258.3 440 192C440 125.7 386.3 72 320 72C253.7 72 200 125.7 200 192C200 258.3 253.7 312 320 312zM290.3 368C191.8 368 112 447.8 112 546.3C112 562.7 125.3 576 141.7 576L498.3 576C514.7 576 528 562.7 528 546.3C528 447.8 448.2 368 349.7 368L290.3 368z",fill:"currentColor"})})),l$1=t$4,t$3=a=>jsxRuntimeExports.jsx("svg",m(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$3,s$2=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 512 512"},a),{children:jsxRuntimeExports.jsx("path",{d:"M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z",fill:"currentColor"})})),t$2=s$2,l=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 448 512"},a),{children:jsxRuntimeExports.jsx("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z",fill:"currentColor"})})),n=l,s$1=a=>jsxRuntimeExports.jsx("svg",m(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,c=a=>jsxRuntimeExports.jsx("svg",m(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$3=c,s=a=>jsxRuntimeExports.jsx("svg",m(l$7({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor"},a),{children:jsxRuntimeExports.jsx("path",{d:"M142.9 142.9c-17.5 17.5-30.1 38-37.8 59.8c-5.9 16.7-24.2 25.4-40.8 19.5s-25.4-24.2-19.5-40.8C55.6 150.7 73.2 122 97.6 97.6c87.2-87.2 228.3-87.5 315.8-1L455 55c6.9-6.9 17.2-8.9 26.2-5.2s14.8 12.5 14.8 22.2l0 128c0 13.3-10.7 24-24 24l-8.4 0c0 0 0 0 0 0L344 224c-9.7 0-18.5-5.8-22.2-14.8s-1.7-19.3 5.2-26.2l41.1-41.1c-62.6-61.5-163.1-61.2-225.3 1zM16 312c0-13.3 10.7-24 24-24l7.6 0 .7 0L168 288c9.7 0 18.5 5.8 22.2 14.8s1.7 19.3-5.2 26.2l-41.1 41.1c62.6 61.5 163.1 61.2 225.3-1c17.5-17.5 30.1-38 37.8-59.8c5.9-16.7 24.2-25.4 40.8-19.5s25.4 24.2 19.5 40.8c-10.8 30.6-28.4 59.3-52.9 83.8c-87.2 87.2-228.3 87.5-315.8 1L57 457c-6.9 6.9-17.2 8.9-26.2 5.2S16 449.7 16 440l0-119.6 0-.7 0-7.6z"})})),t=s;const Pds2Spinner=({className:a="",size:o=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:o,height:o,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:a,textColor:o,size:_,state:b,buttonColor:$="",isLoading:_e,className:et,onClick:tt,width:rt,buttonIconPosition:st="right",IconComponent:it,padding:lt})=>jsxRuntimeExports.jsx("button",{title:a.toString()||"",className:`${et} ${lt||"pds2-px-24 pds2-py-16"} pds2-text-content-enabled ${$||"pds2-bg-primary-brand"} pds2-flex pds2-justify-center pds2-items-center pds2-rounded-16 ${_e?"pds2-pointer-events-none pds2-cursor-not-allowed":""} disabled:pds2-pointer-events-none disabled:pds2-bg-surface-strong disabled:pds2-text-content-secondary ${b==="disabled"?"":"ripple"}`,onClick:tt,...rt?{style:{width:rt}}:null,disabled:b==="disabled",children:_e?jsxRuntimeExports.jsx(Pds2Spinner,{size:24,className:o}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[it&&st==="left"?jsxRuntimeExports.jsx(it,{}):null,jsxRuntimeExports.jsx("div",{className:`${o} ${_==="large"?"Body1Semibold":"Body2Semibold"}`,children:a}),it&&st==="right"?jsxRuntimeExports.jsx(it,{}):null]})}),BottomSheetWrapper=({isOpen:a,setIsOpen:o,children:_,shouldCloseOnClickOutside:b=!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-content-primary pds2-bg-opacity-60 pds2-transition-opacity pds2-duration-300",onClick:()=>b&&o(!1)}),jsxRuntimeExports.jsx("div",{className:"pds2-absolute pds2-bottom-0 pds2-left-0 pds2-right-0 pds2-w-full pds2-bg-surface-base 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$2=({description:a,subText:o,submitText:_,onSubmitClick:b,iconUrl:$,isBottomSheetOpen:_e,onBottomSheetClose:et,shouldCloseOnClickOutside:tt=!0})=>jsxRuntimeExports.jsx(BottomSheetWrapper,{isOpen:_e,setIsOpen:et,shouldCloseOnClickOutside:tt,children:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-p-16 pds2-text-center",children:[tt?jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-end pds2-items-center",children:jsxRuntimeExports.jsx("button",{onClick:et,className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",children:jsxRuntimeExports.jsx(t$e,{className:"pds2-w-18 pds2-h-18 pds2-text-content-secondary"})})}):null,jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-8",children:[$&&jsxRuntimeExports.jsx("span",{className:"pds2-flex pds2-justify-center",children:jsxRuntimeExports.jsx("img",{src:$,className:"pds2-w-64 pds2-h-64",alt:"Bottom sheet icon"})}),jsxRuntimeExports.jsx("div",{className:"Heading4Semibold pds2-text-content-primary pds2-py-16 pds2-text-18",children:a}),o&&jsxRuntimeExports.jsx("div",{className:"Body2Regular pds2-text-content-secondary",children:o}),jsxRuntimeExports.jsx(Pds2Button,{title:_,onClick:b,state:"enabled",className:"pds2-w-full"})]})]})}),AbhaErrorBottomSheet=({onSubmitClick:a})=>{const o=useAuthAbhaStore($=>$.bottomsheetErrorInfo),_=useAuthAbhaStore($=>$.setBottomsheetErrorInfo),b=()=>{_(null)};return jsxRuntimeExports.jsx(AbhaBottomSheet$2,{description:(o==null?void 0:o.title)||"Something went wrong",subText:(o==null?void 0:o.description)||"Something went wrong",submitText:(o==null?void 0:o.cta.title)||"Retry",onSubmitClick:a,iconUrl:o==null?void 0:o.img,isBottomSheetOpen:!!o,onBottomSheetClose:b,shouldCloseOnClickOutside:!1})},AbhaInputComponent=({isOtpInput:a,isAbhaNum:o,numberOfInputs:_,length:b=1,placeholder:$="",setIsValid:_e,onSubmit:et,error:tt,containerClassName:rt,setError:st,initialValues:it,setValue:lt,disabled:at=!1,autoComplete:ft})=>{const ht=reactExports.useRef([]),[pt,vt]=reactExports.useState(it||Array(_).fill("")),ut=o?_-1:_,ot=o?14:_*b,nt=useAuthAbhaStore(wt=>wt.otpFromAutoRead);reactExports.useEffect(()=>{var wt;if(it&&it.length===_){const Tt=it.join(""),It=pt.join("");Tt!==It&&(vt(it),_e==null||_e(Tt.length===ot))}if(nt&&a){const Tt=nt.slice(0,ot).split("");vt(Tt),lt==null||lt(o?Tt.join("-"):Tt.join("")),_e==null||_e(!0),et({inputVal:Tt.join("")}),(wt=ht.current[_-1])==null||wt.focus();return}},[it,_,b,nt]);const dt=(wt,Tt)=>{var gt;if(at)return;st&&st(null);const It=wt.target.value.replace(/\D/g,"");if(It.length>=ot){At({otpValue:It,index:0});return}const Nt=o&&Tt===0?2:b,Ct=It.slice(0,Nt),jt=[...pt];jt[Tt]=Ct;const Et=jt.join("").length;Et>ot||(vt(jt),lt==null||lt(jt.join("")),Et===ot?(_e==null||_e(!0),et({inputVal:jt.join("")}),lt&&lt(o?jt.join("-"):jt.join(""))):_e==null||_e(!1),Ct.length===Nt&&Tt<_-1&&((gt=ht.current[Tt+1])==null||gt.focus()))},yt=(wt,Tt)=>{var It;at||wt.key==="Backspace"&&pt[Tt]===""&&Tt>0&&((It=ht.current[Tt-1])==null||It.focus())},_t=(wt,Tt)=>{if(at)return;wt.preventDefault();const It=wt.clipboardData.getData("text").replace(/\D/g,"");if(!It)return;const Nt=o?ot+2:ot,Ct=It.slice(0,Nt);At({otpValue:Ct,index:Tt})},At=({otpValue:wt,index:Tt})=>{var jt,Et;let It=wt.match(new RegExp(`.{1,${b}}`,"g"))||[];if(o){const gt=wt.slice(0,2),ct=wt.slice(2).match(new RegExp(`.{1,${b}}`,"g"))||[];It=[gt,...ct]}const Nt=[...pt];It.forEach((gt,St)=>{Tt+St<_&&(Nt[Tt+St]=gt)}),vt(Nt);const Ct=Nt.findIndex((gt,St)=>St>=Tt&&!gt);Ct!==-1?(jt=ht.current[Ct])==null||jt.focus():(Et=ht.current[_-1])==null||Et.focus(),Nt.join("").length===ot?(_e==null||_e(!0),et({inputVal:Nt.join("")}),lt&&Nt.join("").length===ot&&lt(o?Nt.join("-"):Nt.join(""))):_e==null||_e(!1)},xt=reactExports.useMemo(()=>{if(o){const Tt=pt.map((Nt,Ct)=>Ct===0?2:4),It=pt.findIndex((Nt,Ct)=>Nt.length<Tt[Ct]);return It!==-1?It:pt.length>0?pt.length-1:0}const wt=pt.findIndex(Tt=>Tt.length<b);return wt!==-1?wt:pt.length>0?pt.length-1:0},[pt,b]);return jsxRuntimeExports.jsxs("div",{className:`pds2-flex pds2-justify-center pds2-items-center pds2-space-x-8 ${rt}`,children:[o&&jsxRuntimeExports.jsx("label",{className:`focus-within:pds2-border-primary-brand pds2-border ${tt?"pds2-border-semantic-error":"pds2-border-surface-muted"} pds2-rounded-12 pds2-bg-surface-base`,children:jsxRuntimeExports.jsx("input",{autoFocus:xt===0&&!at,placeholder:"XX",value:pt[0],type:"text",autoComplete:ft,inputMode:"numeric",pattern:"[0-9]*",onPaste:wt=>_t(wt,0),ref:wt=>{wt&&(ht.current[0]=wt)},onChange:wt=>dt(wt,0),onKeyDown:wt=>yt(wt,0),disabled:at,className:"pds2-w-full pds2-text-center pds2-h-56 pds2-rounded-12 pds2-outline-none pds2-bg-transparent disabled:pds2-text-content-muted"},0)}),Array.from({length:ut}).map((wt,Tt)=>(o&&(Tt=Tt+1),jsxRuntimeExports.jsx("label",{className:`focus-within:pds2-border-primary-brand pds2-border ${tt?"pds2-border-semantic-error":"pds2-border-surface-muted"} pds2-rounded-12 pds2-bg-surface-base`,children:jsxRuntimeExports.jsx("input",{autoFocus:Tt===xt&&!at,placeholder:$,value:pt[Tt],type:"text",autoComplete:ft,inputMode:"numeric",pattern:"[0-9]*",onPaste:It=>_t(It,Tt),ref:It=>{It&&(ht.current[Tt]=It)},onChange:It=>dt(It,Tt),onKeyDown:It=>yt(It,Tt),disabled:at,className:"pds2-w-full pds2-text-center pds2-h-56 pds2-rounded-12 pds2-outline-none pds2-bg-transparent disabled:pds2-text-content-muted"},Tt+1)},Tt)))]})};function formatTime(a){const o=Math.floor(a/60),_=a%60;return`${o.toString().padStart(2,"0")}:${_.toString().padStart(2,"0")}`}const ResendTimer=({time:a,onResendOtpClick:o,error:_})=>{const[b,$]=reactExports.useState(a);return reactExports.useEffect(()=>{const _e=setInterval(()=>{$(b-1)},1e3);return()=>clearInterval(_e)},[b]),b>0?jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-between pds2-items-center pds2-w-full",children:jsxRuntimeExports.jsxs("div",{className:"pds2-text-content-muted",children:[jsxRuntimeExports.jsx("span",{className:"Body3Semibold",children:"Resend OTP in"})," ",jsxRuntimeExports.jsx("span",{className:"Body3Semibold",children:formatTime(b)})]})}):jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-between pds2-items-center pds2-w-full",children:jsxRuntimeExports.jsx("button",{className:"Body3Semibold pds2-text-content-primary cursor-pointer",onClick:()=>{$(a),o()},children:"Resend OTP"})})},AbhaOtpCard=({otpSentToText:a,onOtpCompletion:o,onResendOtpClick:_,setIsValid:b,error:$,setError:_e,prefixIcon:et=jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm5mcdm3h00070tfs9fjkepff.webp",alt:"aadhaar-icon",className:"pds2-w-48"})})=>{const tt=useAuthAbhaStore(ft=>ft.goBackScreen),rt=useAuthAbhaStore(ft=>ft.screen),st=useAuthAbhaStore(ft=>ft.setGoBackToLogin),it=useAuthAbhaStore(ft=>ft.abhaAuthFlowMethod),lt=GET_EXTRA_HEADERS(),at=(lt==null?void 0:lt["X-User-ID"])??void 0;return reactExports.useEffect(()=>{st(!1)},[]),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-p-16 pds2-rounded-16 pds2-bg-surface-base pds2-space-y-8",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-space-x-16",children:[a&&jsxRuntimeExports.jsxs("div",{className:"Body1Regular pds2-text-content-primary pds2-flex-1",children:[a,jsxRuntimeExports.jsx("sup",{className:"pds2-text-semantic-error Body3Semibold",children:" *"})]}),et]}),jsxRuntimeExports.jsx(AbhaInputComponent,{isOtpInput:!0,numberOfInputs:6,length:1,onSubmit:({inputVal:ft})=>o({otp:ft}),setIsValid:b,error:$,setError:_e,autoComplete:"one-time-code"}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex",children:[jsxRuntimeExports.jsx(ResendTimer,{time:60,onResendOtpClick:_,error:$}),rt.length===2&&!(it===ABHA_AUTH_FLOW_METHOD.MOBILE&&at)&&jsxRuntimeExports.jsx("button",{className:"Body3Semibold pds2-text-primary-brand cursor-pointer",onClick:()=>{tt(),st(!0)},children:"Change"})]}),$&&jsxRuntimeExports.jsx("div",{className:"Body3Semibold pds2-text-semantic-error",children:$})]})},usePostAbdmLoginVerify=()=>{const a=useAuthAbhaStore(o=>o.setSelectedAbhaAddress);return useMutation({mutationFn:({txn_id:o,otp:_})=>postAbdmLoginVerify({otp:_,txn_id:o}),onSuccess(o){o.profile&&(queryClient.setQueryData(["abdmProfilePhrResponse"],o.profile),a(o.profile.abha_address))}})},Pds2CustomButton=({prefixIcon:a,title:o,suffixIcon:_,className:b="",onClick:$,width:_e="pds2-w-full",padding:et,isRippleStyle:tt=!0,bgColor:rt})=>jsxRuntimeExports.jsx("div",{className:"pds2-bg-surface-base pds2-rounded-16",children:jsxRuntimeExports.jsxs("button",{onClick:$,className:`pds2-flex pds2-flex-row pds2-items-center pds2-gap-12 ${rt||"pds2-bg-surface-base"} ${et||"pds2-p-16"} pds2-rounded-16 pds2-text-bg-inver pds2-border pds2-border-surface-muted ${tt&&"ripple"} ${_e} ${b}`,children:[a||null,jsxRuntimeExports.jsx("span",{className:"Body1Medium",children:o}),_||null]})}),ExitPopup=({open:a,setOpen:o})=>{const _=useAuthAbhaStore(lt=>lt.goBackLoginScreen),b=useAuthAbhaStore(lt=>lt.clientId),$=useAuthAbhaStore(lt=>lt.setAbhaAuthFlowMethod),_e=useAuthAbhaStore(lt=>lt.setGoBackToLogin),et=useAuthAbhaStore(lt=>lt.screen),tt=useAuthAbhaStore(lt=>lt.initAbhaFlow),rt=useAuthAbhaStore(lt=>lt.abhaAuthFlowMethod),st=useTrackAbhaEvent(),it=()=>{st({name:"abha_exit_popup_confirmed",data:{flow:tt,action:"go_back_to_login_screen"}}),et.at(-2)===SCREEN_NAMES.SELECT_ABHA_FROM_LIST&&rt===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&$(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),tt===ABHA_INIT_FLOW.ABHA_KYC&&b!="phr"&&$(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS),_e(!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-content-primary pds2-bg-opacity-60 pds2-transition-opacity pds2-duration-300",onClick:()=>o(!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-surface-base pds2-rounded-16 pds2-w-full pds2-p-24",children:[jsxRuntimeExports.jsx("h2",{className:"pds2-text-content-primary pds2-font-500 pds2-text-18",children:"Are you sure you want to exit?"}),jsxRuntimeExports.jsx("p",{className:"pds2-text-content-secondary 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-semantic-error pds2-font-600 pds2-text-16 pds2-border-none",width:"pds2-w-fit",onClick:()=>o(!1)}),jsxRuntimeExports.jsx(Pds2CustomButton,{title:"Yes, I'm done",padding:"pds2-px-12 pds2-py-8",className:"pds2-text-primary-brand pds2-font-600 pds2-text-16 pds2-border-none",width:"pds2-w-fit",onClick:it})]})]})})})}):null})},AbhaStepper=()=>{const a=useAuthAbhaStore(st=>st.screen),o=useAuthAbhaStore(st=>st.currentStepperIndex),_=useAuthAbhaStore(st=>st.setCurrentStepperIndex),b=a[a.length-1],$=a.length>1&&a[a.length-2],_e=useAuthAbhaStore(st=>st.abhaAuthFlowMethod),et={1:["LOGIN_WITH_ABHA","LOGIN_OR_CREATE_ABHA","CREATE_ABHA_WITH_AADHAAR"],2:["VERIFY_OTP_LOGIN_WITH_ABHA","ABHA_OTP_AND_MOBILE","ABHA_AUTH_QR_SCREEN"],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"],4:["ABHA_HEALTHID_CARD_SCREEN"]};reactExports.useEffect(()=>{var it;const st=(it=Object.entries(et).find(([lt,at])=>at.includes(b)))==null?void 0:it[0];if(st){if(_e==="abha_number"||_e==="phr_address"){if(b==="VERIFY_OTP_LOGIN_WITH_ABHA"){_(3);return}}else if(($==="LOGIN_OR_CREATE_ABHA"||$==="LOGIN_WITH_ABHA"||$==="CREATE_ABHA_WITH_AADHAAR")&&a.length>1){_(2);return}Number(st)>=o&&_(Number(st))}},[a]);const tt=Array.from({length:4},(st,it)=>{const lt=it+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-content-enabled ${lt<=o?"pds2-bg-primary-brand":"pds2-bg-surface-strong"}`,children:lt},lt)}),rt=o===1?20:o===2?50:o===3?80:100;return jsxRuntimeExports.jsxs("div",{className:"pds2-bg-surface-subtle 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:tt}),jsxRuntimeExports.jsx("progress",{className:"abhaStepper pds2-absolute pds2-w-full pds2-h-2 pds2-px-60",max:100,value:rt})]})},usePostAuthSwitchV3=()=>{const a=useAuthAbhaStore(rt=>rt.setScreen),o=useAuthAbhaStore(rt=>rt.successRedirect),_=useAuthAbhaStore(rt=>rt.abhaAuthFlowMethod),b=useAuthAbhaStore(rt=>rt.setAbhaAuthFlowMethod),$=useAuthAbhaStore(rt=>rt.initAbhaFlow),_e=useAuthAbhaStore(rt=>rt.ekaProfileInfo),et=useAuthAbhaStore(rt=>rt.setIsInitApiTriggered),tt=GET_REFRESH_TOKEN();return useMutation({mutationFn:({oid:rt,refresh:st})=>postAuthSwitchV3({oid:rt,refresh:st||tt}),onSuccess:rt=>{var st,it,lt,at,ft,ht,pt,vt,ut;if(rt){if(rt.error){console.error(rt.error);return}const{sess:ot,refresh:nt}=rt,dt={data:{tokens:{sess:ot,refresh:nt},profile:{fln:(_e==null?void 0:_e.name)||"",fn:(_e==null?void 0:_e.firstname)||"",ln:(_e==null?void 0:_e.lastname)||"",gen:(_e==null?void 0:_e.gender)||void 0,dob:(_e==null?void 0:_e.date_of_birth)||"",mobile:(_e==null?void 0:_e.mobile)||"",uuid:(_e==null?void 0:_e.patient_uuid)||"",oid:(_e==null?void 0:_e.oid)||"","health-ids":_e!=null&&_e.abha_address?[_e.abha_address]:[]}}};if((st=dt.data)!=null&&st.tokens.sess&&($===ABHA_INIT_FLOW.SCAN_AND_SHARE||$===ABHA_INIT_FLOW.SCAN_AND_SHARE_KIOSK)){setIndividualEnv({extraHeaders:{auth:(it=dt.data)==null?void 0:it.tokens.sess}}),setIndividualEnv({extraHeaders:{"X-Pt-Id":(_e==null?void 0:_e.oid)??""}}),setRefreshToken((lt=dt.data)==null?void 0:lt.tokens.refresh),a(SCREEN_NAMES.BOOK_APPOINTMENT_SCREEN);return}else if(_===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&((at=dt.data)!=null&&at.tokens.sess)&&$){if(setIndividualEnv({extraHeaders:{auth:(ft=dt.data)==null?void 0:ft.tokens.sess}}),setRefreshToken((ht=dt.data)==null?void 0:ht.tokens.refresh),$===ABHA_INIT_FLOW.CONSENT){a(SCREEN_NAMES.CONSENT_LOADER_SCREEN);return}else if($===ABHA_INIT_FLOW.ABHA_KYC)if(_e!=null&&_e.kyc_verified){a(SCREEN_NAMES.KYC_ALREADY_VERIFIED);return}else{setIndividualEnv({extraHeaders:{"X-Pt-Id":(_e==null?void 0:_e.oid)??""}}),et(!1),b(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),a(SCREEN_NAMES.KYC_LOGIN_SCREEN);return}}if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(pt=window.EkaAbha)==null||pt.onAbhaSuccess(JSON.stringify({response:dt}));return}if(onAbhaSuccess({response:dt}),o==="abha-card"&&((vt=dt.data)!=null&&vt.tokens.sess)){setIndividualEnv({extraHeaders:{"X-Pt-Id":(_e==null?void 0:_e.oid)??""}}),setIndividualEnv({extraHeaders:{auth:(ut=dt.data)==null?void 0:ut.tokens.sess}}),a(SCREEN_NAMES.ABHA_HEALTHID_CARD_SCREEN);return}else unMount();return}}})},setAuthEnv=(a,o)=>{a&&(setIndividualEnv({extraHeaders:{auth:a}}),o&&setRefreshToken(o))},usePostAuthVerifyV3=()=>{const{clientId:a,isEkaAppLogin:o,isNewLoginOrCreateFlow:_,txnId:b,setScreen:$,successRedirect:_e,abhaAuthFlowMethod:et,initAbhaFlow:tt,setAbhaAuthFlowMethod:rt,ekaProfileInfo:st,setIsInitApiTriggered:it,setBottomsheetErrorInfo:lt}=useAuthAbhaStore(),at=GET_REFRESH_TOKEN();useAuthAbhaStore(pt=>pt.abhaAuthFlowMethod||ABHA_AUTH_FLOW_METHOD.MOBILE);const ft=useTrackAbhaEvent(),{mutateAsync:ht}=usePostAuthSwitchV3();return useMutation({mutationFn:pt=>postAuthVerifyV3(pt),onSuccess:async(pt,{oid:vt})=>{var nt,dt,yt,_t;const ut=(nt=pt.data)==null?void 0:nt.tokens;if(!ut)return pt;if(setAuthEnv(ut==null?void 0:ut.sess,ut==null?void 0:ut.refresh),!vt){$(SCREEN_NAMES.GET_ALL_PROFILES);return}const ot=await ht({oid:vt,refresh:(ut==null?void 0:ut.refresh)||at});if(!ot||ot.error){ft({name:"abha_switch_failed",data:{method:(et==null?void 0:et.toLowerCase())||"unknown_method",flow:tt,is_eka_app_login:o?"true":"false",platform:a,oid:vt||"missing_oid",oid_exists:!!vt,error_message:((dt=ot.error)==null?void 0:dt.message)||"unknown_error",error_message_exists:!!((yt=ot.error)!=null&&yt.message)}}),lt({title:"Something went wrong",img:"",description:((_t=ot.error)==null?void 0:_t.message)||"Please try again",cta:{title:"",pid:"",params:null}});return}ft({name:"abha_switch_success",data:{method:et==null?void 0:et.toLowerCase(),flow:tt,is_eka_app_login:o?"true":"false",platform:a,oid:vt}})}})},Pds2Header=({prefixIcon:a,title:o,suffixIcon:_,className:b="",showHeaderStrip:$=!0})=>{const _e=useAuthAbhaStore(st=>st.clientId),et=useAuthAbhaStore(st=>st.initAbhaFlow);useAuthAbhaStore(st=>st.isNewLoginOrCreateFlow),useAuthAbhaStore(st=>st.txnId),useAuthAbhaStore(st=>st.abhaAuthFlowMethod||ABHA_AUTH_FLOW_METHOD.MOBILE);const tt=useTrackAbhaEvent(),rt=()=>{tt({name:"abha_app_open_clicked",data:{flow:et,type:"app",platform:_e}}),window.open("https://eka.im/EKA/SEXVL9pr","_blank")};return jsxRuntimeExports.jsxs("div",{className:` pds2-w-full pds2-sticky pds2-top-0 pds2-z-50 pds2-bg-surface-base ${b}`,children:[_e==="eka-web"&&et!=ABHA_INIT_FLOW.SCAN_AND_SHARE_KIOSK&&jsxRuntimeExports.jsxs("div",{className:"pds2-w-full lg:pds2-hidden pds2-px-16 pds2-py-14 pds2-flex pds2-items-center pds2-justify-center pds2-bg-primary-brand",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex-none pds2-w-1/6",children:jsxRuntimeExports.jsx("img",{className:"pds2-w-24 pds2-h-24",src:"https://cdn.eka.care/vagus/cmljdkhj700030td1c3id7f91.png",alt:"Eka PHR"})}),jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-text-content-enabled pds2-flex-none pds2-w-3/5",children:"Get seamless experience with all records in one place."}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-end pds2-flex-none pds2-w-1/4 hover:pds2-cursor-pointer",children:jsxRuntimeExports.jsx("div",{onClick:rt,className:"Body3Semibold pds2-px-7 pds2-py-5 pds2-bg-surface-base pds2-text-primary-brand pds2-rounded-4",children:"Open App"})})]}),$&&jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-justify-between pds2-p-16",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-content-primary",children:o}),_||jsxRuntimeExports.jsx("div",{className:"pds2-w-24 pds2-h-24"})]})]})},AbhaLoginOtpVerifyScreen=()=>{const a=useAuthAbhaStore(bt=>bt.authTxnId),o=useAuthAbhaStore(bt=>bt.txnId),_=useAuthAbhaStore(bt=>bt.setAbhaAddressList),b=useAuthAbhaStore(bt=>bt.clearAbhaAuthStore),$=useAuthAbhaStore(bt=>bt.aadhaarOtpSentToHint),_e=useAuthAbhaStore(bt=>bt.loginIdentifierValue),et=useAuthAbhaStore(bt=>bt.abhaAuthFlowMethod),tt=useAuthAbhaStore(bt=>bt.setScreen),rt=useAuthAbhaStore(bt=>bt.goBackLoginScreen),st=useAuthAbhaStore(bt=>bt.setTxnId),it=useAuthAbhaStore(bt=>bt.setOTPFromAutoRead),lt=useAuthAbhaStore(bt=>bt.setBottomsheetErrorInfo),[at,ft]=reactExports.useState(!1),ht=useAuthAbhaStore(bt=>bt.setEkaProfileInfo),pt=useAuthAbhaStore(bt=>bt.setAbhaAuthFlowMethod),vt=useAuthAbhaStore(bt=>bt.setIsInitApiTriggered),ut=useAuthAbhaStore(bt=>bt.setAadhaarVerificationSkipStateStatus),ot=useAuthAbhaStore(bt=>bt.setSelectedAbhaAddress),[nt,dt]=reactExports.useState(""),[yt,_t]=reactExports.useState(!1),[At,xt]=reactExports.useState(""),[wt,Tt]=reactExports.useState(LOADING_STATE.IDLE),It=["M","F","O","U"],{mutateAsync:Nt}=usePostAuthVerifyV3(),{mutateAsync:Ct}=usePostAbdmLoginVerify(),jt=useAuthAbhaStore(bt=>bt.isEkaAppLogin),Et=useAuthAbhaStore(bt=>bt.clientId);useAuthAbhaStore(bt=>bt.oid);const gt=useAuthAbhaStore(bt=>bt.initAbhaFlow),St=useAuthAbhaStore(bt=>bt.successRedirect),ct=useTrackAbhaEvent();reactExports.useEffect(()=>{ct({name:"page_view",data:{page_view:"abha_login_otp_verify",platform:Et,flow:gt}})},[]);const mt=()=>{ct({name:"abha_login_otp_verify_error_bottomsheet_dismissed",data:{platform:Et,flow:gt}}),rt();const bt=Et,Ht=useAuthAbhaStore.getState().isEkaAppLogin;b(),useAuthAbhaStore.setState({clientId:bt}),useAuthAbhaStore.setState({isEkaAppLogin:Ht})},Rt=({otp:bt})=>{dt(bt),ct({name:"abha_login_otp_completion",data:{type:"verify",platform:Et,txn_id:o,otp_entered:!0,method:et,flow:gt}}),kt(bt)},kt=async bt=>{var Qt,Kt,Ut,Jt,ur,ir;if(it(""),!o){ct({name:"abha_login_otp_verify_txnId_not_found",data:{type:"verify",platform:Et,txn_id:o||"missing_txn_id",txn_id_exists:!!o,method:(et==null?void 0:et.toLowerCase())||"unknown_method",flow:gt}});return}ct({name:"abha_login_otp_verify",data:{type:"verify",platform:Et,txn_id:o,flow:gt}}),Tt(LOADING_STATE.LOADING);const{abha_profiles:Ht=[],skip_state:Pt,profile:Lt,error:Bt,action:$t,eka:Vt}=await Ct({otp:bt,txn_id:o});if($t){ct({name:"abha_login_otp_verify_error_action",data:{type:"verify",platform:Et,error_action:$t||"no_error_action",error_message:Bt||"no_error_message",error_action_exists:!!$t,error_message_exists:!!Bt,flow:gt}}),lt($t);return}if(Bt){ct({name:"abha_login_otp_verify_error",data:{type:"verify",platform:Et,error_message:Bt||"unknown_error",error_message_exists:!!Bt,flow:gt}}),Tt(LOADING_STATE.REJECTED),xt(Bt);return}if(!Pt){xt("Skip State is missing"),ct({name:"abha_login_skip_state_missing",data:{platform:Et,skipState:Pt||"missing_skip_state",skipState_exists:!!Pt,flow:gt}});return}ut(Pt),Lt&&ot(Lt.abha_address),Lt&&ht({date_of_birth:`${Lt.year_of_birth}-${String(Lt.month_of_birth).padStart(2,"0")}-${String(Lt.day_of_birth).padStart(2,"0")}`,firstname:Lt.first_name,lastname:Lt.last_name,pincode:Lt.pincode,gender:Lt.gender,name:Lt.first_name+" "+Lt.last_name,mobile:Lt.mobile,oid:Vt==null?void 0:Vt.oid,patient_uuid:Vt==null?void 0:Vt.uuid,abha_address:Lt==null?void 0:Lt.abha_address,abha_number:Lt==null?void 0:Lt.abha_number,kyc_verified:Lt==null?void 0:Lt.kyc_verified});const Gt=It.includes(Lt==null?void 0:Lt.gender)?Lt==null?void 0:Lt.gender:void 0,zt={oid:(Vt==null?void 0:Vt.oid)||"",fln:(Lt==null?void 0:Lt.first_name)+" "+(Lt==null?void 0:Lt.last_name),dob:`${Lt==null?void 0:Lt.year_of_birth}-${String(Lt==null?void 0:Lt.month_of_birth).padStart(2,"0")}-${String(Lt==null?void 0:Lt.day_of_birth).padStart(2,"0")}`,gen:Gt,mobile:Lt==null?void 0:Lt.mobile,at:"",fn:(Lt==null?void 0:Lt.first_name)||"",mn:(Lt==null?void 0:Lt.middle_name)||"",ln:(Lt==null?void 0:Lt.last_name)||"","health-ids":Lt!=null&&Lt.abha_address?[Lt.abha_address]:void 0,abha_number:(Lt==null?void 0:Lt.abha_number)||""};if(Pt===ABHA_V3_SKIP_STATES.ABHA_END){if(Et==="doctor"&&gt===ABHA_INIT_FLOW.ABHA_KYC){if(setIndividualEnv({extraHeaders:{"X-Pt-Id":(Vt==null?void 0:Vt.oid)??""}}),Lt!=null&&Lt.kyc_verified){tt(SCREEN_NAMES.KYC_ALREADY_VERIFIED);return}pt(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),vt(!1),tt(SCREEN_NAMES.KYC_LOGIN_SCREEN);return}if(jt){if(ct({name:"abha_login_otp_verify_eka_app",data:{type:"verify",platform:Et,txn_id:o,skip_state:Pt,flow:gt}}),Tt(LOADING_STATE.RESOLVED),!Vt){ct({name:"abha_login_otp_verify_eka_app_error",data:{type:"null_oid",platform:Et,txn_id:o||"missing_txn_id",txn_id_exists:!!o,eka:Vt||"missing_eka",eka_exists:!!Vt,skip_state:Pt||"missing_skip_state",skip_state_exists:!!Pt,flow:gt}}),Tt(LOADING_STATE.REJECTED),xt("Something went wrong, please try again");return}const Zt=getMockAuthVerifyResponse(zt);if(ct({name:"abha_login_otp_verify_success",data:{type:"verify",platform:Et,txn_id:o,skip_state:Pt,method:et,flow:gt}}),gt===ABHA_INIT_FLOW.ABHA_REGISTRATION&&St==="abha-card"){tt(SCREEN_NAMES.ABHA_HEALTHID_CARD_SCREEN);return}if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Qt=window.EkaAbha)==null||Qt.onAbhaSuccess(JSON.stringify({response:Zt}));return}onAbhaSuccess({response:Zt}),unMount();return}if(!Vt||!Vt.min_token||!a){ct({name:"abha_login_otp_verify_eka_error",data:{type:"verify",platform:Et,eka:Vt||"missing_eka",eka_exists:!!Vt,auth_txnId:a||"missing_auth_txnId",auth_txnId_exists:!!a,skip_state:Pt||"missing_skip_state",skip_state_exists:!!Pt,flow:gt}}),Tt(LOADING_STATE.REJECTED),xt("Something went wrong, please try again");return}const tr=await Nt({code:Vt.min_token,idp_id:"eka_min_token",...Vt.oid?{oid:Vt.oid}:null});if(!tr.data){ct({name:"abha_login_otp_verify_auth_verify_error",data:{type:"verify",platform:Et,skip_state:Pt||"missing_skip_state",skip_state_exists:!!Pt,auth_verify_data_exists:!1,flow:gt}}),Tt(LOADING_STATE.REJECTED),xt(((Kt=tr.error)==null?void 0:Kt.message)||"Something went wrong, please try again");return}ct({name:"abha_login_otp_verify_abha_end_success",data:{type:"verify",platform:Et,txn_id:o,skip_state:Pt,flow:gt}}),Tt(LOADING_STATE.RESOLVED);return}if(Pt===ABHA_V3_SKIP_STATES.ABHA_SELECT&&Ht.length>0){ct({name:"abha_login_otp_verify_abha_select",data:{type:"verify",platform:Et,flow:gt}}),tt(SCREEN_NAMES.SELECT_ABHA_FROM_LIST),_(Ht);return}if(Pt===ABHA_V3_SKIP_STATES.ABHA_CREATE&&et===ABHA_AUTH_FLOW_METHOD.MOBILE){tt(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(Pt===ABHA_V3_SKIP_STATES.ABHA_CREATE){tt(SCREEN_NAMES.CREATE_ABHA_ADDRESS);return}if(jt){if(!Vt){ct({name:"abha_login_otp_verify_eka_failed",data:{type:"verify",platform:Et,txn_id:a||"missing_authTxnId",txn_id_exists:!!a,flow:gt}}),Tt(LOADING_STATE.REJECTED),xt("Something went wrong, please try again");return}const tr=getMockAuthVerifyResponse(zt);if(Tt(LOADING_STATE.RESOLVED),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Ut=window.EkaAbha)==null||Ut.onAbhaSuccess(JSON.stringify({response:tr}));return}onAbhaSuccess({response:tr}),unMount();return}if(!Pt||!(Vt!=null&&Vt.min_token)){Tt(LOADING_STATE.REJECTED),xt(Bt||"Something went wrong, please try again"),$t&&lt($t);return}if(Vt.min_token&&a){const tr=await Nt({code:Vt.min_token,idp_id:"eka_min_token",...Vt.oid?{oid:Vt.oid}:null});tr.data?ct({name:"abha_login_auth_verify_success",data:{platform:Et,txn_id:a,flow:gt}}):(ct({name:"abha_login_auth_verify_failed",data:{platform:Et,txn_id:a||"missing_authTxnId",txn_id_exists:!!a,error_message:((Jt=tr==null?void 0:tr.error)==null?void 0:Jt.message)||"unknown_error",error_message_exists:!!((ur=tr==null?void 0:tr.error)!=null&&ur.message),flow:gt}}),Tt(LOADING_STATE.REJECTED),xt(((ir=tr.error)==null?void 0:ir.message)||"Something went wrong, please try again"))}Tt(LOADING_STATE.RESOLVED)},Dt=async()=>{if(_e&&et){const{txn_id:bt}=await postAbdmLoginInit({method:et,identifier:_e});ct({name:"abha_login_verify_resend_otp",data:{method:et,platform:Et,txn_id:bt,flow:gt}}),bt&&st(bt)}};return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-base",children:[jsxRuntimeExports.jsx(Pds2Header,{prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:()=>ft(!0),children:jsxRuntimeExports.jsx(n$3,{className:""})}),title:"OTP Verification",className:"pds2-border-b-1 pds2-border-surface-muted"}),gt==null||gt===ABHA_INIT_FLOW.ABHA_REGISTRATION?jsxRuntimeExports.jsx(AbhaStepper,{}):jsxRuntimeExports.jsx("div",{className:"pds2-pt-40 pds2-bg-surface-subtle"}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-space-y-16 pds2-overflow-y-auto pds2-flex-1 pds2-bg-surface-subtle",children:jsxRuntimeExports.jsx(AbhaOtpCard,{otpSentToText:$||"Enter OTP sent on mobile number linked with your Aadhaar",onOtpCompletion:Rt,onResendOtpClick:Dt,error:At,setIsValid:bt=>{At&&xt(null),_t(bt)},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-surface-base pds2-w-full pds2-border pds2-border-surface-muted",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Verify",state:!yt||wt===LOADING_STATE.LOADING?"disabled":"enabled",className:"pds2-w-full",onClick:()=>kt(nt),isLoading:wt===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:mt}),jsxRuntimeExports.jsx(ExitPopup,{open:at,setOpen:ft})]})},AbhaMobileLinkingStatusScreen=()=>{const a=useAuthAbhaStore(vt=>vt.aadhaarVerificationSkipStateStatus),o=useAuthAbhaStore(vt=>vt.authTxnId),_=useAuthAbhaStore(vt=>vt.ekaSmallToken),b=useAuthAbhaStore(vt=>vt.oid),$=useAuthAbhaStore(vt=>vt.setScreen),[_e,et]=reactExports.useState(!0),tt=useAuthAbhaStore(vt=>vt.setEkaProfileInfo),rt=useAuthAbhaStore(vt=>vt.clientId),st=useAuthAbhaStore(vt=>vt.initAbhaFlow),it=useAuthAbhaStore(vt=>vt.isEkaAppLogin),lt=useAuthAbhaStore(vt=>vt.ekaProfileInfo),at=["M","F","O","U"],ft=reactExports.useRef(!1),ht=useAuthAbhaStore(vt=>vt.txnId),pt=useTrackAbhaEvent();return reactExports.useEffect(()=>{const vt=new Promise(ot=>{setTimeout(()=>{ot(et(!1))},500)});pt({name:"page_view",data:{page_view:"mobile_verified_successful",platform:rt,flow:st}});async function ut(){await vt,setTimeout(async()=>{var ot,nt,dt,yt,_t,At,xt;if(a===ABHA_V3_SKIP_STATES.ABHA_CREATE||a===ABHA_V3_SKIP_STATES.ABHA_END){if(pt({name:"abha_create_mobile_initiate",data:{platform:rt,oid_received:b,txn_id:ht,skip_state:a,flow:st}}),b&&!ft.current){const Tt=await getProfilesPatient();ft.current=!0,Tt&&tt({date_of_birth:Tt.dob,firstname:Tt.fn,lastname:Tt.ln,pincode:"",gender:Tt.gen,oid:Tt==null?void 0:Tt.oid,middlename:Tt==null?void 0:Tt.mn,abha_address:(ot=Tt==null?void 0:Tt["health-ids"])==null?void 0:ot[0],abha_number:Tt==null?void 0:Tt.abha_number,kyc_verified:Tt==null?void 0:Tt.kyc_verified})}if(it&&a===ABHA_V3_SKIP_STATES.ABHA_END&&b){const Tt=at.includes(lt==null?void 0:lt.gender)?lt==null?void 0:lt.gender:void 0,It={oid:(lt==null?void 0:lt.oid)||"",fln:(lt==null?void 0:lt.name)||"",dob:lt==null?void 0:lt.date_of_birth,gen:Tt,mobile:lt==null?void 0:lt.mobile,at:"",fn:(lt==null?void 0:lt.firstname)||"",mn:(lt==null?void 0:lt.middlename)||"",ln:(lt==null?void 0:lt.lastname)||"","health-ids":lt!=null&&lt.abha_address?[lt.abha_address]:void 0,abha_number:(lt==null?void 0:lt.abha_number)||""};pt({name:"abha_mobile_linking_success",data:{type:"unmount",isEkaAppLogin:it,skip_state:a,flow:st}});const Nt=getMockAuthVerifyResponse(It);if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(nt=window.EkaAbha)==null||nt.onAbhaSuccess(JSON.stringify({response:Nt}));return}onAbhaSuccess({response:Nt}),unMount();return}if(it&&a===ABHA_V3_SKIP_STATES.ABHA_CREATE){pt({name:"navigate_to_screen",data:{destination:"create_eka_profile",reason:"abha_create_from_mobile_flow",flow:st}}),$(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(!o||!_){pt({name:"authTxnId_or_minToken_not_found",data:{platform:rt,type:"error",auth_txnId:o||"missing_authTxnId",auth_txnId_exists:!!o,ekaSmallToken_exists:!!_,flow:st}});return}const wt=await postAuthVerifyV3({code:_,idp_id:"eka_min_token"});if(wt.data){if(setIndividualEnv({extraHeaders:{auth:(dt=wt.data)==null?void 0:dt.tokens.sess}}),setRefreshToken((yt=wt.data)==null?void 0:yt.tokens.refresh),a===ABHA_V3_SKIP_STATES.ABHA_END){const Tt=await getPatientData(b),It={...wt,data:{...wt.data??{},profile:Tt}};if(b){if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(_t=window.EkaAbha)==null||_t.onAbhaSuccess(JSON.stringify({response:It}));return}onAbhaSuccess({response:It}),unMount();return}setIndividualEnv({extraHeaders:{auth:(At=wt.data)==null?void 0:At.tokens.sess}}),pt({name:"navigate_to_screen",data:{destination:"get_all_profiles",reason:"abha_end_with_no_oid",flow:st}}),$(SCREEN_NAMES.GET_ALL_PROFILES);return}setIndividualEnv({extraHeaders:{auth:(xt=wt.data)==null?void 0:xt.tokens.sess}}),pt({name:"navigate_to_screen",data:{destination:"get_all_profiles",reason:"auth_verify_success",flow:st}}),$(SCREEN_NAMES.GET_ALL_PROFILES);return}}},2e3)}ut()},[]),jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:_e,loadingText:"Verifying...",successText:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Successfully linked mobile",jsxRuntimeExports.jsx("br",{}),"number with ABHA!"]})})},AbhaOtpAndMobileScreen=()=>{var $t;const a=useAuthAbhaStore(Vt=>Vt.setAbhaAddressList),o=useAuthAbhaStore(Vt=>Vt.setScreen),_=useAuthAbhaStore(Vt=>Vt.identifierValue),b=useAuthAbhaStore(Vt=>Vt.txnId),$=useAuthAbhaStore(Vt=>Vt.setTxnId),_e=useAuthAbhaStore(Vt=>Vt.aadhaarOtpSentToHint),et=useAuthAbhaStore(Vt=>Vt.setAadhaarVerificationSkipStateStatus),tt=useAuthAbhaStore(Vt=>Vt.setEkaSmallToken),rt=useAuthAbhaStore(Vt=>Vt.setOTPFromAutoRead),st=useAuthAbhaStore(Vt=>Vt.setOid),it=useAuthAbhaStore(Vt=>Vt.clearAbhaAuthStore),lt=useAuthAbhaStore(Vt=>Vt.setBottomsheetErrorInfo),at=useAuthAbhaStore(Vt=>Vt.goBackLoginScreen),ft=useAuthAbhaStore(Vt=>Vt.goBackScreen),ht=useAuthAbhaStore(Vt=>Vt.isDocAppRequest),pt=useAuthAbhaStore(Vt=>Vt.setEkaProfileInfo),vt=useAuthAbhaStore(Vt=>Vt.ekaProfileInfo),[ut,ot]=reactExports.useState(""),[nt,dt]=reactExports.useState(!1),[yt,_t]=reactExports.useState(_!=null&&_.mobile&&(_==null?void 0:_.mobile.length)===10?_.mobile:vt!=null&&vt.mobile&&(vt==null?void 0:vt.mobile.length)===10?vt.mobile:""),[At,xt]=reactExports.useState(null),[wt,Tt]=reactExports.useState(null),[It,Nt]=reactExports.useState(!0),[Ct,jt]=reactExports.useState(!0),[Et,gt]=reactExports.useState(LOADING_STATE.IDLE),St=useAuthAbhaStore(Vt=>Vt.setSelectedAbhaAddress),ct=useAuthAbhaStore(Vt=>Vt.initAbhaAppMobileNumber),mt=useAuthAbhaStore(Vt=>Vt.clientId);useAuthAbhaStore(Vt=>Vt.isEkaAppLogin);const Rt=useAuthAbhaStore(Vt=>Vt.initAbhaFlow);useAuthAbhaStore(Vt=>Vt.abhaAuthFlowMethod);const kt=useTrackAbhaEvent();reactExports.useEffect(()=>{kt({name:"abha_otp_and_mobile_screen",data:{flow:Rt}}),handleReadOTP()},[]),reactExports.useEffect(()=>{ct&&_t(ct)},[ct]);const Dt=({otp:Vt})=>{kt({name:"abha_aadhaar_otp_enter_clicks",data:{page_view:"aadhaar_verification",platform:mt,otp_entered:!0,flow:Rt}}),ot(Vt)},bt=({mobileNumber:Vt})=>{wt||xt(null),_t(Vt),kt({name:"abha_aadhaar_mobile_otp_enter",data:{page_view:"aadhaar_verification",platform:mt,flow:Rt}})},Ht=async()=>{if(!b){kt({name:"aadhaar_otp_resend_clicked_no_txnId",data:{platform:mt,txn_id:b||"missing_txnId",txn_id_exists:!!b,flow:Rt}});return}const{txn_id:Vt,error:Gt,action:zt}=await postRegisterAadhaarResendOtp({txn_id:b});if(!Vt){kt({name:"aadhaar_otp_resend_failed",data:{platform:mt,reason:Gt||"no_txn_id",reason_exists:!!Gt,flow:Rt}}),xt(Gt||"Something went wrong, please try again"),zt&&lt(zt);return}kt({name:"aadhaar_otp_resend_success",data:{platform:mt,txn_id:Vt,flow:Rt}}),$(Vt)},Pt=async()=>{if(rt(""),!b){kt({name:"aadhaar_otp_verification_no_txnId",data:{platform:mt,type:"verify",txn_id:b||"missing_txnId",txn_id_exists:!!b,flow:Rt}});return}kt({name:"abha_aadhaar_otp_verify_submitted",data:{platform:mt,type:"verify",flow:Rt}}),gt(LOADING_STATE.LOADING);const{txn_id:Vt,skip_state:Gt,profile:zt,eka:Qt,error:Kt,abha_profiles:Ut,source_error:Jt,action:ur}=await postRegisterAadhaarVerify({otp:ut,mobile:yt,txn_id:b});if(!Vt||!Gt){kt({name:"aadhaar_otp_verification_failed",data:{platform:mt,reason:Kt||"missing_txn_id_or_skip_state",txn_id_exists:!!Vt,skip_state_exists:!!Gt,flow:Rt}}),gt(LOADING_STATE.REJECTED),Tt(Jt??null),xt(Kt||"Something went wrong, please try again"),ur&&lt(ur);return}kt({name:"aadhaar_otp_verification_success",data:{platform:mt,skip_state:Gt,oid:Qt==null?void 0:Qt.oid,flow:Rt}}),gt(LOADING_STATE.RESOLVED),et(Gt),Qt!=null&&Qt.min_token&&tt(Qt.min_token),zt&&zt.abha_address&&St(zt.abha_address),Qt!=null&&Qt.oid&&st(Qt.oid),zt&&pt({date_of_birth:`${zt.year_of_birth}-${String(zt.month_of_birth).padStart(2,"0")}-${String(zt.day_of_birth).padStart(2,"0")}`,firstname:zt.first_name,lastname:zt.last_name,pincode:zt.pincode,gender:zt.gender,name:zt.first_name+" "+zt.last_name,mobile:zt.mobile,oid:Qt==null?void 0:Qt.oid,abha_address:zt.abha_address,abha_number:zt.abha_number,kyc_verified:zt==null?void 0:zt.kyc_verified}),kt({name:"abha_aadhaar_otp_verification_success",data:{platform:mt,skip_state:Gt,oid:Qt==null?void 0:Qt.oid,flow:Rt}}),Ut&&a(Ut),o(SCREEN_NAMES.AADHAAR_VERIFICATION_STATUS)},Lt=()=>{o(SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR);const Vt=useAuthAbhaStore.getState().isEkaAppLogin,Gt=mt;it(),useAuthAbhaStore.setState({clientId:Gt}),useAuthAbhaStore.setState({isEkaAppLogin:Vt})},Bt=nt&&yt.length===10&&It&&Ct;return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-subtle",children:[jsxRuntimeExports.jsx(Pds2Header,{prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:Rt?ft:at,children:jsxRuntimeExports.jsx(n$3,{className:""})}),title:"Create ABHA",className:"pds2-border-b-1 pds2-border-surface-muted"}),Rt==null||Rt===ABHA_INIT_FLOW.ABHA_REGISTRATION?jsxRuntimeExports.jsx(AbhaStepper,{}):jsxRuntimeExports.jsx("div",{className:"pds2-pt-40 pds2-bg-surface-subtle"}),jsxRuntimeExports.jsxs("div",{className:"pds2-px-16 pds2-pb-16 pds2-space-y-12 pds2-overflow-y-auto pds2-flex-1 pds2-bg-surface-subtle",children:[jsxRuntimeExports.jsx(AbhaOtpCard,{otpSentToText:_e||"Enter OTP sent on mobile number linked with your Aadhaar",onOtpCompletion:Dt,onResendOtpClick:Ht,setIsValid:dt,error:wt?At:null,setError:xt}),jsxRuntimeExports.jsx(EnterMobileNumberCard$1,{mobileNumber:yt,disabled:!ht&&(($t=_==null?void 0:_.mobile)==null?void 0:$t.length)===10,onMobileNumberChange:bt,isOtpValid:nt,error:wt?null:At,onKeyDown:({key:Vt})=>{Vt==="Enter"&&Pt()}}),jsxRuntimeExports.jsx("div",{className:"pds2-space-y-8",children:jsxRuntimeExports.jsxs("div",{className:"Body2Regular pds2-flex pds2-items-center pds2-gap-5 pds2-px-5 pds2-space-x-8 pds2-text-content-secondary",children:[jsxRuntimeExports.jsx(h$3,{className:"pds2-w-14 pds2-h-14 pds2-text-content-muted"}),jsxRuntimeExports.jsx("span",{children:`Allow Eka Care to ${ht?"":"create ABHA locker and"} link health data`})]})})]}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-sticky pds2-bottom-0 pds2-bg-surface-base pds2-w-full pds2-border pds2-border-surface-muted",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Verify",state:!Bt||Et===LOADING_STATE.LOADING?"disabled":"enabled",className:"pds2-w-full",onClick:Pt,isLoading:Et===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:Lt})]})},EnterMobileNumberCard$1=({mobileNumber:a,disabled:o,onMobileNumberChange:_,isOtpValid:b,onKeyDown:$,error:_e})=>{const et=GET_EXTRA_HEADERS(),tt=(et==null?void 0:et["X-User-ID"])??void 0,rt=useAuthAbhaStore(at=>at.isDocAppRequest),st=reactExports.useRef(null);reactExports.useEffect(()=>{st.current&&b&&st.current.focus()},[b]);const it=useAuthAbhaStore(at=>at.abhaAuthFlowMethod),lt=useAuthAbhaStore(at=>at.initAbhaAppMobileNumber);return lt&&(a=lt),ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,jsxRuntimeExports.jsxs(CustomCardLayout$1,{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-content-primary pds2-flex-1",children:["Enter ",rt?"the patient's":"your"," mobile number to link with ABHA"," ",jsxRuntimeExports.jsx("sup",{className:"pds2-text-semantic-error Body3Semibold",children:"*"})]}),jsxRuntimeExports.jsx(n$1,{className:"pds2-w-48 pds2-h-48 pds2-text-semantic-success pds2-p-6"})]}),jsxRuntimeExports.jsxs("label",{className:`pds2-relative pds2-border pds2-rounded-12 ${_e?"pds2-border-semantic-error focus-within:pds2-border-semantic-error ":"pds2-border-surface-muted focus-within:pds2-border-primary-brand"}`,children:[jsxRuntimeExports.jsx("span",{className:"Body1Regular pds2-absolute pds2-left-16 pds2-top-1/2 pds2-transform pds2--translate-y-1/2 pds2-text-content-primary",children:"+91 -"}),jsxRuntimeExports.jsx("input",{ref:st,placeholder:"Mobile Number",type:"tel",name:"phone",autoComplete:"tel",inputMode:"numeric",defaultValue:a,disabled:o,pattern:"[0-9]*",onChange:at=>{const ft=at.target.value.replace(/\D/g,"").slice(-10);at.target.value=ft,_({mobileNumber:ft})},className:"Body1Regular pds2-w-full pds2-pl-60 pds2-pr-12 pds2-py-12 pds2-rounded-12 pds2-outline-none pds2-bg-surface-base",onKeyDown:$})]}),_e&&jsxRuntimeExports.jsx("div",{className:"Body3Semibold pds2-text-semantic-error",children:_e}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-items-center pds2-space-x-8 pds2-text-content-secondary"})]})},CustomCardLayout$1=({children:a,className:o="pds2-space-y-12"})=>jsxRuntimeExports.jsx("div",{className:`pds2-flex pds2-flex-col pds2-w-full pds2-p-16 pds2-rounded-16 pds2-bg-surface-base ${o}`,children:a}),AbhaPhoneNumberVerificationScreen=()=>{const a=useAuthAbhaStore(ct=>ct.txnId),o=useAuthAbhaStore(ct=>ct.clearAbhaAuthStore),_=useAuthAbhaStore(ct=>ct.setAbhaAuthFlowMethod),b=useAuthAbhaStore(ct=>ct.setIsInitApiTriggered),$=useAuthAbhaStore(ct=>ct.setIdentifierValue),_e=useAuthAbhaStore(ct=>ct.setBottomsheetErrorInfo),et=useAuthAbhaStore(ct=>ct.setEkaSmallToken),tt=useAuthAbhaStore(ct=>ct.setOid),rt=useAuthAbhaStore(ct=>ct.setOTPFromAutoRead),st=useAuthAbhaStore(ct=>ct.setAadhaarVerificationSkipStateStatus),it=useAuthAbhaStore(ct=>ct.setSelectedAbhaAddress),lt=useAuthAbhaStore(ct=>ct.setAbhaAddressList),at=useAuthAbhaStore(ct=>ct.setScreen),ft=useAuthAbhaStore(ct=>ct.abhaAuthFlowMethod),[ht,pt]=reactExports.useState(""),[vt,ut]=reactExports.useState(!1),[ot,nt]=reactExports.useState(""),[dt,yt]=reactExports.useState(LOADING_STATE.IDLE),_t=useAuthAbhaStore(ct=>ct.setTxnId),At=useAuthAbhaStore(ct=>ct.setEkaProfileInfo),xt=useAuthAbhaStore(ct=>ct.clientId),wt=useAuthAbhaStore(ct=>ct.selectedAbhaFlow);useAuthAbhaStore(ct=>ct.isEkaAppLogin);const Tt=useAuthAbhaStore(ct=>ct.initAbhaFlow),[It,Nt]=reactExports.useState(!1);console.log("selectedAbhaFlow is : ",wt);const Ct=useTrackAbhaEvent();reactExports.useEffect(()=>{Ct({name:"page_view",data:{page_view:"abha_mobile_otp_verify",platform:xt,flow:Tt}})},[]);const jt=({otp:ct})=>{pt(ct),Ct({name:"abha_mobile_otp_completion",data:{platform:xt,type:"verify",otp_entered:!0,flow:Tt}}),gt(ct)},Et=async()=>{if(!a){Ct({name:"abha_mobile_otp_resend_clicked_no_txnId",data:{type:"resend",platform:xt,txn_id:"missing_txnId",txn_id_exists:!1,flow:Tt}});return}Ct({name:"abha_mobile_otp_verify_clicks",data:{type:"resend",platform:xt,flow:Tt}}),console.log("selectedMethod",ft);let ct;wt==="mobile"?(Ct({name:"abha_mobile_otp_resend_initiated",data:{platform:xt,type:"verify",flow_type:wt,flow:Tt}}),console.log("selectedFlow is mobile, so triggering mobile resend otp api",wt),ct=await postAbdmRegisterMobileResendOtp({txn_id:a})):(Ct({name:"aadhaar_mobile_otp_resend_initiated",data:{platform:xt,type:"verify",flow_type:wt,flow:Tt}}),console.log("selectedFlow is aadhaar, so triggering aadhaar resend otp api",wt),ct=await postRegisterAadhaarMobileResendOtp({txn_id:a}));const{txn_id:mt,error:Rt,action:kt}=ct;if(!mt){Ct({name:"abha_mobile_otp_resend_failed",data:{platform:xt,reason:Rt||"no_txn_id",reason_exists:!!Rt,flow:Tt}}),nt(Rt||"Something went wrong, please try again"),kt&&_e(kt);return}mt&&_t(mt),Ct({name:"abha_mobile_otp_resend_success",data:{platform:xt,txn_id:mt,flow:Tt}})},gt=async ct=>{if(rt(""),!a){Ct({name:"abha_mobile_verify_no_txnId",data:{type:"verify",platform:xt,txn_id:"missing_txnId",txn_id_exists:!1,flow:Tt}});return}Ct({name:"abha_mobile_otp_submitted",data:{type:"verify",platform:xt,txn_id:a,flow:Tt}}),yt(LOADING_STATE.LOADING);try{let mt;wt==="mobile"?(Ct({name:"abha_mobile_otp_verification_started",data:{platform:xt,flow_type:wt,flow:Tt}}),mt=await postAbdmRegisterMobileVerify({otp:ct,txn_id:a})):(Ct({name:"aadhaar_otp_verification_started",data:{platform:xt,flow_type:wt,flow:Tt}}),mt=await postRegisterAadhaarMobileVerify({otp:ct,txn_id:a}));const{txn_id:Rt,skip_state:kt,eka:Dt,profile:bt,error:Ht,action:Pt,abha_profiles:Lt}=mt;if(!Rt||!kt){Ct({name:"abha_mobile_otp_verification_failed",data:{platform:xt,reason:Ht||"missing_txn_id_or_skip_state",txn_id_exists:!!Rt,skip_state_exists:!!kt,flow:Tt}}),yt(LOADING_STATE.REJECTED),nt(Ht||"Something went wrong, please try again"),Pt&&_e(Pt);return}if(yt(LOADING_STATE.RESOLVED),st(kt),Dt!=null&&Dt.min_token&&et(Dt.min_token),Dt!=null&&Dt.oid&&tt(Dt.oid),bt&&bt.abha_address&&it(bt.abha_address),bt&&At({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,oid:Dt==null?void 0:Dt.oid,abha_address:bt==null?void 0:bt.abha_address,abha_number:bt==null?void 0:bt.abha_number,middlename:bt==null?void 0:bt.middle_name,kyc_verified:bt==null?void 0:bt.kyc_verified}),console.log("remove oid from set indvidual env"),Ct({name:"abha_mobile_otp_verification_success",data:{platform:xt,skip_state:kt,flow:Tt}}),bt!=null&&bt.abha_number&&Tt===ABHA_INIT_FLOW.ABHA_KYC){b(!1),$({abha_number:bt==null?void 0:bt.abha_number}),setIndividualEnv({extraHeaders:{"X-Pt-Id":(Dt==null?void 0:Dt.oid)??""}}),_(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER),at(SCREEN_NAMES.KYC_LOGIN_SCREEN);return}if(Lt!=null&&Lt.length){lt(Lt),at(SCREEN_NAMES.SELECT_ABHA_FROM_LIST);return}at(SCREEN_NAMES.ABHA_MOBILE_LINKING_STATUS)}catch{Ct({name:"abha_mobile_otp_verification_exception",data:{platform:xt,reason:"exception_thrown",flow:Tt}}),yt(LOADING_STATE.REJECTED),nt("Something went wrong, please try again")}},St=()=>{at(SCREEN_NAMES.CREATE_ABHA_WITH_AADHAAR);const ct=useAuthAbhaStore.getState().isEkaAppLogin,mt=xt;o(),useAuthAbhaStore.setState({clientId:mt}),useAuthAbhaStore.setState({isEkaAppLogin:ct})};return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-base",children:[jsxRuntimeExports.jsx(Pds2Header,{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$3,{className:""})}),title:"Phone Number Verification",className:"pds2-border-b-1 pds2-border-surface-muted"}),Tt==null||Tt===ABHA_INIT_FLOW.ABHA_REGISTRATION?jsxRuntimeExports.jsx(AbhaStepper,{}):jsxRuntimeExports.jsx("div",{className:"pds2-pt-40 pds2-bg-surface-subtle"}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-space-y-16 pds2-overflow-y-auto pds2-flex-1 pds2-bg-surface-subtle",children:jsxRuntimeExports.jsx(AbhaOtpCard,{otpSentToText:"Enter OTP received through ABDM to verify mobile number",onOtpCompletion:jt,onResendOtpClick:Et,error:ot,setIsValid:ct=>{ot&&nt(null),ut(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-surface-base pds2-w-full pds2-border pds2-border-surface-muted",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Verify",state:!vt||dt===LOADING_STATE.LOADING?"disabled":"enabled",className:"pds2-w-full",onClick:()=>gt(ht),isLoading:dt===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:St}),jsxRuntimeExports.jsx(ExitPopup,{open:It,setOpen:Nt})]})},usePostRegisterMobileCreatePhr=()=>{const a=useAuthAbhaStore(o=>o.setSelectedAbhaAddress);return useMutation({mutationFn:o=>postAbdmRegisterMobileCreatePhr(o),onSuccess(o){o.profile&&(queryClient.setQueryData(["abdmProfilePhrResponse"],o.profile),a(o.profile.abha_address))}})},AbhaAddressCard=({address:a,setAddress:o,suggestions:_})=>jsxRuntimeExports.jsxs(CustomCardLayout$1,{className:"pds2-space-y-24",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-12",children:[jsxRuntimeExports.jsx("div",{className:"DisplayBig pds2-text-primary-brand",children:"@"}),jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-4",children:[jsxRuntimeExports.jsx("div",{className:"pds2-text-content-primary Body1Regular",children:"Choose your ABHA Address"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-content-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-primary-brand BodyInputLabel",children:["ABHA Address",jsxRuntimeExports.jsx("sup",{className:"pds2-text-semantic-error Body3Semibold",children:" *"})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-relative pds2-text-content-primary Body1Semibold",children:[jsxRuntimeExports.jsx("input",{value:a,className:"pds2-py-4 pds2-bg-surface-neutral pds2-border-b-1 pds2-border-b-primary-brand pds2-w-full pds2-pr-16 pds2-outline-none",id:"abha-address",onChange:b=>{const $=b.target.value.replace(/[^a-zA-Z0-9]/g,"");$.length<=18&&o($)},autoCapitalize:"off",autoCorrect:"off"}),jsxRuntimeExports.jsx("span",{className:"pds2-text-content-secondary pds2-absolute pds2-right-0 pds2-top-1/2 pds2-transform pds2--translate-y-1/2 pds2-pointer-events-none",children:"@abdm"})]}),jsxRuntimeExports.jsx("div",{className:"pds2-py-6 pds2-text-content-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-content-muted 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(b=>jsxRuntimeExports.jsxs("label",{className:`
51
51
  pds2-flex pds2-items-center pds2-cursor-pointer pds2-px-12 pds2-py-8
52
52
  pds2-border-1 pds2-rounded-12 pds2-bg-surface-subtle
53
53
  ${a===b?"pds2-border-primary-brand pds2-text-primary-brand Body2Semibold focus-within:pds2-ring-2 focus-within:pds2-ring-primary-brand focus-within:pds2-ring-offset-2":"pds2-border-surface-muted pds2-text-content-secondary Body3Medium"}
54
54
  pds2-transition-colors pds2-duration-200
55
- `,children:[jsxRuntimeExports.jsx("input",{type:"radio",name:"abha-suggestion",value:b,checked:a===b,onClick:()=>o(a===b?"":b),className:"focus:pds2-outline-none pds2-appearance-none"}),jsxRuntimeExports.jsxs("span",{children:[b,"@abdm"]})]},b))})]}):null]}),CreateAbhaAddressScreen=()=>{const[a,o]=reactExports.useState(""),_=useAuthAbhaStore(gt=>gt.txnId),b=useAuthAbhaStore(gt=>gt.setSelectedAbhaAddress),$=useAuthAbhaStore(gt=>gt.goBackLoginScreen),_e=useAuthAbhaStore(gt=>gt.abhaAuthFlowMethod),[et,tt]=reactExports.useState(null),rt=useAuthAbhaStore(gt=>gt.authTxnId),[st,it]=reactExports.useState(null),{mutateAsync:lt}=usePostAuthVerifyV3(),at=useAuthAbhaStore(gt=>gt.setBottomsheetErrorInfo),ft=useAuthAbhaStore(gt=>gt.clearAbhaAuthStore),[ht,pt]=reactExports.useState([]),[vt,ut]=reactExports.useState(!1),{mutateAsync:ot}=usePostRegisterMobileCreatePhr(),nt=useAuthAbhaStore(gt=>gt.ekaProfileInfo),dt=useAuthAbhaStore(gt=>gt.registrationType),{mutateAsync:yt}=usePostAuthSwitchV3(),_t=useAuthAbhaStore(gt=>gt.setEkaProfileInfo),At=GET_EXTRA_HEADERS(),xt=useAuthAbhaStore(gt=>gt.isEkaAppLogin),wt=useAuthAbhaStore(gt=>gt.clientId),bt=useAuthAbhaStore(gt=>gt.initAbhaFlow),It=["M","F","O","U"];useAuthAbhaStore(gt=>gt.isNewLoginOrCreateFlow),useAuthAbhaStore(gt=>gt.abhaAuthFlowMethod||ABHA_AUTH_FLOW_METHOD.MOBILE);const Nt=GET_REFRESH_TOKEN(),Ct=useTrackAbhaEvent();reactExports.useEffect(()=>{Ct({name:"page_view",data:{page_view:"choose_abha_address_screen",platform:wt,flow:bt}})},[wt]),reactExports.useEffect(()=>{async function gt(){if(_)try{const{suggestions:St,error:ct}=await getAbdmRegisterSuggest({txn_id:_,fn:nt==null?void 0:nt.firstname,ln:nt==null?void 0:nt.lastname,dob:nt==null?void 0:nt.date_of_birth});if(ct){it(ct||"Something went wrong. Please try again.");return}St&&(pt(St),St.length>0&&o(St[0]))}catch{}}gt()},[]);const jt=async()=>{var mt,Rt,Tt,Dt,kt,Ht,Pt,Lt,Bt,$t,Vt,Gt,zt,Qt,Kt;if(!a){Ct({name:"create_abha_address_click_no_selection",data:{platform:wt,type:"create",reason:"no_abha_address_selected",abha_address_selected:!1,flow:bt}});return}if(Ct({name:"create_abha_address_clicks",data:{platform:wt,type:"create",flow:bt}}),tt(LOADING_STATE.LOADING),dt===REGISTRATION_TYPE.CREATE){if(!_||!nt)return;const[Ut,Jt,ur]=nt.date_of_birth?(mt=nt==null?void 0:nt.date_of_birth)==null?void 0:mt.split("-"):["","",""];if(_e===ABHA_AUTH_FLOW_METHOD.MOBILE){const Zt={abha_address:a,day_of_birth:parseInt(ur),first_name:nt.firstname,gender:nt.gender,last_name:nt.lastname,month_of_birth:parseInt(Jt),pincode:nt.pincode,year_of_birth:parseInt(Ut),txn_id:_};Ct({name:"create_abha_process_started",data:{method:"mobile",abha_address:a,platform:wt,pincode_sent:Zt==null?void 0:Zt.pincode,date_of_birth:(nt==null?void 0:nt.date_of_birth)||"missing date of birth",day_of_birth:(Zt==null?void 0:Zt.day_of_birth)||"missing day of birth",month_of_birth:(Zt==null?void 0:Zt.month_of_birth)||"missing month of birth",year_of_birth:(Zt==null?void 0:Zt.year_of_birth)||"missing year of birth",flow:bt}});const{error:Xt,eka:Mt,profile:Ft,action:ar}=await ot(Zt);if(ar){Ct({name:"create_abha_process_error_action",data:{method:"mobile",platform:wt,error_message:((Rt=ar==null?void 0:ar.cta)==null?void 0:Rt.title)||"unknown_error_message",error_message_exists:!!((Tt=ar==null?void 0:ar.cta)!=null&&Tt.title),flow:bt}}),at(ar);return}if(Xt||!Mt){Ct({name:"create_abha_process_failed",data:{method:"mobile",platform:wt,error_message:Xt||"unknown_error",error_message_exists:!!Xt,pincode_received:(Ft==null?void 0:Ft.pincode)||"missing_pincode_received",pincode_received_exists:!!(Ft!=null&&Ft.pincode),pincode_sent:(nt==null?void 0:nt.pincode)||"missing_pincode_sent",pincode_sent_exists:!!(nt!=null&&nt.pincode),flow:bt}}),tt(LOADING_STATE.REJECTED),it(Xt||"Something went wrong. Please try again.");return}if(Ct({name:"abha_address_created",data:{type:"create_abha",platform:wt,flow:bt}}),Mt.oid&&xt){tt(LOADING_STATE.RESOLVED),Ct({name:"abha_create_process_started",data:{method:_e.toLowerCase(),is_eka_app_login:xt?"true":"false",platform:wt,flow:bt}});const qt=It.includes(Ft==null?void 0:Ft.gender)?Ft==null?void 0:Ft.gender:void 0,sr={oid:(Mt==null?void 0:Mt.oid)||"",fln:(Ft==null?void 0:Ft.first_name)+" "+(Ft==null?void 0:Ft.last_name),dob:`${Ft==null?void 0:Ft.year_of_birth}-${String(Ft==null?void 0:Ft.month_of_birth).padStart(2,"0")}-${String(Ft==null?void 0:Ft.day_of_birth).padStart(2,"0")}`,gen:qt,mobile:Ft==null?void 0:Ft.mobile,at:"",fn:(Ft==null?void 0:Ft.first_name)||"",mn:(Ft==null?void 0:Ft.middle_name)||"",ln:(Ft==null?void 0:Ft.last_name)||"","health-ids":Ft!=null&&Ft.abha_address?[Ft.abha_address]:void 0,abha_number:(Ft==null?void 0:Ft.abha_number)||""};Ft&&_t({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:Mt==null?void 0:Mt.oid,patient_uuid:Mt==null?void 0:Mt.uuid,abha_address:Ft==null?void 0:Ft.abha_address,abha_number:Ft==null?void 0:Ft.abha_number,kyc_verified:Ft==null?void 0:Ft.kyc_verified});const cr=getMockAuthVerifyResponse(sr);if(Ct({name:"abha_create_process_success",data:{method:_e.toLowerCase(),is_eka_app_login:xt?"true":"false",platform:wt,flow:bt}}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Dt=window.EkaAbha)==null||Dt.onAbhaSuccess(JSON.stringify({response:cr}));return}onAbhaSuccess({response:cr}),unMount();return}}else{Ct({name:"create_abha_process_started",data:{method:_e==null?void 0:_e.toLowerCase(),platform:wt,flow:bt}});const{error:Zt,eka:Xt,profile:Mt,action:Ft}=await postRegisterAadhaarCreatePhr({abha_address:a,txn_id:_});if(Ft){Ct({name:"create_abha_process_error_action",data:{method:(_e==null?void 0:_e.toLowerCase())||"unknown_method",platform:wt,error_message:((kt=Ft==null?void 0:Ft.cta)==null?void 0:kt.title)||"unknown_error_message",error_message_exists:!!((Ht=Ft==null?void 0:Ft.cta)!=null&&Ht.title),flow:bt}}),at(Ft);return}if(Zt||!Xt){Ct({name:"create_abha_process_failed",data:{method:(_e==null?void 0:_e.toLowerCase())||"unknown_method",platform:wt,error_message:Zt||"unknown_error",error_message_exists:!!Zt,pincode_received:(Mt==null?void 0:Mt.pincode)||"missing_pincode_received",pincode_received_exists:!!(Mt!=null&&Mt.pincode),pincode_sent:(nt==null?void 0:nt.pincode)||"missing_pincode_sent",pincode_sent_exists:!!(nt!=null&&nt.pincode),flow:bt}}),tt(LOADING_STATE.REJECTED),it(Zt||"Something went wrong. Please try again.");return}if(Ct({name:"abha_address_created",data:{type:"create_abha",platform:wt,flow:bt}}),Xt.oid&&xt){tt(LOADING_STATE.RESOLVED),Ct({name:"abha_create_process_started",data:{method:_e==null?void 0:_e.toLowerCase(),is_eka_app_login:xt?"true":"false",platform:wt,page_view:"choose_abha_address",flow:bt}});const ar=It.includes(Mt==null?void 0:Mt.gender)?Mt==null?void 0:Mt.gender:void 0,qt={oid:(Xt==null?void 0:Xt.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:ar,mobile:Mt==null?void 0:Mt.mobile,at:"",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)||""},sr=getMockAuthVerifyResponse(qt);if(Ct({name:"abha_create_process_success",data:{method:_e==null?void 0:_e.toLowerCase(),is_eka_app_login:xt?"true":"false",platform:wt,flow:bt}}),Mt&&_t({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,name:Mt.first_name+" "+Mt.last_name,mobile:Mt.mobile,oid:Xt==null?void 0:Xt.oid,patient_uuid:Xt==null?void 0:Xt.uuid,abha_address:Mt==null?void 0:Mt.abha_address,abha_number:Mt==null?void 0:Mt.abha_number,kyc_verified:Mt==null?void 0:Mt.kyc_verified}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Pt=window.EkaAbha)==null||Pt.onAbhaSuccess(JSON.stringify({response:sr}));return}onAbhaSuccess({response:sr}),unMount();return}}let ir=nt.oid;if(nt.oid){Ct({name:"abha_create_process_link_phr_started",data:{method:_e==null?void 0:_e.toLowerCase(),is_eka_app_login:xt?"true":"false",platform:wt,page_view:"choose_abha_address",flow:bt}});const{error:Zt,action:Xt,eka:Mt}=await postAbdmProfileEkaLinkPhr({abha_address:a,oid:nt.oid});if(Xt){Ct({name:"abha_create_process_link_phr_failed",data:{method:(_e==null?void 0:_e.toLowerCase())||"unknown_method",platform:wt,error_message:((Lt=Xt==null?void 0:Xt.cta)==null?void 0:Lt.title)||"unknown_error_message",error_message_exists:!!((Bt=Xt==null?void 0:Xt.cta)!=null&&Bt.title),flow:bt}}),at(Xt);return}if(Zt||!Mt||!Mt.oid){Ct({name:"abha_create_process_link_phr_failed",data:{method:(_e==null?void 0:_e.toLowerCase())||"unknown_method",platform:wt,error_message:Zt||"unknown_error",error_message_exists:!!Zt,eka:Mt||"missing_eka",eka_oid:(Mt==null?void 0:Mt.oid)||"missing_oid",eka_oid_exists:!!(Mt!=null&&Mt.oid),flow:bt}}),tt(LOADING_STATE.REJECTED),it(Zt||"Something went wrong. Please try again.");return}Ct({name:"abha_create_process_link_phr_success",data:{method:_e==null?void 0:_e.toLowerCase(),is_eka_app_login:xt?"true":"false",platform:wt,page_view:"choose_abha_address",flow:bt}})}else{Ct({name:"abha_create_process_eka_started",data:{method:_e==null?void 0:_e.toLowerCase(),is_eka_app_login:xt?"true":"false",platform:wt,flow:bt}});const Zt={abha_address:a,day_of_birth:parseInt(ur),first_name:nt.firstname,gender:nt.gender,last_name:nt.lastname||"",month_of_birth:parseInt(Jt),pincode:nt.pincode,year_of_birth:parseInt(Ut)},{error:Xt,eka:Mt,action:Ft}=await postAbdmProfileEka({...Zt});if(Ft){Ct({name:"abha_create_process_eka_failed",data:{method:(_e==null?void 0:_e.toLowerCase())||"unknown_method",platform:wt,error_message:(($t=Ft==null?void 0:Ft.cta)==null?void 0:$t.title)||"unknown_error_message",error_message_exists:!!((Vt=Ft==null?void 0:Ft.cta)!=null&&Vt.title),flow:bt}}),at(Ft);return}if(Xt||!Mt||!Mt.oid){Ct({name:"abha_create_process_eka_failed",data:{method:(_e==null?void 0:_e.toLowerCase())||"unknown_method",is_eka_app_login:xt?"true":"false",platform:wt,error_message:Xt||"unknown_error",error_message_exists:!!Xt,eka_exists:!!Mt,eka_oid:(Mt==null?void 0:Mt.oid)||"missing_oid",eka_oid_exists:!!(Mt!=null&&Mt.oid),flow:bt}}),tt(LOADING_STATE.REJECTED),it(Xt||"Something went wrong. Please try again.");return}ir=Mt.oid,Ct({name:"abha_create_process_eka_success",data:{method:_e==null?void 0:_e.toLowerCase(),is_eka_app_login:xt?"true":"false",platform:wt,oid:Mt==null?void 0:Mt.oid,flow:bt}})}if(!ir){Ct({name:"abha_create_process_oid_switch_failed",data:{method:(_e==null?void 0:_e.toLowerCase())||"unknown_method",is_eka_app_login:xt?"true":"false",platform:wt,oid:ir||"missing_oid",oid_exists:!!ir,flow:bt}});return}Ct({name:"abha_create_process_switch_started",data:{method:_e==null?void 0:_e.toLowerCase(),is_eka_app_login:xt?"true":"false",platform:wt,oid:ir,flow:bt}});const tr=await yt({oid:ir,refresh:Nt});if(tr.error){Ct({name:"abha_create_process_switch_failed",data:{method:(_e==null?void 0:_e.toLowerCase())||"unknown_method",is_eka_app_login:xt?"true":"false",platform:wt,oid:ir||"missing_oid",oid_exists:!!ir,error_message:((Gt=tr.error)==null?void 0:Gt.message)||"unknown_error",error_message_exists:!!((zt=tr.error)!=null&&zt.message),flow:bt}}),tt(LOADING_STATE.REJECTED),it(((Qt=tr.error)==null?void 0:Qt.message)||"Something went wrong, please try again");return}Ct({name:"abha_create_process_switch_success",data:{method:_e==null?void 0:_e.toLowerCase(),is_eka_app_login:xt?"true":"false",platform:wt,oid:ir,flow:bt}}),tt(LOADING_STATE.RESOLVED);return}b(`${a}@abdm`);const{exists:gt,error:St,action:ct}=await postAbdmRegisterPhrCheck({abha_address:a});if(St){tt(LOADING_STATE.REJECTED),it(St||"Something went wrong. Please try again.");return}if(gt){tt(LOADING_STATE.REJECTED),it("This abha address is already taken.");return}if(_e===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER){if(!_)return;const{error:Ut,eka:Jt,action:ur}=await postAbdmRegisterAbhaNumberCreatePhr({abha_address:a,txn_id:_});if(ur){at(ur);return}if(Ut||!Jt){tt(LOADING_STATE.REJECTED),it(Ut||"Something went wrong. Please try again.");return}if(At&&At.auth&&xt){tt(LOADING_STATE.RESOLVED),onAbhaSuccess({response:""}),unMount();return}(!Jt.min_token||!rt)&&(tt(LOADING_STATE.REJECTED),it(Ut||"Something went wrong. Please try again."));const ir=await lt({code:Jt.min_token,idp_id:"eka_min_token",...Jt.oid?{oid:Jt.oid}:null});if(!ir.data){tt(LOADING_STATE.REJECTED),it(((Kt=ir.error)==null?void 0:Kt.message)||"Something went wrong, please try again");return}tt(LOADING_STATE.RESOLVED);return}},Et=()=>{$();const gt=wt,St=useAuthAbhaStore.getState().isEkaAppLogin;ft(),useAuthAbhaStore.setState({isEkaAppLogin:St}),useAuthAbhaStore.setState({clientId:gt})};return jsxRuntimeExports.jsxs("div",{className:"pds2-w-full pds2-h-full pds2-flex pds2-flex-col pds2-bg-surface-subtle",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:()=>ut(!0),children:jsxRuntimeExports.jsx(n$3,{})}),className:"pds2-border-b pds2-border-surface-muted pds2-bg-surface-base pds2-flex-shrink-0"}),bt==null||bt===ABHA_INIT_FLOW.ABHA_REGISTRATION?jsxRuntimeExports.jsx(AbhaStepper,{}):jsxRuntimeExports.jsx("div",{className:"pds2-pt-40 pds2-bg-surface-subtle"}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-flex-1 pds2-overflow-y-auto pds2-bg-surface-subtle",children:jsxRuntimeExports.jsx(AbhaAddressCard,{address:a,setAddress:o,suggestions:ht})}),st&&jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-text-semantic-error pds2-text-center",children:st}),jsxRuntimeExports.jsx("div",{className:"pds2-sticky pds2-border pds2-border-surface-muted pds2-bottom-0 pds2-left-0 pds2-right-0 pds2-bg-surface-base pds2-shadow-lg pds2-p-16",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Create",state:a.length<8&&a.length>18||et===LOADING_STATE.LOADING?"disabled":"enabled",onClick:jt,isLoading:et===LOADING_STATE.LOADING,className:"pds2-w-full"})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:Et}),jsxRuntimeExports.jsx(ExitPopup,{open:vt,setOpen:ut})]})},Pds2InputField=({PrefixComponent:a,placeholder:o,value:_,onChange:b,borderStyle:$="",borderRadius:_e="pds2-rounded-16",padding:et="pds2-px-24 pds2-py-16",textColor:tt="pds2-text-content-primary",textStyle:rt="",onKeyDown:st=()=>{},type:it="text",label:lt,isMandatory:at,maxDate:ft,error:ht,autoCapitalize:pt="off",autoCorrect:vt="off",disabled:ut,inputMode:ot,autoFocus:nt,pattern:dt,maxLength:yt,autoComplete:_t,name:At})=>jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-space-y-8 pds2-w-full",children:[lt?jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-text-content-muted",children:[lt,at?jsxRuntimeExports.jsx("span",{className:"pds2-text-semantic-error Body3Semibold",children:"*"}):null]}):null,jsxRuntimeExports.jsxs("label",{className:`${et} ${_e} ${$} pds2-border ${ht?"pds2-border-semantic-error pds2-border-2":"pds2-border-surface-muted"} pds2-flex pds2-flex-row pds2-items-center pds2-gap-x-8 pds2-w-full pds2-bg-surface-base pds2-text-content-enabled`,children:[a||null,jsxRuntimeExports.jsx("input",{name:At,className:`${tt} ${rt} pds2-outline-none pds2-w-full pds2-bg-surface-base disabled:pds2-text-content-muted`,placeholder:o||"Enter Value",value:_,onChange:b,type:it,max:it==="date"&&ft?ft:void 0,onKeyDown:st,autoCapitalize:pt,autoCorrect:vt,disabled:ut,inputMode:ot,autoFocus:nt,pattern:dt,maxLength:yt,required:at,autoComplete:_t})]})]});function Pds2SingleInputChip({title:a,isDisabled:o,isSelected:_,onSelect:b}){const $=reactExports.useRef(null);return jsxRuntimeExports.jsx("div",{onClick:o?void 0:b,className:`pds2-flex pds2-items-center pds2-cursor-pointer pds2-py-12 pds2-px-16 pds2-border-1 pds2-rounded-12 pds2-bg-surface-base
55
+ `,children:[jsxRuntimeExports.jsx("input",{type:"radio",name:"abha-suggestion",value:b,checked:a===b,onClick:()=>o(a===b?"":b),className:"focus:pds2-outline-none pds2-appearance-none"}),jsxRuntimeExports.jsxs("span",{children:[b,"@abdm"]})]},b))})]}):null]}),CreateAbhaAddressScreen=()=>{const[a,o]=reactExports.useState(""),_=useAuthAbhaStore(gt=>gt.txnId),b=useAuthAbhaStore(gt=>gt.setSelectedAbhaAddress),$=useAuthAbhaStore(gt=>gt.goBackLoginScreen),_e=useAuthAbhaStore(gt=>gt.abhaAuthFlowMethod),[et,tt]=reactExports.useState(null),rt=useAuthAbhaStore(gt=>gt.authTxnId),[st,it]=reactExports.useState(null),{mutateAsync:lt}=usePostAuthVerifyV3(),at=useAuthAbhaStore(gt=>gt.setBottomsheetErrorInfo),ft=useAuthAbhaStore(gt=>gt.clearAbhaAuthStore),[ht,pt]=reactExports.useState([]),[vt,ut]=reactExports.useState(!1),{mutateAsync:ot}=usePostRegisterMobileCreatePhr(),nt=useAuthAbhaStore(gt=>gt.ekaProfileInfo),dt=useAuthAbhaStore(gt=>gt.registrationType),{mutateAsync:yt}=usePostAuthSwitchV3(),_t=useAuthAbhaStore(gt=>gt.setEkaProfileInfo),At=GET_EXTRA_HEADERS(),xt=useAuthAbhaStore(gt=>gt.isEkaAppLogin),wt=useAuthAbhaStore(gt=>gt.clientId),Tt=useAuthAbhaStore(gt=>gt.initAbhaFlow),It=["M","F","O","U"];useAuthAbhaStore(gt=>gt.isNewLoginOrCreateFlow),useAuthAbhaStore(gt=>gt.abhaAuthFlowMethod||ABHA_AUTH_FLOW_METHOD.MOBILE);const Nt=GET_REFRESH_TOKEN(),Ct=useTrackAbhaEvent();reactExports.useEffect(()=>{Ct({name:"page_view",data:{page_view:"choose_abha_address_screen",platform:wt,flow:Tt}})},[wt]),reactExports.useEffect(()=>{async function gt(){if(_)try{const{suggestions:St,error:ct}=await getAbdmRegisterSuggest({txn_id:_,fn:nt==null?void 0:nt.firstname,ln:nt==null?void 0:nt.lastname,dob:nt==null?void 0:nt.date_of_birth});if(ct){it(ct||"Something went wrong. Please try again.");return}St&&(pt(St),St.length>0&&o(St[0]))}catch{}}gt()},[]);const jt=async()=>{var mt,Rt,kt,Dt,bt,Ht,Pt,Lt,Bt,$t,Vt,Gt,zt,Qt,Kt;if(!a){Ct({name:"create_abha_address_click_no_selection",data:{platform:wt,type:"create",reason:"no_abha_address_selected",abha_address_selected:!1,flow:Tt}});return}if(Ct({name:"create_abha_address_clicks",data:{platform:wt,type:"create",flow:Tt}}),tt(LOADING_STATE.LOADING),dt===REGISTRATION_TYPE.CREATE){if(!_||!nt)return;const[Ut,Jt,ur]=nt.date_of_birth?(mt=nt==null?void 0:nt.date_of_birth)==null?void 0:mt.split("-"):["","",""];if(_e===ABHA_AUTH_FLOW_METHOD.MOBILE){const Zt={abha_address:a,day_of_birth:parseInt(ur),first_name:nt.firstname,gender:nt.gender,last_name:nt.lastname,month_of_birth:parseInt(Jt),pincode:nt.pincode,year_of_birth:parseInt(Ut),txn_id:_};Ct({name:"create_abha_process_started",data:{method:"mobile",abha_address:a,platform:wt,pincode_sent:Zt==null?void 0:Zt.pincode,date_of_birth:(nt==null?void 0:nt.date_of_birth)||"missing date of birth",day_of_birth:(Zt==null?void 0:Zt.day_of_birth)||"missing day of birth",month_of_birth:(Zt==null?void 0:Zt.month_of_birth)||"missing month of birth",year_of_birth:(Zt==null?void 0:Zt.year_of_birth)||"missing year of birth",flow:Tt}});const{error:Xt,eka:Mt,profile:Ft,action:ar}=await ot(Zt);if(ar){Ct({name:"create_abha_process_error_action",data:{method:"mobile",platform:wt,error_message:((Rt=ar==null?void 0:ar.cta)==null?void 0:Rt.title)||"unknown_error_message",error_message_exists:!!((kt=ar==null?void 0:ar.cta)!=null&&kt.title),flow:Tt}}),at(ar);return}if(Xt||!Mt){Ct({name:"create_abha_process_failed",data:{method:"mobile",platform:wt,error_message:Xt||"unknown_error",error_message_exists:!!Xt,pincode_received:(Ft==null?void 0:Ft.pincode)||"missing_pincode_received",pincode_received_exists:!!(Ft!=null&&Ft.pincode),pincode_sent:(nt==null?void 0:nt.pincode)||"missing_pincode_sent",pincode_sent_exists:!!(nt!=null&&nt.pincode),flow:Tt}}),tt(LOADING_STATE.REJECTED),it(Xt||"Something went wrong. Please try again.");return}if(Ct({name:"abha_address_created",data:{type:"create_abha",platform:wt,flow:Tt}}),Mt.oid&&xt){tt(LOADING_STATE.RESOLVED),Ct({name:"abha_create_process_started",data:{method:_e.toLowerCase(),is_eka_app_login:xt?"true":"false",platform:wt,flow:Tt}});const qt=It.includes(Ft==null?void 0:Ft.gender)?Ft==null?void 0:Ft.gender:void 0,sr={oid:(Mt==null?void 0:Mt.oid)||"",fln:(Ft==null?void 0:Ft.first_name)+" "+(Ft==null?void 0:Ft.last_name),dob:`${Ft==null?void 0:Ft.year_of_birth}-${String(Ft==null?void 0:Ft.month_of_birth).padStart(2,"0")}-${String(Ft==null?void 0:Ft.day_of_birth).padStart(2,"0")}`,gen:qt,mobile:Ft==null?void 0:Ft.mobile,at:"",fn:(Ft==null?void 0:Ft.first_name)||"",mn:(Ft==null?void 0:Ft.middle_name)||"",ln:(Ft==null?void 0:Ft.last_name)||"","health-ids":Ft!=null&&Ft.abha_address?[Ft.abha_address]:void 0,abha_number:(Ft==null?void 0:Ft.abha_number)||""};Ft&&_t({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:Mt==null?void 0:Mt.oid,patient_uuid:Mt==null?void 0:Mt.uuid,abha_address:Ft==null?void 0:Ft.abha_address,abha_number:Ft==null?void 0:Ft.abha_number,kyc_verified:Ft==null?void 0:Ft.kyc_verified});const cr=getMockAuthVerifyResponse(sr);if(Ct({name:"abha_create_process_success",data:{method:_e.toLowerCase(),is_eka_app_login:xt?"true":"false",platform:wt,flow:Tt}}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Dt=window.EkaAbha)==null||Dt.onAbhaSuccess(JSON.stringify({response:cr}));return}onAbhaSuccess({response:cr}),unMount();return}}else{Ct({name:"create_abha_process_started",data:{method:_e==null?void 0:_e.toLowerCase(),platform:wt,flow:Tt}});const{error:Zt,eka:Xt,profile:Mt,action:Ft}=await postRegisterAadhaarCreatePhr({abha_address:a,txn_id:_});if(Ft){Ct({name:"create_abha_process_error_action",data:{method:(_e==null?void 0:_e.toLowerCase())||"unknown_method",platform:wt,error_message:((bt=Ft==null?void 0:Ft.cta)==null?void 0:bt.title)||"unknown_error_message",error_message_exists:!!((Ht=Ft==null?void 0:Ft.cta)!=null&&Ht.title),flow:Tt}}),at(Ft);return}if(Zt||!Xt){Ct({name:"create_abha_process_failed",data:{method:(_e==null?void 0:_e.toLowerCase())||"unknown_method",platform:wt,error_message:Zt||"unknown_error",error_message_exists:!!Zt,pincode_received:(Mt==null?void 0:Mt.pincode)||"missing_pincode_received",pincode_received_exists:!!(Mt!=null&&Mt.pincode),pincode_sent:(nt==null?void 0:nt.pincode)||"missing_pincode_sent",pincode_sent_exists:!!(nt!=null&&nt.pincode),flow:Tt}}),tt(LOADING_STATE.REJECTED),it(Zt||"Something went wrong. Please try again.");return}if(Ct({name:"abha_address_created",data:{type:"create_abha",platform:wt,flow:Tt}}),Xt.oid&&xt){tt(LOADING_STATE.RESOLVED),Ct({name:"abha_create_process_started",data:{method:_e==null?void 0:_e.toLowerCase(),is_eka_app_login:xt?"true":"false",platform:wt,page_view:"choose_abha_address",flow:Tt}});const ar=It.includes(Mt==null?void 0:Mt.gender)?Mt==null?void 0:Mt.gender:void 0,qt={oid:(Xt==null?void 0:Xt.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:ar,mobile:Mt==null?void 0:Mt.mobile,at:"",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)||""},sr=getMockAuthVerifyResponse(qt);if(Ct({name:"abha_create_process_success",data:{method:_e==null?void 0:_e.toLowerCase(),is_eka_app_login:xt?"true":"false",platform:wt,flow:Tt}}),Mt&&_t({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,name:Mt.first_name+" "+Mt.last_name,mobile:Mt.mobile,oid:Xt==null?void 0:Xt.oid,patient_uuid:Xt==null?void 0:Xt.uuid,abha_address:Mt==null?void 0:Mt.abha_address,abha_number:Mt==null?void 0:Mt.abha_number,kyc_verified:Mt==null?void 0:Mt.kyc_verified}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Pt=window.EkaAbha)==null||Pt.onAbhaSuccess(JSON.stringify({response:sr}));return}onAbhaSuccess({response:sr}),unMount();return}}let ir=nt.oid;if(nt.oid){Ct({name:"abha_create_process_link_phr_started",data:{method:_e==null?void 0:_e.toLowerCase(),is_eka_app_login:xt?"true":"false",platform:wt,page_view:"choose_abha_address",flow:Tt}});const{error:Zt,action:Xt,eka:Mt}=await postAbdmProfileEkaLinkPhr({abha_address:a,oid:nt.oid});if(Xt){Ct({name:"abha_create_process_link_phr_failed",data:{method:(_e==null?void 0:_e.toLowerCase())||"unknown_method",platform:wt,error_message:((Lt=Xt==null?void 0:Xt.cta)==null?void 0:Lt.title)||"unknown_error_message",error_message_exists:!!((Bt=Xt==null?void 0:Xt.cta)!=null&&Bt.title),flow:Tt}}),at(Xt);return}if(Zt||!Mt||!Mt.oid){Ct({name:"abha_create_process_link_phr_failed",data:{method:(_e==null?void 0:_e.toLowerCase())||"unknown_method",platform:wt,error_message:Zt||"unknown_error",error_message_exists:!!Zt,eka:Mt||"missing_eka",eka_oid:(Mt==null?void 0:Mt.oid)||"missing_oid",eka_oid_exists:!!(Mt!=null&&Mt.oid),flow:Tt}}),tt(LOADING_STATE.REJECTED),it(Zt||"Something went wrong. Please try again.");return}Ct({name:"abha_create_process_link_phr_success",data:{method:_e==null?void 0:_e.toLowerCase(),is_eka_app_login:xt?"true":"false",platform:wt,page_view:"choose_abha_address",flow:Tt}})}else{Ct({name:"abha_create_process_eka_started",data:{method:_e==null?void 0:_e.toLowerCase(),is_eka_app_login:xt?"true":"false",platform:wt,flow:Tt}});const Zt={abha_address:a,day_of_birth:parseInt(ur),first_name:nt.firstname,gender:nt.gender,last_name:nt.lastname||"",month_of_birth:parseInt(Jt),pincode:nt.pincode,year_of_birth:parseInt(Ut)},{error:Xt,eka:Mt,action:Ft}=await postAbdmProfileEka({...Zt});if(Ft){Ct({name:"abha_create_process_eka_failed",data:{method:(_e==null?void 0:_e.toLowerCase())||"unknown_method",platform:wt,error_message:(($t=Ft==null?void 0:Ft.cta)==null?void 0:$t.title)||"unknown_error_message",error_message_exists:!!((Vt=Ft==null?void 0:Ft.cta)!=null&&Vt.title),flow:Tt}}),at(Ft);return}if(Xt||!Mt||!Mt.oid){Ct({name:"abha_create_process_eka_failed",data:{method:(_e==null?void 0:_e.toLowerCase())||"unknown_method",is_eka_app_login:xt?"true":"false",platform:wt,error_message:Xt||"unknown_error",error_message_exists:!!Xt,eka_exists:!!Mt,eka_oid:(Mt==null?void 0:Mt.oid)||"missing_oid",eka_oid_exists:!!(Mt!=null&&Mt.oid),flow:Tt}}),tt(LOADING_STATE.REJECTED),it(Xt||"Something went wrong. Please try again.");return}ir=Mt.oid,Ct({name:"abha_create_process_eka_success",data:{method:_e==null?void 0:_e.toLowerCase(),is_eka_app_login:xt?"true":"false",platform:wt,oid:Mt==null?void 0:Mt.oid,flow:Tt}})}if(!ir){Ct({name:"abha_create_process_oid_switch_failed",data:{method:(_e==null?void 0:_e.toLowerCase())||"unknown_method",is_eka_app_login:xt?"true":"false",platform:wt,oid:ir||"missing_oid",oid_exists:!!ir,flow:Tt}});return}Ct({name:"abha_create_process_switch_started",data:{method:_e==null?void 0:_e.toLowerCase(),is_eka_app_login:xt?"true":"false",platform:wt,oid:ir,flow:Tt}});const tr=await yt({oid:ir,refresh:Nt});if(tr.error){Ct({name:"abha_create_process_switch_failed",data:{method:(_e==null?void 0:_e.toLowerCase())||"unknown_method",is_eka_app_login:xt?"true":"false",platform:wt,oid:ir||"missing_oid",oid_exists:!!ir,error_message:((Gt=tr.error)==null?void 0:Gt.message)||"unknown_error",error_message_exists:!!((zt=tr.error)!=null&&zt.message),flow:Tt}}),tt(LOADING_STATE.REJECTED),it(((Qt=tr.error)==null?void 0:Qt.message)||"Something went wrong, please try again");return}Ct({name:"abha_create_process_switch_success",data:{method:_e==null?void 0:_e.toLowerCase(),is_eka_app_login:xt?"true":"false",platform:wt,oid:ir,flow:Tt}}),tt(LOADING_STATE.RESOLVED);return}b(`${a}@abdm`);const{exists:gt,error:St,action:ct}=await postAbdmRegisterPhrCheck({abha_address:a});if(St){tt(LOADING_STATE.REJECTED),it(St||"Something went wrong. Please try again.");return}if(gt){tt(LOADING_STATE.REJECTED),it("This abha address is already taken.");return}if(_e===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER){if(!_)return;const{error:Ut,eka:Jt,action:ur}=await postAbdmRegisterAbhaNumberCreatePhr({abha_address:a,txn_id:_});if(ur){at(ur);return}if(Ut||!Jt){tt(LOADING_STATE.REJECTED),it(Ut||"Something went wrong. Please try again.");return}if(At&&At.auth&&xt){tt(LOADING_STATE.RESOLVED),onAbhaSuccess({response:""}),unMount();return}(!Jt.min_token||!rt)&&(tt(LOADING_STATE.REJECTED),it(Ut||"Something went wrong. Please try again."));const ir=await lt({code:Jt.min_token,idp_id:"eka_min_token",...Jt.oid?{oid:Jt.oid}:null});if(!ir.data){tt(LOADING_STATE.REJECTED),it(((Kt=ir.error)==null?void 0:Kt.message)||"Something went wrong, please try again");return}tt(LOADING_STATE.RESOLVED);return}},Et=()=>{$();const gt=wt,St=useAuthAbhaStore.getState().isEkaAppLogin;ft(),useAuthAbhaStore.setState({isEkaAppLogin:St}),useAuthAbhaStore.setState({clientId:gt})};return jsxRuntimeExports.jsxs("div",{className:"pds2-w-full pds2-h-full pds2-flex pds2-flex-col pds2-bg-surface-subtle",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:()=>ut(!0),children:jsxRuntimeExports.jsx(n$3,{})}),className:"pds2-border-b pds2-border-surface-muted pds2-bg-surface-base pds2-flex-shrink-0"}),Tt==null||Tt===ABHA_INIT_FLOW.ABHA_REGISTRATION?jsxRuntimeExports.jsx(AbhaStepper,{}):jsxRuntimeExports.jsx("div",{className:"pds2-pt-40 pds2-bg-surface-subtle"}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-flex-1 pds2-overflow-y-auto pds2-bg-surface-subtle",children:jsxRuntimeExports.jsx(AbhaAddressCard,{address:a,setAddress:o,suggestions:ht})}),st&&jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-text-semantic-error pds2-text-center",children:st}),jsxRuntimeExports.jsx("div",{className:"pds2-sticky pds2-border pds2-border-surface-muted pds2-bottom-0 pds2-left-0 pds2-right-0 pds2-bg-surface-base pds2-shadow-lg pds2-p-16",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Create",state:a.length<8&&a.length>18||et===LOADING_STATE.LOADING?"disabled":"enabled",onClick:jt,isLoading:et===LOADING_STATE.LOADING,className:"pds2-w-full"})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:Et}),jsxRuntimeExports.jsx(ExitPopup,{open:vt,setOpen:ut})]})},Pds2InputField=({PrefixComponent:a,placeholder:o,value:_,onChange:b,borderStyle:$="",borderRadius:_e="pds2-rounded-16",padding:et="pds2-px-24 pds2-py-16",textColor:tt="pds2-text-content-primary",textStyle:rt="",onKeyDown:st=()=>{},type:it="text",label:lt,isMandatory:at,maxDate:ft,error:ht,autoCapitalize:pt="off",autoCorrect:vt="off",disabled:ut,inputMode:ot,autoFocus:nt,pattern:dt,maxLength:yt,autoComplete:_t,name:At})=>jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-space-y-8 pds2-w-full",children:[lt?jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-text-content-muted",children:[lt,at?jsxRuntimeExports.jsx("span",{className:"pds2-text-semantic-error Body3Semibold",children:"*"}):null]}):null,jsxRuntimeExports.jsxs("label",{className:`${et} ${_e} ${$} pds2-border ${ht?"pds2-border-semantic-error pds2-border-2":"pds2-border-surface-muted"} pds2-flex pds2-flex-row pds2-items-center pds2-gap-x-8 pds2-w-full pds2-bg-surface-base pds2-text-content-enabled`,children:[a||null,jsxRuntimeExports.jsx("input",{name:At,className:`${tt} ${rt} pds2-outline-none pds2-w-full pds2-bg-surface-base disabled:pds2-text-content-muted`,placeholder:o||"Enter Value",value:_,onChange:b,type:it,max:it==="date"&&ft?ft:void 0,onKeyDown:st,autoCapitalize:pt,autoCorrect:vt,disabled:ut,inputMode:ot,autoFocus:nt,pattern:dt,maxLength:yt,required:at,autoComplete:_t})]})]});function Pds2SingleInputChip({title:a,isDisabled:o,isSelected:_,onSelect:b}){const $=reactExports.useRef(null);return jsxRuntimeExports.jsx("div",{onClick:o?void 0:b,className:`pds2-flex pds2-items-center pds2-cursor-pointer pds2-py-12 pds2-px-16 pds2-border-1 pds2-rounded-12 pds2-bg-surface-base
56
56
  ${_?"pds2-border-primary-brand":"pds2-border-surface-muted"}
57
57
  focus-within:pds2-ring-2 focus-within:pds2-ring-primary-brand focus-within:pds2-ring-offset-2
58
58
  active:pds2-bg-surface-muted hover:pds2-cursor-pointer
59
59
  pds2-transition-colors pds2-duration-200
60
- `,tabIndex:-1,ref:$,children:jsxRuntimeExports.jsx("p",{className:`${_?"pds2-text-primary-brand Body2Semibold":"pds2-text-content-primary Body2Medium"}`,children:a})})}const useCreateEkaProfileAndSwitch=()=>{const{mutateAsync:a}=usePostAuthSwitchV3(),o=useTrackAbhaEvent(),_=GET_REFRESH_TOKEN();return async($,_e,et,tt,rt={})=>{var yt,_t,At;const{onErrorAction:st,onProfileError:it,onSwitchError:lt,onSuccess:at}=rt,[ft,ht,pt]=$.date_of_birth?$.date_of_birth.split("-"):["","",""],vt={abha_address:_e,day_of_birth:parseInt(pt),first_name:$.firstname,gender:$.gender,last_name:$.lastname||"",month_of_birth:parseInt(ht),pincode:$.pincode,year_of_birth:parseInt(ft)};o({name:"profile_eka_process_started",data:{platform:et,date_of_birth:($==null?void 0:$.date_of_birth)||null,dob_day:pt||null,dob_month:ht||null,dob_year:ft||null,flow:tt}});const{error:ut,eka:ot,action:nt}=await postAbdmProfileEka({...vt});if(nt)return o({name:"profile_eka_process_failed",data:{platform:et,error_message:((yt=nt==null?void 0:nt.cta)==null?void 0:yt.title)||"unknown_error",error_message_exists:!!((_t=nt==null?void 0:nt.cta)!=null&&_t.title),flow:tt}}),st==null||st(nt),!1;if(ut||!ot||!ot.oid)return o({name:"profile_process_failed",data:{platform:et,error_message:ut||"Unknown error",eka_oid:(ot==null?void 0:ot.oid)||"missing",eka_exists:!!ot,date_of_birth:($==null?void 0:$.date_of_birth)||"missing",dob_day:pt||"missing",dob_month:ht||"missing",dob_year:ft||"missing",parsed_date_valid:!!(parseInt(pt)&&parseInt(ht)&&parseInt(ft)),firstname:($==null?void 0:$.firstname)||"missing",gender:($==null?void 0:$.gender)||"missing",pincode:($==null?void 0:$.pincode)||"missing",flow:tt}}),it==null||it(ut||"Something went wrong. Please try again."),!1;o({name:"profile_eka_process_success",data:{platform:et,eka:ot,flow:tt}}),o({name:"profile_switch_process_started",data:{platform:et,error_message:ut,eka:ot,flow:tt}});const dt=await a({oid:ot.oid,refresh:_});return dt.error?(o({name:"profile_switch_process_failed",data:{platform:et,error_message:dt.error||"Something went wrong, please try again",error_message_exists:!!dt.error,flow:tt}}),lt==null||lt(((At=dt.error)==null?void 0:At.message)||"Something went wrong, please try again"),!1):(o({name:"profile_switch_process_success",data:{platform:et,eka:ot,flow:tt}}),at==null||at(),!0)}},useAbhaProfileData=()=>{const a=useAuthAbhaStore(et=>et.initAbhaFlow),o=useAuthAbhaStore(et=>et.ekaProfileInfo),_=useTrackAbhaEvent(),b=queryClient.getQueryData(["abdmProfilePhrResponse"]),[$,_e]=reactExports.useState({firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""});return reactExports.useEffect(()=>{if(b){const{first_name:et,last_name:tt,gender:rt,pincode:st,day_of_birth:it,month_of_birth:lt,year_of_birth:at}=b,ft=it===0?1:it,pt=`${at}-${String(lt===0?1:lt).padStart(2,"0")}-${String(ft).padStart(2,"0")}`;_({name:"profile_data_set_from_phr_cache",data:{source:"phr_cache",date_of_birth:pt,firstname:et??"missing",lastname:tt??"missing",gender:rt??"missing",pincode:st??"missing",dob_day:it??"missing",dob_month:lt??"missing",dob_year:at??"missing",flow:a}}),_e({firstname:et,lastname:tt,gender:rt,pincode:st,date_of_birth:pt});return}if(o){let et="1983",tt="01",rt="01";if(o.date_of_birth){const it=o.date_of_birth.split("-");et=it[0],tt=it[1]==="00"||!it[1]?"01":it[1],rt=it[2]==="00"||!it[2]?"01":it[2]}const st=`${et}-${String(tt).padStart(2,"0")}-${String(rt).padStart(2,"0")}`;_e({firstname:o==null?void 0:o.firstname,lastname:o==null?void 0:o.lastname,gender:o==null?void 0:o.gender,pincode:o==null?void 0:o.pincode,date_of_birth:st,oid:o==null?void 0:o.oid}),_({name:"profile_data_set_from_eka_profile",data:{source:"eka_profile",date_of_birth:(o==null?void 0:o.date_of_birth)??"missing",firstname:(o==null?void 0:o.firstname)??"missing",lastname:(o==null?void 0:o.lastname)??"missing",gender:(o==null?void 0:o.gender)??"missing",pincode:(o==null?void 0:o.pincode)??"missing",oid:(o==null?void 0:o.oid)??"missing",flow:a}})}},[b,o]),[$,_e]},CreateEkaProfileScreen=()=>{const a=useAuthAbhaStore(Et=>Et.screen),o=useAuthAbhaStore(Et=>Et.selectedAbhaAddress),_=useAuthAbhaStore(Et=>Et.setBottomsheetErrorInfo),b=useAuthAbhaStore(Et=>Et.clearAbhaAuthStore),$=useAuthAbhaStore(Et=>Et.goBackLoginScreen),[_e,et]=reactExports.useState(LOADING_STATE.IDLE),[tt,rt]=useAbhaProfileData(),[st,it]=reactExports.useState({firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""}),[lt,at]=reactExports.useState(null);usePostAuthSwitchV3();const ft=useCreateEkaProfileAndSwitch(),[ht,pt]=reactExports.useState(!1),vt=useAuthAbhaStore(Et=>Et.ekaProfileInfo),ut=useAuthAbhaStore(Et=>Et.setEkaProfileInfo),ot=useAuthAbhaStore(Et=>Et.setScreen),nt=a[a.length-1],dt=useAuthAbhaStore(Et=>Et.aadhaarVerificationSkipStateStatus),yt=useAuthAbhaStore(Et=>Et.abhaAuthFlowMethod);reactExports.useState({firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""}),useAuthAbhaStore(Et=>Et.isDocAppRequest);const _t=useAuthAbhaStore(Et=>Et.clientId);useAuthAbhaStore(Et=>Et.isEkaAppLogin),useAuthAbhaStore(Et=>Et.isNewLoginOrCreateFlow);const At=useAuthAbhaStore(Et=>Et.txnId),xt=useAuthAbhaStore(Et=>Et.initAbhaFlow),[wt,bt]=reactExports.useState(null);useAuthAbhaStore(Et=>Et.abhaAuthFlowMethod);const It=useTrackAbhaEvent();reactExports.useEffect(()=>{It({name:"page_view",data:{page_view:"create_profile_screen",flow:xt}})},[_t]),reactExports.useEffect(()=>{var Et;if((Et=window.EkaAbha)!=null&&Et.changeStatusBarColor)return window.EkaAbha.changeStatusBarColor("#F2F4F7"),()=>{var gt,St;(gt=window.EkaAbha)!=null&&gt.changeStatusBarColor&&((St=window==null?void 0:window.EkaAbha)==null||St.changeStatusBarColor("#FFFFFF"))}},[]);const Nt=reactExports.useMemo(()=>!!(tt!=null&&tt.firstname&&!st.firstname&&(tt!=null&&tt.date_of_birth)&&!st.date_of_birth&&(tt!=null&&tt.pincode)&&!st.pincode&&(tt!=null&&tt.gender)&&!st.gender),[tt,st]),Ct=async()=>{var gt,St;const Et={firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""};if(it(Et),(gt=tt==null?void 0:tt.firstname)!=null&&gt.trim()||(Et.firstname="Enter Name"),(St=tt==null?void 0:tt.lastname)!=null&&St.trim()||(Et.lastname="This field is required"),tt!=null&&tt.date_of_birth||(Et.date_of_birth="Enter DOB"),tt!=null&&tt.gender||(Et.gender="Select Gender"),tt!=null&&tt.pincode||(Et.pincode="Enter Valid Pincode"),!!Nt){if(It({name:"create_profile_screen_clicks",data:{type:"create_profile",flow:xt}}),et(LOADING_STATE.LOADING),nt===SCREEN_NAMES.CREATE_EKA_PROFILE){if(It({name:"navigate_to_create_abha_address_screen",data:{type:"next",pincode_entered:(tt==null?void 0:tt.pincode)??"unknown",eka_profile_info_pincode:(vt==null?void 0:vt.pincode)??"unknown",flow_type:yt||"unknown_method",flow:xt}}),yt===ABHA_AUTH_FLOW_METHOD.MOBILE){const ct=await getPincodeDetails({pincode:Number(tt.pincode)});if(ct!=null&&ct.error){bt(ct!=null&&ct.error?"Invalid Pincode":null),et(LOADING_STATE.REJECTED),It({name:"pincode_api_failed",data:{type:"error",error:ct==null?void 0:ct.error,flow:xt}});return}if(It({name:"pincode_api_success",data:{type:"verify",pincode_received:!!ct.pincode,txn_id:At,flow:xt}}),ct!=null&&ct.pincode){at(null),ut(tt),It({name:"eka_profile_info_set",data:{firstname:tt==null?void 0:tt.firstname,lastname:tt==null?void 0:tt.lastname,gender:tt==null?void 0:tt.gender,pincode:tt==null?void 0:tt.pincode,date_of_birth:tt==null?void 0:tt.date_of_birth,flow:xt}}),ot(SCREEN_NAMES.CREATE_ABHA_ADDRESS);return}It({name:"no_action_on_pincode",data:{type:"verify",pincode_entered:!!ct.pincode,txn_id:At,flow:xt}});return}else if(yt===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER){ut(tt),It({name:"eka_profile_info_set",data:{firstname:tt==null?void 0:tt.firstname,lastname:tt==null?void 0:tt.lastname,gender:tt==null?void 0:tt.gender,pincode:tt==null?void 0:tt.pincode,date_of_birth:tt==null?void 0:tt.date_of_birth,flow:xt}}),ot(SCREEN_NAMES.CREATE_ABHA_ADDRESS);return}}if(nt===SCREEN_NAMES.CREATE_PHR_EKA_PROFILE){if(!o){It({name:"abha_create_eka_profile_abha_address_missing",data:{platform:_t,flow:xt}});return}await ft(tt,o,_t,xt,{onErrorAction:ct=>_(ct),onProfileError:ct=>{et(LOADING_STATE.REJECTED),at(ct)},onSwitchError:ct=>{et(LOADING_STATE.REJECTED),at(ct)},onSuccess:()=>et(LOADING_STATE.RESOLVED)});return}}},jt=()=>{$();const Et=useAuthAbhaStore.getState().isEkaAppLogin,gt=_t;b(),useAuthAbhaStore.setState({clientId:gt}),useAuthAbhaStore.setState({isEkaAppLogin:Et})};return jsxRuntimeExports.jsxs("div",{className:"pds2-w-full pds2-flex pds2-flex-col pds2-bg-surface-subtle pds2-h-full",children:[jsxRuntimeExports.jsx(Pds2Header,{title:"Create 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:()=>pt(!0),children:jsxRuntimeExports.jsx(n$3,{className:""})}),className:"pds2-bg-surface-base"}),xt==null||xt===ABHA_INIT_FLOW.ABHA_REGISTRATION?jsxRuntimeExports.jsx(AbhaStepper,{}):jsxRuntimeExports.jsx("div",{className:"pds2-pt-40 pds2-bg-surface-subtle"}),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:tt,setProfileData:rt,error:st,setError:it,pincodeApiError:wt})]}),lt&&jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-text-semantic-error pds2-text-center",children:lt}),jsxRuntimeExports.jsxs("div",{className:"pds2-sticky pds2-bottom-0 pds2-bg-surface-base pds2-w-full",children:[o&&dt===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-surface-muted",children:[jsxRuntimeExports.jsxs("div",{className:"",children:[jsxRuntimeExports.jsx("span",{className:"pds2-text-content-secondary Body2Regular",children:"Creating for: "}),jsxRuntimeExports.jsx("span",{className:"pds2-text-content-primary Body2Semibold",children:o})]}),jsxRuntimeExports.jsx("button",{onClick:$,className:"Body2Semibold pds2-text-primary-brand pds2-rounded-full ripple pds2-px-8 pds2-py-2",children:"Change"})]}):null,jsxRuntimeExports.jsx("div",{className:"pds2-sticky pds2-border pds2-border-surface-muted pds2-bottom-0 pds2-left-0 pds2-right-0 pds2-bg-surface-base pds2-shadow-lg pds2-p-16",children:jsxRuntimeExports.jsx(Pds2Button,{className:"pds2-w-full",title:"Create Profile",state:_e===LOADING_STATE.LOADING?"disabled":"enabled",onClick:Ct,isLoading:_e===LOADING_STATE.LOADING})})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:jt}),jsxRuntimeExports.jsx(ExitPopup,{open:ht,setOpen:pt})]})},genders=[{id:"M",name:"Male"},{id:"F",name:"Female"},{id:"O",name:"Other"}],UserDetailsForm=({profileData:a,setProfileData:o,error:_,setError:b,pincodeApiError:$})=>{const _e=({event:it,name:lt})=>{const at=it.target.value;let ft="";switch(lt){case"firstname":at.trim()?ft="":ft="This field is required";break;case"lastname":!at||at.length<0?ft="This field is required":ft="";break;case"pincode":!at||isNaN(Number(at))||at.length!=6?ft="Pincode must consist of exactly 6 digits":ft="";break;case"date_of_birth":!at||at>new Date().toISOString().split("T")[0]?ft="Date of Birth is invalid":ft="";break}b({..._,[lt]:ft}),o({...a,[lt]:at})},et=it=>{o({...a,gender:it}),b({..._,gender:""})},tt=(it,lt)=>lt!=null&&lt.pincode||!((it.firstname??"").trim()!==""&&(it.gender??"").trim()!==""&&(it.date_of_birth??"").trim()!=="")?!1:!it.pincode||(it.pincode+"").length!==6,rt=useAuthAbhaStore(it=>it.ekaProfileInfo),st=useAuthAbhaStore(it=>it.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-content-muted",children:["Your name",jsxRuntimeExports.jsx("span",{className:"pds2-text-semantic-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-content-primary",padding:"pds2-px-16 pds2-py-12",borderRadius:"pds2-rounded-12",borderStyle:"focus-within:pds2-ring-2 focus-within:pds2-ring-primary-brand focus-within:pds2-ring-offset-2",placeholder:"Firstname",value:a.firstname,onChange:it=>_e({event:it,name:"firstname"}),autoCapitalize:"on",disabled:!!(rt!=null&&rt.firstname)&&st===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,error:_.firstname}),_.firstname&&jsxRuntimeExports.jsx("div",{className:"Body3Medium pds2-text-semantic-error pds2-mt-4",children:_.firstname})]}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Pds2InputField,{textColor:"pds2-text-content-primary",padding:"pds2-px-16 pds2-py-12",borderRadius:"pds2-rounded-12",borderStyle:"focus-within:pds2-ring-2 focus-within:pds2-ring-primary-brand focus-within:pds2-ring-offset-2",placeholder:"Lastname",value:a.lastname,onChange:it=>_e({event:it,name:"lastname"}),autoCapitalize:"on",disabled:!!(rt!=null&&rt.lastname)&&st===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-content-muted",children:["Gender",jsxRuntimeExports.jsx("span",{className:"pds2-text-semantic-error Body3Semibold",children:"*"})]}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-gap-16",children:genders.map((it,lt)=>jsxRuntimeExports.jsx("div",{className:`${_.gender?"pds2-border-2 pds2-rounded-12 pds2-border-semantic-error placeholder:pds2-text-semantic-error":"pds2-border-surface-subtle focus-within:pds2-ring-2 focus-within:pds2-ring-primary-brand focus-within:pds2-ring-offset-2 placeholder:pds2-text-content-muted"}`,children:jsxRuntimeExports.jsx(Pds2SingleInputChip,{isSelected:it.id===a.gender,title:it.name,onSelect:()=>et(it.id)})},lt))}),_.gender&&jsxRuntimeExports.jsx("div",{className:"Body3Medium pds2-text-semantic-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-content-primary",padding:"pds2-px-16 pds2-py-12",borderRadius:"pds2-rounded-12",borderStyle:"focus-within:pds2-ring-2 focus-within:pds2-ring-primary-brand focus-within:pds2-ring-offset-2",value:a.date_of_birth,disabled:!!(rt!=null&&rt.date_of_birth)&&st===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,onChange:it=>_e({event:it,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-semantic-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-content-primary",padding:"pds2-px-16 pds2-py-12",borderRadius:"pds2-rounded-12",borderStyle:tt(a,rt)||$?"pds2-border-1 pds2-border-semantic-error":"",value:a.pincode,placeholder:"Enter Pincode",disabled:!!(rt!=null&&rt.pincode)&&st===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,onChange:it=>{it.target.value=it.target.value.replace(/\D/g,""),!(it.target.value.length>6)&&_e({event:it,name:"pincode"})},type:"text",error:tt(a,rt)?_.pincode:"",textStyle:tt(a,rt)||$?"placeholder:pds2-text-semantic-error":"placeholder:pds2-text-content-muted"}),$||_.pincode&&jsxRuntimeExports.jsx("div",{className:"Body3Medium pds2-text-semantic-error pds2-mt-4",children:_.pincode})]})]})},useGetProfilesPhrUser=()=>useQuery({queryKey:["profilesPhrUserResponse"],queryFn:async()=>{const a=await getProfilePhrUser();var o;return Array.isArray(a)?o=a==null?void 0:a.filter(b=>!b["health-ids"]||b["health-ids"].length===0):o=[],{profiles:o}}}),GetAllProfilesScreen=()=>{const a=useAuthAbhaStore(nt=>nt.setScreen);useAuthAbhaStore(nt=>nt.screen);const o=useAuthAbhaStore(nt=>nt.goBackLoginScreen),_=useAuthAbhaStore(nt=>nt.clearAbhaAuthStore),b=useAuthAbhaStore(nt=>nt.setBottomsheetErrorInfo),[$,_e]=reactExports.useState(!1);reactExports.useState("");const et=useAuthAbhaStore(nt=>nt.clientId),tt=useAuthAbhaStore(nt=>nt.aadhaarVerificationSkipStateStatus),rt=useAuthAbhaStore(nt=>nt.isEkaAppLogin);useAuthAbhaStore(nt=>nt.isNewLoginOrCreateFlow),useAuthAbhaStore(nt=>nt.txnId),useAuthAbhaStore(nt=>nt.abhaAuthFlowMethod);const st=useAuthAbhaStore(nt=>nt.initAbhaFlow),it=useTrackAbhaEvent(),lt=useCreateEkaProfileAndSwitch(),at=useAuthAbhaStore(nt=>nt.selectedAbhaAddress),[ft]=useAbhaProfileData();reactExports.useEffect(()=>{if(et==="doctor"){it({name:"page_view",data:{platform:et,page_view:"get-all-profiles-screen",flow:st}}),it({name:"redirect_to_create_eka_profile_screen",data:{type:"next",flow:st}}),a(SCREEN_NAMES.CREATE_EKA_PROFILE);return}},[et]);let ht=!1;rt?ht=!1:rt||(et==="doctor"?ht=!1:ht=!0);const{data:pt,error:vt,isLoading:ut}=ht?useGetProfilesPhrUser():{data:null,error:null,isLoading:!1};reactExports.useEffect(()=>{if(et==="doctor")return;(async()=>{if(!ut&&pt)if(_e(!0),await new Promise(dt=>setTimeout(dt,2e3)),_e(!1),!pt.profiles||pt.profiles.length<1)if(tt===ABHA_V3_SKIP_STATES.ABHA_END)if(it({name:"redirect_to_create_phr_eka_profile_screen",data:{type:"next",skip_state:tt,flow:st}}),at){await lt(ft,at,et,st,{onErrorAction:dt=>b(dt),onProfileError:dt=>b({title:"Something went wrong",description:dt,img:"",cta:{title:"Retry",pid:"",params:null}}),onSwitchError:dt=>b({title:"Something went wrong",description:dt,img:"",cta:{title:"Retry",pid:"",params:null}})});return}else a(SCREEN_NAMES.CREATE_PHR_EKA_PROFILE);else it({name:"redirect_to_create_eka_profile_screen",data:{type:"next",skip_state:tt,flow:st}}),a(SCREEN_NAMES.CREATE_EKA_PROFILE);else it({name:"redirect_to_select_eka_profile_screen",data:{type:"next",skip_state:tt,flow:st}}),a(SCREEN_NAMES.SELECT_EKA_PROFILE)})()},[ut,pt]);const ot=()=>{o();const nt=useAuthAbhaStore.getState().isEkaAppLogin,dt=et;_(),useAuthAbhaStore.setState({clientId:dt}),useAuthAbhaStore.setState({isEkaAppLogin:nt})};return $?jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:!0,loadingText:"In progress...",successText:""}):jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:ot})},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-surface-muted"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-content-muted Body2Regular pds2-text-center pds2-min-w-max",children:a}),jsxRuntimeExports.jsx("div",{className:"pds2-w-full pds2-h-1 pds2-bg-surface-muted"})]}),usePostAbdmProfileLoginPhr=()=>{const a=useAuthAbhaStore(o=>o.setSelectedAbhaAddress);return useMutation({mutationFn:({txn_id:o,phr_address:_})=>postAbdmProfileLoginPhr({txn_id:o,phr_address:_}),onSuccess(o){o.profile&&(queryClient.setQueryData(["abdmProfilePhrResponse"],o.profile),a(o.profile.abha_address))}})},SelectAbhaFromListScreen=()=>{const[a,o]=reactExports.useState(null),_=useAuthAbhaStore(kt=>kt.successRedirect),b=useAuthAbhaStore(kt=>kt.setScreen),$=useAuthAbhaStore(kt=>kt.goBackLoginScreen),_e=useAuthAbhaStore(kt=>kt.txnId),et=useAuthAbhaStore(kt=>kt.authTxnId),tt=useAuthAbhaStore(kt=>kt.abhaAddressList),rt=useAuthAbhaStore(kt=>kt.setBottomsheetErrorInfo),st=useAuthAbhaStore(kt=>kt.clearAbhaAuthStore),it=useAuthAbhaStore(kt=>kt.setSelectedAbhaAddress),lt=useAuthAbhaStore(kt=>kt.abhaAuthFlowMethod),[at,ft]=reactExports.useState(""),[ht,pt]=reactExports.useState(!1),vt=useAuthAbhaStore(kt=>kt.setEkaProfileInfo),ut=useAuthAbhaStore(kt=>kt.setAadhaarVerificationSkipStateStatus),ot=useAuthAbhaStore(kt=>kt.identifierValue),[nt,dt]=reactExports.useState(LOADING_STATE.IDLE),yt=["M","F","O","U"],{mutateAsync:_t}=usePostAuthVerifyV3(),{mutateAsync:At}=usePostAbdmProfileLoginPhr(),xt=useAuthAbhaStore(kt=>kt.clientId),wt=useAuthAbhaStore(kt=>kt.isEkaAppLogin),bt=useAuthAbhaStore(kt=>kt.setRegistrationType),It=useAuthAbhaStore(kt=>kt.abhaAuthFlowMethod),Nt=useAuthAbhaStore(kt=>kt.identityValue),Ct=useAuthAbhaStore(kt=>kt.setMobileInitResponse),[jt,Et]=reactExports.useState({aadhaar:LOADING_STATE.IDLE,mobile:LOADING_STATE.IDLE}),gt=useAuthAbhaStore(kt=>kt.setSelectedAbhaFlow),St=useAuthAbhaStore(kt=>kt.selectedAadhaarAuth),ct=useAuthAbhaStore(kt=>kt.initAbhaFlow),mt=useTrackAbhaEvent(),Rt=async()=>{mt({name:"abha_login_select_abha_init_started",data:{flow:ct,method:It,platform:xt}});const kt=(Ht,Pt)=>{Et(Lt=>({...Lt,[Ht]:Pt}))};if(bt(REGISTRATION_TYPE.CREATE),It===ABHA_AUTH_FLOW_METHOD.MOBILE){const{txn_id:Ht,hint:Pt,error:Lt,action:Bt}=await postRegisterMobileInit({mobile_number:Nt});if(Ht&&Pt){mt({name:"abha_login_select_abha_mobile_init_success",data:{flow:ct,method:It,platform:xt,txn_id:Ht}}),Ct({authTxnId:et,txnId:Ht,mobileOtpSentToHint:Pt}),gt("mobile"),kt("mobile",LOADING_STATE.RESOLVED),bt(REGISTRATION_TYPE.CREATE),b(SCREEN_NAMES.ABHA_PHONE_NUMBER_VERIFICATION);return}mt({name:"abha_login_select_abha_init_failed",data:{flow:ct,method:It,platform:xt,reason:Lt||"unknown",reason_exists:!!Lt}}),kt("mobile",LOADING_STATE.REJECTED),Bt?rt(Bt):ft(Lt||"Something went wrong")}else if(It===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER){mt({name:"abha_fetching_profiles",data:{flow:ct,method:It,platform:xt}}),b(SCREEN_NAMES.GET_ALL_PROFILES);return}},Tt=async()=>{var Vt,Gt,zt,Qt,Kt,Ut,Jt,ur,ir,tr;if(lt===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&a&&St===AADHAAR_AUTH_STATES.FACE_AUTH){if(!_e){mt({name:"abha_login_otp_verify_txnId_not_found",data:{flow:ct,type:"auto_login",platform:xt,txn_id:_e||"missing_txn_id",txn_id_exists:!!_e,method:(lt==null?void 0:lt.toLowerCase())||"unknown_method"}});return}mt({name:"abha_face_auth_auto_login",data:{flow:ct,type:"verify",platform:xt,txn_id:_e}}),dt(LOADING_STATE.LOADING);const{abha_profiles:Zt=[],skip_state:Xt,profile:Mt,error:Ft,action:ar,eka:qt}=await postRegisterAadhaarAutoLogin({txn_id:_e,abha_address:a.abha_address});if(ar){mt({name:"abha_face_auth_auto_login_error_action",data:{flow:ct,type:"verify",platform:xt,error_action:ar||"no_error_action",error_message:Ft||"no_error_message",error_action_exists:!!ar,error_message_exists:!!Ft}}),rt(ar);return}if(Ft){mt({name:"abha_face_auth_auto_login_error",data:{flow:ct,type:"verify",platform:xt,error_message:Ft||"unknown_error",error_message_exists:!!Ft}}),dt(LOADING_STATE.REJECTED),ft(Ft);return}if(!Xt){ft("Skip State is missing"),mt({name:"abha_face_auth_auto_login_skip_state_missing",data:{flow:ct,platform:xt,skipState:Xt||"missing_skip_state",skipState_exists:!!Xt}});return}ut(Xt),Mt&&it(Mt.abha_address),Mt&&vt({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,name:Mt.first_name+" "+Mt.last_name,mobile:Mt.mobile,oid:qt==null?void 0:qt.oid,patient_uuid:qt==null?void 0:qt.uuid,abha_address:Mt==null?void 0:Mt.abha_address,abha_number:Mt==null?void 0:Mt.abha_number,kyc_verified:Mt==null?void 0:Mt.kyc_verified});const sr=yt.includes(Mt==null?void 0:Mt.gender)?Mt==null?void 0:Mt.gender:void 0,cr={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:sr,mobile:Mt==null?void 0:Mt.mobile,at:"",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)||""};if(Xt===ABHA_V3_SKIP_STATES.ABHA_END){if(wt){if(mt({name:"abha_face_auth_auto_login_eka_app",data:{flow:ct,type:"verify",platform:xt,txn_id:_e,skip_state:Xt}}),dt(LOADING_STATE.RESOLVED),!qt){mt({name:"abha_face_auth_auto_login_eka_app_error",data:{flow:ct,type:"null_oid",platform:xt,txn_id:_e||"missing_txn_id",txn_id_exists:!!_e,eka:qt||"missing_eka",eka_exists:!!qt,skip_state:Xt||"missing_skip_state",skip_state_exists:!!Xt}}),dt(LOADING_STATE.REJECTED),ft("Something went wrong, please try again");return}const pr=getMockAuthVerifyResponse(cr);if(mt({name:"abha_face_auth_auto_login_success",data:{flow:ct,type:"verify",platform:xt,txn_id:_e,skip_state:Xt,method:lt}}),ct===ABHA_INIT_FLOW.ABHA_REGISTRATION&&_==="abha-card"){b(SCREEN_NAMES.ABHA_HEALTHID_CARD_SCREEN);return}if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Vt=window.EkaAbha)==null||Vt.onAbhaSuccess(JSON.stringify({response:pr}));return}onAbhaSuccess({response:pr}),unMount();return}if(!qt||!qt.min_token||!et){mt({name:"abha_face_auth_auto_login_eka_error",data:{flow:ct,type:"verify",platform:xt,eka:qt||"missing_eka",eka_exists:!!qt,auth_txnId:et||"missing_auth_txnId",auth_txnId_exists:!!et,skip_state:Xt||"missing_skip_state",skip_state_exists:!!Xt}}),dt(LOADING_STATE.REJECTED),ft("Something went wrong, please try again");return}const xr=await _t({code:qt.min_token,idp_id:"eka_min_token",...qt.oid?{oid:qt.oid}:null});if(!xr.data){mt({name:"abha_face_auth_auto_login_auth_verify_error",data:{flow:ct,type:"verify",platform:xt,skip_state:Xt||"missing_skip_state",skip_state_exists:!!Xt,auth_verify_data_exists:!1}}),dt(LOADING_STATE.REJECTED),ft(((Gt=xr.error)==null?void 0:Gt.message)||"Something went wrong, please try again");return}mt({name:"abha_face_auth_auto_login_abha_end_success",data:{flow:ct,type:"verify",platform:xt,txn_id:_e,skip_state:Xt}}),dt(LOADING_STATE.RESOLVED);return}}if(lt===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&a&&St===AADHAAR_AUTH_STATES.OTP){if(dt(LOADING_STATE.LOADING),wt||(setIndividualEnv({extraHeaders:{auth:""}}),await postAuthLogoutV2()||mt({name:"logout_api_failed_before_init_on_continue_click",data:{flow:ct,method:It,platform:xt,reason:"logout_api_response_false"}})),!_e){mt({name:"abha_login_otp_verify_txnId_not_found",data:{flow:ct,type:"auto_login",platform:xt,txn_id:_e||"missing_txn_id",txn_id_exists:!!_e,method:(lt==null?void 0:lt.toLowerCase())||"unknown_method"}});return}mt({name:"abha_adhaar_otp_auto_login",data:{flow:ct,type:"verify",platform:xt,txn_id:_e}}),dt(LOADING_STATE.LOADING);const{txn_id:Zt,abha_profiles:Xt=[],skip_state:Mt,profile:Ft,error:ar,action:qt,eka:sr}=await postRegisterAadhaarAutoLogin({txn_id:_e,abha_address:a.abha_address});if(qt){mt({name:"abha_aadhaar_otp_auto_login__error_action",data:{flow:ct,method:It,platform:xt,action:((zt=qt==null?void 0:qt.cta)==null?void 0:zt.title)||"unknown",action_exists:!!((Qt=qt==null?void 0:qt.cta)!=null&&Qt.title)}}),rt(qt);return}if(ar){mt({name:"abha_aadhaar_otp_auto_login_failed",data:{flow:ct,method:It,platform:xt,reason:ar||"unknown",reason_exists:!!ar}}),dt(LOADING_STATE.REJECTED),ft(ar||"Something went wrong. Please try again.");return}if(!Zt){ft("Something went wrong. Please try again.");return}if(!Mt){ft("Skip State is missing"),mt({name:"abha_aadhaar_otp_auto_login_skip_state_missing",data:{flow:ct,platform:xt,skipState:Mt||"missing_skip_state",skipState_exists:!!Mt}});return}ut(Mt),Ft&&it(Ft.abha_address),Ft&&vt({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:sr==null?void 0:sr.oid,patient_uuid:sr==null?void 0:sr.uuid,abha_address:Ft==null?void 0:Ft.abha_address,abha_number:Ft==null?void 0:Ft.abha_number,kyc_verified:Ft==null?void 0:Ft.kyc_verified});const cr=yt.includes(Ft==null?void 0:Ft.gender)?Ft==null?void 0:Ft.gender:void 0,xr={oid:(sr==null?void 0:sr.oid)||"",fln:(Ft==null?void 0:Ft.first_name)+" "+(Ft==null?void 0:Ft.last_name),dob:`${Ft==null?void 0:Ft.year_of_birth}-${String(Ft==null?void 0:Ft.month_of_birth).padStart(2,"0")}-${String(Ft==null?void 0:Ft.day_of_birth).padStart(2,"0")}`,gen:cr,mobile:Ft==null?void 0:Ft.mobile,at:"",fn:(Ft==null?void 0:Ft.first_name)||"",mn:(Ft==null?void 0:Ft.middle_name)||"",ln:(Ft==null?void 0:Ft.last_name)||"","health-ids":Ft!=null&&Ft.abha_address?[Ft.abha_address]:void 0,abha_number:(Ft==null?void 0:Ft.abha_number)||""};if(Mt===ABHA_V3_SKIP_STATES.ABHA_END){if(wt){if(mt({name:"abha_aadhaar_otp_auto_login_auto_login_eka_app",data:{flow:ct,type:"verify",platform:xt,txn_id:_e,skip_state:Mt}}),dt(LOADING_STATE.RESOLVED),!sr){mt({name:"abha_aadhaar_otp_auto_login_eka_app_error",data:{flow:ct,type:"null_oid",platform:xt,txn_id:_e||"missing_txn_id",txn_id_exists:!!_e,eka:sr||"missing_eka",eka_exists:!!sr,skip_state:Mt||"missing_skip_state",skip_state_exists:!!Mt}}),dt(LOADING_STATE.REJECTED),ft("Something went wrong, please try again");return}const Or=getMockAuthVerifyResponse(xr);if(mt({name:"abha_aadhaar_otp_auto_login_success",data:{flow:ct,type:"verify",platform:xt,txn_id:_e,skip_state:Mt,method:lt}}),ct===ABHA_INIT_FLOW.ABHA_REGISTRATION&&_==="abha-card"){b(SCREEN_NAMES.ABHA_HEALTHID_CARD_SCREEN);return}if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Kt=window.EkaAbha)==null||Kt.onAbhaSuccess(JSON.stringify({response:Or}));return}onAbhaSuccess({response:Or}),unMount();return}if(!sr||!sr.min_token||!et){mt({name:"abha_aadhaar_otp_auto_login_eka_error",data:{flow:ct,type:"verify",platform:xt,eka:sr||"missing_eka",eka_exists:!!sr,auth_txnId:et||"missing_auth_txnId",auth_txnId_exists:!!et,skip_state:Mt||"missing_skip_state",skip_state_exists:!!Mt}}),dt(LOADING_STATE.REJECTED),ft("Something went wrong, please try again");return}const pr=await _t({code:sr.min_token,idp_id:"eka_min_token",...sr.oid?{oid:sr.oid}:null});if(!pr.data){mt({name:"abha_aadhaar_otp_auto_login_auth_verify_error",data:{flow:ct,type:"verify",platform:xt,skip_state:Mt||"missing_skip_state",skip_state_exists:!!Mt,auth_verify_data_exists:!1}}),dt(LOADING_STATE.REJECTED),ft(((Ut=pr.error)==null?void 0:Ut.message)||"Something went wrong, please try again");return}mt({name:"abha_aadhaar_otp_auto_login_abha_end_success",data:{flow:ct,type:"verify",platform:xt,txn_id:_e,skip_state:Mt}}),dt(LOADING_STATE.RESOLVED);return}}if(!a)return;if(it(a.abha_address),console.log(nt,"from abha"),!_e){mt({name:"abha_login_select_abha_txnId_not_found",data:{flow:ct,platform:xt,reason:"txnId missing",reason_exists:!0}});return}dt(LOADING_STATE.LOADING),mt({name:"abha_login_select_abha_verify_start",data:{flow:ct,platform:xt,txn_id:_e}});const{error:kt,eka:Ht,profile:Pt,action:Lt,skip_state:Bt}=await At({txn_id:_e,phr_address:a.abha_address});if(Lt){mt({name:"abha_login_select_abha_error_action",data:{flow:ct,platform:xt,txn_id:_e,action:((Jt=Lt==null?void 0:Lt.cta)==null?void 0:Jt.title)||"unknown",action_exists:!!((ur=Lt==null?void 0:Lt.cta)!=null&&ur.title)}}),rt(Lt);return}if(kt||!Ht){mt({name:"abha_login_select_abha_abdm_error",data:{flow:ct,platform:xt,txn_id:_e,error_message:kt||"eka object missing",error_exists:!!kt}}),dt(LOADING_STATE.REJECTED),ft(kt);return}if(!Bt){ft("skip State is missing");return}if(mt({name:"abha_login_select_abha_verify_success",data:{flow:ct,platform:xt,txn_id:_e,skip_state:Bt}}),ut(Bt),Pt&&(mt({name:"abha_login_select_abha_profile_received",data:{flow:ct,platform:xt}}),vt({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:Ht==null?void 0:Ht.oid,patient_uuid:Ht==null?void 0:Ht.uuid,middlename:Pt.middle_name,abha_address:Pt.abha_address,abha_number:Pt.abha_number,kyc_verified:Pt==null?void 0:Pt.kyc_verified}),it(Pt.abha_address)),wt){if(!Ht){mt({name:"abha_login_select_eka_object_null",data:{flow:ct,platform:xt,oid:Ht??"null_or_undefined"}}),dt(LOADING_STATE.REJECTED);return}const Zt=yt.includes(Pt==null?void 0:Pt.gender)?Pt==null?void 0:Pt.gender:void 0,Xt={oid:(Ht==null?void 0:Ht.oid)||"",fln:(Pt==null?void 0:Pt.first_name)+" "+(Pt==null?void 0:Pt.last_name),dob:`${Pt==null?void 0:Pt.year_of_birth}-${String(Pt==null?void 0:Pt.month_of_birth).padStart(2,"0")}-${String(Pt==null?void 0:Pt.day_of_birth).padStart(2,"0")}`,gen:Zt,mobile:Pt==null?void 0:Pt.mobile,at:"",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)||""},Mt=getMockAuthVerifyResponse(Xt);if(dt(LOADING_STATE.RESOLVED),mt({name:"abha_login_select_abha_inside_app_success",data:{flow:ct,platform:xt,oid:Ht.oid}}),ct===ABHA_INIT_FLOW.ABHA_REGISTRATION&&_==="abha-card"){b(SCREEN_NAMES.ABHA_HEALTHID_CARD_SCREEN);return}if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(ir=window.EkaAbha)==null||ir.onAbhaSuccess(JSON.stringify({response:Mt}));return}onAbhaSuccess({response:Mt}),unMount();return}if(!Ht.min_token||!et){mt({name:"abha_login_select_abha_min_token_missing",data:{flow:ct,platform:xt,oid:(Ht==null?void 0:Ht.oid)??"missing_oid",min_token:(Ht==null?void 0:Ht.min_token)??"missing_min_token",auth_txnId:et??"missing_authTxnId"}}),dt(LOADING_STATE.REJECTED),ft(kt||"Something went wrong. Please try again.");return}const $t=await _t({code:Ht.min_token,idp_id:"eka_min_token",...Ht.oid?{oid:Ht.oid}:null});if(!$t.data){mt({name:"abha_login_select_abha_auth_verify_failed",data:{flow:ct,platform:xt,oid:(Ht==null?void 0:Ht.oid)??"missing_oid",min_token:(Ht==null?void 0:Ht.min_token)??"missing_min_token",auth_txnId:et??"missing_authTxnId"}}),dt(LOADING_STATE.REJECTED),ft(((tr=$t.error)==null?void 0:tr.message)||"Something went wrong, please try again");return}dt(LOADING_STATE.RESOLVED),mt({name:"abha_login_select_abha_auth_verify_success",data:{flow:ct,platform:xt,oid:Ht.oid,min_token:Ht==null?void 0:Ht.min_token,auth_txnId:et}})},Dt=()=>{const kt=useAuthAbhaStore.getState().initAbhaAppMobileNumber,Ht=useAuthAbhaStore.getState().isEkaAppLogin,Pt=xt;$(),st(),useAuthAbhaStore.setState({clientId:Pt}),useAuthAbhaStore.setState({initAbhaAppMobileNumber:kt}),useAuthAbhaStore.setState({isEkaAppLogin:Ht})};return reactExports.useEffect(()=>{if(!(tt!=null&&tt.length))return;const kt=tt.find(Ht=>Ht.kyc_verified==="VERIFIED");o(kt??null)},[]),jsxRuntimeExports.jsxs("div",{className:"pds2-w-full pds2-flex pds2-flex-col pds2-h-full pds2-bg-surface-subtle",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:()=>pt(!0),children:jsxRuntimeExports.jsx(n$3,{})}),className:"pds2-border-b pds2-border-surface-muted pds2-bg-surface-base"}),ct==null||ct===ABHA_INIT_FLOW.ABHA_REGISTRATION?jsxRuntimeExports.jsx(AbhaStepper,{}):jsxRuntimeExports.jsx("div",{className:"pds2-pt-40 pds2-bg-surface-subtle"}),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-content-secondary Body1Regular pds2-text-center",children:["We found ",tt==null?void 0:tt.length," ABHA addresses ",jsxRuntimeExports.jsx("br",{})," select one you want to log in with"]}),jsxRuntimeExports.jsx(AbhaList,{list:tt,selectedAbha:a,setSelectedAbha:o,handleContinueClick:Tt}),((tt==null?void 0:tt.length)??0)<600&&(lt===ABHA_AUTH_FLOW_METHOD.MOBILE||lt===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-primary-brand pds2-bg-primary-brand/20 pds2-border pds2-border-surface-muted Body1Semibold",onClick:Rt,bgColor:"pds2-bg-primary-brand/20"})]})]}),lt===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&jsxRuntimeExports.jsxs("div",{className:"pds2-text-center pds2-bg-surface-muted pds2-py-8",children:[jsxRuntimeExports.jsx("span",{className:"pds2-text-content-secondary Body2Regular",children:"Your ABHA No: "}),jsxRuntimeExports.jsx("span",{className:"pds2-text-content-primary Body2Semibold",children:ot==null?void 0:ot.abha_number})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-bg-surface-base pds2-border pds2-shadow-lg pds2-w-full pds2-sticky pds2-bottom-0 pds2-border-surface-muted pds2-p-16 z-10",children:[at&&jsxRuntimeExports.jsx("div",{className:"pds2-text-semantic-error pds2-text-center pds2-mb-4",children:at}),jsxRuntimeExports.jsx(Pds2Button,{title:"Continue",state:a===null||nt===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:nt===LOADING_STATE.LOADING,className:"pds2-w-full",onClick:Tt})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:Dt}),jsxRuntimeExports.jsx(ExitPopup,{open:ht,setOpen:pt})]})},AbhaList=({list:a,selectedAbha:o,setSelectedAbha:_,handleContinueClick:b})=>jsxRuntimeExports.jsx("div",{className:"pds2-bg-surface-base pds2-rounded-16 pds2-border pds2-border-surface-muted pds2-w-full pds2-relative",children:a==null?void 0:a.map(($,_e)=>jsxRuntimeExports.jsxs(React.Fragment,{children:[jsxRuntimeExports.jsxs("label",{className:"pds2-p-16 pds2-flex pds2-space-x-8 pds2-items-center",children:[jsxRuntimeExports.jsx("input",{className:"pds2-self-start pds2-mt-4 pds2-w-14 pds2-h-14 pds2-p-2 pds2-accent-primary-brand",type:"radio",value:$.abha_address,checked:(o==null?void 0:o.abha_address)===$.abha_address,onChange:()=>{_($)},onKeyDown:et=>et.key==="Enter"&&b()}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-flex-1",children:[jsxRuntimeExports.jsxs("div",{className:`${(o==null?void 0:o.abha_address)===$.abha_address?"TitlesSubheadline":"Body2Regular"} pds2-text-content-primary pds2-flex pds2-flex-row pds2-justify-between`,children:[jsxRuntimeExports.jsx("div",{children:$==null?void 0:$.abha_address}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-flex-row pds2-items-center",children:($==null?void 0:$.kyc_verified)&&($.kyc_verified==="VERIFIED"?jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-rounded-8 pds2-h-full pds2-border-2 pds2-px-6 pds2-py-2 pds2-flex pds2-gap-10 pds2-justify-center pds2-items-center pds2-border-surface-muted pds2-text-content-success",children:[jsxRuntimeExports.jsx(t$1,{className:"pds2-w-12 pds2-h-12 pds2-text-content-success pds2-text-[2rem]"}),"KYC"]}):jsxRuntimeExports.jsx("div",{className:"Body3Medium pds2-rounded-8 pds2-h-full pds2-border-2 pds2-px-6 pds2-py-2 pds2-flex pds2-gap-10 pds2-justify-center pds2-items-center pds2-border-surface-muted pds2-text-semantic-error",children:"Non-KYC"}))})]}),jsxRuntimeExports.jsx("div",{className:"pds2-text-content-secondary Body3Regular pds2-flex pds2-flex-row pds2-items-center pds2-gap-x-4",children:($==null?void 0:$.name)&&jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-text-content-secondary",children:$.name})})]})]}),_e!==a.length-1&&jsxRuntimeExports.jsx("div",{className:"pds2-px-16",children:jsxRuntimeExports.jsx("div",{className:"pds2-bg-surface-muted pds2-h-1 pds2-w-full"})})]},$.abha_address))}),SelectEkaProfileScreen=()=>{var Nt;const a=useAuthAbhaStore(Ct=>Ct.setScreen),o=useAuthAbhaStore(Ct=>Ct.setEkaProfileInfo),_=useAuthAbhaStore(Ct=>Ct.registrationType),b=useAuthAbhaStore(Ct=>Ct.goBackLoginScreen),[$,_e]=reactExports.useState(null),et=useAuthAbhaStore(Ct=>Ct.setBottomsheetErrorInfo),tt=useAuthAbhaStore(Ct=>Ct.clearAbhaAuthStore),[rt,st]=reactExports.useState(LOADING_STATE.IDLE),[it,lt]=reactExports.useState(!1),[at,ft]=reactExports.useState(null),ht=useAuthAbhaStore(Ct=>Ct.initAbhaFlow),pt=useAuthAbhaStore(Ct=>Ct.aadhaarVerificationSkipStateStatus),{mutateAsync:vt}=usePostAuthSwitchV3(),ut=queryClient.getQueryData(["profilesPhrUserResponse"]),ot=useAuthAbhaStore(Ct=>Ct.clientId),nt=useAuthAbhaStore(Ct=>Ct.linkToOrgIcon),dt=useTrackAbhaEvent(),yt=useCreateEkaProfileAndSwitch(),_t=useAuthAbhaStore(Ct=>Ct.selectedAbhaAddress),[At]=useAbhaProfileData();reactExports.useEffect(()=>{dt({name:"choose_eka_profile_screen",data:{platform:ot,type:"select",flow:ht}})},[ot]);const xt=async()=>{if(dt({name:"create_family_profile_clicks",data:{platform:ot,type:"create",skip_state:pt,flow:ht}}),pt===ABHA_V3_SKIP_STATES.ABHA_END){if(dt({name:"navigate_to_create_phr_profile_screen",data:{platform:ot,flow:ht}}),_t){await yt(At,_t,ot,ht,{onErrorAction:Ct=>et(Ct),onProfileError:Ct=>ft(Ct),onSwitchError:Ct=>ft(Ct)});return}else a(SCREEN_NAMES.CREATE_PHR_EKA_PROFILE);return}dt({name:"navigate_to_create_eka_profile_screen",data:{platform:ot,flow:ht}}),a(SCREEN_NAMES.CREATE_EKA_PROFILE)},wt=async({profile:Ct})=>{dt({name:"select_profile_clicks",data:{platform:ot,oid:Ct.oid,flow:ht}}),_e(Ct.oid)},bt=async()=>{var St,ct,mt,Rt;if(dt({name:"continue_click_on_choose_eka_profile",data:{platform:ot,selectedProfileOid:$,registrationType:_,skip_state:pt,flow:ht}}),$&&pt===ABHA_V3_SKIP_STATES.ABHA_CREATE){const Tt=ut==null?void 0:ut.profiles.find(Dt=>Dt.oid===$);if(!Tt){dt({name:"continue_click_profile_not_found",data:{platform:ot,oid:$||"unknown_oid",oid_exists:!!$,flow:ht}});return}dt({name:"navigate_to_create_eka_profile_screen_from_abha_create",data:{platform:ot,oid:Tt.oid,flow:ht}}),o({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:(St=Tt==null?void 0:Tt["health-ids"])==null?void 0:St[0],abha_number:Tt.abha_number,kyc_verified:Tt==null?void 0:Tt.kyc_verified}),a(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(!_t||!$){dt({name:"continue_click_missing_profile_or_abha",data:{platform:ot,oid:$||"missing_oid",oid_exists:!!$,flow:ht}});return}dt({name:"linking_abha_to_profile_start",data:{platform:ot,oid:$||"missing_oid",oid_exists:!!$,flow:ht}}),st(LOADING_STATE.LOADING);const{error:Ct,action:jt,eka:Et}=await postAbdmProfileEkaLinkPhr({abha_address:_t,oid:$});if(jt){dt({name:"linking_abha_to_profile_error_action",data:{platform:ot,oid:$||"missing_oid",oid_exists:!!$,flow:ht}}),et(jt);return}if(Ct||!Et||!Et.oid){dt({name:"linking_abha_to_profile_failed",data:{platform:ot,oid:$||"missing_oid",oid_exists:!!$,error:Ct||"No EKA/OID",error_exists:!!Ct,flow:ht}}),st(LOADING_STATE.REJECTED),ft(Ct||"Something went wrong. Please try again.");return}const gt=await vt({oid:Et.oid});if(gt.error){dt({name:"profile_switch_failed_after_link",data:{platform:ot,oid:(Et==null?void 0:Et.oid)||"missing_oid",oid_exists:!!(Et!=null&&Et.oid),error:((ct=gt.error)==null?void 0:ct.message)||"unknown_error",error_exists:!!((mt=gt.error)!=null&&mt.message),flow:ht}}),st(LOADING_STATE.REJECTED),ft(((Rt=gt.error)==null?void 0:Rt.message)||"Something went wrong, please try again");return}dt({name:"linking_abha_to_profile_success",data:{platform:ot,oid:Et.oid,flow:ht}}),st(LOADING_STATE.RESOLVED)},It=()=>{b();const Ct=useAuthAbhaStore.getState().isEkaAppLogin,jt=ot;tt(),useAuthAbhaStore.setState({clientId:jt}),useAuthAbhaStore.setState({isEkaAppLogin:Ct})};return jsxRuntimeExports.jsxs("div",{className:"pds2-w-full pds2-h-full pds2-flex pds2-flex-col pds2-bg-surface-subtle",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:()=>lt(!0),children:jsxRuntimeExports.jsx(n$3,{})}),className:"pds2-border-b pds2-border-surface-muted pds2-bg-surface-base"}),ht==null||ht===ABHA_INIT_FLOW.ABHA_REGISTRATION?jsxRuntimeExports.jsx(AbhaStepper,{}):jsxRuntimeExports.jsx("div",{className:"pds2-pt-40 pds2-bg-surface-subtle"}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex-1 pds2-flex pds2-flex-col pds2-relative pds2-bg-surface-subtle 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:`${nt||"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-content-primary Heading3Semibold",children:"Choose an Eka Profile"}),jsxRuntimeExports.jsx("span",{className:"Body1Regular pds2-text-content-secondary",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-content-secondary Body2Medium pds2-text-center",children:"Select Eka Profile"}),jsxRuntimeExports.jsx("div",{className:"pds2-space-y-8",children:(Nt=ut==null?void 0:ut.profiles)==null?void 0:Nt.map(Ct=>{const jt=$===Ct.oid;return jsxRuntimeExports.jsxs("label",{className:`pds2-flex pds2-items-center pds2-gap-x-8 pds2-cursor-pointer pds2-p-16 pds2-rounded-16 pds2-bg-surface-base pds2-border
60
+ `,tabIndex:-1,ref:$,children:jsxRuntimeExports.jsx("p",{className:`${_?"pds2-text-primary-brand Body2Semibold":"pds2-text-content-primary Body2Medium"}`,children:a})})}const useCreateEkaProfileAndSwitch=()=>{const{mutateAsync:a}=usePostAuthSwitchV3(),o=useTrackAbhaEvent(),_=GET_REFRESH_TOKEN();return async($,_e,et,tt,rt={})=>{var yt,_t,At;const{onErrorAction:st,onProfileError:it,onSwitchError:lt,onSuccess:at}=rt,[ft,ht,pt]=$.date_of_birth?$.date_of_birth.split("-"):["","",""],vt={abha_address:_e,day_of_birth:parseInt(pt),first_name:$.firstname,gender:$.gender,last_name:$.lastname||"",month_of_birth:parseInt(ht),pincode:$.pincode,year_of_birth:parseInt(ft)};o({name:"profile_eka_process_started",data:{platform:et,date_of_birth:($==null?void 0:$.date_of_birth)||null,dob_day:pt||null,dob_month:ht||null,dob_year:ft||null,flow:tt}});const{error:ut,eka:ot,action:nt}=await postAbdmProfileEka({...vt});if(nt)return o({name:"profile_eka_process_failed",data:{platform:et,error_message:((yt=nt==null?void 0:nt.cta)==null?void 0:yt.title)||"unknown_error",error_message_exists:!!((_t=nt==null?void 0:nt.cta)!=null&&_t.title),flow:tt}}),st==null||st(nt),!1;if(ut||!ot||!ot.oid)return o({name:"profile_process_failed",data:{platform:et,error_message:ut||"Unknown error",eka_oid:(ot==null?void 0:ot.oid)||"missing",eka_exists:!!ot,date_of_birth:($==null?void 0:$.date_of_birth)||"missing",dob_day:pt||"missing",dob_month:ht||"missing",dob_year:ft||"missing",parsed_date_valid:!!(parseInt(pt)&&parseInt(ht)&&parseInt(ft)),firstname:($==null?void 0:$.firstname)||"missing",gender:($==null?void 0:$.gender)||"missing",pincode:($==null?void 0:$.pincode)||"missing",flow:tt}}),it==null||it(ut||"Something went wrong. Please try again."),!1;o({name:"profile_eka_process_success",data:{platform:et,eka:ot,flow:tt}}),o({name:"profile_switch_process_started",data:{platform:et,error_message:ut,eka:ot,flow:tt}});const dt=await a({oid:ot.oid,refresh:_});return dt.error?(o({name:"profile_switch_process_failed",data:{platform:et,error_message:dt.error||"Something went wrong, please try again",error_message_exists:!!dt.error,flow:tt}}),lt==null||lt(((At=dt.error)==null?void 0:At.message)||"Something went wrong, please try again"),!1):(o({name:"profile_switch_process_success",data:{platform:et,eka:ot,flow:tt}}),at==null||at(),!0)}},useAbhaProfileData=()=>{const a=useAuthAbhaStore(et=>et.initAbhaFlow),o=useAuthAbhaStore(et=>et.ekaProfileInfo),_=useTrackAbhaEvent(),b=queryClient.getQueryData(["abdmProfilePhrResponse"]),[$,_e]=reactExports.useState({firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""});return reactExports.useEffect(()=>{if(b){const{first_name:et,last_name:tt,gender:rt,pincode:st,day_of_birth:it,month_of_birth:lt,year_of_birth:at}=b,ft=it===0?1:it,pt=`${at}-${String(lt===0?1:lt).padStart(2,"0")}-${String(ft).padStart(2,"0")}`;_({name:"profile_data_set_from_phr_cache",data:{source:"phr_cache",date_of_birth:pt,firstname:et??"missing",lastname:tt??"missing",gender:rt??"missing",pincode:st??"missing",dob_day:it??"missing",dob_month:lt??"missing",dob_year:at??"missing",flow:a}}),_e({firstname:et,lastname:tt,gender:rt,pincode:st,date_of_birth:pt});return}if(o){let et="1983",tt="01",rt="01";if(o.date_of_birth){const it=o.date_of_birth.split("-");et=it[0],tt=it[1]==="00"||!it[1]?"01":it[1],rt=it[2]==="00"||!it[2]?"01":it[2]}const st=`${et}-${String(tt).padStart(2,"0")}-${String(rt).padStart(2,"0")}`;_e({firstname:o==null?void 0:o.firstname,lastname:o==null?void 0:o.lastname,gender:o==null?void 0:o.gender,pincode:o==null?void 0:o.pincode,date_of_birth:st,oid:o==null?void 0:o.oid}),_({name:"profile_data_set_from_eka_profile",data:{source:"eka_profile",date_of_birth:(o==null?void 0:o.date_of_birth)??"missing",firstname:(o==null?void 0:o.firstname)??"missing",lastname:(o==null?void 0:o.lastname)??"missing",gender:(o==null?void 0:o.gender)??"missing",pincode:(o==null?void 0:o.pincode)??"missing",oid:(o==null?void 0:o.oid)??"missing",flow:a}})}},[b,o]),[$,_e]},CreateEkaProfileScreen=()=>{const a=useAuthAbhaStore(Et=>Et.screen),o=useAuthAbhaStore(Et=>Et.selectedAbhaAddress),_=useAuthAbhaStore(Et=>Et.setBottomsheetErrorInfo),b=useAuthAbhaStore(Et=>Et.clearAbhaAuthStore),$=useAuthAbhaStore(Et=>Et.goBackLoginScreen),[_e,et]=reactExports.useState(LOADING_STATE.IDLE),[tt,rt]=useAbhaProfileData(),[st,it]=reactExports.useState({firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""}),[lt,at]=reactExports.useState(null);usePostAuthSwitchV3();const ft=useCreateEkaProfileAndSwitch(),[ht,pt]=reactExports.useState(!1),vt=useAuthAbhaStore(Et=>Et.ekaProfileInfo),ut=useAuthAbhaStore(Et=>Et.setEkaProfileInfo),ot=useAuthAbhaStore(Et=>Et.setScreen),nt=a[a.length-1],dt=useAuthAbhaStore(Et=>Et.aadhaarVerificationSkipStateStatus),yt=useAuthAbhaStore(Et=>Et.abhaAuthFlowMethod);reactExports.useState({firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""}),useAuthAbhaStore(Et=>Et.isDocAppRequest);const _t=useAuthAbhaStore(Et=>Et.clientId);useAuthAbhaStore(Et=>Et.isEkaAppLogin),useAuthAbhaStore(Et=>Et.isNewLoginOrCreateFlow);const At=useAuthAbhaStore(Et=>Et.txnId),xt=useAuthAbhaStore(Et=>Et.initAbhaFlow),[wt,Tt]=reactExports.useState(null);useAuthAbhaStore(Et=>Et.abhaAuthFlowMethod);const It=useTrackAbhaEvent();reactExports.useEffect(()=>{It({name:"page_view",data:{page_view:"create_profile_screen",flow:xt}})},[_t]),reactExports.useEffect(()=>{var Et;if((Et=window.EkaAbha)!=null&&Et.changeStatusBarColor)return window.EkaAbha.changeStatusBarColor("#F2F4F7"),()=>{var gt,St;(gt=window.EkaAbha)!=null&&gt.changeStatusBarColor&&((St=window==null?void 0:window.EkaAbha)==null||St.changeStatusBarColor("#FFFFFF"))}},[]);const Nt=reactExports.useMemo(()=>!!(tt!=null&&tt.firstname&&!st.firstname&&(tt!=null&&tt.date_of_birth)&&!st.date_of_birth&&(tt!=null&&tt.pincode)&&!st.pincode&&(tt!=null&&tt.gender)&&!st.gender),[tt,st]),Ct=async()=>{var gt,St;const Et={firstname:"",lastname:"",date_of_birth:"",pincode:"",gender:""};if(it(Et),(gt=tt==null?void 0:tt.firstname)!=null&&gt.trim()||(Et.firstname="Enter Name"),(St=tt==null?void 0:tt.lastname)!=null&&St.trim()||(Et.lastname="This field is required"),tt!=null&&tt.date_of_birth||(Et.date_of_birth="Enter DOB"),tt!=null&&tt.gender||(Et.gender="Select Gender"),tt!=null&&tt.pincode||(Et.pincode="Enter Valid Pincode"),!!Nt){if(It({name:"create_profile_screen_clicks",data:{type:"create_profile",flow:xt}}),et(LOADING_STATE.LOADING),nt===SCREEN_NAMES.CREATE_EKA_PROFILE){if(It({name:"navigate_to_create_abha_address_screen",data:{type:"next",pincode_entered:(tt==null?void 0:tt.pincode)??"unknown",eka_profile_info_pincode:(vt==null?void 0:vt.pincode)??"unknown",flow_type:yt||"unknown_method",flow:xt}}),yt===ABHA_AUTH_FLOW_METHOD.MOBILE){const ct=await getPincodeDetails({pincode:Number(tt.pincode)});if(ct!=null&&ct.error){Tt(ct!=null&&ct.error?"Invalid Pincode":null),et(LOADING_STATE.REJECTED),It({name:"pincode_api_failed",data:{type:"error",error:ct==null?void 0:ct.error,flow:xt}});return}if(It({name:"pincode_api_success",data:{type:"verify",pincode_received:!!ct.pincode,txn_id:At,flow:xt}}),ct!=null&&ct.pincode){at(null),ut(tt),It({name:"eka_profile_info_set",data:{firstname:tt==null?void 0:tt.firstname,lastname:tt==null?void 0:tt.lastname,gender:tt==null?void 0:tt.gender,pincode:tt==null?void 0:tt.pincode,date_of_birth:tt==null?void 0:tt.date_of_birth,flow:xt}}),ot(SCREEN_NAMES.CREATE_ABHA_ADDRESS);return}It({name:"no_action_on_pincode",data:{type:"verify",pincode_entered:!!ct.pincode,txn_id:At,flow:xt}});return}else if(yt===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER){ut(tt),It({name:"eka_profile_info_set",data:{firstname:tt==null?void 0:tt.firstname,lastname:tt==null?void 0:tt.lastname,gender:tt==null?void 0:tt.gender,pincode:tt==null?void 0:tt.pincode,date_of_birth:tt==null?void 0:tt.date_of_birth,flow:xt}}),ot(SCREEN_NAMES.CREATE_ABHA_ADDRESS);return}}if(nt===SCREEN_NAMES.CREATE_PHR_EKA_PROFILE){if(!o){It({name:"abha_create_eka_profile_abha_address_missing",data:{platform:_t,flow:xt}});return}await ft(tt,o,_t,xt,{onErrorAction:ct=>_(ct),onProfileError:ct=>{et(LOADING_STATE.REJECTED),at(ct)},onSwitchError:ct=>{et(LOADING_STATE.REJECTED),at(ct)},onSuccess:()=>et(LOADING_STATE.RESOLVED)});return}}},jt=()=>{$();const Et=useAuthAbhaStore.getState().isEkaAppLogin,gt=_t;b(),useAuthAbhaStore.setState({clientId:gt}),useAuthAbhaStore.setState({isEkaAppLogin:Et})};return jsxRuntimeExports.jsxs("div",{className:"pds2-w-full pds2-flex pds2-flex-col pds2-bg-surface-subtle pds2-h-full",children:[jsxRuntimeExports.jsx(Pds2Header,{title:"Create 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:()=>pt(!0),children:jsxRuntimeExports.jsx(n$3,{className:""})}),className:"pds2-bg-surface-base"}),xt==null||xt===ABHA_INIT_FLOW.ABHA_REGISTRATION?jsxRuntimeExports.jsx(AbhaStepper,{}):jsxRuntimeExports.jsx("div",{className:"pds2-pt-40 pds2-bg-surface-subtle"}),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:tt,setProfileData:rt,error:st,setError:it,pincodeApiError:wt})]}),lt&&jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-text-semantic-error pds2-text-center",children:lt}),jsxRuntimeExports.jsxs("div",{className:"pds2-sticky pds2-bottom-0 pds2-bg-surface-base pds2-w-full",children:[o&&dt===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-surface-muted",children:[jsxRuntimeExports.jsxs("div",{className:"",children:[jsxRuntimeExports.jsx("span",{className:"pds2-text-content-secondary Body2Regular",children:"Creating for: "}),jsxRuntimeExports.jsx("span",{className:"pds2-text-content-primary Body2Semibold",children:o})]}),jsxRuntimeExports.jsx("button",{onClick:$,className:"Body2Semibold pds2-text-primary-brand pds2-rounded-full ripple pds2-px-8 pds2-py-2",children:"Change"})]}):null,jsxRuntimeExports.jsx("div",{className:"pds2-sticky pds2-border pds2-border-surface-muted pds2-bottom-0 pds2-left-0 pds2-right-0 pds2-bg-surface-base pds2-shadow-lg pds2-p-16",children:jsxRuntimeExports.jsx(Pds2Button,{className:"pds2-w-full",title:"Create Profile",state:_e===LOADING_STATE.LOADING?"disabled":"enabled",onClick:Ct,isLoading:_e===LOADING_STATE.LOADING})})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:jt}),jsxRuntimeExports.jsx(ExitPopup,{open:ht,setOpen:pt})]})},genders=[{id:"M",name:"Male"},{id:"F",name:"Female"},{id:"O",name:"Other"}],UserDetailsForm=({profileData:a,setProfileData:o,error:_,setError:b,pincodeApiError:$})=>{const _e=({event:it,name:lt})=>{const at=it.target.value;let ft="";switch(lt){case"firstname":at.trim()?ft="":ft="This field is required";break;case"lastname":!at||at.length<0?ft="This field is required":ft="";break;case"pincode":!at||isNaN(Number(at))||at.length!=6?ft="Pincode must consist of exactly 6 digits":ft="";break;case"date_of_birth":!at||at>new Date().toISOString().split("T")[0]?ft="Date of Birth is invalid":ft="";break}b({..._,[lt]:ft}),o({...a,[lt]:at})},et=it=>{o({...a,gender:it}),b({..._,gender:""})},tt=(it,lt)=>lt!=null&&lt.pincode||!((it.firstname??"").trim()!==""&&(it.gender??"").trim()!==""&&(it.date_of_birth??"").trim()!=="")?!1:!it.pincode||(it.pincode+"").length!==6,rt=useAuthAbhaStore(it=>it.ekaProfileInfo),st=useAuthAbhaStore(it=>it.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-content-muted",children:["Your name",jsxRuntimeExports.jsx("span",{className:"pds2-text-semantic-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-content-primary",padding:"pds2-px-16 pds2-py-12",borderRadius:"pds2-rounded-12",borderStyle:"focus-within:pds2-ring-2 focus-within:pds2-ring-primary-brand focus-within:pds2-ring-offset-2",placeholder:"Firstname",value:a.firstname,onChange:it=>_e({event:it,name:"firstname"}),autoCapitalize:"on",disabled:!!(rt!=null&&rt.firstname)&&st===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,error:_.firstname}),_.firstname&&jsxRuntimeExports.jsx("div",{className:"Body3Medium pds2-text-semantic-error pds2-mt-4",children:_.firstname})]}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Pds2InputField,{textColor:"pds2-text-content-primary",padding:"pds2-px-16 pds2-py-12",borderRadius:"pds2-rounded-12",borderStyle:"focus-within:pds2-ring-2 focus-within:pds2-ring-primary-brand focus-within:pds2-ring-offset-2",placeholder:"Lastname",value:a.lastname,onChange:it=>_e({event:it,name:"lastname"}),autoCapitalize:"on",disabled:!!(rt!=null&&rt.lastname)&&st===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-content-muted",children:["Gender",jsxRuntimeExports.jsx("span",{className:"pds2-text-semantic-error Body3Semibold",children:"*"})]}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-gap-16",children:genders.map((it,lt)=>jsxRuntimeExports.jsx("div",{className:`${_.gender?"pds2-border-2 pds2-rounded-12 pds2-border-semantic-error placeholder:pds2-text-semantic-error":"pds2-border-surface-subtle focus-within:pds2-ring-2 focus-within:pds2-ring-primary-brand focus-within:pds2-ring-offset-2 placeholder:pds2-text-content-muted"}`,children:jsxRuntimeExports.jsx(Pds2SingleInputChip,{isSelected:it.id===a.gender,title:it.name,onSelect:()=>et(it.id)})},lt))}),_.gender&&jsxRuntimeExports.jsx("div",{className:"Body3Medium pds2-text-semantic-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-content-primary",padding:"pds2-px-16 pds2-py-12",borderRadius:"pds2-rounded-12",borderStyle:"focus-within:pds2-ring-2 focus-within:pds2-ring-primary-brand focus-within:pds2-ring-offset-2",value:a.date_of_birth,disabled:!!(rt!=null&&rt.date_of_birth)&&st===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,onChange:it=>_e({event:it,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-semantic-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-content-primary",padding:"pds2-px-16 pds2-py-12",borderRadius:"pds2-rounded-12",borderStyle:tt(a,rt)||$?"pds2-border-1 pds2-border-semantic-error":"",value:a.pincode,placeholder:"Enter Pincode",disabled:!!(rt!=null&&rt.pincode)&&st===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,onChange:it=>{it.target.value=it.target.value.replace(/\D/g,""),!(it.target.value.length>6)&&_e({event:it,name:"pincode"})},type:"text",error:tt(a,rt)?_.pincode:"",textStyle:tt(a,rt)||$?"placeholder:pds2-text-semantic-error":"placeholder:pds2-text-content-muted"}),$||_.pincode&&jsxRuntimeExports.jsx("div",{className:"Body3Medium pds2-text-semantic-error pds2-mt-4",children:_.pincode})]})]})},useGetProfilesPhrUser=()=>useQuery({queryKey:["profilesPhrUserResponse"],queryFn:async()=>{const a=await getProfilePhrUser();var o;return Array.isArray(a)?o=a==null?void 0:a.filter(b=>!b["health-ids"]||b["health-ids"].length===0):o=[],{profiles:o}}}),GetAllProfilesScreen=()=>{const a=useAuthAbhaStore(nt=>nt.setScreen);useAuthAbhaStore(nt=>nt.screen);const o=useAuthAbhaStore(nt=>nt.goBackLoginScreen),_=useAuthAbhaStore(nt=>nt.clearAbhaAuthStore),b=useAuthAbhaStore(nt=>nt.setBottomsheetErrorInfo),[$,_e]=reactExports.useState(!1);reactExports.useState("");const et=useAuthAbhaStore(nt=>nt.clientId),tt=useAuthAbhaStore(nt=>nt.aadhaarVerificationSkipStateStatus),rt=useAuthAbhaStore(nt=>nt.isEkaAppLogin);useAuthAbhaStore(nt=>nt.isNewLoginOrCreateFlow),useAuthAbhaStore(nt=>nt.txnId),useAuthAbhaStore(nt=>nt.abhaAuthFlowMethod);const st=useAuthAbhaStore(nt=>nt.initAbhaFlow),it=useTrackAbhaEvent(),lt=useCreateEkaProfileAndSwitch(),at=useAuthAbhaStore(nt=>nt.selectedAbhaAddress),[ft]=useAbhaProfileData();reactExports.useEffect(()=>{if(et==="doctor"){it({name:"page_view",data:{platform:et,page_view:"get-all-profiles-screen",flow:st}}),it({name:"redirect_to_create_eka_profile_screen",data:{type:"next",flow:st}}),a(SCREEN_NAMES.CREATE_EKA_PROFILE);return}},[et]);let ht=!1;rt?ht=!1:rt||(et==="doctor"?ht=!1:ht=!0);const{data:pt,error:vt,isLoading:ut}=ht?useGetProfilesPhrUser():{data:null,error:null,isLoading:!1};reactExports.useEffect(()=>{if(et==="doctor")return;(async()=>{if(!ut&&pt)if(_e(!0),await new Promise(dt=>setTimeout(dt,2e3)),_e(!1),!pt.profiles||pt.profiles.length<1)if(tt===ABHA_V3_SKIP_STATES.ABHA_END)if(it({name:"redirect_to_create_phr_eka_profile_screen",data:{type:"next",skip_state:tt,flow:st}}),at){await lt(ft,at,et,st,{onErrorAction:dt=>b(dt),onProfileError:dt=>b({title:"Something went wrong",description:dt,img:"",cta:{title:"Retry",pid:"",params:null}}),onSwitchError:dt=>b({title:"Something went wrong",description:dt,img:"",cta:{title:"Retry",pid:"",params:null}})});return}else a(SCREEN_NAMES.CREATE_PHR_EKA_PROFILE);else it({name:"redirect_to_create_eka_profile_screen",data:{type:"next",skip_state:tt,flow:st}}),a(SCREEN_NAMES.CREATE_EKA_PROFILE);else it({name:"redirect_to_select_eka_profile_screen",data:{type:"next",skip_state:tt,flow:st}}),a(SCREEN_NAMES.SELECT_EKA_PROFILE)})()},[ut,pt]);const ot=()=>{o();const nt=useAuthAbhaStore.getState().isEkaAppLogin,dt=et;_(),useAuthAbhaStore.setState({clientId:dt}),useAuthAbhaStore.setState({isEkaAppLogin:nt})};return $?jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:!0,loadingText:"In progress...",successText:""}):jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:ot})},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-surface-muted"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-content-muted Body2Regular pds2-text-center pds2-min-w-max",children:a}),jsxRuntimeExports.jsx("div",{className:"pds2-w-full pds2-h-1 pds2-bg-surface-muted"})]}),usePostAbdmProfileLoginPhr=()=>{const a=useAuthAbhaStore(o=>o.setSelectedAbhaAddress);return useMutation({mutationFn:({txn_id:o,phr_address:_})=>postAbdmProfileLoginPhr({txn_id:o,phr_address:_}),onSuccess(o){o.profile&&(queryClient.setQueryData(["abdmProfilePhrResponse"],o.profile),a(o.profile.abha_address))}})},SelectAbhaFromListScreen=()=>{const[a,o]=reactExports.useState(null),_=useAuthAbhaStore(bt=>bt.successRedirect),b=useAuthAbhaStore(bt=>bt.setScreen),$=useAuthAbhaStore(bt=>bt.goBackLoginScreen),_e=useAuthAbhaStore(bt=>bt.txnId),et=useAuthAbhaStore(bt=>bt.authTxnId),tt=useAuthAbhaStore(bt=>bt.abhaAddressList),rt=useAuthAbhaStore(bt=>bt.setBottomsheetErrorInfo),st=useAuthAbhaStore(bt=>bt.clearAbhaAuthStore),it=useAuthAbhaStore(bt=>bt.setSelectedAbhaAddress),lt=useAuthAbhaStore(bt=>bt.abhaAuthFlowMethod),[at,ft]=reactExports.useState(""),[ht,pt]=reactExports.useState(!1),vt=useAuthAbhaStore(bt=>bt.setEkaProfileInfo),ut=useAuthAbhaStore(bt=>bt.setAadhaarVerificationSkipStateStatus),ot=useAuthAbhaStore(bt=>bt.identifierValue),[nt,dt]=reactExports.useState(LOADING_STATE.IDLE),yt=["M","F","O","U"],{mutateAsync:_t}=usePostAuthVerifyV3(),{mutateAsync:At}=usePostAbdmProfileLoginPhr(),xt=useAuthAbhaStore(bt=>bt.clientId),wt=useAuthAbhaStore(bt=>bt.isEkaAppLogin),Tt=useAuthAbhaStore(bt=>bt.setRegistrationType),It=useAuthAbhaStore(bt=>bt.abhaAuthFlowMethod),Nt=useAuthAbhaStore(bt=>bt.identityValue),Ct=useAuthAbhaStore(bt=>bt.setMobileInitResponse),[jt,Et]=reactExports.useState({aadhaar:LOADING_STATE.IDLE,mobile:LOADING_STATE.IDLE}),gt=useAuthAbhaStore(bt=>bt.setSelectedAbhaFlow),St=useAuthAbhaStore(bt=>bt.selectedAadhaarAuth),ct=useAuthAbhaStore(bt=>bt.initAbhaFlow),mt=useTrackAbhaEvent(),Rt=async()=>{mt({name:"abha_login_select_abha_init_started",data:{flow:ct,method:It,platform:xt}});const bt=(Ht,Pt)=>{Et(Lt=>({...Lt,[Ht]:Pt}))};if(Tt(REGISTRATION_TYPE.CREATE),It===ABHA_AUTH_FLOW_METHOD.MOBILE){const{txn_id:Ht,hint:Pt,error:Lt,action:Bt}=await postRegisterMobileInit({mobile_number:Nt});if(Ht&&Pt){mt({name:"abha_login_select_abha_mobile_init_success",data:{flow:ct,method:It,platform:xt,txn_id:Ht}}),Ct({authTxnId:et,txnId:Ht,mobileOtpSentToHint:Pt}),gt("mobile"),bt("mobile",LOADING_STATE.RESOLVED),Tt(REGISTRATION_TYPE.CREATE),b(SCREEN_NAMES.ABHA_PHONE_NUMBER_VERIFICATION);return}mt({name:"abha_login_select_abha_init_failed",data:{flow:ct,method:It,platform:xt,reason:Lt||"unknown",reason_exists:!!Lt}}),bt("mobile",LOADING_STATE.REJECTED),Bt?rt(Bt):ft(Lt||"Something went wrong")}else if(It===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER){mt({name:"abha_fetching_profiles",data:{flow:ct,method:It,platform:xt}}),b(SCREEN_NAMES.GET_ALL_PROFILES);return}},kt=async()=>{var Vt,Gt,zt,Qt,Kt,Ut,Jt,ur,ir,tr;if(lt===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&a&&St===AADHAAR_AUTH_STATES.FACE_AUTH){if(!_e){mt({name:"abha_login_otp_verify_txnId_not_found",data:{flow:ct,type:"auto_login",platform:xt,txn_id:_e||"missing_txn_id",txn_id_exists:!!_e,method:(lt==null?void 0:lt.toLowerCase())||"unknown_method"}});return}mt({name:"abha_face_auth_auto_login",data:{flow:ct,type:"verify",platform:xt,txn_id:_e}}),dt(LOADING_STATE.LOADING);const{abha_profiles:Zt=[],skip_state:Xt,profile:Mt,error:Ft,action:ar,eka:qt}=await postRegisterAadhaarAutoLogin({txn_id:_e,abha_address:a.abha_address});if(ar){mt({name:"abha_face_auth_auto_login_error_action",data:{flow:ct,type:"verify",platform:xt,error_action:ar||"no_error_action",error_message:Ft||"no_error_message",error_action_exists:!!ar,error_message_exists:!!Ft}}),rt(ar);return}if(Ft){mt({name:"abha_face_auth_auto_login_error",data:{flow:ct,type:"verify",platform:xt,error_message:Ft||"unknown_error",error_message_exists:!!Ft}}),dt(LOADING_STATE.REJECTED),ft(Ft);return}if(!Xt){ft("Skip State is missing"),mt({name:"abha_face_auth_auto_login_skip_state_missing",data:{flow:ct,platform:xt,skipState:Xt||"missing_skip_state",skipState_exists:!!Xt}});return}ut(Xt),Mt&&it(Mt.abha_address),Mt&&vt({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,name:Mt.first_name+" "+Mt.last_name,mobile:Mt.mobile,oid:qt==null?void 0:qt.oid,patient_uuid:qt==null?void 0:qt.uuid,abha_address:Mt==null?void 0:Mt.abha_address,abha_number:Mt==null?void 0:Mt.abha_number,kyc_verified:Mt==null?void 0:Mt.kyc_verified});const sr=yt.includes(Mt==null?void 0:Mt.gender)?Mt==null?void 0:Mt.gender:void 0,cr={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:sr,mobile:Mt==null?void 0:Mt.mobile,at:"",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)||""};if(Xt===ABHA_V3_SKIP_STATES.ABHA_END){if(wt){if(mt({name:"abha_face_auth_auto_login_eka_app",data:{flow:ct,type:"verify",platform:xt,txn_id:_e,skip_state:Xt}}),dt(LOADING_STATE.RESOLVED),!qt){mt({name:"abha_face_auth_auto_login_eka_app_error",data:{flow:ct,type:"null_oid",platform:xt,txn_id:_e||"missing_txn_id",txn_id_exists:!!_e,eka:qt||"missing_eka",eka_exists:!!qt,skip_state:Xt||"missing_skip_state",skip_state_exists:!!Xt}}),dt(LOADING_STATE.REJECTED),ft("Something went wrong, please try again");return}const pr=getMockAuthVerifyResponse(cr);if(mt({name:"abha_face_auth_auto_login_success",data:{flow:ct,type:"verify",platform:xt,txn_id:_e,skip_state:Xt,method:lt}}),ct===ABHA_INIT_FLOW.ABHA_REGISTRATION&&_==="abha-card"){b(SCREEN_NAMES.ABHA_HEALTHID_CARD_SCREEN);return}if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Vt=window.EkaAbha)==null||Vt.onAbhaSuccess(JSON.stringify({response:pr}));return}onAbhaSuccess({response:pr}),unMount();return}if(!qt||!qt.min_token||!et){mt({name:"abha_face_auth_auto_login_eka_error",data:{flow:ct,type:"verify",platform:xt,eka:qt||"missing_eka",eka_exists:!!qt,auth_txnId:et||"missing_auth_txnId",auth_txnId_exists:!!et,skip_state:Xt||"missing_skip_state",skip_state_exists:!!Xt}}),dt(LOADING_STATE.REJECTED),ft("Something went wrong, please try again");return}const xr=await _t({code:qt.min_token,idp_id:"eka_min_token",...qt.oid?{oid:qt.oid}:null});if(!xr.data){mt({name:"abha_face_auth_auto_login_auth_verify_error",data:{flow:ct,type:"verify",platform:xt,skip_state:Xt||"missing_skip_state",skip_state_exists:!!Xt,auth_verify_data_exists:!1}}),dt(LOADING_STATE.REJECTED),ft(((Gt=xr.error)==null?void 0:Gt.message)||"Something went wrong, please try again");return}mt({name:"abha_face_auth_auto_login_abha_end_success",data:{flow:ct,type:"verify",platform:xt,txn_id:_e,skip_state:Xt}}),dt(LOADING_STATE.RESOLVED);return}}if(lt===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&a&&St===AADHAAR_AUTH_STATES.OTP){if(dt(LOADING_STATE.LOADING),wt||(setIndividualEnv({extraHeaders:{auth:""}}),await postAuthLogoutV2()||mt({name:"logout_api_failed_before_init_on_continue_click",data:{flow:ct,method:It,platform:xt,reason:"logout_api_response_false"}})),!_e){mt({name:"abha_login_otp_verify_txnId_not_found",data:{flow:ct,type:"auto_login",platform:xt,txn_id:_e||"missing_txn_id",txn_id_exists:!!_e,method:(lt==null?void 0:lt.toLowerCase())||"unknown_method"}});return}mt({name:"abha_adhaar_otp_auto_login",data:{flow:ct,type:"verify",platform:xt,txn_id:_e}}),dt(LOADING_STATE.LOADING);const{txn_id:Zt,abha_profiles:Xt=[],skip_state:Mt,profile:Ft,error:ar,action:qt,eka:sr}=await postRegisterAadhaarAutoLogin({txn_id:_e,abha_address:a.abha_address});if(qt){mt({name:"abha_aadhaar_otp_auto_login__error_action",data:{flow:ct,method:It,platform:xt,action:((zt=qt==null?void 0:qt.cta)==null?void 0:zt.title)||"unknown",action_exists:!!((Qt=qt==null?void 0:qt.cta)!=null&&Qt.title)}}),rt(qt);return}if(ar){mt({name:"abha_aadhaar_otp_auto_login_failed",data:{flow:ct,method:It,platform:xt,reason:ar||"unknown",reason_exists:!!ar}}),dt(LOADING_STATE.REJECTED),ft(ar||"Something went wrong. Please try again.");return}if(!Zt){ft("Something went wrong. Please try again.");return}if(!Mt){ft("Skip State is missing"),mt({name:"abha_aadhaar_otp_auto_login_skip_state_missing",data:{flow:ct,platform:xt,skipState:Mt||"missing_skip_state",skipState_exists:!!Mt}});return}ut(Mt),Ft&&it(Ft.abha_address),Ft&&vt({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:sr==null?void 0:sr.oid,patient_uuid:sr==null?void 0:sr.uuid,abha_address:Ft==null?void 0:Ft.abha_address,abha_number:Ft==null?void 0:Ft.abha_number,kyc_verified:Ft==null?void 0:Ft.kyc_verified});const cr=yt.includes(Ft==null?void 0:Ft.gender)?Ft==null?void 0:Ft.gender:void 0,xr={oid:(sr==null?void 0:sr.oid)||"",fln:(Ft==null?void 0:Ft.first_name)+" "+(Ft==null?void 0:Ft.last_name),dob:`${Ft==null?void 0:Ft.year_of_birth}-${String(Ft==null?void 0:Ft.month_of_birth).padStart(2,"0")}-${String(Ft==null?void 0:Ft.day_of_birth).padStart(2,"0")}`,gen:cr,mobile:Ft==null?void 0:Ft.mobile,at:"",fn:(Ft==null?void 0:Ft.first_name)||"",mn:(Ft==null?void 0:Ft.middle_name)||"",ln:(Ft==null?void 0:Ft.last_name)||"","health-ids":Ft!=null&&Ft.abha_address?[Ft.abha_address]:void 0,abha_number:(Ft==null?void 0:Ft.abha_number)||""};if(Mt===ABHA_V3_SKIP_STATES.ABHA_END){if(wt){if(mt({name:"abha_aadhaar_otp_auto_login_auto_login_eka_app",data:{flow:ct,type:"verify",platform:xt,txn_id:_e,skip_state:Mt}}),dt(LOADING_STATE.RESOLVED),!sr){mt({name:"abha_aadhaar_otp_auto_login_eka_app_error",data:{flow:ct,type:"null_oid",platform:xt,txn_id:_e||"missing_txn_id",txn_id_exists:!!_e,eka:sr||"missing_eka",eka_exists:!!sr,skip_state:Mt||"missing_skip_state",skip_state_exists:!!Mt}}),dt(LOADING_STATE.REJECTED),ft("Something went wrong, please try again");return}const Or=getMockAuthVerifyResponse(xr);if(mt({name:"abha_aadhaar_otp_auto_login_success",data:{flow:ct,type:"verify",platform:xt,txn_id:_e,skip_state:Mt,method:lt}}),ct===ABHA_INIT_FLOW.ABHA_REGISTRATION&&_==="abha-card"){b(SCREEN_NAMES.ABHA_HEALTHID_CARD_SCREEN);return}if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(Kt=window.EkaAbha)==null||Kt.onAbhaSuccess(JSON.stringify({response:Or}));return}onAbhaSuccess({response:Or}),unMount();return}if(!sr||!sr.min_token||!et){mt({name:"abha_aadhaar_otp_auto_login_eka_error",data:{flow:ct,type:"verify",platform:xt,eka:sr||"missing_eka",eka_exists:!!sr,auth_txnId:et||"missing_auth_txnId",auth_txnId_exists:!!et,skip_state:Mt||"missing_skip_state",skip_state_exists:!!Mt}}),dt(LOADING_STATE.REJECTED),ft("Something went wrong, please try again");return}const pr=await _t({code:sr.min_token,idp_id:"eka_min_token",...sr.oid?{oid:sr.oid}:null});if(!pr.data){mt({name:"abha_aadhaar_otp_auto_login_auth_verify_error",data:{flow:ct,type:"verify",platform:xt,skip_state:Mt||"missing_skip_state",skip_state_exists:!!Mt,auth_verify_data_exists:!1}}),dt(LOADING_STATE.REJECTED),ft(((Ut=pr.error)==null?void 0:Ut.message)||"Something went wrong, please try again");return}mt({name:"abha_aadhaar_otp_auto_login_abha_end_success",data:{flow:ct,type:"verify",platform:xt,txn_id:_e,skip_state:Mt}}),dt(LOADING_STATE.RESOLVED);return}}if(!a)return;if(it(a.abha_address),console.log(nt,"from abha"),!_e){mt({name:"abha_login_select_abha_txnId_not_found",data:{flow:ct,platform:xt,reason:"txnId missing",reason_exists:!0}});return}dt(LOADING_STATE.LOADING),mt({name:"abha_login_select_abha_verify_start",data:{flow:ct,platform:xt,txn_id:_e}});const{error:bt,eka:Ht,profile:Pt,action:Lt,skip_state:Bt}=await At({txn_id:_e,phr_address:a.abha_address});if(Lt){mt({name:"abha_login_select_abha_error_action",data:{flow:ct,platform:xt,txn_id:_e,action:((Jt=Lt==null?void 0:Lt.cta)==null?void 0:Jt.title)||"unknown",action_exists:!!((ur=Lt==null?void 0:Lt.cta)!=null&&ur.title)}}),rt(Lt);return}if(bt||!Ht){mt({name:"abha_login_select_abha_abdm_error",data:{flow:ct,platform:xt,txn_id:_e,error_message:bt||"eka object missing",error_exists:!!bt}}),dt(LOADING_STATE.REJECTED),ft(bt);return}if(!Bt){ft("skip State is missing");return}if(mt({name:"abha_login_select_abha_verify_success",data:{flow:ct,platform:xt,txn_id:_e,skip_state:Bt}}),ut(Bt),Pt&&(mt({name:"abha_login_select_abha_profile_received",data:{flow:ct,platform:xt}}),vt({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:Ht==null?void 0:Ht.oid,patient_uuid:Ht==null?void 0:Ht.uuid,middlename:Pt.middle_name,abha_address:Pt.abha_address,abha_number:Pt.abha_number,kyc_verified:Pt==null?void 0:Pt.kyc_verified}),it(Pt.abha_address)),wt){if(!Ht){mt({name:"abha_login_select_eka_object_null",data:{flow:ct,platform:xt,oid:Ht??"null_or_undefined"}}),dt(LOADING_STATE.REJECTED);return}const Zt=yt.includes(Pt==null?void 0:Pt.gender)?Pt==null?void 0:Pt.gender:void 0,Xt={oid:(Ht==null?void 0:Ht.oid)||"",fln:(Pt==null?void 0:Pt.first_name)+" "+(Pt==null?void 0:Pt.last_name),dob:`${Pt==null?void 0:Pt.year_of_birth}-${String(Pt==null?void 0:Pt.month_of_birth).padStart(2,"0")}-${String(Pt==null?void 0:Pt.day_of_birth).padStart(2,"0")}`,gen:Zt,mobile:Pt==null?void 0:Pt.mobile,at:"",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)||""},Mt=getMockAuthVerifyResponse(Xt);if(dt(LOADING_STATE.RESOLVED),mt({name:"abha_login_select_abha_inside_app_success",data:{flow:ct,platform:xt,oid:Ht.oid}}),ct===ABHA_INIT_FLOW.ABHA_REGISTRATION&&_==="abha-card"){b(SCREEN_NAMES.ABHA_HEALTHID_CARD_SCREEN);return}if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(ir=window.EkaAbha)==null||ir.onAbhaSuccess(JSON.stringify({response:Mt}));return}onAbhaSuccess({response:Mt}),unMount();return}if(!Ht.min_token||!et){mt({name:"abha_login_select_abha_min_token_missing",data:{flow:ct,platform:xt,oid:(Ht==null?void 0:Ht.oid)??"missing_oid",min_token:(Ht==null?void 0:Ht.min_token)??"missing_min_token",auth_txnId:et??"missing_authTxnId"}}),dt(LOADING_STATE.REJECTED),ft(bt||"Something went wrong. Please try again.");return}const $t=await _t({code:Ht.min_token,idp_id:"eka_min_token",...Ht.oid?{oid:Ht.oid}:null});if(!$t.data){mt({name:"abha_login_select_abha_auth_verify_failed",data:{flow:ct,platform:xt,oid:(Ht==null?void 0:Ht.oid)??"missing_oid",min_token:(Ht==null?void 0:Ht.min_token)??"missing_min_token",auth_txnId:et??"missing_authTxnId"}}),dt(LOADING_STATE.REJECTED),ft(((tr=$t.error)==null?void 0:tr.message)||"Something went wrong, please try again");return}dt(LOADING_STATE.RESOLVED),mt({name:"abha_login_select_abha_auth_verify_success",data:{flow:ct,platform:xt,oid:Ht.oid,min_token:Ht==null?void 0:Ht.min_token,auth_txnId:et}})},Dt=()=>{const bt=useAuthAbhaStore.getState().initAbhaAppMobileNumber,Ht=useAuthAbhaStore.getState().isEkaAppLogin,Pt=xt;$(),st(),useAuthAbhaStore.setState({clientId:Pt}),useAuthAbhaStore.setState({initAbhaAppMobileNumber:bt}),useAuthAbhaStore.setState({isEkaAppLogin:Ht})};return reactExports.useEffect(()=>{if(!(tt!=null&&tt.length))return;const bt=tt.find(Ht=>Ht.kyc_verified==="VERIFIED");o(bt??null)},[]),jsxRuntimeExports.jsxs("div",{className:"pds2-w-full pds2-flex pds2-flex-col pds2-h-full pds2-bg-surface-subtle",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:()=>pt(!0),children:jsxRuntimeExports.jsx(n$3,{})}),className:"pds2-border-b pds2-border-surface-muted pds2-bg-surface-base"}),ct==null||ct===ABHA_INIT_FLOW.ABHA_REGISTRATION?jsxRuntimeExports.jsx(AbhaStepper,{}):jsxRuntimeExports.jsx("div",{className:"pds2-pt-40 pds2-bg-surface-subtle"}),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-content-secondary Body1Regular pds2-text-center",children:["We found ",tt==null?void 0:tt.length," ABHA addresses ",jsxRuntimeExports.jsx("br",{})," select one you want to log in with"]}),jsxRuntimeExports.jsx(AbhaList,{list:tt,selectedAbha:a,setSelectedAbha:o,handleContinueClick:kt}),((tt==null?void 0:tt.length)??0)<6&&(lt===ABHA_AUTH_FLOW_METHOD.MOBILE||lt===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-primary-brand pds2-bg-primary-brand/20 pds2-border pds2-border-surface-muted Body1Semibold",onClick:Rt,bgColor:"pds2-bg-primary-brand/20"})]})]}),lt===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&jsxRuntimeExports.jsxs("div",{className:"pds2-text-center pds2-bg-surface-muted pds2-py-8",children:[jsxRuntimeExports.jsx("span",{className:"pds2-text-content-secondary Body2Regular",children:"Your ABHA No: "}),jsxRuntimeExports.jsx("span",{className:"pds2-text-content-primary Body2Semibold",children:ot==null?void 0:ot.abha_number})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-bg-surface-base pds2-border pds2-shadow-lg pds2-w-full pds2-sticky pds2-bottom-0 pds2-border-surface-muted pds2-p-16 z-10",children:[at&&jsxRuntimeExports.jsx("div",{className:"pds2-text-semantic-error pds2-text-center pds2-mb-4",children:at}),jsxRuntimeExports.jsx(Pds2Button,{title:"Continue",state:a===null||nt===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:nt===LOADING_STATE.LOADING,className:"pds2-w-full",onClick:kt})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:Dt}),jsxRuntimeExports.jsx(ExitPopup,{open:ht,setOpen:pt})]})},AbhaList=({list:a,selectedAbha:o,setSelectedAbha:_,handleContinueClick:b})=>jsxRuntimeExports.jsx("div",{className:"pds2-bg-surface-base pds2-rounded-16 pds2-border pds2-border-surface-muted pds2-w-full pds2-relative",children:a==null?void 0:a.map(($,_e)=>jsxRuntimeExports.jsxs(React.Fragment,{children:[jsxRuntimeExports.jsxs("label",{className:"pds2-p-16 pds2-flex pds2-space-x-8 pds2-items-center",children:[jsxRuntimeExports.jsx("input",{className:"pds2-self-start pds2-mt-4 pds2-w-14 pds2-h-14 pds2-p-2 pds2-accent-primary-brand",type:"radio",value:$.abha_address,checked:(o==null?void 0:o.abha_address)===$.abha_address,onChange:()=>{_($)},onKeyDown:et=>et.key==="Enter"&&b()}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-flex-1",children:[jsxRuntimeExports.jsxs("div",{className:`${(o==null?void 0:o.abha_address)===$.abha_address?"TitlesSubheadline":"Body2Regular"} pds2-text-content-primary pds2-flex pds2-flex-row pds2-justify-between`,children:[jsxRuntimeExports.jsx("div",{children:$==null?void 0:$.abha_address}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-flex-row pds2-items-center",children:($==null?void 0:$.kyc_verified)&&($.kyc_verified==="VERIFIED"?jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-rounded-8 pds2-h-full pds2-border-2 pds2-px-6 pds2-py-2 pds2-flex pds2-gap-10 pds2-justify-center pds2-items-center pds2-border-surface-muted pds2-text-content-success",children:[jsxRuntimeExports.jsx(t$1,{className:"pds2-w-12 pds2-h-12 pds2-text-content-success pds2-text-[2rem]"}),"KYC"]}):jsxRuntimeExports.jsx("div",{className:"Body3Medium pds2-rounded-8 pds2-h-full pds2-border-2 pds2-px-6 pds2-py-2 pds2-flex pds2-gap-10 pds2-justify-center pds2-items-center pds2-border-surface-muted pds2-text-semantic-error",children:"Non-KYC"}))})]}),jsxRuntimeExports.jsx("div",{className:"pds2-text-content-secondary Body3Regular pds2-flex pds2-flex-row pds2-items-center pds2-gap-x-4",children:($==null?void 0:$.name)&&jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-text-content-secondary",children:$.name})})]})]}),_e!==a.length-1&&jsxRuntimeExports.jsx("div",{className:"pds2-px-16",children:jsxRuntimeExports.jsx("div",{className:"pds2-bg-surface-muted pds2-h-1 pds2-w-full"})})]},$.abha_address))}),SelectEkaProfileScreen=()=>{var Nt;const a=useAuthAbhaStore(Ct=>Ct.setScreen),o=useAuthAbhaStore(Ct=>Ct.setEkaProfileInfo),_=useAuthAbhaStore(Ct=>Ct.registrationType),b=useAuthAbhaStore(Ct=>Ct.goBackLoginScreen),[$,_e]=reactExports.useState(null),et=useAuthAbhaStore(Ct=>Ct.setBottomsheetErrorInfo),tt=useAuthAbhaStore(Ct=>Ct.clearAbhaAuthStore),[rt,st]=reactExports.useState(LOADING_STATE.IDLE),[it,lt]=reactExports.useState(!1),[at,ft]=reactExports.useState(null),ht=useAuthAbhaStore(Ct=>Ct.initAbhaFlow),pt=useAuthAbhaStore(Ct=>Ct.aadhaarVerificationSkipStateStatus),{mutateAsync:vt}=usePostAuthSwitchV3(),ut=queryClient.getQueryData(["profilesPhrUserResponse"]),ot=useAuthAbhaStore(Ct=>Ct.clientId),nt=useAuthAbhaStore(Ct=>Ct.linkToOrgIcon),dt=useTrackAbhaEvent(),yt=useCreateEkaProfileAndSwitch(),_t=useAuthAbhaStore(Ct=>Ct.selectedAbhaAddress),[At]=useAbhaProfileData();reactExports.useEffect(()=>{dt({name:"choose_eka_profile_screen",data:{platform:ot,type:"select",flow:ht}})},[ot]);const xt=async()=>{if(dt({name:"create_family_profile_clicks",data:{platform:ot,type:"create",skip_state:pt,flow:ht}}),pt===ABHA_V3_SKIP_STATES.ABHA_END){if(dt({name:"navigate_to_create_phr_profile_screen",data:{platform:ot,flow:ht}}),_t){await yt(At,_t,ot,ht,{onErrorAction:Ct=>et(Ct),onProfileError:Ct=>ft(Ct),onSwitchError:Ct=>ft(Ct)});return}else a(SCREEN_NAMES.CREATE_PHR_EKA_PROFILE);return}dt({name:"navigate_to_create_eka_profile_screen",data:{platform:ot,flow:ht}}),a(SCREEN_NAMES.CREATE_EKA_PROFILE)},wt=async({profile:Ct})=>{dt({name:"select_profile_clicks",data:{platform:ot,oid:Ct.oid,flow:ht}}),_e(Ct.oid)},Tt=async()=>{var St,ct,mt,Rt;if(dt({name:"continue_click_on_choose_eka_profile",data:{platform:ot,selectedProfileOid:$,registrationType:_,skip_state:pt,flow:ht}}),$&&pt===ABHA_V3_SKIP_STATES.ABHA_CREATE){const kt=ut==null?void 0:ut.profiles.find(Dt=>Dt.oid===$);if(!kt){dt({name:"continue_click_profile_not_found",data:{platform:ot,oid:$||"unknown_oid",oid_exists:!!$,flow:ht}});return}dt({name:"navigate_to_create_eka_profile_screen_from_abha_create",data:{platform:ot,oid:kt.oid,flow:ht}}),o({oid:kt.oid,date_of_birth:kt.dob,firstname:kt.fn,lastname:kt.ln,pincode:"",gender:kt.gen,mobile:kt.mobile,name:kt.fln,middlename:kt.mn,abha_address:(St=kt==null?void 0:kt["health-ids"])==null?void 0:St[0],abha_number:kt.abha_number,kyc_verified:kt==null?void 0:kt.kyc_verified}),a(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(!_t||!$){dt({name:"continue_click_missing_profile_or_abha",data:{platform:ot,oid:$||"missing_oid",oid_exists:!!$,flow:ht}});return}dt({name:"linking_abha_to_profile_start",data:{platform:ot,oid:$||"missing_oid",oid_exists:!!$,flow:ht}}),st(LOADING_STATE.LOADING);const{error:Ct,action:jt,eka:Et}=await postAbdmProfileEkaLinkPhr({abha_address:_t,oid:$});if(jt){dt({name:"linking_abha_to_profile_error_action",data:{platform:ot,oid:$||"missing_oid",oid_exists:!!$,flow:ht}}),et(jt);return}if(Ct||!Et||!Et.oid){dt({name:"linking_abha_to_profile_failed",data:{platform:ot,oid:$||"missing_oid",oid_exists:!!$,error:Ct||"No EKA/OID",error_exists:!!Ct,flow:ht}}),st(LOADING_STATE.REJECTED),ft(Ct||"Something went wrong. Please try again.");return}const gt=await vt({oid:Et.oid});if(gt.error){dt({name:"profile_switch_failed_after_link",data:{platform:ot,oid:(Et==null?void 0:Et.oid)||"missing_oid",oid_exists:!!(Et!=null&&Et.oid),error:((ct=gt.error)==null?void 0:ct.message)||"unknown_error",error_exists:!!((mt=gt.error)!=null&&mt.message),flow:ht}}),st(LOADING_STATE.REJECTED),ft(((Rt=gt.error)==null?void 0:Rt.message)||"Something went wrong, please try again");return}dt({name:"linking_abha_to_profile_success",data:{platform:ot,oid:Et.oid,flow:ht}}),st(LOADING_STATE.RESOLVED)},It=()=>{b();const Ct=useAuthAbhaStore.getState().isEkaAppLogin,jt=ot;tt(),useAuthAbhaStore.setState({clientId:jt}),useAuthAbhaStore.setState({isEkaAppLogin:Ct})};return jsxRuntimeExports.jsxs("div",{className:"pds2-w-full pds2-h-full pds2-flex pds2-flex-col pds2-bg-surface-subtle",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:()=>lt(!0),children:jsxRuntimeExports.jsx(n$3,{})}),className:"pds2-border-b pds2-border-surface-muted pds2-bg-surface-base"}),ht==null||ht===ABHA_INIT_FLOW.ABHA_REGISTRATION?jsxRuntimeExports.jsx(AbhaStepper,{}):jsxRuntimeExports.jsx("div",{className:"pds2-pt-40 pds2-bg-surface-subtle"}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex-1 pds2-flex pds2-flex-col pds2-relative pds2-bg-surface-subtle 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:`${nt||"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-content-primary Heading3Semibold",children:"Choose an Eka Profile"}),jsxRuntimeExports.jsx("span",{className:"Body1Regular pds2-text-content-secondary",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-content-secondary Body2Medium pds2-text-center",children:"Select Eka Profile"}),jsxRuntimeExports.jsx("div",{className:"pds2-space-y-8",children:(Nt=ut==null?void 0:ut.profiles)==null?void 0:Nt.map(Ct=>{const jt=$===Ct.oid;return jsxRuntimeExports.jsxs("label",{className:`pds2-flex pds2-items-center pds2-gap-x-8 pds2-cursor-pointer pds2-p-16 pds2-rounded-16 pds2-bg-surface-base pds2-border
61
61
  pds2-border-surface-muted
62
- pds2-transition-colors`,children:[jsxRuntimeExports.jsx("input",{type:"radio",name:"ekaProfile",value:Ct.oid,checked:jt,onChange:()=>wt({profile:Ct}),className:"pds2-self-start pds2-mt-4 pds2-w-14 pds2-h-14 pds2-accent-primary-brand",onKeyDown:Et=>Et.key==="Enter"&&bt()}),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-content-primary",children:Ct.fln}),jsxRuntimeExports.jsx("span",{className:"pds2-ml-auto pds2-text-primary-brand pds2-text-14 pds2-font-600",children:"Link"})]})]},Ct.oid)})}),jsxRuntimeExports.jsx(TextSeparator,{title:"or"}),jsxRuntimeExports.jsx(Pds2CustomButton,{title:"Create new Family Member",bgColor:"pds2-bg-primary-brand/20",prefixIcon:jsxRuntimeExports.jsx(l$6,{}),className:"pds2-justify-center pds2-border pds2-border-surface-muted pds2-text-primary-brand Body1Semibold",onClick:xt})]})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-sticky pds2-border pds2-border-surface-muted pds2-bottom-0 pds2-left-0 pds2-right-0 pds2-bg-surface-base pds2-shadow-lg pds2-p-16",children:[at&&jsxRuntimeExports.jsx("div",{className:"pds2-text-semantic-error pds2-text-center pds2-mb-8",children:at}),jsxRuntimeExports.jsx(Pds2Button,{title:"Continue",state:$===null||rt===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:rt===LOADING_STATE.LOADING,className:"pds2-w-full",onClick:bt})]})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:It}),jsxRuntimeExports.jsx(ExitPopup,{open:it,setOpen:lt})]})},AuthLoginCard=({icon:a,text:o,otpReq:_,isSelected:b,onClick:$})=>jsxRuntimeExports.jsx("div",{className:"pds2-group pds2-cursor-pointer hover:pds2-text-content-enabled",style:{width:"45%",height:"32%"},onClick:$,children:jsxRuntimeExports.jsxs("div",{className:"pds2-w-full",children:[jsxRuntimeExports.jsx("div",{className:` ${_?"":"pds2-invisible"} pds2-text-content-primary Label2Medium pds2-w-fit pds2-px-8 pds2-py-2 pds2-bg-semantic-warning pds2-mx-auto pds2-border pds2-border-surface-neutral pds2-border-b-none pds2-rounded-t-6`,children:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center",children:[jsxRuntimeExports.jsx(n$4,{className:"pds2-w-10"}),"Fastest. No OTP"]})}),jsxRuntimeExports.jsxs("div",{className:`pds2-border pds2-pt-12 pds2-px-34 pds2-rounded-8 pds2-bg-surface-base
62
+ pds2-transition-colors`,children:[jsxRuntimeExports.jsx("input",{type:"radio",name:"ekaProfile",value:Ct.oid,checked:jt,onChange:()=>wt({profile:Ct}),className:"pds2-self-start pds2-mt-4 pds2-w-14 pds2-h-14 pds2-accent-primary-brand",onKeyDown:Et=>Et.key==="Enter"&&Tt()}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-row pds2-items-center pds2-gap-x-8 pds2-flex-1",children:[jsxRuntimeExports.jsx("div",{className:"TitlesSubheadline pds2-text-content-primary",children:Ct.fln}),jsxRuntimeExports.jsx("span",{className:"pds2-ml-auto pds2-text-primary-brand pds2-text-14 pds2-font-600",children:"Link"})]})]},Ct.oid)})}),jsxRuntimeExports.jsx(TextSeparator,{title:"or"}),jsxRuntimeExports.jsx(Pds2CustomButton,{title:"Create new Family Member",bgColor:"pds2-bg-primary-brand/20",prefixIcon:jsxRuntimeExports.jsx(l$6,{}),className:"pds2-justify-center pds2-border pds2-border-surface-muted pds2-text-primary-brand Body1Semibold",onClick:xt})]})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-sticky pds2-border pds2-border-surface-muted pds2-bottom-0 pds2-left-0 pds2-right-0 pds2-bg-surface-base pds2-shadow-lg pds2-p-16",children:[at&&jsxRuntimeExports.jsx("div",{className:"pds2-text-semantic-error pds2-text-center pds2-mb-8",children:at}),jsxRuntimeExports.jsx(Pds2Button,{title:"Continue",state:$===null||rt===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:rt===LOADING_STATE.LOADING,className:"pds2-w-full",onClick:Tt})]})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:It}),jsxRuntimeExports.jsx(ExitPopup,{open:it,setOpen:lt})]})},AuthLoginCard=({icon:a,text:o,otpReq:_,isSelected:b,onClick:$})=>jsxRuntimeExports.jsx("div",{className:"pds2-group pds2-cursor-pointer hover:pds2-text-content-enabled",style:{width:"45%",height:"32%"},onClick:$,children:jsxRuntimeExports.jsxs("div",{className:"pds2-w-full",children:[jsxRuntimeExports.jsx("div",{className:` ${_?"":"pds2-invisible"} pds2-text-content-primary Label2Medium pds2-w-fit pds2-px-8 pds2-py-2 pds2-bg-semantic-warning pds2-mx-auto pds2-border pds2-border-surface-neutral pds2-border-b-none pds2-rounded-t-6`,children:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center",children:[jsxRuntimeExports.jsx(n$4,{className:"pds2-w-10"}),"Fastest. No OTP"]})}),jsxRuntimeExports.jsxs("div",{className:`pds2-border pds2-pt-12 pds2-px-34 pds2-rounded-8 pds2-bg-surface-base
63
63
  ${b?"pds2-border-primary-brand":"pds2-border-surface-muted group-hover:pds2-border-primary-brand"}`,children:[jsxRuntimeExports.jsx("div",{className:"pds2-p-12 pds2-bg-surface-muted pds2-rounded-8",children:jsxRuntimeExports.jsx("div",{className:`pds2-m-auto pds2-w-30 pds2-h-20 group-hover:pds2-text-primary-brand
64
64
  ${b?"pds2-text-primary-brand":""} `,children:a})}),jsxRuntimeExports.jsx("div",{className:`Body3Medium pds2-py-8 group-hover:pds2-text-primary-brand
65
- ${b?"pds2-text-primary-brand":""}`,children:o})]})]})}),hasActionRunToday=a=>{const o=localStorage.getItem(a),_=new Date().toISOString().split("T")[0];return o===_},markActionRunToday=a=>{const o=new Date().toISOString().split("T")[0];localStorage.setItem(a,o)},LoginorCreateAbhaScreen=()=>{const a=useAuthAbhaStore(_e=>_e.clientId),[o,_]=reactExports.useState(!1);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 b=()=>{var _e;o?_(!1):((_e=window.EkaAbha)==null||_e.onAbhaClose(),unMount())},$=["eka-web","phr","www-eka"];return jsxRuntimeExports.jsxs("div",{className:`pds2-h-full ${o?"pds2-overflow-y-hidden ":"pds2-overflow-y-auto"}`,children:[jsxRuntimeExports.jsx(Pds2Header,{prefixIcon:!o&&jsxRuntimeExports.jsx("button",{onClick:b,children:jsxRuntimeExports.jsx(n$3,{})}),title:"",className:"pds2-bg-surface-subtle",showHeaderStrip:!$.includes(a)}),jsxRuntimeExports.jsx(LoginOrCreateWithDifferentMethods,{tryFaceAuthScreen:o,setTryFaceAuthScreen:_})]})},LoginOrCreateWithDifferentMethods=({tryFaceAuthScreen:a,setTryFaceAuthScreen:o})=>{const _=useAuthAbhaStore(Wt=>Wt.abhaAuthFlowMethod||ABHA_AUTH_FLOW_METHOD.MOBILE),b=useAuthAbhaStore(Wt=>Wt.setAbhaAuthFlowMethod),$=useAuthAbhaStore(Wt=>Wt.goBackToLogin),_e=useAuthAbhaStore(Wt=>Wt.isEkaDocWebRequest),et=useAuthAbhaStore(Wt=>Wt.isSkipABHAEnable),tt=useAuthAbhaStore(Wt=>Wt.setGoBackToLogin),rt=useAuthAbhaStore(Wt=>Wt.setIdentifierValue),st=useAuthAbhaStore(Wt=>Wt.identifierValue),it=useAuthAbhaStore(Wt=>Wt.isEkaAppLogin),lt=useAuthAbhaStore(Wt=>Wt.setSelectedAbhaAddress),at=useAuthAbhaStore(Wt=>Wt.setLoginIdentifierValue),ft=useAuthAbhaStore(Wt=>Wt.setRegistrationType),ht=useAuthAbhaStore(Wt=>Wt.setAadhaarInitResponse),pt=useAuthAbhaStore(Wt=>Wt.setAadhaarFaceAuthInitResponse),vt=useAuthAbhaStore(Wt=>Wt.setMobileInitResponse),ut=useAuthAbhaStore(Wt=>Wt.initAbhaAppMobileNumber),ot=useAuthAbhaStore(Wt=>Wt.initAbhaAppIdentifierType),nt=useAuthAbhaStore(Wt=>Wt.initAbhaAppIdentifier),dt=useAuthAbhaStore(Wt=>Wt.setInitAbhaAppIdentifier),yt=useAuthAbhaStore(Wt=>Wt.setInitAbhaAppIdentifierType),_t=useAuthAbhaStore(Wt=>Wt.isDocAppRequest),At=useAuthAbhaStore(Wt=>Wt.faceAuthEnable),xt=useAuthAbhaStore(Wt=>Wt.setIsNewLoginOrCreateFlow),wt=useAuthAbhaStore(Wt=>Wt.clientId),bt=useAuthAbhaStore(Wt=>Wt.isInitApiTriggered),It=useAuthAbhaStore(Wt=>Wt.setIsInitApiTriggered),Nt=useAuthAbhaStore(Wt=>Wt.setIdentityValue);useAuthAbhaStore(Wt=>Wt.identityValue);const Ct=useAuthAbhaStore(Wt=>Wt.setSelectedAbhaFlow),jt=useAuthAbhaStore(Wt=>Wt.initAbhaFlow),Et=useAuthAbhaStore(Wt=>Wt.selectedAadhaarAuth),gt=useAuthAbhaStore(Wt=>Wt.setSelectedAadhaarAuth),St=useAuthAbhaStore(Wt=>Wt.orgIconUrl),[ct,mt]=reactExports.useState(LOADING_STATE.IDLE),[Rt,Tt]=reactExports.useState(""),Dt=useAuthAbhaStore(Wt=>Wt.setScreen),[kt,Ht]=reactExports.useState({aadhaar:LOADING_STATE.IDLE,mobile:LOADING_STATE.IDLE}),[Pt,Lt]=reactExports.useState($?st==null?void 0:st.mobile:""),[Bt,$t]=reactExports.useState(!1),[Vt,Gt]=reactExports.useState(!1),[zt,Qt]=reactExports.useState(st.aadhaar_number||""),[Kt,Ut]=reactExports.useState(st.abha_number||""),[Jt,ur]=reactExports.useState(""),[ir,tr]=reactExports.useState(st.phr_address||""),Zt=reactExports.useRef(!1),Xt=GET_EXTRA_HEADERS(),Mt=(Xt==null?void 0:Xt["X-User-ID"])??void 0;reactExports.useEffect(()=>{qt({name:"abha_login_or_create_screen",data:{flow:jt}}),handleReadOTP()},[]);const Ft=()=>{et&&_e&&!hasActionRunToday(EARN_ABHA_SCREEN_TRIED_KEY)&&_e?(markActionRunToday(EARN_ABHA_SCREEN_TRIED_KEY),Dt(SCREEN_NAMES.EARN_WITH_ABHA_SCREEN)):(qt({name:"abha_skip_earn_with_abha_clicked",data:{flow:jt,platform:wt}}),onSkipAbha({identifier:(st==null?void 0:st.mobile)||(st==null?void 0:st.aadhaar_number)||(st==null?void 0:st.abha_number)||(st==null?void 0:st.phr_address)||"",identifier_type:st!=null&&st.mobile?"mobile":"aadhaar_number"}),unMount())},ar=async Wt=>{var mr;try{mt(LOADING_STATE.LOADING);const lr=await postAbdmProfileSearch({mobile:Wt});if(((mr=lr==null?void 0:lr.profiles)==null?void 0:mr.length)>0&&nt)Lt(nt);else{mt(LOADING_STATE.REJECTED),b(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),Tt(`KYC ABHA not found for ${nt}. Please register with Aadhaar.`);return}}catch(lr){console.error("Error searching ABDM profile:",lr),mt(LOADING_STATE.REJECTED),b(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)}};reactExports.useEffect(()=>{nt&&ot===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&!$?(ur(nt),tr(nt.split("@")[0]),rt({phr_address:nt.split("@")[0]}),ys(!0),Ts(!0),b(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS)):nt&&ot===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&!$?(rt({abha_number:nt}),Ut(nt),ys(!0),ks(!0),b(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER)):nt&&ot===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!$?(Qt(nt),Gt(!0),rt({aadhaar_number:nt}),b(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)):nt&&ot===ABHA_AUTH_FLOW_METHOD.MOBILE&&!$&&(b(ABHA_AUTH_FLOW_METHOD.MOBILE),jt===ABHA_INIT_FLOW.ABHA_REGISTRATION?Lt(nt):ar(nt),$t(nt.length===10),rt({mobile:nt}),Tt(null))},[ot,nt]),reactExports.useEffect(()=>{bt||Zt.current||(Pt&&Pt.length===10&&_==ABHA_AUTH_FLOW_METHOD.MOBILE&&!et?(gr("auto_submit_mobile"),It(!0),Zt.current=!0):Pt&&Pt.length===10&&_==ABHA_AUTH_FLOW_METHOD.MOBILE&&et&&ot===ABHA_AUTH_FLOW_METHOD.MOBILE&&mt(LOADING_STATE.REJECTED))},[Pt]),reactExports.useEffect(()=>{bt||Zt.current||zt&&zt.length===12&&_==ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!At&&(It(!0),Zt.current=!0,gr("auto_submit_aadhaar"))},[zt]),reactExports.useEffect(()=>{rt({aadhaar_number:zt})},[zt]),reactExports.useEffect(()=>{bt||Zt.current||Kt&&Kt.length===17&&_==ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&(It(!0),Zt.current=!0,gr("auto_submit_abha"))},[Kt]),reactExports.useEffect(()=>{bt||Zt.current||Jt&&Jt.includes("@abdm")&&_==ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&(It(!0),Zt.current=!0,gr("auto_submit_phr"))},[Jt]);const qt=useTrackAbhaEvent(),sr=React.useMemo(()=>{switch(_){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""}},[_]),cr=Wt=>{yt(""),Tt("");const mr=Wt.target.value;switch(_){case ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS:if(mr.length>20)return;tr(mr),rt({phr_address:mr}),dt(null);break;case ABHA_AUTH_FLOW_METHOD.MOBILE:const lr=mr.replace(/\D/g,"").slice(-10);Lt(lr),$t(!0),rt({mobile:lr}),dt(null);break;case ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER:if(!/^[\d-]*$/.test(mr)||mr.length>17)return;const Tr=Wt.target.value.replace(/-/g,"");let Mr="";return Tr.length>0&&(Mr+=Tr.slice(0,2)),Tr.length>2&&(Mr+=`-${Tr.slice(2,6)}`),Tr.length>6&&(Mr+=`-${Tr.slice(6,10)}`),Tr.length>10&&(Mr+=`-${Tr.slice(10,14)}`),Ut(Mr),dt(null),rt({abha_number:Mr.trim()});case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:if(mr&&!/^[0-9]+$/.test(mr)||mr.length>12)return;Qt(mr),Gt(!0),dt(null),rt({aadhaar_number:mr});break}};ABHA_AUTH_FLOW_METHOD.MOBILE;const xr=React.useMemo(()=>{switch(_){case ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS:return st.phr_address.length>=4&&st.phr_address.length<=20;case ABHA_AUTH_FLOW_METHOD.MOBILE:return ot==="mobile"?(nt==null?void 0:nt.length)===10:Pt.length===10;case ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER:return st.abha_number.length===17;case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:return st.aadhaar_number.length===12&&Et!=AADHAAR_AUTH_STATES.NONE}},[_,st,Et]),pr=(Wt,mr)=>{Ht(lr=>({...lr,[Wt]:mr}))},Or=({inputVal:Wt})=>{Wt.length===12&&(rt({aadhaar_number:Wt}),Qt(Wt),Gt(!0))};reactExports.useEffect(()=>{console.log("selectedMethod changed:==================>",_)},[_]);const gr=async(Wt,mr)=>{var Fs,Vs,Gs,$s;xt(!0),qt({name:"abha_login_next_click",data:{flow:jt,flow_step_type:Wt}}),mt(LOADING_STATE.LOADING),ft(REGISTRATION_TYPE.LOGIN);let lr="";if(!it){const Er=await postAuthLogoutV2();qt({name:Er?"abha_logout_success":"abha_logout_failure",data:{flow:jt,platform:wt}});const{txn_id:_r,error:hr}=await postAuthInitV2({method:AUTH_METHOD.ABHA});if(!_r||hr){qt({name:"abha_auth_init_failure",data:{flow:jt,flow_step_type:"init",authTxnId:lr,error_message:hr||"missing_txnId_or_unknown_error",error_message_exists:!!hr,txn_id_exists:!!_r}}),Tt((hr==null?void 0:hr.message)||"Something went wrong. Please try again."),mt(LOADING_STATE.REJECTED);return}lr=_r,qt({name:"abha_auth_init_success.",data:{flow:jt,flow_step_type:"init",auth_txnId:lr}})}const Tr=_===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS?`${st.phr_address}@abdm`:_===ABHA_AUTH_FLOW_METHOD.MOBILE?st==null?void 0:st.mobile:_===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER?st.abha_number:_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?st.aadhaar_number:"";if(_===ABHA_AUTH_FLOW_METHOD.MOBILE||_===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER||_===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS){const{txn_id:Er,error:_r,action:hr,hint:Sr}=await postAbdmLoginInit({method:_,identifier:Tr});if(It(!0),Nt(Tr),qt({name:"abha_login_init_triggered",data:{flow:jt,flow_step_type:"init",authTxnId:lr,ndhmTxnId:Er,method:_}}),_===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&lt(Tr),_r||!Er){if(tt(!0),((Fs=hr==null?void 0:hr.cta)==null?void 0:Fs.pid)==="abha_mobile_enroll"&&_===ABHA_AUTH_FLOW_METHOD.MOBILE){pr("mobile",LOADING_STATE.LOADING),ft(REGISTRATION_TYPE.CREATE);const{txn_id:Dr,hint:Us,error:xs,action:_s}=await postRegisterMobileInit({mobile_number:st==null?void 0:st.mobile});if(It(!0),Nt(st==null?void 0:st.mobile),Ct("mobile"),Dr&&Us){vt({authTxnId:lr,txnId:Dr,mobileOtpSentToHint:Us}),qt({name:"abha_mobile_registration_init_success",data:{flow:jt,flow_step_type:"init",authTxnId:lr,ndhmTxnId:Er,error_message:xs,error_action:hr}}),pr("mobile",LOADING_STATE.RESOLVED),mt(LOADING_STATE.RESOLVED),ft(REGISTRATION_TYPE.CREATE),Dt(SCREEN_NAMES.ABHA_PHONE_NUMBER_VERIFICATION);return}if(pr("mobile",LOADING_STATE.REJECTED),qt({name:"abha_mobile_registration_init_failure",data:{flow:jt,flow_step_type:"init",authTxnId:lr,error_message:xs||"unknown_error",error_message_exists:!!xs,error_action_exists:!!_s}}),_s){if((Vs=_s==null?void 0:_s.cta)!=null&&Vs.pid)return Dt(SCREEN_NAMES.LOGIN_OR_CREATE_ABHA)}else Tt(xs||"Something went wrong");Tt(xs||"Something went wrong. Please try again."),mt(LOADING_STATE.REJECTED);return}qt({name:"abha_login_init_failure",data:{flow:jt,flow_step_type:"init",authTxnId:lr,error_message:_r||"unknown_error",error_message_exists:!!_r,error_action_exists:!!hr}}),Tt(_r||"Something went wrong. Please try again."),mt(LOADING_STATE.REJECTED);return}qt({name:"abha_login_init_success",data:{flow:jt,flow_step_type:"init",authTxnId:lr,ndhmTxnId:Er,hint:Sr}}),ht({authTxnId:lr,txnId:Er,aadhaarOtpSentToHint:Sr||null}),tt(!1),at(Tr),mt(LOADING_STATE.RESOLVED),Dt(SCREEN_NAMES.VERIFY_OTP_LOGIN_WITH_ABHA);return}const Mr=mr??Et;if(_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&Mr===AADHAAR_AUTH_STATES.OTP){pr("aadhaar",LOADING_STATE.LOADING),qt({name:"aadhaar_registration_init_start",data:{flow:jt,flow_step_type:"init",authTxnId:lr,aadhaarNumber:st.aadhaar_number}});const{txn_id:Er,hint:_r,error:hr,action:Sr}=await postRegisterAadhaarInit({aadhaar_number:st.aadhaar_number});if(Nt(st.aadhaar_number),Ct("aadhaar"),Er&&_r){ht({authTxnId:lr,txnId:Er,aadhaarOtpSentToHint:_r}),qt({name:"aadhaar_registration_init_success",data:{flow:jt,flow_step_type:"verify",ndhmTxnId:Er,authTxnId:lr}}),tt(!1),pr("aadhaar",LOADING_STATE.RESOLVED),ft(REGISTRATION_TYPE.CREATE),mt(LOADING_STATE.RESOLVED),Dt(SCREEN_NAMES.ABHA_OTP_AND_MOBILE);return}if(qt({name:"abha_registration_init_failure",data:{flow:jt,error_message:hr||"unknown_error",error_message_exists:!!hr,auth_txn_id:lr,error_action:Sr,error_action_exists:!!Sr}}),pr("aadhaar",LOADING_STATE.REJECTED),mt(LOADING_STATE.REJECTED),Sr||hr){tt(!0),(Gs=Sr==null?void 0:Sr.cta)!=null&&Gs.pid?Dt(SCREEN_NAMES.LOGIN_OR_CREATE_ABHA):Tt(hr||"Something went wrong");return}}if(_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&Mr===AADHAAR_AUTH_STATES.FACE_AUTH){pr("aadhaar",LOADING_STATE.LOADING),qt({name:"aadhaar_registration_faceauth_init_start",data:{flow:jt,flow_step_type:"init",authTxnId:lr,aadhaarNumber:st.aadhaar_number}});const{url:Er,txn_id:_r,hint:hr,error:Sr,action:Dr}=await postRegisterAadhaarFaceAuthInit();if(Nt(st.aadhaar_number),Ct("aadhaar"),_r&&hr&&Er){pt({authTxnId:lr,txnId:_r,aadhaarFaceAuthOtpSentToHint:hr,faceAuthQrUrl:Er}),qt({name:"aadhaar_registration_faceauth_init_success",data:{flow:jt,flow_step_type:"verify",ndhmTxnId:_r,authTxnId:lr}}),tt(!1),pr("aadhaar",LOADING_STATE.RESOLVED),ft(REGISTRATION_TYPE.CREATE),mt(LOADING_STATE.RESOLVED),Dt(SCREEN_NAMES.ABHA_AUTH_QR_SCREEN);return}if(qt({name:"abha_registration_faceauth_init_failure",data:{flow:jt,error_message:Sr||"unknown_error",error_message_exists:!!Sr,auth_txn_id:lr,error_action:Dr,error_action_exists:!!Dr}}),pr("aadhaar",LOADING_STATE.REJECTED),mt(LOADING_STATE.REJECTED),Dr||Sr){tt(!0),($s=Dr==null?void 0:Dr.cta)!=null&&$s.pid?Dt(SCREEN_NAMES.LOGIN_OR_CREATE_ABHA):Tt(Sr||"Something went wrong");return}}},[Is,ys]=reactExports.useState(!1),[sn,ks]=reactExports.useState($&&_===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER),[nn,Ts]=reactExports.useState($&&_===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS),[an,ws]=reactExports.useState(!1);return jsxRuntimeExports.jsxs("div",{className:`pds2-w-full pds2-h-full ${a?"pds2-relative":""}`,children:[jsxRuntimeExports.jsxs("div",{className:`pds2-p-16 pds2-bg-surface-subtle pds2-space-y-16 pds2-text-center pds2-rounded-b-24 ${_t?"pds2-pt-0 -pds2-mt-20":"pds2-pt-22"}`,children:[jt==null||jt===ABHA_INIT_FLOW.ABHA_REGISTRATION?jsxRuntimeExports.jsx(AbhaStepper,{}):jsxRuntimeExports.jsx("div",{className:"pds2-pt-40 pds2-bg-surface-subtle"}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-center pds2-items-center pds2-gap-16",children:jsxRuntimeExports.jsxs("div",{className:`pds2-rounded-16 ${St?"pds2-flex pds2-gap-10":""}`,children:[jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-w-64 pds2-h-64 pds2-bg-surface-base pds2-rounded-16"}),St&&jsxRuntimeExports.jsx("img",{src:St,alt:"org-icon",className:"pds2-w-64 pds2-h-64 pds2-rounded-16"})]})}),jsxRuntimeExports.jsx("div",{className:"Heading3Semibold pds2-text-content-primary",children:wt==="phr"?"Login or Create your ABHA":_t?"Add Patient via ABHA":"Create your ABHA"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-content-secondary",style:{marginTop:"4px"},children:_===ABHA_AUTH_FLOW_METHOD.MOBILE?_t?"Enter Patient's Mobile Number":"Enter your Mobile Number":_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?_t?"Enter Patient's Aadhaar Number":"Enter your Aadhaar Number":_===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER?_t?"Enter Patient's ABHA Number":"Enter your ABHA Number":_===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS?_t?"Enter Patient's ABHA Address":"Enter your ABHA Address":sr}),(_===ABHA_AUTH_FLOW_METHOD.MOBILE||_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)&&jsxRuntimeExports.jsxs("div",{className:"pds2-w-full",children:[jsxRuntimeExports.jsx("div",{className:"pds2-w-1/2 pds2-relative",children:jsxRuntimeExports.jsx("div",{className:"Label2Medium pds2-w-fit pds2-px-8 pds2-py-2 pds2-bg-surface-success pds2-text-content-success pds2-mx-auto pds2-border pds2-border-surface-neutral pds2-border-b-none pds2-rounded-t-6",children:"Recommended"})}),jsxRuntimeExports.jsxs("div",{className:"pds2-relative pds2-flex pds2-bg-surface-muted pds2-rounded-12",children:[jsxRuntimeExports.jsx("div",{className:"pds2-absolute pds2-top-0 pds2-bottom-0 pds2-bg-surface-base pds2-rounded-12 pds2-transition-all pds2-duration-300",style:{left:_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?0:"50%",width:"50%",boxShadow:"0px 10px 4px -6px #18274B17"}}),jsxRuntimeExports.jsxs("button",{onClick:()=>{b(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),Tt("")},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 ${_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?"pds2-font-bold pds2-text-fg-default":"pds2-font-normal pds2-text-fg-subtle"}`,style:_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?{fontWeight:700}:{fontWeight:400},children:"Aadhaar"})]}),jsxRuntimeExports.jsxs("button",{onClick:()=>{b(ABHA_AUTH_FLOW_METHOD.MOBILE),Tt("")},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-semantic-success"}),jsxRuntimeExports.jsx("span",{className:`pds2-text-base ${_===ABHA_AUTH_FLOW_METHOD.MOBILE?"pds2-font-bold pds2-text-fg-default":"pds2-font-normal pds2-text-fg-subtle"}`,style:_===ABHA_AUTH_FLOW_METHOD.MOBILE?{fontWeight:700}:{fontWeight:400},children:"Mobile"})]})]})]}),(_===ABHA_AUTH_FLOW_METHOD.MOBILE||_===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:_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(AbhaInputComponent,{initialValues:ot===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!$?(nt==null?void 0:nt.match(/.{1,4}/g))??void 0:(zt==null?void 0:zt.match(/.{1,4}/g))??void 0,disabled:!$&&ot===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!!nt,numberOfInputs:3,length:4,placeholder:"XXXX",onSubmit:Or,setIsValid:Gt,setValue:Qt,setError:Tt,isOtpInput:!1}),At&&jsxRuntimeExports.jsxs("div",{className:"pds2-mt-20",children:[jsxRuntimeExports.jsx("hr",{className:"pds2-text-content-muted pds2-border-t-2 pds2-border-surface-strong pds2-w-4/5 pds2-mx-auto"}),jsxRuntimeExports.jsx("div",{className:"Body2Regular pds2-py-12 pds2-text-content-secondary ",children:"Authenticate using"}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-justify-evenly pds2-w-11/12 pds2-mx-auto",children:[jsxRuntimeExports.jsx(AuthLoginCard,{icon:jsxRuntimeExports.jsx(t$5,{className:"pds2-w-30 pds2-h-20"}),text:"OTP",otpReq:!1,isSelected:Et===AADHAAR_AUTH_STATES.OTP,onClick:()=>gt(AADHAAR_AUTH_STATES.OTP)}),jsxRuntimeExports.jsx(AuthLoginCard,{icon:jsxRuntimeExports.jsx(l$1,{className:"pds2-w-30 pds2-h-20"}),text:"Face Auth",otpReq:!0,isSelected:Et===AADHAAR_AUTH_STATES.FACE_AUTH,onClick:()=>gt(AADHAAR_AUTH_STATES.FACE_AUTH)})]})]})]}):jsxRuntimeExports.jsx(Pds2InputField,{value:ot===ABHA_AUTH_FLOW_METHOD.MOBILE&&!$?nt||"":Pt,disabled:!$&&ot===ABHA_AUTH_FLOW_METHOD.MOBILE||!!nt&&!!Mt,onChange:cr,type:"tel",name:"phone",autoComplete:"tel",inputMode:"numeric",pattern:"[0-9]*",placeholder:"Mobile Number",autoFocus:!0,PrefixComponent:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-gap-x-8 pds2-border-r pds2-border-surface-muted 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-content-primary pds2-text-sm",children:"+91"})]})})}),Rt&&(_===ABHA_AUTH_FLOW_METHOD.MOBILE||_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)&&jsxRuntimeExports.jsx("div",{className:`${Rt.includes("KYC ABHA not found for")?"pds2-text-content-primary":"pds2-text-semantic-error"} Body3Regular`,children:Rt}),(_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER||_===ABHA_AUTH_FLOW_METHOD.MOBILE&&!et)&&jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(c$3,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!xr||ct===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:ct===LOADING_STATE.LOADING,onClick:()=>{_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&At&&Et===AADHAAR_AUTH_STATES.OTP&&_e&&!hasActionRunToday(FACE_AUTH_TRIED_KEY)&&_e?(markActionRunToday(FACE_AUTH_TRIED_KEY),o(!0)):gr("aadhaar_or_mobile_on_click")},className:"pds2-w-full"}),_===ABHA_AUTH_FLOW_METHOD.MOBILE&&et&&At&&jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(c$3,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!xr||ct===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:ct===LOADING_STATE.LOADING,onClick:()=>gr("aadhaar_or_mobile_on_click"),className:"pds2-w-full"}),jsxRuntimeExports.jsxs("div",{className:"BodyFootnote pds2-text-content-secondary",children:["By proceeding, you agree to"," ",jsxRuntimeExports.jsx("span",{className:"pds2-underline pds2-cursor-pointer",onClick:()=>ws(!0),children:"T&C"})]})]}),jsxRuntimeExports.jsx("div",{className:"pds2-pb-10",children:jsxRuntimeExports.jsxs("div",{className:"pds2-m-16 pds2-mb-32 pds2-bg-surface-base pds2-rounded-16 pds2-border pds2-border-surface-muted pds2-overflow-hidden",children:[jsxRuntimeExports.jsxs("button",{onClick:()=>ys(!Is),className:"pds2-w-full pds2-flex pds2-items-center pds2-justify-between pds2-p-16 pds2-bg-surface-base hover:pds2-bg-surface-muted pds2-transition-colors",children:[jsxRuntimeExports.jsx("span",{className:"pds2-text-content-secondary",children:_t?"Other add options for ABHA":"Other login options for ABHA"}),jsxRuntimeExports.jsx(c$3,{className:`pds2-w-16 pds2-h-16 pds2-text-content-secondary pds2-transition-transform ${Is?"pds2-rotate-180":""}`})]}),jsxRuntimeExports.jsxs("div",{className:`pds2-overflow-hidden pds2-transition-all pds2-duration-300 ${Is?"pds2-max-h-126 pds2-opacity-100":"pds2-max-h-0 pds2-opacity-0"}`,children:[jsxRuntimeExports.jsxs("button",{onClick:()=>{ys(!1),b(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER),ks(!0),Tt("")},className:"pds2-w-full pds2-flex pds2-items-center pds2-justify-between pds2-p-12 hover:pds2-bg-surface-muted 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-surface-muted 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-content-primary",children:_t?"Add patient with ABHA Number":"Login with ABHA Number"})]}),jsxRuntimeExports.jsx(c$3,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-text-content-secondary"})]}),jsxRuntimeExports.jsxs("button",{onClick:()=>{ys(!1),b(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS),Ts(!0),Tt("")},className:"pds2-w-full pds2-flex pds2-items-center pds2-justify-between pds2-p-12 hover:pds2-bg-surface-muted 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-surface-muted 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-content-primary",children:_t?"Add patient with ABHA Address":"Login with ABHA Address"})]}),jsxRuntimeExports.jsx(c$3,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-text-content-secondary"})]})]})]})}),jsxRuntimeExports.jsx(AbhaBottomSheet$1,{isOpen:sn,setIsOpen:ks,setFlowMethod:b,setError:Tt,children:jsxRuntimeExports.jsxs("div",{className:"pds2-p-24 pds2-text-center pds2-h-full pds2-flex pds2-flex-col",children:[(jt==null||jt===ABHA_INIT_FLOW.ABHA_REGISTRATION||jt===ABHA_INIT_FLOW.SCAN_AND_SHARE||jt===ABHA_INIT_FLOW.SCAN_AND_SHARE_KIOSK)&&jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-end pds2-mb-16",children:jsxRuntimeExports.jsx("button",{onClick:()=>{Tt(null),ks(!1),b(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)},className:"pds2-w-24 pds2-h-24 pds2-flex pds2-items-center pds2-justify-center pds2-text-content-secondary hover:pds2-text-content-primary",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-surface-subtle 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-content-primary",children:_t?"Add Patient with ABHA Number":"Login with ABHA Number"}),jsxRuntimeExports.jsx("p",{className:"Body2Regular pds2-text-content-secondary pds2-mb-24",children:_t?"Enter Patient's 14 digit ABHA Number":"Enter your 14 digit ABHA Number"}),jsxRuntimeExports.jsx(Pds2InputField,{value:ot===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&!$?nt||"":Kt,disabled:!$&&ot===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&!!nt,onChange:cr,placeholder:"00-0000-0000-0000",padding:"pds2-p-18",textStyle:"Body2Regular pds2-text-center pds2-text-lg",borderStyle:"focus-within:pds2-border-primary-brand",type:"tel",inputMode:"numeric",autoFocus:!0,onKeyDown:Wt=>{Wt.key==="Enter"&&gr("after_enter_abha_number_on_click_by_user")}}),Rt&&jsxRuntimeExports.jsx("div",{className:"pds2-text-semantic-error Body3Regular pds2-mt-12",children:Rt}),jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(c$3,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!st||ct===LOADING_STATE.LOADING?"disabled":"enabled",onClick:()=>gr("after_enter_abha_number_on_click_by_user"),className:`pds2-w-full ${Rt?"pds2-mt-12":"pds2-mt-24"}`,isLoading:ct===LOADING_STATE.LOADING})]})]})}),jsxRuntimeExports.jsx(AbhaBottomSheet$1,{isOpen:nn,setIsOpen:Ts,setFlowMethod:b,setError:Tt,children:jsxRuntimeExports.jsxs("div",{className:"pds2-p-24 pds2-text-center pds2-h-full pds2-flex pds2-flex-col",children:[(jt==null||jt===ABHA_INIT_FLOW.ABHA_REGISTRATION||jt===ABHA_INIT_FLOW.SCAN_AND_SHARE||jt===ABHA_INIT_FLOW.SCAN_AND_SHARE_KIOSK)&&jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-end pds2-mb-16",children:jsxRuntimeExports.jsx("button",{onClick:()=>{Tt(null),Ts(!1),b(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)},className:"pds2-w-24 pds2-h-24 pds2-flex pds2-items-center pds2-justify-center pds2-text-content-secondary hover:pds2-text-content-primary",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-surface-subtle 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-content-primary",children:_t?"Add Patient with ABHA Address":"Login with ABHA Address"}),jsxRuntimeExports.jsx("p",{className:"Body2Regular pds2-text-content-secondary pds2-mb-24",children:_t?"Enter Patient's ABHA Address below":"Enter your ABHA Address below"}),jsxRuntimeExports.jsxs("div",{className:"pds2-relative",children:[jsxRuntimeExports.jsx(Pds2InputField,{value:ot===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&!$?(nt==null?void 0:nt.split("@")[0])||"":ir,disabled:!$&&ot===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&!!nt,onChange:cr,placeholder:"Enter ABHA Address",inputMode:"text",autoFocus:!0,onKeyDown:Wt=>{Wt.key==="Enter"&&gr("after_enter_abha_address_on_click_by_user")}}),jsxRuntimeExports.jsx("div",{className:"pds2-absolute pds2-right-16 pds2-top-16 Body1Regular pds2-text-content-secondary",children:"@abdm"})]}),Rt&&jsxRuntimeExports.jsx("div",{className:"pds2-text-semantic-error Body3Regular pds2-mt-12",children:Rt}),jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(c$3,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!st||ct===LOADING_STATE.LOADING?"disabled":"enabled",onClick:()=>gr("after_enter_abha_address_on_click_by_user"),className:`pds2-w-full ${Rt?"pds2-mt-12":"pds2-mt-24"}`,isLoading:ct===LOADING_STATE.LOADING})]})]})}),jsxRuntimeExports.jsx(AbhaBottomSheet$1,{isOpen:an,setIsOpen:ws,setFlowMethod:b,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-h-10 pds2-justify-end pds2-mb-16",children:jsxRuntimeExports.jsx("button",{onClick:()=>{ws(!1)},className:"pds2-w-24 pds2-h-24 pds2-flex pds2-items-center pds2-justify-center pds2-text-content-secondary hover:pds2-text-content-primary",children:"✕"})}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex-1 pds2-h-4/5 pds2-flex pds2-flex-col pds2-justify-start",children:[jsxRuntimeExports.jsx("div",{className:"pds2-h-30 TitlesSubheadline pds2-pb-10",children:"Terms and Conditions"}),jsxRuntimeExports.jsxs("div",{className:"pds2-h-4/5 pds2-text-justify pds2-px-10 pds2-overflow-auto",children:["I, hereby declare that I am voluntarily sharing my Aadhaar number and demographic information issued by UIDAI, with National Health Authority (NHA) for the sole purpose of creation of ABHA number. ",jsxRuntimeExports.jsx("br",{})," ",jsxRuntimeExports.jsx("br",{}),'I understand that my ABHA number can be used and shared for purposes as may be notified by ABDM 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 (e.g. hospitals, laboratories) and data fiduciaries (e.g. health programmes), which are registered with or linked to the Ayushman Bharat Digital Mission (ABDM), and various processes there under. I authorize NHA to use my Aadhaar number for performing Aadhaar based authentication with UIDAI as per the provisions of the Aadhaar (Targeted Delivery of Financial and other Subsidies, Benefits and Services) Act, 2016 for the aforesaid purpose. I understand that UIDAI will share my e-KYC details, or response of "Yes" with NHA upon successful authentication. I have been duly informed about the option of using other IDs apart from Aadhaar; however, I consciously choose to use Aadhaar number for the purpose of availing benefits across the NDHE. I am aware that my personal identifiable information excluding Aadhaar number / VID number can be used and shared for purposes as mentioned above. I reserve the right to revoke the given consent at any point of time as per provisions of Aadhaar Act and Regulations.']}),jsxRuntimeExports.jsx(Pds2Button,{title:"I Agree",state:"enabled",onClick:()=>ws(!1),className:"pds2-w-full pds2-mt-20"})]})]})}),(_===ABHA_AUTH_FLOW_METHOD.MOBILE||_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)&&At&&et&&jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-center pds2-text-primary-brand",children:jsxRuntimeExports.jsx("div",{className:"pds2-absolute pds2-top-15 pds2-right-14 pds2-z-50 pds2-flex pds2-items-center pds2-justify-center",children:jsxRuntimeExports.jsx("button",{onClick:Ft,className:"pds2-bg-surface-subtle pds2-w-full pds2-py-4 pds2-px-15 pds2-rounded-12 Body2Regular pds2-text-content-primary hover:pds2-text-primary-brand pds2-border pds2-border-surface-muted",children:"Skip ABHA"})})}),a&&jsxRuntimeExports.jsx("div",{className:"pds2-w-full pds2-h-full pds2-absolute pds2-inset-0 pds2-z-50 pds2-flex pds2-flex-col pds2-bg-surface-base",children:jsxRuntimeExports.jsxs("div",{className:"pds2-px-16 pds2-pb-16 pds2-pt-150 pds2-space-y-16 pds2-overflow-y-auto pds2-flex-1 pds2-bg-surface-subtle",children:[jsxRuntimeExports.jsx("div",{className:"Title2Bold pds2-text-center pds2-w-full pds2-mx-auto pds2-text-content-primary",children:"Hasslefree patient addition"}),jsxRuntimeExports.jsxs("div",{className:"Title3Regular pds2-text-center pds2-w-full pds2-mx-auto pds2-text-content-primary",children:[jsxRuntimeExports.jsx("div",{children:"With Digital Health Incentive"})," Scheme, earn by linking records"," ",jsxRuntimeExports.jsx("div",{children:"to ABHA."})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-gap-20 pds2-w-full pds2-pt-20",children:[jsxRuntimeExports.jsx(Pds2Button,{title:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center",children:[jsxRuntimeExports.jsx(n$4,{className:"pds2-w-30 pds2-text-semantic-warning"}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-items-center",children:[jsxRuntimeExports.jsx("div",{children:"Try Face Auth"}),jsxRuntimeExports.jsx("div",{className:"Body4Regular",children:"Fastest. No OTP"})]})]}),buttonColor:"",className:"pds2-w-full",padding:"pds2-p-9",onClick:()=>{qt({name:"abha_try_face_auth_clicked",data:{flow:jt,platform:wt}}),gt(AADHAAR_AUTH_STATES.FACE_AUTH),gr("aadhaar_or_mobile_on_click",AADHAAR_AUTH_STATES.FACE_AUTH)}}),jsxRuntimeExports.jsx(Pds2Button,{textColor:"pds2-text-primary-brand",title:"Proceed with Aadhaar OTP",buttonColor:"pds2-bg-surface-base",className:"pds2-w-full pds2-border pds2-border-surface-muted",onClick:()=>{qt({name:"abha_proceed_with_aadhaar_otp_clicked",data:{flow:jt,platform:wt}}),gt(AADHAAR_AUTH_STATES.OTP),gr("aadhaar_or_mobile_on_click",AADHAAR_AUTH_STATES.OTP)}})]}),Rt&&jsxRuntimeExports.jsx("div",{className:"pds2-text-semantic-error pds2-text-center Body3Regular pds2-mt-12",children:Rt})]})})]})},AbhaBottomSheet$1=({isOpen:a,setIsOpen:o,children:_,setFlowMethod:b,overlayClassName:$="pds2-bg-content-primary pds2-bg-opacity-50",setError:_e})=>{const[et,tt]=reactExports.useState(a),rt=useAuthAbhaStore(it=>it.initAbhaFlow),st=GET_CLIENT_ID();return reactExports.useEffect(()=>{if(a)tt(!0);else{const it=setTimeout(()=>tt(!1),300);return()=>clearTimeout(it)}},[a]),et?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 ${$} pds2-transition-opacity pds2-duration-300 ${st==="ext"?"pds2-bg-surface-subtle":"pds2-bg-surface-neutral"}`,onClick:it=>{if(rt!=ABHA_INIT_FLOW.ABHA_REGISTRATION){it.stopPropagation();return}_e==null||_e(null),o(!1),b(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)}}),jsxRuntimeExports.jsx("div",{className:`pds2-relative ${st==="ext"?"pds2-bg-surface-subtle":"pds2-bg-surface-base"} 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},formatDateTime=(a,o={date:!0,time:!0})=>{const _=new Date(a);let b="",$="";return o.time&&(b=_.toLocaleTimeString("en-IN",{hour:"2-digit",minute:"2-digit",hour12:!0})),o.date&&($=_.toLocaleDateString("en-IN",{day:"2-digit",month:"short",year:"numeric"})),o.time&&o.date?`${b}, ${$}`:o.time?b:o.date?$:""};function ConsentCard(){var o,_,b,$,_e,et,tt,rt,st;const a=useAuthAbhaStore(it=>it.consentDetails);return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-p-16 pds2-rounded-16 pds2-bg-surface-base pds2-space-y-8",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-space-x-16",children:[jsxRuntimeExports.jsxs("div",{className:"Body2Semibold pds2-text-content-primary pds2-flex-1",children:[(o=a==null?void 0:a.hiu)==null?void 0:o.name,jsxRuntimeExports.jsx("div",{className:"Body2Regular",children:(_=a==null?void 0:a.hiu)==null?void 0:_.id})]}),(a==null?void 0:a.status)==ConsentStatus.REQUESTED&&jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-flex pds2-items-center pds2-gap-10 pds2-text-primary-brand pds2-bg-primary-brand/20 pds2-px-8 pds2-py-4 pds2-border-surface-neutral pds2-rounded-8",children:[jsxRuntimeExports.jsx(t$b,{}),"Pending"]}),(a==null?void 0:a.status)==ConsentStatus.GRANTED&&jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-flex pds2-items-center pds2-gap-10 pds2-text-content-enabled pds2-bg-semantic-success pds2-px-8 pds2-py-4 pds2-border-surface-neutral pds2-rounded-8",children:[jsxRuntimeExports.jsx(t$1,{}),"Granted"]}),(a==null?void 0:a.status)==ConsentStatus.EXPIRED&&jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-flex pds2-items-center pds2-gap-10 pds2-text-content-secondary pds2-bg-surface-subtle pds2-px-8 pds2-py-4 pds2-border-surface-neutral pds2-rounded-8",children:[jsxRuntimeExports.jsx(t$2,{}),"Expired"]}),(a==null?void 0:a.status)==ConsentStatus.DENIED&&jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-flex pds2-items-center pds2-gap-10 pds2-text-content-enabled pds2-bg-surface-danger pds2-px-8 pds2-py-4 pds2-border-surface-neutral pds2-rounded-8",children:[jsxRuntimeExports.jsx(t$2,{}),"Denied"]}),(a==null?void 0:a.status)==ConsentStatus.REVOKED&&jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-flex pds2-items-center pds2-gap-10 pds2-text-content-enabled pds2-bg-surface-danger pds2-px-8 pds2-py-4 pds2-border-surface-neutral pds2-rounded-8",children:[jsxRuntimeExports.jsx(t$2,{}),"Revoked"]})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-justify-between",children:[jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-text-content-secondary",children:"Type of Request"}),jsxRuntimeExports.jsx("div",{className:"Body2Regular pds2-text-content-primary",children:"consent"})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-justify-between",children:[jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-text-content-secondary",children:"Purpose of Request"}),jsxRuntimeExports.jsx("div",{className:"Body2Regular pds2-text-content-primary",children:(b=a==null?void 0:a.purpose)==null?void 0:b.text})]}),(($=a==null?void 0:a.duration)==null?void 0:$.from)&&((_e=a==null?void 0:a.duration)==null?void 0:_e.to)&&jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-justify-between",children:[jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-text-content-secondary",children:"Duration"}),jsxRuntimeExports.jsxs("div",{className:"Body2Regular pds2-text-content-secondary",children:[formatDateTime((et=a==null?void 0:a.duration)==null?void 0:et.from,{date:!0,time:!1})," - ",formatDateTime((tt=a==null?void 0:a.duration)==null?void 0:tt.to,{date:!0,time:!1})]})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-justify-between",children:[jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-text-content-secondary",children:"Requested by"}),jsxRuntimeExports.jsx("div",{className:"!Body2Regular pds2-text-content-secondary",children:((rt=a==null?void 0:a.requester)==null?void 0:rt.name)||((st=a==null?void 0:a.hiu)==null?void 0:st.name)})]}),(a==null?void 0:a.created_at)&&jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-justify-between",children:[jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-text-content-secondary",children:"Requested at"}),jsxRuntimeExports.jsx("div",{className:"!Body2Regular pds2-text-content-secondary",children:formatDateTime(a==null?void 0:a.created_at,{date:!0,time:!0})})]})]})]})}const ConsentHiTypeListCard=()=>{var _e;const a=useAuthAbhaStore(et=>et.consentDetails),o=useAuthAbhaStore(et=>et.consentApiBody),_=useAuthAbhaStore(et=>et.setConsentApiBody),b=(o==null?void 0:o.hi_types)??[],$=et=>{const tt=et.target.id,st=et.target.checked?[...b,tt]:b.filter(it=>it!==tt);_({hi_types:st})};return jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-rounded-16 pds2-bg-surface-base pds2-space-y-8",children:jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-flex-col ",children:(_e=a==null?void 0:a.hi_types)==null?void 0:_e.map((et,tt)=>jsxRuntimeExports.jsx("div",{className:`pds2-px-16 pds2-py-16 ${tt<a.hi_types.length-1?"pds2-border-b pds2-border-surface-muted":""}`,children:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-gap-10",children:[(a==null?void 0:a.status)===ConsentStatus.REQUESTED&&jsxRuntimeExports.jsx("input",{id:et.id,type:"checkbox",checked:b.includes(et.id),className:"pds2-accent-primary-brand",onChange:$}),jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-text-content-secondary",children:et.display})]})},et==null?void 0:et.id))})})},formatDateToBackendISO=a=>{const o=new Date;return new Date(`${a}T${o.getHours().toString().padStart(2,"0")}:${o.getMinutes().toString().padStart(2,"0")}:${o.getSeconds().toString().padStart(2,"0")}`).toISOString()},ConsentDurationCard=()=>{var tt,rt,st,it;const a=reactExports.useRef(null),o=reactExports.useRef(null),_=useAuthAbhaStore(lt=>lt.consentApiBody),b=useAuthAbhaStore(lt=>lt.setConsentApiBody),$=useAuthAbhaStore(lt=>lt.consentDetails),_e=new Date,et=(lt,at)=>{const ft=formatDateToBackendISO(at);b({duration:{..._==null?void 0:_.duration,[lt]:ft}})};return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-py-6 pds2-flex-col pds2-w-full pds2-rounded-16 pds2-bg-surface-base pds2-space-y-8",children:[jsxRuntimeExports.jsx("div",{className:"pds2-px-16 pds2-py-6 Body3Regular pds2-text-content-secondary",children:jsxRuntimeExports.jsxs("div",{className:`${($==null?void 0:$.status)===ConsentStatus.GRANTED?"":"pds2-flex pds2-items-center pds2-justify-between"} pds2-border-b pds2-border-surface-muted`,children:[jsxRuntimeExports.jsxs("div",{className:`${($==null?void 0:$.status)===ConsentStatus.GRANTED?"pds2-flex pds2-justify-between":""}`,children:["From",jsxRuntimeExports.jsx("div",{className:"Body2Regular pds2-text-content-primary",children:((tt=_==null?void 0:_.duration)==null?void 0:tt.from)&&formatDateTime((rt=_==null?void 0:_.duration)==null?void 0:rt.from,{date:!0,time:!1})})]}),($==null?void 0:$.status)===ConsentStatus.REQUESTED&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(n,{className:"pds2-text-primary-brand pds2-text-16",onClick:()=>{var lt;return(lt=a.current)==null?void 0:lt.showPicker()}}),jsxRuntimeExports.jsx("input",{className:"pds2-absolute pds2-opacity-0 pds2-pointer-events-none",ref:a,type:"date",max:_e.toISOString().split("T")[0],onChange:lt=>et("from",lt.target.value)})]})]})}),jsxRuntimeExports.jsx("div",{className:"pds2-px-16 pds2-py-6 Body3Regular pds2-text-content-secondary",children:jsxRuntimeExports.jsxs("div",{className:`${($==null?void 0:$.status)===ConsentStatus.GRANTED?"":"pds2-flex pds2-items-center pds2-justify-between"} pds2-border-b pds2-border-surface-muted`,children:[jsxRuntimeExports.jsxs("div",{className:`${($==null?void 0:$.status)===ConsentStatus.GRANTED?"pds2-flex pds2-justify-between":""}`,children:["To",jsxRuntimeExports.jsx("div",{className:"Body2Regular pds2-text-content-primary",children:((st=_==null?void 0:_.duration)==null?void 0:st.to)&&formatDateTime((it=_==null?void 0:_.duration)==null?void 0:it.to,{date:!0,time:!1})})]}),($==null?void 0:$.status)===ConsentStatus.REQUESTED&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(n,{className:"pds2-text-primary-brand pds2-text-16",onClick:()=>{var lt;return(lt=o.current)==null?void 0:lt.showPicker()}}),jsxRuntimeExports.jsx("input",{className:"pds2-absolute pds2-opacity-0 pds2-pointer-events-none",ref:o,type:"date",max:_e.toISOString().split("T")[0],onChange:lt=>et("to",lt.target.value)})]})]})}),jsxRuntimeExports.jsxs("div",{className:`pds2-px-16 pds2-py-6 Body3Regular pds2-text-content-secondary ${($==null?void 0:$.status)===ConsentStatus.GRANTED?"pds2-flex pds2-justify-between":""}`,children:["Expires on",(_==null?void 0:_.erase_at)&&jsxRuntimeExports.jsx("div",{className:"Body2Regular pds2-text-content-primary",children:formatDateTime(_==null?void 0:_.erase_at,{date:!0,time:!0})})]})]})},ConsentHCPCard=()=>{var vt,ut,ot;const a=useAuthAbhaStore(nt=>nt.consentDetails),o=(vt=a==null?void 0:a.providers)==null?void 0:vt.reduce((nt,dt)=>(nt[dt.hip.id]=dt.care_contexts,nt),{}),_=useAuthAbhaStore(nt=>nt.setConsentApiBody),[b,$]=reactExports.useState(o||{}),[_e,et]=reactExports.useState([]),tt=()=>{var nt;return(nt=Object==null?void 0:Object.entries(b??{}))==null?void 0:nt.map(([dt,yt])=>({hip_id:dt,care_contexts:yt}))};reactExports.useEffect(()=>{const nt=tt();_({consent_artefacts:nt})},[b]);const rt=nt=>{et(dt=>dt.includes(nt)?dt.filter(yt=>yt!==nt):[...dt,nt])},st=nt=>_e.includes(nt),it=(ut=a==null?void 0:a.providers)==null?void 0:ut.every(nt=>b[nt.hip.id].length===nt.care_contexts.length&&nt.care_contexts.length>0),lt=nt=>{var dt;return((dt=b[nt.hip.id])==null?void 0:dt.length)===nt.care_contexts.length},at=(nt,dt)=>{var yt;return(yt=b[nt])==null?void 0:yt.some(_t=>_t.id===dt)},ft=nt=>{if(nt){const dt=a==null?void 0:a.providers.reduce((yt,_t)=>(yt[_t.hip.id]=_t.care_contexts,yt),{});$(dt||{})}else{const dt=a==null?void 0:a.providers.reduce((yt,_t)=>(yt[_t.hip.id]=[],yt),{});$(dt||{})}},ht=(nt,dt)=>{const yt=nt.hip.id;$(_t=>({..._t,[yt]:dt?nt.care_contexts:[]}))},pt=(nt,dt,yt)=>{$(_t=>{const At=_t[nt]??[];let xt;return yt?xt=[...At,dt]:xt=At.filter(wt=>wt.id!==dt.id),{..._t,[nt]:xt}})};return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-flex pds2-gap-10 pds2-px-16 pds2-py-16 pds2-uppercase pds2-border-b pds2-border-surface-muted",children:[jsxRuntimeExports.jsx("input",{type:"checkbox",className:"pds2-accent-primary-brand",checked:it,onChange:nt=>{if((a==null?void 0:a.status)!=ConsentStatus.REQUESTED){nt.preventDefault();return}ft(nt.target.checked)},onClick:nt=>{(a==null?void 0:a.status)!=ConsentStatus.REQUESTED&&(nt.preventDefault(),nt.stopPropagation())}}),"All"]}),(ot=a==null?void 0:a.providers)==null?void 0:ot.map(nt=>{const dt=nt.hip.id;return jsxRuntimeExports.jsxs("div",{className:"Body3Medium",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-justify-between pds2-items-center pds2-cursor-pointer",onClick:()=>rt(dt),children:[jsxRuntimeExports.jsxs("div",{className:" pds2-flex pds2-gap-10 pds2-px-16 pds2-py-16 pds2-text-content-secondary",children:[jsxRuntimeExports.jsx("input",{type:"checkbox",className:"pds2-accent-primary-brand",checked:lt(nt),onChange:yt=>{if((a==null?void 0:a.status)!=ConsentStatus.REQUESTED){yt.preventDefault();return}ht(nt,yt.target.checked)},onClick:yt=>{(a==null?void 0:a.status)!=ConsentStatus.REQUESTED&&(yt.preventDefault(),yt.stopPropagation())}}),nt.hip.name]}),jsxRuntimeExports.jsx("div",{className:"pds2-pr-16",children:st(dt)?jsxRuntimeExports.jsx(e,{}):jsxRuntimeExports.jsx(c$3,{})})]}),st(dt)&&jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-rounded-16 pds2-bg-surface-base pds2-space-y-8",children:nt.care_contexts.map((yt,_t)=>jsxRuntimeExports.jsx("div",{className:`pds2-px-24 pds2-py-16 ${_t<nt.care_contexts.length-1?"pds2-border-b pds2-border-surface-muted":""}`,children:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-gap-10",children:[jsxRuntimeExports.jsx("input",{type:"checkbox",className:"pds2-accent-primary-brand",checked:at(dt,yt.id),onChange:At=>{if((a==null?void 0:a.status)!=ConsentStatus.REQUESTED){At.preventDefault();return}pt(dt,yt,At.target.checked)},onClick:At=>{(a==null?void 0:a.status)!=ConsentStatus.REQUESTED&&(At.preventDefault(),At.stopPropagation())}}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-gap-5 pds2-flex-col",children:[jsxRuntimeExports.jsx("div",{className:"!Body2Regular pds2-text-content-primary",children:yt.display}),jsxRuntimeExports.jsx("div",{className:"!Body3Regular pds2-text-content-secondary",children:yt.id})]})]})},yt.id))})]},dt)})]})},AbhaLoadingStatus=({loaderText:a})=>jsxRuntimeExports.jsxs("div",{className:"pds2-bg-surface-subtle pds2-px-16 pds2-w-full pds2-min-h-full pds2-flex pds2-flex-col pds2-items-center pds2-justify-center pds2-text-center",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-gap-10",children:[jsxRuntimeExports.jsx("div",{className:"pds2-w-12 pds2-h-12 pds2-bg-primary-brand pds2-rounded-full"}),jsxRuntimeExports.jsx("div",{className:"pds2-w-12 pds2-h-12 pds2-bg-primary-brand pds2-rounded-full"}),jsxRuntimeExports.jsx("div",{className:"pds2-w-12 pds2-h-12 pds2-bg-primary-brand pds2-rounded-full"})]}),jsxRuntimeExports.jsx("div",{className:"pds2-text-content-primary Heading4Semibold pds2-mt-48",children:a||"Loading"})]}),ConsentDetailsScreen=()=>{const a=useAuthAbhaStore(et=>et.setScreen),o=useAuthAbhaStore(et=>et.initAbhaFlow),_=useAuthAbhaStore(et=>et.clientId),b=useAuthAbhaStore(et=>et.consentDetails),$={REQUESTED:"Consent Request Details",GRANTED:"Granted Consent Details",DENIED:"Consent Denied Details",EXPIRED:"Consent Expired Details",REVOKED:"Consent Revoked Details"},_e=useTrackAbhaEvent();return b||_e({name:"abha_consent_details_screen",data:{page_view:"abha_consent_details_screen",platform:_,error:"consent details not found",flow:o}}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-base",children:b?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Pds2Header,{title:`${b!=null&&b.status?$[b.status]??"":""}`,className:"pds2-border-b-1 pds2-border-surface-muted"}),jsxRuntimeExports.jsxs("div",{className:"pds2-p-16 pds2-space-y-16 pds2-overflow-y-auto pds2-flex-1 pds2-bg-surface-subtle",children:[jsxRuntimeExports.jsx(ConsentCard,{}),jsxRuntimeExports.jsx("div",{className:"Body3Semibold pds2-text-content-secondary",children:"DURATION"}),jsxRuntimeExports.jsx(ConsentDurationCard,{}),jsxRuntimeExports.jsx("div",{className:"Body3Semibold pds2-text-content-secondary",children:"REQUEST INFORMATION TYPE"}),jsxRuntimeExports.jsx(ConsentHiTypeListCard,{}),jsxRuntimeExports.jsxs("div",{className:"Body3Semibold pds2-text-content-secondary",children:["HEALTH CARE PROVIDERS",jsxRuntimeExports.jsx("br",{}),"Sharing your data for requested information, from following healthcare providers:"]}),jsxRuntimeExports.jsx(ConsentHCPCard,{}),jsxRuntimeExports.jsx("div",{className:"Body3Semibold pds2-text-content-secondary",children:"By granting this consent, you agree to let the Doctors view your health information."})]}),["REQUESTED","GRANTED"].includes(b.status)&&jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-gap-10 pds2-p-16 pds2-sticky pds2-bottom-0 pds2-bg-surface-base pds2-w-full pds2-border pds2-border-surface-muted",children:[b.status==="REQUESTED"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Pds2Button,{title:"Deny",buttonColor:"pds2-bg-surface-danger",className:"pds2-w-full",onClick:()=>a(SCREEN_NAMES.CONSENT_DENY)}),jsxRuntimeExports.jsx(Pds2Button,{title:"Grant Access",buttonColor:"pds2-bg-semantic-success",className:"pds2-w-full",onClick:()=>a(SCREEN_NAMES.CONSENT_APPROVE)})]}),b.status==="GRANTED"&&jsxRuntimeExports.jsx(Pds2Button,{title:"Revoke Access",buttonColor:"pds2-bg-surface-danger",className:"pds2-w-full",onClick:()=>a(SCREEN_NAMES.CONSENT_REVOKE)})]})]}):jsxRuntimeExports.jsx(AbhaLoadingStatus,{})})},v$2="5.9.6",fr$2=30,ip$2=0,op$2=10,w$2=400,h$2=400,nm$2="Композиция 1",ddd$1=0,assets$2=[{id:"comp_0",nm:"closr",fr:30,layers:[{ddd:0,ind:1,ty:4,nm:"Кривые Слой 6",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.167],y:[0]},t:0,s:[0]},{i:{x:[.111],y:[.313]},o:{x:[.333],y:[0]},t:9,s:[0]},{i:{x:[.666],y:[1]},o:{x:[.157],y:[0]},t:15,s:[100]},{i:{x:[.795],y:[1]},o:{x:[.436],y:[0]},t:50,s:[100]},{t:59,s:[0]}],ix:11},r:{a:1,k:[{i:{x:[.464],y:[1.145]},o:{x:[.333],y:[0]},t:5,s:[134]},{i:{x:[.833],y:[1]},o:{x:[.167],y:[0]},t:16,s:[0]},{i:{x:[.833],y:[1]},o:{x:[.167],y:[0]},t:50,s:[0]},{t:59,s:[125]}],ix:10},p:{a:0,k:[200,200,0],ix:2,l:2},a:{a:0,k:[43.184,43.184,0],ix:1,l:2},s:{a:1,k:[{i:{x:[0,0,.667],y:[1.194,1.194,1]},o:{x:[.773,.773,.333],y:[0,0,0]},t:7,s:[130,130,100]},{i:{x:[.664,.664,.664],y:[1,1,1]},o:{x:[.157,.157,.157],y:[0,0,0]},t:16,s:[100,100,100]},{i:{x:[.796,.796,.796],y:[1,1,1]},o:{x:[.436,.436,.436],y:[0,0,0]},t:50,s:[100,100,100]},{t:59,s:[30,30,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]],o:[[0,0],[0,0]],v:[[-38.184,38.184],[38.184,-38.184]],c:!1},ix:2},nm:"Контур 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,.999998743394,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:20,ix:5},lc:2,lj:1,ml:10,bm:0,nm:"Обводка 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.456032696892,.725485827876,.257378462249,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Заливка 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[43.184,43.184],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Преобразовать"}],nm:"Группа 1",np:3,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:[[-38.184,-38.184],[38.184,38.184]],c:!1},ix:2},nm:"Контур 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,.999998743394,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:20,ix:5},lc:2,lj:1,ml:10,bm:0,nm:"Обводка 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.456032696892,.725485827876,.257378462249,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Заливка 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[43.184,43.184],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Преобразовать"}],nm:"Группа 2",np:3,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1}],ip:0,op:311,st:0,ct:1,bm:0},{ddd:0,ind:2,ty:4,nm:"Кривые Слой 5",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:0,s:[0]},{t:3,s:[100]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[200,200,0],ix:2,l:2},a:{a:0,k:[96.25,96.25,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.524,.524,.667],y:[1.264,1.264,1]},o:{x:[.712,.712,.333],y:[0,0,0]},t:-.566,s:[4,4,100]},{i:{x:[.833,.833,.833],y:[1,1,1]},o:{x:[.517,.517,.333],y:[0,0,0]},t:17,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[1,1,.167],y:[-.624,-.624,-16.667]},t:49,s:[100,100,100]},{t:61.208984375,s:[0,0,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,-53.019],[53.019,0],[0,53.019],[-53.019,0]],o:[[0,53.019],[-53.019,0],[0,-53.019],[53.019,0]],v:[[96,0],[0,96],[-96,0],[0,-96]],c:!0},ix:2},nm:"Контур 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.898595114315,.179309067072,.190338763069,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Заливка 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[96.25,96.25],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Преобразовать"}],nm:"Группа 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:311,st:0,ct:1,bm:0}]}],layers$2=[{ddd:0,ind:1,ty:0,nm:"closr",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[200,200,0],ix:2,l:2},a:{a:0,k:[200,200,0],ix:1,l:2},s:{a:0,k:[154,154,100],ix:6,l:2}},ao:0,w:400,h:400,ip:0,op:311,st:0,bm:0}],markers$2=[],animationDataLoading={v:v$2,fr:fr$2,ip:ip$2,op:op$2,w:w$2,h:h$2,nm:nm$2,ddd:ddd$1,assets:assets$2,layers:layers$2,markers:markers$2},v$1="5.9.6",fr$1=30,ip$1=0,op$1=50,w$1=400,h$1=400,nm$1="Композиция 1",ddd=0,assets$1=[{id:"comp_0",nm:"closr",fr:30,layers:[{ddd:0,ind:1,ty:4,nm:"Кривые Слой 6",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.167],y:[0]},t:0,s:[0]},{i:{x:[.111],y:[.313]},o:{x:[.333],y:[0]},t:9,s:[0]},{i:{x:[.666],y:[1]},o:{x:[.157],y:[0]},t:15,s:[100]},{i:{x:[.795],y:[1]},o:{x:[.436],y:[0]},t:50,s:[100]},{t:59,s:[0]}],ix:11},r:{a:1,k:[{i:{x:[.464],y:[1.145]},o:{x:[.333],y:[0]},t:5,s:[134]},{i:{x:[.833],y:[1]},o:{x:[.167],y:[0]},t:16,s:[0]},{i:{x:[.833],y:[1]},o:{x:[.167],y:[0]},t:50,s:[0]},{t:59,s:[125]}],ix:10},p:{a:0,k:[200,200,0],ix:2,l:2},a:{a:0,k:[43.184,43.184,0],ix:1,l:2},s:{a:1,k:[{i:{x:[0,0,.667],y:[1.194,1.194,1]},o:{x:[.773,.773,.333],y:[0,0,0]},t:7,s:[130,130,100]},{i:{x:[.664,.664,.664],y:[1,1,1]},o:{x:[.157,.157,.157],y:[0,0,0]},t:16,s:[100,100,100]},{i:{x:[.796,.796,.796],y:[1,1,1]},o:{x:[.436,.436,.436],y:[0,0,0]},t:50,s:[100,100,100]},{t:59,s:[30,30,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]],o:[[0,0],[0,0]],v:[[-38.184,38.184],[38.184,-38.184]],c:!1},ix:2},nm:"Контур 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,.999998743394,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:20,ix:5},lc:2,lj:1,ml:10,bm:0,nm:"Обводка 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.456032696892,.725485827876,.257378462249,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Заливка 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[43.184,43.184],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Преобразовать"}],nm:"Группа 1",np:3,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:[[-38.184,-38.184],[38.184,38.184]],c:!1},ix:2},nm:"Контур 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,.999998743394,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:20,ix:5},lc:2,lj:1,ml:10,bm:0,nm:"Обводка 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.456032696892,.725485827876,.257378462249,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Заливка 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[43.184,43.184],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Преобразовать"}],nm:"Группа 2",np:3,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1}],ip:0,op:311,st:0,ct:1,bm:0},{ddd:0,ind:2,ty:4,nm:"Кривые Слой 5",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:0,s:[0]},{t:3,s:[100]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[200,200,0],ix:2,l:2},a:{a:0,k:[96.25,96.25,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.524,.524,.667],y:[1.264,1.264,1]},o:{x:[.712,.712,.333],y:[0,0,0]},t:-.566,s:[4,4,100]},{i:{x:[.833,.833,.833],y:[1,1,1]},o:{x:[.517,.517,.333],y:[0,0,0]},t:17,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[1,1,.167],y:[-.624,-.624,-16.667]},t:49,s:[100,100,100]},{t:61.208984375,s:[0,0,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,-53.019],[53.019,0],[0,53.019],[-53.019,0]],o:[[0,53.019],[-53.019,0],[0,-53.019],[53.019,0]],v:[[96,0],[0,96],[-96,0],[0,-96]],c:!0},ix:2},nm:"Контур 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.898595114315,.179309067072,.190338763069,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Заливка 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[96.25,96.25],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Преобразовать"}],nm:"Группа 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:311,st:0,ct:1,bm:0}]}],layers$1=[{ddd:0,ind:1,ty:0,nm:"closr",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[200,200,0],ix:2,l:2},a:{a:0,k:[200,200,0],ix:1,l:2},s:{a:0,k:[154,154,100],ix:6,l:2}},ao:0,w:400,h:400,ip:0,op:311,st:0,bm:0}],markers$1=[],animationData$1={v:v$1,fr:fr$1,ip:ip$1,op:op$1,w:w$1,h:h$1,nm:nm$1,ddd,assets:assets$1,layers:layers$1,markers:markers$1},AbhaRejectionStatus=({loading:a=!1,loadingText:o,rejectText:_})=>jsxRuntimeExports.jsx("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 pds2-bg-surface-subtle",children:a?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Lottie,{animationData:animationDataLoading,loop:!0,className:"pds2-w-200"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-content-primary Heading4Semibold pds2-absolute pds2-mt-220",children:o})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Lottie,{animationData:animationData$1,loop:!1,className:"pds2-w-200"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-content-primary Heading4Semibold pds2-absolute pds2-mt-220",children:_})]})}),AbhaConsentDenyScreen=()=>{const[a,o]=reactExports.useState(!0),_=useAuthAbhaStore(it=>it.clientId),b=useAuthAbhaStore(it=>it.initAbhaFlow),$=useAuthAbhaStore(it=>it.abhaRequestConsentId),_e=useAuthAbhaStore(it=>it.goBackLoginScreen),et=useAuthAbhaStore(it=>it.setBottomsheetErrorInfo),tt=useTrackAbhaEvent(),rt=()=>{tt({name:"abha_consent_revoke_error_bottomsheet_dismissed",data:{platform:_,flow:b}}),et(null),_e(),setIndividualEnv({extraHeaders:{auth:""}})},st=async()=>{if(!$){tt({name:"abha_consent_deny_screen",data:{page_view:"abha_consent_request_page",platform:_,data:{flow:b,error_msg:"No consent ID found"}}}),console.error("No consent ID found");return}tt({name:"abha_consent_revoke_triggered",data:{flow_step_type:"init",clientId:_,flow:b}});const it=await postAbdmConsentDeny({consentId:$});if("success"in it){console.log("Success"),o(!1),setTimeout(()=>{onConsentSuccess("Consent deny success onConsentSuccess called, next page redirect"),window.location.href="https://www.eka.care/s/for-patients"},3e3),tt({name:"abha_consent_deny_success",data:{flow:b,flow_step_type:"init",clientId:_}});return}const{code:lt,error:at,source_error:ft}=it;et({title:"Please try again.",img:"",description:"Something went wrong.",cta:{title:"",pid:"",params:null}}),tt({name:"abha_consent_revoke_failed",data:{flow_step_type:"init",clientId:_,flow:b,error_code:lt,error_msg:at,source_error:ft}})};return reactExports.useEffect(()=>{st()},[]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(AbhaRejectionStatus,{loading:a,loadingText:"Denying...",rejectText:"Consent Denied Successfully!"}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:rt})]})},AbhaConsentRevokeScreen=()=>{const[a,o]=reactExports.useState(!0),_=useAuthAbhaStore(it=>it.clientId),b=useAuthAbhaStore(it=>it.initAbhaFlow),$=useAuthAbhaStore(it=>it.setBottomsheetErrorInfo),_e=useAuthAbhaStore(it=>it.goBackLoginScreen),et=useAuthAbhaStore(it=>it.consentApiBody),tt=useTrackAbhaEvent(),rt=()=>{tt({name:"abha_consent_revoke_error_bottomsheet_dismissed",data:{platform:_,flow:b}}),$(null),_e(),setIndividualEnv({extraHeaders:{auth:""}})},st=async()=>{if(!(et!=null&&et.consent_artefacts_id)){tt({name:"abha_consent_revoke_screen",data:{page_view:"abha_consent_request_page",flow:b,platform:_,data:{error_msg:"No consent artefacts ids found"}}}),console.error("No consent artefacts ids found");return}const it=await postAbdmConsentRevoke({consent_artefacts_ids:et==null?void 0:et.consent_artefacts_id});if("success"in it){console.log("Success"),o(!1),setTimeout(()=>{onConsentSuccess("Consent revoke success onConsentSuccess called, next page redirect"),window.location.href="https://www.eka.care/s/for-patients"},3e3),tt({name:"abha_consent_revoke_success",data:{flow:b,flow_step_type:"init",clientId:_}});return}const{code:lt,error:at,source_error:ft}=it;$({title:"Please try again.",img:"",description:"Something went wrong.",cta:{title:"",pid:"",params:null}}),tt({name:"abha_consent_revoke_failed",data:{flow:b,flow_step_type:"init",clientId:_,error_code:lt,error_msg:at,source_error:ft}})};return reactExports.useEffect(()=>{st()},[]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(AbhaRejectionStatus,{loading:a,loadingText:"Revoke in progress...",rejectText:"Consent Revoked Successfully!"}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:rt})]})},AbhaConsentApproveScreen=()=>{const[a,o]=reactExports.useState(!0),_=useAuthAbhaStore(it=>it.clientId),b=useAuthAbhaStore(it=>it.initAbhaFlow),$=useAuthAbhaStore(it=>it.consentApiBody),_e=useAuthAbhaStore(it=>it.goBackLoginScreen),et=useAuthAbhaStore(it=>it.setBottomsheetErrorInfo),tt=useTrackAbhaEvent(),rt=()=>{tt({name:"abha_consent_approve_error_bottomsheet_dismissed",data:{platform:_,flow:b}}),et(null),_e(),setIndividualEnv({extraHeaders:{auth:""}})},st=async()=>{if(!$){tt({name:"abha_consent_approve_screen",data:{page_view:"abha_consent_request_page",platform:_,data:{flow:b,error_msg:"No consent details found"}}}),console.error("No consent details found");return}const{consent_artefacts_id:it,...lt}=$,at=await postAbdmConsentApprove({consentApprovePayload:lt});if("success"in at){console.log("Success"),o(!1),setTimeout(()=>{onConsentSuccess("Consent grant success onConsentSuccess called, next page redirect"),window.location.href="https://www.eka.care/s/for-patients"},3e3),tt({name:"abha_consent_grant_success",data:{flow:b,flow_step_type:"init",clientId:_}});return}const{code:ft,error:ht,source_error:pt}=at;et({title:"Please try again.",img:"",description:"Something went wrong.",cta:{title:"",pid:"",params:null}}),tt({name:"abha_consent_grant_failed",data:{flow:b,flow_step_type:"init",clientId:_,error_code:ft,error_msg:ht,source_error:pt}})};return reactExports.useEffect(()=>{st()},[]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:a,loadingText:"Grant in progress...",successText:"Consent Granted Successfully!"}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:rt})]})};function SelfAssessmentSDKIframe({src:a,mountConfig:o,iframeId:_="sa-sdk-iframe"}){const b=reactExports.useRef(null),$=reactExports.useRef(null);return reactExports.useEffect(()=>{var it;const _e=b.current;if(!_e)return;$.current&&($.current.remove(),$.current=null);const et=document.createElement("iframe");$.current=et,et.id=_,et.style.width="100%",et.style.height="100%",et.style.border="0",_e.appendChild(et);const tt=(it=et.contentWindow)==null?void 0:it.document;if(!tt)return;const rt=`
65
+ ${b?"pds2-text-primary-brand":""}`,children:o})]})]})}),hasActionRunToday=a=>{const o=localStorage.getItem(a),_=new Date().toISOString().split("T")[0];return o===_},markActionRunToday=a=>{const o=new Date().toISOString().split("T")[0];localStorage.setItem(a,o)},LoginorCreateAbhaScreen=()=>{const a=useAuthAbhaStore(_e=>_e.clientId),[o,_]=reactExports.useState(!1);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 b=()=>{var _e;o?_(!1):((_e=window.EkaAbha)==null||_e.onAbhaClose(),unMount())},$=["eka-web","phr","www-eka"];return jsxRuntimeExports.jsxs("div",{className:`pds2-h-full ${o?"pds2-overflow-y-hidden ":"pds2-overflow-y-auto"}`,children:[jsxRuntimeExports.jsx(Pds2Header,{prefixIcon:!o&&jsxRuntimeExports.jsx("button",{onClick:b,children:jsxRuntimeExports.jsx(n$3,{})}),title:"",className:"pds2-bg-surface-subtle",showHeaderStrip:!$.includes(a)}),jsxRuntimeExports.jsx(LoginOrCreateWithDifferentMethods,{tryFaceAuthScreen:o,setTryFaceAuthScreen:_})]})},LoginOrCreateWithDifferentMethods=({tryFaceAuthScreen:a,setTryFaceAuthScreen:o})=>{const _=useAuthAbhaStore(Wt=>Wt.abhaAuthFlowMethod||ABHA_AUTH_FLOW_METHOD.MOBILE),b=useAuthAbhaStore(Wt=>Wt.setAbhaAuthFlowMethod),$=useAuthAbhaStore(Wt=>Wt.goBackToLogin),_e=useAuthAbhaStore(Wt=>Wt.isEkaDocWebRequest),et=useAuthAbhaStore(Wt=>Wt.isSkipABHAEnable),tt=useAuthAbhaStore(Wt=>Wt.setGoBackToLogin),rt=useAuthAbhaStore(Wt=>Wt.setIdentifierValue),st=useAuthAbhaStore(Wt=>Wt.identifierValue),it=useAuthAbhaStore(Wt=>Wt.isEkaAppLogin),lt=useAuthAbhaStore(Wt=>Wt.setSelectedAbhaAddress),at=useAuthAbhaStore(Wt=>Wt.setLoginIdentifierValue),ft=useAuthAbhaStore(Wt=>Wt.setRegistrationType),ht=useAuthAbhaStore(Wt=>Wt.setAadhaarInitResponse),pt=useAuthAbhaStore(Wt=>Wt.setAadhaarFaceAuthInitResponse),vt=useAuthAbhaStore(Wt=>Wt.setMobileInitResponse),ut=useAuthAbhaStore(Wt=>Wt.initAbhaAppMobileNumber),ot=useAuthAbhaStore(Wt=>Wt.initAbhaAppIdentifierType),nt=useAuthAbhaStore(Wt=>Wt.initAbhaAppIdentifier),dt=useAuthAbhaStore(Wt=>Wt.setInitAbhaAppIdentifier),yt=useAuthAbhaStore(Wt=>Wt.setInitAbhaAppIdentifierType),_t=useAuthAbhaStore(Wt=>Wt.isDocAppRequest),At=useAuthAbhaStore(Wt=>Wt.faceAuthEnable),xt=useAuthAbhaStore(Wt=>Wt.setIsNewLoginOrCreateFlow),wt=useAuthAbhaStore(Wt=>Wt.clientId),Tt=useAuthAbhaStore(Wt=>Wt.isInitApiTriggered),It=useAuthAbhaStore(Wt=>Wt.setIsInitApiTriggered),Nt=useAuthAbhaStore(Wt=>Wt.setIdentityValue);useAuthAbhaStore(Wt=>Wt.identityValue);const Ct=useAuthAbhaStore(Wt=>Wt.setSelectedAbhaFlow),jt=useAuthAbhaStore(Wt=>Wt.initAbhaFlow),Et=useAuthAbhaStore(Wt=>Wt.selectedAadhaarAuth),gt=useAuthAbhaStore(Wt=>Wt.setSelectedAadhaarAuth),St=useAuthAbhaStore(Wt=>Wt.orgIconUrl),[ct,mt]=reactExports.useState(LOADING_STATE.IDLE),[Rt,kt]=reactExports.useState(""),Dt=useAuthAbhaStore(Wt=>Wt.setScreen),[bt,Ht]=reactExports.useState({aadhaar:LOADING_STATE.IDLE,mobile:LOADING_STATE.IDLE}),[Pt,Lt]=reactExports.useState($?st==null?void 0:st.mobile:""),[Bt,$t]=reactExports.useState(!1),[Vt,Gt]=reactExports.useState(!1),[zt,Qt]=reactExports.useState(st.aadhaar_number||""),[Kt,Ut]=reactExports.useState(st.abha_number||""),[Jt,ur]=reactExports.useState(""),[ir,tr]=reactExports.useState(st.phr_address||""),Zt=reactExports.useRef(!1),Xt=GET_EXTRA_HEADERS(),Mt=(Xt==null?void 0:Xt["X-User-ID"])??void 0;reactExports.useEffect(()=>{qt({name:"abha_login_or_create_screen",data:{flow:jt}}),handleReadOTP()},[]);const Ft=()=>{et&&_e&&!hasActionRunToday(EARN_ABHA_SCREEN_TRIED_KEY)&&_e?(markActionRunToday(EARN_ABHA_SCREEN_TRIED_KEY),Dt(SCREEN_NAMES.EARN_WITH_ABHA_SCREEN)):(qt({name:"abha_skip_earn_with_abha_clicked",data:{flow:jt,platform:wt}}),onSkipAbha({identifier:(st==null?void 0:st.mobile)||(st==null?void 0:st.aadhaar_number)||(st==null?void 0:st.abha_number)||(st==null?void 0:st.phr_address)||"",identifier_type:st!=null&&st.mobile?"mobile":"aadhaar_number"}),unMount())},ar=async Wt=>{var mr;try{mt(LOADING_STATE.LOADING);const lr=await postAbdmProfileSearch({mobile:Wt});if(((mr=lr==null?void 0:lr.profiles)==null?void 0:mr.length)>0&&nt)Lt(nt);else{mt(LOADING_STATE.REJECTED),b(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),kt(`KYC ABHA not found for ${nt}. Please register with Aadhaar.`);return}}catch(lr){console.error("Error searching ABDM profile:",lr),mt(LOADING_STATE.REJECTED),b(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)}};reactExports.useEffect(()=>{nt&&ot===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&!$?(ur(nt),tr(nt.split("@")[0]),rt({phr_address:nt.split("@")[0]}),ys(!0),Ts(!0),b(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS)):nt&&ot===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&!$?(rt({abha_number:nt}),Ut(nt),ys(!0),ks(!0),b(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER)):nt&&ot===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!$?(Qt(nt),Gt(!0),rt({aadhaar_number:nt}),b(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)):nt&&ot===ABHA_AUTH_FLOW_METHOD.MOBILE&&!$&&(b(ABHA_AUTH_FLOW_METHOD.MOBILE),jt===ABHA_INIT_FLOW.ABHA_REGISTRATION?Lt(nt):ar(nt),$t(nt.length===10),rt({mobile:nt}),kt(null))},[ot,nt]),reactExports.useEffect(()=>{Tt||Zt.current||(Pt&&Pt.length===10&&_==ABHA_AUTH_FLOW_METHOD.MOBILE&&!et?(gr("auto_submit_mobile"),It(!0),Zt.current=!0):Pt&&Pt.length===10&&_==ABHA_AUTH_FLOW_METHOD.MOBILE&&et&&ot===ABHA_AUTH_FLOW_METHOD.MOBILE&&mt(LOADING_STATE.REJECTED))},[Pt]),reactExports.useEffect(()=>{Tt||Zt.current||zt&&zt.length===12&&_==ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!At&&(It(!0),Zt.current=!0,gr("auto_submit_aadhaar"))},[zt]),reactExports.useEffect(()=>{rt({aadhaar_number:zt})},[zt]),reactExports.useEffect(()=>{Tt||Zt.current||Kt&&Kt.length===17&&_==ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&(It(!0),Zt.current=!0,gr("auto_submit_abha"))},[Kt]),reactExports.useEffect(()=>{Tt||Zt.current||Jt&&Jt.includes("@abdm")&&_==ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&(It(!0),Zt.current=!0,gr("auto_submit_phr"))},[Jt]);const qt=useTrackAbhaEvent(),sr=React.useMemo(()=>{switch(_){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""}},[_]),cr=Wt=>{yt(""),kt("");const mr=Wt.target.value;switch(_){case ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS:if(mr.length>20)return;tr(mr),rt({phr_address:mr}),dt(null);break;case ABHA_AUTH_FLOW_METHOD.MOBILE:const lr=mr.replace(/\D/g,"").slice(-10);Lt(lr),$t(!0),rt({mobile:lr}),dt(null);break;case ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER:if(!/^[\d-]*$/.test(mr)||mr.length>17)return;const Tr=Wt.target.value.replace(/-/g,"");let Mr="";return Tr.length>0&&(Mr+=Tr.slice(0,2)),Tr.length>2&&(Mr+=`-${Tr.slice(2,6)}`),Tr.length>6&&(Mr+=`-${Tr.slice(6,10)}`),Tr.length>10&&(Mr+=`-${Tr.slice(10,14)}`),Ut(Mr),dt(null),rt({abha_number:Mr.trim()});case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:if(mr&&!/^[0-9]+$/.test(mr)||mr.length>12)return;Qt(mr),Gt(!0),dt(null),rt({aadhaar_number:mr});break}};ABHA_AUTH_FLOW_METHOD.MOBILE;const xr=React.useMemo(()=>{switch(_){case ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS:return st.phr_address.length>=4&&st.phr_address.length<=20;case ABHA_AUTH_FLOW_METHOD.MOBILE:return ot==="mobile"?(nt==null?void 0:nt.length)===10:Pt.length===10;case ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER:return st.abha_number.length===17;case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:return st.aadhaar_number.length===12&&Et!=AADHAAR_AUTH_STATES.NONE}},[_,st,Et]),pr=(Wt,mr)=>{Ht(lr=>({...lr,[Wt]:mr}))},Or=({inputVal:Wt})=>{Wt.length===12&&(rt({aadhaar_number:Wt}),Qt(Wt),Gt(!0))};reactExports.useEffect(()=>{console.log("selectedMethod changed:==================>",_)},[_]);const gr=async(Wt,mr)=>{var Fs,Vs,Gs,$s;xt(!0),qt({name:"abha_login_next_click",data:{flow:jt,flow_step_type:Wt}}),mt(LOADING_STATE.LOADING),ft(REGISTRATION_TYPE.LOGIN);let lr="";if(!it){const Er=await postAuthLogoutV2();qt({name:Er?"abha_logout_success":"abha_logout_failure",data:{flow:jt,platform:wt}});const{txn_id:_r,error:hr}=await postAuthInitV2({method:AUTH_METHOD.ABHA});if(!_r||hr){qt({name:"abha_auth_init_failure",data:{flow:jt,flow_step_type:"init",authTxnId:lr,error_message:hr||"missing_txnId_or_unknown_error",error_message_exists:!!hr,txn_id_exists:!!_r}}),kt((hr==null?void 0:hr.message)||"Something went wrong. Please try again."),mt(LOADING_STATE.REJECTED);return}lr=_r,qt({name:"abha_auth_init_success.",data:{flow:jt,flow_step_type:"init",auth_txnId:lr}})}const Tr=_===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS?`${st.phr_address}@abdm`:_===ABHA_AUTH_FLOW_METHOD.MOBILE?st==null?void 0:st.mobile:_===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER?st.abha_number:_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?st.aadhaar_number:"";if(_===ABHA_AUTH_FLOW_METHOD.MOBILE||_===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER||_===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS){const{txn_id:Er,error:_r,action:hr,hint:Sr}=await postAbdmLoginInit({method:_,identifier:Tr});if(It(!0),Nt(Tr),qt({name:"abha_login_init_triggered",data:{flow:jt,flow_step_type:"init",authTxnId:lr,ndhmTxnId:Er,method:_}}),_===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&lt(Tr),_r||!Er){if(tt(!0),((Fs=hr==null?void 0:hr.cta)==null?void 0:Fs.pid)==="abha_mobile_enroll"&&_===ABHA_AUTH_FLOW_METHOD.MOBILE){pr("mobile",LOADING_STATE.LOADING),ft(REGISTRATION_TYPE.CREATE);const{txn_id:Dr,hint:Us,error:xs,action:_s}=await postRegisterMobileInit({mobile_number:st==null?void 0:st.mobile});if(It(!0),Nt(st==null?void 0:st.mobile),Ct("mobile"),Dr&&Us){vt({authTxnId:lr,txnId:Dr,mobileOtpSentToHint:Us}),qt({name:"abha_mobile_registration_init_success",data:{flow:jt,flow_step_type:"init",authTxnId:lr,ndhmTxnId:Er,error_message:xs,error_action:hr}}),pr("mobile",LOADING_STATE.RESOLVED),mt(LOADING_STATE.RESOLVED),ft(REGISTRATION_TYPE.CREATE),Dt(SCREEN_NAMES.ABHA_PHONE_NUMBER_VERIFICATION);return}if(pr("mobile",LOADING_STATE.REJECTED),qt({name:"abha_mobile_registration_init_failure",data:{flow:jt,flow_step_type:"init",authTxnId:lr,error_message:xs||"unknown_error",error_message_exists:!!xs,error_action_exists:!!_s}}),_s){if((Vs=_s==null?void 0:_s.cta)!=null&&Vs.pid)return Dt(SCREEN_NAMES.LOGIN_OR_CREATE_ABHA)}else kt(xs||"Something went wrong");kt(xs||"Something went wrong. Please try again."),mt(LOADING_STATE.REJECTED);return}qt({name:"abha_login_init_failure",data:{flow:jt,flow_step_type:"init",authTxnId:lr,error_message:_r||"unknown_error",error_message_exists:!!_r,error_action_exists:!!hr}}),kt(_r||"Something went wrong. Please try again."),mt(LOADING_STATE.REJECTED);return}qt({name:"abha_login_init_success",data:{flow:jt,flow_step_type:"init",authTxnId:lr,ndhmTxnId:Er,hint:Sr}}),ht({authTxnId:lr,txnId:Er,aadhaarOtpSentToHint:Sr||null}),tt(!1),at(Tr),mt(LOADING_STATE.RESOLVED),Dt(SCREEN_NAMES.VERIFY_OTP_LOGIN_WITH_ABHA);return}const Mr=mr??Et;if(_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&Mr===AADHAAR_AUTH_STATES.OTP){pr("aadhaar",LOADING_STATE.LOADING),qt({name:"aadhaar_registration_init_start",data:{flow:jt,flow_step_type:"init",authTxnId:lr,aadhaarNumber:st.aadhaar_number}});const{txn_id:Er,hint:_r,error:hr,action:Sr}=await postRegisterAadhaarInit({aadhaar_number:st.aadhaar_number});if(Nt(st.aadhaar_number),Ct("aadhaar"),Er&&_r){ht({authTxnId:lr,txnId:Er,aadhaarOtpSentToHint:_r}),qt({name:"aadhaar_registration_init_success",data:{flow:jt,flow_step_type:"verify",ndhmTxnId:Er,authTxnId:lr}}),tt(!1),pr("aadhaar",LOADING_STATE.RESOLVED),ft(REGISTRATION_TYPE.CREATE),mt(LOADING_STATE.RESOLVED),Dt(SCREEN_NAMES.ABHA_OTP_AND_MOBILE);return}if(qt({name:"abha_registration_init_failure",data:{flow:jt,error_message:hr||"unknown_error",error_message_exists:!!hr,auth_txn_id:lr,error_action:Sr,error_action_exists:!!Sr}}),pr("aadhaar",LOADING_STATE.REJECTED),mt(LOADING_STATE.REJECTED),Sr||hr){tt(!0),(Gs=Sr==null?void 0:Sr.cta)!=null&&Gs.pid?Dt(SCREEN_NAMES.LOGIN_OR_CREATE_ABHA):kt(hr||"Something went wrong");return}}if(_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&Mr===AADHAAR_AUTH_STATES.FACE_AUTH){pr("aadhaar",LOADING_STATE.LOADING),qt({name:"aadhaar_registration_faceauth_init_start",data:{flow:jt,flow_step_type:"init",authTxnId:lr,aadhaarNumber:st.aadhaar_number}});const{url:Er,txn_id:_r,hint:hr,error:Sr,action:Dr}=await postRegisterAadhaarFaceAuthInit();if(Nt(st.aadhaar_number),Ct("aadhaar"),_r&&hr&&Er){pt({authTxnId:lr,txnId:_r,aadhaarFaceAuthOtpSentToHint:hr,faceAuthQrUrl:Er}),qt({name:"aadhaar_registration_faceauth_init_success",data:{flow:jt,flow_step_type:"verify",ndhmTxnId:_r,authTxnId:lr}}),tt(!1),pr("aadhaar",LOADING_STATE.RESOLVED),ft(REGISTRATION_TYPE.CREATE),mt(LOADING_STATE.RESOLVED),Dt(SCREEN_NAMES.ABHA_AUTH_QR_SCREEN);return}if(qt({name:"abha_registration_faceauth_init_failure",data:{flow:jt,error_message:Sr||"unknown_error",error_message_exists:!!Sr,auth_txn_id:lr,error_action:Dr,error_action_exists:!!Dr}}),pr("aadhaar",LOADING_STATE.REJECTED),mt(LOADING_STATE.REJECTED),Dr||Sr){tt(!0),($s=Dr==null?void 0:Dr.cta)!=null&&$s.pid?Dt(SCREEN_NAMES.LOGIN_OR_CREATE_ABHA):kt(Sr||"Something went wrong");return}}},[Is,ys]=reactExports.useState(!1),[sn,ks]=reactExports.useState($&&_===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER),[nn,Ts]=reactExports.useState($&&_===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS),[an,ws]=reactExports.useState(!1);return jsxRuntimeExports.jsxs("div",{className:`pds2-w-full pds2-h-full ${a?"pds2-relative":""}`,children:[jsxRuntimeExports.jsxs("div",{className:`pds2-p-16 pds2-bg-surface-subtle pds2-space-y-16 pds2-text-center pds2-rounded-b-24 ${_t?"pds2-pt-0 -pds2-mt-20":"pds2-pt-22"}`,children:[jt==null||jt===ABHA_INIT_FLOW.ABHA_REGISTRATION?jsxRuntimeExports.jsx(AbhaStepper,{}):jsxRuntimeExports.jsx("div",{className:"pds2-pt-40 pds2-bg-surface-subtle"}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-center pds2-items-center pds2-gap-16",children:jsxRuntimeExports.jsxs("div",{className:`pds2-rounded-16 ${St?"pds2-flex pds2-gap-10":""}`,children:[jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-w-64 pds2-h-64 pds2-bg-surface-base pds2-rounded-16"}),St&&jsxRuntimeExports.jsx("img",{src:St,alt:"org-icon",className:"pds2-w-64 pds2-h-64 pds2-rounded-16"})]})}),jsxRuntimeExports.jsx("div",{className:"Heading3Semibold pds2-text-content-primary",children:wt==="phr"?"Login or Create your ABHA":_t?"Add Patient via ABHA":"Create your ABHA"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-content-secondary",style:{marginTop:"4px"},children:_===ABHA_AUTH_FLOW_METHOD.MOBILE?_t?"Enter Patient's Mobile Number":"Enter your Mobile Number":_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?_t?"Enter Patient's Aadhaar Number":"Enter your Aadhaar Number":_===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER?_t?"Enter Patient's ABHA Number":"Enter your ABHA Number":_===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS?_t?"Enter Patient's ABHA Address":"Enter your ABHA Address":sr}),(_===ABHA_AUTH_FLOW_METHOD.MOBILE||_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)&&jsxRuntimeExports.jsxs("div",{className:"pds2-w-full",children:[jsxRuntimeExports.jsx("div",{className:"pds2-w-1/2 pds2-relative",children:jsxRuntimeExports.jsx("div",{className:"Label2Medium pds2-w-fit pds2-px-8 pds2-py-2 pds2-bg-surface-success pds2-text-content-success pds2-mx-auto pds2-border pds2-border-surface-neutral pds2-border-b-none pds2-rounded-t-6",children:"Recommended"})}),jsxRuntimeExports.jsxs("div",{className:"pds2-relative pds2-flex pds2-bg-surface-muted pds2-rounded-12",children:[jsxRuntimeExports.jsx("div",{className:"pds2-absolute pds2-top-0 pds2-bottom-0 pds2-bg-surface-base pds2-rounded-12 pds2-transition-all pds2-duration-300",style:{left:_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?0:"50%",width:"50%",boxShadow:"0px 10px 4px -6px #18274B17"}}),jsxRuntimeExports.jsxs("button",{onClick:()=>{b(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),kt("")},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 ${_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?"pds2-font-bold pds2-text-fg-default":"pds2-font-normal pds2-text-fg-subtle"}`,style:_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?{fontWeight:700}:{fontWeight:400},children:"Aadhaar"})]}),jsxRuntimeExports.jsxs("button",{onClick:()=>{b(ABHA_AUTH_FLOW_METHOD.MOBILE),kt("")},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-semantic-success"}),jsxRuntimeExports.jsx("span",{className:`pds2-text-base ${_===ABHA_AUTH_FLOW_METHOD.MOBILE?"pds2-font-bold pds2-text-fg-default":"pds2-font-normal pds2-text-fg-subtle"}`,style:_===ABHA_AUTH_FLOW_METHOD.MOBILE?{fontWeight:700}:{fontWeight:400},children:"Mobile"})]})]})]}),(_===ABHA_AUTH_FLOW_METHOD.MOBILE||_===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:_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(AbhaInputComponent,{initialValues:ot===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!$?(nt==null?void 0:nt.match(/.{1,4}/g))??void 0:(zt==null?void 0:zt.match(/.{1,4}/g))??void 0,disabled:!$&&ot===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!!nt,numberOfInputs:3,length:4,placeholder:"XXXX",onSubmit:Or,setIsValid:Gt,setValue:Qt,setError:kt,isOtpInput:!1}),At&&jsxRuntimeExports.jsxs("div",{className:"pds2-mt-20",children:[jsxRuntimeExports.jsx("hr",{className:"pds2-text-content-muted pds2-border-t-2 pds2-border-surface-strong pds2-w-4/5 pds2-mx-auto"}),jsxRuntimeExports.jsx("div",{className:"Body2Regular pds2-py-12 pds2-text-content-secondary ",children:"Authenticate using"}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-justify-evenly pds2-w-11/12 pds2-mx-auto",children:[jsxRuntimeExports.jsx(AuthLoginCard,{icon:jsxRuntimeExports.jsx(t$5,{className:"pds2-w-30 pds2-h-20"}),text:"OTP",otpReq:!1,isSelected:Et===AADHAAR_AUTH_STATES.OTP,onClick:()=>gt(AADHAAR_AUTH_STATES.OTP)}),jsxRuntimeExports.jsx(AuthLoginCard,{icon:jsxRuntimeExports.jsx(l$1,{className:"pds2-w-30 pds2-h-20"}),text:"Face Auth",otpReq:!0,isSelected:Et===AADHAAR_AUTH_STATES.FACE_AUTH,onClick:()=>gt(AADHAAR_AUTH_STATES.FACE_AUTH)})]})]})]}):jsxRuntimeExports.jsx(Pds2InputField,{value:ot===ABHA_AUTH_FLOW_METHOD.MOBILE&&!$?nt||"":Pt,disabled:!$&&ot===ABHA_AUTH_FLOW_METHOD.MOBILE||!!nt&&!!Mt,onChange:cr,type:"tel",name:"phone",autoComplete:"tel",inputMode:"numeric",pattern:"[0-9]*",placeholder:"Mobile Number",autoFocus:!0,PrefixComponent:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-gap-x-8 pds2-border-r pds2-border-surface-muted 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-content-primary pds2-text-sm",children:"+91"})]})})}),Rt&&(_===ABHA_AUTH_FLOW_METHOD.MOBILE||_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)&&jsxRuntimeExports.jsx("div",{className:`${Rt.includes("KYC ABHA not found for")?"pds2-text-content-primary":"pds2-text-semantic-error"} Body3Regular`,children:Rt}),(_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER||_===ABHA_AUTH_FLOW_METHOD.MOBILE&&!et)&&jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(c$3,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!xr||ct===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:ct===LOADING_STATE.LOADING,onClick:()=>{_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&At&&Et===AADHAAR_AUTH_STATES.OTP&&_e&&!hasActionRunToday(FACE_AUTH_TRIED_KEY)&&_e?(markActionRunToday(FACE_AUTH_TRIED_KEY),o(!0)):gr("aadhaar_or_mobile_on_click")},className:"pds2-w-full"}),_===ABHA_AUTH_FLOW_METHOD.MOBILE&&et&&At&&jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(c$3,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!xr||ct===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:ct===LOADING_STATE.LOADING,onClick:()=>gr("aadhaar_or_mobile_on_click"),className:"pds2-w-full"}),jsxRuntimeExports.jsxs("div",{className:"BodyFootnote pds2-text-content-secondary",children:["By proceeding, you agree to"," ",jsxRuntimeExports.jsx("span",{className:"pds2-underline pds2-cursor-pointer",onClick:()=>ws(!0),children:"T&C"})]})]}),jsxRuntimeExports.jsx("div",{className:"pds2-pb-10",children:jsxRuntimeExports.jsxs("div",{className:"pds2-m-16 pds2-mb-32 pds2-bg-surface-base pds2-rounded-16 pds2-border pds2-border-surface-muted pds2-overflow-hidden",children:[jsxRuntimeExports.jsxs("button",{onClick:()=>ys(!Is),className:"pds2-w-full pds2-flex pds2-items-center pds2-justify-between pds2-p-16 pds2-bg-surface-base hover:pds2-bg-surface-muted pds2-transition-colors",children:[jsxRuntimeExports.jsx("span",{className:"pds2-text-content-secondary",children:_t?"Other add options for ABHA":"Other login options for ABHA"}),jsxRuntimeExports.jsx(c$3,{className:`pds2-w-16 pds2-h-16 pds2-text-content-secondary pds2-transition-transform ${Is?"pds2-rotate-180":""}`})]}),jsxRuntimeExports.jsxs("div",{className:`pds2-overflow-hidden pds2-transition-all pds2-duration-300 ${Is?"pds2-max-h-126 pds2-opacity-100":"pds2-max-h-0 pds2-opacity-0"}`,children:[jsxRuntimeExports.jsxs("button",{onClick:()=>{ys(!1),b(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER),ks(!0),kt("")},className:"pds2-w-full pds2-flex pds2-items-center pds2-justify-between pds2-p-12 hover:pds2-bg-surface-muted 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-surface-muted 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-content-primary",children:_t?"Add patient with ABHA Number":"Login with ABHA Number"})]}),jsxRuntimeExports.jsx(c$3,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-text-content-secondary"})]}),jsxRuntimeExports.jsxs("button",{onClick:()=>{ys(!1),b(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS),Ts(!0),kt("")},className:"pds2-w-full pds2-flex pds2-items-center pds2-justify-between pds2-p-12 hover:pds2-bg-surface-muted 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-surface-muted 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-content-primary",children:_t?"Add patient with ABHA Address":"Login with ABHA Address"})]}),jsxRuntimeExports.jsx(c$3,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-text-content-secondary"})]})]})]})}),jsxRuntimeExports.jsx(AbhaBottomSheet$1,{isOpen:sn,setIsOpen:ks,setFlowMethod:b,setError:kt,children:jsxRuntimeExports.jsxs("div",{className:"pds2-p-24 pds2-text-center pds2-h-full pds2-flex pds2-flex-col",children:[(jt==null||jt===ABHA_INIT_FLOW.ABHA_REGISTRATION||jt===ABHA_INIT_FLOW.SCAN_AND_SHARE||jt===ABHA_INIT_FLOW.SCAN_AND_SHARE_KIOSK)&&jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-end pds2-mb-16",children:jsxRuntimeExports.jsx("button",{onClick:()=>{kt(null),ks(!1),b(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)},className:"pds2-w-24 pds2-h-24 pds2-flex pds2-items-center pds2-justify-center pds2-text-content-secondary hover:pds2-text-content-primary",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-surface-subtle 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-content-primary",children:_t?"Add Patient with ABHA Number":"Login with ABHA Number"}),jsxRuntimeExports.jsx("p",{className:"Body2Regular pds2-text-content-secondary pds2-mb-24",children:_t?"Enter Patient's 14 digit ABHA Number":"Enter your 14 digit ABHA Number"}),jsxRuntimeExports.jsx(Pds2InputField,{value:ot===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&!$?nt||"":Kt,disabled:!$&&ot===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&!!nt,onChange:cr,placeholder:"00-0000-0000-0000",padding:"pds2-p-18",textStyle:"Body2Regular pds2-text-center pds2-text-lg",borderStyle:"focus-within:pds2-border-primary-brand",type:"tel",inputMode:"numeric",autoFocus:!0,onKeyDown:Wt=>{Wt.key==="Enter"&&gr("after_enter_abha_number_on_click_by_user")}}),Rt&&jsxRuntimeExports.jsx("div",{className:"pds2-text-semantic-error Body3Regular pds2-mt-12",children:Rt}),jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(c$3,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!st||ct===LOADING_STATE.LOADING?"disabled":"enabled",onClick:()=>gr("after_enter_abha_number_on_click_by_user"),className:`pds2-w-full ${Rt?"pds2-mt-12":"pds2-mt-24"}`,isLoading:ct===LOADING_STATE.LOADING})]})]})}),jsxRuntimeExports.jsx(AbhaBottomSheet$1,{isOpen:nn,setIsOpen:Ts,setFlowMethod:b,setError:kt,children:jsxRuntimeExports.jsxs("div",{className:"pds2-p-24 pds2-text-center pds2-h-full pds2-flex pds2-flex-col",children:[(jt==null||jt===ABHA_INIT_FLOW.ABHA_REGISTRATION||jt===ABHA_INIT_FLOW.SCAN_AND_SHARE||jt===ABHA_INIT_FLOW.SCAN_AND_SHARE_KIOSK)&&jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-end pds2-mb-16",children:jsxRuntimeExports.jsx("button",{onClick:()=>{kt(null),Ts(!1),b(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)},className:"pds2-w-24 pds2-h-24 pds2-flex pds2-items-center pds2-justify-center pds2-text-content-secondary hover:pds2-text-content-primary",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-surface-subtle 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-content-primary",children:_t?"Add Patient with ABHA Address":"Login with ABHA Address"}),jsxRuntimeExports.jsx("p",{className:"Body2Regular pds2-text-content-secondary pds2-mb-24",children:_t?"Enter Patient's ABHA Address below":"Enter your ABHA Address below"}),jsxRuntimeExports.jsxs("div",{className:"pds2-relative",children:[jsxRuntimeExports.jsx(Pds2InputField,{value:ot===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&!$?(nt==null?void 0:nt.split("@")[0])||"":ir,disabled:!$&&ot===ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS&&!!nt,onChange:cr,placeholder:"Enter ABHA Address",inputMode:"text",autoFocus:!0,onKeyDown:Wt=>{Wt.key==="Enter"&&gr("after_enter_abha_address_on_click_by_user")}}),jsxRuntimeExports.jsx("div",{className:"pds2-absolute pds2-right-16 pds2-top-16 Body1Regular pds2-text-content-secondary",children:"@abdm"})]}),Rt&&jsxRuntimeExports.jsx("div",{className:"pds2-text-semantic-error Body3Regular pds2-mt-12",children:Rt}),jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(c$3,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!st||ct===LOADING_STATE.LOADING?"disabled":"enabled",onClick:()=>gr("after_enter_abha_address_on_click_by_user"),className:`pds2-w-full ${Rt?"pds2-mt-12":"pds2-mt-24"}`,isLoading:ct===LOADING_STATE.LOADING})]})]})}),jsxRuntimeExports.jsx(AbhaBottomSheet$1,{isOpen:an,setIsOpen:ws,setFlowMethod:b,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-h-10 pds2-justify-end pds2-mb-16",children:jsxRuntimeExports.jsx("button",{onClick:()=>{ws(!1)},className:"pds2-w-24 pds2-h-24 pds2-flex pds2-items-center pds2-justify-center pds2-text-content-secondary hover:pds2-text-content-primary",children:"✕"})}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex-1 pds2-h-4/5 pds2-flex pds2-flex-col pds2-justify-start",children:[jsxRuntimeExports.jsx("div",{className:"pds2-h-30 TitlesSubheadline pds2-pb-10",children:"Terms and Conditions"}),jsxRuntimeExports.jsxs("div",{className:"pds2-h-4/5 pds2-text-justify pds2-px-10 pds2-overflow-auto",children:["I, hereby declare that I am voluntarily sharing my Aadhaar number and demographic information issued by UIDAI, with National Health Authority (NHA) for the sole purpose of creation of ABHA number. ",jsxRuntimeExports.jsx("br",{})," ",jsxRuntimeExports.jsx("br",{}),'I understand that my ABHA number can be used and shared for purposes as may be notified by ABDM 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 (e.g. hospitals, laboratories) and data fiduciaries (e.g. health programmes), which are registered with or linked to the Ayushman Bharat Digital Mission (ABDM), and various processes there under. I authorize NHA to use my Aadhaar number for performing Aadhaar based authentication with UIDAI as per the provisions of the Aadhaar (Targeted Delivery of Financial and other Subsidies, Benefits and Services) Act, 2016 for the aforesaid purpose. I understand that UIDAI will share my e-KYC details, or response of "Yes" with NHA upon successful authentication. I have been duly informed about the option of using other IDs apart from Aadhaar; however, I consciously choose to use Aadhaar number for the purpose of availing benefits across the NDHE. I am aware that my personal identifiable information excluding Aadhaar number / VID number can be used and shared for purposes as mentioned above. I reserve the right to revoke the given consent at any point of time as per provisions of Aadhaar Act and Regulations.']}),jsxRuntimeExports.jsx(Pds2Button,{title:"I Agree",state:"enabled",onClick:()=>ws(!1),className:"pds2-w-full pds2-mt-20"})]})]})}),(_===ABHA_AUTH_FLOW_METHOD.MOBILE||_===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)&&At&&et&&jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-center pds2-text-primary-brand",children:jsxRuntimeExports.jsx("div",{className:"pds2-absolute pds2-top-15 pds2-right-14 pds2-z-50 pds2-flex pds2-items-center pds2-justify-center",children:jsxRuntimeExports.jsx("button",{onClick:Ft,className:"pds2-bg-surface-subtle pds2-w-full pds2-py-4 pds2-px-15 pds2-rounded-12 Body2Regular pds2-text-content-primary hover:pds2-text-primary-brand pds2-border pds2-border-surface-muted",children:"Skip ABHA"})})}),a&&jsxRuntimeExports.jsx("div",{className:"pds2-w-full pds2-h-full pds2-absolute pds2-inset-0 pds2-z-50 pds2-flex pds2-flex-col pds2-bg-surface-base",children:jsxRuntimeExports.jsxs("div",{className:"pds2-px-16 pds2-pb-16 pds2-pt-150 pds2-space-y-16 pds2-overflow-y-auto pds2-flex-1 pds2-bg-surface-subtle",children:[jsxRuntimeExports.jsx("div",{className:"Title2Bold pds2-text-center pds2-w-full pds2-mx-auto pds2-text-content-primary",children:"Hasslefree patient addition"}),jsxRuntimeExports.jsxs("div",{className:"Title3Regular pds2-text-center pds2-w-full pds2-mx-auto pds2-text-content-primary",children:[jsxRuntimeExports.jsx("div",{children:"With Digital Health Incentive"})," Scheme, earn by linking records"," ",jsxRuntimeExports.jsx("div",{children:"to ABHA."})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-gap-20 pds2-w-full pds2-pt-20",children:[jsxRuntimeExports.jsx(Pds2Button,{title:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center",children:[jsxRuntimeExports.jsx(n$4,{className:"pds2-w-30 pds2-text-semantic-warning"}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-items-center",children:[jsxRuntimeExports.jsx("div",{children:"Try Face Auth"}),jsxRuntimeExports.jsx("div",{className:"Body4Regular",children:"Fastest. No OTP"})]})]}),buttonColor:"",className:"pds2-w-full",padding:"pds2-p-9",onClick:()=>{qt({name:"abha_try_face_auth_clicked",data:{flow:jt,platform:wt}}),gt(AADHAAR_AUTH_STATES.FACE_AUTH),gr("aadhaar_or_mobile_on_click",AADHAAR_AUTH_STATES.FACE_AUTH)}}),jsxRuntimeExports.jsx(Pds2Button,{textColor:"pds2-text-primary-brand",title:"Proceed with Aadhaar OTP",buttonColor:"pds2-bg-surface-base",className:"pds2-w-full pds2-border pds2-border-surface-muted",onClick:()=>{qt({name:"abha_proceed_with_aadhaar_otp_clicked",data:{flow:jt,platform:wt}}),gt(AADHAAR_AUTH_STATES.OTP),gr("aadhaar_or_mobile_on_click",AADHAAR_AUTH_STATES.OTP)}})]}),Rt&&jsxRuntimeExports.jsx("div",{className:"pds2-text-semantic-error pds2-text-center Body3Regular pds2-mt-12",children:Rt})]})})]})},AbhaBottomSheet$1=({isOpen:a,setIsOpen:o,children:_,setFlowMethod:b,overlayClassName:$="pds2-bg-content-primary pds2-bg-opacity-50",setError:_e})=>{const[et,tt]=reactExports.useState(a),rt=useAuthAbhaStore(it=>it.initAbhaFlow),st=GET_CLIENT_ID();return reactExports.useEffect(()=>{if(a)tt(!0);else{const it=setTimeout(()=>tt(!1),300);return()=>clearTimeout(it)}},[a]),et?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 ${$} pds2-transition-opacity pds2-duration-300 ${st==="ext"?"pds2-bg-surface-subtle":"pds2-bg-surface-neutral"}`,onClick:it=>{if(rt!=ABHA_INIT_FLOW.ABHA_REGISTRATION){it.stopPropagation();return}_e==null||_e(null),o(!1),b(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER)}}),jsxRuntimeExports.jsx("div",{className:`pds2-relative ${st==="ext"?"pds2-bg-surface-subtle":"pds2-bg-surface-base"} 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},formatDateTime=(a,o={date:!0,time:!0})=>{const _=new Date(a);let b="",$="";return o.time&&(b=_.toLocaleTimeString("en-IN",{hour:"2-digit",minute:"2-digit",hour12:!0})),o.date&&($=_.toLocaleDateString("en-IN",{day:"2-digit",month:"short",year:"numeric"})),o.time&&o.date?`${b}, ${$}`:o.time?b:o.date?$:""};function ConsentCard(){var o,_,b,$,_e,et,tt,rt,st;const a=useAuthAbhaStore(it=>it.consentDetails);return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-p-16 pds2-rounded-16 pds2-bg-surface-base pds2-space-y-8",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-space-x-16",children:[jsxRuntimeExports.jsxs("div",{className:"Body2Semibold pds2-text-content-primary pds2-flex-1",children:[(o=a==null?void 0:a.hiu)==null?void 0:o.name,jsxRuntimeExports.jsx("div",{className:"Body2Regular",children:(_=a==null?void 0:a.hiu)==null?void 0:_.id})]}),(a==null?void 0:a.status)==ConsentStatus.REQUESTED&&jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-flex pds2-items-center pds2-gap-10 pds2-text-primary-brand pds2-bg-primary-brand/20 pds2-px-8 pds2-py-4 pds2-border-surface-neutral pds2-rounded-8",children:[jsxRuntimeExports.jsx(t$b,{}),"Pending"]}),(a==null?void 0:a.status)==ConsentStatus.GRANTED&&jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-flex pds2-items-center pds2-gap-10 pds2-text-content-enabled pds2-bg-semantic-success pds2-px-8 pds2-py-4 pds2-border-surface-neutral pds2-rounded-8",children:[jsxRuntimeExports.jsx(t$1,{}),"Granted"]}),(a==null?void 0:a.status)==ConsentStatus.EXPIRED&&jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-flex pds2-items-center pds2-gap-10 pds2-text-content-secondary pds2-bg-surface-subtle pds2-px-8 pds2-py-4 pds2-border-surface-neutral pds2-rounded-8",children:[jsxRuntimeExports.jsx(t$2,{}),"Expired"]}),(a==null?void 0:a.status)==ConsentStatus.DENIED&&jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-flex pds2-items-center pds2-gap-10 pds2-text-content-enabled pds2-bg-surface-danger pds2-px-8 pds2-py-4 pds2-border-surface-neutral pds2-rounded-8",children:[jsxRuntimeExports.jsx(t$2,{}),"Denied"]}),(a==null?void 0:a.status)==ConsentStatus.REVOKED&&jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-flex pds2-items-center pds2-gap-10 pds2-text-content-enabled pds2-bg-surface-danger pds2-px-8 pds2-py-4 pds2-border-surface-neutral pds2-rounded-8",children:[jsxRuntimeExports.jsx(t$2,{}),"Revoked"]})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-justify-between",children:[jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-text-content-secondary",children:"Type of Request"}),jsxRuntimeExports.jsx("div",{className:"Body2Regular pds2-text-content-primary",children:"consent"})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-justify-between",children:[jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-text-content-secondary",children:"Purpose of Request"}),jsxRuntimeExports.jsx("div",{className:"Body2Regular pds2-text-content-primary",children:(b=a==null?void 0:a.purpose)==null?void 0:b.text})]}),(($=a==null?void 0:a.duration)==null?void 0:$.from)&&((_e=a==null?void 0:a.duration)==null?void 0:_e.to)&&jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-justify-between",children:[jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-text-content-secondary",children:"Duration"}),jsxRuntimeExports.jsxs("div",{className:"Body2Regular pds2-text-content-secondary",children:[formatDateTime((et=a==null?void 0:a.duration)==null?void 0:et.from,{date:!0,time:!1})," - ",formatDateTime((tt=a==null?void 0:a.duration)==null?void 0:tt.to,{date:!0,time:!1})]})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-justify-between",children:[jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-text-content-secondary",children:"Requested by"}),jsxRuntimeExports.jsx("div",{className:"!Body2Regular pds2-text-content-secondary",children:((rt=a==null?void 0:a.requester)==null?void 0:rt.name)||((st=a==null?void 0:a.hiu)==null?void 0:st.name)})]}),(a==null?void 0:a.created_at)&&jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-justify-between",children:[jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-text-content-secondary",children:"Requested at"}),jsxRuntimeExports.jsx("div",{className:"!Body2Regular pds2-text-content-secondary",children:formatDateTime(a==null?void 0:a.created_at,{date:!0,time:!0})})]})]})]})}const ConsentHiTypeListCard=()=>{var _e;const a=useAuthAbhaStore(et=>et.consentDetails),o=useAuthAbhaStore(et=>et.consentApiBody),_=useAuthAbhaStore(et=>et.setConsentApiBody),b=(o==null?void 0:o.hi_types)??[],$=et=>{const tt=et.target.id,st=et.target.checked?[...b,tt]:b.filter(it=>it!==tt);_({hi_types:st})};return jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-rounded-16 pds2-bg-surface-base pds2-space-y-8",children:jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-flex-col ",children:(_e=a==null?void 0:a.hi_types)==null?void 0:_e.map((et,tt)=>jsxRuntimeExports.jsx("div",{className:`pds2-px-16 pds2-py-16 ${tt<a.hi_types.length-1?"pds2-border-b pds2-border-surface-muted":""}`,children:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-gap-10",children:[(a==null?void 0:a.status)===ConsentStatus.REQUESTED&&jsxRuntimeExports.jsx("input",{id:et.id,type:"checkbox",checked:b.includes(et.id),className:"pds2-accent-primary-brand",onChange:$}),jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-text-content-secondary",children:et.display})]})},et==null?void 0:et.id))})})},formatDateToBackendISO=a=>{const o=new Date;return new Date(`${a}T${o.getHours().toString().padStart(2,"0")}:${o.getMinutes().toString().padStart(2,"0")}:${o.getSeconds().toString().padStart(2,"0")}`).toISOString()},ConsentDurationCard=()=>{var tt,rt,st,it;const a=reactExports.useRef(null),o=reactExports.useRef(null),_=useAuthAbhaStore(lt=>lt.consentApiBody),b=useAuthAbhaStore(lt=>lt.setConsentApiBody),$=useAuthAbhaStore(lt=>lt.consentDetails),_e=new Date,et=(lt,at)=>{const ft=formatDateToBackendISO(at);b({duration:{..._==null?void 0:_.duration,[lt]:ft}})};return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-py-6 pds2-flex-col pds2-w-full pds2-rounded-16 pds2-bg-surface-base pds2-space-y-8",children:[jsxRuntimeExports.jsx("div",{className:"pds2-px-16 pds2-py-6 Body3Regular pds2-text-content-secondary",children:jsxRuntimeExports.jsxs("div",{className:`${($==null?void 0:$.status)===ConsentStatus.GRANTED?"":"pds2-flex pds2-items-center pds2-justify-between"} pds2-border-b pds2-border-surface-muted`,children:[jsxRuntimeExports.jsxs("div",{className:`${($==null?void 0:$.status)===ConsentStatus.GRANTED?"pds2-flex pds2-justify-between":""}`,children:["From",jsxRuntimeExports.jsx("div",{className:"Body2Regular pds2-text-content-primary",children:((tt=_==null?void 0:_.duration)==null?void 0:tt.from)&&formatDateTime((rt=_==null?void 0:_.duration)==null?void 0:rt.from,{date:!0,time:!1})})]}),($==null?void 0:$.status)===ConsentStatus.REQUESTED&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(n,{className:"pds2-text-primary-brand pds2-text-16",onClick:()=>{var lt;return(lt=a.current)==null?void 0:lt.showPicker()}}),jsxRuntimeExports.jsx("input",{className:"pds2-absolute pds2-opacity-0 pds2-pointer-events-none",ref:a,type:"date",max:_e.toISOString().split("T")[0],onChange:lt=>et("from",lt.target.value)})]})]})}),jsxRuntimeExports.jsx("div",{className:"pds2-px-16 pds2-py-6 Body3Regular pds2-text-content-secondary",children:jsxRuntimeExports.jsxs("div",{className:`${($==null?void 0:$.status)===ConsentStatus.GRANTED?"":"pds2-flex pds2-items-center pds2-justify-between"} pds2-border-b pds2-border-surface-muted`,children:[jsxRuntimeExports.jsxs("div",{className:`${($==null?void 0:$.status)===ConsentStatus.GRANTED?"pds2-flex pds2-justify-between":""}`,children:["To",jsxRuntimeExports.jsx("div",{className:"Body2Regular pds2-text-content-primary",children:((st=_==null?void 0:_.duration)==null?void 0:st.to)&&formatDateTime((it=_==null?void 0:_.duration)==null?void 0:it.to,{date:!0,time:!1})})]}),($==null?void 0:$.status)===ConsentStatus.REQUESTED&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(n,{className:"pds2-text-primary-brand pds2-text-16",onClick:()=>{var lt;return(lt=o.current)==null?void 0:lt.showPicker()}}),jsxRuntimeExports.jsx("input",{className:"pds2-absolute pds2-opacity-0 pds2-pointer-events-none",ref:o,type:"date",max:_e.toISOString().split("T")[0],onChange:lt=>et("to",lt.target.value)})]})]})}),jsxRuntimeExports.jsxs("div",{className:`pds2-px-16 pds2-py-6 Body3Regular pds2-text-content-secondary ${($==null?void 0:$.status)===ConsentStatus.GRANTED?"pds2-flex pds2-justify-between":""}`,children:["Expires on",(_==null?void 0:_.erase_at)&&jsxRuntimeExports.jsx("div",{className:"Body2Regular pds2-text-content-primary",children:formatDateTime(_==null?void 0:_.erase_at,{date:!0,time:!0})})]})]})},ConsentHCPCard=()=>{var vt,ut,ot;const a=useAuthAbhaStore(nt=>nt.consentDetails),o=(vt=a==null?void 0:a.providers)==null?void 0:vt.reduce((nt,dt)=>(nt[dt.hip.id]=dt.care_contexts,nt),{}),_=useAuthAbhaStore(nt=>nt.setConsentApiBody),[b,$]=reactExports.useState(o||{}),[_e,et]=reactExports.useState([]),tt=()=>{var nt;return(nt=Object==null?void 0:Object.entries(b??{}))==null?void 0:nt.map(([dt,yt])=>({hip_id:dt,care_contexts:yt}))};reactExports.useEffect(()=>{const nt=tt();_({consent_artefacts:nt})},[b]);const rt=nt=>{et(dt=>dt.includes(nt)?dt.filter(yt=>yt!==nt):[...dt,nt])},st=nt=>_e.includes(nt),it=(ut=a==null?void 0:a.providers)==null?void 0:ut.every(nt=>b[nt.hip.id].length===nt.care_contexts.length&&nt.care_contexts.length>0),lt=nt=>{var dt;return((dt=b[nt.hip.id])==null?void 0:dt.length)===nt.care_contexts.length},at=(nt,dt)=>{var yt;return(yt=b[nt])==null?void 0:yt.some(_t=>_t.id===dt)},ft=nt=>{if(nt){const dt=a==null?void 0:a.providers.reduce((yt,_t)=>(yt[_t.hip.id]=_t.care_contexts,yt),{});$(dt||{})}else{const dt=a==null?void 0:a.providers.reduce((yt,_t)=>(yt[_t.hip.id]=[],yt),{});$(dt||{})}},ht=(nt,dt)=>{const yt=nt.hip.id;$(_t=>({..._t,[yt]:dt?nt.care_contexts:[]}))},pt=(nt,dt,yt)=>{$(_t=>{const At=_t[nt]??[];let xt;return yt?xt=[...At,dt]:xt=At.filter(wt=>wt.id!==dt.id),{..._t,[nt]:xt}})};return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:"Body3Medium pds2-flex pds2-gap-10 pds2-px-16 pds2-py-16 pds2-uppercase pds2-border-b pds2-border-surface-muted",children:[jsxRuntimeExports.jsx("input",{type:"checkbox",className:"pds2-accent-primary-brand",checked:it,onChange:nt=>{if((a==null?void 0:a.status)!=ConsentStatus.REQUESTED){nt.preventDefault();return}ft(nt.target.checked)},onClick:nt=>{(a==null?void 0:a.status)!=ConsentStatus.REQUESTED&&(nt.preventDefault(),nt.stopPropagation())}}),"All"]}),(ot=a==null?void 0:a.providers)==null?void 0:ot.map(nt=>{const dt=nt.hip.id;return jsxRuntimeExports.jsxs("div",{className:"Body3Medium",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-justify-between pds2-items-center pds2-cursor-pointer",onClick:()=>rt(dt),children:[jsxRuntimeExports.jsxs("div",{className:" pds2-flex pds2-gap-10 pds2-px-16 pds2-py-16 pds2-text-content-secondary",children:[jsxRuntimeExports.jsx("input",{type:"checkbox",className:"pds2-accent-primary-brand",checked:lt(nt),onChange:yt=>{if((a==null?void 0:a.status)!=ConsentStatus.REQUESTED){yt.preventDefault();return}ht(nt,yt.target.checked)},onClick:yt=>{(a==null?void 0:a.status)!=ConsentStatus.REQUESTED&&(yt.preventDefault(),yt.stopPropagation())}}),nt.hip.name]}),jsxRuntimeExports.jsx("div",{className:"pds2-pr-16",children:st(dt)?jsxRuntimeExports.jsx(e,{}):jsxRuntimeExports.jsx(c$3,{})})]}),st(dt)&&jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-rounded-16 pds2-bg-surface-base pds2-space-y-8",children:nt.care_contexts.map((yt,_t)=>jsxRuntimeExports.jsx("div",{className:`pds2-px-24 pds2-py-16 ${_t<nt.care_contexts.length-1?"pds2-border-b pds2-border-surface-muted":""}`,children:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-gap-10",children:[jsxRuntimeExports.jsx("input",{type:"checkbox",className:"pds2-accent-primary-brand",checked:at(dt,yt.id),onChange:At=>{if((a==null?void 0:a.status)!=ConsentStatus.REQUESTED){At.preventDefault();return}pt(dt,yt,At.target.checked)},onClick:At=>{(a==null?void 0:a.status)!=ConsentStatus.REQUESTED&&(At.preventDefault(),At.stopPropagation())}}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-gap-5 pds2-flex-col",children:[jsxRuntimeExports.jsx("div",{className:"!Body2Regular pds2-text-content-primary",children:yt.display}),jsxRuntimeExports.jsx("div",{className:"!Body3Regular pds2-text-content-secondary",children:yt.id})]})]})},yt.id))})]},dt)})]})},AbhaLoadingStatus=({loaderText:a})=>jsxRuntimeExports.jsxs("div",{className:"pds2-bg-surface-subtle pds2-px-16 pds2-w-full pds2-min-h-full pds2-flex pds2-flex-col pds2-items-center pds2-justify-center pds2-text-center",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-gap-10",children:[jsxRuntimeExports.jsx("div",{className:"pds2-w-12 pds2-h-12 pds2-bg-primary-brand pds2-rounded-full"}),jsxRuntimeExports.jsx("div",{className:"pds2-w-12 pds2-h-12 pds2-bg-primary-brand pds2-rounded-full"}),jsxRuntimeExports.jsx("div",{className:"pds2-w-12 pds2-h-12 pds2-bg-primary-brand pds2-rounded-full"})]}),jsxRuntimeExports.jsx("div",{className:"pds2-text-content-primary Heading4Semibold pds2-mt-48",children:a||"Loading"})]}),ConsentDetailsScreen=()=>{const a=useAuthAbhaStore(et=>et.setScreen),o=useAuthAbhaStore(et=>et.initAbhaFlow),_=useAuthAbhaStore(et=>et.clientId),b=useAuthAbhaStore(et=>et.consentDetails),$={REQUESTED:"Consent Request Details",GRANTED:"Granted Consent Details",DENIED:"Consent Denied Details",EXPIRED:"Consent Expired Details",REVOKED:"Consent Revoked Details"},_e=useTrackAbhaEvent();return b||_e({name:"abha_consent_details_screen",data:{page_view:"abha_consent_details_screen",platform:_,error:"consent details not found",flow:o}}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-base",children:b?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Pds2Header,{title:`${b!=null&&b.status?$[b.status]??"":""}`,className:"pds2-border-b-1 pds2-border-surface-muted"}),jsxRuntimeExports.jsxs("div",{className:"pds2-p-16 pds2-space-y-16 pds2-overflow-y-auto pds2-flex-1 pds2-bg-surface-subtle",children:[jsxRuntimeExports.jsx(ConsentCard,{}),jsxRuntimeExports.jsx("div",{className:"Body3Semibold pds2-text-content-secondary",children:"DURATION"}),jsxRuntimeExports.jsx(ConsentDurationCard,{}),jsxRuntimeExports.jsx("div",{className:"Body3Semibold pds2-text-content-secondary",children:"REQUEST INFORMATION TYPE"}),jsxRuntimeExports.jsx(ConsentHiTypeListCard,{}),jsxRuntimeExports.jsxs("div",{className:"Body3Semibold pds2-text-content-secondary",children:["HEALTH CARE PROVIDERS",jsxRuntimeExports.jsx("br",{}),"Sharing your data for requested information, from following healthcare providers:"]}),jsxRuntimeExports.jsx(ConsentHCPCard,{}),jsxRuntimeExports.jsx("div",{className:"Body3Semibold pds2-text-content-secondary",children:"By granting this consent, you agree to let the Doctors view your health information."})]}),["REQUESTED","GRANTED"].includes(b.status)&&jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-gap-10 pds2-p-16 pds2-sticky pds2-bottom-0 pds2-bg-surface-base pds2-w-full pds2-border pds2-border-surface-muted",children:[b.status==="REQUESTED"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Pds2Button,{title:"Deny",buttonColor:"pds2-bg-surface-danger",className:"pds2-w-full",onClick:()=>a(SCREEN_NAMES.CONSENT_DENY)}),jsxRuntimeExports.jsx(Pds2Button,{title:"Grant Access",buttonColor:"pds2-bg-semantic-success",className:"pds2-w-full",onClick:()=>a(SCREEN_NAMES.CONSENT_APPROVE)})]}),b.status==="GRANTED"&&jsxRuntimeExports.jsx(Pds2Button,{title:"Revoke Access",buttonColor:"pds2-bg-surface-danger",className:"pds2-w-full",onClick:()=>a(SCREEN_NAMES.CONSENT_REVOKE)})]})]}):jsxRuntimeExports.jsx(AbhaLoadingStatus,{})})},v$2="5.9.6",fr$2=30,ip$2=0,op$2=10,w$2=400,h$2=400,nm$2="Композиция 1",ddd$1=0,assets$2=[{id:"comp_0",nm:"closr",fr:30,layers:[{ddd:0,ind:1,ty:4,nm:"Кривые Слой 6",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.167],y:[0]},t:0,s:[0]},{i:{x:[.111],y:[.313]},o:{x:[.333],y:[0]},t:9,s:[0]},{i:{x:[.666],y:[1]},o:{x:[.157],y:[0]},t:15,s:[100]},{i:{x:[.795],y:[1]},o:{x:[.436],y:[0]},t:50,s:[100]},{t:59,s:[0]}],ix:11},r:{a:1,k:[{i:{x:[.464],y:[1.145]},o:{x:[.333],y:[0]},t:5,s:[134]},{i:{x:[.833],y:[1]},o:{x:[.167],y:[0]},t:16,s:[0]},{i:{x:[.833],y:[1]},o:{x:[.167],y:[0]},t:50,s:[0]},{t:59,s:[125]}],ix:10},p:{a:0,k:[200,200,0],ix:2,l:2},a:{a:0,k:[43.184,43.184,0],ix:1,l:2},s:{a:1,k:[{i:{x:[0,0,.667],y:[1.194,1.194,1]},o:{x:[.773,.773,.333],y:[0,0,0]},t:7,s:[130,130,100]},{i:{x:[.664,.664,.664],y:[1,1,1]},o:{x:[.157,.157,.157],y:[0,0,0]},t:16,s:[100,100,100]},{i:{x:[.796,.796,.796],y:[1,1,1]},o:{x:[.436,.436,.436],y:[0,0,0]},t:50,s:[100,100,100]},{t:59,s:[30,30,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]],o:[[0,0],[0,0]],v:[[-38.184,38.184],[38.184,-38.184]],c:!1},ix:2},nm:"Контур 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,.999998743394,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:20,ix:5},lc:2,lj:1,ml:10,bm:0,nm:"Обводка 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.456032696892,.725485827876,.257378462249,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Заливка 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[43.184,43.184],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Преобразовать"}],nm:"Группа 1",np:3,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:[[-38.184,-38.184],[38.184,38.184]],c:!1},ix:2},nm:"Контур 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,.999998743394,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:20,ix:5},lc:2,lj:1,ml:10,bm:0,nm:"Обводка 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.456032696892,.725485827876,.257378462249,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Заливка 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[43.184,43.184],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Преобразовать"}],nm:"Группа 2",np:3,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1}],ip:0,op:311,st:0,ct:1,bm:0},{ddd:0,ind:2,ty:4,nm:"Кривые Слой 5",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:0,s:[0]},{t:3,s:[100]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[200,200,0],ix:2,l:2},a:{a:0,k:[96.25,96.25,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.524,.524,.667],y:[1.264,1.264,1]},o:{x:[.712,.712,.333],y:[0,0,0]},t:-.566,s:[4,4,100]},{i:{x:[.833,.833,.833],y:[1,1,1]},o:{x:[.517,.517,.333],y:[0,0,0]},t:17,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[1,1,.167],y:[-.624,-.624,-16.667]},t:49,s:[100,100,100]},{t:61.208984375,s:[0,0,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,-53.019],[53.019,0],[0,53.019],[-53.019,0]],o:[[0,53.019],[-53.019,0],[0,-53.019],[53.019,0]],v:[[96,0],[0,96],[-96,0],[0,-96]],c:!0},ix:2},nm:"Контур 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.898595114315,.179309067072,.190338763069,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Заливка 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[96.25,96.25],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Преобразовать"}],nm:"Группа 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:311,st:0,ct:1,bm:0}]}],layers$2=[{ddd:0,ind:1,ty:0,nm:"closr",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[200,200,0],ix:2,l:2},a:{a:0,k:[200,200,0],ix:1,l:2},s:{a:0,k:[154,154,100],ix:6,l:2}},ao:0,w:400,h:400,ip:0,op:311,st:0,bm:0}],markers$2=[],animationDataLoading={v:v$2,fr:fr$2,ip:ip$2,op:op$2,w:w$2,h:h$2,nm:nm$2,ddd:ddd$1,assets:assets$2,layers:layers$2,markers:markers$2},v$1="5.9.6",fr$1=30,ip$1=0,op$1=50,w$1=400,h$1=400,nm$1="Композиция 1",ddd=0,assets$1=[{id:"comp_0",nm:"closr",fr:30,layers:[{ddd:0,ind:1,ty:4,nm:"Кривые Слой 6",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.167],y:[0]},t:0,s:[0]},{i:{x:[.111],y:[.313]},o:{x:[.333],y:[0]},t:9,s:[0]},{i:{x:[.666],y:[1]},o:{x:[.157],y:[0]},t:15,s:[100]},{i:{x:[.795],y:[1]},o:{x:[.436],y:[0]},t:50,s:[100]},{t:59,s:[0]}],ix:11},r:{a:1,k:[{i:{x:[.464],y:[1.145]},o:{x:[.333],y:[0]},t:5,s:[134]},{i:{x:[.833],y:[1]},o:{x:[.167],y:[0]},t:16,s:[0]},{i:{x:[.833],y:[1]},o:{x:[.167],y:[0]},t:50,s:[0]},{t:59,s:[125]}],ix:10},p:{a:0,k:[200,200,0],ix:2,l:2},a:{a:0,k:[43.184,43.184,0],ix:1,l:2},s:{a:1,k:[{i:{x:[0,0,.667],y:[1.194,1.194,1]},o:{x:[.773,.773,.333],y:[0,0,0]},t:7,s:[130,130,100]},{i:{x:[.664,.664,.664],y:[1,1,1]},o:{x:[.157,.157,.157],y:[0,0,0]},t:16,s:[100,100,100]},{i:{x:[.796,.796,.796],y:[1,1,1]},o:{x:[.436,.436,.436],y:[0,0,0]},t:50,s:[100,100,100]},{t:59,s:[30,30,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]],o:[[0,0],[0,0]],v:[[-38.184,38.184],[38.184,-38.184]],c:!1},ix:2},nm:"Контур 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,.999998743394,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:20,ix:5},lc:2,lj:1,ml:10,bm:0,nm:"Обводка 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.456032696892,.725485827876,.257378462249,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Заливка 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[43.184,43.184],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Преобразовать"}],nm:"Группа 1",np:3,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:[[-38.184,-38.184],[38.184,38.184]],c:!1},ix:2},nm:"Контур 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,.999998743394,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:20,ix:5},lc:2,lj:1,ml:10,bm:0,nm:"Обводка 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.456032696892,.725485827876,.257378462249,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Заливка 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[43.184,43.184],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Преобразовать"}],nm:"Группа 2",np:3,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1}],ip:0,op:311,st:0,ct:1,bm:0},{ddd:0,ind:2,ty:4,nm:"Кривые Слой 5",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:0,s:[0]},{t:3,s:[100]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[200,200,0],ix:2,l:2},a:{a:0,k:[96.25,96.25,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.524,.524,.667],y:[1.264,1.264,1]},o:{x:[.712,.712,.333],y:[0,0,0]},t:-.566,s:[4,4,100]},{i:{x:[.833,.833,.833],y:[1,1,1]},o:{x:[.517,.517,.333],y:[0,0,0]},t:17,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[1,1,.167],y:[-.624,-.624,-16.667]},t:49,s:[100,100,100]},{t:61.208984375,s:[0,0,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,-53.019],[53.019,0],[0,53.019],[-53.019,0]],o:[[0,53.019],[-53.019,0],[0,-53.019],[53.019,0]],v:[[96,0],[0,96],[-96,0],[0,-96]],c:!0},ix:2},nm:"Контур 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.898595114315,.179309067072,.190338763069,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Заливка 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[96.25,96.25],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Преобразовать"}],nm:"Группа 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:311,st:0,ct:1,bm:0}]}],layers$1=[{ddd:0,ind:1,ty:0,nm:"closr",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[200,200,0],ix:2,l:2},a:{a:0,k:[200,200,0],ix:1,l:2},s:{a:0,k:[154,154,100],ix:6,l:2}},ao:0,w:400,h:400,ip:0,op:311,st:0,bm:0}],markers$1=[],animationData$1={v:v$1,fr:fr$1,ip:ip$1,op:op$1,w:w$1,h:h$1,nm:nm$1,ddd,assets:assets$1,layers:layers$1,markers:markers$1},AbhaRejectionStatus=({loading:a=!1,loadingText:o,rejectText:_})=>jsxRuntimeExports.jsx("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 pds2-bg-surface-subtle",children:a?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Lottie,{animationData:animationDataLoading,loop:!0,className:"pds2-w-200"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-content-primary Heading4Semibold pds2-absolute pds2-mt-220",children:o})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Lottie,{animationData:animationData$1,loop:!1,className:"pds2-w-200"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-content-primary Heading4Semibold pds2-absolute pds2-mt-220",children:_})]})}),AbhaConsentDenyScreen=()=>{const[a,o]=reactExports.useState(!0),_=useAuthAbhaStore(it=>it.clientId),b=useAuthAbhaStore(it=>it.initAbhaFlow),$=useAuthAbhaStore(it=>it.abhaRequestConsentId),_e=useAuthAbhaStore(it=>it.goBackLoginScreen),et=useAuthAbhaStore(it=>it.setBottomsheetErrorInfo),tt=useTrackAbhaEvent(),rt=()=>{tt({name:"abha_consent_revoke_error_bottomsheet_dismissed",data:{platform:_,flow:b}}),et(null),_e(),setIndividualEnv({extraHeaders:{auth:""}})},st=async()=>{if(!$){tt({name:"abha_consent_deny_screen",data:{page_view:"abha_consent_request_page",platform:_,data:{flow:b,error_msg:"No consent ID found"}}}),console.error("No consent ID found");return}tt({name:"abha_consent_revoke_triggered",data:{flow_step_type:"init",clientId:_,flow:b}});const it=await postAbdmConsentDeny({consentId:$});if("success"in it){console.log("Success"),o(!1),setTimeout(()=>{onConsentSuccess("Consent deny success onConsentSuccess called, next page redirect"),window.location.href="https://www.eka.care/s/for-patients"},3e3),tt({name:"abha_consent_deny_success",data:{flow:b,flow_step_type:"init",clientId:_}});return}const{code:lt,error:at,source_error:ft}=it;et({title:"Please try again.",img:"",description:"Something went wrong.",cta:{title:"",pid:"",params:null}}),tt({name:"abha_consent_revoke_failed",data:{flow_step_type:"init",clientId:_,flow:b,error_code:lt,error_msg:at,source_error:ft}})};return reactExports.useEffect(()=>{st()},[]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(AbhaRejectionStatus,{loading:a,loadingText:"Denying...",rejectText:"Consent Denied Successfully!"}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:rt})]})},AbhaConsentRevokeScreen=()=>{const[a,o]=reactExports.useState(!0),_=useAuthAbhaStore(it=>it.clientId),b=useAuthAbhaStore(it=>it.initAbhaFlow),$=useAuthAbhaStore(it=>it.setBottomsheetErrorInfo),_e=useAuthAbhaStore(it=>it.goBackLoginScreen),et=useAuthAbhaStore(it=>it.consentApiBody),tt=useTrackAbhaEvent(),rt=()=>{tt({name:"abha_consent_revoke_error_bottomsheet_dismissed",data:{platform:_,flow:b}}),$(null),_e(),setIndividualEnv({extraHeaders:{auth:""}})},st=async()=>{if(!(et!=null&&et.consent_artefacts_id)){tt({name:"abha_consent_revoke_screen",data:{page_view:"abha_consent_request_page",flow:b,platform:_,data:{error_msg:"No consent artefacts ids found"}}}),console.error("No consent artefacts ids found");return}const it=await postAbdmConsentRevoke({consent_artefacts_ids:et==null?void 0:et.consent_artefacts_id});if("success"in it){console.log("Success"),o(!1),setTimeout(()=>{onConsentSuccess("Consent revoke success onConsentSuccess called, next page redirect"),window.location.href="https://www.eka.care/s/for-patients"},3e3),tt({name:"abha_consent_revoke_success",data:{flow:b,flow_step_type:"init",clientId:_}});return}const{code:lt,error:at,source_error:ft}=it;$({title:"Please try again.",img:"",description:"Something went wrong.",cta:{title:"",pid:"",params:null}}),tt({name:"abha_consent_revoke_failed",data:{flow:b,flow_step_type:"init",clientId:_,error_code:lt,error_msg:at,source_error:ft}})};return reactExports.useEffect(()=>{st()},[]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(AbhaRejectionStatus,{loading:a,loadingText:"Revoke in progress...",rejectText:"Consent Revoked Successfully!"}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:rt})]})},AbhaConsentApproveScreen=()=>{const[a,o]=reactExports.useState(!0),_=useAuthAbhaStore(it=>it.clientId),b=useAuthAbhaStore(it=>it.initAbhaFlow),$=useAuthAbhaStore(it=>it.consentApiBody),_e=useAuthAbhaStore(it=>it.goBackLoginScreen),et=useAuthAbhaStore(it=>it.setBottomsheetErrorInfo),tt=useTrackAbhaEvent(),rt=()=>{tt({name:"abha_consent_approve_error_bottomsheet_dismissed",data:{platform:_,flow:b}}),et(null),_e(),setIndividualEnv({extraHeaders:{auth:""}})},st=async()=>{if(!$){tt({name:"abha_consent_approve_screen",data:{page_view:"abha_consent_request_page",platform:_,data:{flow:b,error_msg:"No consent details found"}}}),console.error("No consent details found");return}const{consent_artefacts_id:it,...lt}=$,at=await postAbdmConsentApprove({consentApprovePayload:lt});if("success"in at){console.log("Success"),o(!1),setTimeout(()=>{onConsentSuccess("Consent grant success onConsentSuccess called, next page redirect"),window.location.href="https://www.eka.care/s/for-patients"},3e3),tt({name:"abha_consent_grant_success",data:{flow:b,flow_step_type:"init",clientId:_}});return}const{code:ft,error:ht,source_error:pt}=at;et({title:"Please try again.",img:"",description:"Something went wrong.",cta:{title:"",pid:"",params:null}}),tt({name:"abha_consent_grant_failed",data:{flow:b,flow_step_type:"init",clientId:_,error_code:ft,error_msg:ht,source_error:pt}})};return reactExports.useEffect(()=>{st()},[]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:a,loadingText:"Grant in progress...",successText:"Consent Granted Successfully!"}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:rt})]})};function SelfAssessmentSDKIframe({src:a,mountConfig:o,iframeId:_="sa-sdk-iframe"}){const b=reactExports.useRef(null),$=reactExports.useRef(null);return reactExports.useEffect(()=>{var it;const _e=b.current;if(!_e)return;$.current&&($.current.remove(),$.current=null);const et=document.createElement("iframe");$.current=et,et.id=_,et.style.width="100%",et.style.height="100%",et.style.border="0",_e.appendChild(et);const tt=(it=et.contentWindow)==null?void 0:it.document;if(!tt)return;const rt=`
66
66
  <!doctype html>
67
67
  <html>
68
68
  <head><meta charset="utf-8"/></head>
@@ -111,8 +111,8 @@ b.goToAndStop(pt-b.firstFrame-1,!0)}ht.type==="loop"&&(it===null||it!==ht.frames
111
111
  <\/script>
112
112
  </body>
113
113
  </html>
114
- `;tt.open(),tt.write(rt),tt.close();const st=lt=>{var at,ft,ht,pt,vt;lt.source===et.contentWindow&&(((at=lt.data)==null?void 0:at.type)==="sa-init"&&console.log("[SA INIT]",lt.data.data),((ft=lt.data)==null?void 0:ft.type)==="sa-submit"&&console.log("[SA SUBMIT]",lt.data.data),((ht=lt.data)==null?void 0:ht.type)==="sa-end"&&(console.log("[SA END]"),(pt=o.onEndCallback)==null||pt.call(o)),((vt=lt.data)==null?void 0:vt.type)==="sdk-error"&&console.error("SA SDK error:",lt.data.message))};return window.addEventListener("message",st),()=>{window.removeEventListener("message",st),et.remove(),$.current=null}},[a,o,_]),jsxRuntimeExports.jsx("div",{ref:b,style:{height:"100dvh"}})}function calculateAge$1(a){const o=new Date(a),_=new Date;let b=_.getFullYear()-o.getFullYear();return(_.getMonth()<o.getMonth()||_.getMonth()===o.getMonth()&&_.getDate()<o.getDate())&&b--,b}const SelfAssessmentScreen=()=>{const a=useAuthAbhaStore(rt=>rt.setScreen),o=useAuthAbhaStore(rt=>rt.ekaProfileInfo),_=GET_EXTRA_HEADERS(),b=GET_REFRESH_TOKEN(),$=GET_SA_HOST(),_e=GET_SA_WORKFLOW(),et=reactExports.useCallback(()=>{console.log("SA ended → closing SDK and redirecting"),window.closeSaApp?window.closeSaApp():console.warn("closeSaApp not found on window"),a(SCREEN_NAMES.CONSENT_LOADER_SCREEN)},[]),tt={useAuthToken:!0,workflow_id:_e,auth_token:(_==null?void 0:_.auth)??"",refresh_token:b,params:{age:calculateAge$1((o==null?void 0:o.date_of_birth)||""),gender:o==null?void 0:o.gender},practice_info:{patient_uuid:o==null?void 0:o.patient_uuid,unique_identifier:o==null?void 0:o.oid},onEndCallback:et};return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-base",children:[jsxRuntimeExports.jsx(Pds2Header,{title:"",className:"",prefixIcon:"",showHeaderStrip:!1}),jsxRuntimeExports.jsx(SelfAssessmentSDKIframe,{src:`${$}/sa-fe/v2/main.js`,mountConfig:tt})]})},SA_LISTING_URL="https://login.eka.care/sa-listing/index.html",SaListingScreen=()=>{const a=useAuthAbhaStore(it=>it.goBackScreen),o=useAuthAbhaStore(it=>it.setScreen),_=useAuthAbhaStore(it=>it.initAbhaFlow),b=useAuthAbhaStore(it=>it.clientId),$=useAuthAbhaStore(it=>it.ekaProfileInfo),_e=GET_EXTRA_HEADERS(),et=reactExports.useRef(null),tt=useTrackAbhaEvent(),rt=reactExports.useCallback(()=>{o(SCREEN_NAMES.APPOINTMENT_TOKEN_GENERATED_SCREEN)},[o]);reactExports.useEffect(()=>{const it=lt=>{var at,ft,ht,pt,vt,ut;lt.source===((at=et.current)==null?void 0:at.contentWindow)&&(((ft=lt.data)==null?void 0:ft.type)==="sa-listing-ready"&&((vt=(ht=et.current)==null?void 0:ht.contentWindow)==null||vt.postMessage({type:"sa-listing-init",authToken:(_e==null?void 0:_e.auth)||((pt=document.cookie.split("; ").find(ot=>ot.startsWith("sess=")))==null?void 0:pt.split("=")[1])||"",age:calculateAge$1(($==null?void 0:$.date_of_birth)??""),gender:($==null?void 0:$.gender)??"",patient_uuid:($==null?void 0:$.patient_uuid)??"",oid:($==null?void 0:$.oid)??""},"*")),((ut=lt.data)==null?void 0:ut.type)==="sa-listing-close"&&rt())};return window.addEventListener("message",it),()=>window.removeEventListener("message",it)},[$,_e,rt]);const st=()=>{tt({name:"sa_listing_back_clicked",data:{flow:_,type:"app",platform:b}}),a()};return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-base",children:[jsxRuntimeExports.jsx(Pds2Header,{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$3,{})}),title:"Self Assessment",className:"",showHeaderStrip:!0}),jsxRuntimeExports.jsx("iframe",{ref:et,src:SA_LISTING_URL,style:{flex:1,border:"none",width:"100%"},title:"Self Assessment Listing"})]})},ConsentLoaderScreen=()=>{const a=useAuthAbhaStore(lt=>lt.setConsentApiBody),o=useAuthAbhaStore(lt=>lt.setScreen),_=useAuthAbhaStore(lt=>lt.goBackLoginScreen),b=useAuthAbhaStore(lt=>lt.setBottomsheetErrorInfo),$=useAuthAbhaStore(lt=>lt.initAbhaFlow),_e=useAuthAbhaStore(lt=>lt.clientId),et=useAuthAbhaStore(lt=>lt.abhaRequestConsentId),tt=useAuthAbhaStore(lt=>lt.setConsentDetails),rt=useAuthAbhaStore(lt=>lt.screen),st=useTrackAbhaEvent();reactExports.useEffect(()=>{const lt=rt[rt.length-2];st({name:"abha_consent_request_page",data:{page_view:"abha_consent_request_page",platform:_e,flow:$}}),st({name:"fetch_consent_details_api",data:{type:"get_init",platform:_e,flow:$}});const at=async(pt,vt)=>{var ut,ot,nt;try{if(!et)return st({name:"abha_consent_request_page",data:{page_view:"abha_consent_request_page",platform:_e,flow:$,data:{error_msg:"No consent ID found"}}}),console.error("No consent ID found"),{response:null,hasEkaCareHIP:!1,error:null};let dt=await getConsentRequest({id:et,type:"requested"});(dt==null?void 0:dt.status)==="GRANTED"&&(dt=await getConsentRequest({id:et,type:"granted"})),tt(dt),a({id:dt.id,access_mode:dt.access_mode.toLowerCase(),duration:{from:((ut=dt.duration)==null?void 0:ut.from)??void 0,to:((ot=dt.duration)==null?void 0:ot.to)??void 0},erase_at:dt.erase_at,hi_types:dt.hi_types.map(_t=>_t.id),consent_artefacts:dt.providers.map(_t=>{var At;return{hip_id:((At=_t.hip)==null?void 0:At.id)??"",care_contexts:_t.care_contexts??[]}}),consent_artefacts_id:dt.providers.map(_t=>_t.consent_artefact_id??"")});const yt=(nt=dt.providers)==null?void 0:nt.some(_t=>_t.hip.id==="ekacare");return{response:dt,hasEkaCareHIP:yt,error:null}}catch(dt){const{code:yt,error:_t,source_error:At}=dt;return st({name:pt==="init"?"abha_consent_get_failed":"abha_consent_polling_failed",data:{flow_step_type:pt,clientId:_e,attempt:vt,error_code:yt,error_msg:_t,source_error:At,flow:$}}),{response:null,hasEkaCareHIP:!1,error:dt}}},ft=async()=>{st({name:"abha_consent_get_triggered",data:{flow_step_type:"init",clientId:_e,flow:$}});const{hasEkaCareHIP:pt,response:vt}=await at("init");!pt&&(vt==null?void 0:vt.status)==="REQUESTED"?(st({name:"abha_consent_no_ekacare_hip",data:{platform:_e,flow:$}}),o(SCREEN_NAMES.SELF_ASSESSMENT)):(st({name:"abha_consent_has_ekacare_hip",data:{platform:_e,flow:$}}),o(SCREEN_NAMES.CONSENT_SCREEN)),st({name:"abha_consent_get_success",data:{flow_step_type:"init",clientId:_e,flow:$}})},ht=()=>{let pt=0;const vt=5;st({name:"abha_consent_polling_started",data:{platform:_e,flow:$}});const ut=async()=>{pt++,st({name:"abha_consent_polling_attempt",data:{attempt:pt,platform:_e,flow:$}});const{hasEkaCareHIP:nt,response:dt}=await at("polling",pt);if(nt){clearInterval(ot),st({name:"abha_consent_polling_success",data:{attempt:pt,platform:_e,flow:$}}),o(SCREEN_NAMES.CONSENT_SCREEN);return}pt>=vt&&(clearInterval(ot),st({name:"abha_consent_polling_timeout",data:{attempts:pt,platform:_e,flow:$}}),o(SCREEN_NAMES.CONSENT_SCREEN))};ut();const ot=setInterval(ut,1e3);return()=>clearInterval(ot)};lt===SCREEN_NAMES.SELF_ASSESSMENT?ht():ft()},[]);const it=()=>{st({name:"abha_consent_request_error_bottomsheet_dismissed",data:{platform:_e,flow:$}}),b(null),_(),setIndividualEnv({extraHeaders:{auth:""}})};return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-base",children:[jsxRuntimeExports.jsx(AbhaLoadingStatus,{}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:it})]})},KYCLoginScreen=()=>{const a=useAuthAbhaStore(b=>b.clientId);reactExports.useEffect(()=>{var b;if((b=window.EkaAbha)!=null&&b.changeStatusBarColor)return window.EkaAbha.changeStatusBarColor("#F2F4F7"),()=>{var $,_e;($=window.EkaAbha)!=null&&$.changeStatusBarColor&&((_e=window==null?void 0:window.EkaAbha)==null||_e.changeStatusBarColor("#FFFFFF"))}},[]);const o=()=>{var b;(b=window.EkaAbha)==null||b.onAbhaClose(),unMount()},_=["eka-web","www-eka","doctor"];return jsxRuntimeExports.jsxs("div",{className:"pds2-h-full pds2-overflow-y-auto",children:[jsxRuntimeExports.jsx(Pds2Header,{prefixIcon:jsxRuntimeExports.jsx("button",{onClick:o,children:jsxRuntimeExports.jsx(n$3,{})}),title:"",className:"pds2-bg-surface-subtle",showHeaderStrip:!_.includes(a)}),jsxRuntimeExports.jsx(KYCDiffMethods,{})]})},KYCDiffMethods=()=>{const a=useAuthAbhaStore(kt=>kt.abhaAuthFlowMethod||ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),o=useAuthAbhaStore(kt=>kt.authTxnId),_=useAuthAbhaStore(kt=>kt.setAbhaAuthFlowMethod),b=useAuthAbhaStore(kt=>kt.goBackToLogin),$=useAuthAbhaStore(kt=>kt.setGoBackToLogin),_e=useAuthAbhaStore(kt=>kt.setIdentifierValue),et=useAuthAbhaStore(kt=>kt.identifierValue),tt=useAuthAbhaStore(kt=>kt.initAbhaFlow),rt=useAuthAbhaStore(kt=>kt.setRegistrationType),st=useAuthAbhaStore(kt=>kt.setAadhaarInitResponse),it=useAuthAbhaStore(kt=>kt.initAbhaAppIdentifierType),lt=useAuthAbhaStore(kt=>kt.initAbhaAppIdentifier);useAuthAbhaStore(kt=>kt.isDocAppRequest),useAuthAbhaStore(kt=>kt.clientId);const at=useAuthAbhaStore(kt=>kt.isInitApiTriggered),ft=useAuthAbhaStore(kt=>kt.setIsInitApiTriggered),ht=useAuthAbhaStore(kt=>kt.setIdentityValue),pt=useAuthAbhaStore(kt=>kt.setSelectedAbhaFlow),vt=useAuthAbhaStore(kt=>kt.setKycInitResponse),ut=useAuthAbhaStore(kt=>kt.orgIconUrl),[ot,nt]=reactExports.useState(LOADING_STATE.IDLE),[dt,yt]=reactExports.useState(""),_t=useAuthAbhaStore(kt=>kt.setScreen),[At,xt]=reactExports.useState(!1),[wt,bt]=reactExports.useState(!1),[It,Nt]=reactExports.useState(et.aadhaar_number||""),[Ct,jt]=reactExports.useState(et.abha_number||""),Et=reactExports.useRef(!1),gt=GET_EXTRA_HEADERS();gt==null||gt["X-User-ID"],reactExports.useEffect(()=>{St({name:"abha_kyc_login_screen",data:{flow:tt}}),handleReadOTP()},[]),reactExports.useEffect(()=>{_e({aadhaar_number:It})},[It]),reactExports.useEffect(()=>{_e({abha_number:Ct})},[Ct]),reactExports.useEffect(()=>{lt&&it===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&!b?(_e({abha_number:lt}),jt(lt),bt(!0),_(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER)):lt&&it===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!b&&(Nt(lt),xt(!0),_e({aadhaar_number:lt}),_(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER))},[it,lt]),reactExports.useEffect(()=>{at||Et.current||It&&It.length===12&&a==ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&(ft(!0),Et.current=!0,Tt())},[It]),reactExports.useEffect(()=>{at||Et.current||Ct&&Ct.length===17&&a==ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&(ft(!0),Et.current=!0,Tt())},[Ct]);const St=useTrackAbhaEvent(),ct=React.useMemo(()=>{switch(a){case ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER:return et.abha_number.length===17;case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:return et.aadhaar_number.length===12}},[a,et]),mt=({inputVal:kt})=>{kt.length===12&&(_e({aadhaar_number:kt}),Nt(kt),xt(!0))},Rt=({inputVal:kt})=>{if(kt.length===14){let Ht="";kt.length>0&&(Ht+=kt.slice(0,2)),kt.length>2&&(Ht+=`-${kt.slice(2,6)}`),kt.length>6&&(Ht+=`-${kt.slice(6,10)}`),kt.length>10&&(Ht+=`-${kt.slice(10,14)}`),_e({abha_number:Ht}),jt(Ht),bt(!0)}};reactExports.useEffect(()=>{console.log("selectedMethod changed:==================>",a)},[a]);const Tt=async kt=>{var Ht;if(nt(LOADING_STATE.LOADING),a===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER){const{txn_id:Pt,error:Lt,action:Bt,hint:$t}=await postAbdmKycInit({method:"abha-number",identifier:et.abha_number});if(St({name:"abha_kyc_init_triggered",data:{flow:tt,flow_step_type:"init",ndhmTxnId:Pt,method:a}}),ft(!0),ht(et.abha_number),Pt){vt({txnId:Pt,kycOtpSentToHint:$t||null}),nt(LOADING_STATE.RESOLVED),_t(SCREEN_NAMES.VERIFY_KYC_OTP_LOGIN_WITH_ABHA);return}St({name:"abha_kyc_init_failure",data:{flow:tt,error_message:Lt||"unknown_error",error_message_exists:!!Lt,authTxnId:o,error_action:Bt,error_action_exists:!!Bt}}),yt(Lt||"Something went wrong"),nt(LOADING_STATE.REJECTED)}else{St({name:"aadhaar_registration_init_start",data:{flow:tt,flow_step_type:"init",authTxnId:o,aadhaarNumber:et.aadhaar_number}});const{txn_id:Pt,hint:Lt,error:Bt,action:$t}=await postRegisterAadhaarInit({aadhaar_number:et.aadhaar_number});if(ht(et.aadhaar_number),pt("aadhaar"),Pt&&Lt){st({authTxnId:o,txnId:Pt,aadhaarOtpSentToHint:Lt}),St({name:"aadhaar_registration_init_success",data:{flow:tt,flow_step_type:"verify",ndhmTxnId:Pt,authTxnId:o}}),$(!1),rt(REGISTRATION_TYPE.CREATE),nt(LOADING_STATE.RESOLVED),_t(SCREEN_NAMES.ABHA_OTP_AND_MOBILE);return}if(St({name:"abha_registration_init_failure",data:{flow:tt,error_message:Bt||"unknown_error",error_message_exists:!!Bt,authTxnId:o,error_action:$t,error_action_exists:!!$t}}),yt(Bt||"Something went wrong"),nt(LOADING_STATE.REJECTED),$t||Bt){$(!0),(Ht=$t==null?void 0:$t.cta)!=null&&Ht.pid?_t(SCREEN_NAMES.LOGIN_OR_CREATE_ABHA):yt(Bt||"Something went wrong");return}}},Dt=kt=>{const Ht=kt.replace(/-/g,""),Pt=Ht.slice(0,2),Bt=Ht.slice(2).match(/.{1,4}/g)||[];return[Pt,...Bt]};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:"pds2-p-16 pds2-bg-surface-subtle pds2-space-y-16 pds2-text-center pds2-rounded-b-24 pds2-pt-22",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-center pds2-items-center pds2-gap-16",children:jsxRuntimeExports.jsxs("div",{className:`pds2-rounded-16 ${ut?"pds2-flex pds2-gap-10":""}`,children:[jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-w-64 pds2-h-64 pds2-bg-surface-base pds2-rounded-16"}),ut&&jsxRuntimeExports.jsx("img",{src:ut,alt:"org-icon",className:"pds2-w-64 pds2-h-64 pds2-rounded-16"})]})}),jsxRuntimeExports.jsx("div",{className:"Heading3Semibold pds2-text-content-primary",children:"Complete KYC"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-content-secondary",style:{marginTop:"4px"},children:a===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER?"using existing ABHA Number":a===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?"using your Aadhaar Number":""}),jsxRuntimeExports.jsx("div",{className:"pds2-w-full",children:jsxRuntimeExports.jsxs("div",{className:"pds2-relative pds2-flex pds2-bg-surface-muted pds2-rounded-12",children:[jsxRuntimeExports.jsx("div",{className:"pds2-absolute pds2-top-0 pds2-bottom-0 pds2-bg-surface-base pds2-rounded-12 pds2-transition-all pds2-duration-300",style:{left:a===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?0:"50%",width:"50%",boxShadow:"0px 10px 4px -6px #18274B17"}}),jsxRuntimeExports.jsxs("button",{onClick:()=>{_(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),yt("")},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"})]}),jsxRuntimeExports.jsxs("button",{onClick:()=>{_(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER),yt("")},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/cm6hreldp000b0tfwf0nj156l.webp",alt:"abha-abdm-icon",className:"pds2-w-26 pds2-h-26"}),jsxRuntimeExports.jsx("span",{className:`pds2-text-base ${a===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER?"pds2-font-bold pds2-text-fg-default":"pds2-font-normal pds2-text-fg-subtle"}`,style:a===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER?{fontWeight:700}:{fontWeight:400},children:"ABHA number"})]})]})}),jsxRuntimeExports.jsx("div",{className:"pds2-mt-16 pds2-w-full pds2-max-w-md pds2-mx-auto pds2-px-4 pds2-relative pds2-pb-20 pds2-pt-10",children:a===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?jsxRuntimeExports.jsx(AbhaInputComponent,{isOtpInput:!1,isAbhaNum:!1,initialValues:it===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!b?(lt==null?void 0:lt.match(/.{1,4}/g))??void 0:(It==null?void 0:It.match(/.{1,4}/g))??void 0,disabled:!b&&it===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!!lt,numberOfInputs:3,length:4,placeholder:"XXXX",onSubmit:mt,setIsValid:xt,setValue:Nt,setError:yt},"aadhaar-input"):jsxRuntimeExports.jsx(AbhaInputComponent,{isOtpInput:!1,isAbhaNum:!0,initialValues:it===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&!b?(lt==null?void 0:lt.match(/.{1,4}/g))??void 0:Dt(Ct)??void 0,disabled:!b&&it===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&!!lt,numberOfInputs:4,length:4,placeholder:"XXXX",onSubmit:Rt,setIsValid:bt,setValue:jt,setError:yt},"abha-number-input")}),dt&&jsxRuntimeExports.jsx("div",{className:`${dt.includes("KYC ABHA not found for")?"pds2-text-content-primary":"pds2-text-semantic-error"} !pds2-mt-0 Body3Regular`,children:dt}),jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(c$3,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!ct||ot===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:ot===LOADING_STATE.LOADING,onClick:()=>Tt(),className:"pds2-w-full "})]})})},AbhaKycOtpVerifyScreen=()=>{const a=useAuthAbhaStore(Ct=>Ct.txnId),o=useAuthAbhaStore(Ct=>Ct.clearAbhaAuthStore),_=useAuthAbhaStore(Ct=>Ct.kycOtpSentToHint),b=useAuthAbhaStore(Ct=>Ct.setOTPFromAutoRead),$=useAuthAbhaStore(Ct=>Ct.loginIdentifierValue),_e=useAuthAbhaStore(Ct=>Ct.abhaAuthFlowMethod),et=useAuthAbhaStore(Ct=>Ct.goBackLoginScreen),tt=useAuthAbhaStore(Ct=>Ct.goBackScreen),rt=useAuthAbhaStore(Ct=>Ct.setTxnId),st=useAuthAbhaStore(Ct=>Ct.setBottomsheetErrorInfo);reactExports.useState(!1);const[it,lt]=reactExports.useState(""),[at,ft]=reactExports.useState(!1),[ht,pt]=reactExports.useState(""),[vt,ut]=reactExports.useState(LOADING_STATE.IDLE);useAuthAbhaStore(Ct=>Ct.isEkaAppLogin);const ot=useAuthAbhaStore(Ct=>Ct.clientId),nt=useAuthAbhaStore(Ct=>Ct.initAbhaFlow),dt=useAuthAbhaStore(Ct=>Ct.successRedirect),[yt,_t]=reactExports.useState(!1),At=GET_CLIENT_ID(),xt=useTrackAbhaEvent();reactExports.useEffect(()=>{xt({name:"page_view",data:{flow:nt,page_view:"abha_kyc_otp_verify",platform:ot}})},[]);const wt=()=>{xt({name:"abha_kyc_otp_verify_error_bottomsheet_dismissed",data:{platform:ot,flow:nt}}),et();const Ct=ot,jt=useAuthAbhaStore.getState().isEkaAppLogin;o(),useAuthAbhaStore.setState({clientId:Ct}),useAuthAbhaStore.setState({isEkaAppLogin:jt})},bt=({otp:Ct})=>{lt(Ct),xt({name:"abha_kyc_otp_completion",data:{type:"verify",platform:ot,txn_id:a,otp_entered:!0,method:_e,flow:nt}}),It(Ct)},It=async Ct=>{if(b(""),!a){xt({name:"abha_kyc_otp_verify_txnId_not_found",data:{type:"verify",platform:ot,txn_id:a||"missing_txn_id",txn_id_exists:!!a,method:(_e==null?void 0:_e.toLowerCase())||"unknown_method",flow:nt}});return}xt({name:"abha_kyc_otp_verify",data:{type:"verify",platform:ot,txn_id:a,flow:nt}}),ut(LOADING_STATE.LOADING);const{txn_id:jt,error:Et,action:gt}=await postAbdmKycVerify({otp:Ct,txn_id:a});if(gt){xt({name:"abha_kyc_otp_verify_error_action",data:{type:"verify",platform:ot,error_action:gt||"no_error_action",error_message:Et||"no_error_message",error_action_exists:!!gt,error_message_exists:!!Et,flow:nt}}),st(gt);return}if(Et){xt({name:"abha_kyc_otp_verify_error",data:{type:"verify",platform:ot,error_message:Et||"unknown_error",error_message_exists:!!Et,flow:nt}}),ut(LOADING_STATE.REJECTED),pt(Et);return}ut(LOADING_STATE.RESOLVED),jt&&(_t(!0),At==="ext"?(onKYCSuccess("KYC already verified, onKYCSuccess called, next page redirect"),dt&&setTimeout(()=>{window.location.href=dt},3e3)):ot==="phr"||ot==="doctor"?setTimeout(()=>{onKYCSuccess("KYC verify success, onKYCSuccess called,next abha unmount"),unMount()},3e3):(onKYCSuccess("KYC verify success, onKYCSuccess called, next page redirect"),setTimeout(()=>{window.location.href="https://www.eka.care/s/for-patients"},3e3)))},Nt=async()=>{if($&&_e){const{txn_id:Ct}=await postAbdmKycVerifyResendOtp({txn_id:a??""});xt({name:"abha_kyc_verify_resend_otp",data:{method:_e,platform:ot,txn_id:Ct,flow:nt}}),Ct&&rt(Ct)}};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:yt?jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:!yt,loadingText:"KYC verify in progress...",successText:"KYC Verified Successfully!"}):jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-base",children:[jsxRuntimeExports.jsx(Pds2Header,{prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:()=>tt(),children:jsxRuntimeExports.jsx(n$3,{className:""})}),title:"OTP Verification",className:"pds2-border-b-1 pds2-border-surface-muted"}),nt==null||nt===ABHA_INIT_FLOW.ABHA_REGISTRATION?jsxRuntimeExports.jsx(AbhaStepper,{}):jsxRuntimeExports.jsx("div",{className:"pds2-pt-40 pds2-bg-surface-subtle"}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-space-y-16 pds2-overflow-y-auto pds2-flex-1 pds2-bg-surface-subtle",children:jsxRuntimeExports.jsx(AbhaOtpCard,{otpSentToText:_||"Enter OTP sent on mobile number linked with your Aadhaar",onOtpCompletion:bt,onResendOtpClick:Nt,error:ht,setIsValid:Ct=>{ht&&pt(null),ft(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-surface-base pds2-w-full pds2-border pds2-border-surface-muted",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Verify",state:!at||vt===LOADING_STATE.LOADING?"disabled":"enabled",className:"pds2-w-full",onClick:()=>It(it),isLoading:vt===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:wt})]})})};var lib={},propTypes$2={exports:{}},ReactPropTypesSecret$1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret$1,ReactPropTypesSecret=ReactPropTypesSecret_1;function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function a(b,$,_e,et,tt,rt){if(rt!==ReactPropTypesSecret){var st=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw st.name="Invariant Violation",st}}a.isRequired=a;function o(){return a}var _={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:o,element:a,elementType:a,instanceOf:o,node:a,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return _.PropTypes=_,_};propTypes$2.exports=factoryWithThrowingShims();var propTypesExports=propTypes$2.exports,ErrorCorrectLevel={L:1,M:0,Q:3,H:2},mode$1={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},mode=mode$1;function QR8bitByte(a){this.mode=mode.MODE_8BIT_BYTE,this.data=a}QR8bitByte.prototype={getLength:function(a){return this.data.length},write:function(a){for(var o=0;o<this.data.length;o++)a.put(this.data.charCodeAt(o),8)}};var _8BitByte=QR8bitByte,ECL=ErrorCorrectLevel;function QRRSBlock(a,o){this.totalCount=a,this.dataCount=o}QRRSBlock.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];QRRSBlock.getRSBlocks=function(a,o){var _=QRRSBlock.getRsBlockTable(a,o);if(_==null)throw new Error("bad rs block @ typeNumber:"+a+"/errorCorrectLevel:"+o);for(var b=_.length/3,$=new Array,_e=0;_e<b;_e++)for(var et=_[_e*3+0],tt=_[_e*3+1],rt=_[_e*3+2],st=0;st<et;st++)$.push(new QRRSBlock(tt,rt));return $};QRRSBlock.getRsBlockTable=function(a,o){switch(o){case ECL.L:return QRRSBlock.RS_BLOCK_TABLE[(a-1)*4+0];case ECL.M:return QRRSBlock.RS_BLOCK_TABLE[(a-1)*4+1];case ECL.Q:return QRRSBlock.RS_BLOCK_TABLE[(a-1)*4+2];case ECL.H:return QRRSBlock.RS_BLOCK_TABLE[(a-1)*4+3];default:return}};var RSBlock$1=QRRSBlock;function QRBitBuffer(){this.buffer=new Array,this.length=0}QRBitBuffer.prototype={get:function(a){var o=Math.floor(a/8);return(this.buffer[o]>>>7-a%8&1)==1},put:function(a,o){for(var _=0;_<o;_++)this.putBit((a>>>o-_-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(a){var o=Math.floor(this.length/8);this.buffer.length<=o&&this.buffer.push(0),a&&(this.buffer[o]|=128>>>this.length%8),this.length++}};var BitBuffer$1=QRBitBuffer,QRMath={glog:function(a){if(a<1)throw new Error("glog("+a+")");return QRMath.LOG_TABLE[a]},gexp:function(a){for(;a<0;)a+=255;for(;a>=256;)a-=255;return QRMath.EXP_TABLE[a]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(var i=0;i<8;i++)QRMath.EXP_TABLE[i]=1<<i;for(var i=8;i<256;i++)QRMath.EXP_TABLE[i]=QRMath.EXP_TABLE[i-4]^QRMath.EXP_TABLE[i-5]^QRMath.EXP_TABLE[i-6]^QRMath.EXP_TABLE[i-8];for(var i=0;i<255;i++)QRMath.LOG_TABLE[QRMath.EXP_TABLE[i]]=i;var math$2=QRMath,math$1=math$2;function QRPolynomial(a,o){if(a.length==null)throw new Error(a.length+"/"+o);for(var _=0;_<a.length&&a[_]==0;)_++;this.num=new Array(a.length-_+o);for(var b=0;b<a.length-_;b++)this.num[b]=a[b+_]}QRPolynomial.prototype={get:function(a){return this.num[a]},getLength:function(){return this.num.length},multiply:function(a){for(var o=new Array(this.getLength()+a.getLength()-1),_=0;_<this.getLength();_++)for(var b=0;b<a.getLength();b++)o[_+b]^=math$1.gexp(math$1.glog(this.get(_))+math$1.glog(a.get(b)));return new QRPolynomial(o,0)},mod:function(a){if(this.getLength()-a.getLength()<0)return this;for(var o=math$1.glog(this.get(0))-math$1.glog(a.get(0)),_=new Array(this.getLength()),b=0;b<this.getLength();b++)_[b]=this.get(b);for(var b=0;b<a.getLength();b++)_[b]^=math$1.gexp(math$1.glog(a.get(b))+o);return new QRPolynomial(_,0).mod(a)}};var Polynomial$2=QRPolynomial,Mode=mode$1,Polynomial$1=Polynomial$2,math=math$2,QRMaskPattern={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},QRUtil={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(a){for(var o=a<<10;QRUtil.getBCHDigit(o)-QRUtil.getBCHDigit(QRUtil.G15)>=0;)o^=QRUtil.G15<<QRUtil.getBCHDigit(o)-QRUtil.getBCHDigit(QRUtil.G15);return(a<<10|o)^QRUtil.G15_MASK},getBCHTypeNumber:function(a){for(var o=a<<12;QRUtil.getBCHDigit(o)-QRUtil.getBCHDigit(QRUtil.G18)>=0;)o^=QRUtil.G18<<QRUtil.getBCHDigit(o)-QRUtil.getBCHDigit(QRUtil.G18);return a<<12|o},getBCHDigit:function(a){for(var o=0;a!=0;)o++,a>>>=1;return o},getPatternPosition:function(a){return QRUtil.PATTERN_POSITION_TABLE[a-1]},getMask:function(a,o,_){switch(a){case QRMaskPattern.PATTERN000:return(o+_)%2==0;case QRMaskPattern.PATTERN001:return o%2==0;case QRMaskPattern.PATTERN010:return _%3==0;case QRMaskPattern.PATTERN011:return(o+_)%3==0;case QRMaskPattern.PATTERN100:return(Math.floor(o/2)+Math.floor(_/3))%2==0;case QRMaskPattern.PATTERN101:return o*_%2+o*_%3==0;case QRMaskPattern.PATTERN110:return(o*_%2+o*_%3)%2==0;case QRMaskPattern.PATTERN111:return(o*_%3+(o+_)%2)%2==0;default:throw new Error("bad maskPattern:"+a)}},getErrorCorrectPolynomial:function(a){for(var o=new Polynomial$1([1],0),_=0;_<a;_++)o=o.multiply(new Polynomial$1([1,math.gexp(_)],0));return o},getLengthInBits:function(a,o){if(1<=o&&o<10)switch(a){case Mode.MODE_NUMBER:return 10;case Mode.MODE_ALPHA_NUM:return 9;case Mode.MODE_8BIT_BYTE:return 8;case Mode.MODE_KANJI:return 8;default:throw new Error("mode:"+a)}else if(o<27)switch(a){case Mode.MODE_NUMBER:return 12;case Mode.MODE_ALPHA_NUM:return 11;case Mode.MODE_8BIT_BYTE:return 16;case Mode.MODE_KANJI:return 10;default:throw new Error("mode:"+a)}else if(o<41)switch(a){case Mode.MODE_NUMBER:return 14;case Mode.MODE_ALPHA_NUM:return 13;case Mode.MODE_8BIT_BYTE:return 16;case Mode.MODE_KANJI:return 12;default:throw new Error("mode:"+a)}else throw new Error("type:"+o)},getLostPoint:function(a){for(var o=a.getModuleCount(),_=0,b=0;b<o;b++)for(var $=0;$<o;$++){for(var _e=0,et=a.isDark(b,$),tt=-1;tt<=1;tt++)if(!(b+tt<0||o<=b+tt))for(var rt=-1;rt<=1;rt++)$+rt<0||o<=$+rt||tt==0&&rt==0||et==a.isDark(b+tt,$+rt)&&_e++;_e>5&&(_+=3+_e-5)}for(var b=0;b<o-1;b++)for(var $=0;$<o-1;$++){var st=0;a.isDark(b,$)&&st++,a.isDark(b+1,$)&&st++,a.isDark(b,$+1)&&st++,a.isDark(b+1,$+1)&&st++,(st==0||st==4)&&(_+=3)}for(var b=0;b<o;b++)for(var $=0;$<o-6;$++)a.isDark(b,$)&&!a.isDark(b,$+1)&&a.isDark(b,$+2)&&a.isDark(b,$+3)&&a.isDark(b,$+4)&&!a.isDark(b,$+5)&&a.isDark(b,$+6)&&(_+=40);for(var $=0;$<o;$++)for(var b=0;b<o-6;b++)a.isDark(b,$)&&!a.isDark(b+1,$)&&a.isDark(b+2,$)&&a.isDark(b+3,$)&&a.isDark(b+4,$)&&!a.isDark(b+5,$)&&a.isDark(b+6,$)&&(_+=40);for(var it=0,$=0;$<o;$++)for(var b=0;b<o;b++)a.isDark(b,$)&&it++;var lt=Math.abs(100*it/o/o-50)/5;return _+=lt*10,_}},util$1=QRUtil,BitByte=_8BitByte,RSBlock=RSBlock$1,BitBuffer=BitBuffer$1,util=util$1,Polynomial=Polynomial$2;function QRCode$1(a,o){this.typeNumber=a,this.errorCorrectLevel=o,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var proto=QRCode$1.prototype;proto.addData=function(a){var o=new BitByte(a);this.dataList.push(o),this.dataCache=null};proto.isDark=function(a,o){if(a<0||this.moduleCount<=a||o<0||this.moduleCount<=o)throw new Error(a+","+o);return this.modules[a][o]};proto.getModuleCount=function(){return this.moduleCount};proto.make=function(){if(this.typeNumber<1){var a=1;for(a=1;a<40;a++){for(var o=RSBlock.getRSBlocks(a,this.errorCorrectLevel),_=new BitBuffer,b=0,$=0;$<o.length;$++)b+=o[$].dataCount;for(var $=0;$<this.dataList.length;$++){var _e=this.dataList[$];_.put(_e.mode,4),_.put(_e.getLength(),util.getLengthInBits(_e.mode,a)),_e.write(_)}if(_.getLengthInBits()<=b*8)break}this.typeNumber=a}this.makeImpl(!1,this.getBestMaskPattern())};proto.makeImpl=function(a,o){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var _=0;_<this.moduleCount;_++){this.modules[_]=new Array(this.moduleCount);for(var b=0;b<this.moduleCount;b++)this.modules[_][b]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(a,o),this.typeNumber>=7&&this.setupTypeNumber(a),this.dataCache==null&&(this.dataCache=QRCode$1.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,o)};proto.setupPositionProbePattern=function(a,o){for(var _=-1;_<=7;_++)if(!(a+_<=-1||this.moduleCount<=a+_))for(var b=-1;b<=7;b++)o+b<=-1||this.moduleCount<=o+b||(0<=_&&_<=6&&(b==0||b==6)||0<=b&&b<=6&&(_==0||_==6)||2<=_&&_<=4&&2<=b&&b<=4?this.modules[a+_][o+b]=!0:this.modules[a+_][o+b]=!1)};proto.getBestMaskPattern=function(){for(var a=0,o=0,_=0;_<8;_++){this.makeImpl(!0,_);var b=util.getLostPoint(this);(_==0||a>b)&&(a=b,o=_)}return o};proto.createMovieClip=function(a,o,_){var b=a.createEmptyMovieClip(o,_),$=1;this.make();for(var _e=0;_e<this.modules.length;_e++)for(var et=_e*$,tt=0;tt<this.modules[_e].length;tt++){var rt=tt*$,st=this.modules[_e][tt];st&&(b.beginFill(0,100),b.moveTo(rt,et),b.lineTo(rt+$,et),b.lineTo(rt+$,et+$),b.lineTo(rt,et+$),b.endFill())}return b};proto.setupTimingPattern=function(){for(var a=8;a<this.moduleCount-8;a++)this.modules[a][6]==null&&(this.modules[a][6]=a%2==0);for(var o=8;o<this.moduleCount-8;o++)this.modules[6][o]==null&&(this.modules[6][o]=o%2==0)};proto.setupPositionAdjustPattern=function(){for(var a=util.getPatternPosition(this.typeNumber),o=0;o<a.length;o++)for(var _=0;_<a.length;_++){var b=a[o],$=a[_];if(this.modules[b][$]==null)for(var _e=-2;_e<=2;_e++)for(var et=-2;et<=2;et++)_e==-2||_e==2||et==-2||et==2||_e==0&&et==0?this.modules[b+_e][$+et]=!0:this.modules[b+_e][$+et]=!1}};proto.setupTypeNumber=function(a){for(var o=util.getBCHTypeNumber(this.typeNumber),_=0;_<18;_++){var b=!a&&(o>>_&1)==1;this.modules[Math.floor(_/3)][_%3+this.moduleCount-8-3]=b}for(var _=0;_<18;_++){var b=!a&&(o>>_&1)==1;this.modules[_%3+this.moduleCount-8-3][Math.floor(_/3)]=b}};proto.setupTypeInfo=function(a,o){for(var _=this.errorCorrectLevel<<3|o,b=util.getBCHTypeInfo(_),$=0;$<15;$++){var _e=!a&&(b>>$&1)==1;$<6?this.modules[$][8]=_e:$<8?this.modules[$+1][8]=_e:this.modules[this.moduleCount-15+$][8]=_e}for(var $=0;$<15;$++){var _e=!a&&(b>>$&1)==1;$<8?this.modules[8][this.moduleCount-$-1]=_e:$<9?this.modules[8][15-$-1+1]=_e:this.modules[8][15-$-1]=_e}this.modules[this.moduleCount-8][8]=!a};proto.mapData=function(a,o){for(var _=-1,b=this.moduleCount-1,$=7,_e=0,et=this.moduleCount-1;et>0;et-=2)for(et==6&&et--;;){for(var tt=0;tt<2;tt++)if(this.modules[b][et-tt]==null){var rt=!1;_e<a.length&&(rt=(a[_e]>>>$&1)==1);var st=util.getMask(o,b,et-tt);st&&(rt=!rt),this.modules[b][et-tt]=rt,$--,$==-1&&(_e++,$=7)}if(b+=_,b<0||this.moduleCount<=b){b-=_,_=-_;break}}};QRCode$1.PAD0=236;QRCode$1.PAD1=17;QRCode$1.createData=function(a,o,_){for(var b=RSBlock.getRSBlocks(a,o),$=new BitBuffer,_e=0;_e<_.length;_e++){var et=_[_e];$.put(et.mode,4),$.put(et.getLength(),util.getLengthInBits(et.mode,a)),et.write($)}for(var tt=0,_e=0;_e<b.length;_e++)tt+=b[_e].dataCount;if($.getLengthInBits()>tt*8)throw new Error("code length overflow. ("+$.getLengthInBits()+">"+tt*8+")");for($.getLengthInBits()+4<=tt*8&&$.put(0,4);$.getLengthInBits()%8!=0;)$.putBit(!1);for(;!($.getLengthInBits()>=tt*8||($.put(QRCode$1.PAD0,8),$.getLengthInBits()>=tt*8));)$.put(QRCode$1.PAD1,8);return QRCode$1.createBytes($,b)};QRCode$1.createBytes=function(a,o){for(var _=0,b=0,$=0,_e=new Array(o.length),et=new Array(o.length),tt=0;tt<o.length;tt++){var rt=o[tt].dataCount,st=o[tt].totalCount-rt;b=Math.max(b,rt),$=Math.max($,st),_e[tt]=new Array(rt);for(var it=0;it<_e[tt].length;it++)_e[tt][it]=255&a.buffer[it+_];_+=rt;var lt=util.getErrorCorrectPolynomial(st),at=new Polynomial(_e[tt],lt.getLength()-1),ft=at.mod(lt);et[tt]=new Array(lt.getLength()-1);for(var it=0;it<et[tt].length;it++){var ht=it+ft.getLength()-et[tt].length;et[tt][it]=ht>=0?ft.get(ht):0}}for(var pt=0,it=0;it<o.length;it++)pt+=o[it].totalCount;for(var vt=new Array(pt),ut=0,it=0;it<b;it++)for(var tt=0;tt<o.length;tt++)it<_e[tt].length&&(vt[ut++]=_e[tt][it]);for(var it=0;it<$;it++)for(var tt=0;tt<o.length;tt++)it<et[tt].length&&(vt[ut++]=et[tt][it]);return vt};var QRCode_1=QRCode$1,QRCodeSvg$1={};Object.defineProperty(QRCodeSvg$1,"__esModule",{value:!0});var _extends$1=Object.assign||function(a){for(var o=1;o<arguments.length;o++){var _=arguments[o];for(var b in _)Object.prototype.hasOwnProperty.call(_,b)&&(a[b]=_[b])}return a},_propTypes$1=propTypesExports,_propTypes2$1=_interopRequireDefault$1(_propTypes$1),_react$1=reactExports,_react2$1=_interopRequireDefault$1(_react$1);function _interopRequireDefault$1(a){return a&&a.__esModule?a:{default:a}}function _objectWithoutProperties$1(a,o){var _={};for(var b in a)o.indexOf(b)>=0||Object.prototype.hasOwnProperty.call(a,b)&&(_[b]=a[b]);return _}var propTypes$1={bgColor:_propTypes2$1.default.oneOfType([_propTypes2$1.default.object,_propTypes2$1.default.string]).isRequired,bgD:_propTypes2$1.default.string.isRequired,fgColor:_propTypes2$1.default.oneOfType([_propTypes2$1.default.object,_propTypes2$1.default.string]).isRequired,fgD:_propTypes2$1.default.string.isRequired,size:_propTypes2$1.default.number.isRequired,title:_propTypes2$1.default.string,viewBoxSize:_propTypes2$1.default.number.isRequired,xmlns:_propTypes2$1.default.string},QRCodeSvg=(0,_react$1.forwardRef)(function(a,o){var _=a.bgColor,b=a.bgD,$=a.fgD,_e=a.fgColor,et=a.size,tt=a.title,rt=a.viewBoxSize,st=a.xmlns,it=st===void 0?"http://www.w3.org/2000/svg":st,lt=_objectWithoutProperties$1(a,["bgColor","bgD","fgD","fgColor","size","title","viewBoxSize","xmlns"]);return _react2$1.default.createElement("svg",_extends$1({},lt,{height:et,ref:o,viewBox:"0 0 "+rt+" "+rt,width:et,xmlns:it}),tt?_react2$1.default.createElement("title",null,tt):null,_react2$1.default.createElement("path",{d:b,fill:_}),_react2$1.default.createElement("path",{d:$,fill:_e}))});QRCodeSvg.displayName="QRCodeSvg";QRCodeSvg.propTypes=propTypes$1;QRCodeSvg$1.default=QRCodeSvg;Object.defineProperty(lib,"__esModule",{value:!0});lib.QRCode=void 0;var _extends=Object.assign||function(a){for(var o=1;o<arguments.length;o++){var _=arguments[o];for(var b in _)Object.prototype.hasOwnProperty.call(_,b)&&(a[b]=_[b])}return a},_propTypes=propTypesExports,_propTypes2=_interopRequireDefault(_propTypes),_ErrorCorrectLevel=ErrorCorrectLevel,_ErrorCorrectLevel2=_interopRequireDefault(_ErrorCorrectLevel),_QRCode=QRCode_1,_QRCode2=_interopRequireDefault(_QRCode),_react=reactExports,_react2=_interopRequireDefault(_react),_QRCodeSvg=QRCodeSvg$1,_QRCodeSvg2=_interopRequireDefault(_QRCodeSvg);function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _objectWithoutProperties(a,o){var _={};for(var b in a)o.indexOf(b)>=0||Object.prototype.hasOwnProperty.call(a,b)&&(_[b]=a[b]);return _}var propTypes={bgColor:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.string]),fgColor:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.string]),level:_propTypes2.default.string,size:_propTypes2.default.number,value:_propTypes2.default.string.isRequired},QRCode=(0,_react.forwardRef)(function(a,o){var _=a.bgColor,b=_===void 0?"#FFFFFF":_,$=a.fgColor,_e=$===void 0?"#000000":$,et=a.level,tt=et===void 0?"L":et,rt=a.size,st=rt===void 0?256:rt,it=a.value,lt=_objectWithoutProperties(a,["bgColor","fgColor","level","size","value"]),at=new _QRCode2.default(-1,_ErrorCorrectLevel2.default[tt]);at.addData(it),at.make();var ft=at.modules;return _react2.default.createElement(_QRCodeSvg2.default,_extends({},lt,{bgColor:b,bgD:ft.map(function(ht,pt){return ht.map(function(vt,ut){return vt?"":"M "+ut+" "+pt+" l 1 0 0 1 -1 0 Z"}).join(" ")}).join(" "),fgColor:_e,fgD:ft.map(function(ht,pt){return ht.map(function(vt,ut){return vt?"M "+ut+" "+pt+" l 1 0 0 1 -1 0 Z":""}).join(" ")}).join(" "),ref:o,size:st,viewBoxSize:ft.length}))});lib.QRCode=QRCode;QRCode.displayName="QRCode";QRCode.propTypes=propTypes;var _default=lib.default=QRCode;const AbhaFaceAuthStepsCarousel=({onClose:a})=>{const o=reactExports.useRef(null),_=b=>{o.current&&o.current.scrollBy({left:b,behavior:"smooth"})};return jsxRuntimeExports.jsxs("div",{className:"pds2-w-full pds2-pb-10 pds2-mt-25 pds2-relative",children:[jsxRuntimeExports.jsxs("div",{className:"Body1Semibold pds2-text-content-secondary pds2-text-left pds2-w-full pds2-py-4 pds2-flex pds2-justify-between",children:[jsxRuntimeExports.jsx("div",{children:"Follow these steps"}),jsxRuntimeExports.jsx("div",{className:"pds2-pr-5 pds2-cursor-pointer",title:"Close Carousel",onClick:a,children:"x"})]}),jsxRuntimeExports.jsx("div",{role:"button",tabIndex:0,onClick:()=>_(240),onKeyDown:b=>b.key==="Enter"&&_(240),className:"pds2-shadow-elevation-100 pds2-shadow-content-primary pds2-absolute pds2-right-0 pds2-cursor-pointer pds2-bottom-110 pds2-bg-surface-strong pds2-rounded-full pds2-p-5",children:jsxRuntimeExports.jsx(l$2,{className:"pds2-text-content-primary"})}),jsxRuntimeExports.jsx("div",{ref:o,className:"Body1Semibold pds2-text-content-secondary pds2-flex pds2-overflow-x-scroll pds2-gap-16 pds2-w-full",children:FACE_AUTH_STEPS_URL.map((b,$)=>jsxRuntimeExports.jsx("div",{className:"pds2-w-1/4 pds2-min-w-220 pds2-min-h-200px",children:jsxRuntimeExports.jsx("img",{className:"pds2-w-full pds2-shadow-elevation-100 pds2-shadow-surface-neutral",src:b})},$))}),jsxRuntimeExports.jsx("div",{role:"button",tabIndex:0,onClick:()=>_(-240),onKeyDown:b=>b.key==="Enter"&&_(-240),className:"pds2-shadow-elevation-100 pds2-shadow-content-primary pds2-absolute pds2-cursor-pointer pds2-bottom-110 pds2-bg-surface-strong pds2-rounded-full pds2-p-5",children:jsxRuntimeExports.jsx(n$3,{className:"pds2-text-content-primary"})})]})},AbhaAuthQRScreen=()=>{var It;const a=useAuthAbhaStore(Nt=>Nt.txnId),o=useAuthAbhaStore(Nt=>Nt.setTxnId),_=useAuthAbhaStore(Nt=>Nt.setScreen),b=useAuthAbhaStore(Nt=>Nt.goBackScreen),$=useAuthAbhaStore(Nt=>Nt.setGoBackToLogin),_e=useAuthAbhaStore(Nt=>Nt.faceAuthQrUrl),et=useAuthAbhaStore(Nt=>Nt.identifierValue),tt=useAuthAbhaStore(Nt=>Nt.initAbhaFlow);useAuthAbhaStore(Nt=>Nt.isEkaAppLogin);const rt=useAuthAbhaStore(Nt=>Nt.clientId),st=useAuthAbhaStore(Nt=>Nt.setEkaSmallToken),it=useAuthAbhaStore(Nt=>Nt.setSelectedAbhaAddress),lt=useAuthAbhaStore(Nt=>Nt.setOid),at=useAuthAbhaStore(Nt=>Nt.setEkaProfileInfo),ft=useAuthAbhaStore(Nt=>Nt.setAbhaAddressList),ht=useAuthAbhaStore(Nt=>Nt.goBackLoginScreen),pt=useAuthAbhaStore(Nt=>Nt.setAadhaarVerificationSkipStateStatus),[vt,ut]=reactExports.useState(!0),[ot,nt]=reactExports.useState(!1),dt=useAuthAbhaStore(Nt=>Nt.setBottomsheetErrorInfo),yt=useAuthAbhaStore(Nt=>Nt.qrCodeColors),[_t,At]=reactExports.useState(FACE_AUTH_CAPTURE_STATUS.PENDING),xt=useTrackAbhaEvent(),wt=()=>{xt({name:"abha_faceauth_verify_error_bottomsheet_dismissed",data:{platform:rt,flow:tt}}),ht(),dt(null)},bt=async()=>{if(!a){xt({name:"aadhaar_faceauth_verification_no_txnId",data:{platform:rt,flow:tt,type:"verify",txn_id:a||"missing_txnId",txn_id_exists:!!a}});return}xt({name:"abha_aadhaar_faceauth_verify_submitted",data:{platform:rt,flow:tt,type:"verify"}});const{txn_id:Nt,skip_state:Ct,profile:jt,eka:Et,error:gt,abha_profiles:St,source_error:ct,action:mt}=await postRegisterAadhaarFaceAuthVerify({aadhaar:(et==null?void 0:et.aadhaar_number)||"",txn_id:a});if(gt||ct!=null&&ct.message){xt({name:"aadhaar_faceauth_verification_failed",data:{platform:rt,flow:tt,reason:gt||ct||"unknown_error",txn_id_exists:!!a}}),dt({title:"Aadhaar Verification Failed",img:"",description:gt||"Verification failed. Please retry.",cta:{title:"",pid:"",params:null}}),mt&&dt(mt);return}if(!Nt||!Ct){xt({name:"aadhaar_otp_verification_failed",data:{platform:rt,flow:tt,reason:gt||"missing_txn_id_or_skip_state",txn_id_exists:!!Nt,skip_state_exists:!!Ct}}),dt({title:"Verification Failed",img:"",description:gt||"Verification failed. Please retry.",cta:{title:"",pid:"",params:null}}),mt&&dt(mt);return}xt({name:"aadhaar_faceauth_verification_success",data:{platform:rt,flow:tt,skip_state:Ct,oid:Et==null?void 0:Et.oid}}),pt(Ct),Et!=null&&Et.min_token&&st(Et.min_token),Nt&&o(Nt),jt&&jt.abha_address&&it(jt.abha_address),Et!=null&&Et.oid&&lt(Et.oid),jt&&at({date_of_birth:`${jt.year_of_birth}-${String(jt.month_of_birth).padStart(2,"0")}-${String(jt.day_of_birth).padStart(2,"0")}`,firstname:jt.first_name,lastname:jt.last_name,pincode:jt.pincode,gender:jt.gender,name:jt.first_name+" "+jt.last_name,mobile:jt.mobile,oid:Et==null?void 0:Et.oid,abha_address:jt.abha_address,abha_number:jt.abha_number,kyc_verified:jt==null?void 0:jt.kyc_verified}),xt({name:"abha_aadhaar_otp_verification_success",data:{platform:rt,flow:tt,skip_state:Ct,oid:Et==null?void 0:Et.oid}}),St&&ft(St),_(SCREEN_NAMES.AADHAAR_FACEAUTH_VERIFICATION_STATUS)};return reactExports.useEffect(()=>{let Nt=0,Ct;const jt=async()=>{Nt++;try{const Et=await postRegisterAadhaarFaceAuthCapture({txn_id:a});if(console.log("Poll attempt:",Nt,"Response:",Et),(Et==null?void 0:Et.status)==="COMPLETE"){At(FACE_AUTH_CAPTURE_STATUS.COMPLETE),clearInterval(Ct),await bt();return}else if((Et==null?void 0:Et.status)==="VERIFIED")At(FACE_AUTH_CAPTURE_STATUS.VERIFIED);else if((Et==null?void 0:Et.status)==="FAILED"){At(FACE_AUTH_CAPTURE_STATUS.FAILED),clearInterval(Ct),dt({title:"Authentication Failed",img:"",description:"Face capture failed. Please retry.",cta:{title:"",pid:"",params:null}});return}}catch(Et){console.error("Error in face auth poll:",Et)}};return jt(),Ct=setInterval(jt,3e3),()=>clearInterval(Ct)},[a]),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-base",children:[jsxRuntimeExports.jsx(Pds2Header,{title:"Face Authentication",className:"pds2-border-b-1 pds2-border-surface-muted",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$3,{className:""})})}),!tt&&_t===FACE_AUTH_CAPTURE_STATUS.PENDING?jsxRuntimeExports.jsx(AbhaStepper,{}):jsxRuntimeExports.jsx("div",{className:`pds2-pt-40 ${_t===FACE_AUTH_CAPTURE_STATUS.FAILED?"":"pds2-bg-surface-subtle"}`}),_t===FACE_AUTH_CAPTURE_STATUS.PENDING&&jsxRuntimeExports.jsx("div",{className:"pds2-px-16 pds2-pb-16 pds2-space-y-16 pds2-overflow-y-auto pds2-flex-1 pds2-bg-surface-subtle",children:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-items-center pds2-text-center ",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-justify-between",children:[jsxRuntimeExports.jsxs("div",{className:"Body2Regular pds2-text-content-secondary pds2-py-15",children:["Aadhaar:"," ",jsxRuntimeExports.jsx("span",{className:"Body2Semibold pds2-text-content-secondary",children:(It=et==null?void 0:et.aadhaar_number)==null?void 0:It.replace(/(.{4})/g,"$1-").replace(/-$/,"")})]}),jsxRuntimeExports.jsx("div",{title:"Change",className:"pds2-cursor-pointer pds2-pl-5 pds2-text-primary-brand",onClick:()=>{b(),$(!0)},children:jsxRuntimeExports.jsx(t$d,{className:"pds2-text-primary-brand pds2-w-15"})})]}),jsxRuntimeExports.jsx("div",{className:"Heading3Semibold pds2-text-content-primary",children:"Face Authentication"}),jsxRuntimeExports.jsx("div",{className:"Body2Regular pds2-mb-25 pds2-text-content-secondary",children:"Scan this QR and complete authentication"}),jsxRuntimeExports.jsx(_default,{className:"pds2-w-250 pds2-h-250",fgColor:(yt==null?void 0:yt.fgColor)||"#000000",bgColor:(yt==null?void 0:yt.bgColor)||"#f2f4f7",value:_e||" "}),vt&&jsxRuntimeExports.jsx(AbhaFaceAuthStepsCarousel,{onClose:()=>ut(!1)})]})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:wt}),jsxRuntimeExports.jsx(ExitPopup,{open:ot,setOpen:nt}),_t!=FACE_AUTH_CAPTURE_STATUS.PENDING&&_t!=FACE_AUTH_CAPTURE_STATUS.FAILED&&jsxRuntimeExports.jsx("div",{className:"pds2-bg-surface-subtle pds2-px-16 pds2-w-full pds2-h-full pds2-flex pds2-flex-col pds2-items-center pds2-justify-center pds2-text-center",children:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Lottie,{animationData:animationDataLoading$1,loop:!0,className:"pds2-w-400"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-content-primary Heading4Semibold pds2-absolute pds2-mt-220",children:"Verification in Progress..."})]})})]})},AbhaMobileandOtpScreen=()=>{const[a,o]=reactExports.useState(LOADING_STATE.IDLE),_=useAuthAbhaStore(Gt=>Gt.authTxnId),b=useAuthAbhaStore(Gt=>Gt.setAbhaAddressList),$=useAuthAbhaStore(Gt=>Gt.setScreen),_e=useAuthAbhaStore(Gt=>Gt.identifierValue),et=useAuthAbhaStore(Gt=>Gt.txnId),tt=useAuthAbhaStore(Gt=>Gt.setTxnId),rt=useAuthAbhaStore(Gt=>Gt.aadhaarOtpSentToHint),st=useAuthAbhaStore(Gt=>Gt.setAadhaarVerificationSkipStateStatus),it=useAuthAbhaStore(Gt=>Gt.selectedAbhaFlow),lt=useAuthAbhaStore(Gt=>Gt.setEkaSmallToken),at=useAuthAbhaStore(Gt=>Gt.setOid);useAuthAbhaStore(Gt=>Gt.clearAbhaAuthStore);const ft=useAuthAbhaStore(Gt=>Gt.setBottomsheetErrorInfo),ht=useAuthAbhaStore(Gt=>Gt.goBackLoginScreen),pt=useAuthAbhaStore(Gt=>Gt.goBackScreen),vt=useAuthAbhaStore(Gt=>Gt.isDocAppRequest),[ut,ot]=reactExports.useState(""),[nt,dt]=reactExports.useState(!1),[yt,_t]=reactExports.useState(vt?_e==null?void 0:_e.mobile:""),[At,xt]=reactExports.useState(null),[wt,bt]=reactExports.useState(null),It=useAuthAbhaStore(Gt=>Gt.setSelectedAbhaAddress),Nt=useAuthAbhaStore(Gt=>Gt.setOTPFromAutoRead),Ct=useAuthAbhaStore(Gt=>Gt.setEkaProfileInfo),jt=useAuthAbhaStore(Gt=>Gt.setMobileInitResponse),Et=useAuthAbhaStore(Gt=>Gt.clientId);useAuthAbhaStore(Gt=>Gt.isEkaAppLogin);const gt=useAuthAbhaStore(Gt=>Gt.initAbhaFlow),St=useAuthAbhaStore(Gt=>Gt.setIsInitApiTriggered),ct=useAuthAbhaStore(Gt=>Gt.setAbhaAuthFlowMethod),mt=useAuthAbhaStore(Gt=>Gt.setIdentifierValue),Rt=useAuthAbhaStore(Gt=>Gt.abhaAuthFlowMethod),[Tt,Dt]=reactExports.useState(!1),kt=useTrackAbhaEvent();reactExports.useEffect(()=>{kt({name:"page_view",data:{page_view:"abha_mobile_otp_verify",platform:Et,flow:gt}})},[]);const Ht=({otp:Gt})=>{ot(Gt),kt({name:"abha_mobile_otp_completion",data:{platform:Et,type:"verify",otp_entered:!0,flow:gt}}),Lt(Gt)},Pt=async()=>{if(!et){kt({name:"abha_mobile_otp_resend_clicked_no_txnId",data:{type:"resend",platform:Et,txn_id:"missing_txnId",txn_id_exists:!1,flow:gt}});return}kt({name:"abha_mobile_otp_verify_clicks",data:{type:"resend",platform:Et,flow:gt}}),console.log("selectedMethod",Rt);let Gt;it==="mobile"?(kt({name:"abha_mobile_otp_resend_initiated",data:{platform:Et,type:"verify",flow_type:it,flow:gt}}),console.log("selectedFlow is mobile, so triggering mobile resend otp api",it),Gt=await postAbdmRegisterMobileResendOtp({txn_id:et})):(kt({name:"aadhaar_mobile_otp_resend_initiated",data:{platform:Et,type:"verify",flow_type:it,flow:gt}}),console.log("selectedFlow is aadhaar, so triggering aadhaar resend otp api",it),Gt=await postRegisterAadhaarMobileResendOtp({txn_id:et}));const{txn_id:zt,error:Qt,action:Kt}=Gt;if(!zt){kt({name:"abha_mobile_otp_resend_failed",data:{platform:Et,reason:Qt||"no_txn_id",reason_exists:!!Qt,flow:gt}}),xt(Qt||"Something went wrong, please try again"),Kt&&ft(Kt);return}zt&&tt(zt),kt({name:"abha_mobile_otp_resend_success",data:{platform:Et,txn_id:zt,flow:gt}})},Lt=async Gt=>{if(Nt(""),!et){kt({name:"abha_mobile_verify_no_txnId",data:{type:"verify",platform:Et,txn_id:"missing_txnId",txn_id_exists:!1,flow:gt}});return}kt({name:"abha_mobile_otp_submitted",data:{type:"verify",platform:Et,txn_id:et,flow:gt}}),o(LOADING_STATE.LOADING);try{let zt;it==="mobile"?(kt({name:"abha_mobile_otp_verification_started",data:{platform:Et,flow_type:it,flow:gt}}),zt=await postAbdmRegisterMobileVerify({otp:Gt,txn_id:et})):(kt({name:"aadhaar_otp_verification_started",data:{platform:Et,flow_type:it,flow:gt}}),zt=await postRegisterAadhaarMobileVerify({otp:Gt,txn_id:et}));const{txn_id:Qt,skip_state:Kt,eka:Ut,profile:Jt,error:ur,action:ir,abha_profiles:tr}=zt;if(!Qt||!Kt){kt({name:"abha_mobile_otp_verification_failed",data:{platform:Et,reason:ur||"missing_txn_id_or_skip_state",txn_id_exists:!!Qt,skip_state_exists:!!Kt,flow:gt}}),o(LOADING_STATE.REJECTED),xt(ur||"Something went wrong, please try again"),ir&&ft(ir);return}if(o(LOADING_STATE.RESOLVED),st(Kt),Ut!=null&&Ut.min_token&&lt(Ut.min_token),Ut!=null&&Ut.oid&&at(Ut.oid),Jt&&Jt.abha_address&&It(Jt.abha_address),Jt&&Ct({date_of_birth:`${Jt.year_of_birth}-${String(Jt.month_of_birth).padStart(2,"0")}-${String(Jt.day_of_birth).padStart(2,"0")}`,firstname:Jt.first_name,lastname:Jt.last_name,pincode:Jt.pincode,gender:Jt.gender,oid:Ut==null?void 0:Ut.oid,abha_address:Jt==null?void 0:Jt.abha_address,abha_number:Jt==null?void 0:Jt.abha_number,middlename:Jt==null?void 0:Jt.middle_name,kyc_verified:Jt==null?void 0:Jt.kyc_verified}),console.log("remove oid from set indvidual env"),kt({name:"abha_mobile_otp_verification_success",data:{platform:Et,skip_state:Kt,flow:gt}}),Jt!=null&&Jt.abha_number&&gt===ABHA_INIT_FLOW.ABHA_KYC){St(!1),mt({abha_number:Jt==null?void 0:Jt.abha_number}),setIndividualEnv({extraHeaders:{"X-Pt-Id":(Ut==null?void 0:Ut.oid)??""}}),ct(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER),$(SCREEN_NAMES.KYC_LOGIN_SCREEN);return}if(tr!=null&&tr.length){b(tr),$(SCREEN_NAMES.SELECT_ABHA_FROM_LIST);return}$(SCREEN_NAMES.ABHA_MOBILE_LINKING_STATUS)}catch{kt({name:"abha_mobile_otp_verification_exception",data:{platform:Et,reason:"exception_thrown",flow:gt}}),o(LOADING_STATE.REJECTED),xt("Something went wrong, please try again")}},Bt=async({mobileNumber:Gt})=>{if(_t(Gt),Gt.length===10&&["6","7","8","9"].includes(Gt.charAt(0))&&et){const{txn_id:zt,hint:Qt,error:Kt,action:Ut}=await postRegisterAadhaarMobileInit({mobile:Gt,txn_id:et});if(Kt||!zt||!Qt){kt({name:"aadhaar_faceauth_mobile_init_failed",data:{platform:Et,reason:Kt||"error on mobile init in face auth",txn_id_exists:!!et,flow:gt}}),ft({title:"Please try again.",img:"",description:"Something went wrong.",cta:{title:"",pid:"",params:null}}),Ut&&ft(Ut);return}if(zt&&Qt){kt({name:"abha_login_select_abha_mobile_init_success",data:{method:Rt,platform:Et,txn_id:zt,flow:gt}}),jt({authTxnId:_,txnId:zt,mobileOtpSentToHint:Qt}),Dt(!0),bt(null);return}}else Gt.trim()!=""&&!["6","7","8","9"].includes(Gt.charAt(0))&&bt("Enter a valid mobile number");Gt.trim()==""&&Dt(!1),kt({name:"abha_aadhaar_mobile_otp_enter",data:{page_view:"aadhaar_verification",platform:Et,flow:gt}})},$t=()=>{kt({name:"abha_aadhaar_mobile_verify_error_bottomsheet_dismissed",data:{platform:Et,flow:gt}}),ht(),ft(null)},Vt=nt&&yt.length===10;return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-subtle",children:[jsxRuntimeExports.jsx(Pds2Header,{prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:gt?pt:ht,children:jsxRuntimeExports.jsx(n$3,{className:""})}),title:"Create ABHA",className:"pds2-border-b-1 pds2-border-surface-muted"}),gt==null||gt===ABHA_INIT_FLOW.ABHA_REGISTRATION?jsxRuntimeExports.jsx(AbhaStepper,{}):jsxRuntimeExports.jsx("div",{className:"pds2-pt-40 pds2-bg-surface-subtle"}),jsxRuntimeExports.jsxs("div",{className:"pds2-px-16 pds2-pb-16 pds2-space-y-12 pds2-overflow-y-auto pds2-flex-1 pds2-bg-surface-subtle",children:[jsxRuntimeExports.jsx(EnterMobileNumberCard,{mobileNumber:yt,disabled:Tt,onMobileNumberChange:Bt,isOtpValid:nt,error:wt,onKeyDown:({key:Gt})=>{Gt==="Enter"&&Lt(ut)}}),Tt&&jsxRuntimeExports.jsx(AbhaOtpCard,{otpSentToText:rt||"Enter OTP sent on mobile number",onOtpCompletion:Ht,onResendOtpClick:Pt,setIsValid:dt,error:At,setError:xt,prefixIcon:null})]}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-sticky pds2-bottom-0 pds2-bg-surface-base pds2-w-full pds2-border pds2-border-surface-muted",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Verify",state:!Vt||a===LOADING_STATE.LOADING?"disabled":"enabled",className:"pds2-w-full",onClick:()=>Lt(ut),isLoading:a===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:$t})]})},EnterMobileNumberCard=({mobileNumber:a,disabled:o,onMobileNumberChange:_,isOtpValid:b,onKeyDown:$,error:_e})=>{const et=GET_EXTRA_HEADERS();et==null||et["X-User-ID"];const tt=useAuthAbhaStore(it=>it.isDocAppRequest),rt=reactExports.useRef(null);reactExports.useEffect(()=>{rt.current&&b&&rt.current.focus()},[b]);const st=useAuthAbhaStore(it=>it.initAbhaAppMobileNumber);return st&&(a=st),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-content-secondary pds2-flex-1",children:["Enter ",tt?"the patient's":"your"," mobile number to link with ABHA"," ",jsxRuntimeExports.jsx("sup",{className:"pds2-text-semantic-error Body3Semibold",children:"*"})]}),jsxRuntimeExports.jsx(n$1,{className:"pds2-w-48 pds2-h-48 pds2-text-semantic-success pds2-p-6"})]}),jsxRuntimeExports.jsxs("label",{className:`pds2-relative pds2-border pds2-rounded-12 ${_e?"pds2-border-semantic-error focus-within:pds2-border-semantic-error":"pds2-border-surface-muted focus-within:pds2-border-primary-brand "}`,children:[jsxRuntimeExports.jsx("span",{className:"Body1Regular pds2-absolute pds2-left-16 pds2-top-1/2 pds2-transform pds2--translate-y-1/2 pds2-text-content-secondary",children:"+91 -"}),jsxRuntimeExports.jsx("input",{ref:rt,placeholder:"Mobile Number",type:"tel",name:"phone",autoComplete:"tel",inputMode:"numeric",defaultValue:a,disabled:o,pattern:"[0-9]*",onChange:it=>{const lt=it.target.value.replace(/\D/g,"").slice(-10);it.target.value=lt,_({mobileNumber:lt})},className:"Body1Regular pds2-w-full pds2-pl-60 pds2-pr-12 pds2-py-12 pds2-rounded-12 pds2-outline-none pds2-bg-surface-base",onKeyDown:$})]}),_e?jsxRuntimeExports.jsx("div",{className:"Body3Semibold pds2-text-semantic-error",children:_e}):jsxRuntimeExports.jsxs("div",{className:"Body3Regular pds2-text-content-secondary pds2-flex pds2-items-center pds2-gap-8",children:[jsxRuntimeExports.jsx(e$1,{className:"pds2-w-20 pds2-h-20"}),"We will link this mobile number to your ABHA for all related communications"]}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-items-center pds2-space-x-8 pds2-text-content-secondary"})]})},CustomCardLayout=({children:a,className:o="pds2-space-y-12"})=>jsxRuntimeExports.jsx("div",{className:`pds2-flex pds2-flex-col pds2-w-full pds2-p-16 pds2-rounded-16 pds2-bg-surface-base ${o}`,children:a}),AbhaAadhaarVerificationFaceAuthStatusScreen=()=>{const a=useAuthAbhaStore(ht=>ht.aadhaarVerificationSkipStateStatus),o=useAuthAbhaStore(ht=>ht.authTxnId),_=useAuthAbhaStore(ht=>ht.ekaSmallToken),b=useAuthAbhaStore(ht=>ht.setScreen),$=useAuthAbhaStore(ht=>ht.abhaAddressList),[_e,et]=reactExports.useState(!0),tt=useAuthAbhaStore(ht=>ht.clientId),rt=useAuthAbhaStore(ht=>ht.isEkaAppLogin),st=useAuthAbhaStore(ht=>ht.oid),it=useAuthAbhaStore(ht=>ht.ekaProfileInfo),lt=useAuthAbhaStore(ht=>ht.initAbhaFlow),at=["M","F","O","U"],ft=useTrackAbhaEvent();return reactExports.useEffect(()=>{const ht=new Promise(vt=>{setTimeout(()=>{vt(et(!1))},500)});ft({name:"page_view",data:{flow:lt,page_view:"aadhaar_faceauth_verified_successful",platform:tt}});async function pt(){await ht,setTimeout(async()=>{var vt,ut,ot,nt;if(a===ABHA_V3_SKIP_STATES.REQUEST_MOBILE_OTP){b(SCREEN_NAMES.ABHA_MOBILE_AND_OTP_SCREEN);return}else{if(rt){const yt=at.includes(it==null?void 0:it.gender)?it==null?void 0:it.gender:void 0,_t={oid:(it==null?void 0:it.oid)||"",fln:(it==null?void 0:it.name)||"",dob:it==null?void 0:it.date_of_birth,gen:yt,mobile:it==null?void 0:it.mobile,at:"",fn:(it==null?void 0:it.firstname)||"",mn:(it==null?void 0:it.middlename)||"",ln:(it==null?void 0:it.lastname)||"",abha_number:(it==null?void 0:it.abha_number)||"","health-ids":it!=null&&it.abha_address?[it==null?void 0:it.abha_address]:void 0};console.log("inside abha aadhaar verification status auth profile response ",_t);const At=getMockAuthVerifyResponse(_t);if(console.log("authResponse ",At),a===ABHA_V3_SKIP_STATES.ABHA_END&&st){if(ft({name:"abha_aadhaar_verification_status_eka_flow",data:{type:"verify",platform:tt,flow:lt,transactionId:o||"",skipState:"abha_end",minToken:_||"",oid:st||"",abhaAddress:(it==null?void 0:it.abha_address)||"",isEkaAppLogin:rt?"true":"false"}}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(vt=window.EkaAbha)==null||vt.onAbhaSuccess(JSON.stringify({response:At}));return}onAbhaSuccess({response:At}),unMount();return}if(a===ABHA_V3_SKIP_STATES.ABHA_CREATE&&$){b(SCREEN_NAMES.SELECT_ABHA_FROM_LIST);return}console.log("redirecting to create eka profile for abha address creation -> mobile"),b(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(!o||!_)return;const dt=await postAuthVerifyV3({code:_,idp_id:"eka_min_token"});if(dt.data){if(a===ABHA_V3_SKIP_STATES.ABHA_END){const yt=await getPatientData(st),_t={...dt,data:{...dt.data??{},profile:yt}};if(st){if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(ut=window.EkaAbha)==null||ut.onAbhaSuccess(JSON.stringify({response:_t}));return}onAbhaSuccess({response:_t}),unMount();return}setIndividualEnv({extraHeaders:{auth:(ot=dt.data)==null?void 0:ot.tokens.sess}}),b(SCREEN_NAMES.GET_ALL_PROFILES);return}setIndividualEnv({extraHeaders:{auth:(nt=dt.data)==null?void 0:nt.tokens.sess}}),ft({name:"abha_login_otp_verify_abha_select",data:{flow:lt,type:"verify",platform:tt}}),b(SCREEN_NAMES.SELECT_ABHA_FROM_LIST);return}}},2e3)}pt()},[]),jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:_e,loadingText:"Verifying...",successText:"Aadhaar Verification Successful!"})},APPOINTMENT_TOKEN_CACHE_KEY="abha_appointment_token_cache",AbhaSessionStatusLoaderScreen=()=>{const a=useAuthAbhaStore(it=>it.setScreen),o=useAuthAbhaStore(it=>it.goBackLoginScreen),_=useAuthAbhaStore(it=>it.setBottomsheetErrorInfo);useAuthAbhaStore(it=>it.isEkaAppLogin);const b=useAuthAbhaStore(it=>it.clientId),$=useAuthAbhaStore(it=>it.initAbhaFlow);useAuthAbhaStore(it=>it.screen);const _e=useAuthAbhaStore(it=>it.setAppointmentTokenDetails),et=useAuthAbhaStore(it=>it.setEkaProfileInfo),tt=useAuthAbhaStore(it=>it.setProviderDetails),rt=useTrackAbhaEvent();reactExports.useEffect(()=>{rt({name:"abha_doc_session_status_page",data:{page_view:"abha_session_status_page",platform:b,flow:$}}),rt({name:"fetch_session_status_api",data:{type:"get_init",platform:b,flow:$}}),(async()=>{try{let lt=await getAbdmSessionStatus();if(lt.logged_in){if($===ABHA_INIT_FLOW.ABHA_KYC)lt.kyc_verified?a(SCREEN_NAMES.KYC_ALREADY_VERIFIED):a(SCREEN_NAMES.KYC_LOGIN_SCREEN);else if($===ABHA_INIT_FLOW.CONSENT)a(SCREEN_NAMES.CONSENT_LOADER_SCREEN);else if($===ABHA_INIT_FLOW.SCAN_AND_SHARE||$===ABHA_INIT_FLOW.SCAN_AND_SHARE_KIOSK){const at=sessionStorage.getItem(APPOINTMENT_TOKEN_CACHE_KEY);if(at){const{appointmentTokenDetails:ft,ekaProfileInfo:ht,providerDetails:pt}=JSON.parse(at);_e(ft),et(ht),tt(pt),a(SCREEN_NAMES.APPOINTMENT_TOKEN_GENERATED_SCREEN)}else a(SCREEN_NAMES.BOOK_APPOINTMENT_SCREEN)}}else a(SCREEN_NAMES.LOGIN_OR_CREATE_ABHA)}catch(lt){const{code:at,error:ft,source_error:ht}=lt;rt({name:"abha_abdm_session_status_get_failed",data:{error_code:at,error_msg:ft,source_error:ht,flow:$}}),a(SCREEN_NAMES.LOGIN_OR_CREATE_ABHA)}})()},[]);const st=()=>{rt({name:"abha_session_status_request_error_bottomsheet_dismissed",data:{platform:b,flow:$}}),_(null),o()};return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-base",children:[jsxRuntimeExports.jsx(AbhaLoadingStatus,{}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:st})]})},AbhaKycAlreadyVerifiedScreen=()=>{const a=useAuthAbhaStore(b=>b.clientId),o=useAuthAbhaStore(b=>b.successRedirect),_=GET_CLIENT_ID();return reactExports.useEffect(()=>{_==="ext"?(onKYCSuccess("KYC already verified, onKYCSuccess called, next page redirect"),o&&setTimeout(()=>{window.location.href=o},3e3)):a==="phr"||a==="doctor"?setTimeout(()=>{onKYCSuccess("KYC already verified, onKYCSuccess called,next abha unmount"),unMount()},3e3):(onKYCSuccess("KYC already verified, onKYCSuccess called, next page redirect"),setTimeout(()=>{window.location.href="https://www.eka.care/s/for-patients"},3e3))},[]),jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:!1,loadingText:"KYC in progress...",successText:"KYC already Verified!"})},TickSwiggly="data:image/svg+xml,%3csvg%20width='37'%20height='37'%20viewBox='0%200%2037%2037'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18.5%200.5C21.0312%200.5%2023.2812%201.97656%2024.4062%204.15625C26.7266%203.38281%2029.3984%203.94531%2031.2266%205.77344C33.0547%207.60156%2033.6172%2010.2734%2032.8438%2012.5938C35.0234%2013.7188%2036.5%2015.9688%2036.5%2018.5C36.5%2021.1016%2035.0234%2023.3516%2032.8438%2024.4766C33.6172%2026.7969%2033.0547%2029.3984%2031.2266%2031.2266C29.3984%2033.0547%2026.7266%2033.6172%2024.4062%2032.9141C23.2812%2035.0938%2021.0312%2036.5%2018.5%2036.5C15.8984%2036.5%2013.6484%2035.0938%2012.5234%2032.9141C10.2031%2033.6172%207.60156%2033.0547%205.77344%2031.2266C3.94531%2029.3984%203.38281%2026.7969%204.08594%2024.4766C1.90625%2023.3516%200.5%2021.1016%200.5%2018.5C0.5%2015.9688%201.90625%2013.7188%204.08594%2012.5938C3.38281%2010.2734%203.94531%207.60156%205.77344%205.77344C7.60156%203.94531%2010.2031%203.38281%2012.5234%204.15625C13.6484%201.97656%2015.8984%200.5%2018.5%200.5ZM25.3203%2016.3203C25.9531%2015.6875%2025.9531%2014.6328%2025.3203%2014C24.6172%2013.2969%2023.5625%2013.2969%2022.9297%2014L16.25%2020.6797L13.5078%2017.9375C12.8047%2017.2344%2011.75%2017.2344%2011.1172%2017.9375C10.4141%2018.5703%2010.4141%2019.625%2011.1172%2020.2578L15.0547%2024.1953C15.6875%2024.8984%2016.7422%2024.8984%2017.4453%2024.1953L25.3203%2016.3203Z'%20fill='%2346AB86'%20/%3e%3c/svg%3e",AbhaCardScreen=()=>{const[a,o]=reactExports.useState(!1),_=useAuthAbhaStore(ot=>ot.ekaProfileInfo),b=useAuthAbhaStore(ot=>ot.initAbhaFlow);useAuthAbhaStore(ot=>ot.isEkaAppLogin);const $=useAuthAbhaStore(ot=>ot.clientId),_e=useAuthAbhaStore(ot=>ot.setGoBackToLogin),et=useAuthAbhaStore(ot=>ot.setAbhaAuthFlowMethod),tt=useAuthAbhaStore(ot=>ot.setIdentifierValue),rt=useAuthAbhaStore(ot=>ot.setEkaProfileInfo),st=useAuthAbhaStore(ot=>ot.goBackLoginScreen),[it,lt]=reactExports.useState(LOADING_STATE.IDLE),[at,ft]=reactExports.useState(LOADING_STATE.IDLE),ht=GET_REG_JOURNEY_ID(),pt=useTrackAbhaEvent(),vt=async()=>{pt({name:"abha_card_download_clicked",data:{platform:$,flow:b}});try{lt(LOADING_STATE.LOADING);const ot=await getAbdmAssestCard();if(!(ot instanceof Blob)){console.error("Received non-blob response:",ot),pt({name:"abha_card_download_failed",data:{platform:$,error:"Invalid Blob",flow:b}});return}const nt=window.URL.createObjectURL(ot),dt=document.createElement("a");dt.href=nt,dt.download=`${_==null?void 0:_.firstname}_${_==null?void 0:_.lastname}_AbhaCard.png`,document.body.appendChild(dt),dt.click(),document.body.removeChild(dt),window.URL.revokeObjectURL(nt),lt(LOADING_STATE.RESOLVED),pt({name:"abha_card_download_success",data:{platform:$,flow:b}})}catch(ot){lt(LOADING_STATE.REJECTED),console.error("Download Error:",ot),pt({name:"abha_card_download_failed",data:{platform:$,error:JSON.stringify(ot),flow:b}})}},ut=()=>{ft(LOADING_STATE.LOADING),pt({name:"abha_card_continue_clicked",data:{platform:$,flow:b}}),$.includes("doc")&&!ht?(unMount(),ft(LOADING_STATE.RESOLVED)):(_e(!0),et(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),tt({mobile:"",phr_address:"",abha_number:"",aadhaar_number:""}),rt({date_of_birth:"",firstname:"",lastname:"",pincode:"",gender:"",oid:"",middlename:"",abha_address:"",abha_number:""}),st(),ft(LOADING_STATE.RESOLVED))};return jsxRuntimeExports.jsxs("div",{className:"pds2-w-full pds2-h-full pds2-bg-surface-subtle pds2-relative",children:[jsxRuntimeExports.jsx(Pds2Header,{title:"Download ABHA card",className:"pds2-border-b-1 pds2-border-surface-muted",prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:()=>o(!0),children:jsxRuntimeExports.jsx(n$3,{className:""})})}),b==ABHA_INIT_FLOW.ABHA_REGISTRATION?jsxRuntimeExports.jsx(AbhaStepper,{}):jsxRuntimeExports.jsx("div",{className:"pds2-pt-40 pds2-bg-surface-subtle"}),jsxRuntimeExports.jsx("div",{className:"pds2-px-16 pds2-space-y-16 pds2-overflow-y-hidden pds2-bg-surface-subtle",children:jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-flex-col pds2-items-center ",children:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-items-center md:pds2-px-40",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-flex-col pds2-items-center pds2-space-y-6",children:jsxRuntimeExports.jsx("div",{className:"pds2-px-24 pds2-flex pds2-flex-col pds2-space-y-8 md:pds2-p-16 pds2-justify-center pds2-items-center pds2-text-center",children:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("img",{alt:"swiggly-tick-icon",src:TickSwiggly,className:"pds2-w-54 pds2-h-54 md:pds2-h-60 md:pds2-w-60 "}),jsxRuntimeExports.jsx("p",{className:"Heading4Semibold pds2-mt-8",children:"ABHA Registration Successful!"})]})})}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-items-center pds2-relative pds2-mt-16 pds2-w-full",children:[jsxRuntimeExports.jsx("div",{className:"pds2-relative pds2-h-159 pds2-w-166 pds2-ml-22",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/clxu62r5f00020tklemws6vkm.png",alt:"abha_card_bg_img",style:{objectFit:"contain",objectPosition:"center",width:"100%",height:"100%"}})}),jsxRuntimeExports.jsxs("div",{className:"pds2-rounded-4 pds2-overflow-hidden pds2-h-117 pds2-w-180 pds2-relative -pds2-top-50 pds2-bg-surface-base",style:{boxShadow:"0px 2.43737px 9.74947px rgba(41, 41, 140, 0.16)"},children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-justify-between pds2-py-5 pds2-px-10 pds2-w-full pds2-bg-surface-abhaCard",children:[jsxRuntimeExports.jsx("div",{className:"pds2-relative pds2-h-23 pds2-w-26 pds2-bg-surface-base pds2-rounded-4",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm6hreldp000b0tfwf0nj156l.webp",alt:"abdm-abha-icon",style:{objectFit:"contain",objectPosition:"center",width:"100%",height:"100%"}})}),jsxRuntimeExports.jsx("div",{className:"pds2-relative pds2-h-23 pds2-w-50 pds2-bg-content-primary",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/clcoqzar7002l0sdsfgx40nkp.webp",alt:"nha_logo_img",style:{objectFit:"contain",objectPosition:"center",width:"100%",height:"100%"}})})]}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-items-center pds2-justify-between pds2-pt-9 pds2-pb-30 pds2-px-10 pds2-bg-surface-base",children:jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-3",children:[jsxRuntimeExports.jsx("div",{className:"pds2-font-700 pds2-text-12 pds2-leading-12",children:(_==null?void 0:_.firstname)+" "+(_==null?void 0:_.lastname)}),jsxRuntimeExports.jsxs("div",{className:"pds2-font-400 pds2-text-9 pds2-leading-10 pds2-text-content-secondary pds2-pb-8",children:[(_==null?void 0:_.gender)==="M"?"Male":(_==null?void 0:_.gender)==="F"?"Female":"Others",", ",calculateAge$1((_==null?void 0:_.date_of_birth)??"")," years"]}),jsxRuntimeExports.jsx("div",{className:"pds2-space-y-2",children:(_==null?void 0:_.abha_number)&&jsxRuntimeExports.jsxs("div",{className:"pds2-font-500 pds2-text-9 pds2-leading-10",children:[jsxRuntimeExports.jsxs("span",{className:"!pds2-font-400 pds2-text-content-secondary",children:["ABHA Number:"," "]}),_==null?void 0:_.abha_number]})}),jsxRuntimeExports.jsx("div",{className:"pds2-space-y-2",children:(_==null?void 0:_.abha_address)&&jsxRuntimeExports.jsxs("div",{className:"pds2-font-500 pds2-text-9 pds2-leading-10",children:[jsxRuntimeExports.jsxs("span",{className:"!pds2-font-400 pds2-text-content-secondary",children:["ABHA Address:"," "]}),_==null?void 0:_.abha_address]})})]})})]})]})]})})}),jsxRuntimeExports.jsxs("div",{className:"pds2-absolute pds2-w-full pds2-bottom-0 pds2-flex pds2-pt-16 ",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-z-10 pds2-absolute pds2-text-content-success pds2-bg-surface-success pds2-top-0 pds2-mb-2 pds2-font-500 pds2-text-12 pds2-leading-18 pds2-w-full pds2-text-center ",children:[jsxRuntimeExports.jsx("span",{className:"pds2-font-700",children:"50 Cr"}),jsxRuntimeExports.jsx("span",{children:" + people have already created ABHA!"})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-gap-10 pds2-p-16 pds2-sticky pds2-bottom-0 pds2-bg-surface-base pds2-w-full pds2-border pds2-border-surface-muted",children:[jsxRuntimeExports.jsx(Pds2Button,{state:at===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:at===LOADING_STATE.LOADING,title:"Continue",buttonColor:"pds2-bg-surface-base",textColor:"pds2-text-primary-brand",className:"pds2-w-5/6 pds2-border pds2-border-surface-muted",onClick:ut}),jsxRuntimeExports.jsx(Pds2Button,{state:it===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:it===LOADING_STATE.LOADING,title:"",IconComponent:()=>jsxRuntimeExports.jsx(t$a,{}),buttonColor:"pds2-bg-primary-brand",className:"pds2-w-1/6 ",padding:"pds2-p-0",onClick:vt})]})]}),jsxRuntimeExports.jsx(ExitPopup,{open:a,setOpen:o})]})},v="4.8.0",ip=0,op=120,fr=24,w=1080,h=1080,nm="C",assets=[],layers=[{ind:1,nm:"₹",sr:1,ks:{o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[-1077.985,-185.842,0]},a:{a:0,k:[0,-34.45,0]},s:{a:0,k:[250.761,250.761,100]}},shapes:[{ty:"gr",nm:"₹",it:[{ty:"sh",nm:"₹",ind:0,ks:{k:{i:[[0,0],[0,0],[0,0],[-1.791,-.098],[-1.449,-.374],[-1.042,-.748],[-.391,-1.302],[0,0],[0,0],[0,0],[1.139,-.83],[1.383,-.439],[1.399,-.13],[.911,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-2.312,.863],[-1.823,1.4],[-1.221,1.904],[-.391,2.344],[0,0],[0,0],[0,0],[.52,1.025],[.553,.652],[0,0],[0,0]],o:[[0,0],[0,0],[1.92,0],[1.79,.098],[1.448,.375],[1.041,.749],[0,0],[0,0],[0,0],[-.423,1.433],[-1.14,.83],[-1.384,.439],[-1.4,.13],[0,0],[0,0],[0,0],[0,0],[0,0],[2.571,-.227],[2.311,-.862],[1.823,-1.399],[1.221,-1.904],[0,0],[0,0],[0,0],[-.163,-1.041],[-.521,-1.025],[0,0],[0,0],[0,0]],v:[[-20.825,-71.582],[-25.708,-60.791],[-18.628,-60.791],[-13.062,-60.645],[-8.203,-59.937],[-4.468,-58.252],[-2.319,-55.176],[-20.825,-55.176],[-25.708,-44.385],[-2.271,-44.385],[-4.614,-40.991],[-8.398,-39.087],[-12.573,-38.232],[-16.04,-38.037],[-23.267,-38.037],[-23.267,-27.246],[1.245,0],[18.53,0],[-8.032,-28.027],[-.708,-29.663],[5.493,-33.057],[10.059,-38.013],[12.476,-44.385],[21.021,-44.385],[25.903,-55.176],[12.476,-55.176],[11.45,-58.276],[9.839,-60.791],[21.021,-60.791],[25.903,-71.582]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,1,1,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[0,0]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]}],ip:40,op:160,st:40,parent:2,ty:4},{ind:2,nm:"S",sr:1,ks:{o:{a:0,k:100},r:{a:1,k:[{i:{x:[.363],y:[1]},o:{x:[.333],y:[0]},t:28,s:[40]},{t:52,s:[0]}]},p:{s:!0,x:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:28,s:[596.286]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:40,s:[188.286]},{t:52,s:[362.286]}]},y:{a:0,k:768}},a:{a:0,k:[-1074,-198,0]},s:{a:0,k:[95,95,100]}},shapes:[{ty:"gr",nm:"E",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[-106.039,0],[0,-106.039],[106.039,0],[0,106.039]],o:[[106.039,0],[0,106.039],[-106.039,0],[0,-106.039]],v:[[0,-192],[192,0],[0,192],[-179.5,0]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.694,.152,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[-1074,-198]},a:{a:0,k:[0,0]},s:{a:0,k:[80,80]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"E",it:[{ty:"el",nm:"E",d:1,p:{a:0,k:[0,0]},s:{a:0,k:[384,384]}},{ty:"fl",nm:"F",c:{a:0,k:[.89,.525,.003,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[-1074,-198]},a:{a:0,k:[0,0]},s:{a:0,k:[80,80]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"E",it:[{ty:"el",nm:"E",d:1,p:{a:0,k:[0,0]},s:{a:0,k:[384,384]}},{ty:"fl",nm:"F",c:{a:0,k:[1,.831,.329,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[-1074,-198]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]}],ip:40,op:120,st:22,ty:4},{ind:3,nm:"L",sr:1,ks:{o:{a:0,k:100},r:{a:1,k:[{i:{x:[0],y:[1]},o:{x:[.333],y:[0]},t:25,s:[-31]},{t:49,s:[0]}]},p:{s:!0,x:{a:0,k:607},y:{a:1,k:[{i:{x:[0],y:[1]},o:{x:[.333],y:[0]},t:25,s:[-216]},{i:{x:[.833],y:[1]},o:{x:[.333],y:[0]},t:49,s:[493]},{t:65,s:[493]}]}},a:{a:0,k:[765.71,954.979,0]},s:{a:0,k:[200,200,100]}},shapes:[{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[-2.289,-.795],[-36.972,0],[-10.21,-3.546],[0,.873],[45.263,0],[0,-4.772]],o:[[10.209,-3.546],[36.973,0],[2.289,-.795],[0,-4.772],[-45.263,0],[0,.873]],v:[[-78.424,5.575],[0,-.552],[78.425,5.575],[81.956,3.064],[0,-5.575],[-81.956,3.064]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[.89,.525,.003,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,934.854]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,-4.772],[45.262,0],[0,4.771],[-45.264,0]],o:[[0,4.771],[-45.264,0],[0,-4.772],[45.262,0]],v:[[81.956,-.001],[.001,8.638],[-81.956,-.001],[.001,-8.639]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.694,.152,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,937.918]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,-10.279],[56.936,0],[0,10.28],[-56.938,0]],o:[[0,10.28],[-56.938,0],[0,-10.279],[56.936,0]],v:[[103.092,0],[0,18.612],[-103.093,0],[0,-18.612]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.831,.329,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,939.876]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,0],[0,0],[-56.938,0],[0,10.279],[0,0]],o:[[0,0],[0,10.279],[56.936,0],[0,0],[0,0]],v:[[-103.092,-24.133],[-103.092,5.52],[0,24.133],[103.093,5.52],[103.093,-24.133]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.741,.16,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,964.562]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]}],ip:25,op:124,st:25,ty:4},{ind:4,nm:"L",sr:1,ks:{o:{a:0,k:100},r:{a:1,k:[{i:{x:[0],y:[1]},o:{x:[.333],y:[0]},t:20,s:[-31]},{t:44,s:[0]}]},p:{s:!0,x:{a:0,k:595},y:{a:1,k:[{i:{x:[0],y:[1]},o:{x:[.333],y:[0]},t:20,s:[-216]},{i:{x:[.833],y:[1]},o:{x:[.333],y:[0]},t:44,s:[573]},{t:65,s:[573]}]}},a:{a:0,k:[765.71,954.979,0]},s:{a:0,k:[200,200,100]}},shapes:[{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[-2.289,-.795],[-36.972,0],[-10.21,-3.546],[0,.873],[45.263,0],[0,-4.772]],o:[[10.209,-3.546],[36.973,0],[2.289,-.795],[0,-4.772],[-45.263,0],[0,.873]],v:[[-78.424,5.575],[0,-.552],[78.425,5.575],[81.956,3.064],[0,-5.575],[-81.956,3.064]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[.89,.525,.003,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,934.854]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,-4.772],[45.262,0],[0,4.771],[-45.264,0]],o:[[0,4.771],[-45.264,0],[0,-4.772],[45.262,0]],v:[[81.956,-.001],[.001,8.638],[-81.956,-.001],[.001,-8.639]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.694,.152,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,937.918]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,-10.279],[56.936,0],[0,10.28],[-56.938,0]],o:[[0,10.28],[-56.938,0],[0,-10.279],[56.936,0]],v:[[103.092,0],[0,18.612],[-103.093,0],[0,-18.612]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.831,.329,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,939.876]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,0],[0,0],[-56.938,0],[0,10.279],[0,0]],o:[[0,0],[0,10.279],[56.936,0],[0,0],[0,0]],v:[[-103.092,-24.133],[-103.092,5.52],[0,24.133],[103.093,5.52],[103.093,-24.133]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.741,.16,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,964.562]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]}],ip:20,op:124,st:20,ty:4},{ind:5,nm:"L",sr:1,ks:{o:{a:0,k:100},r:{a:1,k:[{i:{x:[0],y:[1]},o:{x:[.333],y:[0]},t:15,s:[-31]},{t:39,s:[0]}]},p:{s:!0,x:{a:0,k:607},y:{a:1,k:[{i:{x:[0],y:[1]},o:{x:[.333],y:[0]},t:15,s:[-216]},{i:{x:[.833],y:[1]},o:{x:[.333],y:[0]},t:39,s:[653]},{t:65,s:[653]}]}},a:{a:0,k:[765.71,954.979,0]},s:{a:0,k:[200,200,100]}},shapes:[{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[-2.289,-.795],[-36.972,0],[-10.21,-3.546],[0,.873],[45.263,0],[0,-4.772]],o:[[10.209,-3.546],[36.973,0],[2.289,-.795],[0,-4.772],[-45.263,0],[0,.873]],v:[[-78.424,5.575],[0,-.552],[78.425,5.575],[81.956,3.064],[0,-5.575],[-81.956,3.064]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[.89,.525,.003,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,934.854]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,-4.772],[45.262,0],[0,4.771],[-45.264,0]],o:[[0,4.771],[-45.264,0],[0,-4.772],[45.262,0]],v:[[81.956,-.001],[.001,8.638],[-81.956,-.001],[.001,-8.639]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.694,.152,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,937.918]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,-10.279],[56.936,0],[0,10.28],[-56.938,0]],o:[[0,10.28],[-56.938,0],[0,-10.279],[56.936,0]],v:[[103.092,0],[0,18.612],[-103.093,0],[0,-18.612]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.831,.329,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,939.876]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,0],[0,0],[-56.938,0],[0,10.279],[0,0]],o:[[0,0],[0,10.279],[56.936,0],[0,0],[0,0]],v:[[-103.092,-24.133],[-103.092,5.52],[0,24.133],[103.093,5.52],[103.093,-24.133]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.741,.16,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,964.562]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]}],ip:15,op:124,st:15,ty:4},{ind:6,nm:"L",sr:1,ks:{o:{a:0,k:100},r:{a:1,k:[{i:{x:[0],y:[1]},o:{x:[.333],y:[0]},t:10,s:[-31]},{t:34,s:[0]}]},p:{s:!0,x:{a:0,k:595},y:{a:1,k:[{i:{x:[0],y:[1]},o:{x:[.333],y:[0]},t:10,s:[-216]},{i:{x:[.833],y:[1]},o:{x:[.333],y:[0]},t:34,s:[733]},{t:65,s:[733]}]}},a:{a:0,k:[765.71,954.979,0]},s:{a:0,k:[200,200,100]}},shapes:[{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[-2.289,-.795],[-36.972,0],[-10.21,-3.546],[0,.873],[45.263,0],[0,-4.772]],o:[[10.209,-3.546],[36.973,0],[2.289,-.795],[0,-4.772],[-45.263,0],[0,.873]],v:[[-78.424,5.575],[0,-.552],[78.425,5.575],[81.956,3.064],[0,-5.575],[-81.956,3.064]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[.89,.525,.003,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,934.854]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,-4.772],[45.262,0],[0,4.771],[-45.264,0]],o:[[0,4.771],[-45.264,0],[0,-4.772],[45.262,0]],v:[[81.956,-.001],[.001,8.638],[-81.956,-.001],[.001,-8.639]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.694,.152,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,937.918]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,-10.279],[56.936,0],[0,10.28],[-56.938,0]],o:[[0,10.28],[-56.938,0],[0,-10.279],[56.936,0]],v:[[103.092,0],[0,18.612],[-103.093,0],[0,-18.612]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.831,.329,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,939.876]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,0],[0,0],[-56.938,0],[0,10.279],[0,0]],o:[[0,0],[0,10.279],[56.936,0],[0,0],[0,0]],v:[[-103.092,-24.133],[-103.092,5.52],[0,24.133],[103.093,5.52],[103.093,-24.133]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.741,.16,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,964.562]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]}],ip:10,op:124,st:10,ty:4},{ind:7,nm:"L",sr:1,ks:{o:{a:0,k:100},r:{a:1,k:[{i:{x:[0],y:[1]},o:{x:[.333],y:[0]},t:5,s:[-31]},{t:29,s:[0]}]},p:{s:!0,x:{a:0,k:607},y:{a:1,k:[{i:{x:[0],y:[1]},o:{x:[.333],y:[0]},t:5,s:[-216]},{i:{x:[.833],y:[1]},o:{x:[.333],y:[0]},t:29,s:[813]},{t:65,s:[813]}]}},a:{a:0,k:[765.71,954.979,0]},s:{a:0,k:[200,200,100]}},shapes:[{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[-2.289,-.795],[-36.972,0],[-10.21,-3.546],[0,.873],[45.263,0],[0,-4.772]],o:[[10.209,-3.546],[36.973,0],[2.289,-.795],[0,-4.772],[-45.263,0],[0,.873]],v:[[-78.424,5.575],[0,-.552],[78.425,5.575],[81.956,3.064],[0,-5.575],[-81.956,3.064]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[.89,.525,.003,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,934.854]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,-4.772],[45.262,0],[0,4.771],[-45.264,0]],o:[[0,4.771],[-45.264,0],[0,-4.772],[45.262,0]],v:[[81.956,-.001],[.001,8.638],[-81.956,-.001],[.001,-8.639]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.694,.152,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,937.918]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,-10.279],[56.936,0],[0,10.28],[-56.938,0]],o:[[0,10.28],[-56.938,0],[0,-10.279],[56.936,0]],v:[[103.092,0],[0,18.612],[-103.093,0],[0,-18.612]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.831,.329,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,939.876]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,0],[0,0],[-56.938,0],[0,10.279],[0,0]],o:[[0,0],[0,10.279],[56.936,0],[0,0],[0,0]],v:[[-103.092,-24.133],[-103.092,5.52],[0,24.133],[103.093,5.52],[103.093,-24.133]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.741,.16,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,964.562]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]}],ip:5,op:124,st:5,ty:4},{ind:8,nm:"L",sr:1,ks:{o:{a:0,k:100},r:{a:1,k:[{i:{x:[0],y:[1]},o:{x:[.333],y:[0]},t:0,s:[-31]},{t:24,s:[0]}]},p:{s:!0,x:{a:0,k:595},y:{a:1,k:[{i:{x:[0],y:[1]},o:{x:[.333],y:[0]},t:0,s:[-216]},{i:{x:[.833],y:[1]},o:{x:[.333],y:[0]},t:24,s:[893]},{t:65,s:[893]}]}},a:{a:0,k:[765.71,954.979,0]},s:{a:0,k:[200,200,100]}},shapes:[{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[-2.289,-.795],[-36.972,0],[-10.21,-3.546],[0,.873],[45.263,0],[0,-4.772]],o:[[10.209,-3.546],[36.973,0],[2.289,-.795],[0,-4.772],[-45.263,0],[0,.873]],v:[[-78.424,5.575],[0,-.552],[78.425,5.575],[81.956,3.064],[0,-5.575],[-81.956,3.064]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[.89,.525,.003,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,934.854]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,-4.772],[45.262,0],[0,4.771],[-45.264,0]],o:[[0,4.771],[-45.264,0],[0,-4.772],[45.262,0]],v:[[81.956,-.001],[.001,8.638],[-81.956,-.001],[.001,-8.639]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.694,.152,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,937.918]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,-10.279],[56.936,0],[0,10.28],[-56.938,0]],o:[[0,10.28],[-56.938,0],[0,-10.279],[56.936,0]],v:[[103.092,0],[0,18.612],[-103.093,0],[0,-18.612]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.831,.329,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,939.876]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,0],[0,0],[-56.938,0],[0,10.279],[0,0]],o:[[0,0],[0,10.279],[56.936,0],[0,0],[0,0]],v:[[-103.092,-24.133],[-103.092,5.52],[0,24.133],[103.093,5.52],[103.093,-24.133]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.741,.16,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,964.562]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]}],ip:0,op:124,st:0,ty:4},{ind:9,nm:"₹",sr:1,ks:{o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[-1077.985,-185.842,0]},a:{a:0,k:[0,-34.45,0]},s:{a:0,k:[250.761,250.761,100]}},shapes:[{ty:"gr",nm:"₹",it:[{ty:"sh",nm:"₹",ind:0,ks:{k:{i:[[0,0],[0,0],[0,0],[-1.791,-.098],[-1.449,-.374],[-1.042,-.748],[-.391,-1.302],[0,0],[0,0],[0,0],[1.139,-.83],[1.383,-.439],[1.399,-.13],[.911,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-2.312,.863],[-1.823,1.4],[-1.221,1.904],[-.391,2.344],[0,0],[0,0],[0,0],[.52,1.025],[.553,.652],[0,0],[0,0]],o:[[0,0],[0,0],[1.92,0],[1.79,.098],[1.448,.375],[1.041,.749],[0,0],[0,0],[0,0],[-.423,1.433],[-1.14,.83],[-1.384,.439],[-1.4,.13],[0,0],[0,0],[0,0],[0,0],[0,0],[2.571,-.227],[2.311,-.862],[1.823,-1.399],[1.221,-1.904],[0,0],[0,0],[0,0],[-.163,-1.041],[-.521,-1.025],[0,0],[0,0],[0,0]],v:[[-20.825,-71.582],[-25.708,-60.791],[-18.628,-60.791],[-13.062,-60.645],[-8.203,-59.937],[-4.468,-58.252],[-2.319,-55.176],[-20.825,-55.176],[-25.708,-44.385],[-2.271,-44.385],[-4.614,-40.991],[-8.398,-39.087],[-12.573,-38.232],[-16.04,-38.037],[-23.267,-38.037],[-23.267,-27.246],[1.245,0],[18.53,0],[-8.032,-28.027],[-.708,-29.663],[5.493,-33.057],[10.059,-38.013],[12.476,-44.385],[21.021,-44.385],[25.903,-55.176],[12.476,-55.176],[11.45,-58.276],[9.839,-60.791],[21.021,-60.791],[25.903,-71.582]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,1,1,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[0,0]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]}],ip:28,op:40,st:28,parent:10,ty:4},{ind:10,nm:"S",sr:1,ks:{o:{a:0,k:100},r:{a:1,k:[{i:{x:[.363],y:[1]},o:{x:[.333],y:[0]},t:28,s:[40]},{t:52,s:[0]}]},p:{s:!0,x:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:28,s:[596.286]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:40,s:[188.286]},{t:52,s:[362.286]}]},y:{a:0,k:768}},a:{a:0,k:[-1074,-198,0]},s:{a:0,k:[95,95,100]}},shapes:[{ty:"gr",nm:"E",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[-106.039,0],[0,-106.039],[106.039,0],[0,106.039]],o:[[106.039,0],[0,106.039],[-106.039,0],[0,-106.039]],v:[[0,-192],[192,0],[0,192],[-179.5,0]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.694,.152,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[-1074,-198]},a:{a:0,k:[0,0]},s:{a:0,k:[80,80]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"E",it:[{ty:"el",nm:"E",d:1,p:{a:0,k:[0,0]},s:{a:0,k:[384,384]}},{ty:"fl",nm:"F",c:{a:0,k:[.89,.525,.003,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[-1074,-198]},a:{a:0,k:[0,0]},s:{a:0,k:[80,80]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"E",it:[{ty:"el",nm:"E",d:1,p:{a:0,k:[0,0]},s:{a:0,k:[384,384]}},{ty:"fl",nm:"F",c:{a:0,k:[1,.831,.329,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[-1074,-198]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]}],ip:28,op:40,st:22,ty:4}],markers=[],animationData={v,ip,op,fr,w,h,nm,assets,layers,markers},EarnWithABHAScreen=()=>{const a=useAuthAbhaStore(at=>at.goBackScreen),o=useAuthAbhaStore(at=>at.identifierValue);useAuthAbhaStore(at=>at.isEkaAppLogin);const _=useAuthAbhaStore(at=>at.clientId),b=useAuthAbhaStore(at=>at.goBackLoginScreen),[$,_e]=reactExports.useState(!1),et=useAuthAbhaStore(at=>at.setBottomsheetErrorInfo),tt=useAuthAbhaStore(at=>at.initAbhaFlow),rt=useTrackAbhaEvent(),st=()=>{rt({name:"abha_earn_abha_error_bottomsheet_dismissed",data:{platform:_,flow:tt}}),b(),et(null)},it=()=>{rt({name:"abha_earn_with_abha_clicked",data:{platform:_,flow:tt}}),a()},lt=()=>{rt({name:"abha_skip_earn_with_abha_clicked",data:{platform:_,flow:tt}}),onSkipAbha({identifier:(o==null?void 0:o.mobile)||(o==null?void 0:o.aadhaar_number)||(o==null?void 0:o.abha_number)||(o==null?void 0:o.phr_address)||"",identifier_type:o!=null&&o.mobile?"mobile":"aadhaar_number"}),unMount()};return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-base",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-px-16 pds2-pb-16 pds2-space-y-16 pds2-overflow-y-auto pds2-flex-1 pds2-bg-surface-subtle",children:[jsxRuntimeExports.jsx(Lottie,{animationData,loop:!0,className:"pds2-w-300 pds2-mx-auto pds2-h-2/5"}),jsxRuntimeExports.jsx("div",{className:"Title3Bold pds2-text-center pds2-w-full pds2-mx-auto pds2-text-content-secondary",children:"Turn prescriptions to paychecks"}),jsxRuntimeExports.jsxs("div",{className:"BodyBody pds2-text-center pds2-w-full pds2-mx-auto pds2-text-content-secondary",children:["Maximise the ",jsxRuntimeExports.jsx("br",{}),"Digital Health Incentive Scheme.",jsxRuntimeExports.jsx("br",{}),"Earn by linking records to ABHA."]}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-gap-20 pds2-w-full pds2-pt-20",children:[jsxRuntimeExports.jsx(Pds2Button,{title:"Earn with ABHA",buttonColor:"",className:"pds2-w-full",onClick:()=>it()}),jsxRuntimeExports.jsx(Pds2Button,{textColor:"pds2-text-primary-brand",title:"Continue without ABHA",buttonColor:"pds2-bg-surface-base",className:"pds2-w-full pds2-border pds2-border-surface-muted",onClick:()=>lt()})]})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:st}),jsxRuntimeExports.jsx(ExitPopup,{open:$,setOpen:_e})]})};var dayjs_min={exports:{}};(function(a,o){(function(_,b){a.exports=b()})(commonjsGlobal,function(){var _=1e3,b=6e4,$=36e5,_e="millisecond",et="second",tt="minute",rt="hour",st="day",it="week",lt="month",at="quarter",ft="year",ht="date",pt="Invalid Date",vt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ut=/\[([^\]]+)]|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,ot={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(jt){var Et=["th","st","nd","rd"],gt=jt%100;return"["+jt+(Et[(gt-20)%10]||Et[gt]||Et[0])+"]"}},nt=function(jt,Et,gt){var St=String(jt);return!St||St.length>=Et?jt:""+Array(Et+1-St.length).join(gt)+jt},dt={s:nt,z:function(jt){var Et=-jt.utcOffset(),gt=Math.abs(Et),St=Math.floor(gt/60),ct=gt%60;return(Et<=0?"+":"-")+nt(St,2,"0")+":"+nt(ct,2,"0")},m:function jt(Et,gt){if(Et.date()<gt.date())return-jt(gt,Et);var St=12*(gt.year()-Et.year())+(gt.month()-Et.month()),ct=Et.clone().add(St,lt),mt=gt-ct<0,Rt=Et.clone().add(St+(mt?-1:1),lt);return+(-(St+(gt-ct)/(mt?ct-Rt:Rt-ct))||0)},a:function(jt){return jt<0?Math.ceil(jt)||0:Math.floor(jt)},p:function(jt){return{M:lt,y:ft,w:it,d:st,D:ht,h:rt,m:tt,s:et,ms:_e,Q:at}[jt]||String(jt||"").toLowerCase().replace(/s$/,"")},u:function(jt){return jt===void 0}},yt="en",_t={};_t[yt]=ot;var At="$isDayjsObject",xt=function(jt){return jt instanceof Nt||!(!jt||!jt[At])},wt=function jt(Et,gt,St){var ct;if(!Et)return yt;if(typeof Et=="string"){var mt=Et.toLowerCase();_t[mt]&&(ct=mt),gt&&(_t[mt]=gt,ct=mt);var Rt=Et.split("-");if(!ct&&Rt.length>1)return jt(Rt[0])}else{var Tt=Et.name;_t[Tt]=Et,ct=Tt}return!St&&ct&&(yt=ct),ct||!St&&yt},bt=function(jt,Et){if(xt(jt))return jt.clone();var gt=typeof Et=="object"?Et:{};return gt.date=jt,gt.args=arguments,new Nt(gt)},It=dt;It.l=wt,It.i=xt,It.w=function(jt,Et){return bt(jt,{locale:Et.$L,utc:Et.$u,x:Et.$x,$offset:Et.$offset})};var Nt=function(){function jt(gt){this.$L=wt(gt.locale,null,!0),this.parse(gt),this.$x=this.$x||gt.x||{},this[At]=!0}var Et=jt.prototype;return Et.parse=function(gt){this.$d=function(St){var ct=St.date,mt=St.utc;if(ct===null)return new Date(NaN);if(It.u(ct))return new Date;if(ct instanceof Date)return new Date(ct);if(typeof ct=="string"&&!/Z$/i.test(ct)){var Rt=ct.match(vt);if(Rt){var Tt=Rt[2]-1||0,Dt=(Rt[7]||"0").substring(0,3);return mt?new Date(Date.UTC(Rt[1],Tt,Rt[3]||1,Rt[4]||0,Rt[5]||0,Rt[6]||0,Dt)):new Date(Rt[1],Tt,Rt[3]||1,Rt[4]||0,Rt[5]||0,Rt[6]||0,Dt)}}return new Date(ct)}(gt),this.init()},Et.init=function(){var gt=this.$d;this.$y=gt.getFullYear(),this.$M=gt.getMonth(),this.$D=gt.getDate(),this.$W=gt.getDay(),this.$H=gt.getHours(),this.$m=gt.getMinutes(),this.$s=gt.getSeconds(),this.$ms=gt.getMilliseconds()},Et.$utils=function(){return It},Et.isValid=function(){return this.$d.toString()!==pt},Et.isSame=function(gt,St){var ct=bt(gt);return this.startOf(St)<=ct&&ct<=this.endOf(St)},Et.isAfter=function(gt,St){return bt(gt)<this.startOf(St)},Et.isBefore=function(gt,St){return this.endOf(St)<bt(gt)},Et.$g=function(gt,St,ct){return It.u(gt)?this[St]:this.set(ct,gt)},Et.unix=function(){return Math.floor(this.valueOf()/1e3)},Et.valueOf=function(){return this.$d.getTime()},Et.startOf=function(gt,St){var ct=this,mt=!!It.u(St)||St,Rt=It.p(gt),Tt=function(Vt,Gt){var zt=It.w(ct.$u?Date.UTC(ct.$y,Gt,Vt):new Date(ct.$y,Gt,Vt),ct);return mt?zt:zt.endOf(st)},Dt=function(Vt,Gt){return It.w(ct.toDate()[Vt].apply(ct.toDate("s"),(mt?[0,0,0,0]:[23,59,59,999]).slice(Gt)),ct)},kt=this.$W,Ht=this.$M,Pt=this.$D,Lt="set"+(this.$u?"UTC":"");switch(Rt){case ft:return mt?Tt(1,0):Tt(31,11);case lt:return mt?Tt(1,Ht):Tt(0,Ht+1);case it:var Bt=this.$locale().weekStart||0,$t=(kt<Bt?kt+7:kt)-Bt;return Tt(mt?Pt-$t:Pt+(6-$t),Ht);case st:case ht:return Dt(Lt+"Hours",0);case rt:return Dt(Lt+"Minutes",1);case tt:return Dt(Lt+"Seconds",2);case et:return Dt(Lt+"Milliseconds",3);default:return this.clone()}},Et.endOf=function(gt){return this.startOf(gt,!1)},Et.$set=function(gt,St){var ct,mt=It.p(gt),Rt="set"+(this.$u?"UTC":""),Tt=(ct={},ct[st]=Rt+"Date",ct[ht]=Rt+"Date",ct[lt]=Rt+"Month",ct[ft]=Rt+"FullYear",ct[rt]=Rt+"Hours",ct[tt]=Rt+"Minutes",ct[et]=Rt+"Seconds",ct[_e]=Rt+"Milliseconds",ct)[mt],Dt=mt===st?this.$D+(St-this.$W):St;if(mt===lt||mt===ft){var kt=this.clone().set(ht,1);kt.$d[Tt](Dt),kt.init(),this.$d=kt.set(ht,Math.min(this.$D,kt.daysInMonth())).$d}else Tt&&this.$d[Tt](Dt);return this.init(),this},Et.set=function(gt,St){return this.clone().$set(gt,St)},Et.get=function(gt){return this[It.p(gt)]()},Et.add=function(gt,St){var ct,mt=this;gt=Number(gt);var Rt=It.p(St),Tt=function(Ht){var Pt=bt(mt);return It.w(Pt.date(Pt.date()+Math.round(Ht*gt)),mt)};if(Rt===lt)return this.set(lt,this.$M+gt);if(Rt===ft)return this.set(ft,this.$y+gt);if(Rt===st)return Tt(1);if(Rt===it)return Tt(7);var Dt=(ct={},ct[tt]=b,ct[rt]=$,ct[et]=_,ct)[Rt]||1,kt=this.$d.getTime()+gt*Dt;return It.w(kt,this)},Et.subtract=function(gt,St){return this.add(-1*gt,St)},Et.format=function(gt){var St=this,ct=this.$locale();if(!this.isValid())return ct.invalidDate||pt;var mt=gt||"YYYY-MM-DDTHH:mm:ssZ",Rt=It.z(this),Tt=this.$H,Dt=this.$m,kt=this.$M,Ht=ct.weekdays,Pt=ct.months,Lt=ct.meridiem,Bt=function(Gt,zt,Qt,Kt){return Gt&&(Gt[zt]||Gt(St,mt))||Qt[zt].slice(0,Kt)},$t=function(Gt){return It.s(Tt%12||12,Gt,"0")},Vt=Lt||function(Gt,zt,Qt){var Kt=Gt<12?"AM":"PM";return Qt?Kt.toLowerCase():Kt};return mt.replace(ut,function(Gt,zt){return zt||function(Qt){switch(Qt){case"YY":return String(St.$y).slice(-2);case"YYYY":return It.s(St.$y,4,"0");case"M":return kt+1;case"MM":return It.s(kt+1,2,"0");case"MMM":return Bt(ct.monthsShort,kt,Pt,3);case"MMMM":return Bt(Pt,kt);case"D":return St.$D;case"DD":return It.s(St.$D,2,"0");case"d":return String(St.$W);case"dd":return Bt(ct.weekdaysMin,St.$W,Ht,2);case"ddd":return Bt(ct.weekdaysShort,St.$W,Ht,3);case"dddd":return Ht[St.$W];case"H":return String(Tt);case"HH":return It.s(Tt,2,"0");case"h":return $t(1);case"hh":return $t(2);case"a":return Vt(Tt,Dt,!0);case"A":return Vt(Tt,Dt,!1);case"m":return String(Dt);case"mm":return It.s(Dt,2,"0");case"s":return String(St.$s);case"ss":return It.s(St.$s,2,"0");case"SSS":return It.s(St.$ms,3,"0");case"Z":return Rt}return null}(Gt)||Rt.replace(":","")})},Et.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Et.diff=function(gt,St,ct){var mt,Rt=this,Tt=It.p(St),Dt=bt(gt),kt=(Dt.utcOffset()-this.utcOffset())*b,Ht=this-Dt,Pt=function(){return It.m(Rt,Dt)};switch(Tt){case ft:mt=Pt()/12;break;case lt:mt=Pt();break;case at:mt=Pt()/3;break;case it:mt=(Ht-kt)/6048e5;break;case st:mt=(Ht-kt)/864e5;break;case rt:mt=Ht/$;break;case tt:mt=Ht/b;break;case et:mt=Ht/_;break;default:mt=Ht}return ct?mt:It.a(mt)},Et.daysInMonth=function(){return this.endOf(lt).$D},Et.$locale=function(){return _t[this.$L]},Et.locale=function(gt,St){if(!gt)return this.$L;var ct=this.clone(),mt=wt(gt,St,!0);return mt&&(ct.$L=mt),ct},Et.clone=function(){return It.w(this.$d,this)},Et.toDate=function(){return new Date(this.valueOf())},Et.toJSON=function(){return this.isValid()?this.toISOString():null},Et.toISOString=function(){return this.$d.toISOString()},Et.toString=function(){return this.$d.toUTCString()},jt}(),Ct=Nt.prototype;return bt.prototype=Ct,[["$ms",_e],["$s",et],["$m",tt],["$H",rt],["$W",st],["$M",lt],["$y",ft],["$D",ht]].forEach(function(jt){Ct[jt[1]]=function(Et){return this.$g(Et,jt[0],jt[1])}}),bt.extend=function(jt,Et){return jt.$i||(jt(Et,Nt,bt),jt.$i=!0),bt},bt.locale=wt,bt.isDayjs=xt,bt.unix=function(jt){return bt(1e3*jt)},bt.en=_t[yt],bt.Ls=_t,bt.p={},bt})})(dayjs_min);var dayjs_minExports=dayjs_min.exports;const dayjs=getDefaultExportFromCjs(dayjs_minExports);function getAppointmentTokenTimeRange(a=40){const o=new Date,_=new Date(o.getTime()+a*6e4),b={hour:"2-digit",minute:"2-digit",hour12:!0},$=o.toLocaleTimeString([],b),_e=_.toLocaleTimeString([],b);return`Today, ${$} - ${_e}`}function calculateAge({dob:a}){const o=dayjs(a),_=dayjs(),b=_.diff(o,"year");o.add(b,"year");const $=_.diff(o,"month");return`${b}y ${$}m`}const BookAppointmentScreen=()=>{const a=useAuthAbhaStore(Bt=>Bt.authTxnId),o=useAuthAbhaStore(Bt=>Bt.txnId),_=useAuthAbhaStore(Bt=>Bt.sessionInitTxnId),b=useAuthAbhaStore(Bt=>Bt.setOTPFromAutoRead),$=useAuthAbhaStore(Bt=>Bt.setSessionInitResponse),_e=useAuthAbhaStore(Bt=>Bt.abhaAuthFlowMethod);useAuthAbhaStore(Bt=>Bt.clearAbhaAuthStore);const et=useAuthAbhaStore(Bt=>Bt.setBottomsheetErrorInfo),tt=useAuthAbhaStore(Bt=>Bt.setAppointmentRequestId),rt=useAuthAbhaStore(Bt=>Bt.setScreen);useAuthAbhaStore(Bt=>Bt.abhaAuthFlowMethod);const st=useAuthAbhaStore(Bt=>Bt.ekaProfileInfo),it=useAuthAbhaStore(Bt=>Bt.setEkaProfileInfo),lt=useAuthAbhaStore(Bt=>Bt.clientId);useAuthAbhaStore(Bt=>Bt.isEkaAppLogin);const at=useAuthAbhaStore(Bt=>Bt.initAbhaFlow),ft=useAuthAbhaStore(Bt=>Bt.setProviderDetails),ht=useAuthAbhaStore(Bt=>Bt.providerDetails),pt=useTrackAbhaEvent(),[vt,ut]=reactExports.useState(!1),[ot,nt]=reactExports.useState(!1),[dt,yt]=reactExports.useState(!1),[_t,At]=reactExports.useState(LOADING_STATE.IDLE),[xt,wt]=reactExports.useState(LOADING_STATE.IDLE),[bt,It]=reactExports.useState(""),[Nt,Ct]=reactExports.useState(!1),jt=useAuthAbhaStore(Bt=>Bt.setAbhaAuthFlowMethod),[Et,gt]=reactExports.useState(""),[St,ct]=reactExports.useState(!1);reactExports.useEffect(()=>{pt({name:"page_view",data:{page_view:"abha_book_appointment_screen",platform:lt,flow:at}})},[]);const mt=async()=>{const Bt=await getProviderDetails();Bt&&(nt(!0),pt({name:"fetch_provider_details_success",data:{hip_id:Bt.hip_id,hip_name:Bt.hip_name,city:Bt.city,state:Bt.state,flow:at}}),ft(Bt))},Rt=async()=>{pt({name:"abha_get_abdm_profile_api_triggered",data:{platform:lt,flow:at}});let Bt=await getAbdmProfileV1();!Bt||Object.keys(Bt).length===0||Bt.error?(pt({name:"abha_get_abdm_profile_api_failed",data:{error_code:(Bt==null?void 0:Bt.code)??"NO_RESPONSE",error_msg:(Bt==null?void 0:Bt.error)??"No response received from server",source_error:(Bt==null?void 0:Bt.source_error)??null,flow:at}}),et({title:"Unable to get profile info",description:"Something went wrong",img:"",cta:{title:"",pid:"",params:null}})):Bt!=null&&Bt.abha_address&&(pt({name:"abha_get_abdm_profile_api_success",data:{platform:lt,flow:at}}),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,middlename:Bt==null?void 0:Bt.middle_name,abha_address:Bt==null?void 0:Bt.abha_address,abha_number:Bt==null?void 0:Bt.abha_number,kyc_verified:Bt==null?void 0:Bt.kyc_verified}))};reactExports.useEffect(()=>{mt(),st!=null&&st.abha_address||Rt()},[]);const Tt=async()=>{if(st!=null&&st.abha_address){const{txn_id:Bt,error:$t,action:Vt}=await postAbdmSessionInit({abha_address:st==null?void 0:st.abha_address});if(pt({name:"abha_post_session_init_api_trigger",data:{platform:lt,flow:at}}),Bt){$(Bt),Ct(!0);return}else{pt({name:"abha_session_init_failure",data:{error_message:$t||"unknown_error",error_message_exists:!!$t,authTxnId:a,error_action:Vt,error_action_exists:!!Vt,flow:at}}),et({title:"Please try again",description:$t||"Something went wrong.",img:"",cta:{title:"",pid:"",params:null}});return}}else{pt({name:"abha_post_session_init_api_abha_address_not_found",data:{error_msg:"No Abha Address for session init",platform:lt,flow:at}});return}},Dt=async()=>{pt({name:"abha_post_request_generate_token_api_triggered",data:{platform:lt,flow:at}}),At(LOADING_STATE.LOADING);const{statusCode:Bt,data:$t}=await postRequestGenerateToken();if($t!=null&&$t.request_id){pt({name:"abha_post_request_generate_token_api_success",data:{request_id:$t.request_id,status:$t.status,flow:at}}),At(LOADING_STATE.RESOLVED),tt($t.request_id),rt(SCREEN_NAMES.APPOINTMENT_TOKEN_LOADER_SCREEN);return}else if(Bt!==200||!$t||$t.error){if(Bt===491){pt({name:"abha_post_request_generate_token_api_failed",data:{error_code:($t==null?void 0:$t.code)??"NO_RESPONSE",error_msg:($t==null?void 0:$t.error)??"No response received from server",source_error:($t==null?void 0:$t.source_error)??null,http_status:Bt,flow:at}}),Tt();return}pt({name:"abha_post_request_generate_token_api_failed",data:{error_code:($t==null?void 0:$t.code)??"NO_RESPONSE",error_msg:($t==null?void 0:$t.error)??"No response received from server",source_error:($t==null?void 0:$t.source_error)??null,http_status:Bt,flow:at}}),et({title:"Unable to get appointment token",description:"Something went wrong while fetching the appointment token.",img:"",cta:{title:"",pid:"",params:null}}),At(LOADING_STATE.REJECTED)}},kt=()=>{At(LOADING_STATE.REJECTED),pt({name:"abha_generating_token_api_error_bottomsheet_dismissed",data:{platform:lt,flow:at}}),et(null)},Ht=async()=>{if(await postAuthLogoutV2()){pt({name:"abha_bookappointment_post_logout_success",data:{platform:lt,flow:at}}),removeExtraHeaders(["auth","X-Pt-Id"]),useAuthAbhaStore.getState().setAbhaAuthFlowMethod(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),rt(SCREEN_NAMES.LOGIN_OR_CREATE_ABHA);return}else pt({name:"abha_bookappointment_post_logout_failed",data:{platform:lt,flow:at}}),et({title:"Please try again",description:"Something went wrong.",img:"",cta:{title:"",pid:"",params:null}})},Pt=({otp:Bt})=>{gt(Bt),pt({name:"abha_session_verify_otp_completion",data:{type:"verify",platform:lt,txn_id:o,otp_entered:!0,method:_e,flow:at}}),Lt(Bt)},Lt=async Bt=>{if(b(""),!_){pt({name:"abha_session_otp_verify_txnId_not_found",data:{type:"verify",platform:lt,txn_id:o||"missing_txn_id",txn_id_exists:!!o,method:(_e==null?void 0:_e.toLowerCase())||"unknown_method",flow:at}});return}pt({name:"abha_session_otp_verify",data:{type:"verify",platform:lt,txn_id:o,flow:at}}),wt(LOADING_STATE.LOADING);const{statusCode:$t,data:Vt}=await postAbdmSessionVerify({otp:Bt,txn_id:_});if($t===200){pt({name:"abha_session_otp_verify_success",data:{type:"verify",platform:lt,txn_id:o,flow:at}}),Ct(!1),wt(LOADING_STATE.RESOLVED),Dt();return}if($t!=200&&(Vt!=null&&Vt.error)){pt({name:"abha_session_otp_verify_error",data:{type:"verify",platform:lt,error_message:(Vt==null?void 0:Vt.error)||"unknown_error",error_message_exists:!!(Vt!=null&&Vt.error),flow:at}}),wt(LOADING_STATE.REJECTED),It(Vt==null?void 0:Vt.error);return}if($t!=200&&!(Vt!=null&&Vt.error)){Ct(!1),pt({name:"abha_post_request_generate_token_api_failed",data:{error_msg:"No response received from server",platform:lt,http_status:$t,flow:at}}),et({title:"Unable to get verify",description:"Something went wrong, Please try again later.",img:"",cta:{title:"",pid:"",params:null}}),wt(LOADING_STATE.REJECTED);return}};return ot&&ht?jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-base",children:[jsxRuntimeExports.jsx(Pds2Header,{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$3,{className:""})}),suffixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:()=>yt(!0),children:jsxRuntimeExports.jsx(t$6,{className:"pds2-text-red"})}),title:"Book Appointment",className:"pds2-border-b-1 pds2-border-surface-muted"}),at==null||at===ABHA_INIT_FLOW.ABHA_REGISTRATION?jsxRuntimeExports.jsx(AbhaStepper,{}):jsxRuntimeExports.jsx("div",{className:"pds2-pt-40 pds2-bg-surface-subtle"}),dt&&jsxRuntimeExports.jsx("div",{onMouseLeave:()=>yt(!1),className:`pds2-absolute pds2-right-10 pds2-mt-2 pds2-z-50 pds2-animate-fade-in ${at===ABHA_INIT_FLOW.SCAN_AND_SHARE_KIOSK?"pds2-top-40":"pds2-top-90 "}`,children:jsxRuntimeExports.jsx(TooltipContent,{onLogout:Ht})}),jsxRuntimeExports.jsxs("div",{className:"pds2-p-16 pds2-space-y-16 pds2-overflow-y-auto pds2-flex-1 pds2-bg-surface-subtle",children:[jsxRuntimeExports.jsx("div",{className:"pds2-w-full ",children:jsxRuntimeExports.jsxs("div",{className:" pds2-w-fit pds2-flex pds2-items-center pds2-flex-col pds2-mx-auto",children:[jsxRuntimeExports.jsx("div",{className:"pds2-bg-surface-base pds2-rounded-50 pds2-h-64 pds2-w-64 pds2-flex pds2-items-center pds2-justify-center ",children:jsxRuntimeExports.jsx(l$5,{className:"pds2-h-48 pds2-w-48 pds2-text-content-secondary"})}),jsxRuntimeExports.jsxs("div",{className:"pds2-text-center pds2-mt-8",children:[jsxRuntimeExports.jsx("div",{className:"Body1Medium",children:ht==null?void 0:ht.hip_name}),jsxRuntimeExports.jsx("div",{className:"Body3Regular",children:(ht==null?void 0:ht.city)+" "+(ht==null?void 0:ht.state)})]})]})}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-justify-between pds2-bg-surface-base pds2-border pds2-border-surface-muted pds2-rounded-16 pds2-p-16",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"Body1Medium pds2-text-content-primary",children:(st==null?void 0:st.firstname)+" "+(st==null?void 0:st.lastname)}),jsxRuntimeExports.jsxs("div",{className:"Body3Regular pds2-text-content-secondary",children:[" ",(st==null?void 0:st.gender)==="M"?"Male":(st==null?void 0:st.gender)==="F"?"Female":"Others"," ","·"," ",calculateAge({dob:(st==null?void 0:st.date_of_birth)??""}).split("y")[0].trim()," ","years"]}),jsxRuntimeExports.jsxs("div",{className:"Body3Regular pds2-text-content-secondary",children:["Abha Address: ",st==null?void 0:st.abha_address]}),jsxRuntimeExports.jsxs("div",{className:"Body3Regular pds2-text-content-secondary",children:["Mobile: ",st==null?void 0:st.mobile]})]}),jsxRuntimeExports.jsx("div",{className:"pds2-bg-surface-strong pds2-h-64 pds2-w-64 pds2-rounded-8 pds2-relative ",children:jsxRuntimeExports.jsx(l$1,{className:"pds2-text-surface-base pds2-h-50 pds2-w-64 pds2-bottom-1 pds2-absolute"})})]}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-between pds2-bg-surface-base pds2-border pds2-border-surface-muted pds2-rounded-16 pds2-p-16",children:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-justify-between pds2-w-full",children:[jsxRuntimeExports.jsxs("div",{className:"Body2Regular pds2-flex pds2-items-center pds2-gap-8",children:[jsxRuntimeExports.jsx(t$8,{}),jsxRuntimeExports.jsx("div",{className:"Body1Medium pds2-text-content-secondary",children:"Time"})]}),jsxRuntimeExports.jsxs("div",{className:"Body2Medium pds2-text-content-primary",children:[" ",getAppointmentTokenTimeRange(30)]})]})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"pds2-text-content-primary Body3Semibold",children:"Please note"}),jsxRuntimeExports.jsxs("ul",{className:"Body3Regular pds2-text-content-secondary pds2-list-disc pds2-ml-20 pds2-mt-8 pds2-space-y-4",children:[jsxRuntimeExports.jsx("li",{children:"Your OPD appointment token will expire in 30 mins"}),jsxRuntimeExports.jsx("li",{children:"Patient’s ABHA profile will be shared with the hospital."}),jsxRuntimeExports.jsx("li",{children:"By booking appointment, you are allowing the hospital to link medical records with patient’s ABHA."})]})]})]}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-sticky pds2-bottom-0 pds2-bg-surface-base pds2-w-full pds2-border pds2-border-surface-muted",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Get Appointment Token",IconComponent:()=>jsxRuntimeExports.jsx(c$3,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),onClick:()=>Dt(),className:"pds2-w-full",isLoading:_t===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaBottomSheet,{isOpen:Nt,setIsOpen:Ct,setFlowMethod:jt,setError:It,children:jsxRuntimeExports.jsx("div",{className:"pds2-p-24 pds2-text-center pds2-h-1/4 pds2-flex pds2-flex-col",children:jsxRuntimeExports.jsxs("div",{className:"pds2-flex-1 pds2-flex pds2-flex-col pds2-justify-start",children:[jsxRuntimeExports.jsx("h2",{className:"Heading3Semibold pds2-text-content-primary pds2-mt-25",children:"Verify OTP"}),jsxRuntimeExports.jsx("p",{className:"Body2Regular pds2-text-content-secondary",children:"Enter OTP sent on your registered mobile number"}),jsxRuntimeExports.jsx("div",{className:"pds2-relative",children:jsxRuntimeExports.jsx(AbhaOtpCard,{onOtpCompletion:Pt,onResendOtpClick:Tt,setIsValid:Bt=>{bt&&It(null),ct(Bt)},prefixIcon:""})}),bt&&jsxRuntimeExports.jsx("div",{className:"pds2-text-semantic-error Body3Regular pds2-mt-12",children:bt}),jsxRuntimeExports.jsx(Pds2Button,{title:"Verify",state:!St||xt===LOADING_STATE.LOADING?"disabled":"enabled",onClick:()=>Lt(Et),className:"pds2-w-full pds2-mt-12"})]})})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:kt}),jsxRuntimeExports.jsx(ExitPopup,{open:vt,setOpen:ut})]}):jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:!ot,loadingText:"Fetching details...",successText:"Details Fetched Successfully!"})},TooltipContent=({onLogout:a})=>jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-flex-col pds2-py-8 pds2-bg-surface-base pds2-border pds2-border-surface-muted pds2-rounded-16 pds2-w-120 pds2-animate-slide-up",children:jsxRuntimeExports.jsxs("div",{className:" pds2-flex pds2-justify-center pds2-items-center pds2-gap-x-8 pds2-py-6 hover:pds2-cursor-pointer",onClick:a,children:[jsxRuntimeExports.jsx("div",{className:"pds2-bg-surface-base pds2-rounded-full",children:jsxRuntimeExports.jsx(t$6,{className:"pds2-w-16 pds2-h-16 pds2-text-surface-danger"})}),jsxRuntimeExports.jsx("div",{className:"pds2-text-content-secondary",children:"Logout"})]})}),AbhaBottomSheet=({isOpen:a,setIsOpen:o,children:_,setFlowMethod:b,overlayClassName:$="pds2-bg-content-primary pds2-bg-opacity-50",setError:_e})=>{const[et,tt]=reactExports.useState(a);useAuthAbhaStore(st=>st.initAbhaFlow);const rt=GET_CLIENT_ID();return reactExports.useEffect(()=>{if(a)tt(!0);else{const st=setTimeout(()=>tt(!1),300);return()=>clearTimeout(st)}},[a]),et?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 ${$} pds2-transition-opacity pds2-duration-300 pds2-bg-surface-neutral}`}),jsxRuntimeExports.jsx("div",{className:`pds2-relative ${rt==="ext"?"pds2-bg-surface-subtle":"pds2-bg-surface-base"} pds2-rounded-t-24 pds2-w-full pds2-transition-transform pds2-duration-300 ${a?"pds2-translate-y-0":"pds2-translate-y-full"}`,style:{height:"50%",maxHeight:"600px",overflowY:"auto"},children:_})]}):null};var domToImage={exports:{}};(function(a){(function(o){var _=nt(),b=dt(),$=yt(),_e=_t(),et={imagePlaceholder:void 0,cacheBust:!1},tt={toSvg:rt,toPng:it,toJpeg:lt,toBlob:at,toPixelData:st,impl:{fontFaces:$,images:_e,util:_,inliner:b,options:{}}};a.exports=tt;function rt(At,xt){return xt=xt||{},ft(xt),Promise.resolve(At).then(function(bt){return pt(bt,xt.filter,!0)}).then(vt).then(ut).then(wt).then(function(bt){return ot(bt,xt.width||_.width(At),xt.height||_.height(At))});function wt(bt){return xt.bgcolor&&(bt.style.backgroundColor=xt.bgcolor),xt.width&&(bt.style.width=xt.width+"px"),xt.height&&(bt.style.height=xt.height+"px"),xt.style&&Object.keys(xt.style).forEach(function(It){bt.style[It]=xt.style[It]}),bt}}function st(At,xt){return ht(At,xt||{}).then(function(wt){return wt.getContext("2d").getImageData(0,0,_.width(At),_.height(At)).data})}function it(At,xt){return ht(At,xt||{}).then(function(wt){return wt.toDataURL()})}function lt(At,xt){return xt=xt||{},ht(At,xt).then(function(wt){return wt.toDataURL("image/jpeg",xt.quality||1)})}function at(At,xt){return ht(At,xt||{}).then(_.canvasToBlob)}function ft(At){typeof At.imagePlaceholder>"u"?tt.impl.options.imagePlaceholder=et.imagePlaceholder:tt.impl.options.imagePlaceholder=At.imagePlaceholder,typeof At.cacheBust>"u"?tt.impl.options.cacheBust=et.cacheBust:tt.impl.options.cacheBust=At.cacheBust}function ht(At,xt){return rt(At,xt).then(_.makeImage).then(_.delay(100)).then(function(bt){var It=wt(At);return It.getContext("2d").drawImage(bt,0,0),It});function wt(bt){var It=document.createElement("canvas");if(It.width=xt.width||_.width(bt),It.height=xt.height||_.height(bt),xt.bgcolor){var Nt=It.getContext("2d");Nt.fillStyle=xt.bgcolor,Nt.fillRect(0,0,It.width,It.height)}return It}}function pt(At,xt,wt){if(!wt&&xt&&!xt(At))return Promise.resolve();return Promise.resolve(At).then(bt).then(function(Ct){return It(At,Ct,xt)}).then(function(Ct){return Nt(At,Ct)});function bt(Ct){return Ct instanceof HTMLCanvasElement?_.makeImage(Ct.toDataURL()):Ct.cloneNode(!1)}function It(Ct,jt,Et){var gt=Ct.childNodes;if(gt.length===0)return Promise.resolve(jt);return St(jt,_.asArray(gt),Et).then(function(){return jt});function St(ct,mt,Rt){var Tt=Promise.resolve();return mt.forEach(function(Dt){Tt=Tt.then(function(){return pt(Dt,Rt)}).then(function(kt){kt&&ct.appendChild(kt)})}),Tt}}function Nt(Ct,jt){if(!(jt instanceof Element))return jt;return Promise.resolve().then(Et).then(gt).then(St).then(ct).then(function(){return jt});function Et(){mt(window.getComputedStyle(Ct),jt.style);function mt(Rt,Tt){Rt.cssText?Tt.cssText=Rt.cssText:Dt(Rt,Tt);function Dt(kt,Ht){_.asArray(kt).forEach(function(Pt){Ht.setProperty(Pt,kt.getPropertyValue(Pt),kt.getPropertyPriority(Pt))})}}}function gt(){[":before",":after"].forEach(function(Rt){mt(Rt)});function mt(Rt){var Tt=window.getComputedStyle(Ct,Rt),Dt=Tt.getPropertyValue("content");if(Dt===""||Dt==="none")return;var kt=_.uid();jt.className=jt.className+" "+kt;var Ht=document.createElement("style");Ht.appendChild(Pt(kt,Rt,Tt)),jt.appendChild(Ht);function Pt(Lt,Bt,$t){var Vt="."+Lt+":"+Bt,Gt=$t.cssText?zt($t):Qt($t);return document.createTextNode(Vt+"{"+Gt+"}");function zt(Kt){var Ut=Kt.getPropertyValue("content");return Kt.cssText+" content: "+Ut+";"}function Qt(Kt){return _.asArray(Kt).map(Ut).join("; ")+";";function Ut(Jt){return Jt+": "+Kt.getPropertyValue(Jt)+(Kt.getPropertyPriority(Jt)?" !important":"")}}}}}function St(){Ct instanceof HTMLTextAreaElement&&(jt.innerHTML=Ct.value),Ct instanceof HTMLInputElement&&jt.setAttribute("value",Ct.value)}function ct(){jt instanceof SVGElement&&(jt.setAttribute("xmlns","http://www.w3.org/2000/svg"),jt instanceof SVGRectElement&&["width","height"].forEach(function(mt){var Rt=jt.getAttribute(mt);Rt&&jt.style.setProperty(mt,Rt)}))}}}function vt(At){return $.resolveAll().then(function(xt){var wt=document.createElement("style");return At.appendChild(wt),wt.appendChild(document.createTextNode(xt)),At})}function ut(At){return _e.inlineAll(At).then(function(){return At})}function ot(At,xt,wt){return Promise.resolve(At).then(function(bt){return bt.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(bt)}).then(_.escapeXhtml).then(function(bt){return'<foreignObject x="0" y="0" width="100%" height="100%">'+bt+"</foreignObject>"}).then(function(bt){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+xt+'" height="'+wt+'">'+bt+"</svg>"}).then(function(bt){return"data:image/svg+xml;charset=utf-8,"+bt})}function nt(){return{escape:ct,parseExtension:xt,mimeType:wt,dataAsUrl:St,isDataUrl:bt,canvasToBlob:Nt,resolveUrl:Ct,getAndEncode:gt,uid:jt(),delay:mt,asArray:Rt,escapeXhtml:Tt,makeImage:Et,width:Dt,height:kt};function At(){var Pt="application/font-woff",Lt="image/jpeg";return{woff:Pt,woff2:Pt,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Lt,jpeg:Lt,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function xt(Pt){var Lt=/\.([^\.\/]*?)$/g.exec(Pt);return Lt?Lt[1]:""}function wt(Pt){var Lt=xt(Pt).toLowerCase();return At()[Lt]||""}function bt(Pt){return Pt.search(/^(data:)/)!==-1}function It(Pt){return new Promise(function(Lt){for(var Bt=window.atob(Pt.toDataURL().split(",")[1]),$t=Bt.length,Vt=new Uint8Array($t),Gt=0;Gt<$t;Gt++)Vt[Gt]=Bt.charCodeAt(Gt);Lt(new Blob([Vt],{type:"image/png"}))})}function Nt(Pt){return Pt.toBlob?new Promise(function(Lt){Pt.toBlob(Lt)}):It(Pt)}function Ct(Pt,Lt){var Bt=document.implementation.createHTMLDocument(),$t=Bt.createElement("base");Bt.head.appendChild($t);var Vt=Bt.createElement("a");return Bt.body.appendChild(Vt),$t.href=Lt,Vt.href=Pt,Vt.href}function jt(){var Pt=0;return function(){return"u"+Lt()+Pt++;function Lt(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}function Et(Pt){return new Promise(function(Lt,Bt){var $t=new Image;$t.onload=function(){Lt($t)},$t.onerror=Bt,$t.src=Pt})}function gt(Pt){var Lt=3e4;return tt.impl.options.cacheBust&&(Pt+=(/\?/.test(Pt)?"&":"?")+new Date().getTime()),new Promise(function(Bt){var $t=new XMLHttpRequest;$t.onreadystatechange=zt,$t.ontimeout=Qt,$t.responseType="blob",$t.timeout=Lt,$t.open("GET",Pt,!0),$t.send();var Vt;if(tt.impl.options.imagePlaceholder){var Gt=tt.impl.options.imagePlaceholder.split(/,/);Gt&&Gt[1]&&(Vt=Gt[1])}function zt(){if($t.readyState===4){if($t.status!==200){Vt?Bt(Vt):Kt("cannot fetch resource: "+Pt+", status: "+$t.status);return}var Ut=new FileReader;Ut.onloadend=function(){var Jt=Ut.result.split(/,/)[1];Bt(Jt)},Ut.readAsDataURL($t.response)}}function Qt(){Vt?Bt(Vt):Kt("timeout of "+Lt+"ms occured while fetching resource: "+Pt)}function Kt(Ut){console.error(Ut),Bt("")}})}function St(Pt,Lt){return"data:"+Lt+";base64,"+Pt}function ct(Pt){return Pt.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function mt(Pt){return function(Lt){return new Promise(function(Bt){setTimeout(function(){Bt(Lt)},Pt)})}}function Rt(Pt){for(var Lt=[],Bt=Pt.length,$t=0;$t<Bt;$t++)Lt.push(Pt[$t]);return Lt}function Tt(Pt){return Pt.replace(/#/g,"%23").replace(/\n/g,"%0A")}function Dt(Pt){var Lt=Ht(Pt,"border-left-width"),Bt=Ht(Pt,"border-right-width");return Pt.scrollWidth+Lt+Bt}function kt(Pt){var Lt=Ht(Pt,"border-top-width"),Bt=Ht(Pt,"border-bottom-width");return Pt.scrollHeight+Lt+Bt}function Ht(Pt,Lt){var Bt=window.getComputedStyle(Pt).getPropertyValue(Lt);return parseFloat(Bt.replace("px",""))}}function dt(){var At=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:It,shouldProcess:xt,impl:{readUrls:wt,inline:bt}};function xt(Nt){return Nt.search(At)!==-1}function wt(Nt){for(var Ct=[],jt;(jt=At.exec(Nt))!==null;)Ct.push(jt[1]);return Ct.filter(function(Et){return!_.isDataUrl(Et)})}function bt(Nt,Ct,jt,Et){return Promise.resolve(Ct).then(function(St){return jt?_.resolveUrl(St,jt):St}).then(Et||_.getAndEncode).then(function(St){return _.dataAsUrl(St,_.mimeType(Ct))}).then(function(St){return Nt.replace(gt(Ct),"$1"+St+"$3")});function gt(St){return new RegExp(`(url\\(['"]?)(`+_.escape(St)+`)(['"]?\\))`,"g")}}function It(Nt,Ct,jt){if(Et())return Promise.resolve(Nt);return Promise.resolve(Nt).then(wt).then(function(gt){var St=Promise.resolve(Nt);return gt.forEach(function(ct){St=St.then(function(mt){return bt(mt,ct,Ct,jt)})}),St});function Et(){return!xt(Nt)}}}function yt(){return{resolveAll:At,impl:{readAll:xt}};function At(){return xt().then(function(wt){return Promise.all(wt.map(function(bt){return bt.resolve()}))}).then(function(wt){return wt.join(`
115
- `)})}function xt(){return Promise.resolve(_.asArray(document.styleSheets)).then(bt).then(wt).then(function(Nt){return Nt.map(It)});function wt(Nt){return Nt.filter(function(Ct){return Ct.type===CSSRule.FONT_FACE_RULE}).filter(function(Ct){return b.shouldProcess(Ct.style.getPropertyValue("src"))})}function bt(Nt){var Ct=[];return Nt.forEach(function(jt){try{_.asArray(jt.cssRules||[]).forEach(Ct.push.bind(Ct))}catch(Et){console.log("Error while reading CSS rules from "+jt.href,Et.toString())}}),Ct}function It(Nt){return{resolve:function(){var jt=(Nt.parentStyleSheet||{}).href;return b.inlineAll(Nt.cssText,jt)},src:function(){return Nt.style.getPropertyValue("src")}}}}}function _t(){return{inlineAll:xt,impl:{newImage:At}};function At(wt){return{inline:bt};function bt(It){return _.isDataUrl(wt.src)?Promise.resolve():Promise.resolve(wt.src).then(It||_.getAndEncode).then(function(Nt){return _.dataAsUrl(Nt,_.mimeType(wt.src))}).then(function(Nt){return new Promise(function(Ct,jt){wt.onload=Ct,wt.onerror=jt,wt.src=Nt})})}}function xt(wt){if(!(wt instanceof Element))return Promise.resolve(wt);return bt(wt).then(function(){return wt instanceof HTMLImageElement?At(wt).inline():Promise.all(_.asArray(wt.childNodes).map(function(It){return xt(It)}))});function bt(It){var Nt=It.style.getPropertyValue("background");return Nt?b.inlineAll(Nt).then(function(Ct){It.style.setProperty("background",Ct,It.style.getPropertyPriority("background"))}).then(function(){return It}):Promise.resolve(It)}}}})()})(domToImage);var domToImageExports=domToImage.exports;const domtoimage=getDefaultExportFromCjs(domToImageExports),SAIcon="data:image/svg+xml,%3csvg%20width='60'%20height='60'%20viewBox='0%200%2060%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='60'%20height='60'%20rx='16'%20fill='%23FBFBFB'/%3e%3crect%20x='13'%20y='10'%20width='34'%20height='40'%20rx='6'%20fill='%23E4E1FA'%20stroke='%237265E3'%20stroke-width='1.5'/%3e%3crect%20x='21'%20y='5'%20width='18'%20height='10'%20rx='3'%20fill='%23FBFBFB'%20stroke='%237265E3'%20stroke-width='1.5'/%3e%3crect%20x='19'%20y='24'%20width='8'%20height='8'%20rx='1.5'%20stroke='%237265E3'%20stroke-width='1.2'%20fill='none'/%3e%3cpath%20d='M20.5%2028L22%2029.5L26%2025.5'%20stroke='%2327B961'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cline%20x1='31'%20y1='28'%20x2='42'%20y2='28'%20stroke='%237265E3'%20stroke-width='1.5'%20stroke-linecap='round'%20opacity='0.5'/%3e%3crect%20x='19'%20y='36'%20width='8'%20height='8'%20rx='1.5'%20stroke='%237265E3'%20stroke-width='1.2'%20fill='none'/%3e%3cpath%20d='M20.5%2040L22%2041.5L26%2037.5'%20stroke='%2327B961'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cline%20x1='31'%20y1='40'%20x2='39'%20y2='40'%20stroke='%237265E3'%20stroke-width='1.5'%20stroke-linecap='round'%20opacity='0.5'/%3e%3c/svg%3e",Chatbot="data:image/svg+xml,%3csvg%20width='60'%20height='60'%20viewBox='0%200%2060%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='60'%20height='60'%20rx='16'%20fill='%23FBFBFB'/%3e%3crect%20x='12'%20y='11'%20width='36'%20height='26'%20rx='8'%20fill='%23E4E1FA'%20stroke='%237265E3'%20stroke-width='1.5'/%3e%3cline%20x1='30'%20y1='17'%20x2='30'%20y2='31'%20stroke='%237265E3'%20stroke-width='2.5'%20stroke-linecap='round'/%3e%3cline%20x1='23'%20y1='24'%20x2='37'%20y2='24'%20stroke='%237265E3'%20stroke-width='2.5'%20stroke-linecap='round'/%3e%3cpath%20d='M18%2037L23%2032L28%2037'%20fill='%23E4E1FA'%20stroke='%237265E3'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20d='M11%2046L17%2046L20%2042L24%2050L28%2044L31%2046L42%2046'%20stroke='%2327B961'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20fill='none'/%3e%3c/svg%3e",AppointmentTokenScreen=()=>{const a=useAuthAbhaStore(It=>It.ekaProfileInfo),o=useAuthAbhaStore(It=>It.clientId),_=useAuthAbhaStore(It=>It.initAbhaFlow),b=useAuthAbhaStore(It=>It.providerDetails),$=useAuthAbhaStore(It=>It.appointmentTokenDetails),_e=useAuthAbhaStore(It=>It.setBottomsheetErrorInfo),et=useAuthAbhaStore(It=>It.setScreen),[tt,rt]=reactExports.useState(LOADING_STATE.IDLE),[st,it]=reactExports.useState(LOADING_STATE.IDLE),[lt,at]=reactExports.useState(!1),[ft,ht]=reactExports.useState(!1),[pt,vt]=reactExports.useState(!1),ut=useTrackAbhaEvent(),ot=GET_HIP_ID(),nt=GET_COUNTER_ID(),dt=GET_FACILITY_NAME();reactExports.useEffect(()=>{$&&sessionStorage.setItem(APPOINTMENT_TOKEN_CACHE_KEY,JSON.stringify({appointmentTokenDetails:$,ekaProfileInfo:a,providerDetails:b}))},[]),reactExports.useEffect(()=>{ut({name:"page_view",data:{page_view:"abha_appointment_token_screen",platform:o,flow:_}}),onAppointmentBookedSuccess("Appointment Booked success, Token Generated onAppointmentBookedSuccess called")},[]);const yt=async()=>{ut({name:"abha_download_abha_card_on_ekaapp_clicked",data:{platform:o,flow:_}}),rt(LOADING_STATE.LOADING);const It=await postMagicUrl({magic:!0,whatsapp:!1});!It||It!=null&&It.error?(ut({name:"abha_post_magic_url_api_failed",data:{error_code:It.code,error_msg:It.error,source_error:It.source_error,flow:_}}),_e({title:"Unable to open Eka App",description:"Something went wrong",img:"",cta:{title:"",pid:"",params:null}})):It!=null&&It.link&&(ut({name:"abha_post_magic_url_api_success",data:{link:It==null?void 0:It.link,flow:_}}),rt(LOADING_STATE.RESOLVED),window.open(It==null?void 0:It.link,"_blank"))},_t=async()=>{it(LOADING_STATE==null?void 0:LOADING_STATE.LOADING),ut({name:"abha_download_token_clicked",data:{platform:o,flow:_}});const It=document.getElementById("appointment-token");It&&domtoimage.toPng(It).then(Nt=>{it(LOADING_STATE==null?void 0:LOADING_STATE.RESOLVED),ut({name:"abha_download_token_success",data:{platform:o,flow:_}});const Ct=document.createElement("a");Ct.download="appointment-token.png",Ct.href=Nt,Ct.click()}).catch(Nt=>{it(LOADING_STATE==null?void 0:LOADING_STATE.REJECTED),ut({name:"abha_download_token_failed",data:{platform:o,flow:_}}),console.error("dom-to-image screenshot failed:",Nt)})},At=()=>{et(SCREEN_NAMES.BOOK_APPOINTMENT_SCREEN),ut({name:"abha_appointment_token_screen_bottomsheet_dismissed",data:{platform:o,flow:_}}),_e(null)},xt=()=>{var Ct;if(at(!0),ut({name:"abha_health_chatbot_clicked",data:{platform:o,flow:_}}),!document.querySelector('script[src*="medassist-widget-embed"]')){const jt=document.createElement("script");jt.src="https://unpkg.com/@eka-care/medassist-widget-embed@latest/dist/index.js",jt.async=!0,jt.type="module",document.body.appendChild(jt)}(Ct=document.getElementById("eka-medassist-container"))==null||Ct.remove();const It=document.createElement("div");It.id="eka-medassist-container";const Nt=document.createElement("eka-medassist-widget");Nt.setAttribute("title","Med Assist"),Nt.setAttribute("display-mode","full"),Nt.setAttribute("agent-id","YTA1NWMzNGYtMmQ5ZC00YjU3LTgyNGEtOTMzZDkzYjY3YjQ2Izc3MDg4MTY2OTk2NzI0"),Nt.setAttribute("icon-url","https://cdn.eka.care/dev-console/77088166996724/agents/icons/ec4f747e-eb16-4f8a-ba6e-a485ea7dde95/eka_logo_.jpeg"),It.appendChild(Nt),document.body.appendChild(It),customElements.whenDefined("eka-medassist-widget").then(()=>{at(!1)})},wt=()=>{ht(!0),ut({name:"abha_self_assessment_clicked",data:{platform:o,flow:_}}),et(SCREEN_NAMES.SA_LISTING_SCREEN)},bt=async()=>{if(sessionStorage.removeItem(APPOINTMENT_TOKEN_CACHE_KEY),vt(!0),ut({name:"abha_token_generated_start_again_clicked",data:{flow:_,platform:o}}),await postAuthLogoutV2()){ut({name:"abha_token_generated_post_logout_success",data:{platform:o,flow:_}}),removeExtraHeaders(["auth","X-Pt-Id"]),useAuthAbhaStore.getState().setAbhaAuthFlowMethod(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),window.location.href=`https://www.eka.care/ayushman-bharat/abha-kiosk-setup?hip-id=${ot}&counter-id=${nt}&name=${dt}`;return}else ut({name:"abha_token_generated_post_logout_failed",data:{platform:o,flow:_}}),vt(!1),_e({title:"Please try again",description:"Something went wrong.",img:"",cta:{title:"",pid:"",params:null}})};return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-base",children:[jsxRuntimeExports.jsx(Pds2Header,{title:"",className:"",prefixIcon:"",showHeaderStrip:!1}),jsxRuntimeExports.jsxs("div",{className:"pds2-p-16 pds2-pt-60 pds2-space-y-16 pds2-overflow-y-auto pds2-flex-1 pds2-bg-surface-subtle ",children:[jsxRuntimeExports.jsx("div",{className:"pds2-w-full",children:jsxRuntimeExports.jsxs("div",{className:" pds2-w-fit pds2-flex pds2-items-center pds2-flex-col pds2-mx-auto",children:[jsxRuntimeExports.jsx("img",{src:TickSwiggly,className:"pds2-w-54 pds2-h-54 md:pds2-h-60 md:pds2-w-60 "}),jsxRuntimeExports.jsx("div",{className:"pds2-text-center pds2-mt-8",children:jsxRuntimeExports.jsx("div",{className:"Heading3Semibold",children:"Token Generated!"})})]})}),jsxRuntimeExports.jsxs("div",{id:"appointment-token",className:"pds2-bg-surface-base pds2-p-16",children:[jsxRuntimeExports.jsxs("div",{className:" pds2-flex pds2-justify-between",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"Body1Medium pds2-text-content-primary",children:b==null?void 0:b.hip_name}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-gap-5",children:[jsxRuntimeExports.jsx("div",{className:"pds2-bg-content-secondary pds2-h-12 pds2-w-12 pds2-rounded-50 pds2-relative ",children:jsxRuntimeExports.jsx(l$1,{className:"pds2-text-surface-base pds2-h-8 pds2-w-12 pds2-bottom-1 pds2-absolute"})}),jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-text-content-secondary",children:a==null?void 0:a.abha_address})]}),($==null?void 0:$.expiry)&&jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-gap-5",children:[jsxRuntimeExports.jsx(t$2,{className:"pds2-text-content-secondary pds2-h-12 pds2-w-12"}),jsxRuntimeExports.jsxs("div",{className:"Body3Regular pds2-text-content-secondary",children:["Valid till"," ",formatDateTime($==null?void 0:$.expiry,{date:!0,time:!0})]})]})]}),jsxRuntimeExports.jsx("div",{className:"Heading2Semibold pds2-h-65 pds2-bg-primary-brand pds2-text-surface-base pds2-rounded-12 pds2-text-center pds2-p-16",children:$==null?void 0:$.token_number})]}),jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-text-content-muted pds2-pt-12",children:"Proceed to the counter and get your OPD slip"})]}),_===ABHA_INIT_FLOW.SCAN_AND_SHARE&&jsxRuntimeExports.jsx(Pds2Button,{size:"small",isLoading:st===LOADING_STATE.LOADING,title:"Download your Token",buttonColor:"",className:"pds2-w-full",onClick:()=>_t()}),jsxRuntimeExports.jsx("div",{className:"pds2-rounded-16 pds2-overflow-hidden pds2-w-full pds2-border-surface-muted pds2-border",children:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-justify-between pds2-p-16 pds2-bg-surface-base",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-3",children:[jsxRuntimeExports.jsxs("div",{className:"Body1Semibold ",children:[(a==null?void 0:a.firstname)+" "+(a==null?void 0:a.lastname),",",jsxRuntimeExports.jsxs("span",{className:"Body3Regular pds2-text-content-secondary pds2-pl-8",children:[(a==null?void 0:a.gender)==="M"?"Male":(a==null?void 0:a.gender)==="F"?"Female":"Others",","," ",calculateAge({dob:(a==null?void 0:a.date_of_birth)??""}).split("y")[0].trim()," ","Years"]})]}),(a==null?void 0:a.abha_number)&&jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-space-y-2",children:jsxRuntimeExports.jsxs("div",{className:"",children:[jsxRuntimeExports.jsx("span",{className:" pds2-text-content-secondary",children:"ABHA No: "}),a==null?void 0:a.abha_number]})}),jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-space-y-2",children:jsxRuntimeExports.jsxs("div",{className:"",children:[jsxRuntimeExports.jsx("span",{className:" pds2-text-content-secondary",children:"ABHA Address: "}),a==null?void 0:a.abha_address]})})]}),jsxRuntimeExports.jsx("div",{className:"pds2-w-64 pds2-h-64 pds2-rounded-full pds2-bg-surface-base 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-64 pds2-h-64 pds2-rounded-full"})})]})}),_===ABHA_INIT_FLOW.SCAN_AND_SHARE_KIOSK&&jsxRuntimeExports.jsxs("div",{className:"pds2-text-center pds2-mt-8 pds2-space-y-20",children:[jsxRuntimeExports.jsx("div",{className:"Body1Medium",children:"While you wait"}),jsxRuntimeExports.jsxs("div",{className:"Body2Regular pds2-flex pds2-justify-center pds2-space-x-16 pds2-cursor-pointer pds2-z-50",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-dsplay-flex pds2-flex-col pds2-justify-items-center pds2-space-y-8 hover:pds2-text-primary-brand",onClick:xt,children:[lt?jsxRuntimeExports.jsx("div",{className:"pds2-bg-surface-base pds2-flex pds2-text-center pds2-p-10 pds2-w-54 pds2-h-54 md:pds2-h-60 md:pds2-w-60 pds2-rounded-16 pds2-text-primary-brand",children:jsxRuntimeExports.jsx(Pds2Spinner,{size:30})}):jsxRuntimeExports.jsx("img",{src:Chatbot,className:"pds2-w-54 pds2-h-54 md:pds2-h-60 md:pds2-w-60"}),jsxRuntimeExports.jsxs("div",{children:["Health ",jsxRuntimeExports.jsx("br",{}),"Chatbot"]})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-dsplay-flex pds2-flex-col pds2-justify-items-center pds2-space-y-8 pds2-cursor-pointer hover:pds2-text-primary-brand",onClick:wt,children:[ft?jsxRuntimeExports.jsx("div",{className:"pds2-bg-surface-base pds2-flex pds2-text-center pds2-p-10 pds2-w-54 pds2-h-54 md:pds2-h-60 md:pds2-w-60 pds2-rounded-16 pds2-text-primary-brand",children:jsxRuntimeExports.jsx(Pds2Spinner,{size:30})}):jsxRuntimeExports.jsx("img",{src:SAIcon,className:"pds2-w-54 pds2-h-54 md:pds2-h-60 md:pds2-w-60"}),jsxRuntimeExports.jsxs("div",{children:["Self ",jsxRuntimeExports.jsx("br",{})," Assessment"]})]})]}),jsxRuntimeExports.jsxs("div",{className:"Body2Regular pds2-dsplay-flex pds2-flex-col pds2-justify-items-center pds2-space-y-8 hover:pds2-text-primary-brand pds2-cursor-pointer",onClick:bt,children:[pt?jsxRuntimeExports.jsx("div",{className:"pds2-bg-surface-base pds2-flex pds2-text-center pds2-p-10 pds2-w-54 pds2-h-54 pds2-rounded-16 md:pds2-h-60 md:pds2-w-60 pds2-text-semantic-success",children:jsxRuntimeExports.jsx(Pds2Spinner,{size:30})}):jsxRuntimeExports.jsx("div",{className:" pds2-bg-surface-base pds2-p-15 pds2-w-54 pds2-h-54 md:pds2-h-60 md:pds2-w-60 pds2-rounded-16",children:jsxRuntimeExports.jsx(t,{className:" pds2-text-semantic-success"})}),jsxRuntimeExports.jsx("div",{children:"Start Again"})]}),jsxRuntimeExports.jsx("div",{})]}),_===ABHA_INIT_FLOW.SCAN_AND_SHARE&&jsxRuntimeExports.jsx(Pds2Button,{size:"small",isLoading:tt===LOADING_STATE.LOADING,textColor:"pds2-text-primary-brand",title:"Download ABHA card on Eka App",buttonColor:"pds2-bg-surface-base",className:"pds2-w-full pds2-border-surface-muted pds2-border",onClick:()=>yt()})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:At})]})},AppointmentTokenLoaderScreen=()=>{const a=useAuthAbhaStore(st=>st.setScreen),o=useAuthAbhaStore(st=>st.goBackScreen),_=useAuthAbhaStore(st=>st.setBottomsheetErrorInfo),b=useAuthAbhaStore(st=>st.clientId),$=useAuthAbhaStore(st=>st.appointmentRequestId),_e=useAuthAbhaStore(st=>st.setAppointmentTokenDetails),et=useAuthAbhaStore(st=>st.initAbhaFlow),tt=useTrackAbhaEvent();reactExports.useEffect(()=>{tt({name:"abha_generating_token_loader_screen",data:{page_view:"abha_generating_token_loader_screen",platform:b,flow:et}})},[]),reactExports.useEffect(()=>{let st=0;const it=10;let lt;const at=async()=>{st++;try{const ft=await getAppointmentToken({request_id:$||""});if(console.log("Poll attempt:",st,"Response:",ft),(ft==null?void 0:ft.status)==="success"){clearInterval(lt),_e(ft),a(SCREEN_NAMES.APPOINTMENT_TOKEN_GENERATED_SCREEN);return}else if(ft!=null&&ft.error){clearInterval(lt),_({title:"Failed to generate token",img:"",description:"Please try again.",cta:{title:"",pid:"",params:null}});return}if(st>=it){clearInterval(lt),_({title:"Please try again.",img:"",description:"Something went wrong.",cta:{title:"",pid:"",params:null}});return}}catch(ft){console.error("Error in token generate poll:",ft)}};return at(),lt=setInterval(at,3e3),()=>clearInterval(lt)},[$]);const rt=()=>{tt({name:"abha_generating_token_loader_screen_bottomsheet_dismissed",data:{platform:b,flow:et}}),_(null),o()};return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-base",children:[jsxRuntimeExports.jsx(AbhaLoadingStatus,{loaderText:"Generating token..."}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:rt})]})},ScreenStack=()=>{const a=useAuthAbhaStore(_=>_.screen);switch(a[a.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.VERIFY_KYC_OTP_LOGIN_WITH_ABHA:return jsxRuntimeExports.jsx(AbhaKycOtpVerifyScreen,{});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,{});case SCREEN_NAMES.CONSENT_SCREEN:return jsxRuntimeExports.jsx(ConsentDetailsScreen,{});case SCREEN_NAMES.CONSENT_DENY:return jsxRuntimeExports.jsx(AbhaConsentDenyScreen,{});case SCREEN_NAMES.CONSENT_REVOKE:return jsxRuntimeExports.jsx(AbhaConsentRevokeScreen,{});case SCREEN_NAMES.CONSENT_APPROVE:return jsxRuntimeExports.jsx(AbhaConsentApproveScreen,{});case SCREEN_NAMES.SELF_ASSESSMENT:return jsxRuntimeExports.jsx(SelfAssessmentScreen,{});case SCREEN_NAMES.SA_LISTING_SCREEN:return jsxRuntimeExports.jsx(SaListingScreen,{});case SCREEN_NAMES.CONSENT_LOADER_SCREEN:return jsxRuntimeExports.jsx(ConsentLoaderScreen,{});case SCREEN_NAMES.KYC_LOGIN_SCREEN:return jsxRuntimeExports.jsx(KYCLoginScreen,{});case SCREEN_NAMES.KYC_ALREADY_VERIFIED:return jsxRuntimeExports.jsx(AbhaKycAlreadyVerifiedScreen,{});case SCREEN_NAMES.ABHA_AUTH_QR_SCREEN:return jsxRuntimeExports.jsx(AbhaAuthQRScreen,{});case SCREEN_NAMES.AADHAAR_FACEAUTH_VERIFICATION_STATUS:return jsxRuntimeExports.jsx(AbhaAadhaarVerificationFaceAuthStatusScreen,{});case SCREEN_NAMES.ABHA_MOBILE_AND_OTP_SCREEN:return jsxRuntimeExports.jsx(AbhaMobileandOtpScreen,{});case SCREEN_NAMES.ABHA_HEALTHID_CARD_SCREEN:return jsxRuntimeExports.jsx(AbhaCardScreen,{});case SCREEN_NAMES.SESSION_STATUS_LOADER_SCREEN:return jsxRuntimeExports.jsx(AbhaSessionStatusLoaderScreen,{});case SCREEN_NAMES.EARN_WITH_ABHA_SCREEN:return jsxRuntimeExports.jsx(EarnWithABHAScreen,{});case SCREEN_NAMES.BOOK_APPOINTMENT_SCREEN:return jsxRuntimeExports.jsx(BookAppointmentScreen,{});case SCREEN_NAMES.APPOINTMENT_TOKEN_GENERATED_SCREEN:return jsxRuntimeExports.jsx(AppointmentTokenScreen,{});case SCREEN_NAMES.APPOINTMENT_TOKEN_LOADER_SCREEN:return jsxRuntimeExports.jsx(AppointmentTokenLoaderScreen,{});default:return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}},queryClient=new QueryClient,SCALE=1.5;function App(){const a=useAuthAbhaStore.getState().initAbhaFlow,o=useAuthAbhaStore(et=>et.screen);o[o.length-1];const[_,b]=reactExports.useState(()=>!!a&&a!="default"&&GET_CLIENT_ID()==="www-eka"&&(window.innerWidth>=1500||window.innerHeight>=1e3));reactExports.useEffect(()=>{const et=()=>b(!!a&&(window.innerWidth>=1500||window.innerHeight>=1e3));return window.addEventListener("resize",et),()=>{window.removeEventListener("resize",et),unMount()}},[]);const $=!!a&&a!="default"&&GET_CLIENT_ID()==="www-eka",_e=jsxRuntimeExports.jsx("div",{className:"pds2-h-full pds2-w-full pds2-bg-surface-base",style:{borderRadius:GET_CLIENT_ID()==="www-eka"&&!a?"1.5rem":void 0,position:"relative",height:_?`calc(100dvh / ${SCALE})`:GET_CLIENT_ID()==="www-eka"?a===ABHA_INIT_FLOW.CONSENT||a===ABHA_INIT_FLOW.ABHA_KYC||a===ABHA_INIT_FLOW.ABHA_REGISTRATION||a===ABHA_INIT_FLOW.SCAN_AND_SHARE||a===ABHA_INIT_FLOW.SCAN_AND_SHARE_KIOSK?"100dvh":"75vh":GET_CLIENT_ID()==="doc-web"||GET_CLIENT_ID()==="ext"?"100%":"100dvh",width:_?`calc(100vw / ${SCALE})`:"100%",overflowY:"auto",borderTop:GET_CLIENT_ID()==="androiddoc"||GET_CLIENT_ID()==="doctor-app-ios"||GET_CLIENT_ID()==="doctor-ipad-ios"?"1rem solid #f2f4f7":"0rem",..._&&{transform:`scale(${SCALE})`,transformOrigin:"top left"}},children:jsxRuntimeExports.jsx(ScreenStack,{})});return jsxRuntimeExports.jsx(QueryClientProvider,{client:queryClient,children:$?jsxRuntimeExports.jsx("div",{style:{width:"100vw",height:"100dvh",overflow:"hidden",position:"fixed",top:0,left:0},children:_e}):_e})}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 o=0;const _=a.split("").reverse().map(b=>parseInt(b,10));for(let b=0;b<_.length;b++)o=d[o][p[b%8][_[b]]];return o===0}function isValidAadhaar(a){return/^\d{12}$/.test(a)?verhoeffValidate(a):!1}const abhaRegex=/^[0-9]{14}$/;function luhnCheck(a){let o=0,_=!1;for(let b=a.length-1;b>=0;b--){let $=parseInt(a[b],10);_&&($*=2,$>9&&($-=9)),o+=$,_=!_}return o%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),THEME_TOKEN_MAP={surface:{base:[{className:"pds2-bg-surface-base",cssProp:"background-color"},{className:"pds2-text-content-enabled",cssProp:"color"}],subtle:[{className:"pds2-bg-surface-subtle",cssProp:"background-color"},{className:"pds2-border-surface-subtle",cssProp:"border-color"}],muted:[{className:"pds2-bg-surface-muted",cssProp:"background-color"},{className:"pds2-border-surface-muted",cssProp:"border-color"},{className:"pds2-text-surface-muted",cssProp:"color"}],strong:[{className:"pds2-bg-surface-strong",cssProp:"background-color"},{className:"pds2-border-surface-strong",cssProp:"border-color"}],success:[{className:"pds2-bg-surface-success",cssProp:"background-color"}],danger:[{className:"pds2-bg-surface-danger",cssProp:"background-color"}],neutral:[{className:"pds2-bg-surface-neutral",cssProp:"background-color"},{className:"pds2-border-surface-neutral",cssProp:"border-color"},{className:"pds2-shadow-surface-neutral",cssProp:"box-shadow"}],abhaCard:[{className:"pds2-bg-surface-abhaCard",cssProp:"background-color"}]},content:{primary:[{className:"pds2-text-content-primary",cssProp:"color"},{className:"pds2-bg-content-primary",cssProp:"background-color"}],secondary:[{className:"pds2-text-content-secondary",cssProp:"color"},{className:"pds2-shadow-content-secondary",cssProp:"box-shadow"}],muted:[{className:"pds2-text-content-muted",cssProp:"color"}],success:[{className:"pds2-text-content-success",cssProp:"color"}],enabled:[{className:"pds2-text-content-enabled",cssProp:"color"}]},semantic:{success:[{className:"pds2-bg-semantic-success",cssProp:"background-color"},{className:"pds2-text-semantic-success",cssProp:"color"}],warning:[{className:"pds2-bg-semantic-warning",cssProp:"background-color"},{className:"pds2-text-semantic-warning",cssProp:"color"}],error:[{className:"pds2-text-semantic-error",cssProp:"color"},{className:"pds2-border-semantic-error",cssProp:"border-color"}]},primary:{brand:[{className:"pds2-bg-primary-brand",cssProp:"background-color"},{className:"pds2-text-primary-brand",cssProp:"color"},{className:"pds2-ring-primary-brand",cssProp:"ring-color"},{className:"pds2-accent-primary-brand",cssProp:"accent-color"},{className:"pds2-border-primary-brand",cssProp:"border-color"}]}};function generateThemeCSS(a,o){var b,$;let _="";return Object.entries(a??{}).forEach(([_e,et])=>{et&&Object.entries(et).forEach(([tt,rt])=>{var it;if(!rt)return;const st=(it=THEME_TOKEN_MAP[_e])==null?void 0:it[tt];st&&st.forEach(({className:lt,cssProp:at})=>{_+=`
114
+ `;tt.open(),tt.write(rt),tt.close();const st=lt=>{var at,ft,ht,pt,vt;lt.source===et.contentWindow&&(((at=lt.data)==null?void 0:at.type)==="sa-init"&&console.log("[SA INIT]",lt.data.data),((ft=lt.data)==null?void 0:ft.type)==="sa-submit"&&console.log("[SA SUBMIT]",lt.data.data),((ht=lt.data)==null?void 0:ht.type)==="sa-end"&&(console.log("[SA END]"),(pt=o.onEndCallback)==null||pt.call(o)),((vt=lt.data)==null?void 0:vt.type)==="sdk-error"&&console.error("SA SDK error:",lt.data.message))};return window.addEventListener("message",st),()=>{window.removeEventListener("message",st),et.remove(),$.current=null}},[a,o,_]),jsxRuntimeExports.jsx("div",{ref:b,style:{height:"100dvh"}})}function calculateAge$1(a){const o=new Date(a),_=new Date;let b=_.getFullYear()-o.getFullYear();return(_.getMonth()<o.getMonth()||_.getMonth()===o.getMonth()&&_.getDate()<o.getDate())&&b--,b}const SelfAssessmentScreen=()=>{const a=useAuthAbhaStore(rt=>rt.setScreen),o=useAuthAbhaStore(rt=>rt.ekaProfileInfo),_=GET_EXTRA_HEADERS(),b=GET_REFRESH_TOKEN(),$=GET_SA_HOST(),_e=GET_SA_WORKFLOW(),et=reactExports.useCallback(()=>{console.log("SA ended → closing SDK and redirecting"),window.closeSaApp?window.closeSaApp():console.warn("closeSaApp not found on window"),a(SCREEN_NAMES.CONSENT_LOADER_SCREEN)},[]),tt={useAuthToken:!0,workflow_id:_e,auth_token:(_==null?void 0:_.auth)??"",refresh_token:b,params:{age:calculateAge$1((o==null?void 0:o.date_of_birth)||""),gender:o==null?void 0:o.gender},practice_info:{patient_uuid:o==null?void 0:o.patient_uuid,unique_identifier:o==null?void 0:o.oid},onEndCallback:et};return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-base",children:[jsxRuntimeExports.jsx(Pds2Header,{title:"",className:"",prefixIcon:"",showHeaderStrip:!1}),jsxRuntimeExports.jsx(SelfAssessmentSDKIframe,{src:`${$}/sa-fe/v2/main.js`,mountConfig:tt})]})},SA_LISTING_URL="https://login.eka.care/sa-listing/index.html",SaListingScreen=()=>{const a=useAuthAbhaStore(it=>it.goBackScreen),o=useAuthAbhaStore(it=>it.setScreen),_=useAuthAbhaStore(it=>it.initAbhaFlow),b=useAuthAbhaStore(it=>it.clientId),$=useAuthAbhaStore(it=>it.ekaProfileInfo),_e=GET_EXTRA_HEADERS(),et=reactExports.useRef(null),tt=useTrackAbhaEvent(),rt=reactExports.useCallback(()=>{o(SCREEN_NAMES.APPOINTMENT_TOKEN_GENERATED_SCREEN)},[o]);reactExports.useEffect(()=>{const it=lt=>{var at,ft,ht,pt,vt,ut;lt.source===((at=et.current)==null?void 0:at.contentWindow)&&(((ft=lt.data)==null?void 0:ft.type)==="sa-listing-ready"&&((vt=(ht=et.current)==null?void 0:ht.contentWindow)==null||vt.postMessage({type:"sa-listing-init",authToken:(_e==null?void 0:_e.auth)||((pt=document.cookie.split("; ").find(ot=>ot.startsWith("sess=")))==null?void 0:pt.split("=")[1])||"",age:calculateAge$1(($==null?void 0:$.date_of_birth)??""),gender:($==null?void 0:$.gender)??"",patient_uuid:($==null?void 0:$.patient_uuid)??"",oid:($==null?void 0:$.oid)??""},"*")),((ut=lt.data)==null?void 0:ut.type)==="sa-listing-close"&&rt())};return window.addEventListener("message",it),()=>window.removeEventListener("message",it)},[$,_e,rt]);const st=()=>{tt({name:"sa_listing_back_clicked",data:{flow:_,type:"app",platform:b}}),a()};return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-base",children:[jsxRuntimeExports.jsx(Pds2Header,{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$3,{})}),title:"Self Assessment",className:"",showHeaderStrip:!0}),jsxRuntimeExports.jsx("iframe",{ref:et,src:SA_LISTING_URL,style:{flex:1,border:"none",width:"100%"},title:"Self Assessment Listing"})]})},ConsentLoaderScreen=()=>{const a=useAuthAbhaStore(lt=>lt.setConsentApiBody),o=useAuthAbhaStore(lt=>lt.setScreen),_=useAuthAbhaStore(lt=>lt.goBackLoginScreen),b=useAuthAbhaStore(lt=>lt.setBottomsheetErrorInfo),$=useAuthAbhaStore(lt=>lt.initAbhaFlow),_e=useAuthAbhaStore(lt=>lt.clientId),et=useAuthAbhaStore(lt=>lt.abhaRequestConsentId),tt=useAuthAbhaStore(lt=>lt.setConsentDetails),rt=useAuthAbhaStore(lt=>lt.screen),st=useTrackAbhaEvent();reactExports.useEffect(()=>{const lt=rt[rt.length-2];st({name:"abha_consent_request_page",data:{page_view:"abha_consent_request_page",platform:_e,flow:$}}),st({name:"fetch_consent_details_api",data:{type:"get_init",platform:_e,flow:$}});const at=async(pt,vt)=>{var ut,ot,nt;try{if(!et)return st({name:"abha_consent_request_page",data:{page_view:"abha_consent_request_page",platform:_e,flow:$,data:{error_msg:"No consent ID found"}}}),console.error("No consent ID found"),{response:null,hasEkaCareHIP:!1,error:null};let dt=await getConsentRequest({id:et,type:"requested"});(dt==null?void 0:dt.status)==="GRANTED"&&(dt=await getConsentRequest({id:et,type:"granted"})),tt(dt),a({id:dt.id,access_mode:dt.access_mode.toLowerCase(),duration:{from:((ut=dt.duration)==null?void 0:ut.from)??void 0,to:((ot=dt.duration)==null?void 0:ot.to)??void 0},erase_at:dt.erase_at,hi_types:dt.hi_types.map(_t=>_t.id),consent_artefacts:dt.providers.map(_t=>{var At;return{hip_id:((At=_t.hip)==null?void 0:At.id)??"",care_contexts:_t.care_contexts??[]}}),consent_artefacts_id:dt.providers.map(_t=>_t.consent_artefact_id??"")});const yt=(nt=dt.providers)==null?void 0:nt.some(_t=>_t.hip.id==="ekacare");return{response:dt,hasEkaCareHIP:yt,error:null}}catch(dt){const{code:yt,error:_t,source_error:At}=dt;return st({name:pt==="init"?"abha_consent_get_failed":"abha_consent_polling_failed",data:{flow_step_type:pt,clientId:_e,attempt:vt,error_code:yt,error_msg:_t,source_error:At,flow:$}}),{response:null,hasEkaCareHIP:!1,error:dt}}},ft=async()=>{st({name:"abha_consent_get_triggered",data:{flow_step_type:"init",clientId:_e,flow:$}});const{hasEkaCareHIP:pt,response:vt}=await at("init");!pt&&(vt==null?void 0:vt.status)==="REQUESTED"?(st({name:"abha_consent_no_ekacare_hip",data:{platform:_e,flow:$}}),o(SCREEN_NAMES.SELF_ASSESSMENT)):(st({name:"abha_consent_has_ekacare_hip",data:{platform:_e,flow:$}}),o(SCREEN_NAMES.CONSENT_SCREEN)),st({name:"abha_consent_get_success",data:{flow_step_type:"init",clientId:_e,flow:$}})},ht=()=>{let pt=0;const vt=5;st({name:"abha_consent_polling_started",data:{platform:_e,flow:$}});const ut=async()=>{pt++,st({name:"abha_consent_polling_attempt",data:{attempt:pt,platform:_e,flow:$}});const{hasEkaCareHIP:nt,response:dt}=await at("polling",pt);if(nt){clearInterval(ot),st({name:"abha_consent_polling_success",data:{attempt:pt,platform:_e,flow:$}}),o(SCREEN_NAMES.CONSENT_SCREEN);return}pt>=vt&&(clearInterval(ot),st({name:"abha_consent_polling_timeout",data:{attempts:pt,platform:_e,flow:$}}),o(SCREEN_NAMES.CONSENT_SCREEN))};ut();const ot=setInterval(ut,1e3);return()=>clearInterval(ot)};lt===SCREEN_NAMES.SELF_ASSESSMENT?ht():ft()},[]);const it=()=>{st({name:"abha_consent_request_error_bottomsheet_dismissed",data:{platform:_e,flow:$}}),b(null),_(),setIndividualEnv({extraHeaders:{auth:""}})};return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-base",children:[jsxRuntimeExports.jsx(AbhaLoadingStatus,{}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:it})]})},KYCLoginScreen=()=>{const a=useAuthAbhaStore(b=>b.clientId);reactExports.useEffect(()=>{var b;if((b=window.EkaAbha)!=null&&b.changeStatusBarColor)return window.EkaAbha.changeStatusBarColor("#F2F4F7"),()=>{var $,_e;($=window.EkaAbha)!=null&&$.changeStatusBarColor&&((_e=window==null?void 0:window.EkaAbha)==null||_e.changeStatusBarColor("#FFFFFF"))}},[]);const o=()=>{var b;(b=window.EkaAbha)==null||b.onAbhaClose(),unMount()},_=["eka-web","www-eka","doctor"];return jsxRuntimeExports.jsxs("div",{className:"pds2-h-full pds2-overflow-y-auto",children:[jsxRuntimeExports.jsx(Pds2Header,{prefixIcon:jsxRuntimeExports.jsx("button",{onClick:o,children:jsxRuntimeExports.jsx(n$3,{})}),title:"",className:"pds2-bg-surface-subtle",showHeaderStrip:!_.includes(a)}),jsxRuntimeExports.jsx(KYCDiffMethods,{})]})},KYCDiffMethods=()=>{const a=useAuthAbhaStore(bt=>bt.abhaAuthFlowMethod||ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),o=useAuthAbhaStore(bt=>bt.authTxnId),_=useAuthAbhaStore(bt=>bt.setAbhaAuthFlowMethod),b=useAuthAbhaStore(bt=>bt.goBackToLogin),$=useAuthAbhaStore(bt=>bt.setGoBackToLogin),_e=useAuthAbhaStore(bt=>bt.setIdentifierValue),et=useAuthAbhaStore(bt=>bt.identifierValue),tt=useAuthAbhaStore(bt=>bt.initAbhaFlow),rt=useAuthAbhaStore(bt=>bt.setRegistrationType),st=useAuthAbhaStore(bt=>bt.setAadhaarInitResponse),it=useAuthAbhaStore(bt=>bt.initAbhaAppIdentifierType),lt=useAuthAbhaStore(bt=>bt.initAbhaAppIdentifier);useAuthAbhaStore(bt=>bt.isDocAppRequest),useAuthAbhaStore(bt=>bt.clientId);const at=useAuthAbhaStore(bt=>bt.isInitApiTriggered),ft=useAuthAbhaStore(bt=>bt.setIsInitApiTriggered),ht=useAuthAbhaStore(bt=>bt.setIdentityValue),pt=useAuthAbhaStore(bt=>bt.setSelectedAbhaFlow),vt=useAuthAbhaStore(bt=>bt.setKycInitResponse),ut=useAuthAbhaStore(bt=>bt.orgIconUrl),[ot,nt]=reactExports.useState(LOADING_STATE.IDLE),[dt,yt]=reactExports.useState(""),_t=useAuthAbhaStore(bt=>bt.setScreen),[At,xt]=reactExports.useState(!1),[wt,Tt]=reactExports.useState(!1),[It,Nt]=reactExports.useState(et.aadhaar_number||""),[Ct,jt]=reactExports.useState(et.abha_number||""),Et=reactExports.useRef(!1),gt=GET_EXTRA_HEADERS();gt==null||gt["X-User-ID"],reactExports.useEffect(()=>{St({name:"abha_kyc_login_screen",data:{flow:tt}}),handleReadOTP()},[]),reactExports.useEffect(()=>{_e({aadhaar_number:It})},[It]),reactExports.useEffect(()=>{_e({abha_number:Ct})},[Ct]),reactExports.useEffect(()=>{lt&&it===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&!b?(_e({abha_number:lt}),jt(lt),Tt(!0),_(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER)):lt&&it===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!b&&(Nt(lt),xt(!0),_e({aadhaar_number:lt}),_(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER))},[it,lt]),reactExports.useEffect(()=>{at||Et.current||It&&It.length===12&&a==ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&(ft(!0),Et.current=!0,kt())},[It]),reactExports.useEffect(()=>{at||Et.current||Ct&&Ct.length===17&&a==ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&(ft(!0),Et.current=!0,kt())},[Ct]);const St=useTrackAbhaEvent(),ct=React.useMemo(()=>{switch(a){case ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER:return et.abha_number.length===17;case ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER:return et.aadhaar_number.length===12}},[a,et]),mt=({inputVal:bt})=>{bt.length===12&&(_e({aadhaar_number:bt}),Nt(bt),xt(!0))},Rt=({inputVal:bt})=>{if(bt.length===14){let Ht="";bt.length>0&&(Ht+=bt.slice(0,2)),bt.length>2&&(Ht+=`-${bt.slice(2,6)}`),bt.length>6&&(Ht+=`-${bt.slice(6,10)}`),bt.length>10&&(Ht+=`-${bt.slice(10,14)}`),_e({abha_number:Ht}),jt(Ht),Tt(!0)}};reactExports.useEffect(()=>{console.log("selectedMethod changed:==================>",a)},[a]);const kt=async bt=>{var Ht;if(nt(LOADING_STATE.LOADING),a===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER){const{txn_id:Pt,error:Lt,action:Bt,hint:$t}=await postAbdmKycInit({method:"abha-number",identifier:et.abha_number});if(St({name:"abha_kyc_init_triggered",data:{flow:tt,flow_step_type:"init",ndhmTxnId:Pt,method:a}}),ft(!0),ht(et.abha_number),Pt){vt({txnId:Pt,kycOtpSentToHint:$t||null}),nt(LOADING_STATE.RESOLVED),_t(SCREEN_NAMES.VERIFY_KYC_OTP_LOGIN_WITH_ABHA);return}St({name:"abha_kyc_init_failure",data:{flow:tt,error_message:Lt||"unknown_error",error_message_exists:!!Lt,authTxnId:o,error_action:Bt,error_action_exists:!!Bt}}),yt(Lt||"Something went wrong"),nt(LOADING_STATE.REJECTED)}else{St({name:"aadhaar_registration_init_start",data:{flow:tt,flow_step_type:"init",authTxnId:o,aadhaarNumber:et.aadhaar_number}});const{txn_id:Pt,hint:Lt,error:Bt,action:$t}=await postRegisterAadhaarInit({aadhaar_number:et.aadhaar_number});if(ht(et.aadhaar_number),pt("aadhaar"),Pt&&Lt){st({authTxnId:o,txnId:Pt,aadhaarOtpSentToHint:Lt}),St({name:"aadhaar_registration_init_success",data:{flow:tt,flow_step_type:"verify",ndhmTxnId:Pt,authTxnId:o}}),$(!1),rt(REGISTRATION_TYPE.CREATE),nt(LOADING_STATE.RESOLVED),_t(SCREEN_NAMES.ABHA_OTP_AND_MOBILE);return}if(St({name:"abha_registration_init_failure",data:{flow:tt,error_message:Bt||"unknown_error",error_message_exists:!!Bt,authTxnId:o,error_action:$t,error_action_exists:!!$t}}),yt(Bt||"Something went wrong"),nt(LOADING_STATE.REJECTED),$t||Bt){$(!0),(Ht=$t==null?void 0:$t.cta)!=null&&Ht.pid?_t(SCREEN_NAMES.LOGIN_OR_CREATE_ABHA):yt(Bt||"Something went wrong");return}}},Dt=bt=>{const Ht=bt.replace(/-/g,""),Pt=Ht.slice(0,2),Bt=Ht.slice(2).match(/.{1,4}/g)||[];return[Pt,...Bt]};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:"pds2-p-16 pds2-bg-surface-subtle pds2-space-y-16 pds2-text-center pds2-rounded-b-24 pds2-pt-22",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-center pds2-items-center pds2-gap-16",children:jsxRuntimeExports.jsxs("div",{className:`pds2-rounded-16 ${ut?"pds2-flex pds2-gap-10":""}`,children:[jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm4ml1lwu00000tfs1okl7hs9.webp",alt:"abdm-icon",className:"pds2-w-64 pds2-h-64 pds2-bg-surface-base pds2-rounded-16"}),ut&&jsxRuntimeExports.jsx("img",{src:ut,alt:"org-icon",className:"pds2-w-64 pds2-h-64 pds2-rounded-16"})]})}),jsxRuntimeExports.jsx("div",{className:"Heading3Semibold pds2-text-content-primary",children:"Complete KYC"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-content-secondary",style:{marginTop:"4px"},children:a===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER?"using existing ABHA Number":a===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?"using your Aadhaar Number":""}),jsxRuntimeExports.jsx("div",{className:"pds2-w-full",children:jsxRuntimeExports.jsxs("div",{className:"pds2-relative pds2-flex pds2-bg-surface-muted pds2-rounded-12",children:[jsxRuntimeExports.jsx("div",{className:"pds2-absolute pds2-top-0 pds2-bottom-0 pds2-bg-surface-base pds2-rounded-12 pds2-transition-all pds2-duration-300",style:{left:a===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?0:"50%",width:"50%",boxShadow:"0px 10px 4px -6px #18274B17"}}),jsxRuntimeExports.jsxs("button",{onClick:()=>{_(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),yt("")},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"})]}),jsxRuntimeExports.jsxs("button",{onClick:()=>{_(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER),yt("")},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/cm6hreldp000b0tfwf0nj156l.webp",alt:"abha-abdm-icon",className:"pds2-w-26 pds2-h-26"}),jsxRuntimeExports.jsx("span",{className:`pds2-text-base ${a===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER?"pds2-font-bold pds2-text-fg-default":"pds2-font-normal pds2-text-fg-subtle"}`,style:a===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER?{fontWeight:700}:{fontWeight:400},children:"ABHA number"})]})]})}),jsxRuntimeExports.jsx("div",{className:"pds2-mt-16 pds2-w-full pds2-max-w-md pds2-mx-auto pds2-px-4 pds2-relative pds2-pb-20 pds2-pt-10",children:a===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER?jsxRuntimeExports.jsx(AbhaInputComponent,{isOtpInput:!1,isAbhaNum:!1,initialValues:it===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!b?(lt==null?void 0:lt.match(/.{1,4}/g))??void 0:(It==null?void 0:It.match(/.{1,4}/g))??void 0,disabled:!b&&it===ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER&&!!lt,numberOfInputs:3,length:4,placeholder:"XXXX",onSubmit:mt,setIsValid:xt,setValue:Nt,setError:yt},"aadhaar-input"):jsxRuntimeExports.jsx(AbhaInputComponent,{isOtpInput:!1,isAbhaNum:!0,initialValues:it===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&!b?(lt==null?void 0:lt.match(/.{1,4}/g))??void 0:Dt(Ct)??void 0,disabled:!b&&it===ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER&&!!lt,numberOfInputs:4,length:4,placeholder:"XXXX",onSubmit:Rt,setIsValid:Tt,setValue:jt,setError:yt},"abha-number-input")}),dt&&jsxRuntimeExports.jsx("div",{className:`${dt.includes("KYC ABHA not found for")?"pds2-text-content-primary":"pds2-text-semantic-error"} !pds2-mt-0 Body3Regular`,children:dt}),jsxRuntimeExports.jsx(Pds2Button,{title:"Next",IconComponent:()=>jsxRuntimeExports.jsx(c$3,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),state:!ct||ot===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:ot===LOADING_STATE.LOADING,onClick:()=>kt(),className:"pds2-w-full "})]})})},AbhaKycOtpVerifyScreen=()=>{const a=useAuthAbhaStore(Ct=>Ct.txnId),o=useAuthAbhaStore(Ct=>Ct.clearAbhaAuthStore),_=useAuthAbhaStore(Ct=>Ct.kycOtpSentToHint),b=useAuthAbhaStore(Ct=>Ct.setOTPFromAutoRead),$=useAuthAbhaStore(Ct=>Ct.loginIdentifierValue),_e=useAuthAbhaStore(Ct=>Ct.abhaAuthFlowMethod),et=useAuthAbhaStore(Ct=>Ct.goBackLoginScreen),tt=useAuthAbhaStore(Ct=>Ct.goBackScreen),rt=useAuthAbhaStore(Ct=>Ct.setTxnId),st=useAuthAbhaStore(Ct=>Ct.setBottomsheetErrorInfo);reactExports.useState(!1);const[it,lt]=reactExports.useState(""),[at,ft]=reactExports.useState(!1),[ht,pt]=reactExports.useState(""),[vt,ut]=reactExports.useState(LOADING_STATE.IDLE);useAuthAbhaStore(Ct=>Ct.isEkaAppLogin);const ot=useAuthAbhaStore(Ct=>Ct.clientId),nt=useAuthAbhaStore(Ct=>Ct.initAbhaFlow),dt=useAuthAbhaStore(Ct=>Ct.successRedirect),[yt,_t]=reactExports.useState(!1),At=GET_CLIENT_ID(),xt=useTrackAbhaEvent();reactExports.useEffect(()=>{xt({name:"page_view",data:{flow:nt,page_view:"abha_kyc_otp_verify",platform:ot}})},[]);const wt=()=>{xt({name:"abha_kyc_otp_verify_error_bottomsheet_dismissed",data:{platform:ot,flow:nt}}),et();const Ct=ot,jt=useAuthAbhaStore.getState().isEkaAppLogin;o(),useAuthAbhaStore.setState({clientId:Ct}),useAuthAbhaStore.setState({isEkaAppLogin:jt})},Tt=({otp:Ct})=>{lt(Ct),xt({name:"abha_kyc_otp_completion",data:{type:"verify",platform:ot,txn_id:a,otp_entered:!0,method:_e,flow:nt}}),It(Ct)},It=async Ct=>{if(b(""),!a){xt({name:"abha_kyc_otp_verify_txnId_not_found",data:{type:"verify",platform:ot,txn_id:a||"missing_txn_id",txn_id_exists:!!a,method:(_e==null?void 0:_e.toLowerCase())||"unknown_method",flow:nt}});return}xt({name:"abha_kyc_otp_verify",data:{type:"verify",platform:ot,txn_id:a,flow:nt}}),ut(LOADING_STATE.LOADING);const{txn_id:jt,error:Et,action:gt}=await postAbdmKycVerify({otp:Ct,txn_id:a});if(gt){xt({name:"abha_kyc_otp_verify_error_action",data:{type:"verify",platform:ot,error_action:gt||"no_error_action",error_message:Et||"no_error_message",error_action_exists:!!gt,error_message_exists:!!Et,flow:nt}}),st(gt);return}if(Et){xt({name:"abha_kyc_otp_verify_error",data:{type:"verify",platform:ot,error_message:Et||"unknown_error",error_message_exists:!!Et,flow:nt}}),ut(LOADING_STATE.REJECTED),pt(Et);return}ut(LOADING_STATE.RESOLVED),jt&&(_t(!0),At==="ext"?(onKYCSuccess("KYC already verified, onKYCSuccess called, next page redirect"),dt&&setTimeout(()=>{window.location.href=dt},3e3)):ot==="phr"||ot==="doctor"?setTimeout(()=>{onKYCSuccess("KYC verify success, onKYCSuccess called,next abha unmount"),unMount()},3e3):(onKYCSuccess("KYC verify success, onKYCSuccess called, next page redirect"),setTimeout(()=>{window.location.href="https://www.eka.care/s/for-patients"},3e3)))},Nt=async()=>{if($&&_e){const{txn_id:Ct}=await postAbdmKycVerifyResendOtp({txn_id:a??""});xt({name:"abha_kyc_verify_resend_otp",data:{method:_e,platform:ot,txn_id:Ct,flow:nt}}),Ct&&rt(Ct)}};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:yt?jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:!yt,loadingText:"KYC verify in progress...",successText:"KYC Verified Successfully!"}):jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-base",children:[jsxRuntimeExports.jsx(Pds2Header,{prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:()=>tt(),children:jsxRuntimeExports.jsx(n$3,{className:""})}),title:"OTP Verification",className:"pds2-border-b-1 pds2-border-surface-muted"}),nt==null||nt===ABHA_INIT_FLOW.ABHA_REGISTRATION?jsxRuntimeExports.jsx(AbhaStepper,{}):jsxRuntimeExports.jsx("div",{className:"pds2-pt-40 pds2-bg-surface-subtle"}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-space-y-16 pds2-overflow-y-auto pds2-flex-1 pds2-bg-surface-subtle",children:jsxRuntimeExports.jsx(AbhaOtpCard,{otpSentToText:_||"Enter OTP sent on mobile number linked with your Aadhaar",onOtpCompletion:Tt,onResendOtpClick:Nt,error:ht,setIsValid:Ct=>{ht&&pt(null),ft(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-surface-base pds2-w-full pds2-border pds2-border-surface-muted",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Verify",state:!at||vt===LOADING_STATE.LOADING?"disabled":"enabled",className:"pds2-w-full",onClick:()=>It(it),isLoading:vt===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:wt})]})})};var lib={},propTypes$2={exports:{}},ReactPropTypesSecret$1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret$1,ReactPropTypesSecret=ReactPropTypesSecret_1;function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function a(b,$,_e,et,tt,rt){if(rt!==ReactPropTypesSecret){var st=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw st.name="Invariant Violation",st}}a.isRequired=a;function o(){return a}var _={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:o,element:a,elementType:a,instanceOf:o,node:a,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return _.PropTypes=_,_};propTypes$2.exports=factoryWithThrowingShims();var propTypesExports=propTypes$2.exports,ErrorCorrectLevel={L:1,M:0,Q:3,H:2},mode$1={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},mode=mode$1;function QR8bitByte(a){this.mode=mode.MODE_8BIT_BYTE,this.data=a}QR8bitByte.prototype={getLength:function(a){return this.data.length},write:function(a){for(var o=0;o<this.data.length;o++)a.put(this.data.charCodeAt(o),8)}};var _8BitByte=QR8bitByte,ECL=ErrorCorrectLevel;function QRRSBlock(a,o){this.totalCount=a,this.dataCount=o}QRRSBlock.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];QRRSBlock.getRSBlocks=function(a,o){var _=QRRSBlock.getRsBlockTable(a,o);if(_==null)throw new Error("bad rs block @ typeNumber:"+a+"/errorCorrectLevel:"+o);for(var b=_.length/3,$=new Array,_e=0;_e<b;_e++)for(var et=_[_e*3+0],tt=_[_e*3+1],rt=_[_e*3+2],st=0;st<et;st++)$.push(new QRRSBlock(tt,rt));return $};QRRSBlock.getRsBlockTable=function(a,o){switch(o){case ECL.L:return QRRSBlock.RS_BLOCK_TABLE[(a-1)*4+0];case ECL.M:return QRRSBlock.RS_BLOCK_TABLE[(a-1)*4+1];case ECL.Q:return QRRSBlock.RS_BLOCK_TABLE[(a-1)*4+2];case ECL.H:return QRRSBlock.RS_BLOCK_TABLE[(a-1)*4+3];default:return}};var RSBlock$1=QRRSBlock;function QRBitBuffer(){this.buffer=new Array,this.length=0}QRBitBuffer.prototype={get:function(a){var o=Math.floor(a/8);return(this.buffer[o]>>>7-a%8&1)==1},put:function(a,o){for(var _=0;_<o;_++)this.putBit((a>>>o-_-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(a){var o=Math.floor(this.length/8);this.buffer.length<=o&&this.buffer.push(0),a&&(this.buffer[o]|=128>>>this.length%8),this.length++}};var BitBuffer$1=QRBitBuffer,QRMath={glog:function(a){if(a<1)throw new Error("glog("+a+")");return QRMath.LOG_TABLE[a]},gexp:function(a){for(;a<0;)a+=255;for(;a>=256;)a-=255;return QRMath.EXP_TABLE[a]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(var i=0;i<8;i++)QRMath.EXP_TABLE[i]=1<<i;for(var i=8;i<256;i++)QRMath.EXP_TABLE[i]=QRMath.EXP_TABLE[i-4]^QRMath.EXP_TABLE[i-5]^QRMath.EXP_TABLE[i-6]^QRMath.EXP_TABLE[i-8];for(var i=0;i<255;i++)QRMath.LOG_TABLE[QRMath.EXP_TABLE[i]]=i;var math$2=QRMath,math$1=math$2;function QRPolynomial(a,o){if(a.length==null)throw new Error(a.length+"/"+o);for(var _=0;_<a.length&&a[_]==0;)_++;this.num=new Array(a.length-_+o);for(var b=0;b<a.length-_;b++)this.num[b]=a[b+_]}QRPolynomial.prototype={get:function(a){return this.num[a]},getLength:function(){return this.num.length},multiply:function(a){for(var o=new Array(this.getLength()+a.getLength()-1),_=0;_<this.getLength();_++)for(var b=0;b<a.getLength();b++)o[_+b]^=math$1.gexp(math$1.glog(this.get(_))+math$1.glog(a.get(b)));return new QRPolynomial(o,0)},mod:function(a){if(this.getLength()-a.getLength()<0)return this;for(var o=math$1.glog(this.get(0))-math$1.glog(a.get(0)),_=new Array(this.getLength()),b=0;b<this.getLength();b++)_[b]=this.get(b);for(var b=0;b<a.getLength();b++)_[b]^=math$1.gexp(math$1.glog(a.get(b))+o);return new QRPolynomial(_,0).mod(a)}};var Polynomial$2=QRPolynomial,Mode=mode$1,Polynomial$1=Polynomial$2,math=math$2,QRMaskPattern={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},QRUtil={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(a){for(var o=a<<10;QRUtil.getBCHDigit(o)-QRUtil.getBCHDigit(QRUtil.G15)>=0;)o^=QRUtil.G15<<QRUtil.getBCHDigit(o)-QRUtil.getBCHDigit(QRUtil.G15);return(a<<10|o)^QRUtil.G15_MASK},getBCHTypeNumber:function(a){for(var o=a<<12;QRUtil.getBCHDigit(o)-QRUtil.getBCHDigit(QRUtil.G18)>=0;)o^=QRUtil.G18<<QRUtil.getBCHDigit(o)-QRUtil.getBCHDigit(QRUtil.G18);return a<<12|o},getBCHDigit:function(a){for(var o=0;a!=0;)o++,a>>>=1;return o},getPatternPosition:function(a){return QRUtil.PATTERN_POSITION_TABLE[a-1]},getMask:function(a,o,_){switch(a){case QRMaskPattern.PATTERN000:return(o+_)%2==0;case QRMaskPattern.PATTERN001:return o%2==0;case QRMaskPattern.PATTERN010:return _%3==0;case QRMaskPattern.PATTERN011:return(o+_)%3==0;case QRMaskPattern.PATTERN100:return(Math.floor(o/2)+Math.floor(_/3))%2==0;case QRMaskPattern.PATTERN101:return o*_%2+o*_%3==0;case QRMaskPattern.PATTERN110:return(o*_%2+o*_%3)%2==0;case QRMaskPattern.PATTERN111:return(o*_%3+(o+_)%2)%2==0;default:throw new Error("bad maskPattern:"+a)}},getErrorCorrectPolynomial:function(a){for(var o=new Polynomial$1([1],0),_=0;_<a;_++)o=o.multiply(new Polynomial$1([1,math.gexp(_)],0));return o},getLengthInBits:function(a,o){if(1<=o&&o<10)switch(a){case Mode.MODE_NUMBER:return 10;case Mode.MODE_ALPHA_NUM:return 9;case Mode.MODE_8BIT_BYTE:return 8;case Mode.MODE_KANJI:return 8;default:throw new Error("mode:"+a)}else if(o<27)switch(a){case Mode.MODE_NUMBER:return 12;case Mode.MODE_ALPHA_NUM:return 11;case Mode.MODE_8BIT_BYTE:return 16;case Mode.MODE_KANJI:return 10;default:throw new Error("mode:"+a)}else if(o<41)switch(a){case Mode.MODE_NUMBER:return 14;case Mode.MODE_ALPHA_NUM:return 13;case Mode.MODE_8BIT_BYTE:return 16;case Mode.MODE_KANJI:return 12;default:throw new Error("mode:"+a)}else throw new Error("type:"+o)},getLostPoint:function(a){for(var o=a.getModuleCount(),_=0,b=0;b<o;b++)for(var $=0;$<o;$++){for(var _e=0,et=a.isDark(b,$),tt=-1;tt<=1;tt++)if(!(b+tt<0||o<=b+tt))for(var rt=-1;rt<=1;rt++)$+rt<0||o<=$+rt||tt==0&&rt==0||et==a.isDark(b+tt,$+rt)&&_e++;_e>5&&(_+=3+_e-5)}for(var b=0;b<o-1;b++)for(var $=0;$<o-1;$++){var st=0;a.isDark(b,$)&&st++,a.isDark(b+1,$)&&st++,a.isDark(b,$+1)&&st++,a.isDark(b+1,$+1)&&st++,(st==0||st==4)&&(_+=3)}for(var b=0;b<o;b++)for(var $=0;$<o-6;$++)a.isDark(b,$)&&!a.isDark(b,$+1)&&a.isDark(b,$+2)&&a.isDark(b,$+3)&&a.isDark(b,$+4)&&!a.isDark(b,$+5)&&a.isDark(b,$+6)&&(_+=40);for(var $=0;$<o;$++)for(var b=0;b<o-6;b++)a.isDark(b,$)&&!a.isDark(b+1,$)&&a.isDark(b+2,$)&&a.isDark(b+3,$)&&a.isDark(b+4,$)&&!a.isDark(b+5,$)&&a.isDark(b+6,$)&&(_+=40);for(var it=0,$=0;$<o;$++)for(var b=0;b<o;b++)a.isDark(b,$)&&it++;var lt=Math.abs(100*it/o/o-50)/5;return _+=lt*10,_}},util$1=QRUtil,BitByte=_8BitByte,RSBlock=RSBlock$1,BitBuffer=BitBuffer$1,util=util$1,Polynomial=Polynomial$2;function QRCode$1(a,o){this.typeNumber=a,this.errorCorrectLevel=o,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var proto=QRCode$1.prototype;proto.addData=function(a){var o=new BitByte(a);this.dataList.push(o),this.dataCache=null};proto.isDark=function(a,o){if(a<0||this.moduleCount<=a||o<0||this.moduleCount<=o)throw new Error(a+","+o);return this.modules[a][o]};proto.getModuleCount=function(){return this.moduleCount};proto.make=function(){if(this.typeNumber<1){var a=1;for(a=1;a<40;a++){for(var o=RSBlock.getRSBlocks(a,this.errorCorrectLevel),_=new BitBuffer,b=0,$=0;$<o.length;$++)b+=o[$].dataCount;for(var $=0;$<this.dataList.length;$++){var _e=this.dataList[$];_.put(_e.mode,4),_.put(_e.getLength(),util.getLengthInBits(_e.mode,a)),_e.write(_)}if(_.getLengthInBits()<=b*8)break}this.typeNumber=a}this.makeImpl(!1,this.getBestMaskPattern())};proto.makeImpl=function(a,o){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var _=0;_<this.moduleCount;_++){this.modules[_]=new Array(this.moduleCount);for(var b=0;b<this.moduleCount;b++)this.modules[_][b]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(a,o),this.typeNumber>=7&&this.setupTypeNumber(a),this.dataCache==null&&(this.dataCache=QRCode$1.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,o)};proto.setupPositionProbePattern=function(a,o){for(var _=-1;_<=7;_++)if(!(a+_<=-1||this.moduleCount<=a+_))for(var b=-1;b<=7;b++)o+b<=-1||this.moduleCount<=o+b||(0<=_&&_<=6&&(b==0||b==6)||0<=b&&b<=6&&(_==0||_==6)||2<=_&&_<=4&&2<=b&&b<=4?this.modules[a+_][o+b]=!0:this.modules[a+_][o+b]=!1)};proto.getBestMaskPattern=function(){for(var a=0,o=0,_=0;_<8;_++){this.makeImpl(!0,_);var b=util.getLostPoint(this);(_==0||a>b)&&(a=b,o=_)}return o};proto.createMovieClip=function(a,o,_){var b=a.createEmptyMovieClip(o,_),$=1;this.make();for(var _e=0;_e<this.modules.length;_e++)for(var et=_e*$,tt=0;tt<this.modules[_e].length;tt++){var rt=tt*$,st=this.modules[_e][tt];st&&(b.beginFill(0,100),b.moveTo(rt,et),b.lineTo(rt+$,et),b.lineTo(rt+$,et+$),b.lineTo(rt,et+$),b.endFill())}return b};proto.setupTimingPattern=function(){for(var a=8;a<this.moduleCount-8;a++)this.modules[a][6]==null&&(this.modules[a][6]=a%2==0);for(var o=8;o<this.moduleCount-8;o++)this.modules[6][o]==null&&(this.modules[6][o]=o%2==0)};proto.setupPositionAdjustPattern=function(){for(var a=util.getPatternPosition(this.typeNumber),o=0;o<a.length;o++)for(var _=0;_<a.length;_++){var b=a[o],$=a[_];if(this.modules[b][$]==null)for(var _e=-2;_e<=2;_e++)for(var et=-2;et<=2;et++)_e==-2||_e==2||et==-2||et==2||_e==0&&et==0?this.modules[b+_e][$+et]=!0:this.modules[b+_e][$+et]=!1}};proto.setupTypeNumber=function(a){for(var o=util.getBCHTypeNumber(this.typeNumber),_=0;_<18;_++){var b=!a&&(o>>_&1)==1;this.modules[Math.floor(_/3)][_%3+this.moduleCount-8-3]=b}for(var _=0;_<18;_++){var b=!a&&(o>>_&1)==1;this.modules[_%3+this.moduleCount-8-3][Math.floor(_/3)]=b}};proto.setupTypeInfo=function(a,o){for(var _=this.errorCorrectLevel<<3|o,b=util.getBCHTypeInfo(_),$=0;$<15;$++){var _e=!a&&(b>>$&1)==1;$<6?this.modules[$][8]=_e:$<8?this.modules[$+1][8]=_e:this.modules[this.moduleCount-15+$][8]=_e}for(var $=0;$<15;$++){var _e=!a&&(b>>$&1)==1;$<8?this.modules[8][this.moduleCount-$-1]=_e:$<9?this.modules[8][15-$-1+1]=_e:this.modules[8][15-$-1]=_e}this.modules[this.moduleCount-8][8]=!a};proto.mapData=function(a,o){for(var _=-1,b=this.moduleCount-1,$=7,_e=0,et=this.moduleCount-1;et>0;et-=2)for(et==6&&et--;;){for(var tt=0;tt<2;tt++)if(this.modules[b][et-tt]==null){var rt=!1;_e<a.length&&(rt=(a[_e]>>>$&1)==1);var st=util.getMask(o,b,et-tt);st&&(rt=!rt),this.modules[b][et-tt]=rt,$--,$==-1&&(_e++,$=7)}if(b+=_,b<0||this.moduleCount<=b){b-=_,_=-_;break}}};QRCode$1.PAD0=236;QRCode$1.PAD1=17;QRCode$1.createData=function(a,o,_){for(var b=RSBlock.getRSBlocks(a,o),$=new BitBuffer,_e=0;_e<_.length;_e++){var et=_[_e];$.put(et.mode,4),$.put(et.getLength(),util.getLengthInBits(et.mode,a)),et.write($)}for(var tt=0,_e=0;_e<b.length;_e++)tt+=b[_e].dataCount;if($.getLengthInBits()>tt*8)throw new Error("code length overflow. ("+$.getLengthInBits()+">"+tt*8+")");for($.getLengthInBits()+4<=tt*8&&$.put(0,4);$.getLengthInBits()%8!=0;)$.putBit(!1);for(;!($.getLengthInBits()>=tt*8||($.put(QRCode$1.PAD0,8),$.getLengthInBits()>=tt*8));)$.put(QRCode$1.PAD1,8);return QRCode$1.createBytes($,b)};QRCode$1.createBytes=function(a,o){for(var _=0,b=0,$=0,_e=new Array(o.length),et=new Array(o.length),tt=0;tt<o.length;tt++){var rt=o[tt].dataCount,st=o[tt].totalCount-rt;b=Math.max(b,rt),$=Math.max($,st),_e[tt]=new Array(rt);for(var it=0;it<_e[tt].length;it++)_e[tt][it]=255&a.buffer[it+_];_+=rt;var lt=util.getErrorCorrectPolynomial(st),at=new Polynomial(_e[tt],lt.getLength()-1),ft=at.mod(lt);et[tt]=new Array(lt.getLength()-1);for(var it=0;it<et[tt].length;it++){var ht=it+ft.getLength()-et[tt].length;et[tt][it]=ht>=0?ft.get(ht):0}}for(var pt=0,it=0;it<o.length;it++)pt+=o[it].totalCount;for(var vt=new Array(pt),ut=0,it=0;it<b;it++)for(var tt=0;tt<o.length;tt++)it<_e[tt].length&&(vt[ut++]=_e[tt][it]);for(var it=0;it<$;it++)for(var tt=0;tt<o.length;tt++)it<et[tt].length&&(vt[ut++]=et[tt][it]);return vt};var QRCode_1=QRCode$1,QRCodeSvg$1={};Object.defineProperty(QRCodeSvg$1,"__esModule",{value:!0});var _extends$1=Object.assign||function(a){for(var o=1;o<arguments.length;o++){var _=arguments[o];for(var b in _)Object.prototype.hasOwnProperty.call(_,b)&&(a[b]=_[b])}return a},_propTypes$1=propTypesExports,_propTypes2$1=_interopRequireDefault$1(_propTypes$1),_react$1=reactExports,_react2$1=_interopRequireDefault$1(_react$1);function _interopRequireDefault$1(a){return a&&a.__esModule?a:{default:a}}function _objectWithoutProperties$1(a,o){var _={};for(var b in a)o.indexOf(b)>=0||Object.prototype.hasOwnProperty.call(a,b)&&(_[b]=a[b]);return _}var propTypes$1={bgColor:_propTypes2$1.default.oneOfType([_propTypes2$1.default.object,_propTypes2$1.default.string]).isRequired,bgD:_propTypes2$1.default.string.isRequired,fgColor:_propTypes2$1.default.oneOfType([_propTypes2$1.default.object,_propTypes2$1.default.string]).isRequired,fgD:_propTypes2$1.default.string.isRequired,size:_propTypes2$1.default.number.isRequired,title:_propTypes2$1.default.string,viewBoxSize:_propTypes2$1.default.number.isRequired,xmlns:_propTypes2$1.default.string},QRCodeSvg=(0,_react$1.forwardRef)(function(a,o){var _=a.bgColor,b=a.bgD,$=a.fgD,_e=a.fgColor,et=a.size,tt=a.title,rt=a.viewBoxSize,st=a.xmlns,it=st===void 0?"http://www.w3.org/2000/svg":st,lt=_objectWithoutProperties$1(a,["bgColor","bgD","fgD","fgColor","size","title","viewBoxSize","xmlns"]);return _react2$1.default.createElement("svg",_extends$1({},lt,{height:et,ref:o,viewBox:"0 0 "+rt+" "+rt,width:et,xmlns:it}),tt?_react2$1.default.createElement("title",null,tt):null,_react2$1.default.createElement("path",{d:b,fill:_}),_react2$1.default.createElement("path",{d:$,fill:_e}))});QRCodeSvg.displayName="QRCodeSvg";QRCodeSvg.propTypes=propTypes$1;QRCodeSvg$1.default=QRCodeSvg;Object.defineProperty(lib,"__esModule",{value:!0});lib.QRCode=void 0;var _extends=Object.assign||function(a){for(var o=1;o<arguments.length;o++){var _=arguments[o];for(var b in _)Object.prototype.hasOwnProperty.call(_,b)&&(a[b]=_[b])}return a},_propTypes=propTypesExports,_propTypes2=_interopRequireDefault(_propTypes),_ErrorCorrectLevel=ErrorCorrectLevel,_ErrorCorrectLevel2=_interopRequireDefault(_ErrorCorrectLevel),_QRCode=QRCode_1,_QRCode2=_interopRequireDefault(_QRCode),_react=reactExports,_react2=_interopRequireDefault(_react),_QRCodeSvg=QRCodeSvg$1,_QRCodeSvg2=_interopRequireDefault(_QRCodeSvg);function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _objectWithoutProperties(a,o){var _={};for(var b in a)o.indexOf(b)>=0||Object.prototype.hasOwnProperty.call(a,b)&&(_[b]=a[b]);return _}var propTypes={bgColor:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.string]),fgColor:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.string]),level:_propTypes2.default.string,size:_propTypes2.default.number,value:_propTypes2.default.string.isRequired},QRCode=(0,_react.forwardRef)(function(a,o){var _=a.bgColor,b=_===void 0?"#FFFFFF":_,$=a.fgColor,_e=$===void 0?"#000000":$,et=a.level,tt=et===void 0?"L":et,rt=a.size,st=rt===void 0?256:rt,it=a.value,lt=_objectWithoutProperties(a,["bgColor","fgColor","level","size","value"]),at=new _QRCode2.default(-1,_ErrorCorrectLevel2.default[tt]);at.addData(it),at.make();var ft=at.modules;return _react2.default.createElement(_QRCodeSvg2.default,_extends({},lt,{bgColor:b,bgD:ft.map(function(ht,pt){return ht.map(function(vt,ut){return vt?"":"M "+ut+" "+pt+" l 1 0 0 1 -1 0 Z"}).join(" ")}).join(" "),fgColor:_e,fgD:ft.map(function(ht,pt){return ht.map(function(vt,ut){return vt?"M "+ut+" "+pt+" l 1 0 0 1 -1 0 Z":""}).join(" ")}).join(" "),ref:o,size:st,viewBoxSize:ft.length}))});lib.QRCode=QRCode;QRCode.displayName="QRCode";QRCode.propTypes=propTypes;var _default=lib.default=QRCode;const AbhaFaceAuthStepsCarousel=({onClose:a})=>{const o=reactExports.useRef(null),_=b=>{o.current&&o.current.scrollBy({left:b,behavior:"smooth"})};return jsxRuntimeExports.jsxs("div",{className:"pds2-w-full pds2-pb-10 pds2-mt-25 pds2-relative",children:[jsxRuntimeExports.jsxs("div",{className:"Body1Semibold pds2-text-content-secondary pds2-text-left pds2-w-full pds2-py-4 pds2-flex pds2-justify-between",children:[jsxRuntimeExports.jsx("div",{children:"Follow these steps"}),jsxRuntimeExports.jsx("div",{className:"pds2-pr-5 pds2-cursor-pointer",title:"Close Carousel",onClick:a,children:"x"})]}),jsxRuntimeExports.jsx("div",{role:"button",tabIndex:0,onClick:()=>_(240),onKeyDown:b=>b.key==="Enter"&&_(240),className:"pds2-shadow-elevation-100 pds2-shadow-content-primary pds2-absolute pds2-right-0 pds2-cursor-pointer pds2-bottom-110 pds2-bg-surface-strong pds2-rounded-full pds2-p-5",children:jsxRuntimeExports.jsx(l$2,{className:"pds2-text-content-primary"})}),jsxRuntimeExports.jsx("div",{ref:o,className:"Body1Semibold pds2-text-content-secondary pds2-flex pds2-overflow-x-scroll pds2-gap-16 pds2-w-full",children:FACE_AUTH_STEPS_URL.map((b,$)=>jsxRuntimeExports.jsx("div",{className:"pds2-w-1/4 pds2-min-w-220 pds2-min-h-200px",children:jsxRuntimeExports.jsx("img",{className:"pds2-w-full pds2-shadow-elevation-100 pds2-shadow-surface-neutral",src:b})},$))}),jsxRuntimeExports.jsx("div",{role:"button",tabIndex:0,onClick:()=>_(-240),onKeyDown:b=>b.key==="Enter"&&_(-240),className:"pds2-shadow-elevation-100 pds2-shadow-content-primary pds2-absolute pds2-cursor-pointer pds2-bottom-110 pds2-bg-surface-strong pds2-rounded-full pds2-p-5",children:jsxRuntimeExports.jsx(n$3,{className:"pds2-text-content-primary"})})]})},AbhaAuthQRScreen=()=>{var It;const a=useAuthAbhaStore(Nt=>Nt.txnId),o=useAuthAbhaStore(Nt=>Nt.setTxnId),_=useAuthAbhaStore(Nt=>Nt.setScreen),b=useAuthAbhaStore(Nt=>Nt.goBackScreen),$=useAuthAbhaStore(Nt=>Nt.setGoBackToLogin),_e=useAuthAbhaStore(Nt=>Nt.faceAuthQrUrl),et=useAuthAbhaStore(Nt=>Nt.identifierValue),tt=useAuthAbhaStore(Nt=>Nt.initAbhaFlow);useAuthAbhaStore(Nt=>Nt.isEkaAppLogin);const rt=useAuthAbhaStore(Nt=>Nt.clientId),st=useAuthAbhaStore(Nt=>Nt.setEkaSmallToken),it=useAuthAbhaStore(Nt=>Nt.setSelectedAbhaAddress),lt=useAuthAbhaStore(Nt=>Nt.setOid),at=useAuthAbhaStore(Nt=>Nt.setEkaProfileInfo),ft=useAuthAbhaStore(Nt=>Nt.setAbhaAddressList),ht=useAuthAbhaStore(Nt=>Nt.goBackLoginScreen),pt=useAuthAbhaStore(Nt=>Nt.setAadhaarVerificationSkipStateStatus),[vt,ut]=reactExports.useState(!0),[ot,nt]=reactExports.useState(!1),dt=useAuthAbhaStore(Nt=>Nt.setBottomsheetErrorInfo),yt=useAuthAbhaStore(Nt=>Nt.qrCodeColors),[_t,At]=reactExports.useState(FACE_AUTH_CAPTURE_STATUS.PENDING),xt=useTrackAbhaEvent(),wt=()=>{xt({name:"abha_faceauth_verify_error_bottomsheet_dismissed",data:{platform:rt,flow:tt}}),ht(),dt(null)},Tt=async()=>{if(!a){xt({name:"aadhaar_faceauth_verification_no_txnId",data:{platform:rt,flow:tt,type:"verify",txn_id:a||"missing_txnId",txn_id_exists:!!a}});return}xt({name:"abha_aadhaar_faceauth_verify_submitted",data:{platform:rt,flow:tt,type:"verify"}});const{txn_id:Nt,skip_state:Ct,profile:jt,eka:Et,error:gt,abha_profiles:St,source_error:ct,action:mt}=await postRegisterAadhaarFaceAuthVerify({aadhaar:(et==null?void 0:et.aadhaar_number)||"",txn_id:a});if(gt||ct!=null&&ct.message){xt({name:"aadhaar_faceauth_verification_failed",data:{platform:rt,flow:tt,reason:gt||ct||"unknown_error",txn_id_exists:!!a}}),dt({title:"Aadhaar Verification Failed",img:"",description:gt||"Verification failed. Please retry.",cta:{title:"",pid:"",params:null}}),mt&&dt(mt);return}if(!Nt||!Ct){xt({name:"aadhaar_otp_verification_failed",data:{platform:rt,flow:tt,reason:gt||"missing_txn_id_or_skip_state",txn_id_exists:!!Nt,skip_state_exists:!!Ct}}),dt({title:"Verification Failed",img:"",description:gt||"Verification failed. Please retry.",cta:{title:"",pid:"",params:null}}),mt&&dt(mt);return}xt({name:"aadhaar_faceauth_verification_success",data:{platform:rt,flow:tt,skip_state:Ct,oid:Et==null?void 0:Et.oid}}),pt(Ct),Et!=null&&Et.min_token&&st(Et.min_token),Nt&&o(Nt),jt&&jt.abha_address&&it(jt.abha_address),Et!=null&&Et.oid&&lt(Et.oid),jt&&at({date_of_birth:`${jt.year_of_birth}-${String(jt.month_of_birth).padStart(2,"0")}-${String(jt.day_of_birth).padStart(2,"0")}`,firstname:jt.first_name,lastname:jt.last_name,pincode:jt.pincode,gender:jt.gender,name:jt.first_name+" "+jt.last_name,mobile:jt.mobile,oid:Et==null?void 0:Et.oid,abha_address:jt.abha_address,abha_number:jt.abha_number,kyc_verified:jt==null?void 0:jt.kyc_verified}),xt({name:"abha_aadhaar_otp_verification_success",data:{platform:rt,flow:tt,skip_state:Ct,oid:Et==null?void 0:Et.oid}}),St&&ft(St),_(SCREEN_NAMES.AADHAAR_FACEAUTH_VERIFICATION_STATUS)};return reactExports.useEffect(()=>{let Nt=0,Ct;const jt=async()=>{Nt++;try{const Et=await postRegisterAadhaarFaceAuthCapture({txn_id:a});if(console.log("Poll attempt:",Nt,"Response:",Et),(Et==null?void 0:Et.status)==="COMPLETE"){At(FACE_AUTH_CAPTURE_STATUS.COMPLETE),clearInterval(Ct),await Tt();return}else if((Et==null?void 0:Et.status)==="VERIFIED")At(FACE_AUTH_CAPTURE_STATUS.VERIFIED);else if((Et==null?void 0:Et.status)==="FAILED"){At(FACE_AUTH_CAPTURE_STATUS.FAILED),clearInterval(Ct),dt({title:"Authentication Failed",img:"",description:"Face capture failed. Please retry.",cta:{title:"",pid:"",params:null}});return}}catch(Et){console.error("Error in face auth poll:",Et)}};return jt(),Ct=setInterval(jt,3e3),()=>clearInterval(Ct)},[a]),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-base",children:[jsxRuntimeExports.jsx(Pds2Header,{title:"Face Authentication",className:"pds2-border-b-1 pds2-border-surface-muted",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$3,{className:""})})}),!tt&&_t===FACE_AUTH_CAPTURE_STATUS.PENDING?jsxRuntimeExports.jsx(AbhaStepper,{}):jsxRuntimeExports.jsx("div",{className:`pds2-pt-40 ${_t===FACE_AUTH_CAPTURE_STATUS.FAILED?"":"pds2-bg-surface-subtle"}`}),_t===FACE_AUTH_CAPTURE_STATUS.PENDING&&jsxRuntimeExports.jsx("div",{className:"pds2-px-16 pds2-pb-16 pds2-space-y-16 pds2-overflow-y-auto pds2-flex-1 pds2-bg-surface-subtle",children:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-items-center pds2-text-center ",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-justify-between",children:[jsxRuntimeExports.jsxs("div",{className:"Body2Regular pds2-text-content-secondary pds2-py-15",children:["Aadhaar:"," ",jsxRuntimeExports.jsx("span",{className:"Body2Semibold pds2-text-content-secondary",children:(It=et==null?void 0:et.aadhaar_number)==null?void 0:It.replace(/(.{4})/g,"$1-").replace(/-$/,"")})]}),jsxRuntimeExports.jsx("div",{title:"Change",className:"pds2-cursor-pointer pds2-pl-5 pds2-text-primary-brand",onClick:()=>{b(),$(!0)},children:jsxRuntimeExports.jsx(t$d,{className:"pds2-text-primary-brand pds2-w-15"})})]}),jsxRuntimeExports.jsx("div",{className:"Heading3Semibold pds2-text-content-primary",children:"Face Authentication"}),jsxRuntimeExports.jsx("div",{className:"Body2Regular pds2-mb-25 pds2-text-content-secondary",children:"Scan this QR and complete authentication"}),jsxRuntimeExports.jsx(_default,{className:"pds2-w-250 pds2-h-250",fgColor:(yt==null?void 0:yt.fgColor)||"#000000",bgColor:(yt==null?void 0:yt.bgColor)||"#f2f4f7",value:_e||" "}),vt&&jsxRuntimeExports.jsx(AbhaFaceAuthStepsCarousel,{onClose:()=>ut(!1)})]})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:wt}),jsxRuntimeExports.jsx(ExitPopup,{open:ot,setOpen:nt}),_t!=FACE_AUTH_CAPTURE_STATUS.PENDING&&_t!=FACE_AUTH_CAPTURE_STATUS.FAILED&&jsxRuntimeExports.jsx("div",{className:"pds2-bg-surface-subtle pds2-px-16 pds2-w-full pds2-h-full pds2-flex pds2-flex-col pds2-items-center pds2-justify-center pds2-text-center",children:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Lottie,{animationData:animationDataLoading$1,loop:!0,className:"pds2-w-400"}),jsxRuntimeExports.jsx("div",{className:"pds2-text-content-primary Heading4Semibold pds2-absolute pds2-mt-220",children:"Verification in Progress..."})]})})]})},AbhaMobileandOtpScreen=()=>{const[a,o]=reactExports.useState(LOADING_STATE.IDLE),_=useAuthAbhaStore(Gt=>Gt.authTxnId),b=useAuthAbhaStore(Gt=>Gt.setAbhaAddressList),$=useAuthAbhaStore(Gt=>Gt.setScreen),_e=useAuthAbhaStore(Gt=>Gt.identifierValue),et=useAuthAbhaStore(Gt=>Gt.txnId),tt=useAuthAbhaStore(Gt=>Gt.setTxnId),rt=useAuthAbhaStore(Gt=>Gt.aadhaarOtpSentToHint),st=useAuthAbhaStore(Gt=>Gt.setAadhaarVerificationSkipStateStatus),it=useAuthAbhaStore(Gt=>Gt.selectedAbhaFlow),lt=useAuthAbhaStore(Gt=>Gt.setEkaSmallToken),at=useAuthAbhaStore(Gt=>Gt.setOid);useAuthAbhaStore(Gt=>Gt.clearAbhaAuthStore);const ft=useAuthAbhaStore(Gt=>Gt.setBottomsheetErrorInfo),ht=useAuthAbhaStore(Gt=>Gt.goBackLoginScreen),pt=useAuthAbhaStore(Gt=>Gt.goBackScreen),vt=useAuthAbhaStore(Gt=>Gt.isDocAppRequest),[ut,ot]=reactExports.useState(""),[nt,dt]=reactExports.useState(!1),[yt,_t]=reactExports.useState(vt?_e==null?void 0:_e.mobile:""),[At,xt]=reactExports.useState(null),[wt,Tt]=reactExports.useState(null),It=useAuthAbhaStore(Gt=>Gt.setSelectedAbhaAddress),Nt=useAuthAbhaStore(Gt=>Gt.setOTPFromAutoRead),Ct=useAuthAbhaStore(Gt=>Gt.setEkaProfileInfo),jt=useAuthAbhaStore(Gt=>Gt.setMobileInitResponse),Et=useAuthAbhaStore(Gt=>Gt.clientId);useAuthAbhaStore(Gt=>Gt.isEkaAppLogin);const gt=useAuthAbhaStore(Gt=>Gt.initAbhaFlow),St=useAuthAbhaStore(Gt=>Gt.setIsInitApiTriggered),ct=useAuthAbhaStore(Gt=>Gt.setAbhaAuthFlowMethod),mt=useAuthAbhaStore(Gt=>Gt.setIdentifierValue),Rt=useAuthAbhaStore(Gt=>Gt.abhaAuthFlowMethod),[kt,Dt]=reactExports.useState(!1),bt=useTrackAbhaEvent();reactExports.useEffect(()=>{bt({name:"page_view",data:{page_view:"abha_mobile_otp_verify",platform:Et,flow:gt}})},[]);const Ht=({otp:Gt})=>{ot(Gt),bt({name:"abha_mobile_otp_completion",data:{platform:Et,type:"verify",otp_entered:!0,flow:gt}}),Lt(Gt)},Pt=async()=>{if(!et){bt({name:"abha_mobile_otp_resend_clicked_no_txnId",data:{type:"resend",platform:Et,txn_id:"missing_txnId",txn_id_exists:!1,flow:gt}});return}bt({name:"abha_mobile_otp_verify_clicks",data:{type:"resend",platform:Et,flow:gt}}),console.log("selectedMethod",Rt);let Gt;it==="mobile"?(bt({name:"abha_mobile_otp_resend_initiated",data:{platform:Et,type:"verify",flow_type:it,flow:gt}}),console.log("selectedFlow is mobile, so triggering mobile resend otp api",it),Gt=await postAbdmRegisterMobileResendOtp({txn_id:et})):(bt({name:"aadhaar_mobile_otp_resend_initiated",data:{platform:Et,type:"verify",flow_type:it,flow:gt}}),console.log("selectedFlow is aadhaar, so triggering aadhaar resend otp api",it),Gt=await postRegisterAadhaarMobileResendOtp({txn_id:et}));const{txn_id:zt,error:Qt,action:Kt}=Gt;if(!zt){bt({name:"abha_mobile_otp_resend_failed",data:{platform:Et,reason:Qt||"no_txn_id",reason_exists:!!Qt,flow:gt}}),xt(Qt||"Something went wrong, please try again"),Kt&&ft(Kt);return}zt&&tt(zt),bt({name:"abha_mobile_otp_resend_success",data:{platform:Et,txn_id:zt,flow:gt}})},Lt=async Gt=>{if(Nt(""),!et){bt({name:"abha_mobile_verify_no_txnId",data:{type:"verify",platform:Et,txn_id:"missing_txnId",txn_id_exists:!1,flow:gt}});return}bt({name:"abha_mobile_otp_submitted",data:{type:"verify",platform:Et,txn_id:et,flow:gt}}),o(LOADING_STATE.LOADING);try{let zt;it==="mobile"?(bt({name:"abha_mobile_otp_verification_started",data:{platform:Et,flow_type:it,flow:gt}}),zt=await postAbdmRegisterMobileVerify({otp:Gt,txn_id:et})):(bt({name:"aadhaar_otp_verification_started",data:{platform:Et,flow_type:it,flow:gt}}),zt=await postRegisterAadhaarMobileVerify({otp:Gt,txn_id:et}));const{txn_id:Qt,skip_state:Kt,eka:Ut,profile:Jt,error:ur,action:ir,abha_profiles:tr}=zt;if(!Qt||!Kt){bt({name:"abha_mobile_otp_verification_failed",data:{platform:Et,reason:ur||"missing_txn_id_or_skip_state",txn_id_exists:!!Qt,skip_state_exists:!!Kt,flow:gt}}),o(LOADING_STATE.REJECTED),xt(ur||"Something went wrong, please try again"),ir&&ft(ir);return}if(o(LOADING_STATE.RESOLVED),st(Kt),Ut!=null&&Ut.min_token&&lt(Ut.min_token),Ut!=null&&Ut.oid&&at(Ut.oid),Jt&&Jt.abha_address&&It(Jt.abha_address),Jt&&Ct({date_of_birth:`${Jt.year_of_birth}-${String(Jt.month_of_birth).padStart(2,"0")}-${String(Jt.day_of_birth).padStart(2,"0")}`,firstname:Jt.first_name,lastname:Jt.last_name,pincode:Jt.pincode,gender:Jt.gender,oid:Ut==null?void 0:Ut.oid,abha_address:Jt==null?void 0:Jt.abha_address,abha_number:Jt==null?void 0:Jt.abha_number,middlename:Jt==null?void 0:Jt.middle_name,kyc_verified:Jt==null?void 0:Jt.kyc_verified}),console.log("remove oid from set indvidual env"),bt({name:"abha_mobile_otp_verification_success",data:{platform:Et,skip_state:Kt,flow:gt}}),Jt!=null&&Jt.abha_number&&gt===ABHA_INIT_FLOW.ABHA_KYC){St(!1),mt({abha_number:Jt==null?void 0:Jt.abha_number}),setIndividualEnv({extraHeaders:{"X-Pt-Id":(Ut==null?void 0:Ut.oid)??""}}),ct(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER),$(SCREEN_NAMES.KYC_LOGIN_SCREEN);return}if(tr!=null&&tr.length){b(tr),$(SCREEN_NAMES.SELECT_ABHA_FROM_LIST);return}$(SCREEN_NAMES.ABHA_MOBILE_LINKING_STATUS)}catch{bt({name:"abha_mobile_otp_verification_exception",data:{platform:Et,reason:"exception_thrown",flow:gt}}),o(LOADING_STATE.REJECTED),xt("Something went wrong, please try again")}},Bt=async({mobileNumber:Gt})=>{if(_t(Gt),Gt.length===10&&["6","7","8","9"].includes(Gt.charAt(0))&&et){const{txn_id:zt,hint:Qt,error:Kt,action:Ut}=await postRegisterAadhaarMobileInit({mobile:Gt,txn_id:et});if(Kt||!zt||!Qt){bt({name:"aadhaar_faceauth_mobile_init_failed",data:{platform:Et,reason:Kt||"error on mobile init in face auth",txn_id_exists:!!et,flow:gt}}),ft({title:"Please try again.",img:"",description:"Something went wrong.",cta:{title:"",pid:"",params:null}}),Ut&&ft(Ut);return}if(zt&&Qt){bt({name:"abha_login_select_abha_mobile_init_success",data:{method:Rt,platform:Et,txn_id:zt,flow:gt}}),jt({authTxnId:_,txnId:zt,mobileOtpSentToHint:Qt}),Dt(!0),Tt(null);return}}else Gt.trim()!=""&&!["6","7","8","9"].includes(Gt.charAt(0))&&Tt("Enter a valid mobile number");Gt.trim()==""&&Dt(!1),bt({name:"abha_aadhaar_mobile_otp_enter",data:{page_view:"aadhaar_verification",platform:Et,flow:gt}})},$t=()=>{bt({name:"abha_aadhaar_mobile_verify_error_bottomsheet_dismissed",data:{platform:Et,flow:gt}}),ht(),ft(null)},Vt=nt&&yt.length===10;return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-subtle",children:[jsxRuntimeExports.jsx(Pds2Header,{prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:gt?pt:ht,children:jsxRuntimeExports.jsx(n$3,{className:""})}),title:"Create ABHA",className:"pds2-border-b-1 pds2-border-surface-muted"}),gt==null||gt===ABHA_INIT_FLOW.ABHA_REGISTRATION?jsxRuntimeExports.jsx(AbhaStepper,{}):jsxRuntimeExports.jsx("div",{className:"pds2-pt-40 pds2-bg-surface-subtle"}),jsxRuntimeExports.jsxs("div",{className:"pds2-px-16 pds2-pb-16 pds2-space-y-12 pds2-overflow-y-auto pds2-flex-1 pds2-bg-surface-subtle",children:[jsxRuntimeExports.jsx(EnterMobileNumberCard,{mobileNumber:yt,disabled:kt,onMobileNumberChange:Bt,isOtpValid:nt,error:wt,onKeyDown:({key:Gt})=>{Gt==="Enter"&&Lt(ut)}}),kt&&jsxRuntimeExports.jsx(AbhaOtpCard,{otpSentToText:rt||"Enter OTP sent on mobile number",onOtpCompletion:Ht,onResendOtpClick:Pt,setIsValid:dt,error:At,setError:xt,prefixIcon:null})]}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-sticky pds2-bottom-0 pds2-bg-surface-base pds2-w-full pds2-border pds2-border-surface-muted",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Verify",state:!Vt||a===LOADING_STATE.LOADING?"disabled":"enabled",className:"pds2-w-full",onClick:()=>Lt(ut),isLoading:a===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:$t})]})},EnterMobileNumberCard=({mobileNumber:a,disabled:o,onMobileNumberChange:_,isOtpValid:b,onKeyDown:$,error:_e})=>{const et=GET_EXTRA_HEADERS();et==null||et["X-User-ID"];const tt=useAuthAbhaStore(it=>it.isDocAppRequest),rt=reactExports.useRef(null);reactExports.useEffect(()=>{rt.current&&b&&rt.current.focus()},[b]);const st=useAuthAbhaStore(it=>it.initAbhaAppMobileNumber);return st&&(a=st),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-content-secondary pds2-flex-1",children:["Enter ",tt?"the patient's":"your"," mobile number to link with ABHA"," ",jsxRuntimeExports.jsx("sup",{className:"pds2-text-semantic-error Body3Semibold",children:"*"})]}),jsxRuntimeExports.jsx(n$1,{className:"pds2-w-48 pds2-h-48 pds2-text-semantic-success pds2-p-6"})]}),jsxRuntimeExports.jsxs("label",{className:`pds2-relative pds2-border pds2-rounded-12 ${_e?"pds2-border-semantic-error focus-within:pds2-border-semantic-error":"pds2-border-surface-muted focus-within:pds2-border-primary-brand "}`,children:[jsxRuntimeExports.jsx("span",{className:"Body1Regular pds2-absolute pds2-left-16 pds2-top-1/2 pds2-transform pds2--translate-y-1/2 pds2-text-content-secondary",children:"+91 -"}),jsxRuntimeExports.jsx("input",{ref:rt,placeholder:"Mobile Number",type:"tel",name:"phone",autoComplete:"tel",inputMode:"numeric",defaultValue:a,disabled:o,pattern:"[0-9]*",onChange:it=>{const lt=it.target.value.replace(/\D/g,"").slice(-10);it.target.value=lt,_({mobileNumber:lt})},className:"Body1Regular pds2-w-full pds2-pl-60 pds2-pr-12 pds2-py-12 pds2-rounded-12 pds2-outline-none pds2-bg-surface-base",onKeyDown:$})]}),_e?jsxRuntimeExports.jsx("div",{className:"Body3Semibold pds2-text-semantic-error",children:_e}):jsxRuntimeExports.jsxs("div",{className:"Body3Regular pds2-text-content-secondary pds2-flex pds2-items-center pds2-gap-8",children:[jsxRuntimeExports.jsx(e$1,{className:"pds2-w-20 pds2-h-20"}),"We will link this mobile number to your ABHA for all related communications"]}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-items-center pds2-space-x-8 pds2-text-content-secondary"})]})},CustomCardLayout=({children:a,className:o="pds2-space-y-12"})=>jsxRuntimeExports.jsx("div",{className:`pds2-flex pds2-flex-col pds2-w-full pds2-p-16 pds2-rounded-16 pds2-bg-surface-base ${o}`,children:a}),AbhaAadhaarVerificationFaceAuthStatusScreen=()=>{const a=useAuthAbhaStore(ht=>ht.aadhaarVerificationSkipStateStatus),o=useAuthAbhaStore(ht=>ht.authTxnId),_=useAuthAbhaStore(ht=>ht.ekaSmallToken),b=useAuthAbhaStore(ht=>ht.setScreen),$=useAuthAbhaStore(ht=>ht.abhaAddressList),[_e,et]=reactExports.useState(!0),tt=useAuthAbhaStore(ht=>ht.clientId),rt=useAuthAbhaStore(ht=>ht.isEkaAppLogin),st=useAuthAbhaStore(ht=>ht.oid),it=useAuthAbhaStore(ht=>ht.ekaProfileInfo),lt=useAuthAbhaStore(ht=>ht.initAbhaFlow),at=["M","F","O","U"],ft=useTrackAbhaEvent();return reactExports.useEffect(()=>{const ht=new Promise(vt=>{setTimeout(()=>{vt(et(!1))},500)});ft({name:"page_view",data:{flow:lt,page_view:"aadhaar_faceauth_verified_successful",platform:tt}});async function pt(){await ht,setTimeout(async()=>{var vt,ut,ot,nt;if(a===ABHA_V3_SKIP_STATES.REQUEST_MOBILE_OTP){b(SCREEN_NAMES.ABHA_MOBILE_AND_OTP_SCREEN);return}else{if(rt){const yt=at.includes(it==null?void 0:it.gender)?it==null?void 0:it.gender:void 0,_t={oid:(it==null?void 0:it.oid)||"",fln:(it==null?void 0:it.name)||"",dob:it==null?void 0:it.date_of_birth,gen:yt,mobile:it==null?void 0:it.mobile,at:"",fn:(it==null?void 0:it.firstname)||"",mn:(it==null?void 0:it.middlename)||"",ln:(it==null?void 0:it.lastname)||"",abha_number:(it==null?void 0:it.abha_number)||"","health-ids":it!=null&&it.abha_address?[it==null?void 0:it.abha_address]:void 0};console.log("inside abha aadhaar verification status auth profile response ",_t);const At=getMockAuthVerifyResponse(_t);if(console.log("authResponse ",At),a===ABHA_V3_SKIP_STATES.ABHA_END&&st){if(ft({name:"abha_aadhaar_verification_status_eka_flow",data:{type:"verify",platform:tt,flow:lt,transactionId:o||"",skipState:"abha_end",minToken:_||"",oid:st||"",abhaAddress:(it==null?void 0:it.abha_address)||"",isEkaAppLogin:rt?"true":"false"}}),window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(vt=window.EkaAbha)==null||vt.onAbhaSuccess(JSON.stringify({response:At}));return}onAbhaSuccess({response:At}),unMount();return}if(a===ABHA_V3_SKIP_STATES.ABHA_CREATE&&$){b(SCREEN_NAMES.SELECT_ABHA_FROM_LIST);return}console.log("redirecting to create eka profile for abha address creation -> mobile"),b(SCREEN_NAMES.CREATE_EKA_PROFILE);return}if(!o||!_)return;const dt=await postAuthVerifyV3({code:_,idp_id:"eka_min_token"});if(dt.data){if(a===ABHA_V3_SKIP_STATES.ABHA_END){const yt=await getPatientData(st),_t={...dt,data:{...dt.data??{},profile:yt}};if(st){if(window.EkaAbha&&window.EkaAbha.onAbhaSuccess){(ut=window.EkaAbha)==null||ut.onAbhaSuccess(JSON.stringify({response:_t}));return}onAbhaSuccess({response:_t}),unMount();return}setIndividualEnv({extraHeaders:{auth:(ot=dt.data)==null?void 0:ot.tokens.sess}}),b(SCREEN_NAMES.GET_ALL_PROFILES);return}setIndividualEnv({extraHeaders:{auth:(nt=dt.data)==null?void 0:nt.tokens.sess}}),ft({name:"abha_login_otp_verify_abha_select",data:{flow:lt,type:"verify",platform:tt}}),b(SCREEN_NAMES.SELECT_ABHA_FROM_LIST);return}}},2e3)}pt()},[]),jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:_e,loadingText:"Verifying...",successText:"Aadhaar Verification Successful!"})},APPOINTMENT_TOKEN_CACHE_KEY="abha_appointment_token_cache",AbhaSessionStatusLoaderScreen=()=>{const a=useAuthAbhaStore(it=>it.setScreen),o=useAuthAbhaStore(it=>it.goBackLoginScreen),_=useAuthAbhaStore(it=>it.setBottomsheetErrorInfo);useAuthAbhaStore(it=>it.isEkaAppLogin);const b=useAuthAbhaStore(it=>it.clientId),$=useAuthAbhaStore(it=>it.initAbhaFlow);useAuthAbhaStore(it=>it.screen);const _e=useAuthAbhaStore(it=>it.setAppointmentTokenDetails),et=useAuthAbhaStore(it=>it.setEkaProfileInfo),tt=useAuthAbhaStore(it=>it.setProviderDetails),rt=useTrackAbhaEvent();reactExports.useEffect(()=>{rt({name:"abha_doc_session_status_page",data:{page_view:"abha_session_status_page",platform:b,flow:$}}),rt({name:"fetch_session_status_api",data:{type:"get_init",platform:b,flow:$}}),(async()=>{try{let lt=await getAbdmSessionStatus();if(lt.logged_in){if($===ABHA_INIT_FLOW.ABHA_KYC)lt.kyc_verified?a(SCREEN_NAMES.KYC_ALREADY_VERIFIED):a(SCREEN_NAMES.KYC_LOGIN_SCREEN);else if($===ABHA_INIT_FLOW.CONSENT)a(SCREEN_NAMES.CONSENT_LOADER_SCREEN);else if($===ABHA_INIT_FLOW.SCAN_AND_SHARE||$===ABHA_INIT_FLOW.SCAN_AND_SHARE_KIOSK){const at=sessionStorage.getItem(APPOINTMENT_TOKEN_CACHE_KEY);if(at){const{appointmentTokenDetails:ft,ekaProfileInfo:ht,providerDetails:pt}=JSON.parse(at);_e(ft),et(ht),tt(pt),a(SCREEN_NAMES.APPOINTMENT_TOKEN_GENERATED_SCREEN)}else a(SCREEN_NAMES.BOOK_APPOINTMENT_SCREEN)}}else a(SCREEN_NAMES.LOGIN_OR_CREATE_ABHA)}catch(lt){const{code:at,error:ft,source_error:ht}=lt;rt({name:"abha_abdm_session_status_get_failed",data:{error_code:at,error_msg:ft,source_error:ht,flow:$}}),a(SCREEN_NAMES.LOGIN_OR_CREATE_ABHA)}})()},[]);const st=()=>{rt({name:"abha_session_status_request_error_bottomsheet_dismissed",data:{platform:b,flow:$}}),_(null),o()};return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-base",children:[jsxRuntimeExports.jsx(AbhaLoadingStatus,{}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:st})]})},AbhaKycAlreadyVerifiedScreen=()=>{const a=useAuthAbhaStore(b=>b.clientId),o=useAuthAbhaStore(b=>b.successRedirect),_=GET_CLIENT_ID();return reactExports.useEffect(()=>{_==="ext"?(onKYCSuccess("KYC already verified, onKYCSuccess called, next page redirect"),o&&setTimeout(()=>{window.location.href=o},3e3)):a==="phr"||a==="doctor"?setTimeout(()=>{onKYCSuccess("KYC already verified, onKYCSuccess called,next abha unmount"),unMount()},3e3):(onKYCSuccess("KYC already verified, onKYCSuccess called, next page redirect"),setTimeout(()=>{window.location.href="https://www.eka.care/s/for-patients"},3e3))},[]),jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:!1,loadingText:"KYC in progress...",successText:"KYC already Verified!"})},TickSwiggly="data:image/svg+xml,%3csvg%20width='37'%20height='37'%20viewBox='0%200%2037%2037'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18.5%200.5C21.0312%200.5%2023.2812%201.97656%2024.4062%204.15625C26.7266%203.38281%2029.3984%203.94531%2031.2266%205.77344C33.0547%207.60156%2033.6172%2010.2734%2032.8438%2012.5938C35.0234%2013.7188%2036.5%2015.9688%2036.5%2018.5C36.5%2021.1016%2035.0234%2023.3516%2032.8438%2024.4766C33.6172%2026.7969%2033.0547%2029.3984%2031.2266%2031.2266C29.3984%2033.0547%2026.7266%2033.6172%2024.4062%2032.9141C23.2812%2035.0938%2021.0312%2036.5%2018.5%2036.5C15.8984%2036.5%2013.6484%2035.0938%2012.5234%2032.9141C10.2031%2033.6172%207.60156%2033.0547%205.77344%2031.2266C3.94531%2029.3984%203.38281%2026.7969%204.08594%2024.4766C1.90625%2023.3516%200.5%2021.1016%200.5%2018.5C0.5%2015.9688%201.90625%2013.7188%204.08594%2012.5938C3.38281%2010.2734%203.94531%207.60156%205.77344%205.77344C7.60156%203.94531%2010.2031%203.38281%2012.5234%204.15625C13.6484%201.97656%2015.8984%200.5%2018.5%200.5ZM25.3203%2016.3203C25.9531%2015.6875%2025.9531%2014.6328%2025.3203%2014C24.6172%2013.2969%2023.5625%2013.2969%2022.9297%2014L16.25%2020.6797L13.5078%2017.9375C12.8047%2017.2344%2011.75%2017.2344%2011.1172%2017.9375C10.4141%2018.5703%2010.4141%2019.625%2011.1172%2020.2578L15.0547%2024.1953C15.6875%2024.8984%2016.7422%2024.8984%2017.4453%2024.1953L25.3203%2016.3203Z'%20fill='%2346AB86'%20/%3e%3c/svg%3e",AbhaCardScreen=()=>{const[a,o]=reactExports.useState(!1),_=useAuthAbhaStore(ot=>ot.ekaProfileInfo),b=useAuthAbhaStore(ot=>ot.initAbhaFlow);useAuthAbhaStore(ot=>ot.isEkaAppLogin);const $=useAuthAbhaStore(ot=>ot.clientId),_e=useAuthAbhaStore(ot=>ot.setGoBackToLogin),et=useAuthAbhaStore(ot=>ot.setAbhaAuthFlowMethod),tt=useAuthAbhaStore(ot=>ot.setIdentifierValue),rt=useAuthAbhaStore(ot=>ot.setEkaProfileInfo),st=useAuthAbhaStore(ot=>ot.goBackLoginScreen),[it,lt]=reactExports.useState(LOADING_STATE.IDLE),[at,ft]=reactExports.useState(LOADING_STATE.IDLE),ht=GET_REG_JOURNEY_ID(),pt=useTrackAbhaEvent(),vt=async()=>{pt({name:"abha_card_download_clicked",data:{platform:$,flow:b}});try{lt(LOADING_STATE.LOADING);const ot=await getAbdmAssestCard();if(!(ot instanceof Blob)){console.error("Received non-blob response:",ot),pt({name:"abha_card_download_failed",data:{platform:$,error:"Invalid Blob",flow:b}});return}const nt=window.URL.createObjectURL(ot),dt=document.createElement("a");dt.href=nt,dt.download=`${_==null?void 0:_.firstname}_${_==null?void 0:_.lastname}_AbhaCard.png`,document.body.appendChild(dt),dt.click(),document.body.removeChild(dt),window.URL.revokeObjectURL(nt),lt(LOADING_STATE.RESOLVED),pt({name:"abha_card_download_success",data:{platform:$,flow:b}})}catch(ot){lt(LOADING_STATE.REJECTED),console.error("Download Error:",ot),pt({name:"abha_card_download_failed",data:{platform:$,error:JSON.stringify(ot),flow:b}})}},ut=()=>{ft(LOADING_STATE.LOADING),pt({name:"abha_card_continue_clicked",data:{platform:$,flow:b}}),$.includes("doc")&&!ht?(unMount(),ft(LOADING_STATE.RESOLVED)):(_e(!0),et(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),tt({mobile:"",phr_address:"",abha_number:"",aadhaar_number:""}),rt({date_of_birth:"",firstname:"",lastname:"",pincode:"",gender:"",oid:"",middlename:"",abha_address:"",abha_number:""}),st(),ft(LOADING_STATE.RESOLVED))};return jsxRuntimeExports.jsxs("div",{className:"pds2-w-full pds2-h-full pds2-bg-surface-subtle pds2-relative",children:[jsxRuntimeExports.jsx(Pds2Header,{title:"Download ABHA card",className:"pds2-border-b-1 pds2-border-surface-muted",prefixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:()=>o(!0),children:jsxRuntimeExports.jsx(n$3,{className:""})})}),b==ABHA_INIT_FLOW.ABHA_REGISTRATION?jsxRuntimeExports.jsx(AbhaStepper,{}):jsxRuntimeExports.jsx("div",{className:"pds2-pt-40 pds2-bg-surface-subtle"}),jsxRuntimeExports.jsx("div",{className:"pds2-px-16 pds2-space-y-16 pds2-overflow-y-hidden pds2-bg-surface-subtle",children:jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-flex-col pds2-items-center ",children:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-items-center md:pds2-px-40",children:[jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-flex-col pds2-items-center pds2-space-y-6",children:jsxRuntimeExports.jsx("div",{className:"pds2-px-24 pds2-flex pds2-flex-col pds2-space-y-8 md:pds2-p-16 pds2-justify-center pds2-items-center pds2-text-center",children:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("img",{alt:"swiggly-tick-icon",src:TickSwiggly,className:"pds2-w-54 pds2-h-54 md:pds2-h-60 md:pds2-w-60 "}),jsxRuntimeExports.jsx("p",{className:"Heading4Semibold pds2-mt-8",children:"ABHA Registration Successful!"})]})})}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-items-center pds2-relative pds2-mt-16 pds2-w-full",children:[jsxRuntimeExports.jsx("div",{className:"pds2-relative pds2-h-159 pds2-w-166 pds2-ml-22",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/clxu62r5f00020tklemws6vkm.png",alt:"abha_card_bg_img",style:{objectFit:"contain",objectPosition:"center",width:"100%",height:"100%"}})}),jsxRuntimeExports.jsxs("div",{className:"pds2-rounded-4 pds2-overflow-hidden pds2-h-117 pds2-w-180 pds2-relative -pds2-top-50 pds2-bg-surface-base",style:{boxShadow:"0px 2.43737px 9.74947px rgba(41, 41, 140, 0.16)"},children:[jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-justify-between pds2-py-5 pds2-px-10 pds2-w-full pds2-bg-surface-abhaCard",children:[jsxRuntimeExports.jsx("div",{className:"pds2-relative pds2-h-23 pds2-w-26 pds2-bg-surface-base pds2-rounded-4",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/cm6hreldp000b0tfwf0nj156l.webp",alt:"abdm-abha-icon",style:{objectFit:"contain",objectPosition:"center",width:"100%",height:"100%"}})}),jsxRuntimeExports.jsx("div",{className:"pds2-relative pds2-h-23 pds2-w-50 pds2-bg-content-primary",children:jsxRuntimeExports.jsx("img",{src:"https://cdn.eka.care/vagus/clcoqzar7002l0sdsfgx40nkp.webp",alt:"nha_logo_img",style:{objectFit:"contain",objectPosition:"center",width:"100%",height:"100%"}})})]}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-items-center pds2-justify-between pds2-pt-9 pds2-pb-30 pds2-px-10 pds2-bg-surface-base",children:jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-3",children:[jsxRuntimeExports.jsx("div",{className:"pds2-font-700 pds2-text-12 pds2-leading-12",children:(_==null?void 0:_.firstname)+" "+(_==null?void 0:_.lastname)}),jsxRuntimeExports.jsxs("div",{className:"pds2-font-400 pds2-text-9 pds2-leading-10 pds2-text-content-secondary pds2-pb-8",children:[(_==null?void 0:_.gender)==="M"?"Male":(_==null?void 0:_.gender)==="F"?"Female":"Others",", ",calculateAge$1((_==null?void 0:_.date_of_birth)??"")," years"]}),jsxRuntimeExports.jsx("div",{className:"pds2-space-y-2",children:(_==null?void 0:_.abha_number)&&jsxRuntimeExports.jsxs("div",{className:"pds2-font-500 pds2-text-9 pds2-leading-10",children:[jsxRuntimeExports.jsxs("span",{className:"!pds2-font-400 pds2-text-content-secondary",children:["ABHA Number:"," "]}),_==null?void 0:_.abha_number]})}),jsxRuntimeExports.jsx("div",{className:"pds2-space-y-2",children:(_==null?void 0:_.abha_address)&&jsxRuntimeExports.jsxs("div",{className:"pds2-font-500 pds2-text-9 pds2-leading-10",children:[jsxRuntimeExports.jsxs("span",{className:"!pds2-font-400 pds2-text-content-secondary",children:["ABHA Address:"," "]}),_==null?void 0:_.abha_address]})})]})})]})]})]})})}),jsxRuntimeExports.jsxs("div",{className:"pds2-absolute pds2-w-full pds2-bottom-0 pds2-flex pds2-pt-16 ",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-z-10 pds2-absolute pds2-text-content-success pds2-bg-surface-success pds2-top-0 pds2-mb-2 pds2-font-500 pds2-text-12 pds2-leading-18 pds2-w-full pds2-text-center ",children:[jsxRuntimeExports.jsx("span",{className:"pds2-font-700",children:"50 Cr"}),jsxRuntimeExports.jsx("span",{children:" + people have already created ABHA!"})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-gap-10 pds2-p-16 pds2-sticky pds2-bottom-0 pds2-bg-surface-base pds2-w-full pds2-border pds2-border-surface-muted",children:[jsxRuntimeExports.jsx(Pds2Button,{state:at===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:at===LOADING_STATE.LOADING,title:"Continue",buttonColor:"pds2-bg-surface-base",textColor:"pds2-text-primary-brand",className:"pds2-w-5/6 pds2-border pds2-border-surface-muted",onClick:ut}),jsxRuntimeExports.jsx(Pds2Button,{state:it===LOADING_STATE.LOADING?"disabled":"enabled",isLoading:it===LOADING_STATE.LOADING,title:"",IconComponent:()=>jsxRuntimeExports.jsx(t$a,{}),buttonColor:"pds2-bg-primary-brand",className:"pds2-w-1/6 ",padding:"pds2-p-0",onClick:vt})]})]}),jsxRuntimeExports.jsx(ExitPopup,{open:a,setOpen:o})]})},v="4.8.0",ip=0,op=120,fr=24,w=1080,h=1080,nm="C",assets=[],layers=[{ind:1,nm:"₹",sr:1,ks:{o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[-1077.985,-185.842,0]},a:{a:0,k:[0,-34.45,0]},s:{a:0,k:[250.761,250.761,100]}},shapes:[{ty:"gr",nm:"₹",it:[{ty:"sh",nm:"₹",ind:0,ks:{k:{i:[[0,0],[0,0],[0,0],[-1.791,-.098],[-1.449,-.374],[-1.042,-.748],[-.391,-1.302],[0,0],[0,0],[0,0],[1.139,-.83],[1.383,-.439],[1.399,-.13],[.911,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-2.312,.863],[-1.823,1.4],[-1.221,1.904],[-.391,2.344],[0,0],[0,0],[0,0],[.52,1.025],[.553,.652],[0,0],[0,0]],o:[[0,0],[0,0],[1.92,0],[1.79,.098],[1.448,.375],[1.041,.749],[0,0],[0,0],[0,0],[-.423,1.433],[-1.14,.83],[-1.384,.439],[-1.4,.13],[0,0],[0,0],[0,0],[0,0],[0,0],[2.571,-.227],[2.311,-.862],[1.823,-1.399],[1.221,-1.904],[0,0],[0,0],[0,0],[-.163,-1.041],[-.521,-1.025],[0,0],[0,0],[0,0]],v:[[-20.825,-71.582],[-25.708,-60.791],[-18.628,-60.791],[-13.062,-60.645],[-8.203,-59.937],[-4.468,-58.252],[-2.319,-55.176],[-20.825,-55.176],[-25.708,-44.385],[-2.271,-44.385],[-4.614,-40.991],[-8.398,-39.087],[-12.573,-38.232],[-16.04,-38.037],[-23.267,-38.037],[-23.267,-27.246],[1.245,0],[18.53,0],[-8.032,-28.027],[-.708,-29.663],[5.493,-33.057],[10.059,-38.013],[12.476,-44.385],[21.021,-44.385],[25.903,-55.176],[12.476,-55.176],[11.45,-58.276],[9.839,-60.791],[21.021,-60.791],[25.903,-71.582]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,1,1,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[0,0]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]}],ip:40,op:160,st:40,parent:2,ty:4},{ind:2,nm:"S",sr:1,ks:{o:{a:0,k:100},r:{a:1,k:[{i:{x:[.363],y:[1]},o:{x:[.333],y:[0]},t:28,s:[40]},{t:52,s:[0]}]},p:{s:!0,x:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:28,s:[596.286]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:40,s:[188.286]},{t:52,s:[362.286]}]},y:{a:0,k:768}},a:{a:0,k:[-1074,-198,0]},s:{a:0,k:[95,95,100]}},shapes:[{ty:"gr",nm:"E",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[-106.039,0],[0,-106.039],[106.039,0],[0,106.039]],o:[[106.039,0],[0,106.039],[-106.039,0],[0,-106.039]],v:[[0,-192],[192,0],[0,192],[-179.5,0]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.694,.152,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[-1074,-198]},a:{a:0,k:[0,0]},s:{a:0,k:[80,80]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"E",it:[{ty:"el",nm:"E",d:1,p:{a:0,k:[0,0]},s:{a:0,k:[384,384]}},{ty:"fl",nm:"F",c:{a:0,k:[.89,.525,.003,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[-1074,-198]},a:{a:0,k:[0,0]},s:{a:0,k:[80,80]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"E",it:[{ty:"el",nm:"E",d:1,p:{a:0,k:[0,0]},s:{a:0,k:[384,384]}},{ty:"fl",nm:"F",c:{a:0,k:[1,.831,.329,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[-1074,-198]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]}],ip:40,op:120,st:22,ty:4},{ind:3,nm:"L",sr:1,ks:{o:{a:0,k:100},r:{a:1,k:[{i:{x:[0],y:[1]},o:{x:[.333],y:[0]},t:25,s:[-31]},{t:49,s:[0]}]},p:{s:!0,x:{a:0,k:607},y:{a:1,k:[{i:{x:[0],y:[1]},o:{x:[.333],y:[0]},t:25,s:[-216]},{i:{x:[.833],y:[1]},o:{x:[.333],y:[0]},t:49,s:[493]},{t:65,s:[493]}]}},a:{a:0,k:[765.71,954.979,0]},s:{a:0,k:[200,200,100]}},shapes:[{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[-2.289,-.795],[-36.972,0],[-10.21,-3.546],[0,.873],[45.263,0],[0,-4.772]],o:[[10.209,-3.546],[36.973,0],[2.289,-.795],[0,-4.772],[-45.263,0],[0,.873]],v:[[-78.424,5.575],[0,-.552],[78.425,5.575],[81.956,3.064],[0,-5.575],[-81.956,3.064]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[.89,.525,.003,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,934.854]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,-4.772],[45.262,0],[0,4.771],[-45.264,0]],o:[[0,4.771],[-45.264,0],[0,-4.772],[45.262,0]],v:[[81.956,-.001],[.001,8.638],[-81.956,-.001],[.001,-8.639]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.694,.152,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,937.918]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,-10.279],[56.936,0],[0,10.28],[-56.938,0]],o:[[0,10.28],[-56.938,0],[0,-10.279],[56.936,0]],v:[[103.092,0],[0,18.612],[-103.093,0],[0,-18.612]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.831,.329,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,939.876]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,0],[0,0],[-56.938,0],[0,10.279],[0,0]],o:[[0,0],[0,10.279],[56.936,0],[0,0],[0,0]],v:[[-103.092,-24.133],[-103.092,5.52],[0,24.133],[103.093,5.52],[103.093,-24.133]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.741,.16,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,964.562]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]}],ip:25,op:124,st:25,ty:4},{ind:4,nm:"L",sr:1,ks:{o:{a:0,k:100},r:{a:1,k:[{i:{x:[0],y:[1]},o:{x:[.333],y:[0]},t:20,s:[-31]},{t:44,s:[0]}]},p:{s:!0,x:{a:0,k:595},y:{a:1,k:[{i:{x:[0],y:[1]},o:{x:[.333],y:[0]},t:20,s:[-216]},{i:{x:[.833],y:[1]},o:{x:[.333],y:[0]},t:44,s:[573]},{t:65,s:[573]}]}},a:{a:0,k:[765.71,954.979,0]},s:{a:0,k:[200,200,100]}},shapes:[{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[-2.289,-.795],[-36.972,0],[-10.21,-3.546],[0,.873],[45.263,0],[0,-4.772]],o:[[10.209,-3.546],[36.973,0],[2.289,-.795],[0,-4.772],[-45.263,0],[0,.873]],v:[[-78.424,5.575],[0,-.552],[78.425,5.575],[81.956,3.064],[0,-5.575],[-81.956,3.064]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[.89,.525,.003,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,934.854]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,-4.772],[45.262,0],[0,4.771],[-45.264,0]],o:[[0,4.771],[-45.264,0],[0,-4.772],[45.262,0]],v:[[81.956,-.001],[.001,8.638],[-81.956,-.001],[.001,-8.639]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.694,.152,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,937.918]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,-10.279],[56.936,0],[0,10.28],[-56.938,0]],o:[[0,10.28],[-56.938,0],[0,-10.279],[56.936,0]],v:[[103.092,0],[0,18.612],[-103.093,0],[0,-18.612]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.831,.329,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,939.876]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,0],[0,0],[-56.938,0],[0,10.279],[0,0]],o:[[0,0],[0,10.279],[56.936,0],[0,0],[0,0]],v:[[-103.092,-24.133],[-103.092,5.52],[0,24.133],[103.093,5.52],[103.093,-24.133]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.741,.16,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,964.562]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]}],ip:20,op:124,st:20,ty:4},{ind:5,nm:"L",sr:1,ks:{o:{a:0,k:100},r:{a:1,k:[{i:{x:[0],y:[1]},o:{x:[.333],y:[0]},t:15,s:[-31]},{t:39,s:[0]}]},p:{s:!0,x:{a:0,k:607},y:{a:1,k:[{i:{x:[0],y:[1]},o:{x:[.333],y:[0]},t:15,s:[-216]},{i:{x:[.833],y:[1]},o:{x:[.333],y:[0]},t:39,s:[653]},{t:65,s:[653]}]}},a:{a:0,k:[765.71,954.979,0]},s:{a:0,k:[200,200,100]}},shapes:[{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[-2.289,-.795],[-36.972,0],[-10.21,-3.546],[0,.873],[45.263,0],[0,-4.772]],o:[[10.209,-3.546],[36.973,0],[2.289,-.795],[0,-4.772],[-45.263,0],[0,.873]],v:[[-78.424,5.575],[0,-.552],[78.425,5.575],[81.956,3.064],[0,-5.575],[-81.956,3.064]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[.89,.525,.003,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,934.854]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,-4.772],[45.262,0],[0,4.771],[-45.264,0]],o:[[0,4.771],[-45.264,0],[0,-4.772],[45.262,0]],v:[[81.956,-.001],[.001,8.638],[-81.956,-.001],[.001,-8.639]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.694,.152,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,937.918]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,-10.279],[56.936,0],[0,10.28],[-56.938,0]],o:[[0,10.28],[-56.938,0],[0,-10.279],[56.936,0]],v:[[103.092,0],[0,18.612],[-103.093,0],[0,-18.612]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.831,.329,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,939.876]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,0],[0,0],[-56.938,0],[0,10.279],[0,0]],o:[[0,0],[0,10.279],[56.936,0],[0,0],[0,0]],v:[[-103.092,-24.133],[-103.092,5.52],[0,24.133],[103.093,5.52],[103.093,-24.133]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.741,.16,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,964.562]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]}],ip:15,op:124,st:15,ty:4},{ind:6,nm:"L",sr:1,ks:{o:{a:0,k:100},r:{a:1,k:[{i:{x:[0],y:[1]},o:{x:[.333],y:[0]},t:10,s:[-31]},{t:34,s:[0]}]},p:{s:!0,x:{a:0,k:595},y:{a:1,k:[{i:{x:[0],y:[1]},o:{x:[.333],y:[0]},t:10,s:[-216]},{i:{x:[.833],y:[1]},o:{x:[.333],y:[0]},t:34,s:[733]},{t:65,s:[733]}]}},a:{a:0,k:[765.71,954.979,0]},s:{a:0,k:[200,200,100]}},shapes:[{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[-2.289,-.795],[-36.972,0],[-10.21,-3.546],[0,.873],[45.263,0],[0,-4.772]],o:[[10.209,-3.546],[36.973,0],[2.289,-.795],[0,-4.772],[-45.263,0],[0,.873]],v:[[-78.424,5.575],[0,-.552],[78.425,5.575],[81.956,3.064],[0,-5.575],[-81.956,3.064]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[.89,.525,.003,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,934.854]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,-4.772],[45.262,0],[0,4.771],[-45.264,0]],o:[[0,4.771],[-45.264,0],[0,-4.772],[45.262,0]],v:[[81.956,-.001],[.001,8.638],[-81.956,-.001],[.001,-8.639]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.694,.152,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,937.918]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,-10.279],[56.936,0],[0,10.28],[-56.938,0]],o:[[0,10.28],[-56.938,0],[0,-10.279],[56.936,0]],v:[[103.092,0],[0,18.612],[-103.093,0],[0,-18.612]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.831,.329,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,939.876]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,0],[0,0],[-56.938,0],[0,10.279],[0,0]],o:[[0,0],[0,10.279],[56.936,0],[0,0],[0,0]],v:[[-103.092,-24.133],[-103.092,5.52],[0,24.133],[103.093,5.52],[103.093,-24.133]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.741,.16,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,964.562]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]}],ip:10,op:124,st:10,ty:4},{ind:7,nm:"L",sr:1,ks:{o:{a:0,k:100},r:{a:1,k:[{i:{x:[0],y:[1]},o:{x:[.333],y:[0]},t:5,s:[-31]},{t:29,s:[0]}]},p:{s:!0,x:{a:0,k:607},y:{a:1,k:[{i:{x:[0],y:[1]},o:{x:[.333],y:[0]},t:5,s:[-216]},{i:{x:[.833],y:[1]},o:{x:[.333],y:[0]},t:29,s:[813]},{t:65,s:[813]}]}},a:{a:0,k:[765.71,954.979,0]},s:{a:0,k:[200,200,100]}},shapes:[{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[-2.289,-.795],[-36.972,0],[-10.21,-3.546],[0,.873],[45.263,0],[0,-4.772]],o:[[10.209,-3.546],[36.973,0],[2.289,-.795],[0,-4.772],[-45.263,0],[0,.873]],v:[[-78.424,5.575],[0,-.552],[78.425,5.575],[81.956,3.064],[0,-5.575],[-81.956,3.064]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[.89,.525,.003,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,934.854]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,-4.772],[45.262,0],[0,4.771],[-45.264,0]],o:[[0,4.771],[-45.264,0],[0,-4.772],[45.262,0]],v:[[81.956,-.001],[.001,8.638],[-81.956,-.001],[.001,-8.639]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.694,.152,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,937.918]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,-10.279],[56.936,0],[0,10.28],[-56.938,0]],o:[[0,10.28],[-56.938,0],[0,-10.279],[56.936,0]],v:[[103.092,0],[0,18.612],[-103.093,0],[0,-18.612]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.831,.329,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,939.876]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,0],[0,0],[-56.938,0],[0,10.279],[0,0]],o:[[0,0],[0,10.279],[56.936,0],[0,0],[0,0]],v:[[-103.092,-24.133],[-103.092,5.52],[0,24.133],[103.093,5.52],[103.093,-24.133]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.741,.16,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,964.562]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]}],ip:5,op:124,st:5,ty:4},{ind:8,nm:"L",sr:1,ks:{o:{a:0,k:100},r:{a:1,k:[{i:{x:[0],y:[1]},o:{x:[.333],y:[0]},t:0,s:[-31]},{t:24,s:[0]}]},p:{s:!0,x:{a:0,k:595},y:{a:1,k:[{i:{x:[0],y:[1]},o:{x:[.333],y:[0]},t:0,s:[-216]},{i:{x:[.833],y:[1]},o:{x:[.333],y:[0]},t:24,s:[893]},{t:65,s:[893]}]}},a:{a:0,k:[765.71,954.979,0]},s:{a:0,k:[200,200,100]}},shapes:[{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[-2.289,-.795],[-36.972,0],[-10.21,-3.546],[0,.873],[45.263,0],[0,-4.772]],o:[[10.209,-3.546],[36.973,0],[2.289,-.795],[0,-4.772],[-45.263,0],[0,.873]],v:[[-78.424,5.575],[0,-.552],[78.425,5.575],[81.956,3.064],[0,-5.575],[-81.956,3.064]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[.89,.525,.003,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,934.854]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,-4.772],[45.262,0],[0,4.771],[-45.264,0]],o:[[0,4.771],[-45.264,0],[0,-4.772],[45.262,0]],v:[[81.956,-.001],[.001,8.638],[-81.956,-.001],[.001,-8.639]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.694,.152,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,937.918]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,-10.279],[56.936,0],[0,10.28],[-56.938,0]],o:[[0,10.28],[-56.938,0],[0,-10.279],[56.936,0]],v:[[103.092,0],[0,18.612],[-103.093,0],[0,-18.612]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.831,.329,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,939.876]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"G",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[0,0],[0,0],[-56.938,0],[0,10.279],[0,0]],o:[[0,0],[0,10.279],[56.936,0],[0,0],[0,0]],v:[[-103.092,-24.133],[-103.092,5.52],[0,24.133],[103.093,5.52],[103.093,-24.133]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.741,.16,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[765.71,964.562]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]}],ip:0,op:124,st:0,ty:4},{ind:9,nm:"₹",sr:1,ks:{o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[-1077.985,-185.842,0]},a:{a:0,k:[0,-34.45,0]},s:{a:0,k:[250.761,250.761,100]}},shapes:[{ty:"gr",nm:"₹",it:[{ty:"sh",nm:"₹",ind:0,ks:{k:{i:[[0,0],[0,0],[0,0],[-1.791,-.098],[-1.449,-.374],[-1.042,-.748],[-.391,-1.302],[0,0],[0,0],[0,0],[1.139,-.83],[1.383,-.439],[1.399,-.13],[.911,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-2.312,.863],[-1.823,1.4],[-1.221,1.904],[-.391,2.344],[0,0],[0,0],[0,0],[.52,1.025],[.553,.652],[0,0],[0,0]],o:[[0,0],[0,0],[1.92,0],[1.79,.098],[1.448,.375],[1.041,.749],[0,0],[0,0],[0,0],[-.423,1.433],[-1.14,.83],[-1.384,.439],[-1.4,.13],[0,0],[0,0],[0,0],[0,0],[0,0],[2.571,-.227],[2.311,-.862],[1.823,-1.399],[1.221,-1.904],[0,0],[0,0],[0,0],[-.163,-1.041],[-.521,-1.025],[0,0],[0,0],[0,0]],v:[[-20.825,-71.582],[-25.708,-60.791],[-18.628,-60.791],[-13.062,-60.645],[-8.203,-59.937],[-4.468,-58.252],[-2.319,-55.176],[-20.825,-55.176],[-25.708,-44.385],[-2.271,-44.385],[-4.614,-40.991],[-8.398,-39.087],[-12.573,-38.232],[-16.04,-38.037],[-23.267,-38.037],[-23.267,-27.246],[1.245,0],[18.53,0],[-8.032,-28.027],[-.708,-29.663],[5.493,-33.057],[10.059,-38.013],[12.476,-44.385],[21.021,-44.385],[25.903,-55.176],[12.476,-55.176],[11.45,-58.276],[9.839,-60.791],[21.021,-60.791],[25.903,-71.582]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,1,1,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[0,0]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]}],ip:28,op:40,st:28,parent:10,ty:4},{ind:10,nm:"S",sr:1,ks:{o:{a:0,k:100},r:{a:1,k:[{i:{x:[.363],y:[1]},o:{x:[.333],y:[0]},t:28,s:[40]},{t:52,s:[0]}]},p:{s:!0,x:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:28,s:[596.286]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:40,s:[188.286]},{t:52,s:[362.286]}]},y:{a:0,k:768}},a:{a:0,k:[-1074,-198,0]},s:{a:0,k:[95,95,100]}},shapes:[{ty:"gr",nm:"E",it:[{ty:"sh",nm:"P",ind:0,ks:{k:{i:[[-106.039,0],[0,-106.039],[106.039,0],[0,106.039]],o:[[106.039,0],[0,106.039],[-106.039,0],[0,-106.039]],v:[[0,-192],[192,0],[0,192],[-179.5,0]],c:!0},a:0}},{ty:"fl",nm:"F",c:{a:0,k:[1,.694,.152,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[-1074,-198]},a:{a:0,k:[0,0]},s:{a:0,k:[80,80]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"E",it:[{ty:"el",nm:"E",d:1,p:{a:0,k:[0,0]},s:{a:0,k:[384,384]}},{ty:"fl",nm:"F",c:{a:0,k:[.89,.525,.003,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[-1074,-198]},a:{a:0,k:[0,0]},s:{a:0,k:[80,80]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]},{ty:"gr",nm:"E",it:[{ty:"el",nm:"E",d:1,p:{a:0,k:[0,0]},s:{a:0,k:[384,384]}},{ty:"fl",nm:"F",c:{a:0,k:[1,.831,.329,1]},o:{a:0,k:100},r:1},{ty:"tr",o:{a:0,k:100},r:{a:0,k:0},p:{a:0,k:[-1074,-198]},a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},nm:"T",sk:{a:0,k:0},sa:{a:0,k:0}}]}],ip:28,op:40,st:22,ty:4}],markers=[],animationData={v,ip,op,fr,w,h,nm,assets,layers,markers},EarnWithABHAScreen=()=>{const a=useAuthAbhaStore(at=>at.goBackScreen),o=useAuthAbhaStore(at=>at.identifierValue);useAuthAbhaStore(at=>at.isEkaAppLogin);const _=useAuthAbhaStore(at=>at.clientId),b=useAuthAbhaStore(at=>at.goBackLoginScreen),[$,_e]=reactExports.useState(!1),et=useAuthAbhaStore(at=>at.setBottomsheetErrorInfo),tt=useAuthAbhaStore(at=>at.initAbhaFlow),rt=useTrackAbhaEvent(),st=()=>{rt({name:"abha_earn_abha_error_bottomsheet_dismissed",data:{platform:_,flow:tt}}),b(),et(null)},it=()=>{rt({name:"abha_earn_with_abha_clicked",data:{platform:_,flow:tt}}),a()},lt=()=>{rt({name:"abha_skip_earn_with_abha_clicked",data:{platform:_,flow:tt}}),onSkipAbha({identifier:(o==null?void 0:o.mobile)||(o==null?void 0:o.aadhaar_number)||(o==null?void 0:o.abha_number)||(o==null?void 0:o.phr_address)||"",identifier_type:o!=null&&o.mobile?"mobile":"aadhaar_number"}),unMount()};return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-base",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-px-16 pds2-pb-16 pds2-space-y-16 pds2-overflow-y-auto pds2-flex-1 pds2-bg-surface-subtle",children:[jsxRuntimeExports.jsx(Lottie,{animationData,loop:!0,className:"pds2-w-300 pds2-mx-auto pds2-h-2/5"}),jsxRuntimeExports.jsx("div",{className:"Title3Bold pds2-text-center pds2-w-full pds2-mx-auto pds2-text-content-secondary",children:"Turn prescriptions to paychecks"}),jsxRuntimeExports.jsxs("div",{className:"BodyBody pds2-text-center pds2-w-full pds2-mx-auto pds2-text-content-secondary",children:["Maximise the ",jsxRuntimeExports.jsx("br",{}),"Digital Health Incentive Scheme.",jsxRuntimeExports.jsx("br",{}),"Earn by linking records to ABHA."]}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-gap-20 pds2-w-full pds2-pt-20",children:[jsxRuntimeExports.jsx(Pds2Button,{title:"Earn with ABHA",buttonColor:"",className:"pds2-w-full",onClick:()=>it()}),jsxRuntimeExports.jsx(Pds2Button,{textColor:"pds2-text-primary-brand",title:"Continue without ABHA",buttonColor:"pds2-bg-surface-base",className:"pds2-w-full pds2-border pds2-border-surface-muted",onClick:()=>lt()})]})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:st}),jsxRuntimeExports.jsx(ExitPopup,{open:$,setOpen:_e})]})};var dayjs_min={exports:{}};(function(a,o){(function(_,b){a.exports=b()})(commonjsGlobal,function(){var _=1e3,b=6e4,$=36e5,_e="millisecond",et="second",tt="minute",rt="hour",st="day",it="week",lt="month",at="quarter",ft="year",ht="date",pt="Invalid Date",vt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ut=/\[([^\]]+)]|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,ot={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(jt){var Et=["th","st","nd","rd"],gt=jt%100;return"["+jt+(Et[(gt-20)%10]||Et[gt]||Et[0])+"]"}},nt=function(jt,Et,gt){var St=String(jt);return!St||St.length>=Et?jt:""+Array(Et+1-St.length).join(gt)+jt},dt={s:nt,z:function(jt){var Et=-jt.utcOffset(),gt=Math.abs(Et),St=Math.floor(gt/60),ct=gt%60;return(Et<=0?"+":"-")+nt(St,2,"0")+":"+nt(ct,2,"0")},m:function jt(Et,gt){if(Et.date()<gt.date())return-jt(gt,Et);var St=12*(gt.year()-Et.year())+(gt.month()-Et.month()),ct=Et.clone().add(St,lt),mt=gt-ct<0,Rt=Et.clone().add(St+(mt?-1:1),lt);return+(-(St+(gt-ct)/(mt?ct-Rt:Rt-ct))||0)},a:function(jt){return jt<0?Math.ceil(jt)||0:Math.floor(jt)},p:function(jt){return{M:lt,y:ft,w:it,d:st,D:ht,h:rt,m:tt,s:et,ms:_e,Q:at}[jt]||String(jt||"").toLowerCase().replace(/s$/,"")},u:function(jt){return jt===void 0}},yt="en",_t={};_t[yt]=ot;var At="$isDayjsObject",xt=function(jt){return jt instanceof Nt||!(!jt||!jt[At])},wt=function jt(Et,gt,St){var ct;if(!Et)return yt;if(typeof Et=="string"){var mt=Et.toLowerCase();_t[mt]&&(ct=mt),gt&&(_t[mt]=gt,ct=mt);var Rt=Et.split("-");if(!ct&&Rt.length>1)return jt(Rt[0])}else{var kt=Et.name;_t[kt]=Et,ct=kt}return!St&&ct&&(yt=ct),ct||!St&&yt},Tt=function(jt,Et){if(xt(jt))return jt.clone();var gt=typeof Et=="object"?Et:{};return gt.date=jt,gt.args=arguments,new Nt(gt)},It=dt;It.l=wt,It.i=xt,It.w=function(jt,Et){return Tt(jt,{locale:Et.$L,utc:Et.$u,x:Et.$x,$offset:Et.$offset})};var Nt=function(){function jt(gt){this.$L=wt(gt.locale,null,!0),this.parse(gt),this.$x=this.$x||gt.x||{},this[At]=!0}var Et=jt.prototype;return Et.parse=function(gt){this.$d=function(St){var ct=St.date,mt=St.utc;if(ct===null)return new Date(NaN);if(It.u(ct))return new Date;if(ct instanceof Date)return new Date(ct);if(typeof ct=="string"&&!/Z$/i.test(ct)){var Rt=ct.match(vt);if(Rt){var kt=Rt[2]-1||0,Dt=(Rt[7]||"0").substring(0,3);return mt?new Date(Date.UTC(Rt[1],kt,Rt[3]||1,Rt[4]||0,Rt[5]||0,Rt[6]||0,Dt)):new Date(Rt[1],kt,Rt[3]||1,Rt[4]||0,Rt[5]||0,Rt[6]||0,Dt)}}return new Date(ct)}(gt),this.init()},Et.init=function(){var gt=this.$d;this.$y=gt.getFullYear(),this.$M=gt.getMonth(),this.$D=gt.getDate(),this.$W=gt.getDay(),this.$H=gt.getHours(),this.$m=gt.getMinutes(),this.$s=gt.getSeconds(),this.$ms=gt.getMilliseconds()},Et.$utils=function(){return It},Et.isValid=function(){return this.$d.toString()!==pt},Et.isSame=function(gt,St){var ct=Tt(gt);return this.startOf(St)<=ct&&ct<=this.endOf(St)},Et.isAfter=function(gt,St){return Tt(gt)<this.startOf(St)},Et.isBefore=function(gt,St){return this.endOf(St)<Tt(gt)},Et.$g=function(gt,St,ct){return It.u(gt)?this[St]:this.set(ct,gt)},Et.unix=function(){return Math.floor(this.valueOf()/1e3)},Et.valueOf=function(){return this.$d.getTime()},Et.startOf=function(gt,St){var ct=this,mt=!!It.u(St)||St,Rt=It.p(gt),kt=function(Vt,Gt){var zt=It.w(ct.$u?Date.UTC(ct.$y,Gt,Vt):new Date(ct.$y,Gt,Vt),ct);return mt?zt:zt.endOf(st)},Dt=function(Vt,Gt){return It.w(ct.toDate()[Vt].apply(ct.toDate("s"),(mt?[0,0,0,0]:[23,59,59,999]).slice(Gt)),ct)},bt=this.$W,Ht=this.$M,Pt=this.$D,Lt="set"+(this.$u?"UTC":"");switch(Rt){case ft:return mt?kt(1,0):kt(31,11);case lt:return mt?kt(1,Ht):kt(0,Ht+1);case it:var Bt=this.$locale().weekStart||0,$t=(bt<Bt?bt+7:bt)-Bt;return kt(mt?Pt-$t:Pt+(6-$t),Ht);case st:case ht:return Dt(Lt+"Hours",0);case rt:return Dt(Lt+"Minutes",1);case tt:return Dt(Lt+"Seconds",2);case et:return Dt(Lt+"Milliseconds",3);default:return this.clone()}},Et.endOf=function(gt){return this.startOf(gt,!1)},Et.$set=function(gt,St){var ct,mt=It.p(gt),Rt="set"+(this.$u?"UTC":""),kt=(ct={},ct[st]=Rt+"Date",ct[ht]=Rt+"Date",ct[lt]=Rt+"Month",ct[ft]=Rt+"FullYear",ct[rt]=Rt+"Hours",ct[tt]=Rt+"Minutes",ct[et]=Rt+"Seconds",ct[_e]=Rt+"Milliseconds",ct)[mt],Dt=mt===st?this.$D+(St-this.$W):St;if(mt===lt||mt===ft){var bt=this.clone().set(ht,1);bt.$d[kt](Dt),bt.init(),this.$d=bt.set(ht,Math.min(this.$D,bt.daysInMonth())).$d}else kt&&this.$d[kt](Dt);return this.init(),this},Et.set=function(gt,St){return this.clone().$set(gt,St)},Et.get=function(gt){return this[It.p(gt)]()},Et.add=function(gt,St){var ct,mt=this;gt=Number(gt);var Rt=It.p(St),kt=function(Ht){var Pt=Tt(mt);return It.w(Pt.date(Pt.date()+Math.round(Ht*gt)),mt)};if(Rt===lt)return this.set(lt,this.$M+gt);if(Rt===ft)return this.set(ft,this.$y+gt);if(Rt===st)return kt(1);if(Rt===it)return kt(7);var Dt=(ct={},ct[tt]=b,ct[rt]=$,ct[et]=_,ct)[Rt]||1,bt=this.$d.getTime()+gt*Dt;return It.w(bt,this)},Et.subtract=function(gt,St){return this.add(-1*gt,St)},Et.format=function(gt){var St=this,ct=this.$locale();if(!this.isValid())return ct.invalidDate||pt;var mt=gt||"YYYY-MM-DDTHH:mm:ssZ",Rt=It.z(this),kt=this.$H,Dt=this.$m,bt=this.$M,Ht=ct.weekdays,Pt=ct.months,Lt=ct.meridiem,Bt=function(Gt,zt,Qt,Kt){return Gt&&(Gt[zt]||Gt(St,mt))||Qt[zt].slice(0,Kt)},$t=function(Gt){return It.s(kt%12||12,Gt,"0")},Vt=Lt||function(Gt,zt,Qt){var Kt=Gt<12?"AM":"PM";return Qt?Kt.toLowerCase():Kt};return mt.replace(ut,function(Gt,zt){return zt||function(Qt){switch(Qt){case"YY":return String(St.$y).slice(-2);case"YYYY":return It.s(St.$y,4,"0");case"M":return bt+1;case"MM":return It.s(bt+1,2,"0");case"MMM":return Bt(ct.monthsShort,bt,Pt,3);case"MMMM":return Bt(Pt,bt);case"D":return St.$D;case"DD":return It.s(St.$D,2,"0");case"d":return String(St.$W);case"dd":return Bt(ct.weekdaysMin,St.$W,Ht,2);case"ddd":return Bt(ct.weekdaysShort,St.$W,Ht,3);case"dddd":return Ht[St.$W];case"H":return String(kt);case"HH":return It.s(kt,2,"0");case"h":return $t(1);case"hh":return $t(2);case"a":return Vt(kt,Dt,!0);case"A":return Vt(kt,Dt,!1);case"m":return String(Dt);case"mm":return It.s(Dt,2,"0");case"s":return String(St.$s);case"ss":return It.s(St.$s,2,"0");case"SSS":return It.s(St.$ms,3,"0");case"Z":return Rt}return null}(Gt)||Rt.replace(":","")})},Et.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Et.diff=function(gt,St,ct){var mt,Rt=this,kt=It.p(St),Dt=Tt(gt),bt=(Dt.utcOffset()-this.utcOffset())*b,Ht=this-Dt,Pt=function(){return It.m(Rt,Dt)};switch(kt){case ft:mt=Pt()/12;break;case lt:mt=Pt();break;case at:mt=Pt()/3;break;case it:mt=(Ht-bt)/6048e5;break;case st:mt=(Ht-bt)/864e5;break;case rt:mt=Ht/$;break;case tt:mt=Ht/b;break;case et:mt=Ht/_;break;default:mt=Ht}return ct?mt:It.a(mt)},Et.daysInMonth=function(){return this.endOf(lt).$D},Et.$locale=function(){return _t[this.$L]},Et.locale=function(gt,St){if(!gt)return this.$L;var ct=this.clone(),mt=wt(gt,St,!0);return mt&&(ct.$L=mt),ct},Et.clone=function(){return It.w(this.$d,this)},Et.toDate=function(){return new Date(this.valueOf())},Et.toJSON=function(){return this.isValid()?this.toISOString():null},Et.toISOString=function(){return this.$d.toISOString()},Et.toString=function(){return this.$d.toUTCString()},jt}(),Ct=Nt.prototype;return Tt.prototype=Ct,[["$ms",_e],["$s",et],["$m",tt],["$H",rt],["$W",st],["$M",lt],["$y",ft],["$D",ht]].forEach(function(jt){Ct[jt[1]]=function(Et){return this.$g(Et,jt[0],jt[1])}}),Tt.extend=function(jt,Et){return jt.$i||(jt(Et,Nt,Tt),jt.$i=!0),Tt},Tt.locale=wt,Tt.isDayjs=xt,Tt.unix=function(jt){return Tt(1e3*jt)},Tt.en=_t[yt],Tt.Ls=_t,Tt.p={},Tt})})(dayjs_min);var dayjs_minExports=dayjs_min.exports;const dayjs=getDefaultExportFromCjs(dayjs_minExports);function getAppointmentTokenTimeRange(a=40){const o=new Date,_=new Date(o.getTime()+a*6e4),b={hour:"2-digit",minute:"2-digit",hour12:!0},$=o.toLocaleTimeString([],b),_e=_.toLocaleTimeString([],b);return`Today, ${$} - ${_e}`}function calculateAge({dob:a}){const o=dayjs(a),_=dayjs(),b=_.diff(o,"year");o.add(b,"year");const $=_.diff(o,"month");return`${b}y ${$}m`}const BookAppointmentScreen=()=>{const a=useAuthAbhaStore(Bt=>Bt.authTxnId),o=useAuthAbhaStore(Bt=>Bt.txnId),_=useAuthAbhaStore(Bt=>Bt.sessionInitTxnId),b=useAuthAbhaStore(Bt=>Bt.setOTPFromAutoRead),$=useAuthAbhaStore(Bt=>Bt.setSessionInitResponse),_e=useAuthAbhaStore(Bt=>Bt.abhaAuthFlowMethod);useAuthAbhaStore(Bt=>Bt.clearAbhaAuthStore);const et=useAuthAbhaStore(Bt=>Bt.setBottomsheetErrorInfo),tt=useAuthAbhaStore(Bt=>Bt.setAppointmentRequestId),rt=useAuthAbhaStore(Bt=>Bt.setScreen);useAuthAbhaStore(Bt=>Bt.abhaAuthFlowMethod);const st=useAuthAbhaStore(Bt=>Bt.ekaProfileInfo),it=useAuthAbhaStore(Bt=>Bt.setEkaProfileInfo),lt=useAuthAbhaStore(Bt=>Bt.clientId);useAuthAbhaStore(Bt=>Bt.isEkaAppLogin);const at=useAuthAbhaStore(Bt=>Bt.initAbhaFlow),ft=useAuthAbhaStore(Bt=>Bt.setProviderDetails),ht=useAuthAbhaStore(Bt=>Bt.providerDetails),pt=useTrackAbhaEvent(),[vt,ut]=reactExports.useState(!1),[ot,nt]=reactExports.useState(!1),[dt,yt]=reactExports.useState(!1),[_t,At]=reactExports.useState(LOADING_STATE.IDLE),[xt,wt]=reactExports.useState(LOADING_STATE.IDLE),[Tt,It]=reactExports.useState(""),[Nt,Ct]=reactExports.useState(!1),jt=useAuthAbhaStore(Bt=>Bt.setAbhaAuthFlowMethod),[Et,gt]=reactExports.useState(""),[St,ct]=reactExports.useState(!1);reactExports.useEffect(()=>{pt({name:"page_view",data:{page_view:"abha_book_appointment_screen",platform:lt,flow:at}})},[]);const mt=async()=>{const Bt=await getProviderDetails();Bt&&(nt(!0),pt({name:"fetch_provider_details_success",data:{hip_id:Bt.hip_id,hip_name:Bt.hip_name,city:Bt.city,state:Bt.state,flow:at}}),ft(Bt))},Rt=async()=>{pt({name:"abha_get_abdm_profile_api_triggered",data:{platform:lt,flow:at}});let Bt=await getAbdmProfileV1();!Bt||Object.keys(Bt).length===0||Bt.error?(pt({name:"abha_get_abdm_profile_api_failed",data:{error_code:(Bt==null?void 0:Bt.code)??"NO_RESPONSE",error_msg:(Bt==null?void 0:Bt.error)??"No response received from server",source_error:(Bt==null?void 0:Bt.source_error)??null,flow:at}}),et({title:"Unable to get profile info",description:"Something went wrong",img:"",cta:{title:"",pid:"",params:null}})):Bt!=null&&Bt.abha_address&&(pt({name:"abha_get_abdm_profile_api_success",data:{platform:lt,flow:at}}),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,middlename:Bt==null?void 0:Bt.middle_name,abha_address:Bt==null?void 0:Bt.abha_address,abha_number:Bt==null?void 0:Bt.abha_number,kyc_verified:Bt==null?void 0:Bt.kyc_verified}))};reactExports.useEffect(()=>{mt(),st!=null&&st.abha_address||Rt()},[]);const kt=async()=>{if(st!=null&&st.abha_address){const{txn_id:Bt,error:$t,action:Vt}=await postAbdmSessionInit({abha_address:st==null?void 0:st.abha_address});if(pt({name:"abha_post_session_init_api_trigger",data:{platform:lt,flow:at}}),Bt){$(Bt),Ct(!0);return}else{pt({name:"abha_session_init_failure",data:{error_message:$t||"unknown_error",error_message_exists:!!$t,authTxnId:a,error_action:Vt,error_action_exists:!!Vt,flow:at}}),et({title:"Please try again",description:$t||"Something went wrong.",img:"",cta:{title:"",pid:"",params:null}});return}}else{pt({name:"abha_post_session_init_api_abha_address_not_found",data:{error_msg:"No Abha Address for session init",platform:lt,flow:at}});return}},Dt=async()=>{pt({name:"abha_post_request_generate_token_api_triggered",data:{platform:lt,flow:at}}),At(LOADING_STATE.LOADING);const{statusCode:Bt,data:$t}=await postRequestGenerateToken();if($t!=null&&$t.request_id){pt({name:"abha_post_request_generate_token_api_success",data:{request_id:$t.request_id,status:$t.status,flow:at}}),At(LOADING_STATE.RESOLVED),tt($t.request_id),rt(SCREEN_NAMES.APPOINTMENT_TOKEN_LOADER_SCREEN);return}else if(Bt!==200||!$t||$t.error){if(Bt===491){pt({name:"abha_post_request_generate_token_api_failed",data:{error_code:($t==null?void 0:$t.code)??"NO_RESPONSE",error_msg:($t==null?void 0:$t.error)??"No response received from server",source_error:($t==null?void 0:$t.source_error)??null,http_status:Bt,flow:at}}),kt();return}pt({name:"abha_post_request_generate_token_api_failed",data:{error_code:($t==null?void 0:$t.code)??"NO_RESPONSE",error_msg:($t==null?void 0:$t.error)??"No response received from server",source_error:($t==null?void 0:$t.source_error)??null,http_status:Bt,flow:at}}),et({title:"Unable to get appointment token",description:"Something went wrong while fetching the appointment token.",img:"",cta:{title:"",pid:"",params:null}}),At(LOADING_STATE.REJECTED)}},bt=()=>{At(LOADING_STATE.REJECTED),pt({name:"abha_generating_token_api_error_bottomsheet_dismissed",data:{platform:lt,flow:at}}),et(null)},Ht=async()=>{if(await postAuthLogoutV2()){pt({name:"abha_bookappointment_post_logout_success",data:{platform:lt,flow:at}}),removeExtraHeaders(["auth","X-Pt-Id"]),useAuthAbhaStore.getState().setAbhaAuthFlowMethod(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),rt(SCREEN_NAMES.LOGIN_OR_CREATE_ABHA);return}else pt({name:"abha_bookappointment_post_logout_failed",data:{platform:lt,flow:at}}),et({title:"Please try again",description:"Something went wrong.",img:"",cta:{title:"",pid:"",params:null}})},Pt=({otp:Bt})=>{gt(Bt),pt({name:"abha_session_verify_otp_completion",data:{type:"verify",platform:lt,txn_id:o,otp_entered:!0,method:_e,flow:at}}),Lt(Bt)},Lt=async Bt=>{if(b(""),!_){pt({name:"abha_session_otp_verify_txnId_not_found",data:{type:"verify",platform:lt,txn_id:o||"missing_txn_id",txn_id_exists:!!o,method:(_e==null?void 0:_e.toLowerCase())||"unknown_method",flow:at}});return}pt({name:"abha_session_otp_verify",data:{type:"verify",platform:lt,txn_id:o,flow:at}}),wt(LOADING_STATE.LOADING);const{statusCode:$t,data:Vt}=await postAbdmSessionVerify({otp:Bt,txn_id:_});if($t===200){pt({name:"abha_session_otp_verify_success",data:{type:"verify",platform:lt,txn_id:o,flow:at}}),Ct(!1),wt(LOADING_STATE.RESOLVED),Dt();return}if($t!=200&&(Vt!=null&&Vt.error)){pt({name:"abha_session_otp_verify_error",data:{type:"verify",platform:lt,error_message:(Vt==null?void 0:Vt.error)||"unknown_error",error_message_exists:!!(Vt!=null&&Vt.error),flow:at}}),wt(LOADING_STATE.REJECTED),It(Vt==null?void 0:Vt.error);return}if($t!=200&&!(Vt!=null&&Vt.error)){Ct(!1),pt({name:"abha_post_request_generate_token_api_failed",data:{error_msg:"No response received from server",platform:lt,http_status:$t,flow:at}}),et({title:"Unable to get verify",description:"Something went wrong, Please try again later.",img:"",cta:{title:"",pid:"",params:null}}),wt(LOADING_STATE.REJECTED);return}};return ot&&ht?jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-base",children:[jsxRuntimeExports.jsx(Pds2Header,{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$3,{className:""})}),suffixIcon:jsxRuntimeExports.jsx("button",{className:"pds2-w-24 pds2-h-24 pds2-rounded-full pds2-flex pds2-items-center pds2-justify-center ripple",onClick:()=>yt(!0),children:jsxRuntimeExports.jsx(t$6,{className:"pds2-text-red"})}),title:"Book Appointment",className:"pds2-border-b-1 pds2-border-surface-muted"}),at==null||at===ABHA_INIT_FLOW.ABHA_REGISTRATION?jsxRuntimeExports.jsx(AbhaStepper,{}):jsxRuntimeExports.jsx("div",{className:"pds2-pt-40 pds2-bg-surface-subtle"}),dt&&jsxRuntimeExports.jsx("div",{onMouseLeave:()=>yt(!1),className:`pds2-absolute pds2-right-10 pds2-mt-2 pds2-z-50 pds2-animate-fade-in ${at===ABHA_INIT_FLOW.SCAN_AND_SHARE_KIOSK?"pds2-top-40":"pds2-top-90 "}`,children:jsxRuntimeExports.jsx(TooltipContent,{onLogout:Ht})}),jsxRuntimeExports.jsxs("div",{className:"pds2-p-16 pds2-space-y-16 pds2-overflow-y-auto pds2-flex-1 pds2-bg-surface-subtle",children:[jsxRuntimeExports.jsx("div",{className:"pds2-w-full ",children:jsxRuntimeExports.jsxs("div",{className:" pds2-w-fit pds2-flex pds2-items-center pds2-flex-col pds2-mx-auto",children:[jsxRuntimeExports.jsx("div",{className:"pds2-bg-surface-base pds2-rounded-50 pds2-h-64 pds2-w-64 pds2-flex pds2-items-center pds2-justify-center ",children:jsxRuntimeExports.jsx(l$5,{className:"pds2-h-48 pds2-w-48 pds2-text-content-secondary"})}),jsxRuntimeExports.jsxs("div",{className:"pds2-text-center pds2-mt-8",children:[jsxRuntimeExports.jsx("div",{className:"Body1Medium",children:ht==null?void 0:ht.hip_name}),jsxRuntimeExports.jsx("div",{className:"Body3Regular",children:(ht==null?void 0:ht.city)+" "+(ht==null?void 0:ht.state)})]})]})}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-justify-between pds2-bg-surface-base pds2-border pds2-border-surface-muted pds2-rounded-16 pds2-p-16",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"Body1Medium pds2-text-content-primary",children:(st==null?void 0:st.firstname)+" "+(st==null?void 0:st.lastname)}),jsxRuntimeExports.jsxs("div",{className:"Body3Regular pds2-text-content-secondary",children:[" ",(st==null?void 0:st.gender)==="M"?"Male":(st==null?void 0:st.gender)==="F"?"Female":"Others"," ","·"," ",calculateAge({dob:(st==null?void 0:st.date_of_birth)??""}).split("y")[0].trim()," ","years"]}),jsxRuntimeExports.jsxs("div",{className:"Body3Regular pds2-text-content-secondary",children:["Abha Address: ",st==null?void 0:st.abha_address]}),jsxRuntimeExports.jsxs("div",{className:"Body3Regular pds2-text-content-secondary",children:["Mobile: ",st==null?void 0:st.mobile]})]}),jsxRuntimeExports.jsx("div",{className:"pds2-bg-surface-strong pds2-h-64 pds2-w-64 pds2-rounded-8 pds2-relative ",children:jsxRuntimeExports.jsx(l$1,{className:"pds2-text-surface-base pds2-h-50 pds2-w-64 pds2-bottom-1 pds2-absolute"})})]}),jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-justify-between pds2-bg-surface-base pds2-border pds2-border-surface-muted pds2-rounded-16 pds2-p-16",children:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-justify-between pds2-w-full",children:[jsxRuntimeExports.jsxs("div",{className:"Body2Regular pds2-flex pds2-items-center pds2-gap-8",children:[jsxRuntimeExports.jsx(t$8,{}),jsxRuntimeExports.jsx("div",{className:"Body1Medium pds2-text-content-secondary",children:"Time"})]}),jsxRuntimeExports.jsxs("div",{className:"Body2Medium pds2-text-content-primary",children:[" ",getAppointmentTokenTimeRange(30)]})]})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"pds2-text-content-primary Body3Semibold",children:"Please note"}),jsxRuntimeExports.jsxs("ul",{className:"Body3Regular pds2-text-content-secondary pds2-list-disc pds2-ml-20 pds2-mt-8 pds2-space-y-4",children:[jsxRuntimeExports.jsx("li",{children:"Your OPD appointment token will expire in 30 mins"}),jsxRuntimeExports.jsx("li",{children:"Patient’s ABHA profile will be shared with the hospital."}),jsxRuntimeExports.jsx("li",{children:"By booking appointment, you are allowing the hospital to link medical records with patient’s ABHA."})]})]})]}),jsxRuntimeExports.jsx("div",{className:"pds2-p-16 pds2-sticky pds2-bottom-0 pds2-bg-surface-base pds2-w-full pds2-border pds2-border-surface-muted",children:jsxRuntimeExports.jsx(Pds2Button,{title:"Get Appointment Token",IconComponent:()=>jsxRuntimeExports.jsx(c$3,{className:"pds2-w-16 pds2-h-16 -pds2-rotate-90 pds2-ml-8"}),onClick:()=>Dt(),className:"pds2-w-full",isLoading:_t===LOADING_STATE.LOADING})}),jsxRuntimeExports.jsx(AbhaBottomSheet,{isOpen:Nt,setIsOpen:Ct,setFlowMethod:jt,setError:It,children:jsxRuntimeExports.jsx("div",{className:"pds2-p-24 pds2-text-center pds2-h-1/4 pds2-flex pds2-flex-col",children:jsxRuntimeExports.jsxs("div",{className:"pds2-flex-1 pds2-flex pds2-flex-col pds2-justify-start",children:[jsxRuntimeExports.jsx("h2",{className:"Heading3Semibold pds2-text-content-primary pds2-mt-25",children:"Verify OTP"}),jsxRuntimeExports.jsx("p",{className:"Body2Regular pds2-text-content-secondary",children:"Enter OTP sent on your registered mobile number"}),jsxRuntimeExports.jsx("div",{className:"pds2-relative",children:jsxRuntimeExports.jsx(AbhaOtpCard,{onOtpCompletion:Pt,onResendOtpClick:kt,setIsValid:Bt=>{Tt&&It(null),ct(Bt)},prefixIcon:""})}),Tt&&jsxRuntimeExports.jsx("div",{className:"pds2-text-semantic-error Body3Regular pds2-mt-12",children:Tt}),jsxRuntimeExports.jsx(Pds2Button,{title:"Verify",state:!St||xt===LOADING_STATE.LOADING?"disabled":"enabled",onClick:()=>Lt(Et),className:"pds2-w-full pds2-mt-12"})]})})}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:bt}),jsxRuntimeExports.jsx(ExitPopup,{open:vt,setOpen:ut})]}):jsxRuntimeExports.jsx(AbhaVerificationStatus,{loading:!ot,loadingText:"Fetching details...",successText:"Details Fetched Successfully!"})},TooltipContent=({onLogout:a})=>jsxRuntimeExports.jsx("div",{className:"pds2-flex pds2-flex-col pds2-py-8 pds2-bg-surface-base pds2-border pds2-border-surface-muted pds2-rounded-16 pds2-w-120 pds2-animate-slide-up",children:jsxRuntimeExports.jsxs("div",{className:" pds2-flex pds2-justify-center pds2-items-center pds2-gap-x-8 pds2-py-6 hover:pds2-cursor-pointer",onClick:a,children:[jsxRuntimeExports.jsx("div",{className:"pds2-bg-surface-base pds2-rounded-full",children:jsxRuntimeExports.jsx(t$6,{className:"pds2-w-16 pds2-h-16 pds2-text-surface-danger"})}),jsxRuntimeExports.jsx("div",{className:"pds2-text-content-secondary",children:"Logout"})]})}),AbhaBottomSheet=({isOpen:a,setIsOpen:o,children:_,setFlowMethod:b,overlayClassName:$="pds2-bg-content-primary pds2-bg-opacity-50",setError:_e})=>{const[et,tt]=reactExports.useState(a);useAuthAbhaStore(st=>st.initAbhaFlow);const rt=GET_CLIENT_ID();return reactExports.useEffect(()=>{if(a)tt(!0);else{const st=setTimeout(()=>tt(!1),300);return()=>clearTimeout(st)}},[a]),et?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 ${$} pds2-transition-opacity pds2-duration-300 pds2-bg-surface-neutral}`}),jsxRuntimeExports.jsx("div",{className:`pds2-relative ${rt==="ext"?"pds2-bg-surface-subtle":"pds2-bg-surface-base"} pds2-rounded-t-24 pds2-w-full pds2-transition-transform pds2-duration-300 ${a?"pds2-translate-y-0":"pds2-translate-y-full"}`,style:{height:"50%",maxHeight:"600px",overflowY:"auto"},children:_})]}):null};var domToImage={exports:{}};(function(a){(function(o){var _=nt(),b=dt(),$=yt(),_e=_t(),et={imagePlaceholder:void 0,cacheBust:!1},tt={toSvg:rt,toPng:it,toJpeg:lt,toBlob:at,toPixelData:st,impl:{fontFaces:$,images:_e,util:_,inliner:b,options:{}}};a.exports=tt;function rt(At,xt){return xt=xt||{},ft(xt),Promise.resolve(At).then(function(Tt){return pt(Tt,xt.filter,!0)}).then(vt).then(ut).then(wt).then(function(Tt){return ot(Tt,xt.width||_.width(At),xt.height||_.height(At))});function wt(Tt){return xt.bgcolor&&(Tt.style.backgroundColor=xt.bgcolor),xt.width&&(Tt.style.width=xt.width+"px"),xt.height&&(Tt.style.height=xt.height+"px"),xt.style&&Object.keys(xt.style).forEach(function(It){Tt.style[It]=xt.style[It]}),Tt}}function st(At,xt){return ht(At,xt||{}).then(function(wt){return wt.getContext("2d").getImageData(0,0,_.width(At),_.height(At)).data})}function it(At,xt){return ht(At,xt||{}).then(function(wt){return wt.toDataURL()})}function lt(At,xt){return xt=xt||{},ht(At,xt).then(function(wt){return wt.toDataURL("image/jpeg",xt.quality||1)})}function at(At,xt){return ht(At,xt||{}).then(_.canvasToBlob)}function ft(At){typeof At.imagePlaceholder>"u"?tt.impl.options.imagePlaceholder=et.imagePlaceholder:tt.impl.options.imagePlaceholder=At.imagePlaceholder,typeof At.cacheBust>"u"?tt.impl.options.cacheBust=et.cacheBust:tt.impl.options.cacheBust=At.cacheBust}function ht(At,xt){return rt(At,xt).then(_.makeImage).then(_.delay(100)).then(function(Tt){var It=wt(At);return It.getContext("2d").drawImage(Tt,0,0),It});function wt(Tt){var It=document.createElement("canvas");if(It.width=xt.width||_.width(Tt),It.height=xt.height||_.height(Tt),xt.bgcolor){var Nt=It.getContext("2d");Nt.fillStyle=xt.bgcolor,Nt.fillRect(0,0,It.width,It.height)}return It}}function pt(At,xt,wt){if(!wt&&xt&&!xt(At))return Promise.resolve();return Promise.resolve(At).then(Tt).then(function(Ct){return It(At,Ct,xt)}).then(function(Ct){return Nt(At,Ct)});function Tt(Ct){return Ct instanceof HTMLCanvasElement?_.makeImage(Ct.toDataURL()):Ct.cloneNode(!1)}function It(Ct,jt,Et){var gt=Ct.childNodes;if(gt.length===0)return Promise.resolve(jt);return St(jt,_.asArray(gt),Et).then(function(){return jt});function St(ct,mt,Rt){var kt=Promise.resolve();return mt.forEach(function(Dt){kt=kt.then(function(){return pt(Dt,Rt)}).then(function(bt){bt&&ct.appendChild(bt)})}),kt}}function Nt(Ct,jt){if(!(jt instanceof Element))return jt;return Promise.resolve().then(Et).then(gt).then(St).then(ct).then(function(){return jt});function Et(){mt(window.getComputedStyle(Ct),jt.style);function mt(Rt,kt){Rt.cssText?kt.cssText=Rt.cssText:Dt(Rt,kt);function Dt(bt,Ht){_.asArray(bt).forEach(function(Pt){Ht.setProperty(Pt,bt.getPropertyValue(Pt),bt.getPropertyPriority(Pt))})}}}function gt(){[":before",":after"].forEach(function(Rt){mt(Rt)});function mt(Rt){var kt=window.getComputedStyle(Ct,Rt),Dt=kt.getPropertyValue("content");if(Dt===""||Dt==="none")return;var bt=_.uid();jt.className=jt.className+" "+bt;var Ht=document.createElement("style");Ht.appendChild(Pt(bt,Rt,kt)),jt.appendChild(Ht);function Pt(Lt,Bt,$t){var Vt="."+Lt+":"+Bt,Gt=$t.cssText?zt($t):Qt($t);return document.createTextNode(Vt+"{"+Gt+"}");function zt(Kt){var Ut=Kt.getPropertyValue("content");return Kt.cssText+" content: "+Ut+";"}function Qt(Kt){return _.asArray(Kt).map(Ut).join("; ")+";";function Ut(Jt){return Jt+": "+Kt.getPropertyValue(Jt)+(Kt.getPropertyPriority(Jt)?" !important":"")}}}}}function St(){Ct instanceof HTMLTextAreaElement&&(jt.innerHTML=Ct.value),Ct instanceof HTMLInputElement&&jt.setAttribute("value",Ct.value)}function ct(){jt instanceof SVGElement&&(jt.setAttribute("xmlns","http://www.w3.org/2000/svg"),jt instanceof SVGRectElement&&["width","height"].forEach(function(mt){var Rt=jt.getAttribute(mt);Rt&&jt.style.setProperty(mt,Rt)}))}}}function vt(At){return $.resolveAll().then(function(xt){var wt=document.createElement("style");return At.appendChild(wt),wt.appendChild(document.createTextNode(xt)),At})}function ut(At){return _e.inlineAll(At).then(function(){return At})}function ot(At,xt,wt){return Promise.resolve(At).then(function(Tt){return Tt.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(Tt)}).then(_.escapeXhtml).then(function(Tt){return'<foreignObject x="0" y="0" width="100%" height="100%">'+Tt+"</foreignObject>"}).then(function(Tt){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+xt+'" height="'+wt+'">'+Tt+"</svg>"}).then(function(Tt){return"data:image/svg+xml;charset=utf-8,"+Tt})}function nt(){return{escape:ct,parseExtension:xt,mimeType:wt,dataAsUrl:St,isDataUrl:Tt,canvasToBlob:Nt,resolveUrl:Ct,getAndEncode:gt,uid:jt(),delay:mt,asArray:Rt,escapeXhtml:kt,makeImage:Et,width:Dt,height:bt};function At(){var Pt="application/font-woff",Lt="image/jpeg";return{woff:Pt,woff2:Pt,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Lt,jpeg:Lt,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function xt(Pt){var Lt=/\.([^\.\/]*?)$/g.exec(Pt);return Lt?Lt[1]:""}function wt(Pt){var Lt=xt(Pt).toLowerCase();return At()[Lt]||""}function Tt(Pt){return Pt.search(/^(data:)/)!==-1}function It(Pt){return new Promise(function(Lt){for(var Bt=window.atob(Pt.toDataURL().split(",")[1]),$t=Bt.length,Vt=new Uint8Array($t),Gt=0;Gt<$t;Gt++)Vt[Gt]=Bt.charCodeAt(Gt);Lt(new Blob([Vt],{type:"image/png"}))})}function Nt(Pt){return Pt.toBlob?new Promise(function(Lt){Pt.toBlob(Lt)}):It(Pt)}function Ct(Pt,Lt){var Bt=document.implementation.createHTMLDocument(),$t=Bt.createElement("base");Bt.head.appendChild($t);var Vt=Bt.createElement("a");return Bt.body.appendChild(Vt),$t.href=Lt,Vt.href=Pt,Vt.href}function jt(){var Pt=0;return function(){return"u"+Lt()+Pt++;function Lt(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}function Et(Pt){return new Promise(function(Lt,Bt){var $t=new Image;$t.onload=function(){Lt($t)},$t.onerror=Bt,$t.src=Pt})}function gt(Pt){var Lt=3e4;return tt.impl.options.cacheBust&&(Pt+=(/\?/.test(Pt)?"&":"?")+new Date().getTime()),new Promise(function(Bt){var $t=new XMLHttpRequest;$t.onreadystatechange=zt,$t.ontimeout=Qt,$t.responseType="blob",$t.timeout=Lt,$t.open("GET",Pt,!0),$t.send();var Vt;if(tt.impl.options.imagePlaceholder){var Gt=tt.impl.options.imagePlaceholder.split(/,/);Gt&&Gt[1]&&(Vt=Gt[1])}function zt(){if($t.readyState===4){if($t.status!==200){Vt?Bt(Vt):Kt("cannot fetch resource: "+Pt+", status: "+$t.status);return}var Ut=new FileReader;Ut.onloadend=function(){var Jt=Ut.result.split(/,/)[1];Bt(Jt)},Ut.readAsDataURL($t.response)}}function Qt(){Vt?Bt(Vt):Kt("timeout of "+Lt+"ms occured while fetching resource: "+Pt)}function Kt(Ut){console.error(Ut),Bt("")}})}function St(Pt,Lt){return"data:"+Lt+";base64,"+Pt}function ct(Pt){return Pt.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function mt(Pt){return function(Lt){return new Promise(function(Bt){setTimeout(function(){Bt(Lt)},Pt)})}}function Rt(Pt){for(var Lt=[],Bt=Pt.length,$t=0;$t<Bt;$t++)Lt.push(Pt[$t]);return Lt}function kt(Pt){return Pt.replace(/#/g,"%23").replace(/\n/g,"%0A")}function Dt(Pt){var Lt=Ht(Pt,"border-left-width"),Bt=Ht(Pt,"border-right-width");return Pt.scrollWidth+Lt+Bt}function bt(Pt){var Lt=Ht(Pt,"border-top-width"),Bt=Ht(Pt,"border-bottom-width");return Pt.scrollHeight+Lt+Bt}function Ht(Pt,Lt){var Bt=window.getComputedStyle(Pt).getPropertyValue(Lt);return parseFloat(Bt.replace("px",""))}}function dt(){var At=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:It,shouldProcess:xt,impl:{readUrls:wt,inline:Tt}};function xt(Nt){return Nt.search(At)!==-1}function wt(Nt){for(var Ct=[],jt;(jt=At.exec(Nt))!==null;)Ct.push(jt[1]);return Ct.filter(function(Et){return!_.isDataUrl(Et)})}function Tt(Nt,Ct,jt,Et){return Promise.resolve(Ct).then(function(St){return jt?_.resolveUrl(St,jt):St}).then(Et||_.getAndEncode).then(function(St){return _.dataAsUrl(St,_.mimeType(Ct))}).then(function(St){return Nt.replace(gt(Ct),"$1"+St+"$3")});function gt(St){return new RegExp(`(url\\(['"]?)(`+_.escape(St)+`)(['"]?\\))`,"g")}}function It(Nt,Ct,jt){if(Et())return Promise.resolve(Nt);return Promise.resolve(Nt).then(wt).then(function(gt){var St=Promise.resolve(Nt);return gt.forEach(function(ct){St=St.then(function(mt){return Tt(mt,ct,Ct,jt)})}),St});function Et(){return!xt(Nt)}}}function yt(){return{resolveAll:At,impl:{readAll:xt}};function At(){return xt().then(function(wt){return Promise.all(wt.map(function(Tt){return Tt.resolve()}))}).then(function(wt){return wt.join(`
115
+ `)})}function xt(){return Promise.resolve(_.asArray(document.styleSheets)).then(Tt).then(wt).then(function(Nt){return Nt.map(It)});function wt(Nt){return Nt.filter(function(Ct){return Ct.type===CSSRule.FONT_FACE_RULE}).filter(function(Ct){return b.shouldProcess(Ct.style.getPropertyValue("src"))})}function Tt(Nt){var Ct=[];return Nt.forEach(function(jt){try{_.asArray(jt.cssRules||[]).forEach(Ct.push.bind(Ct))}catch(Et){console.log("Error while reading CSS rules from "+jt.href,Et.toString())}}),Ct}function It(Nt){return{resolve:function(){var jt=(Nt.parentStyleSheet||{}).href;return b.inlineAll(Nt.cssText,jt)},src:function(){return Nt.style.getPropertyValue("src")}}}}}function _t(){return{inlineAll:xt,impl:{newImage:At}};function At(wt){return{inline:Tt};function Tt(It){return _.isDataUrl(wt.src)?Promise.resolve():Promise.resolve(wt.src).then(It||_.getAndEncode).then(function(Nt){return _.dataAsUrl(Nt,_.mimeType(wt.src))}).then(function(Nt){return new Promise(function(Ct,jt){wt.onload=Ct,wt.onerror=jt,wt.src=Nt})})}}function xt(wt){if(!(wt instanceof Element))return Promise.resolve(wt);return Tt(wt).then(function(){return wt instanceof HTMLImageElement?At(wt).inline():Promise.all(_.asArray(wt.childNodes).map(function(It){return xt(It)}))});function Tt(It){var Nt=It.style.getPropertyValue("background");return Nt?b.inlineAll(Nt).then(function(Ct){It.style.setProperty("background",Ct,It.style.getPropertyPriority("background"))}).then(function(){return It}):Promise.resolve(It)}}}})()})(domToImage);var domToImageExports=domToImage.exports;const domtoimage=getDefaultExportFromCjs(domToImageExports),SAIcon="data:image/svg+xml,%3csvg%20width='60'%20height='60'%20viewBox='0%200%2060%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='60'%20height='60'%20rx='16'%20fill='%23FBFBFB'/%3e%3crect%20x='13'%20y='10'%20width='34'%20height='40'%20rx='6'%20fill='%23E4E1FA'%20stroke='%237265E3'%20stroke-width='1.5'/%3e%3crect%20x='21'%20y='5'%20width='18'%20height='10'%20rx='3'%20fill='%23FBFBFB'%20stroke='%237265E3'%20stroke-width='1.5'/%3e%3crect%20x='19'%20y='24'%20width='8'%20height='8'%20rx='1.5'%20stroke='%237265E3'%20stroke-width='1.2'%20fill='none'/%3e%3cpath%20d='M20.5%2028L22%2029.5L26%2025.5'%20stroke='%2327B961'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cline%20x1='31'%20y1='28'%20x2='42'%20y2='28'%20stroke='%237265E3'%20stroke-width='1.5'%20stroke-linecap='round'%20opacity='0.5'/%3e%3crect%20x='19'%20y='36'%20width='8'%20height='8'%20rx='1.5'%20stroke='%237265E3'%20stroke-width='1.2'%20fill='none'/%3e%3cpath%20d='M20.5%2040L22%2041.5L26%2037.5'%20stroke='%2327B961'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cline%20x1='31'%20y1='40'%20x2='39'%20y2='40'%20stroke='%237265E3'%20stroke-width='1.5'%20stroke-linecap='round'%20opacity='0.5'/%3e%3c/svg%3e",Chatbot="data:image/svg+xml,%3csvg%20width='60'%20height='60'%20viewBox='0%200%2060%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='60'%20height='60'%20rx='16'%20fill='%23FBFBFB'/%3e%3crect%20x='12'%20y='11'%20width='36'%20height='26'%20rx='8'%20fill='%23E4E1FA'%20stroke='%237265E3'%20stroke-width='1.5'/%3e%3cline%20x1='30'%20y1='17'%20x2='30'%20y2='31'%20stroke='%237265E3'%20stroke-width='2.5'%20stroke-linecap='round'/%3e%3cline%20x1='23'%20y1='24'%20x2='37'%20y2='24'%20stroke='%237265E3'%20stroke-width='2.5'%20stroke-linecap='round'/%3e%3cpath%20d='M18%2037L23%2032L28%2037'%20fill='%23E4E1FA'%20stroke='%237265E3'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20d='M11%2046L17%2046L20%2042L24%2050L28%2044L31%2046L42%2046'%20stroke='%2327B961'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20fill='none'/%3e%3c/svg%3e",AppointmentTokenScreen=()=>{const a=useAuthAbhaStore(It=>It.ekaProfileInfo),o=useAuthAbhaStore(It=>It.clientId),_=useAuthAbhaStore(It=>It.initAbhaFlow),b=useAuthAbhaStore(It=>It.providerDetails),$=useAuthAbhaStore(It=>It.appointmentTokenDetails),_e=useAuthAbhaStore(It=>It.setBottomsheetErrorInfo),et=useAuthAbhaStore(It=>It.setScreen),[tt,rt]=reactExports.useState(LOADING_STATE.IDLE),[st,it]=reactExports.useState(LOADING_STATE.IDLE),[lt,at]=reactExports.useState(!1),[ft,ht]=reactExports.useState(!1),[pt,vt]=reactExports.useState(!1),ut=useTrackAbhaEvent(),ot=GET_HIP_ID(),nt=GET_COUNTER_ID(),dt=GET_FACILITY_NAME();reactExports.useEffect(()=>{$&&sessionStorage.setItem(APPOINTMENT_TOKEN_CACHE_KEY,JSON.stringify({appointmentTokenDetails:$,ekaProfileInfo:a,providerDetails:b}))},[]),reactExports.useEffect(()=>{ut({name:"page_view",data:{page_view:"abha_appointment_token_screen",platform:o,flow:_}}),onAppointmentBookedSuccess("Appointment Booked success, Token Generated onAppointmentBookedSuccess called")},[]);const yt=async()=>{ut({name:"abha_download_abha_card_on_ekaapp_clicked",data:{platform:o,flow:_}}),rt(LOADING_STATE.LOADING);const It=await postMagicUrl({magic:!0,whatsapp:!1});!It||It!=null&&It.error?(ut({name:"abha_post_magic_url_api_failed",data:{error_code:It.code,error_msg:It.error,source_error:It.source_error,flow:_}}),_e({title:"Unable to open Eka App",description:"Something went wrong",img:"",cta:{title:"",pid:"",params:null}})):It!=null&&It.link&&(ut({name:"abha_post_magic_url_api_success",data:{link:It==null?void 0:It.link,flow:_}}),rt(LOADING_STATE.RESOLVED),window.open(It==null?void 0:It.link,"_blank"))},_t=async()=>{it(LOADING_STATE==null?void 0:LOADING_STATE.LOADING),ut({name:"abha_download_token_clicked",data:{platform:o,flow:_}});const It=document.getElementById("appointment-token");It&&domtoimage.toPng(It).then(Nt=>{it(LOADING_STATE==null?void 0:LOADING_STATE.RESOLVED),ut({name:"abha_download_token_success",data:{platform:o,flow:_}});const Ct=document.createElement("a");Ct.download="appointment-token.png",Ct.href=Nt,Ct.click()}).catch(Nt=>{it(LOADING_STATE==null?void 0:LOADING_STATE.REJECTED),ut({name:"abha_download_token_failed",data:{platform:o,flow:_}}),console.error("dom-to-image screenshot failed:",Nt)})},At=()=>{et(SCREEN_NAMES.BOOK_APPOINTMENT_SCREEN),ut({name:"abha_appointment_token_screen_bottomsheet_dismissed",data:{platform:o,flow:_}}),_e(null)},xt=()=>{var Ct;if(at(!0),ut({name:"abha_health_chatbot_clicked",data:{platform:o,flow:_}}),!document.querySelector('script[src*="medassist-widget-embed"]')){const jt=document.createElement("script");jt.src="https://unpkg.com/@eka-care/medassist-widget-embed@latest/dist/index.js",jt.async=!0,jt.type="module",document.body.appendChild(jt)}(Ct=document.getElementById("eka-medassist-container"))==null||Ct.remove();const It=document.createElement("div");It.id="eka-medassist-container";const Nt=document.createElement("eka-medassist-widget");Nt.setAttribute("title","Med Assist"),Nt.setAttribute("display-mode","full"),Nt.setAttribute("agent-id","YTA1NWMzNGYtMmQ5ZC00YjU3LTgyNGEtOTMzZDkzYjY3YjQ2Izc3MDg4MTY2OTk2NzI0"),Nt.setAttribute("icon-url","https://cdn.eka.care/dev-console/77088166996724/agents/icons/ec4f747e-eb16-4f8a-ba6e-a485ea7dde95/eka_logo_.jpeg"),It.appendChild(Nt),document.body.appendChild(It),customElements.whenDefined("eka-medassist-widget").then(()=>{at(!1)})},wt=()=>{ht(!0),ut({name:"abha_self_assessment_clicked",data:{platform:o,flow:_}}),et(SCREEN_NAMES.SA_LISTING_SCREEN)},Tt=async()=>{if(sessionStorage.removeItem(APPOINTMENT_TOKEN_CACHE_KEY),vt(!0),ut({name:"abha_token_generated_start_again_clicked",data:{flow:_,platform:o}}),await postAuthLogoutV2()){ut({name:"abha_token_generated_post_logout_success",data:{platform:o,flow:_}}),removeExtraHeaders(["auth","X-Pt-Id"]),useAuthAbhaStore.getState().setAbhaAuthFlowMethod(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER),window.location.href=`https://www.eka.care/ayushman-bharat/abha-kiosk-setup?hip-id=${ot}&counter-id=${nt}&name=${dt}`;return}else ut({name:"abha_token_generated_post_logout_failed",data:{platform:o,flow:_}}),vt(!1),_e({title:"Please try again",description:"Something went wrong.",img:"",cta:{title:"",pid:"",params:null}})};return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-base",children:[jsxRuntimeExports.jsx(Pds2Header,{title:"",className:"",prefixIcon:"",showHeaderStrip:!1}),jsxRuntimeExports.jsxs("div",{className:"pds2-p-16 pds2-pt-60 pds2-space-y-16 pds2-overflow-y-auto pds2-flex-1 pds2-bg-surface-subtle ",children:[jsxRuntimeExports.jsx("div",{className:"pds2-w-full",children:jsxRuntimeExports.jsxs("div",{className:" pds2-w-fit pds2-flex pds2-items-center pds2-flex-col pds2-mx-auto",children:[jsxRuntimeExports.jsx("img",{src:TickSwiggly,className:"pds2-w-54 pds2-h-54 md:pds2-h-60 md:pds2-w-60 "}),jsxRuntimeExports.jsx("div",{className:"pds2-text-center pds2-mt-8",children:jsxRuntimeExports.jsx("div",{className:"Heading3Semibold",children:"Token Generated!"})})]})}),jsxRuntimeExports.jsxs("div",{id:"appointment-token",className:"pds2-bg-surface-base pds2-p-16",children:[jsxRuntimeExports.jsxs("div",{className:" pds2-flex pds2-justify-between",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"Body1Medium pds2-text-content-primary",children:b==null?void 0:b.hip_name}),jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-gap-5",children:[jsxRuntimeExports.jsx("div",{className:"pds2-bg-content-secondary pds2-h-12 pds2-w-12 pds2-rounded-50 pds2-relative ",children:jsxRuntimeExports.jsx(l$1,{className:"pds2-text-surface-base pds2-h-8 pds2-w-12 pds2-bottom-1 pds2-absolute"})}),jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-text-content-secondary",children:a==null?void 0:a.abha_address})]}),($==null?void 0:$.expiry)&&jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-gap-5",children:[jsxRuntimeExports.jsx(t$2,{className:"pds2-text-content-secondary pds2-h-12 pds2-w-12"}),jsxRuntimeExports.jsxs("div",{className:"Body3Regular pds2-text-content-secondary",children:["Valid till"," ",formatDateTime($==null?void 0:$.expiry,{date:!0,time:!0})]})]})]}),jsxRuntimeExports.jsx("div",{className:"Heading2Semibold pds2-h-65 pds2-bg-primary-brand pds2-text-surface-base pds2-rounded-12 pds2-text-center pds2-p-16",children:$==null?void 0:$.token_number})]}),jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-text-content-muted pds2-pt-12",children:"Proceed to the counter and get your OPD slip"})]}),_===ABHA_INIT_FLOW.SCAN_AND_SHARE&&jsxRuntimeExports.jsx(Pds2Button,{size:"small",isLoading:st===LOADING_STATE.LOADING,title:"Download your Token",buttonColor:"",className:"pds2-w-full",onClick:()=>_t()}),jsxRuntimeExports.jsx("div",{className:"pds2-rounded-16 pds2-overflow-hidden pds2-w-full pds2-border-surface-muted pds2-border",children:jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-items-center pds2-justify-between pds2-p-16 pds2-bg-surface-base",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-space-y-3",children:[jsxRuntimeExports.jsxs("div",{className:"Body1Semibold ",children:[(a==null?void 0:a.firstname)+" "+(a==null?void 0:a.lastname),",",jsxRuntimeExports.jsxs("span",{className:"Body3Regular pds2-text-content-secondary pds2-pl-8",children:[(a==null?void 0:a.gender)==="M"?"Male":(a==null?void 0:a.gender)==="F"?"Female":"Others",","," ",calculateAge({dob:(a==null?void 0:a.date_of_birth)??""}).split("y")[0].trim()," ","Years"]})]}),(a==null?void 0:a.abha_number)&&jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-space-y-2",children:jsxRuntimeExports.jsxs("div",{className:"",children:[jsxRuntimeExports.jsx("span",{className:" pds2-text-content-secondary",children:"ABHA No: "}),a==null?void 0:a.abha_number]})}),jsxRuntimeExports.jsx("div",{className:"Body3Regular pds2-space-y-2",children:jsxRuntimeExports.jsxs("div",{className:"",children:[jsxRuntimeExports.jsx("span",{className:" pds2-text-content-secondary",children:"ABHA Address: "}),a==null?void 0:a.abha_address]})})]}),jsxRuntimeExports.jsx("div",{className:"pds2-w-64 pds2-h-64 pds2-rounded-full pds2-bg-surface-base 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-64 pds2-h-64 pds2-rounded-full"})})]})}),_===ABHA_INIT_FLOW.SCAN_AND_SHARE_KIOSK&&jsxRuntimeExports.jsxs("div",{className:"pds2-text-center pds2-mt-8 pds2-space-y-20",children:[jsxRuntimeExports.jsx("div",{className:"Body1Medium",children:"While you wait"}),jsxRuntimeExports.jsxs("div",{className:"Body2Regular pds2-flex pds2-justify-center pds2-space-x-16 pds2-cursor-pointer pds2-z-50",children:[jsxRuntimeExports.jsxs("div",{className:"pds2-dsplay-flex pds2-flex-col pds2-justify-items-center pds2-space-y-8 hover:pds2-text-primary-brand",onClick:xt,children:[lt?jsxRuntimeExports.jsx("div",{className:"pds2-bg-surface-base pds2-flex pds2-text-center pds2-p-10 pds2-w-54 pds2-h-54 md:pds2-h-60 md:pds2-w-60 pds2-rounded-16 pds2-text-primary-brand",children:jsxRuntimeExports.jsx(Pds2Spinner,{size:30})}):jsxRuntimeExports.jsx("img",{src:Chatbot,className:"pds2-w-54 pds2-h-54 md:pds2-h-60 md:pds2-w-60"}),jsxRuntimeExports.jsxs("div",{children:["Health ",jsxRuntimeExports.jsx("br",{}),"Chatbot"]})]}),jsxRuntimeExports.jsxs("div",{className:"pds2-dsplay-flex pds2-flex-col pds2-justify-items-center pds2-space-y-8 pds2-cursor-pointer hover:pds2-text-primary-brand",onClick:wt,children:[ft?jsxRuntimeExports.jsx("div",{className:"pds2-bg-surface-base pds2-flex pds2-text-center pds2-p-10 pds2-w-54 pds2-h-54 md:pds2-h-60 md:pds2-w-60 pds2-rounded-16 pds2-text-primary-brand",children:jsxRuntimeExports.jsx(Pds2Spinner,{size:30})}):jsxRuntimeExports.jsx("img",{src:SAIcon,className:"pds2-w-54 pds2-h-54 md:pds2-h-60 md:pds2-w-60"}),jsxRuntimeExports.jsxs("div",{children:["Self ",jsxRuntimeExports.jsx("br",{})," Assessment"]})]})]}),jsxRuntimeExports.jsxs("div",{className:"Body2Regular pds2-dsplay-flex pds2-flex-col pds2-justify-items-center pds2-space-y-8 hover:pds2-text-primary-brand pds2-cursor-pointer",onClick:Tt,children:[pt?jsxRuntimeExports.jsx("div",{className:"pds2-bg-surface-base pds2-flex pds2-text-center pds2-p-10 pds2-w-54 pds2-h-54 pds2-rounded-16 md:pds2-h-60 md:pds2-w-60 pds2-text-semantic-success",children:jsxRuntimeExports.jsx(Pds2Spinner,{size:30})}):jsxRuntimeExports.jsx("div",{className:" pds2-bg-surface-base pds2-p-15 pds2-w-54 pds2-h-54 md:pds2-h-60 md:pds2-w-60 pds2-rounded-16",children:jsxRuntimeExports.jsx(t,{className:" pds2-text-semantic-success"})}),jsxRuntimeExports.jsx("div",{children:"Start Again"})]}),jsxRuntimeExports.jsx("div",{})]}),_===ABHA_INIT_FLOW.SCAN_AND_SHARE&&jsxRuntimeExports.jsx(Pds2Button,{size:"small",isLoading:tt===LOADING_STATE.LOADING,textColor:"pds2-text-primary-brand",title:"Download ABHA card on Eka App",buttonColor:"pds2-bg-surface-base",className:"pds2-w-full pds2-border-surface-muted pds2-border",onClick:()=>yt()})]}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:At})]})},AppointmentTokenLoaderScreen=()=>{const a=useAuthAbhaStore(st=>st.setScreen),o=useAuthAbhaStore(st=>st.goBackScreen),_=useAuthAbhaStore(st=>st.setBottomsheetErrorInfo),b=useAuthAbhaStore(st=>st.clientId),$=useAuthAbhaStore(st=>st.appointmentRequestId),_e=useAuthAbhaStore(st=>st.setAppointmentTokenDetails),et=useAuthAbhaStore(st=>st.initAbhaFlow),tt=useTrackAbhaEvent();reactExports.useEffect(()=>{tt({name:"abha_generating_token_loader_screen",data:{page_view:"abha_generating_token_loader_screen",platform:b,flow:et}})},[]),reactExports.useEffect(()=>{let st=0;const it=10;let lt;const at=async()=>{st++;try{const ft=await getAppointmentToken({request_id:$||""});if(console.log("Poll attempt:",st,"Response:",ft),(ft==null?void 0:ft.status)==="success"){clearInterval(lt),_e(ft),a(SCREEN_NAMES.APPOINTMENT_TOKEN_GENERATED_SCREEN);return}else if(ft!=null&&ft.error){clearInterval(lt),_({title:"Failed to generate token",img:"",description:"Please try again.",cta:{title:"",pid:"",params:null}});return}if(st>=it){clearInterval(lt),_({title:"Please try again.",img:"",description:"Something went wrong.",cta:{title:"",pid:"",params:null}});return}}catch(ft){console.error("Error in token generate poll:",ft)}};return at(),lt=setInterval(at,3e3),()=>clearInterval(lt)},[$]);const rt=()=>{tt({name:"abha_generating_token_loader_screen_bottomsheet_dismissed",data:{platform:b,flow:et}}),_(null),o()};return jsxRuntimeExports.jsxs("div",{className:"pds2-flex pds2-flex-col pds2-w-full pds2-h-full pds2-bg-surface-base",children:[jsxRuntimeExports.jsx(AbhaLoadingStatus,{loaderText:"Generating token..."}),jsxRuntimeExports.jsx(AbhaErrorBottomSheet,{onSubmitClick:rt})]})},ScreenStack=()=>{const a=useAuthAbhaStore(_=>_.screen);switch(a[a.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.VERIFY_KYC_OTP_LOGIN_WITH_ABHA:return jsxRuntimeExports.jsx(AbhaKycOtpVerifyScreen,{});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,{});case SCREEN_NAMES.CONSENT_SCREEN:return jsxRuntimeExports.jsx(ConsentDetailsScreen,{});case SCREEN_NAMES.CONSENT_DENY:return jsxRuntimeExports.jsx(AbhaConsentDenyScreen,{});case SCREEN_NAMES.CONSENT_REVOKE:return jsxRuntimeExports.jsx(AbhaConsentRevokeScreen,{});case SCREEN_NAMES.CONSENT_APPROVE:return jsxRuntimeExports.jsx(AbhaConsentApproveScreen,{});case SCREEN_NAMES.SELF_ASSESSMENT:return jsxRuntimeExports.jsx(SelfAssessmentScreen,{});case SCREEN_NAMES.SA_LISTING_SCREEN:return jsxRuntimeExports.jsx(SaListingScreen,{});case SCREEN_NAMES.CONSENT_LOADER_SCREEN:return jsxRuntimeExports.jsx(ConsentLoaderScreen,{});case SCREEN_NAMES.KYC_LOGIN_SCREEN:return jsxRuntimeExports.jsx(KYCLoginScreen,{});case SCREEN_NAMES.KYC_ALREADY_VERIFIED:return jsxRuntimeExports.jsx(AbhaKycAlreadyVerifiedScreen,{});case SCREEN_NAMES.ABHA_AUTH_QR_SCREEN:return jsxRuntimeExports.jsx(AbhaAuthQRScreen,{});case SCREEN_NAMES.AADHAAR_FACEAUTH_VERIFICATION_STATUS:return jsxRuntimeExports.jsx(AbhaAadhaarVerificationFaceAuthStatusScreen,{});case SCREEN_NAMES.ABHA_MOBILE_AND_OTP_SCREEN:return jsxRuntimeExports.jsx(AbhaMobileandOtpScreen,{});case SCREEN_NAMES.ABHA_HEALTHID_CARD_SCREEN:return jsxRuntimeExports.jsx(AbhaCardScreen,{});case SCREEN_NAMES.SESSION_STATUS_LOADER_SCREEN:return jsxRuntimeExports.jsx(AbhaSessionStatusLoaderScreen,{});case SCREEN_NAMES.EARN_WITH_ABHA_SCREEN:return jsxRuntimeExports.jsx(EarnWithABHAScreen,{});case SCREEN_NAMES.BOOK_APPOINTMENT_SCREEN:return jsxRuntimeExports.jsx(BookAppointmentScreen,{});case SCREEN_NAMES.APPOINTMENT_TOKEN_GENERATED_SCREEN:return jsxRuntimeExports.jsx(AppointmentTokenScreen,{});case SCREEN_NAMES.APPOINTMENT_TOKEN_LOADER_SCREEN:return jsxRuntimeExports.jsx(AppointmentTokenLoaderScreen,{});default:return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}},queryClient=new QueryClient,SCALE=1.5;function App(){const a=useAuthAbhaStore.getState().initAbhaFlow,o=useAuthAbhaStore(et=>et.screen);o[o.length-1];const[_,b]=reactExports.useState(()=>!!a&&a!="default"&&GET_CLIENT_ID()==="www-eka"&&(window.innerWidth>=1500||window.innerHeight>=1e3));reactExports.useEffect(()=>{const et=()=>b(!!a&&(window.innerWidth>=1500||window.innerHeight>=1e3));return window.addEventListener("resize",et),()=>{window.removeEventListener("resize",et),unMount()}},[]);const $=!!a&&a!="default"&&GET_CLIENT_ID()==="www-eka",_e=jsxRuntimeExports.jsx("div",{className:"pds2-h-full pds2-w-full pds2-bg-surface-base",style:{borderRadius:GET_CLIENT_ID()==="www-eka"&&!a?"1.5rem":void 0,position:"relative",height:_?`calc(100dvh / ${SCALE})`:GET_CLIENT_ID()==="www-eka"?a===ABHA_INIT_FLOW.CONSENT||a===ABHA_INIT_FLOW.ABHA_KYC||a===ABHA_INIT_FLOW.ABHA_REGISTRATION||a===ABHA_INIT_FLOW.SCAN_AND_SHARE||a===ABHA_INIT_FLOW.SCAN_AND_SHARE_KIOSK?"100dvh":"75vh":GET_CLIENT_ID()==="doc-web"||GET_CLIENT_ID()==="ext"?"100%":"100dvh",width:_?`calc(100vw / ${SCALE})`:"100%",overflowY:"auto",borderTop:GET_CLIENT_ID()==="androiddoc"||GET_CLIENT_ID()==="doctor-app-ios"||GET_CLIENT_ID()==="doctor-ipad-ios"?"1rem solid #f2f4f7":"0rem",..._&&{transform:`scale(${SCALE})`,transformOrigin:"top left"}},children:jsxRuntimeExports.jsx(ScreenStack,{})});return jsxRuntimeExports.jsx(QueryClientProvider,{client:queryClient,children:$?jsxRuntimeExports.jsx("div",{style:{width:"100vw",height:"100dvh",overflow:"hidden",position:"fixed",top:0,left:0},children:_e}):_e})}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 o=0;const _=a.split("").reverse().map(b=>parseInt(b,10));for(let b=0;b<_.length;b++)o=d[o][p[b%8][_[b]]];return o===0}function isValidAadhaar(a){return/^\d{12}$/.test(a)?verhoeffValidate(a):!1}const abhaRegex=/^[0-9]{14}$/;function luhnCheck(a){let o=0,_=!1;for(let b=a.length-1;b>=0;b--){let $=parseInt(a[b],10);_&&($*=2,$>9&&($-=9)),o+=$,_=!_}return o%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),THEME_TOKEN_MAP={surface:{base:[{className:"pds2-bg-surface-base",cssProp:"background-color"},{className:"pds2-text-content-enabled",cssProp:"color"}],subtle:[{className:"pds2-bg-surface-subtle",cssProp:"background-color"},{className:"pds2-border-surface-subtle",cssProp:"border-color"}],muted:[{className:"pds2-bg-surface-muted",cssProp:"background-color"},{className:"pds2-border-surface-muted",cssProp:"border-color"},{className:"pds2-text-surface-muted",cssProp:"color"}],strong:[{className:"pds2-bg-surface-strong",cssProp:"background-color"},{className:"pds2-border-surface-strong",cssProp:"border-color"}],success:[{className:"pds2-bg-surface-success",cssProp:"background-color"}],danger:[{className:"pds2-bg-surface-danger",cssProp:"background-color"}],neutral:[{className:"pds2-bg-surface-neutral",cssProp:"background-color"},{className:"pds2-border-surface-neutral",cssProp:"border-color"},{className:"pds2-shadow-surface-neutral",cssProp:"box-shadow"}],abhaCard:[{className:"pds2-bg-surface-abhaCard",cssProp:"background-color"}]},content:{primary:[{className:"pds2-text-content-primary",cssProp:"color"},{className:"pds2-bg-content-primary",cssProp:"background-color"}],secondary:[{className:"pds2-text-content-secondary",cssProp:"color"},{className:"pds2-shadow-content-secondary",cssProp:"box-shadow"}],muted:[{className:"pds2-text-content-muted",cssProp:"color"}],success:[{className:"pds2-text-content-success",cssProp:"color"}],enabled:[{className:"pds2-text-content-enabled",cssProp:"color"}]},semantic:{success:[{className:"pds2-bg-semantic-success",cssProp:"background-color"},{className:"pds2-text-semantic-success",cssProp:"color"}],warning:[{className:"pds2-bg-semantic-warning",cssProp:"background-color"},{className:"pds2-text-semantic-warning",cssProp:"color"}],error:[{className:"pds2-text-semantic-error",cssProp:"color"},{className:"pds2-border-semantic-error",cssProp:"border-color"}]},primary:{brand:[{className:"pds2-bg-primary-brand",cssProp:"background-color"},{className:"pds2-text-primary-brand",cssProp:"color"},{className:"pds2-ring-primary-brand",cssProp:"ring-color"},{className:"pds2-accent-primary-brand",cssProp:"accent-color"},{className:"pds2-border-primary-brand",cssProp:"border-color"}]}};function generateThemeCSS(a,o){var b,$;let _="";return Object.entries(a??{}).forEach(([_e,et])=>{et&&Object.entries(et).forEach(([tt,rt])=>{var it;if(!rt)return;const st=(it=THEME_TOKEN_MAP[_e])==null?void 0:it[tt];st&&st.forEach(({className:lt,cssProp:at})=>{_+=`
116
116
  /* 1. Standard states (Active, Hover, Focus) - Stopped from applying when disabled */
117
117
  #${o} .${lt}:not(:disabled),
118
118
  #${o} .hover\\:${lt}:hover:not(:disabled),
@@ -136,4 +136,4 @@ b.goToAndStop(pt-b.firstFrame-1,!0)}ht.type==="loop"&&(it===null||it!==ht.frames
136
136
  #${o} {
137
137
  --abha-stepper-track: ${a.surface.muted};
138
138
  }
139
- `),_}function injectThemeCSS(a,o){const _=`__abha_theme_${o}`;let b=document.getElementById(_);b||(b=document.createElement("style"),b.id=_,document.head.appendChild(b)),b.innerHTML=a}function removeThemeCSS(a){var o;(o=document.getElementById(`__abha_theme_${a}`))==null||o.remove()}const setIdentifier=(a,o)=>{useAuthAbhaStore.getState().setInitAbhaAppIdentifierType(a),useAuthAbhaStore.getState().setInitAbhaAppIdentifier(o)},handleIdentifier=(a,o,_)=>{if(a){const b=a.replace(/[\s-]/g,"");if(o){if(o===ABHA_AUTH_FLOW_METHOD.MOBILE){setIdentifier(ABHA_AUTH_FLOW_METHOD.MOBILE,a.slice(-10));return}setIdentifier(o,a);return}if(b.endsWith("@abdm")){setIdentifier(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS,b);return}if(/^\+91\d{10}$/.test(b)){const _e=b.slice(-10);if(_e.length===10&&isValidMobile(_e)){setIdentifier(ABHA_AUTH_FLOW_METHOD.MOBILE,_e);return}}else if(/^\d+$/.test(b)){const _e=b.length;if(_e===10&&isValidMobile(b)){setIdentifier(ABHA_AUTH_FLOW_METHOD.MOBILE,b);return}if(_e===12&&isValidAadhaar(b)){setIdentifier(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,b);return}if(_e===14&&isValidABHA(b)){const et=`${b.slice(0,2)}-${b.slice(2,6)}-${b.slice(6,10)}-${b.slice(10,14)}`;setIdentifier(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER,et);return}console.warn("Unknown numeric identifier type");return}console.warn("Unknown identifier type")}else console.warn("No identifier provided")};let PopupReactNode=null,unMount,onAbhaSuccess,onKYCSuccess,onSkipAbha,onConsentSuccess,onAppointmentBookedSuccess;function initAbhaApp(a){var ct,mt;console.log("clear the abha auth store for every sdk invocation",a),useAuthAbhaStore.getState().clearAbhaAuthStore();const{clientId:o,containerId:_,urlParams:b,method:$,theme:_e,data:et,appVersion:tt,onSuccess:rt,onError:st,onAbhaClose:it}=a,{mobile:lt,accessToken:at,oid:ft,hipId:ht,identifier:pt,identifier_type:vt,flow:ut,consent_id:ot,skipABHAEnable:nt,linkToOrgIcon:dt,orgIconUrl:yt,successRedirect:_t,regJourneyId:At,counter_id:xt,facilityName:wt}=et||{};if(_e){const Rt=generateThemeCSS(_e,_);injectThemeCSS(Rt,_)}console.log("recieved identifier, identifier_type",pt,vt),useAuthAbhaStore.getState().setLinkToOrgIcon(dt),useAuthAbhaStore.getState().setOrgIconUrl(yt),useAuthAbhaStore.getState().setQrCodeColors({fgColor:(ct=_e==null?void 0:_e.qrCodeColors)==null?void 0:ct.fgColor,bgColor:(mt=_e==null?void 0:_e.qrCodeColors)==null?void 0:mt.bgColor}),handleSendEvent({eventName:"recieved_init_identifiers",eventData:{flow:ut??"default",identifier:pt||"",identifier_type:vt||""}});const bt={};if(lt&&useAuthAbhaStore.getState().setIdentifierValue({mobile:lt}),ut&&useAuthAbhaStore.getState().setInitAbhaFlow(ut),_t&&useAuthAbhaStore.getState().setSuccessRedirect(_t),ot&&useAuthAbhaStore.getState().setAbhaRequestConsentId(ot),at&&(bt.auth=at),ht&&ut!=ABHA_INIT_FLOW.SCAN_AND_SHARE&&ut!=ABHA_INIT_FLOW.SCAN_AND_SHARE_KIOSK&&(bt["X-Hip-Id"]=ht),ht&&(ut==ABHA_INIT_FLOW.SCAN_AND_SHARE||ut==ABHA_INIT_FLOW.SCAN_AND_SHARE_KIOSK)&&setHipId(ht),xt&&(ut==ABHA_INIT_FLOW.SCAN_AND_SHARE||ut==ABHA_INIT_FLOW.SCAN_AND_SHARE_KIOSK)&&setCounterId(xt),wt&&(ut==ABHA_INIT_FLOW.SCAN_AND_SHARE||ut==ABHA_INIT_FLOW.SCAN_AND_SHARE_KIOSK)&&setFacilityName(wt),At&&setRegJourneyId(At),ft&&(ut===ABHA_INIT_FLOW.ABHA_KYC||ut===ABHA_INIT_FLOW.CONSENT)?bt["X-Pt-Id"]=ft:ft&&ut!=ABHA_INIT_FLOW.ABHA_KYC&&(bt["X-User-ID"]=ft),(ut===ABHA_INIT_FLOW.ABHA_KYC||ut===ABHA_INIT_FLOW.CONSENT||ut===ABHA_INIT_FLOW.SCAN_AND_SHARE||ut===ABHA_INIT_FLOW.SCAN_AND_SHARE_KIOSK)&&o==="www-eka"){const Rt=SCREEN_NAMES.SESSION_STATUS_LOADER_SCREEN;useAuthAbhaStore.getState().setInitState({screen:[Rt],urlParams:b})}else if(ut===ABHA_INIT_FLOW.ABHA_KYC&&(o==="androidp"||o==="patient-app-ios")){const Rt=SCREEN_NAMES.KYC_LOGIN_SCREEN;useAuthAbhaStore.getState().setInitState({screen:[Rt],urlParams:b})}else if(ut===ABHA_INIT_FLOW.ABHA_KYC&&(o==="androiddoc"||o==="doctor-app-ios"||o==="doctor-ipad-ios"||o==="doc-web"||o==="ext")){const Rt=SCREEN_NAMES.SESSION_STATUS_LOADER_SCREEN;useAuthAbhaStore.getState().setInitState({screen:[Rt],urlParams:b})}else{const Rt=SCREEN_NAMES.LOGIN_OR_CREATE_ABHA;useAuthAbhaStore.getState().setInitState({screen:[Rt],urlParams:b})}console.log("set headers in headers"),console.log("invoked initAbhaApp",bt);const It=bt!==null&&("auth"in bt||"X-User-ID"in bt);useAuthAbhaStore.getState().setIsEkaAppLogin(It),ut===ABHA_INIT_FLOW.CONSENT&&useAuthAbhaStore.getState().setAbhaAuthFlowMethod(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS),(o==="doc-web"||o==="ext")&&useAuthAbhaStore.getState().setIsEkaAppLogin(!0),console.log("clientId ",o),console.log("isEkaAppLogin",useAuthAbhaStore.getState().isEkaAppLogin),o==="doc-web"&&useAuthAbhaStore.getState().setIsEkaDocWebRequest(!0),nt&&useAuthAbhaStore.getState().setIsSkipABHAEnable(!0),o==="androiddoc"||o==="doctor-app-ios"||o==="doctor-ipad-ios"||o==="doc-web"||o==="ext"?useAuthAbhaStore.getState().setClientId("doctor"):o==="androidp"||o==="patient-app-ios"?(useAuthAbhaStore.getState().setSelectedAadhaarAuth(AADHAAR_AUTH_STATES.OTP),useAuthAbhaStore.getState().setClientId("phr")):o==="www-eka"?(useAuthAbhaStore.getState().setSelectedAadhaarAuth(AADHAAR_AUTH_STATES.OTP),useAuthAbhaStore.getState().setClientId("eka-web")):(console.log("here"),useAuthAbhaStore.getState().setClientId("phr"));let Nt=!1;handleSendEvent({eventName:"init_abha_app",eventData:{flow:ut??"default",platform:o,method:$||"",mobile:lt||"",accessToken:at||"",oid:ft||"",appVersion:tt||"",isEkaAppLogin:It.toString(),container_id:_}}),onTrack("init_abha_app",{platform:o,flow:ut??"default",method:$||"",mobile:lt||"",accessToken:bt.auth||"",oid:bt["X-User-ID"]||"",appVersion:tt||"",isEkaAppLogin:It.toString(),container_id:_}),(o==="androiddoc"||o==="doctor-app-ios"||o==="doctor-ipad-ios"||o==="doc-web"||o==="ext")&&(Nt=!0,useAuthAbhaStore.getState().setIsDocAppRequest(Nt),useAuthAbhaStore.getState().setFaceAuthEnable(!0)),useAuthAbhaStore.getState().setInitAbhaAppMethod($||"login_with_abha"),setEnv({clientId:o,env:"PROD",...bt&&{extraHeaders:bt}}),console.log("isProd is",!0);const Et=vt&&["mobile","aadhaar_number","abha_number","phr_address"].includes(vt)?vt:void 0;handleIdentifier(pt,Et),$==="login_abha_with_mobile"?useAuthAbhaStore.getState().setAbhaAuthFlowMethod(ABHA_AUTH_FLOW_METHOD.MOBILE):useAuthAbhaStore.getState().setAbhaAuthFlowMethod(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER);const gt=()=>{removeThemeCSS(_),useAuthAbhaStore.getState().clearAbhaAuthStore(),queryClient.removeQueries(),PopupReactNode==null||PopupReactNode.unmount(),it()},St=document.getElementById(_);if(!St){const Rt=`Element with id ${_} not found`;console.error(Rt),st({error:Rt}),gt();return}return onKYCSuccess=a.onKYCSuccess??(()=>{}),onConsentSuccess=a.onConsentSuccess??(()=>{}),onAppointmentBookedSuccess=a.onAppointmentBookedSuccess??(()=>{}),onSkipAbha=a.onSkipAbha??(()=>{}),onAbhaSuccess=rt??(()=>{}),PopupReactNode=createRoot(St),PopupReactNode.render(jsxRuntimeExports.jsx(App,{})),unMount=gt,window.closeAbhaApp=gt,gt}function onOtpAutoRead(a){a.success&&(console.log("recieved otp params",a.success,a.otp),useAuthAbhaStore.getState().setOTPFromAutoRead(a.otp))}window.onOtpAutoRead=onOtpAutoRead;window.initAbhaApp=initAbhaApp;function onTrack(a,o={}){var $;const _=useAuthAbhaStore.getState().clientId||"unknown-platform",b={...o,platform:_};console.log("Tracking Event:",a,b),($=window.curio)!=null&&$.pushToMixpanel?(console.log("Pushing to Mixpanel:",a,b),window.curio.pushToMixpanel(a,b)):(console.log("Curio not available. Queuing event:",a,b),console.error("Curio not available. Could not push event to Mixpanel."))}
139
+ `),_}function injectThemeCSS(a,o){const _=`__abha_theme_${o}`;let b=document.getElementById(_);b||(b=document.createElement("style"),b.id=_,document.head.appendChild(b)),b.innerHTML=a}function removeThemeCSS(a){var o;(o=document.getElementById(`__abha_theme_${a}`))==null||o.remove()}const setIdentifier=(a,o)=>{useAuthAbhaStore.getState().setInitAbhaAppIdentifierType(a),useAuthAbhaStore.getState().setInitAbhaAppIdentifier(o)},handleIdentifier=(a,o,_)=>{if(a){const b=a.replace(/[\s-]/g,"");if(o){if(o===ABHA_AUTH_FLOW_METHOD.MOBILE){setIdentifier(ABHA_AUTH_FLOW_METHOD.MOBILE,a.slice(-10));return}setIdentifier(o,a);return}if(b.endsWith("@abdm")){setIdentifier(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS,b);return}if(/^\+91\d{10}$/.test(b)){const _e=b.slice(-10);if(_e.length===10&&isValidMobile(_e)){setIdentifier(ABHA_AUTH_FLOW_METHOD.MOBILE,_e);return}}else if(/^\d+$/.test(b)){const _e=b.length;if(_e===10&&isValidMobile(b)){setIdentifier(ABHA_AUTH_FLOW_METHOD.MOBILE,b);return}if(_e===12&&isValidAadhaar(b)){setIdentifier(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER,b);return}if(_e===14&&isValidABHA(b)){const et=`${b.slice(0,2)}-${b.slice(2,6)}-${b.slice(6,10)}-${b.slice(10,14)}`;setIdentifier(ABHA_AUTH_FLOW_METHOD.ABHA_NUMBER,et);return}console.warn("Unknown numeric identifier type");return}console.warn("Unknown identifier type")}else console.warn("No identifier provided")};let PopupReactNode=null,unMount,onAbhaSuccess,onKYCSuccess,onSkipAbha,onConsentSuccess,onAppointmentBookedSuccess;function initAbhaApp(a){var ct,mt;console.log("clear the abha auth store for every sdk invocation",a),useAuthAbhaStore.getState().clearAbhaAuthStore();const{clientId:o,containerId:_,urlParams:b,method:$,theme:_e,data:et,appVersion:tt,onSuccess:rt,onError:st,onAbhaClose:it}=a,{mobile:lt,accessToken:at,oid:ft,hipId:ht,identifier:pt,identifier_type:vt,flow:ut,consent_id:ot,skipABHAEnable:nt,linkToOrgIcon:dt,orgIconUrl:yt,successRedirect:_t,regJourneyId:At,counter_id:xt,facilityName:wt}=et||{};if(_e){const Rt=generateThemeCSS(_e,_);injectThemeCSS(Rt,_)}console.log("recieved identifier, identifier_type",pt,vt),useAuthAbhaStore.getState().setLinkToOrgIcon(dt),useAuthAbhaStore.getState().setOrgIconUrl(yt),useAuthAbhaStore.getState().setQrCodeColors({fgColor:(ct=_e==null?void 0:_e.qrCodeColors)==null?void 0:ct.fgColor,bgColor:(mt=_e==null?void 0:_e.qrCodeColors)==null?void 0:mt.bgColor}),handleSendEvent({eventName:"recieved_init_identifiers",eventData:{flow:ut??"default",identifier:pt||"",identifier_type:vt||""}});const Tt={};if(lt&&useAuthAbhaStore.getState().setIdentifierValue({mobile:lt}),ut&&useAuthAbhaStore.getState().setInitAbhaFlow(ut),_t&&useAuthAbhaStore.getState().setSuccessRedirect(_t),ot&&useAuthAbhaStore.getState().setAbhaRequestConsentId(ot),at&&(Tt.auth=at),ht&&ut!=ABHA_INIT_FLOW.SCAN_AND_SHARE&&ut!=ABHA_INIT_FLOW.SCAN_AND_SHARE_KIOSK&&(Tt["X-Hip-Id"]=ht),ht&&(ut==ABHA_INIT_FLOW.SCAN_AND_SHARE||ut==ABHA_INIT_FLOW.SCAN_AND_SHARE_KIOSK)&&setHipId(ht),xt&&(ut==ABHA_INIT_FLOW.SCAN_AND_SHARE||ut==ABHA_INIT_FLOW.SCAN_AND_SHARE_KIOSK)&&setCounterId(xt),wt&&(ut==ABHA_INIT_FLOW.SCAN_AND_SHARE||ut==ABHA_INIT_FLOW.SCAN_AND_SHARE_KIOSK)&&setFacilityName(wt),At&&setRegJourneyId(At),ft&&(ut===ABHA_INIT_FLOW.ABHA_KYC||ut===ABHA_INIT_FLOW.CONSENT)?Tt["X-Pt-Id"]=ft:ft&&ut!=ABHA_INIT_FLOW.ABHA_KYC&&(Tt["X-User-ID"]=ft),(ut===ABHA_INIT_FLOW.ABHA_KYC||ut===ABHA_INIT_FLOW.CONSENT||ut===ABHA_INIT_FLOW.SCAN_AND_SHARE||ut===ABHA_INIT_FLOW.SCAN_AND_SHARE_KIOSK)&&o==="www-eka"){const Rt=SCREEN_NAMES.SESSION_STATUS_LOADER_SCREEN;useAuthAbhaStore.getState().setInitState({screen:[Rt],urlParams:b})}else if(ut===ABHA_INIT_FLOW.ABHA_KYC&&(o==="androidp"||o==="patient-app-ios")){const Rt=SCREEN_NAMES.KYC_LOGIN_SCREEN;useAuthAbhaStore.getState().setInitState({screen:[Rt],urlParams:b})}else if(ut===ABHA_INIT_FLOW.ABHA_KYC&&(o==="androiddoc"||o==="doctor-app-ios"||o==="doctor-ipad-ios"||o==="doc-web"||o==="ext")){const Rt=SCREEN_NAMES.SESSION_STATUS_LOADER_SCREEN;useAuthAbhaStore.getState().setInitState({screen:[Rt],urlParams:b})}else{const Rt=SCREEN_NAMES.LOGIN_OR_CREATE_ABHA;useAuthAbhaStore.getState().setInitState({screen:[Rt],urlParams:b})}console.log("set headers in headers"),console.log("invoked initAbhaApp",Tt);const It=Tt!==null&&("auth"in Tt||"X-User-ID"in Tt);useAuthAbhaStore.getState().setIsEkaAppLogin(It),ut===ABHA_INIT_FLOW.CONSENT&&useAuthAbhaStore.getState().setAbhaAuthFlowMethod(ABHA_AUTH_FLOW_METHOD.PHR_ADDRESS),(o==="doc-web"||o==="ext")&&useAuthAbhaStore.getState().setIsEkaAppLogin(!0),console.log("clientId ",o),console.log("isEkaAppLogin",useAuthAbhaStore.getState().isEkaAppLogin),o==="doc-web"&&useAuthAbhaStore.getState().setIsEkaDocWebRequest(!0),nt&&useAuthAbhaStore.getState().setIsSkipABHAEnable(!0),o==="androiddoc"||o==="doctor-app-ios"||o==="doctor-ipad-ios"||o==="doc-web"||o==="ext"?useAuthAbhaStore.getState().setClientId("doctor"):o==="androidp"||o==="patient-app-ios"?(useAuthAbhaStore.getState().setSelectedAadhaarAuth(AADHAAR_AUTH_STATES.OTP),useAuthAbhaStore.getState().setClientId("phr")):o==="www-eka"?(useAuthAbhaStore.getState().setSelectedAadhaarAuth(AADHAAR_AUTH_STATES.OTP),useAuthAbhaStore.getState().setClientId("eka-web")):(console.log("here"),useAuthAbhaStore.getState().setClientId("phr"));let Nt=!1;handleSendEvent({eventName:"init_abha_app",eventData:{flow:ut??"default",platform:o,method:$||"",mobile:lt||"",accessToken:at||"",oid:ft||"",appVersion:tt||"",isEkaAppLogin:It.toString(),container_id:_}}),onTrack("init_abha_app",{platform:o,flow:ut??"default",method:$||"",mobile:lt||"",accessToken:Tt.auth||"",oid:Tt["X-User-ID"]||"",appVersion:tt||"",isEkaAppLogin:It.toString(),container_id:_}),(o==="androiddoc"||o==="doctor-app-ios"||o==="doctor-ipad-ios"||o==="doc-web"||o==="ext")&&(Nt=!0,useAuthAbhaStore.getState().setIsDocAppRequest(Nt),useAuthAbhaStore.getState().setFaceAuthEnable(!0)),useAuthAbhaStore.getState().setInitAbhaAppMethod($||"login_with_abha"),setEnv({clientId:o,env:"PROD",...Tt&&{extraHeaders:Tt}}),console.log("isProd is",!0);const Et=vt&&["mobile","aadhaar_number","abha_number","phr_address"].includes(vt)?vt:void 0;handleIdentifier(pt,Et),$==="login_abha_with_mobile"?useAuthAbhaStore.getState().setAbhaAuthFlowMethod(ABHA_AUTH_FLOW_METHOD.MOBILE):useAuthAbhaStore.getState().setAbhaAuthFlowMethod(ABHA_AUTH_FLOW_METHOD.AADHAR_NUMBER);const gt=()=>{removeThemeCSS(_),useAuthAbhaStore.getState().clearAbhaAuthStore(),queryClient.removeQueries(),PopupReactNode==null||PopupReactNode.unmount(),it()},St=document.getElementById(_);if(!St){const Rt=`Element with id ${_} not found`;console.error(Rt),st({error:Rt}),gt();return}return onKYCSuccess=a.onKYCSuccess??(()=>{}),onConsentSuccess=a.onConsentSuccess??(()=>{}),onAppointmentBookedSuccess=a.onAppointmentBookedSuccess??(()=>{}),onSkipAbha=a.onSkipAbha??(()=>{}),onAbhaSuccess=rt??(()=>{}),PopupReactNode=createRoot(St),PopupReactNode.render(jsxRuntimeExports.jsx(App,{})),unMount=gt,window.closeAbhaApp=gt,gt}function onOtpAutoRead(a){a.success&&(console.log("recieved otp params",a.success,a.otp),useAuthAbhaStore.getState().setOTPFromAutoRead(a.otp))}window.onOtpAutoRead=onOtpAutoRead;window.initAbhaApp=initAbhaApp;function onTrack(a,o={}){var $;const _=useAuthAbhaStore.getState().clientId||"unknown-platform",b={...o,platform:_};console.log("Tracking Event:",a,b),($=window.curio)!=null&&$.pushToMixpanel?(console.log("Pushing to Mixpanel:",a,b),window.curio.pushToMixpanel(a,b)):(console.log("Curio not available. Queuing event:",a,b),console.error("Curio not available. Could not push event to Mixpanel."))}