Reading from NEAR testnet…
Reading from NEAR testnet…
EHRCk1PjHDtypjizxHk2CNHfq8Nyjet4vTwSQivSiVKi
web4.nearbuilders.testnet to web4.nearbuilders.testnet · failed
fs_store()
import{c1 as e}from"./index-DhqGQKi4.js";function t(){if(typeof WebSocket<"u")return WebSocket;if(typeof e.WebSocket<"u")return e.WebSocket;if(typeof window.WebSocket<"u")return window.WebSocket;if(typeof self.WebSocket<"u")return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}const n=t();export{n as WebSocket};
fs_store()
flags|=1024,zg!==null&&(Gj(zg),zg=null))),Bj(Mn,Fn),S(Fn),null;case 5:Lh(Fn);var $o=Hh(Gh.current);if(io=Fn.type,Mn!==null&&Fn.stateNode!=null)Cj(Mn,Fn,io,fo,$o),Mn.ref!==Fn.ref&&(Fn.flags|=512,Fn.flags|=2097152);else{if(!fo){if(Fn.stateNode===null)throw Error(p(166));return S(Fn),null}if(Mn=Hh(Eh.current),Gg(Fn)){fo=Fn.stateNode,io=Fn.type;var mo=Fn.memoizedProps;switch(fo[Of]=Fn,fo[Pf]=mo,Mn=(Fn.mode&1)!==0,io){case"dialog":D("cancel",fo),D("close",fo);break;case"iframe":case"object":case"embed":D("load",fo);break;case"video":case"audio":for($o=0;$o<lf.length;$o++)D(lf[$o],fo);break;case"source":D("error",fo);break;case"img":case"image":case"link":D("error",fo),D("load",fo);break;case"details":D("toggle",fo);break;case"input":Za(fo,mo),D("invalid",fo);break;case"select":fo._wrapperState={wasMultiple:!!mo.multiple},D("invalid",fo);break;case"textarea":hb(fo,mo),D("invalid",fo)}ub(io,mo),$o=null;for(var Ao in mo)if(mo.hasOwnProperty(Ao)){var jo=mo[Ao];Ao==="children"?typeof jo=="string"?fo.textContent!==jo&&(mo.suppressHydrationWarning!==!0&&Af(fo.textContent,jo,Mn),$o=["children",jo]):typeof jo=="number"&&fo.textContent!==""+jo&&(mo.suppressHydrationWarning!==!0&&Af(fo.textContent,jo,Mn),$o=["children",""+jo]):ea.hasOwnProperty(Ao)&&jo!=null&&Ao==="onScroll"&&D("scroll",fo)}switch(io){case"input":Va(fo),db(fo,mo,!0);break;case"textarea":Va(fo),jb(fo);break;case"select":case"option":break;default:typeof mo.onClick=="function"&&(fo.onclick=Bf)}fo=$o,Fn.updateQueue=fo,fo!==null&&(Fn.flags|=4)}else{Ao=$o.nodeType===9?$o:$o.ownerDocument,Mn==="http://www.w3.org/1999/xhtml"&&(Mn=kb(io)),Mn==="http://www.w3.org/1999/xhtml"?io==="script"?(Mn=Ao.createElement("div"),Mn.innerHTML="<script><\/script>",Mn=Mn.removeChild(Mn.firstChild)):typeof fo.is=="string"?Mn=Ao.createElement(io,{is:fo.is}):(Mn=Ao.createElement(io),io==="select"&&(Ao=Mn,fo.multiple?Ao.multiple=!0:fo.size&&(Ao.size=fo.size))):Mn=Ao.createElementNS(Mn,io),Mn[Of]=Fn,Mn[Pf]=fo,Aj(Mn,Fn,!1,!1),Fn.stateNode=Mn;e:{switch(Ao=vb(io,fo),io){case"dialog":D("cancel",Mn),D("close",Mn),$o=fo;break;case"iframe":case"object":case"embed":D("load",Mn),$o=fo;break;case"video":case"audio":for($o=0;$o<lf.length;$o++)D(lf[$o],Mn);$o=fo;break;case"source":D("error",Mn),$o=fo;break;case"img":case"image":case"link":D("error",Mn),D("load",Mn),$o=fo;break;case"details":D("toggle",Mn),$o=fo;break;case"input":Za(Mn,fo),$o=Ya(Mn,fo),D("invalid",Mn);break;case"option":$o=fo;break;case"select":Mn._wrapperState={wasMultiple:!!fo.multiple},$o=A({},fo,{value:void 0}),D("invalid",Mn);break;case"textarea":hb(Mn,fo),$o=gb(Mn,fo),D("invalid",Mn);break;default:$o=fo}ub(io,$o),jo=$o;for(mo in jo)if(jo.hasOwnProperty(mo)){var Lo=jo[mo];mo==="style"?sb(Mn,Lo):mo==="dangerouslySetInnerHTML"?(Lo=Lo?Lo.__html:void 0,Lo!=null&&nb(Mn,Lo)):mo==="children"?typeof Lo=="string"?(io!=="textarea"||Lo!=="")&&ob(Mn,Lo):typeof Lo=="number"&&ob(Mn,""+Lo):mo!=="suppressContentEditableWarning"&&mo!=="suppressHydrationWarning"&&mo!=="autoFocus"&&(ea.hasOwnProperty(mo)?Lo!=null&&mo==="onScroll"&&D("scroll",Mn):Lo!=null&&ta(Mn,mo,Lo,Ao))}switch(io){case"input":Va(Mn),db(Mn,fo,!1);break;case"textarea":Va(Mn),jb(Mn);break;case"option":fo.value!=null&&Mn.setAttribute("value",""+Sa(fo.value));break;case"select":Mn.multiple=!!fo.multiple,mo=fo.value,mo!=null?fb(Mn,!!fo.multiple,mo,!1):fo.defaultValue!=null&&fb(Mn,!!fo.multiple,fo.defaultValue,!0);break;default:typeof $o.onClick=="function"&&(Mn.onclick=Bf)}switch(io){case"button":case"input":case"select":case"textarea":fo=!!fo.autoFocus;break e;case"img":fo=!0;break e;default:fo=!1}}fo&&(Fn.flags|=4)}Fn.ref!==null&&(Fn.flags|=512,Fn.flags|=2097152)}return S(Fn),null;case 6:if(Mn&&Fn.stateNode!=null)Dj(Mn,Fn,Mn.memoizedProps,fo);else{if(typeof fo!="string"&&Fn.stateNode===null)throw Error(p(166));if(io=Hh(Gh.current),Hh(Eh.current),Gg(Fn)){if(fo=Fn.stateNode,io=Fn.memoizedProps,fo[Of]=Fn,(mo=fo.nodeValue!==io)&&(Mn=xg,Mn!==null))switch(Mn.tag){case 3:Af(fo.nodeValue,io,(Mn.mode&1)!==0);break;case 5:Mn.memoizedProps.suppressHydrationWarning!==!0&&Af(fo.nodeValue,io,(Mn.mode&1)!==0)}mo&&(Fn.flags|=4)}else fo=(io.nodeType===9?io:io.ownerDocument).createTextNode(fo),fo[Of]=Fn,Fn.stateNode=fo}return S(Fn),null;case 13:if(E(M),fo=Fn.memoizedState,Mn===null||Mn.memoizedState!==null&&Mn.memoizedState.dehydrated!==null){if(I&&yg!==null&&Fn.mode&1&&!(Fn.flags&128))Hg(),Ig(),Fn.flags|=98560,mo=!1;else if(mo=Gg(Fn),fo!==null&&fo.dehydrated!==null){if(Mn===null){if(!mo)throw Error(p(318));if(mo=Fn.memoizedState,mo=mo!==null?mo.dehydrated:null,!mo)throw Error(p(317));mo[Of]=Fn}else Ig(),!(Fn.flags&128)&&(Fn.memoizedState=null),Fn.flags|=4;S(Fn),mo=!1}else zg!==null&&(Gj(zg),zg=null),mo=!0;if(!mo)return Fn.flags&65536?Fn:null}return Fn.flags&128?(Fn.lanes=io,Fn):(fo=fo!==null,fo!==(Mn!==null&&Mn.memoizedState!==null)&&fo&&(Fn.child.flags|=8192,Fn.mode&1&&(Mn===null||M.current&1?T===0&&(T=3):uj())),Fn.updateQueue!==null&&(Fn.flags|=4),S(Fn),null);case 4:return Jh(),Bj(Mn,Fn),Mn===null&&sf(Fn.stateNode.containerInfo),S(Fn),null;case 10:return Rg(Fn.type._context),S(Fn),null;case 17:return Zf(Fn.type)&&$f(),S(Fn),null;case 19:if(E(M),mo=Fn.memoizedState,mo===null)return S(Fn),null;if(fo=(Fn.flags&128)!==0,Ao=mo.rendering,Ao===null)if(fo)Ej(mo,!1);else{if(T!==0||Mn!==null&&Mn.flags&128)for(Mn=Fn.child;Mn!==null;){if(Ao=Mh(Mn),Ao!==null){for(Fn.flags|=128,Ej(mo,!1),fo=Ao.updateQueue,fo!==null&&(Fn.updateQueue=fo,Fn.flags|=4),Fn.subtreeFlags=0,fo=io,io=Fn.child;io!==null;)mo=io,Mn=fo,mo.flags&=14680066,Ao=mo.alternate,Ao===null?(mo.childLanes=0,mo.lanes=Mn,mo.child=null,mo.subtreeFlags=0,mo.memoizedProps=null,mo.memoizedState=null,mo.updateQueue=null,mo.dependencies=null,mo.stateNode=null):(mo.childLanes=Ao.childLanes,mo.lanes=Ao.lanes,mo.child=Ao.child,mo.subtreeFlags=0,mo.deletions=null,mo.memoizedProps=Ao.memoizedProps,mo.memoizedState=Ao.memoizedState,mo.updateQueue=Ao.updateQueue,mo.type=Ao.type,Mn=Ao.dependencies,mo.dependencies=Mn===null?null:{lanes:Mn.lanes,firstContext:Mn.firstContext}),io=io.sibling;return G(M,M.current&1|2),Fn.child}Mn=Mn.sibling}mo.tail!==null&&B()>Hj&&(Fn.flags|=128,fo=!0,Ej(mo,!1),Fn.lanes=4194304)}else{if(!fo)if(Mn=Mh(Ao),Mn!==null){if(Fn.flags|=128,fo=!0,io=Mn.updateQueue,io!==null&&(Fn.updateQueue=io,Fn.flags|=4),Ej(mo,!0),mo.tail===null&&mo.tailMode==="hidden"&&!Ao.alternate&&!I)return S(Fn),null}else 2*B()-mo.renderingStartTime>Hj&&io!==1073741824&&(Fn.flags|=128,fo=!0,Ej(mo,!1),Fn.lanes=4194304);mo.isBackwards?(Ao.sibling=Fn.child,Fn.child=Ao):(io=mo.last,io!==null?io.sibling=Ao:Fn.child=Ao,mo.last=Ao)}return mo.tail!==null?(Fn=mo.tail,mo.rendering=Fn,mo.tail=Fn.sibling,mo.renderingStartTime=B(),Fn.sibling=null,io=M.current,G(M,fo?io&1|2:io&1),Fn):(S(Fn),null);case 22:case 23:return Ij(),fo=Fn.memoizedState!==null,Mn!==null&&Mn.memoizedState!==null!==fo&&(Fn.flags|=8192),fo&&Fn.mode&1?gj&1073741824&&(S(Fn),Fn.subtreeFlags&6&&(Fn.flags|=8192)):S(Fn),null;case 24:return null;case 25:return null}throw Error(p(156,Fn.tag))}function Jj(Mn,Fn){switch(wg(Fn),Fn.tag){case 1:return Zf(Fn.type)&&$f(),Mn=Fn.flags,Mn&65536?(Fn.flags=Mn&-65537|128,Fn):null;case 3:return Jh(),E(Wf),E(H),Oh(),Mn=Fn.flags,Mn&65536&&!(Mn&128)?(Fn.flags=Mn&-65537|128,Fn):null;case 5:return Lh(Fn),null;case 13:if(E(M),Mn=Fn.memoizedState,Mn!==null&&Mn.dehydrated!==null){if(Fn.alternate===null)throw Error(p(340));Ig()}return Mn=Fn.flags,Mn&65536?(Fn.flags=Mn&-65537|128,Fn):null;case 19:return E(M),null;case 4:return Jh(),null;case 10:return Rg(Fn.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(Mn,Fn){var io=Mn.ref;if(io!==null)if(typeof io=="function")try{io(null)}catch(fo){W(Mn,Fn,fo)}else io.current=null}function Nj(Mn,Fn,io){try{io()}catch(fo){W(Mn,Fn,fo)}}var Oj=!1;function Pj(Mn,Fn){if(Cf=dd,Mn=Me(),Ne(Mn)){if("selectionStart"in Mn)var io={start:Mn.selectionStart,end:Mn.selectionEnd};else e:{io=(io=Mn.ownerDocument)&&io.defaultView||window;var fo=io.getSelection&&io.getSelection();if(fo&&fo.rangeCount!==0){io=fo.anchorNode;var $o=fo.anchorOffset,mo=fo.focusNode;fo=fo.focusOffset;try{io.nodeType,mo.nodeType}catch{io=null;break e}var Ao=0,jo=-1,Lo=-1,Ho=0,zo=0,Go=Mn,Vo=null;t:for(;;){for(var Yo;Go!==io||$o!==0&&Go.nodeType!==3||(jo=Ao+$o),Go!==mo||fo!==0&&Go.nodeType!==3||(Lo=Ao+fo),Go.nodeType===3&&(Ao+=Go.nodeValue.length),(Yo=Go.firstChild)!==null;)Vo=Go,Go=Yo;for(;;){if(Go===Mn)break t;if(Vo===io&&++Ho===$o&&(jo=Ao),Vo===mo&&++zo===fo&&(Lo=Ao),(Yo=Go.nextSibling)!==null)break;Go=Vo,Vo=Go.parentNode}Go=Yo}io=jo===-1||Lo===-1?null:{start:jo,end:Lo}}else io=null}io=io||{start:0,end:0}}else io=null;for(Df={focusedElem:Mn,selectionRange:io},dd=!1,V=Fn;V!==null;)if(Fn=V,Mn=Fn.child,(Fn.subtreeFlags&1028)!==0&&Mn!==null)Mn.return=Fn,V=Mn;else for(;V!==null;){Fn=V;try{var Xo=Fn.alternate;if(Fn.flags&1024)switch(Fn.tag){case 0:case 11:case 15:break;case 1:if(Xo!==null){var is=Xo.memoizedProps,yl=Xo.memoizedState,us=Fn.stateNode,hs=us.getSnapshotBeforeUpdate(Fn.elementType===Fn.type?is:Lg(Fn.type,is),yl);us.__reactInternalSnapshotBeforeUpdate=hs}break;case 3:var _l=Fn.stateNode.containerInfo;_l.nodeType===1?_l.textContent="":_l.nodeType===9&&_l.documentElement&&_l.removeChild(_l.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163))}}catch(xl){W(Fn,Fn.return,xl)}if(Mn=Fn.sibling,Mn!==null){Mn.return=Fn.return,V=Mn;break}V=Fn.return}return Xo=Oj,Oj=!1,Xo}function Qj(Mn,Fn,io){var fo=Fn.updateQueue;if(fo=fo!==null?fo.lastEffect:null,fo!==null){var $o=fo=fo.next;do{if(($o.tag&Mn)===Mn){var mo=$o.destroy;$o.destroy=void 0,mo!==void 0&&Nj(Fn,io,mo)}$o=$o.next}while($o!==fo)}}function Rj(Mn,Fn){if(Fn=Fn.updateQueue,Fn=Fn!==null?Fn.lastEffect:null,Fn!==null){var io=Fn=Fn.next;do{if((io.tag&Mn)===Mn){var fo=io.create;io.destroy=fo()}io=io.next}while(io!==Fn)}}function Sj(Mn){var Fn=Mn.ref;if(Fn!==null){var io=Mn.stateNode;switch(Mn.tag){case 5:Mn=io;break;default:Mn=io}typeof Fn=="function"?Fn(Mn):Fn.current=Mn}}function Tj(Mn){var Fn=Mn.alternate;Fn!==null&&(Mn.alternate=null,Tj(Fn)),Mn.child=null,Mn.deletions=null,Mn.sibling=null,Mn.tag===5&&(Fn=Mn.stateNode,Fn!==null&&(delete Fn[Of],delete Fn[Pf],delete Fn[of],delete Fn[Qf],delete Fn[Rf])),Mn.stateNode=null,Mn.return=null,Mn.dependencies=null,Mn.memoizedProps=null,Mn.memoizedState=null,Mn.pendingProps=null,Mn.stateNode=null,Mn.updateQueue=null}function Uj(Mn){return Mn.tag===5||Mn.tag===3||Mn.tag===4}function Vj(Mn){e:for(;;){for(;Mn.sibling===null;){if(Mn.return===null||Uj(Mn.return))return null;Mn=Mn.return}for(Mn.sibling.return=Mn.return,Mn=Mn.sibling;Mn.tag!==5&&Mn.tag!==6&&Mn.tag!==18;){if(Mn.flags&2||Mn.child===null||Mn.tag===4)continue e;Mn.child.return=Mn,Mn=Mn.child}if(!(Mn.flags&2))return Mn.stateNode}}function Wj(Mn,Fn,io){var fo=Mn.tag;if(fo===5||fo===6)Mn=Mn.stateNode,Fn?io.nodeType===8?io.parentNode.insertBefore(Mn,Fn):io.insertBefore(Mn,Fn):(io.nodeType===8?(Fn=io.parentNode,Fn.insertBefore(Mn,io)):(Fn=io,Fn.appendChild(Mn)),io=io._reactRootContainer,io!=null||Fn.onclick!==null||(Fn.onclick=Bf));else if(fo!==4&&(Mn=Mn.child,Mn!==null))for(Wj(Mn,Fn,io),Mn=Mn.sibling;Mn!==null;)Wj(Mn,Fn,io),Mn=Mn.sibling}function Xj(Mn,Fn,io){var fo=Mn.tag;if(fo===5||fo===6)Mn=Mn.stateNode,Fn?io.insertBefore(Mn,Fn):io.appendChild(Mn);else if(fo!==4&&(Mn=Mn.child,Mn!==null))for(Xj(Mn,Fn,io),Mn=Mn.sibling;Mn!==null;)Xj(Mn,Fn,io),Mn=Mn.sibling}var X=null,Yj=!1;function Zj(Mn,Fn,io){for(io=io.child;io!==null;)ak(Mn,Fn,io),io=io.sibling}function ak(Mn,Fn,io){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,io)}catch{}switch(io.tag){case 5:U||Mj(io,Fn);case 6:var fo=X,$o=Yj;X=null,Zj(Mn,Fn,io),X=fo,Yj=$o,X!==null&&(Yj?(Mn=X,io=io.stateNode,Mn.nodeType===8?Mn.parentNode.removeChild(io):Mn.removeChild(io)):X.removeChild(io.stateNode));break;case 18:X!==null&&(Yj?(Mn=X,io=io.stateNode,Mn.nodeType===8?Kf(Mn.parentNode,io):Mn.nodeType===1&&Kf(Mn,io),bd(Mn)):Kf(X,io.stateNode));break;case 4:fo=X,$o=Yj,X=io.stateNode.containerInfo,Yj=!0,Zj(Mn,Fn,io),X=fo,Yj=$o;break;case 0:case 11:case 14:case 15:if(!U&&(fo=io.updateQueue,fo!==null&&(fo=fo.lastEffect,fo!==null))){$o=fo=fo.next;do{var mo=$o,Ao=mo.destroy;mo=mo.tag,Ao!==void 0&&(mo&2||mo&4)&&Nj(io,Fn,Ao),$o=$o.next}while($o!==fo)}Zj(Mn,Fn,io);break;case 1:if(!U&&(Mj(io,Fn),fo=io.stateNode,typeof fo.componentWillUnmount=="function"))try{fo.props=io.memoizedProps,fo.state=io.memoizedState,fo.componentWillUnmount()}catch(jo){W(io,Fn,jo)}Zj(Mn,Fn,io);break;case 21:Zj(Mn,Fn,io);break;case 22:io.mode&1?(U=(fo=U)||io.memoizedState!==null,Zj(Mn,Fn,io),U=fo):Zj(Mn,Fn,io);break;default:Zj(Mn,Fn,io)}}function bk(Mn){var Fn=Mn.updateQueue;if(Fn!==null){Mn.updateQueue=null;var io=Mn.stateNode;io===null&&(io=Mn.stateNode=new Lj),Fn.forEach(function(fo){var $o=ck.bind(null,Mn,fo);io.has(fo)||(io.add(fo),fo.then($o,$o))})}}function dk(Mn,Fn){var io=Fn.deletions;if(io!==null)for(var fo=0;fo<io.length;fo++){var $o=io[fo];try{var mo=Mn,Ao=Fn,jo=Ao;e:for(;jo!==null;){switch(jo.tag){case 5:X=jo.stateNode,Yj=!1;break e;case 3:X=jo.stateNode.containerInfo,Yj=!0;break e;case 4:X=jo.stateNode.containerInfo,Yj=!0;break e}jo=jo.return}if(X===null)throw Error(p(160));ak(mo,Ao,$o),X=null,Yj=!1;var Lo=$o.alternate;Lo!==null&&(Lo.return=null),$o.return=null}catch(Ho){W($o,Fn,Ho)}}if(Fn.subtreeFlags&12854)for(Fn=Fn.child;Fn!==null;)ek(Fn,Mn),Fn=Fn.sibling}function ek(Mn,Fn){var io=Mn.alternate,fo=Mn.flags;switch(Mn.tag){case 0:case 11:case 14:case 15:if(dk(Fn,Mn),fk(Mn),fo&4){try{Qj(3,Mn,Mn.return),Rj(3,Mn)}catch(is){W(Mn,Mn.return,is)}try{Qj(5,Mn,Mn.return)}catch(is){W(Mn,Mn.return,is)}}break;case 1:dk(Fn,Mn),fk(Mn),fo&512&&io!==null&&Mj(io,io.return);break;case 5:if(dk(Fn,Mn),fk(Mn),fo&512&&io!==null&&Mj(io,io.return),Mn.flags&32){var $o=Mn.stateNode;try{ob($o,"")}catch(is){W(Mn,Mn.return,is)}}if(fo&4&&($o=Mn.stateNode,$o!=null)){var mo=Mn.memoizedProps,Ao=io!==null?io.memoizedProps:mo,jo=Mn.type,Lo=Mn.updateQueue;if(Mn.updateQueue=null,Lo!==null)try{jo==="input"&&mo.type==="radio"&&mo.name!=null&&ab($o,mo),vb(jo,Ao);var Ho=vb(jo,mo);for(Ao=0;Ao<Lo.length;Ao+=2){var zo=Lo[Ao],Go=Lo[Ao+1];zo==="style"?sb($o,Go):zo==="dangerouslySetInnerHTML"?nb($o,Go):zo==="children"?ob($o,Go):ta($o,zo,Go,Ho)}switch(jo){case"input":bb($o,mo);break;case"textarea":ib($o,mo);break;case"select":var Vo=$o._wrapperState.wasMultiple;$o._wrapperState.wasMultiple=!!mo.multiple;var Yo=mo.value;Yo!=null?fb($o,!!mo.multiple,Yo,!1):Vo!==!!mo.multiple&&(mo.defaultValue!=null?fb($o,!!mo.multiple,mo.defaultValue,!0):fb($o,!!mo.multiple,mo.multiple?[]:"",!1))}$o[Pf]=mo}catch(is){W(Mn,Mn.return,is)}}break;case 6:if(dk(Fn,Mn),fk(Mn),fo&4){if(Mn.stateNode===null)throw Error(p(162));$o=Mn.stateNode,mo=Mn.memoizedProps;try{$o.nodeValue=mo}catch(is){W(Mn,Mn.return,is)}}break;case 3:if(dk(Fn,Mn),fk(Mn),fo&4&&io!==null&&io.memoizedState.isDehydrated)try{bd(Fn.containerInfo)}catch(is){W(Mn,Mn.return,is)}break;case 4:dk(Fn,Mn),fk(Mn);break;case 13:dk(Fn,Mn),fk(Mn),$o=Mn.child,$o.flags&8192&&(mo=$o.memoizedState!==null,$o.stateNode.isHidden=mo,!mo||$o.alternate!==null&&$o.alternate.memoizedState!==null||(gk=B())),fo&4&&bk(Mn);break;case 22:if(zo=io!==null&&io.memoizedState!==null,Mn.mode&1?(U=(Ho=U)||zo,dk(Fn,Mn),U=Ho):dk(Fn,Mn),fk(Mn),fo&8192){if(Ho=Mn.memoizedState!==null,(Mn.stateNode.isHidden=Ho)&&!zo&&Mn.mode&1)for(V=Mn,zo=Mn.child;zo!==null;){for(Go=V=zo;V!==null;){switch(Vo=V,Yo=Vo.child,Vo.tag){case 0:case 11:case 14:case 15:Qj(4,Vo,Vo.return);break;case 1:Mj(Vo,Vo.return);var Xo=Vo.stateNode;if(typeof Xo.componentWillUnmount=="function"){fo=Vo,io=Vo.return;try{Fn=fo,Xo.props=Fn.memoizedProps,Xo.state=Fn.memoizedState,Xo.componentWillUnmount()}catch(is){W(fo,io,is)}}break;case 5:Mj(Vo,Vo.return);break;case 22:if(Vo.memoizedState!==null){hk(Go);continue}}Yo!==null?(Yo.return=Vo,V=Yo):hk(Go)}zo=zo.sibling}e:for(zo=null,Go=Mn;;){if(Go.tag===5){if(zo===null){zo=Go;try{$o=Go.stateNode,Ho?(mo=$o.style,typeof mo.setProperty=="function"?mo.setProperty("display","none","important"):mo.display="none"):(jo=Go.stateNode,Lo=Go.memoizedProps.style,Ao=Lo!=null&&Lo.hasOwnProperty("display")?Lo.display:null,jo.style.display=rb("display",Ao))}catch(is){W(Mn,Mn.return,is)}}}else if(Go.tag===6){if(zo===null)try{Go.stateNode.nodeValue=Ho?"":Go.memoizedProps}catch(is){W(Mn,Mn.return,is)}}else if((Go.tag!==22&&Go.tag!==23||Go.memoizedState===null||Go===Mn)&&Go.child!==null){Go.child.return=Go,Go=Go.child;continue}if(Go===Mn)break e;for(;Go.sibling===null;){if(Go.return===null||Go.return===Mn)break e;zo===Go&&(zo=null),Go=Go.return}zo===Go&&(zo=null),Go.sibling.return=Go.return,Go=Go.sibling}}break;case 19:dk(Fn,Mn),fk(Mn),fo&4&&bk(Mn);break;case 21:break;default:dk(Fn,Mn),fk(Mn)}}function fk(Mn){var Fn=Mn.flags;if(Fn&2){try{e:{for(var io=Mn.return;io!==null;){if(Uj(io)){var fo=io;break e}io=io.return}throw Error(p(160))}switch(fo.tag){case 5:var $o=fo.stateNode;fo.flags&32&&(ob($o,""),fo.flags&=-33);var mo=Vj(Mn);Xj(Mn,mo,$o);break;case 3:case 4:var Ao=fo.stateNode.containerInfo,jo=Vj(Mn);Wj(Mn,jo,Ao);break;default:throw Error(p(161))}}catch(Lo){W(Mn,Mn.return,Lo)}Mn.flags&=-3}Fn&4096&&(Mn.flags&=-4097)}function ik(Mn,Fn,io){V=Mn,jk(Mn)}function jk(Mn,Fn,io){for(var fo=(Mn.mode&1)!==0;V!==null;){var $o=V,mo=$o.child;if($o.tag===22&&fo){var Ao=$o.memoizedState!==null||Kj;if(!Ao){var jo=$o.alternate,Lo=jo!==null&&jo.memoizedState!==null||U;jo=Kj;var Ho=U;if(Kj=Ao,(U=Lo)&&!Ho)for(V=$o;V!==null;)Ao=V,Lo=Ao.child,Ao.tag===22&&Ao.memoizedState!==null?kk($o):Lo!==null?(Lo.return=Ao,V=Lo):kk($o);for(;mo!==null;)V=mo,jk(mo),mo=mo.sibling;V=$o,Kj=jo,U=Ho}lk(Mn)}else $o.subtreeFlags&8772&&mo!==null?(mo.return=$o,V=mo):lk(Mn)}}function lk(Mn){for(;V!==null;){var Fn=V;if(Fn.flags&8772){var io=Fn.alternate;try{if(Fn.flags&8772)switch(Fn.tag){case 0:case 11:case 15:U||Rj(5,Fn);break;case 1:var fo=Fn.stateNode;if(Fn.flags&4&&!U)if(io===null)fo.componentDidMount();else{var $o=Fn.elementType===Fn.type?io.memoizedProps:Lg(Fn.type,io.memoizedProps);fo.componentDidUpdate($o,io.memoizedState,fo.__reactInternalSnapshotBeforeUpdate)}var mo=Fn.updateQueue;mo!==null&&ih(Fn,mo,fo);break;case 3:var Ao=Fn.updateQueue;if(Ao!==null){if(io=null,Fn.child!==null)switch(Fn.child.tag){case 5:io=Fn.child.stateNode;break;case 1:io=Fn.child.stateNode}ih(Fn,Ao,io)}break;case 5:var jo=Fn.stateNode;if(io===null&&Fn.flags&4){io=jo;var Lo=Fn.memoizedProps;switch(Fn.type){case"button":case"input":case"select":case"textarea":Lo.autoFocus&&io.focus();break;case"img":Lo.src&&(io.src=Lo.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(Fn.memoizedState===null){var Ho=Fn.alternate;if(Ho!==null){var zo=Ho.memoizedState;if(zo!==null){var Go=zo.dehydrated;Go!==null&&bd(Go)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(p(163))}U||Fn.flags&512&&Sj(Fn)}catch(Vo){W(Fn,Fn.return,Vo)}}if(Fn===Mn){V=null;break}if(io=Fn.sibling,io!==null){io.return=Fn.return,V=io;break}V=Fn.return}}function hk(Mn){for(;V!==null;){var Fn=V;if(Fn===Mn){V=null;break}var io=Fn.sibling;if(io!==null){io.return=Fn.return,V=io;break}V=Fn.return}}function kk(Mn){for(;V!==null;){var Fn=V;try{switch(Fn.tag){case 0:case 11:case 15:var io=Fn.return;try{Rj(4,Fn)}catch(Lo){W(Fn,io,Lo)}break;case 1:var fo=Fn.stateNode;if(typeof fo.componentDidMount=="function"){var $o=Fn.return;try{fo.componentDidMount()}catch(Lo){W(Fn,$o,Lo)}}var mo=Fn.return;try{Sj(Fn)}catch(Lo){W(Fn,mo,Lo)}break;case 5:var Ao=Fn.return;try{Sj(Fn)}catch(Lo){W(Fn,Ao,Lo)}}}catch(Lo){W(Fn,Fn.return,Lo)}if(Fn===Mn){V=null;break}var jo=Fn.sibling;if(jo!==null){jo.return=Fn.return,V=jo;break}V=Fn.return}}var mk=Math.ceil,nk=ua.ReactCurrentDispatcher,ok=ua.ReactCurrentOwner,pk=ua.ReactCurrentBatchConfig,K=0,R=null,Y=null,Z=0,gj=0,fj=Uf(0),T=0,qk=null,hh=0,rk=0,sk=0,tk=null,uk=null,gk=0,Hj=1/0,vk=null,Pi=!1,Qi=null,Si=null,wk=!1,xk=null,yk=0,zk=0,Ak=null,Bk=-1,Ck=0;function L(){return K&6?B():Bk!==-1?Bk:Bk=B()}function lh(Mn){return Mn.mode&1?K&2&&Z!==0?Z&-Z:Kg.transition!==null?(Ck===0&&(Ck=yc()),Ck):(Mn=C,Mn!==0||(Mn=window.event,Mn=Mn===void 0?16:jd(Mn.type)),Mn):1}function mh(Mn,Fn,io,fo){if(50<zk)throw zk=0,Ak=null,Error(p(185));Ac(Mn,io,fo),(!(K&2)||Mn!==R)&&(Mn===R&&(!(K&2)&&(rk|=io),T===4&&Dk(Mn,Z)),Ek(Mn,fo),io===1&&K===0&&!(Fn.mode&1)&&(Hj=B()+500,fg&&jg()))}function Ek(Mn,Fn){var io=Mn.callbackNode;wc(Mn,Fn);var fo=uc(Mn,Mn===R?Z:0);if(fo===0)io!==null&&bc(io),Mn.callbackNode=null,Mn.callbackPriority=0;else if(Fn=fo&-fo,Mn.callbackPriority!==Fn){if(io!=null&&bc(io),Fn===1)Mn.tag===0?ig(Fk.bind(null,Mn)):hg(Fk.bind(null,Mn)),Jf(function(){!(K&6)&&jg()}),io=null;else{switch(Dc(fo)){case 1:io=fc;break;case 4:io=gc;break;case 16:io=hc;break;case 536870912:io=jc;break;default:io=hc}io=Gk(io,Hk.bind(null,Mn))}Mn.callbackPriority=Fn,Mn.callbackNode=io}}function Hk(Mn,Fn){if(Bk=-1,Ck=0,K&6)throw Error(p(327));var io=Mn.callbackNode;if(Ik()&&Mn.callbackNode!==io)return null;var fo=uc(Mn,Mn===R?Z:0);if(fo===0)return null;if(fo&30||fo&Mn.expiredLanes||Fn)Fn=Jk(Mn,fo);else{Fn=fo;var $o=K;K|=2;var mo=Kk();(R!==Mn||Z!==Fn)&&(vk=null,Hj=B()+500,Lk(Mn,Fn));do try{Mk();break}catch(jo){Nk(Mn,jo)}while(!0);Qg(),nk.current=mo,K=$o,Y!==null?Fn=0:(R=null,Z=0,Fn=T)}if(Fn!==0){if(Fn===2&&($o=xc(Mn),$o!==0&&(fo=$o,Fn=Ok(Mn,$o))),Fn===1)throw io=qk,Lk(Mn,0),Dk(Mn,fo),Ek(Mn,B()),io;if(Fn===6)Dk(Mn,fo);else{if($o=Mn.current.alternate,!(fo&30)&&!Pk($o)&&(Fn=Jk(Mn,fo),Fn===2&&(mo=xc(Mn),mo!==0&&(fo=mo,Fn=Ok(Mn,mo))),Fn===1))throw io=qk,Lk(Mn,0),Dk(Mn,fo),Ek(Mn,B()),io;switch(Mn.finishedWork=$o,Mn.finishedLanes=fo,Fn){case 0:case 1:throw Error(p(345));case 2:Qk(Mn,uk,vk);break;case 3:if(Dk(Mn,fo),(fo&130023424)===fo&&(Fn=gk+500-B(),10<Fn)){if(uc(Mn,0)!==0)break;if($o=Mn.suspendedLanes,($o&fo)!==fo){L(),Mn.pingedLanes|=Mn.suspendedLanes&$o;break}Mn.timeoutHandle=Ff(Qk.bind(null,Mn,uk,vk),Fn);break}Qk(Mn,uk,vk);break;case 4:if(Dk(Mn,fo),(fo&4194240)===fo)break;for(Fn=Mn.eventTimes,$o=-1;0<fo;){var Ao=31-oc(fo);mo=1<<Ao,Ao=Fn[Ao],Ao>$o&&($o=Ao),fo&=~mo}if(fo=$o,fo=B()-fo,fo=(120>fo?120:480>fo?480:1080>fo?1080:1920>fo?1920:3e3>fo?3e3:4320>fo?4320:1960*mk(fo/1960))-fo,10<fo){Mn.timeoutHandle=Ff(Qk.bind(null,Mn,uk,vk),fo);break}Qk(Mn,uk,vk);break;case 5:Qk(Mn,uk,vk);break;default:throw Error(p(329))}}}return Ek(Mn,B()),Mn.callbackNode===io?Hk.bind(null,Mn):null}function Ok(Mn,Fn){var io=tk;return Mn.current.memoizedState.isDehydrated&&(Lk(Mn,Fn).flags|=256),Mn=Jk(Mn,Fn),Mn!==2&&(Fn=uk,uk=io,Fn!==null&&Gj(Fn)),Mn}function Gj(Mn){uk===null?uk=Mn:uk.push.apply(uk,Mn)}function Pk(Mn){for(var Fn=Mn;;){if(Fn.flags&16384){var io=Fn.updateQueue;if(io!==null&&(io=io.stores,io!==null))for(var fo=0;fo<io.length;fo++){var $o=io[fo],mo=$o.getSnapshot;$o=$o.value;try{if(!He(mo(),$o))return!1}catch{return!1}}}if(io=Fn.child,Fn.subtreeFlags&16384&&io!==null)io.return=Fn,Fn=io;else{if(Fn===Mn)break;for(;Fn.sibling===null;){if(Fn.return===null||Fn.return===Mn)return!0;Fn=Fn.return}Fn.sibling.return=Fn.return,Fn=Fn.sibling}}return!0}function Dk(Mn,Fn){for(Fn&=~sk,Fn&=~rk,Mn.suspendedLanes|=Fn,Mn.pingedLanes&=~Fn,Mn=Mn.expirationTimes;0<Fn;){var io=31-oc(Fn),fo=1<<io;Mn[io]=-1,Fn&=~fo}}function Fk(Mn){if(K&6)throw Error(p(327));Ik();var Fn=uc(Mn,0);if(!(Fn&1))return Ek(Mn,B()),null;var io=Jk(Mn,Fn);if(Mn.tag!==0&&io===2){var fo=xc(Mn);fo!==0&&(Fn=fo,io=Ok(Mn,fo))}if(io===1)throw io=qk,Lk(Mn,0),Dk(Mn,Fn),Ek(Mn,B()),io;if(io===6)throw Error(p(345));return Mn.finishedWork=Mn.current.alternate,Mn.finishedLanes=Fn,Qk(Mn,uk,vk),Ek(Mn,B()),null}function Rk(Mn,Fn){var io=K;K|=1;try{return Mn(Fn)}finally{K=io,K===0&&(Hj=B()+500,fg&&jg())}}function Sk(Mn){xk!==null&&xk.tag===0&&!(K&6)&&Ik();var Fn=K;K|=1;var io=pk.transition,fo=C;try{if(pk.transition=null,C=1,Mn)return Mn()}finally{C=fo,pk.transition=io,K=Fn,!(K&6)&&jg()}}function Ij(){gj=fj.current,E(fj)}function Lk(Mn,Fn){Mn.finishedWork=null,Mn.finishedLanes=0;var io=Mn.timeoutHandle;if(io!==-1&&(Mn.timeoutHandle=-1,Gf(io)),Y!==null)for(io=Y.return;io!==null;){var fo=io;switch(wg(fo),fo.tag){case 1:fo=fo.type.childContextTypes,fo!=null&&$f();break;case 3:Jh(),E(Wf),E(H),Oh();break;case 5:Lh(fo);break;case 4:Jh();break;case 13:E(M);break;case 19:E(M);break;case 10:Rg(fo.type._context);break;case 22:case 23:Ij()}io=io.return}if(R=Mn,Y=Mn=wh(Mn.current,null),Z=gj=Fn,T=0,qk=null,sk=rk=hh=0,uk=tk=null,Wg!==null){for(Fn=0;Fn<Wg.length;Fn++)if(io=Wg[Fn],fo=io.interleaved,fo!==null){io.interleaved=null;var $o=fo.next,mo=io.pending;if(mo!==null){var Ao=mo.next;mo.next=$o,fo.next=Ao}io.pending=fo}Wg=null}return Mn}function Nk(Mn,Fn){do{var io=Y;try{if(Qg(),Ph.current=ai,Sh){for(var fo=N.memoizedState;fo!==null;){var $o=fo.queue;$o!==null&&($o.pending=null),fo=fo.next}Sh=!1}if(Rh=0,P=O=N=null,Th=!1,Uh=0,ok.current=null,io===null||io.return===null){T=1,qk=Fn,Y=null;break}e:{var mo=Mn,Ao=io.return,jo=io,Lo=Fn;if(Fn=Z,jo.flags|=32768,Lo!==null&&typeof Lo=="object"&&typeof Lo.then=="function"){var Ho=Lo,zo=jo,Go=zo.tag;if(!(zo.mode&1)&&(Go===0||Go===11||Go===15)){var Vo=zo.alternate;Vo?(zo.updateQueue=Vo.updateQueue,zo.memoizedState=Vo.memoizedState,zo.lanes=Vo.lanes):(zo.updateQueue=null,zo.memoizedState=null)}var Yo=Vi(Ao);if(Yo!==null){Yo.flags&=-257,Wi(Yo,Ao,jo,mo,Fn),Yo.mode&1&&Ti(mo,Ho,Fn),Fn=Yo,Lo=Ho;var Xo=Fn.updateQueue;if(Xo===null){var is=new Set;is.add(Lo),Fn.updateQueue=is}else Xo.add(Lo);break e}else{if(!(Fn&1)){Ti(mo,Ho,Fn),uj();break e}Lo=Error(p(426))}}else if(I&&jo.mode&1){var yl=Vi(Ao);if(yl!==null){!(yl.flags&65536)&&(yl.flags|=256),Wi(yl,Ao,jo,mo,Fn),Jg(Ki(Lo,jo));break e}}mo=Lo=Ki(Lo,jo),T!==4&&(T=2),tk===null?tk=[mo]:tk.push(mo),mo=Ao;do{switch(mo.tag){case 3:mo.flags|=65536,Fn&=-Fn,mo.lanes|=Fn;var us=Oi(mo,Lo,Fn);fh(mo,us);break e;case 1:jo=Lo;var hs=mo.type,_l=mo.stateNode;if(!(mo.flags&128)&&(typeof hs.getDerivedStateFromError=="function"||_l!==null&&typeof _l.componentDidCatch=="function"&&(Si===null||!Si.has(_l)))){mo.flags|=65536,Fn&=-Fn,mo.lanes|=Fn;var xl=Ri(mo,jo,Fn);fh(mo,xl);break e}}mo=mo.return}while(mo!==null)}Tk(io)}catch(Il){Fn=Il,Y===io&&io!==null&&(Y=io=io.return);continue}break}while(!0)}function Kk(){var Mn=nk.current;return nk.current=ai,Mn===null?ai:Mn}function uj(){(T===0||T===3||T===2)&&(T=4),R===null||!(hh&268435455)&&!(rk&268435455)||Dk(R,Z)}function Jk(Mn,Fn){var io=K;K|=2;var fo=Kk();(R!==Mn||Z!==Fn)&&(vk=null,Lk(Mn,Fn));do try{Uk();break}catch($o){Nk(Mn,$o)}while(!0);if(Qg(),K=io,nk.current=fo,Y!==null)throw Error(p(261));return R=null,Z=0,T}function Uk(){for(;Y!==null;)Vk(Y)}function Mk(){for(;Y!==null&&!cc();)Vk(Y)}function Vk(Mn){var Fn=Wk(Mn.alternate,Mn,gj);Mn.memoizedProps=Mn.pendingProps,Fn===null?Tk(Mn):Y=Fn,ok.current=null}function Tk(Mn){var Fn=Mn;do{var io=Fn.alternate;if(Mn=Fn.return,Fn.flags&32768){if(io=Jj(io,Fn),io!==null){io.flags&=32767,Y=io;return}if(Mn!==null)Mn.flags|=32768,Mn.subtreeFlags=0,Mn.deletions=null;else{T=6,Y=null;return}}else if(io=Fj(io,Fn,gj),io!==null){Y=io;return}if(Fn=Fn.sibling,Fn!==null){Y=Fn;return}Y=Fn=Mn}while(Fn!==null);T===0&&(T=5)}function Qk(Mn,Fn,io){var fo=C,$o=pk.transition;try{pk.transition=null,C=1,Xk(Mn,Fn,io,fo)}finally{pk.transition=$o,C=fo}return null}function Xk(Mn,Fn,io,fo){do Ik();while(xk!==null);if(K&6)throw Error(p(327));io=Mn.finishedWork;var $o=Mn.finishedLanes;if(io===null)return null;if(Mn.finishedWork=null,Mn.finishedLanes=0,io===Mn.current)throw Error(p(177));Mn.callbackNode=null,Mn.callbackPriority=0;var mo=io.lanes|io.childLanes;if(Bc(Mn,mo),Mn===R&&(Y=R=null,Z=0),!(io.subtreeFlags&2064)&&!(io.flags&2064)||wk||(wk=!0,Gk(hc,function(){return Ik(),null})),mo=(io.flags&15990)!==0,io.subtreeFlags&15990||mo){mo=pk.transition,pk.transition=null;var Ao=C;C=1;var jo=K;K|=4,ok.current=null,Pj(Mn,io),ek(io,Mn),Oe(Df),dd=!!Cf,Df=Cf=null,Mn.current=io,ik(io),dc(),K=jo,C=Ao,pk.transition=mo}else Mn.current=io;if(wk&&(wk=!1,xk=Mn,yk=$o),mo=Mn.pendingLanes,mo===0&&(Si=null),mc(io.stateNode),Ek(Mn,B()),Fn!==null)for(fo=Mn.onRecoverableError,io=0;io<Fn.length;io++)$o=Fn[io],fo($o.value,{componentStack:$o.stack,digest:$o.digest});if(Pi)throw Pi=!1,Mn=Qi,Qi=null,Mn;return yk&1&&Mn.tag!==0&&Ik(),mo=Mn.pendingLanes,mo&1?Mn===Ak?zk++:(zk=0,Ak=Mn):zk=0,jg(),null}function Ik(){if(xk!==null){var Mn=Dc(yk),Fn=pk.transition,io=C;try{if(pk.transition=null,C=16>Mn?16:Mn,xk===null)var fo=!1;else{if(Mn=xk,xk=null,yk=0,K&6)throw Error(p(331));var $o=K;for(K|=4,V=Mn.current;V!==null;){var mo=V,Ao=mo.child;if(V.flags&16){var jo=mo.deletions;if(jo!==null){for(var Lo=0;Lo<jo.length;Lo++){var Ho=jo[Lo];for(V=Ho;V!==null;){var zo=V;switch(zo.tag){case 0:case 11:case 15:Qj(8,zo,mo)}var Go=zo.child;if(Go!==null)Go.return=zo,V=Go;else for(;V!==null;){zo=V;var Vo=zo.sibling,Yo=zo.return;if(Tj(zo),zo===Ho){V=null;break}if(Vo!==null){Vo.return=Yo,V=Vo;break}V=Yo}}}var Xo=mo.alternate;if(Xo!==null){var is=Xo.child;if(is!==null){Xo.child=null;do{var yl=is.sibling;is.sibling=null,is=yl}while(is!==null)}}V=mo}}if(mo.subtreeFlags&2064&&Ao!==null)Ao.return=mo,V=Ao;else e:for(;V!==null;){if(mo=V,mo.flags&2048)switch(mo.tag){case 0:case 11:case 15:Qj(9,mo,mo.return)}var us=mo.sibling;if(us!==null){us.return=mo.return,V=us;break e}V=mo.return}}var hs=Mn.current;for(V=hs;V!==null;){Ao=V;var _l=Ao.child;if(Ao.subtreeFlags&2064&&_l!==null)_l.return=Ao,V=_l;else e:for(Ao=hs;V!==null;){if(jo=V,jo.flags&2048)try{switch(jo.tag){case 0:case 11:case 15:Rj(9,jo)}}catch(Il){W(jo,jo.return,Il)}if(jo===Ao){V=null;break e}var xl=jo.sibling;if(xl!==null){xl.return=jo.return,V=xl;break e}V=jo.return}}if(K=$o,jg(),lc&&typeof lc.onPostCommitFiberRoot=="function")try{lc.onPostCommitFiberRoot(kc,Mn)}catch{}fo=!0}return fo}finally{C=io,pk.transition=Fn}}return!1}function Yk(Mn,Fn,io){Fn=Ki(io,Fn),Fn=Oi(Mn,Fn,1),Mn=dh(Mn,Fn,1),Fn=L(),Mn!==null&&(Ac(Mn,1,Fn),Ek(Mn,Fn))}function W(Mn,Fn,io){if(Mn.tag===3)Yk(Mn,Mn,io);else for(;Fn!==null;){if(Fn.tag===3){Yk(Fn,Mn,io);break}else if(Fn.tag===1){var fo=Fn.stateNode;if(typeof Fn.type.getDerivedStateFromError=="function"||typeof fo.componentDidCatch=="function"&&(Si===null||!Si.has(fo))){Mn=Ki(io,Mn),Mn=Ri(Fn,Mn,1),Fn=dh(Fn,Mn,1),Mn=L(),Fn!==null&&(Ac(Fn,1,Mn),Ek(Fn,Mn));break}}Fn=Fn.return}}function Ui(Mn,Fn,io){var fo=Mn.pingCache;fo!==null&&fo.delete(Fn),Fn=L(),Mn.pingedLanes|=Mn.suspendedLanes&io,R===Mn&&(Z&io)===io&&(T===4||T===3&&(Z&130023424)===Z&&500>B()-gk?Lk(Mn,0):sk|=io),Ek(Mn,Fn)}function Zk(Mn,Fn){Fn===0&&(Mn.mode&1?(Fn=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):Fn=1);var io=L();Mn=Zg(Mn,Fn),Mn!==null&&(Ac(Mn,Fn,io),Ek(Mn,io))}function vj(Mn){var Fn=Mn.memoizedState,io=0;Fn!==null&&(io=Fn.retryLane),Zk(Mn,io)}function ck(Mn,Fn){var io=0;switch(Mn.tag){case 13:var fo=Mn.stateNode,$o=Mn.memoizedState;$o!==null&&(io=$o.retryLane);break;case 19:fo=Mn.stateNode;break;default:throw Error(p(314))}fo!==null&&fo.delete(Fn),Zk(Mn,io)}var Wk;Wk=function(Mn,Fn,io){if(Mn!==null)if(Mn.memoizedProps!==Fn.pendingProps||Wf.current)Ug=!0;else{if(!(Mn.lanes&io)&&!(Fn.flags&128))return Ug=!1,zj(Mn,Fn,io);Ug=!!(Mn.flags&131072)}else Ug=!1,I&&Fn.flags&1048576&&ug(Fn,ng,Fn.index);switch(Fn.lanes=0,Fn.tag){case 2:var fo=Fn.type;jj(Mn,Fn),Mn=Fn.pendingProps;var $o=Yf(Fn,H.current);Tg(Fn,io),$o=Xh(null,Fn,fo,Mn,$o,io);var mo=bi();return Fn.flags|=1,typeof $o=="object"&&$o!==null&&typeof $o.render=="function"&&$o.$$typeof===void 0?(Fn.tag=1,Fn.memoizedState=null,Fn.updateQueue=null,Zf(fo)?(mo=!0,cg(Fn)):mo=!1,Fn.memoizedState=$o.state!==null&&$o.state!==void 0?$o.state:null,ah(Fn),$o.updater=nh,Fn.stateNode=$o,$o._reactInternals=Fn,rh(Fn,fo,Mn,io),Fn=kj(null,Fn,fo,!0,mo,io)):(Fn.tag=0,I&&mo&&vg(Fn),Yi(null,Fn,$o,io),Fn=Fn.child),Fn;case 16:fo=Fn.elementType;e:{switch(jj(Mn,Fn),Mn=Fn.pendingProps,$o=fo._init,fo=$o(fo._payload),Fn.type=fo,$o=Fn.tag=$k(fo),Mn=Lg(fo,Mn),$o){case 0:Fn=dj(null,Fn,fo,Mn,io);break e;case 1:Fn=ij(null,Fn,fo,Mn,io);break e;case 11:Fn=Zi(null,Fn,fo,Mn,io);break e;case 14:Fn=aj(null,Fn,fo,Lg(fo.type,Mn),io);break e}throw Error(p(306,fo,""))}return Fn;case 0:return fo=Fn.type,$o=Fn.pendingProps,$o=Fn.elementType===fo?$o:Lg(fo,$o),dj(Mn,Fn,fo,$o,io);case 1:return fo=Fn.type,$o=Fn.pendingProps,$o=Fn.elementType===fo?$o:Lg(fo,$o),ij(Mn,Fn,fo,$o,io);case 3:e:{if(lj(Fn),Mn===null)throw Error(p(387));fo=Fn.pendingProps,mo=Fn.memoizedState,$o=mo.element,bh(Mn,Fn),gh(Fn,fo,null,io);var Ao=Fn.memoizedState;if(fo=Ao.element,mo.isDehydrated)if(mo={element:fo,isDehydrated:!1,cache:Ao.cache,pendingSuspenseBoundaries:Ao.pendingSuspenseBoundaries,transitions:Ao.transitions},Fn.updateQueue.baseState=mo,Fn.memoizedState=mo,Fn.flags&256){$o=Ki(Error(p(423)),Fn),Fn=mj(Mn,Fn,fo,io,$o);break e}else if(fo!==$o){$o=Ki(Error(p(424)),Fn),Fn=mj(Mn,Fn,fo,io,$o);break e}else for(yg=Lf(Fn.stateNode.containerInfo.firstChild),xg=Fn,I=!0,zg=null,io=Ch(Fn,null,fo,io),Fn.child=io;io;)io.flags=io.flags&-3|4096,io=io.sibling;else{if(Ig(),fo===$o){Fn=$i(Mn,Fn,io);break e}Yi(Mn,Fn,fo,io)}Fn=Fn.child}return Fn;case 5:return Kh(Fn),Mn===null&&Eg(Fn),fo=Fn.type,$o=Fn.pendingProps,mo=Mn!==null?Mn.memoizedProps:null,Ao=$o.children,Ef(fo,$o)?Ao=null:mo!==null&&Ef(fo,mo)&&(Fn.flags|=32),hj(Mn,Fn),Yi(Mn,Fn,Ao,io),Fn.child;case 6:return Mn===null&&Eg(Fn),null;case 13:return pj(Mn,Fn,io);case 4:return Ih(Fn,Fn.stateNode.containerInfo),fo=Fn.pendingProps,Mn===null?Fn.child=Bh(Fn,null,fo,io):Yi(Mn,Fn,fo,io),Fn.child;case 11:return fo=Fn.type,$o=Fn.pendingProps,$o=Fn.elementType===fo?$o:Lg(fo,$o),Zi(Mn,Fn,fo,$o,io);case 7:return Yi(Mn,Fn,Fn.pendingProps,io),Fn.child;case 8:return Yi(Mn,Fn,Fn.pendingProps.children,io),Fn.child;case 12:return Yi(Mn,Fn,Fn.pendingProps.children,io),Fn.child;case 10:e:{if(fo=Fn.type._context,$o=Fn.pendingProps,mo=Fn.memoizedProps,Ao=$o.value,G(Mg,fo._currentValue),fo._currentValue=Ao,mo!==null)if(He(mo.value,Ao)){if(mo.children===$o.children&&!Wf.current){Fn=$i(Mn,Fn,io);break e}}else for(mo=Fn.child,mo!==null&&(mo.return=Fn);mo!==null;){var jo=mo.dependencies;if(jo!==null){Ao=mo.child;for(var Lo=jo.firstContext;Lo!==null;){if(Lo.context===fo){if(mo.tag===1){Lo=ch(-1,io&-io),Lo.tag=2;var Ho=mo.updateQueue;if(Ho!==null){Ho=Ho.shared;var zo=Ho.pending;zo===null?Lo.next=Lo:(Lo.next=zo.next,zo.next=Lo),Ho.pending=Lo}}mo.lanes|=io,Lo=mo.alternate,Lo!==null&&(Lo.lanes|=io),Sg(mo.return,io,Fn),jo.lanes|=io;break}Lo=Lo.next}}else if(mo.tag===10)Ao=mo.type===Fn.type?null:mo.child;else if(mo.tag===18){if(Ao=mo.return,Ao===null)throw Error(p(341));Ao.lanes|=io,jo=Ao.alternate,jo!==null&&(jo.lanes|=io),Sg(Ao,io,Fn),Ao=mo.sibling}else Ao=mo.child;if(Ao!==null)Ao.return=mo;else for(Ao=mo;Ao!==null;){if(Ao===Fn){Ao=null;break}if(mo=Ao.sibling,mo!==null){mo.return=Ao.return,Ao=mo;break}Ao=Ao.return}mo=Ao}Yi(Mn,Fn,$o.children,io),Fn=Fn.child}return Fn;case 9:return $o=Fn.type,fo=Fn.pendingProps.children,Tg(Fn,io),$o=Vg($o),fo=fo($o),Fn.flags|=1,Yi(Mn,Fn,fo,io),Fn.child;case 14:return fo=Fn.type,$o=Lg(fo,Fn.pendingProps),$o=Lg(fo.type,$o),aj(Mn,Fn,fo,$o,io);case 15:return cj(Mn,Fn,Fn.type,Fn.pendingProps,io);case 17:return fo=Fn.type,$o=Fn.pendingProps,$o=Fn.elementType===fo?$o:Lg(fo,$o),jj(Mn,Fn),Fn.tag=1,Zf(fo)?(Mn=!0,cg(Fn)):Mn=!1,Tg(Fn,io),ph(Fn,fo,$o),rh(Fn,fo,$o,io),kj(null,Fn,fo,!0,Mn,io);case 19:return yj(Mn,Fn,io);case 22:return ej(Mn,Fn,io)}throw Error(p(156,Fn.tag))};function Gk(Mn,Fn){return ac(Mn,Fn)}function al(Mn,Fn,io,fo){this.tag=Mn,this.key=io,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=Fn,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=fo,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(Mn,Fn,io,fo){return new al(Mn,Fn,io,fo)}function bj(Mn){return Mn=Mn.prototype,!(!Mn||!Mn.isReactComponent)}function $k(Mn){if(typeof Mn=="function")return bj(Mn)?1:0;if(Mn!=null){if(Mn=Mn.$$typeof,Mn===Da)return 11;if(Mn===Ga)return 14}return 2}function wh(Mn,Fn){var io=Mn.alternate;return io===null?(io=Bg(Mn.tag,Fn,Mn.key,Mn.mode),io.elementType=Mn.elementType,io.type=Mn.type,io.stateNode=Mn.stateNode,io.alternate=Mn,Mn.alternate=io):(io.pendingProps=Fn,io.type=Mn.type,io.flags=0,io.subtreeFlags=0,io.deletions=null),io.flags=Mn.flags&14680064,io.childLanes=Mn.childLanes,io.lanes=Mn.lanes,io.child=Mn.child,io.memoizedProps=Mn.memoizedProps,io.memoizedState=Mn.memoizedState,io.updateQueue=Mn.updateQueue,Fn=Mn.dependencies,io.dependencies=Fn===null?null:{lanes:Fn.lanes,firstContext:Fn.firstContext},io.sibling=Mn.sibling,io.index=Mn.index,io.ref=Mn.ref,io}function yh(Mn,Fn,io,fo,$o,mo){var Ao=2;if(fo=Mn,typeof Mn=="function")bj(Mn)&&(Ao=1);else if(typeof Mn=="string")Ao=5;else e:switch(Mn){case ya:return Ah(io.children,$o,mo,Fn);case za:Ao=8,$o|=8;break;case Aa:return Mn=Bg(12,io,Fn,$o|2),Mn.elementType=Aa,Mn.lanes=mo,Mn;case Ea:return Mn=Bg(13,io,Fn,$o),Mn.elementType=Ea,Mn.lanes=mo,Mn;case Fa:return Mn=Bg(19,io,Fn,$o),Mn.elementType=Fa,Mn.lanes=mo,Mn;case Ia:return qj(io,$o,mo,Fn);default:if(typeof Mn=="object"&&Mn!==null)switch(Mn.$$typeof){case Ba:Ao=10;break e;case Ca:Ao=9;break e;case Da:Ao=11;break e;case Ga:Ao=14;break e;case Ha:Ao=16,fo=null;break e}throw Error(p(130,Mn==null?Mn:typeof Mn,""))}return Fn=Bg(Ao,io,Fn,$o),Fn.elementType=Mn,Fn.type=fo,Fn.lanes=mo,Fn}function Ah(Mn,Fn,io,fo){return Mn=Bg(7,Mn,fo,Fn),Mn.lanes=io,Mn}function qj(Mn,Fn,io,fo){return Mn=Bg(22,Mn,fo,Fn),Mn.elementType=Ia,Mn.lanes=io,Mn.stateNode={isHidden:!1},Mn}function xh(Mn,Fn,io){return Mn=Bg(6,Mn,null,Fn),Mn.lanes=io,Mn}function zh(Mn,Fn,io){return Fn=Bg(4,Mn.children!==null?Mn.children:[],Mn.key,Fn),Fn.lanes=io,Fn.stateNode={containerInfo:Mn.containerInfo,pendingChildren:null,implementation:Mn.implementation},Fn}function bl(Mn,Fn,io,fo,$o){this.tag=Fn,this.containerInfo=Mn,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=fo,this.onRecoverableError=$o,this.mutableSourceEagerHydrationData=null}function cl(Mn,Fn,io,fo,$o,mo,Ao,jo,Lo){return Mn=new bl(Mn,Fn,io,jo,Lo),Fn===1?(Fn=1,mo===!0&&(Fn|=8)):Fn=0,mo=Bg(3,null,null,Fn),Mn.current=mo,mo.stateNode=Mn,mo.memoizedState={element:fo,isDehydrated:io,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(mo),Mn}function dl(Mn,Fn,io){var fo=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wa,key:fo==null?null:""+fo,children:Mn,containerInfo:Fn,implementation:io}}function el(Mn){if(!Mn)return Vf;Mn=Mn._reactInternals;e:{if(Vb(Mn)!==Mn||Mn.tag!==1)throw Error(p(170));var Fn=Mn;do{switch(Fn.tag){case 3:Fn=Fn.stateNode.context;break e;case 1:if(Zf(Fn.type)){Fn=Fn.stateNode.__reactInternalMemoizedMergedChildContext;break e}}Fn=Fn.return}while(Fn!==null);throw Error(p(171))}if(Mn.tag===1){var io=Mn.type;if(Zf(io))return bg(Mn,io,Fn)}return Fn}function fl(Mn,Fn,io,fo,$o,mo,Ao,jo,Lo){return Mn=cl(io,fo,!0,Mn,$o,mo,Ao,jo,Lo),Mn.context=el(null),io=Mn.current,fo=L(),$o=lh(io),mo=ch(fo,$o),mo.callback=Fn??null,dh(io,mo,$o),Mn.current.lanes=$o,Ac(Mn,$o,fo),Ek(Mn,fo),Mn}function gl(Mn,Fn,io,fo){var $o=Fn.current,mo=L(),Ao=lh($o);return io=el(io),Fn.context===null?Fn.context=io:Fn.pendingContext=io,Fn=ch(mo,Ao),Fn.payload={element:Mn},fo=fo===void 0?null:fo,fo!==null&&(Fn.callback=fo),Mn=dh($o,Fn,Ao),Mn!==null&&(mh(Mn,$o,Ao,mo),eh(Mn,$o,Ao)),Ao}function hl(Mn){if(Mn=Mn.current,!Mn.child)return null;switch(Mn.child.tag){case 5:return Mn.child.stateNode;default:return Mn.child.stateNode}}function il(Mn,Fn){if(Mn=Mn.memoizedState,Mn!==null&&Mn.dehydrated!==null){var io=Mn.retryLane;Mn.retryLane=io!==0&&io<Fn?io:Fn}}function jl(Mn,Fn){il(Mn,Fn),(Mn=Mn.alternate)&&il(Mn,Fn)}function kl(){return null}var ll=typeof reportError=="function"?reportError:function(Mn){console.error(Mn)};function ml(Mn){this._internalRoot=Mn}nl.prototype.render=ml.prototype.render=function(Mn){var Fn=this._internalRoot;if(Fn===null)throw Error(p(409));gl(Mn,Fn,null,null)};nl.prototype.unmount=ml.prototype.unmount=function(){var Mn=this._internalRoot;if(Mn!==null){this._internalRoot=null;var Fn=Mn.containerInfo;Sk(function(){gl(null,Mn,null,null)}),Fn[uf]=null}};function nl(Mn){this._internalRoot=Mn}nl.prototype.unstable_scheduleHydration=function(Mn){if(Mn){var Fn=Hc();Mn={blockedOn:null,target:Mn,priority:Fn};for(var io=0;io<Qc.length&&Fn!==0&&Fn<Qc[io].priority;io++);Qc.splice(io,0,Mn),io===0&&Vc(Mn)}};function ol(Mn){return!(!Mn||Mn.nodeType!==1&&Mn.nodeType!==9&&Mn.nodeType!==11)}function pl(Mn){return!(!Mn||Mn.nodeType!==1&&Mn.nodeType!==9&&Mn.nodeType!==11&&(Mn.nodeType!==8||Mn.nodeValue!==" react-mount-point-unstable "))}function ql(){}function rl(Mn,Fn,io,fo,$o){if($o){if(typeof fo=="function"){var mo=fo;fo=function(){var Ho=hl(Ao);mo.call(Ho)}}var Ao=fl(Fn,fo,Mn,0,null,!1,!1,"",ql);return Mn._reactRootContainer=Ao,Mn[uf]=Ao.current,sf(Mn.nodeType===8?Mn.parentNode:Mn),Sk(),Ao}for(;$o=Mn.lastChild;)Mn.removeChild($o);if(typeof fo=="function"){var jo=fo;fo=function(){var Ho=hl(Lo);jo.call(Ho)}}var Lo=cl(Mn,0,!1,null,null,!1,!1,"",ql);return Mn._reactRootContainer=Lo,Mn[uf]=Lo.current,sf(Mn.nodeType===8?Mn.parentNode:Mn),Sk(function(){gl(Fn,Lo,io,fo)}),Lo}function sl(Mn,Fn,io,fo,$o){var mo=io._reactRootContainer;if(mo){var Ao=mo;if(typeof $o=="function"){var jo=$o;$o=function(){var Lo=hl(Ao);jo.call(Lo)}}gl(Fn,Ao,Mn,$o)}else Ao=rl(io,Fn,Mn,$o,fo);return hl(Ao)}Ec=function(Mn){switch(Mn.tag){case 3:var Fn=Mn.stateNode;if(Fn.current.memoizedState.isDehydrated){var io=tc(Fn.pendingLanes);io!==0&&(Cc(Fn,io|1),Ek(Fn,B()),!(K&6)&&(Hj=B()+500,jg()))}break;case 13:Sk(function(){var fo=Zg(Mn,1);if(fo!==null){var $o=L();mh(fo,Mn,1,$o)}}),jl(Mn,1)}};Fc=function(Mn){if(Mn.tag===13){var Fn=Zg(Mn,134217728);if(Fn!==null){var io=L();mh(Fn,Mn,134217728,io)}jl(Mn,134217728)}};Gc=function(Mn){if(Mn.tag===13){var Fn=lh(Mn),io=Zg(Mn,Fn);if(io!==null){var fo=L();mh(io,Mn,Fn,fo)}jl(Mn,Fn)}};Hc=function(){return C};Ic=function(Mn,Fn){var io=C;try{return C=Mn,Fn()}finally{C=io}};yb=function(Mn,Fn,io){switch(Fn){case"input":if(bb(Mn,io),Fn=io.name,io.type==="radio"&&Fn!=null){for(io=Mn;io.parentNode;)io=io.parentNode;for(io=io.querySelectorAll("input[name="+JSON.stringify(""+Fn)+'][type="radio"]'),Fn=0;Fn<io.length;Fn++){var fo=io[Fn];if(fo!==Mn&&fo.form===Mn.form){var $o=Db(fo);if(!$o)throw Error(p(90));Wa(fo),bb(fo,$o)}}}break;case"textarea":ib(Mn,io);break;case"select":Fn=io.value,Fn!=null&&fb(Mn,!!io.multiple,Fn,!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(Mn){return Mn=Zb(Mn),Mn===null?null:Mn.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(Mn,Fn){var io=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ol(Fn))throw Error(p(200));return dl(Mn,Fn,null,io)};reactDom_production_min.createRoot=function(Mn,Fn){if(!ol(Mn))throw Error(p(299));var io=!1,fo="",$o=ll;return Fn!=null&&(Fn.unstable_strictMode===!0&&(io=!0),Fn.identifierPrefix!==void 0&&(fo=Fn.identifierPrefix),Fn.onRecoverableError!==void 0&&($o=Fn.onRecoverableError)),Fn=cl(Mn,1,!1,null,null,io,!1,fo,$o),Mn[uf]=Fn.current,sf(Mn.nodeType===8?Mn.parentNode:Mn),new ml(Fn)};reactDom_production_min.findDOMNode=function(Mn){if(Mn==null)return null;if(Mn.nodeType===1)return Mn;var Fn=Mn._reactInternals;if(Fn===void 0)throw typeof Mn.render=="function"?Error(p(188)):(Mn=Object.keys(Mn).join(","),Error(p(268,Mn)));return Mn=Zb(Fn),Mn=Mn===null?null:Mn.stateNode,Mn};reactDom_production_min.flushSync=function(Mn){return Sk(Mn)};reactDom_production_min.hydrate=function(Mn,Fn,io){if(!pl(Fn))throw Error(p(200));return sl(null,Mn,Fn,!0,io)};reactDom_production_min.hydrateRoot=function(Mn,Fn,io){if(!ol(Mn))throw Error(p(405));var fo=io!=null&&io.hydratedSources||null,$o=!1,mo="",Ao=ll;if(io!=null&&(io.unstable_strictMode===!0&&($o=!0),io.identifierPrefix!==void 0&&(mo=io.identifierPrefix),io.onRecoverableError!==void 0&&(Ao=io.onRecoverableError)),Fn=fl(Fn,null,Mn,1,io??null,$o,!1,mo,Ao),Mn[uf]=Fn.current,sf(Mn),fo)for(Mn=0;Mn<fo.length;Mn++)io=fo[Mn],$o=io._getVersion,$o=$o(io._source),Fn.mutableSourceEagerHydrationData==null?Fn.mutableSourceEagerHydrationData=[io,$o]:Fn.mutableSourceEagerHydrationData.push(io,$o);return new nl(Fn)};reactDom_production_min.render=function(Mn,Fn,io){if(!pl(Fn))throw Error(p(200));return sl(null,Mn,Fn,!1,io)};reactDom_production_min.unmountComponentAtNode=function(Mn){if(!pl(Mn))throw Error(p(40));return Mn._reactRootContainer?(Sk(function(){sl(null,null,Mn,!1,function(){Mn._reactRootContainer=null,Mn[uf]=null})}),!0):!1};reactDom_production_min.unstable_batchedUpdates=Rk;reactDom_production_min.unstable_renderSubtreeIntoContainer=function(Mn,Fn,io,fo){if(!pl(io))throw Error(p(200));if(Mn==null||Mn._reactInternals===void 0)throw Error(p(38));return sl(Mn,Fn,io,!1,fo)};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(Mn){console.error(Mn)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports,createRoot,m=reactDomExports;createRoot=m.createRoot,m.hydrateRoot;var browser={},canPromise$1=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},qrcode={},utils$1={};let toSJISFunction;const CODEWORDS_COUNT=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];utils$1.getSymbolSize=function Mn(Fn){if(!Fn)throw new Error('"version" cannot be null or undefined');if(Fn<1||Fn>40)throw new Error('"version" should be in range from 1 to 40');return Fn*4+17};utils$1.getSymbolTotalCodewords=function Mn(Fn){return CODEWORDS_COUNT[Fn]};utils$1.getBCHDigit=function(Mn){let Fn=0;for(;Mn!==0;)Fn++,Mn>>>=1;return Fn};utils$1.setToSJISFunction=function Mn(Fn){if(typeof Fn!="function")throw new Error('"toSJISFunc" is not a valid function.');toSJISFunction=Fn};utils$1.isKanjiModeEnabled=function(){return typeof toSJISFunction<"u"};utils$1.toSJIS=function Mn(Fn){return toSJISFunction(Fn)};var errorCorrectionLevel={};(function(Mn){Mn.L={bit:1},Mn.M={bit:0},Mn.Q={bit:3},Mn.H={bit:2};function Fn(io){if(typeof io!="string")throw new Error("Param is not a string");switch(io.toLowerCase()){case"l":case"low":return Mn.L;case"m":case"medium":return Mn.M;case"q":case"quartile":return Mn.Q;case"h":case"high":return Mn.H;default:throw new Error("Unknown EC Level: "+io)}}Mn.isValid=function(fo){return fo&&typeof fo.bit<"u"&&fo.bit>=0&&fo.bit<4},Mn.from=function(fo,$o){if(Mn.isValid(fo))return fo;try{return Fn(fo)}catch{return $o}}})(errorCorrectionLevel);function BitBuffer$1(){this.buffer=[],this.length=0}BitBuffer$1.prototype={get:function(Mn){const Fn=Math.floor(Mn/8);return(this.buffer[Fn]>>>7-Mn%8&1)===1},put:function(Mn,Fn){for(let io=0;io<Fn;io++)this.putBit((Mn>>>Fn-io-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(Mn){const Fn=Math.floor(this.length/8);this.buffer.length<=Fn&&this.buffer.push(0),Mn&&(this.buffer[Fn]|=128>>>this.length%8),this.length++}};var bitBuffer=BitBuffer$1;function BitMatrix$1(Mn){if(!Mn||Mn<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=Mn,this.data=new Uint8Array(Mn*Mn),this.reservedBit=new Uint8Array(Mn*Mn)}BitMatrix$1.prototype.set=function(Mn,Fn,io,fo){const $o=Mn*this.size+Fn;this.data[$o]=io,fo&&(this.reservedBit[$o]=!0)};BitMatrix$1.prototype.get=function(Mn,Fn){return this.data[Mn*this.size+Fn]};BitMatrix$1.prototype.xor=function(Mn,Fn,io){this.data[Mn*this.size+Fn]^=io};BitMatrix$1.prototype.isReserved=function(Mn,Fn){return this.reservedBit[Mn*this.size+Fn]};var bitMatrix=BitMatrix$1,alignmentPattern={};(function(Mn){const Fn=utils$1.getSymbolSize;Mn.getRowColCoords=function(fo){if(fo===1)return[];const $o=Math.floor(fo/7)+2,mo=Fn(fo),Ao=mo===145?26:Math.ceil((mo-13)/(2*$o-2))*2,jo=[mo-7];for(let Lo=1;Lo<$o-1;Lo++)jo[Lo]=jo[Lo-1]-Ao;return jo.push(6),jo.reverse()},Mn.getPositions=function(fo){const $o=[],mo=Mn.getRowColCoords(fo),Ao=mo.length;for(let jo=0;jo<Ao;jo++)for(let Lo=0;Lo<Ao;Lo++)jo===0&&Lo===0||jo===0&&Lo===Ao-1||jo===Ao-1&&Lo===0||$o.push([mo[jo],mo[Lo]]);return $o}})(alignmentPattern);var finderPattern={};const getSymbolSize=utils$1.getSymbolSize,FINDER_PATTERN_SIZE=7;finderPattern.getPositions=function Mn(Fn){const io=getSymbolSize(Fn);return[[0,0],[io-FINDER_PATTERN_SIZE,0],[0,io-FINDER_PATTERN_SIZE]]};var maskPattern={};(function(Mn){Mn.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const Fn={N1:3,N2:3,N3:40,N4:10};Mn.isValid=function($o){return $o!=null&&$o!==""&&!isNaN($o)&&$o>=0&&$o<=7},Mn.from=function($o){return Mn.isValid($o)?parseInt($o,10):void 0},Mn.getPenaltyN1=function($o){const mo=$o.size;let Ao=0,jo=0,Lo=0,Ho=null,zo=null;for(let Go=0;Go<mo;Go++){jo=Lo=0,Ho=zo=null;for(let Vo=0;Vo<mo;Vo++){let Yo=$o.get(Go,Vo);Yo===Ho?jo++:(jo>=5&&(Ao+=Fn.N1+(jo-5)),Ho=Yo,jo=1),Yo=$o.get(Vo,Go),Yo===zo?Lo++:(Lo>=5&&(Ao+=Fn.N1+(Lo-5)),zo=Yo,Lo=1)}jo>=5&&(Ao+=Fn.N1+(jo-5)),Lo>=5&&(Ao+=Fn.N1+(Lo-5))}return Ao},Mn.getPenaltyN2=function($o){const mo=$o.size;let Ao=0;for(let jo=0;jo<mo-1;jo++)for(let Lo=0;Lo<mo-1;Lo++){const Ho=$o.get(jo,Lo)+$o.get(jo,Lo+1)+$o.get(jo+1,Lo)+$o.get(jo+1,Lo+1);(Ho===4||Ho===0)&&Ao++}return Ao*Fn.N2},Mn.getPenaltyN3=function($o){const mo=$o.size;let Ao=0,jo=0,Lo=0;for(let Ho=0;Ho<mo;Ho++){jo=Lo=0;for(let zo=0;zo<mo;zo++)jo=jo<<1&2047|$o.get(Ho,zo),zo>=10&&(jo===1488||jo===93)&&Ao++,Lo=Lo<<1&2047|$o.get(zo,Ho),zo>=10&&(Lo===1488||Lo===93)&&Ao++}return Ao*Fn.N3},Mn.getPenaltyN4=function($o){let mo=0;const Ao=$o.data.length;for(let Lo=0;Lo<Ao;Lo++)mo+=$o.data[Lo];return Math.abs(Math.ceil(mo*100/Ao/5)-10)*Fn.N4};function io(fo,$o,mo){switch(fo){case Mn.Patterns.PATTERN000:return($o+mo)%2===0;case Mn.Patterns.PATTERN001:return $o%2===0;case Mn.Patterns.PATTERN010:return mo%3===0;case Mn.Patterns.PATTERN011:return($o+mo)%3===0;case Mn.Patterns.PATTERN100:return(Math.floor($o/2)+Math.floor(mo/3))%2===0;case Mn.Patterns.PATTERN101:return $o*mo%2+$o*mo%3===0;case Mn.Patterns.PATTERN110:return($o*mo%2+$o*mo%3)%2===0;case Mn.Patterns.PATTERN111:return($o*mo%3+($o+mo)%2)%2===0;default:throw new Error("bad maskPattern:"+fo)}}Mn.applyMask=function($o,mo){const Ao=mo.size;for(let jo=0;jo<Ao;jo++)for(let Lo=0;Lo<Ao;Lo++)mo.isReserved(Lo,jo)||mo.xor(Lo,jo,io($o,Lo,jo))},Mn.getBestMask=function($o,mo){const Ao=Object.keys(Mn.Patterns).length;let jo=0,Lo=1/0;for(let Ho=0;Ho<Ao;Ho++){mo(Ho),Mn.applyMask(Ho,$o);const zo=Mn.getPenaltyN1($o)+Mn.getPenaltyN2($o)+Mn.getPenaltyN3($o)+Mn.getPenaltyN4($o);Mn.applyMask(Ho,$o),zo<Lo&&(Lo=zo,jo=Ho)}return jo}})(maskPattern);var errorCorrectionCode={};const ECLevel$1=errorCorrectionLevel,EC_BLOCKS_TABLE=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],EC_CODEWORDS_TABLE=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];errorCorrectionCode.getBlocksCount=function Mn(Fn,io){switch(io){case ECLevel$1.L:return EC_BLOCKS_TABLE[(Fn-1)*4+0];case ECLevel$1.M:return EC_BLOCKS_TABLE[(Fn-1)*4+1];case ECLevel$1.Q:return EC_BLOCKS_TABLE[(Fn-1)*4+2];case ECLevel$1.H:return EC_BLOCKS_TABLE[(Fn-1)*4+3];default:return}};errorCorrectionCode.getTotalCodewordsCount=function Mn(Fn,io){switch(io){case ECLevel$1.L:return EC_CODEWORDS_TABLE[(Fn-1)*4+0];case ECLevel$1.M:return EC_CODEWORDS_TABLE[(Fn-1)*4+1];case ECLevel$1.Q:return EC_CODEWORDS_TABLE[(Fn-1)*4+2];case ECLevel$1.H:return EC_CODEWORDS_TABLE[(Fn-1)*4+3];default:return}};var polynomial={},galoisField={};const EXP_TABLE=new Uint8Array(512),LOG_TABLE=new Uint8Array(256);(function Mn(){let Fn=1;for(let io=0;io<255;io++)EXP_TABLE[io]=Fn,LOG_TABLE[Fn]=io,Fn<<=1,Fn&256&&(Fn^=285);for(let io=255;io<512;io++)EXP_TABLE[io]=EXP_TABLE[io-255]})();galoisField.log=function Mn(Fn){if(Fn<1)throw new Error("log("+Fn+")");return LOG_TABLE[Fn]};galoisField.exp=function Mn(Fn){return EXP_TABLE[Fn]};galoisField.mul=function Mn(Fn,io){return Fn===0||io===0?0:EXP_TABLE[LOG_TABLE[Fn]+LOG_TABLE[io]]};(function(Mn){const Fn=galoisField;Mn.mul=function(fo,$o){const mo=new Uint8Array(fo.length+$o.length-1);for(let Ao=0;Ao<fo.length;Ao++)for(let jo=0;jo<$o.length;jo++)mo[Ao+jo]^=Fn.mul(fo[Ao],$o[jo]);return mo},Mn.mod=function(fo,$o){let mo=new Uint8Array(fo);for(;mo.length-$o.length>=0;){const Ao=mo[0];for(let Lo=0;Lo<$o.length;Lo++)mo[Lo]^=Fn.mul($o[Lo],Ao);let jo=0;for(;jo<mo.length&&mo[jo]===0;)jo++;mo=mo.slice(jo)}return mo},Mn.generateECPolynomial=function(fo){let $o=new Uint8Array([1]);for(let mo=0;mo<fo;mo++)$o=Mn.mul($o,new Uint8Array([1,Fn.exp(mo)]));return $o}})(polynomial);const Polynomial=polynomial;function ReedSolomonEncoder$1(Mn){this.genPoly=void 0,this.degree=Mn,this.degree&&this.initialize(this.degree)}ReedSolomonEncoder$1.prototype.initialize=function Mn(Fn){this.degree=Fn,this.genPoly=Polynomial.generateECPolynomial(this.degree)};ReedSolomonEncoder$1.prototype.encode=function Mn(Fn){if(!this.genPoly)throw new Error("Encoder not initialized");const io=new Uint8Array(Fn.length+this.degree);io.set(Fn);const fo=Polynomial.mod(io,this.genPoly),$o=this.degree-fo.length;if($o>0){const mo=new Uint8Array(this.degree);return mo.set(fo,$o),mo}return fo};var reedSolomonEncoder=ReedSolomonEncoder$1,version$2={},mode={},versionCheck={};versionCheck.isValid=function Mn(Fn){return!isNaN(Fn)&&Fn>=1&&Fn<=40};var regex={};const numeric="[0-9]+",alphanumeric="[A-Z $%*+\\-./:]+";let kanji="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";kanji=kanji.replace(/u/g,"\\u");const byte="(?:(?![A-Z0-9 $%*+\\-./:]|"+kanji+`)(?:.|[\r
]))+`;regex.KANJI=new RegExp(kanji,"g");regex.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");regex.BYTE=new RegExp(byte,"g");regex.NUMERIC=new RegExp(numeric,"g");regex.ALPHANUMERIC=new RegExp(alphanumeric,"g");const TEST_KANJI=new RegExp("^"+kanji+"$"),TEST_NUMERIC=new RegExp("^"+numeric+"$"),TEST_ALPHANUMERIC=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");regex.testKanji=function Mn(Fn){return TEST_KANJI.test(Fn)};regex.testNumeric=function Mn(Fn){return TEST_NUMERIC.test(Fn)};regex.testAlphanumeric=function Mn(Fn){return TEST_ALPHANUMERIC.test(Fn)};(function(Mn){const Fn=versionCheck,io=regex;Mn.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},Mn.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},Mn.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},Mn.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},Mn.MIXED={bit:-1},Mn.getCharCountIndicator=function(mo,Ao){if(!mo.ccBits)throw new Error("Invalid mode: "+mo);if(!Fn.isValid(Ao))throw new Error("Invalid version: "+Ao);return Ao>=1&&Ao<10?mo.ccBits[0]:Ao<27?mo.ccBits[1]:mo.ccBits[2]},Mn.getBestModeForData=function(mo){return io.testNumeric(mo)?Mn.NUMERIC:io.testAlphanumeric(mo)?Mn.ALPHANUMERIC:io.testKanji(mo)?Mn.KANJI:Mn.BYTE},Mn.toString=function(mo){if(mo&&mo.id)return mo.id;throw new Error("Invalid mode")},Mn.isValid=function(mo){return mo&&mo.bit&&mo.ccBits};function fo($o){if(typeof $o!="string")throw new Error("Param is not a string");switch($o.toLowerCase()){case"numeric":return Mn.NUMERIC;case"alphanumeric":return Mn.ALPHANUMERIC;case"kanji":return Mn.KANJI;case"byte":return Mn.BYTE;default:throw new Error("Unknown mode: "+$o)}}Mn.from=function(mo,Ao){if(Mn.isValid(mo))return mo;try{return fo(mo)}catch{return Ao}}})(mode);(function(Mn){const Fn=utils$1,io=errorCorrectionCode,fo=errorCorrectionLevel,$o=mode,mo=versionCheck,Ao=7973,jo=Fn.getBCHDigit(Ao);function Lo(Vo,Yo,Xo){for(let is=1;is<=40;is++)if(Yo<=Mn.getCapacity(is,Xo,Vo))return is}function Ho(Vo,Yo){return $o.getCharCountIndicator(Vo,Yo)+4}function zo(Vo,Yo){let Xo=0;return Vo.forEach(function(is){const yl=Ho(is.mode,Yo);Xo+=yl+is.getBitsLength()}),Xo}function Go(Vo,Yo){for(let Xo=1;Xo<=40;Xo++)if(zo(Vo,Xo)<=Mn.getCapacity(Xo,Yo,$o.MIXED))return Xo}Mn.from=function(Yo,Xo){return mo.isValid(Yo)?parseInt(Yo,10):Xo},Mn.getCapacity=function(Yo,Xo,is){if(!mo.isValid(Yo))throw new Error("Invalid QR Code version");typeof is>"u"&&(is=$o.BYTE);const yl=Fn.getSymbolTotalCodewords(Yo),us=io.getTotalCodewordsCount(Yo,Xo),hs=(yl-us)*8;if(is===$o.MIXED)return hs;const _l=hs-Ho(is,Yo);switch(is){case $o.NUMERIC:return Math.floor(_l/10*3);case $o.ALPHANUMERIC:return Math.floor(_l/11*2);case $o.KANJI:return Math.floor(_l/13);case $o.BYTE:default:return Math.floor(_l/8)}},Mn.getBestVersionForData=function(Yo,Xo){let is;const yl=fo.from(Xo,fo.M);if(Array.isArray(Yo)){if(Yo.length>1)return Go(Yo,yl);if(Yo.length===0)return 1;is=Yo[0]}else is=Yo;return Lo(is.mode,is.getLength(),yl)},Mn.getEncodedBits=function(Yo){if(!mo.isValid(Yo)||Yo<7)throw new Error("Invalid QR Code version");let Xo=Yo<<12;for(;Fn.getBCHDigit(Xo)-jo>=0;)Xo^=Ao<<Fn.getBCHDigit(Xo)-jo;return Yo<<12|Xo}})(version$2);var formatInfo={};const Utils$3=utils$1,G15=1335,G15_MASK=21522,G15_BCH=Utils$3.getBCHDigit(G15);formatInfo.getEncodedBits=function Mn(Fn,io){const fo=Fn.bit<<3|io;let $o=fo<<10;for(;Utils$3.getBCHDigit($o)-G15_BCH>=0;)$o^=G15<<Utils$3.getBCHDigit($o)-G15_BCH;return(fo<<10|$o)^G15_MASK};var segments={};const Mode$4=mode;function NumericData(Mn){this.mode=Mode$4.NUMERIC,this.data=Mn.toString()}NumericData.getBitsLength=function Mn(Fn){return 10*Math.floor(Fn/3)+(Fn%3?Fn%3*3+1:0)};NumericData.prototype.getLength=function Mn(){return this.data.length};NumericData.prototype.getBitsLength=function Mn(){return NumericData.getBitsLength(this.data.length)};NumericData.prototype.write=function Mn(Fn){let io,fo,$o;for(io=0;io+3<=this.data.length;io+=3)fo=this.data.substr(io,3),$o=parseInt(fo,10),Fn.put($o,10);const mo=this.data.length-io;mo>0&&(fo=this.data.substr(io),$o=parseInt(fo,10),Fn.put($o,mo*3+1))};var numericData=NumericData;const Mode$3=mode,ALPHA_NUM_CHARS=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function AlphanumericData(Mn){this.mode=Mode$3.ALPHANUMERIC,this.data=Mn}AlphanumericData.getBitsLength=function Mn(Fn){return 11*Math.floor(Fn/2)+6*(Fn%2)};AlphanumericData.prototype.getLength=function Mn(){return this.data.length};AlphanumericData.prototype.getBitsLength=function Mn(){return AlphanumericData.getBitsLength(this.data.length)};AlphanumericData.prototype.write=function Mn(Fn){let io;for(io=0;io+2<=this.data.length;io+=2){let fo=ALPHA_NUM_CHARS.indexOf(this.data[io])*45;fo+=ALPHA_NUM_CHARS.indexOf(this.data[io+1]),Fn.put(fo,11)}this.data.length%2&&Fn.put(ALPHA_NUM_CHARS.indexOf(this.data[io]),6)};var alphanumericData=AlphanumericData;const Mode$2=mode;function ByteData(Mn){this.mode=Mode$2.BYTE,typeof Mn=="string"?this.data=new TextEncoder().encode(Mn):this.data=new Uint8Array(Mn)}ByteData.getBitsLength=function Mn(Fn){return Fn*8};ByteData.prototype.getLength=function Mn(){return this.data.length};ByteData.prototype.getBitsLength=function Mn(){return ByteData.getBitsLength(this.data.length)};ByteData.prototype.write=function(Mn){for(let Fn=0,io=this.data.length;Fn<io;Fn++)Mn.put(this.data[Fn],8)};var byteData=ByteData;const Mode$1=mode,Utils$2=utils$1;function KanjiData(Mn){this.mode=Mode$1.KANJI,this.data=Mn}KanjiData.getBitsLength=function Mn(Fn){return Fn*13};KanjiData.prototype.getLength=function Mn(){return this.data.length};KanjiData.prototype.getBitsLength=function Mn(){return KanjiData.getBitsLength(this.data.length)};KanjiData.prototype.write=function(Mn){let Fn;for(Fn=0;Fn<this.data.length;Fn++){let io=Utils$2.toSJIS(this.data[Fn]);if(io>=33088&&io<=40956)io-=33088;else if(io>=57408&&io<=60351)io-=49472;else throw new Error("Invalid SJIS character: "+this.data[Fn]+`
Make sure your charset is UTF-8`);io=(io>>>8&255)*192+(io&255),Mn.put(io,13)}};var kanjiData=KanjiData;(function(Mn){const Fn=mode,io=numericData,fo=alphanumericData,$o=byteData,mo=kanjiData,Ao=regex,jo=utils$1,Lo=dijkstraExports;function Ho(us){return unescape(encodeURIComponent(us)).length}function zo(us,hs,_l){const xl=[];let Il;for(;(Il=us.exec(_l))!==null;)xl.push({data:Il[0],index:Il.index,mode:hs,length:Il[0].length});return xl}function Go(us){const hs=zo(Ao.NUMERIC,Fn.NUMERIC,us),_l=zo(Ao.ALPHANUMERIC,Fn.ALPHANUMERIC,us);let xl,Il;return jo.isKanjiModeEnabled()?(xl=zo(Ao.BYTE,Fn.BYTE,us),Il=zo(Ao.KANJI,Fn.KANJI,us)):(xl=zo(Ao.BYTE_KANJI,Fn.BYTE,us),Il=[]),hs.concat(_l,xl,Il).sort(function(Tl,Cl){return Tl.index-Cl.index}).map(function(Tl){return{data:Tl.data,mode:Tl.mode,length:Tl.length}})}function Vo(us,hs){switch(hs){case Fn.NUMERIC:return io.getBitsLength(us);case Fn.ALPHANUMERIC:return fo.getBitsLength(us);case Fn.KANJI:return mo.getBitsLength(us);case Fn.BYTE:return $o.getBitsLength(us)}}function Yo(us){return us.reduce(function(hs,_l){const xl=hs.length-1>=0?hs[hs.length-1]:null;return xl&&xl.mode===_l.mode?(hs[hs.length-1].data+=_l.data,hs):(hs.push(_l),hs)},[])}function Xo(us){const hs=[];for(let _l=0;_l<us.length;_l++){const xl=us[_l];switch(xl.mode){case Fn.NUMERIC:hs.push([xl,{data:xl.data,mode:Fn.ALPHANUMERIC,length:xl.length},{data:xl.data,mode:Fn.BYTE,length:xl.length}]);break;case Fn.ALPHANUMERIC:hs.push([xl,{data:xl.data,mode:Fn.BYTE,length:xl.length}]);break;case Fn.KANJI:hs.push([xl,{data:xl.data,mode:Fn.BYTE,length:Ho(xl.data)}]);break;case Fn.BYTE:hs.push([{data:xl.data,mode:Fn.BYTE,length:Ho(xl.data)}])}}return hs}function is(us,hs){const _l={},xl={start:{}};let Il=["start"];for(let Ol=0;Ol<us.length;Ol++){const Tl=us[Ol],Cl=[];for(let Nl=0;Nl<Tl.length;Nl++){const Wl=Tl[Nl],Dl=""+Ol+Nl;Cl.push(Dl),_l[Dl]={node:Wl,lastCount:0},xl[Dl]={};for(let Rl=0;Rl<Il.length;Rl++){const Qo=Il[Rl];_l[Qo]&&_l[Qo].node.mode===Wl.mode?(xl[Qo][Dl]=Vo(_l[Qo].lastCount+Wl.length,Wl.mode)-Vo(_l[Qo].lastCount,Wl.mode),_l[Qo].lastCount+=Wl.length):(_l[Qo]&&(_l[Qo].lastCount=Wl.length),xl[Qo][Dl]=Vo(Wl.length,Wl.mode)+4+Fn.getCharCountIndicator(Wl.mode,hs))}}Il=Cl}for(let Ol=0;Ol<Il.length;Ol++)xl[Il[Ol]].end=0;return{map:xl,table:_l}}function yl(us,hs){let _l;const xl=Fn.getBestModeForData(us);if(_l=Fn.from(hs,xl),_l!==Fn.BYTE&&_l.bit<xl.bit)throw new Error('"'+us+'" cannot be encoded with mode '+Fn.toString(_l)+`.
Suggested mode is: `+Fn.toString(xl));switch(_l===Fn.KANJI&&!jo.isKanjiModeEnabled()&&(_l=Fn.BYTE),_l){case Fn.NUMERIC:return new io(us);case Fn.ALPHANUMERIC:return new fo(us);case Fn.KANJI:return new mo(us);case Fn.BYTE:return new $o(us)}}Mn.fromArray=function(hs){return hs.reduce(function(_l,xl){return typeof xl=="string"?_l.push(yl(xl,null)):xl.data&&_l.push(yl(xl.data,xl.mode)),_l},[])},Mn.fromString=function(hs,_l){const xl=Go(hs,jo.isKanjiModeEnabled()),Il=Xo(xl),Ol=is(Il,_l),Tl=Lo.find_path(Ol.map,"start","end"),Cl=[];for(let Nl=1;Nl<Tl.length-1;Nl++)Cl.push(Ol.table[Tl[Nl]].node);return Mn.fromArray(Yo(Cl))},Mn.rawSplit=function(hs){return Mn.fromArray(Go(hs,jo.isKanjiModeEnabled()))}})(segments);const Utils$1=utils$1,ECLevel=errorCorrectionLevel,BitBuffer=bitBuffer,BitMatrix=bitMatrix,AlignmentPattern=alignmentPattern,FinderPattern=finderPattern,MaskPattern=maskPattern,ECCode=errorCorrectionCode,ReedSolomonEncoder=reedSolomonEncoder,Version=version$2,FormatInfo=formatInfo,Mode=mode,Segments=segments;function setupFinderPattern(Mn,Fn){const io=Mn.size,fo=FinderPattern.getPositions(Fn);for(let $o=0;$o<fo.length;$o++){const mo=fo[$o][0],Ao=fo[$o][1];for(let jo=-1;jo<=7;jo++)if(!(mo+jo<=-1||io<=mo+jo))for(let Lo=-1;Lo<=7;Lo++)Ao+Lo<=-1||io<=Ao+Lo||(jo>=0&&jo<=6&&(Lo===0||Lo===6)||Lo>=0&&Lo<=6&&(jo===0||jo===6)||jo>=2&&jo<=4&&Lo>=2&&Lo<=4?Mn.set(mo+jo,Ao+Lo,!0,!0):Mn.set(mo+jo,Ao+Lo,!1,!0))}}function setupTimingPattern(Mn){const Fn=Mn.size;for(let io=8;io<Fn-8;io++){const fo=io%2===0;Mn.set(io,6,fo,!0),Mn.set(6,io,fo,!0)}}function setupAlignmentPattern(Mn,Fn){const io=AlignmentPattern.getPositions(Fn);for(let fo=0;fo<io.length;fo++){const $o=io[fo][0],mo=io[fo][1];for(let Ao=-2;Ao<=2;Ao++)for(let jo=-2;jo<=2;jo++)Ao===-2||Ao===2||jo===-2||jo===2||Ao===0&&jo===0?Mn.set($o+Ao,mo+jo,!0,!0):Mn.set($o+Ao,mo+jo,!1,!0)}}function setupVersionInfo(Mn,Fn){const io=Mn.size,fo=Version.getEncodedBits(Fn);let $o,mo,Ao;for(let jo=0;jo<18;jo++)$o=Math.floor(jo/3),mo=jo%3+io-8-3,Ao=(fo>>jo&1)===1,Mn.set($o,mo,Ao,!0),Mn.set(mo,$o,Ao,!0)}function setupFormatInfo(Mn,Fn,io){const fo=Mn.size,$o=FormatInfo.getEncodedBits(Fn,io);let mo,Ao;for(mo=0;mo<15;mo++)Ao=($o>>mo&1)===1,mo<6?Mn.set(mo,8,Ao,!0):mo<8?Mn.set(mo+1,8,Ao,!0):Mn.set(fo-15+mo,8,Ao,!0),mo<8?Mn.set(8,fo-mo-1,Ao,!0):mo<9?Mn.set(8,15-mo-1+1,Ao,!0):Mn.set(8,15-mo-1,Ao,!0);Mn.set(fo-8,8,1,!0)}function setupData(Mn,Fn){const io=Mn.size;let fo=-1,$o=io-1,mo=7,Ao=0;for(let jo=io-1;jo>0;jo-=2)for(jo===6&&jo--;;){for(let Lo=0;Lo<2;Lo++)if(!Mn.isReserved($o,jo-Lo)){let Ho=!1;Ao<Fn.length&&(Ho=(Fn[Ao]>>>mo&1)===1),Mn.set($o,jo-Lo,Ho),mo--,mo===-1&&(Ao++,mo=7)}if($o+=fo,$o<0||io<=$o){$o-=fo,fo=-fo;break}}}function createData(Mn,Fn,io){const fo=new BitBuffer;io.forEach(function(Lo){fo.put(Lo.mode.bit,4),fo.put(Lo.getLength(),Mode.getCharCountIndicator(Lo.mode,Mn)),Lo.write(fo)});const $o=Utils$1.getSymbolTotalCodewords(Mn),mo=ECCode.getTotalCodewordsCount(Mn,Fn),Ao=($o-mo)*8;for(fo.getLengthInBits()+4<=Ao&&fo.put(0,4);fo.getLengthInBits()%8!==0;)fo.putBit(0);const jo=(Ao-fo.getLengthInBits())/8;for(let Lo=0;Lo<jo;Lo++)fo.put(Lo%2?17:236,8);return createCodewords(fo,Mn,Fn)}function createCodewords(Mn,Fn,io){const fo=Utils$1.getSymbolTotalCodewords(Fn),$o=ECCode.getTotalCodewordsCount(Fn,io),mo=fo-$o,Ao=ECCode.getBlocksCount(Fn,io),jo=fo%Ao,Lo=Ao-jo,Ho=Math.floor(fo/Ao),zo=Math.floor(mo/Ao),Go=zo+1,Vo=Ho-zo,Yo=new ReedSolomonEncoder(Vo);let Xo=0;const is=new Array(Ao),yl=new Array(Ao);let us=0;const hs=new Uint8Array(Mn.buffer);for(let Tl=0;Tl<Ao;Tl++){const Cl=Tl<Lo?zo:Go;is[Tl]=hs.slice(Xo,Xo+Cl),yl[Tl]=Yo.encode(is[Tl]),Xo+=Cl,us=Math.max(us,Cl)}const _l=new Uint8Array(fo);let xl=0,Il,Ol;for(Il=0;Il<us;Il++)for(Ol=0;Ol<Ao;Ol++)Il<is[Ol].length&&(_l[xl++]=is[Ol][Il]);for(Il=0;Il<Vo;Il++)for(Ol=0;Ol<Ao;Ol++)_l[xl++]=yl[Ol][Il];return _l}function createSymbol(Mn,Fn,io,fo){let $o;if(Array.isArray(Mn))$o=Segments.fromArray(Mn);else if(typeof Mn=="string"){let Ho=Fn;if(!Ho){const zo=Segments.rawSplit(Mn);Ho=Version.getBestVersionForData(zo,io)}$o=Segments.fromString(Mn,Ho||40)}else throw new Error("Invalid data");const mo=Version.getBestVersionForData($o,io);if(!mo)throw new Error("The amount of data is too big to be stored in a QR Code");if(!Fn)Fn=mo;else if(Fn<mo)throw new Error(`
The chosen QR Code version cannot contain this amount of data.
Minimum version required to store current data is: `+mo+`.
`);const Ao=createData(Fn,io,$o),jo=Utils$1.getSymbolSize(Fn),Lo=new BitMatrix(jo);return setupFinderPattern(Lo,Fn),setupTimingPattern(Lo),setupAlignmentPattern(Lo,Fn),setupFormatInfo(Lo,io,0),Fn>=7&&setupVersionInfo(Lo,Fn),setupData(Lo,Ao),isNaN(fo)&&(fo=MaskPattern.getBestMask(Lo,setupFormatInfo.bind(null,Lo,io))),MaskPattern.applyMask(fo,Lo),setupFormatInfo(Lo,io,fo),{modules:Lo,version:Fn,errorCorrectionLevel:io,maskPattern:fo,segments:$o}}qrcode.create=function Mn(Fn,io){if(typeof Fn>"u"||Fn==="")throw new Error("No input text");let fo=ECLevel.M,$o,mo;return typeof io<"u"&&(fo=ECLevel.from(io.errorCorrectionLevel,ECLevel.M),$o=Version.from(io.version),mo=MaskPattern.from(io.maskPattern),io.toSJISFunc&&Utils$1.setToSJISFunction(io.toSJISFunc)),createSymbol(Fn,$o,fo,mo)};var canvas={},utils={};(function(Mn){function Fn(io){if(typeof io=="number"&&(io=io.toString()),typeof io!="string")throw new Error("Color should be defined as hex string");let fo=io.slice().replace("#","").split("");if(fo.length<3||fo.length===5||fo.length>8)throw new Error("Invalid hex color: "+io);(fo.length===3||fo.length===4)&&(fo=Array.prototype.concat.apply([],fo.map(function(mo){return[mo,mo]}))),fo.length===6&&fo.push("F","F");const $o=parseInt(fo.join(""),16);return{r:$o>>24&255,g:$o>>16&255,b:$o>>8&255,a:$o&255,hex:"#"+fo.slice(0,6).join("")}}Mn.getOptions=function(fo){fo||(fo={}),fo.color||(fo.color={});const $o=typeof fo.margin>"u"||fo.margin===null||fo.margin<0?4:fo.margin,mo=fo.width&&fo.width>=21?fo.width:void 0,Ao=fo.scale||4;return{width:mo,scale:mo?4:Ao,margin:$o,color:{dark:Fn(fo.color.dark||"#000000ff"),light:Fn(fo.color.light||"#ffffffff")},type:fo.type,rendererOpts:fo.rendererOpts||{}}},Mn.getScale=function(fo,$o){return $o.width&&$o.width>=fo+$o.margin*2?$o.width/(fo+$o.margin*2):$o.scale},Mn.getImageWidth=function(fo,$o){const mo=Mn.getScale(fo,$o);return Math.floor((fo+$o.margin*2)*mo)},Mn.qrToImageData=function(fo,$o,mo){const Ao=$o.modules.size,jo=$o.modules.data,Lo=Mn.getScale(Ao,mo),Ho=Math.floor((Ao+mo.margin*2)*Lo),zo=mo.margin*Lo,Go=[mo.color.light,mo.color.dark];for(let Vo=0;Vo<Ho;Vo++)for(let Yo=0;Yo<Ho;Yo++){let Xo=(Vo*Ho+Yo)*4,is=mo.color.light;if(Vo>=zo&&Yo>=zo&&Vo<Ho-zo&&Yo<Ho-zo){const yl=Math.floor((Vo-zo)/Lo),us=Math.floor((Yo-zo)/Lo);is=Go[jo[yl*Ao+us]?1:0]}fo[Xo++]=is.r,fo[Xo++]=is.g,fo[Xo++]=is.b,fo[Xo]=is.a}}})(utils);(function(Mn){const Fn=utils;function io($o,mo,Ao){$o.clearRect(0,0,mo.width,mo.height),mo.style||(mo.style={}),mo.height=Ao,mo.width=Ao,mo.style.height=Ao+"px",mo.style.width=Ao+"px"}function fo(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}Mn.render=function(mo,Ao,jo){let Lo=jo,Ho=Ao;typeof Lo>"u"&&(!Ao||!Ao.getContext)&&(Lo=Ao,Ao=void 0),Ao||(Ho=fo()),Lo=Fn.getOptions(Lo);const zo=Fn.getImageWidth(mo.modules.size,Lo),Go=Ho.getContext("2d"),Vo=Go.createImageData(zo,zo);return Fn.qrToImageData(Vo.data,mo,Lo),io(Go,Ho,zo),Go.putImageData(Vo,0,0),Ho},Mn.renderToDataURL=function(mo,Ao,jo){let Lo=jo;typeof Lo>"u"&&(!Ao||!Ao.getContext)&&(Lo=Ao,Ao=void 0),Lo||(Lo={});const Ho=Mn.render(mo,Ao,Lo),zo=Lo.type||"image/png",Go=Lo.rendererOpts||{};return Ho.toDataURL(zo,Go.quality)}})(canvas);var svgTag={};const Utils=utils;function getColorAttrib(Mn,Fn){const io=Mn.a/255,fo=Fn+'="'+Mn.hex+'"';return io<1?fo+" "+Fn+'-opacity="'+io.toFixed(2).slice(1)+'"':fo}function svgCmd(Mn,Fn,io){let fo=Mn+Fn;return typeof io<"u"&&(fo+=" "+io),fo}function qrToPath(Mn,Fn,io){let fo="",$o=0,mo=!1,Ao=0;for(let jo=0;jo<Mn.length;jo++){const Lo=Math.floor(jo%Fn),Ho=Math.floor(jo/Fn);!Lo&&!mo&&(mo=!0),Mn[jo]?(Ao++,jo>0&&Lo>0&&Mn[jo-1]||(fo+=mo?svgCmd("M",Lo+io,.5+Ho+io):svgCmd("m",$o,0),$o=0,mo=!1),Lo+1<Fn&&Mn[jo+1]||(fo+=svgCmd("h",Ao),Ao=0)):$o++}return fo}svgTag.render=function Mn(Fn,io,fo){const $o=Utils.getOptions(io),mo=Fn.modules.size,Ao=Fn.modules.data,jo=mo+$o.margin*2,Lo=$o.color.light.a?"<path "+getColorAttrib($o.color.light,"fill")+' d="M0 0h'+jo+"v"+jo+'H0z"/>':"",Ho="<path "+getColorAttrib($o.color.dark,"stroke")+' d="'+qrToPath(Ao,mo,$o.margin)+'"/>',zo='viewBox="0 0 '+jo+" "+jo+'"',Vo='<svg xmlns="http://www.w3.org/2000/svg" '+($o.width?'width="'+$o.width+'" height="'+$o.width+'" ':"")+zo+' shape-rendering="crispEdges">'+Lo+Ho+`</svg>
`;return typeof fo=="function"&&fo(null,Vo),Vo};const canPromise=canPromise$1,QRCode=qrcode,CanvasRenderer=canvas,SvgRenderer=svgTag;function renderCanvas(Mn,Fn,io,fo,$o){const mo=[].slice.call(arguments,1),Ao=mo.length,jo=typeof mo[Ao-1]=="function";if(!jo&&!canPromise())throw new Error("Callback required as last argument");if(jo){if(Ao<2)throw new Error("Too few arguments provided");Ao===2?($o=io,io=Fn,Fn=fo=void 0):Ao===3&&(Fn.getContext&&typeof $o>"u"?($o=fo,fo=void 0):($o=fo,fo=io,io=Fn,Fn=void 0))}else{if(Ao<1)throw new Error("Too few arguments provided");return Ao===1?(io=Fn,Fn=fo=void 0):Ao===2&&!Fn.getContext&&(fo=io,io=Fn,Fn=void 0),new Promise(function(Lo,Ho){try{const zo=QRCode.create(io,fo);Lo(Mn(zo,Fn,fo))}catch(zo){Ho(zo)}})}try{const Lo=QRCode.create(io,fo);$o(null,Mn(Lo,Fn,fo))}catch(Lo){$o(Lo)}}browser.create=QRCode.create;browser.toCanvas=renderCanvas.bind(null,CanvasRenderer.render);browser.toDataURL=renderCanvas.bind(null,CanvasRenderer.renderToDataURL);browser.toString=renderCanvas.bind(null,function(Mn,Fn,io){return SvgRenderer.render(Mn,io)});var toggleSelection=function(){var Mn=document.getSelection();if(!Mn.rangeCount)return function(){};for(var Fn=document.activeElement,io=[],fo=0;fo<Mn.rangeCount;fo++)io.push(Mn.getRangeAt(fo));switch(Fn.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":Fn.blur();break;default:Fn=null;break}return Mn.removeAllRanges(),function(){Mn.type==="Caret"&&Mn.removeAllRanges(),Mn.rangeCount||io.forEach(function($o){Mn.addRange($o)}),Fn&&Fn.focus()}},deselectCurrent=toggleSelection,clipboardToIE11Formatting={"text/plain":"Text","text/html":"Url",default:"Text"},defaultMessage="Copy to clipboard: #{key}, Enter";function format(Mn){var Fn=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return Mn.replace(/#{\s*key\s*}/g,Fn)}function copy(Mn,Fn){var io,fo,$o,mo,Ao,jo,Lo=!1;Fn||(Fn={}),io=Fn.debug||!1;try{$o=deselectCurrent(),mo=document.createRange(),Ao=document.getSelection(),jo=document.createElement("span"),jo.textContent=Mn,jo.ariaHidden="true",jo.style.all="unset",jo.style.position="fixed",jo.style.top=0,jo.style.clip="rect(0, 0, 0, 0)",jo.style.whiteSpace="pre",jo.style.webkitUserSelect="text",jo.style.MozUserSelect="text",jo.style.msUserSelect="text",jo.style.userSelect="text",jo.addEventListener("copy",function(zo){if(zo.stopPropagation(),Fn.format)if(zo.preventDefault(),typeof zo.clipboardData>"u"){io&&console.warn("unable to use e.clipboardData"),io&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var Go=clipboardToIE11Formatting[Fn.format]||clipboardToIE11Formatting.default;window.clipboardData.setData(Go,Mn)}else zo.clipboardData.clearData(),zo.clipboardData.setData(Fn.format,Mn);Fn.onCopy&&(zo.preventDefault(),Fn.onCopy(zo.clipboardData))}),document.body.appendChild(jo),mo.selectNodeContents(jo),Ao.addRange(mo);var Ho=document.execCommand("copy");if(!Ho)throw new Error("copy command was unsuccessful");Lo=!0}catch(zo){io&&console.error("unable to copy using execCommand: ",zo),io&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(Fn.format||"text",Mn),Fn.onCopy&&Fn.onCopy(window.clipboardData),Lo=!0}catch(Go){io&&console.error("unable to copy using clipboardData: ",Go),io&&console.error("falling back to prompt"),fo=format("message"in Fn?Fn.message:defaultMessage),window.prompt(fo,Mn)}}finally{Ao&&(typeof Ao.removeRange=="function"?Ao.removeRange(mo):Ao.removeAllRanges()),jo&&document.body.removeChild(jo),$o()}return Lo}var copyToClipboard=copy;const copy$1=getDefaultExportFromCjs$1(copyToClipboard);function __awaiter$3(Mn,Fn,io,fo){function $o(mo){return mo instanceof io?mo:new io(function(Ao){Ao(mo)})}return new(io||(io=Promise))(function(mo,Ao){function jo(zo){try{Ho(fo.next(zo))}catch(Go){Ao(Go)}}function Lo(zo){try{Ho(fo.throw(zo))}catch(Go){Ao(Go)}}function Ho(zo){zo.done?mo(zo.value):$o(zo.value).then(jo,Lo)}Ho((fo=fo.apply(Mn,[])).next())})}typeof SuppressedError=="function"&&SuppressedError;var commonjsGlobal$3=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global$o<"u"?global$o:typeof self<"u"?self:{},fails$c$2=function(Mn){try{return!!Mn()}catch{return!0}},toString$2={}.toString,classofRaw$1$2=function(Mn){return toString$2.call(Mn).slice(8,-1)},fails$b$2=fails$c$2,classof$6$1=classofRaw$1$2,split$2="".split,indexedObject$2=fails$b$2(function(){return!Object("z").propertyIsEnumerable(0)})?function(Mn){return classof$6$1(Mn)=="String"?split$2.call(Mn,""):Object(Mn)}:Object,requireObjectCoercible$3$1=function(Mn){if(Mn==null)throw TypeError("Can't call method on "+Mn);return Mn},IndexedObject$2$1=indexedObject$2,requireObjectCoercible$2$2=requireObjectCoercible$3$1,toIndexedObject$4$2=function(Mn){return IndexedObject$2$1(requireObjectCoercible$2$2(Mn))},check$3=function(Mn){return Mn&&Mn.Math==Math&&Mn},global$j$1=check$3(typeof globalThis=="object"&&globalThis)||check$3(typeof window=="object"&&window)||check$3(typeof self=="object"&&self)||check$3(typeof commonjsGlobal$3=="object"&&commonjsGlobal$3)||Function("return this")(),shared$2$2={exports:{}},fails$a$2=fails$c$2,descriptors$3=!fails$a$2(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),objectDefineProperty$3={},isObject$9$1=function(Mn){return typeof Mn=="object"?Mn!==null:typeof Mn=="function"},global$i$1=global$j$1,isObject$8$2=isObject$9$1,document$2$2=global$i$1.document,EXISTS$3=isObject$8$2(document$2$2)&&isObject$8$2(document$2$2.createElement),documentCreateElement$1$2=function(Mn){return EXISTS$3?document$2$2.createElement(Mn):{}},DESCRIPTORS$8$1=descriptors$3,fails$9$2=fails$c$2,createElement$1$2=documentCreateElement$1$2,ie8DomDefine$3=!DESCRIPTORS$8$1&&!fails$9$2(function(){return Object.defineProperty(createElement$1$2("div"),"a",{get:function(){return 7}}).a!=7}),isObject$7$2=isObject$9$1,anObject$b$1=function(Mn){if(!isObject$7$2(Mn))throw TypeError(String(Mn)+" is not an object");return Mn},isObject$6$2=isObject$9$1,toPrimitive$2$2=function(Mn,Fn){if(!isObject$6$2(Mn))return Mn;var io,fo;if(Fn&&typeof(io=Mn.toString)=="function"&&!isObject$6$2(fo=io.call(Mn))||typeof(io=Mn.valueOf)=="function"&&!isObject$6$2(fo=io.call(Mn))||!Fn&&typeof(io=Mn.toString)=="function"&&!isObject$6$2(fo=io.call(Mn)))return fo;throw TypeError("Can't convert object to primitive value")},DESCRIPTORS$7$2=descriptors$3,IE8_DOM_DEFINE$1$2=ie8DomDefine$3,anObject$a$2=anObject$b$1,toPrimitive$1$3=toPrimitive$2$2,nativeDefineProperty$4=Object.defineProperty;objectDefineProperty$3.f=DESCRIPTORS$7$2?nativeDefineProperty$4:function Mn(Fn,io,fo){if(anObject$a$2(Fn),io=toPrimitive$1$3(io,!0),anObject$a$2(fo),IE8_DOM_DEFINE$1$2)try{return nativeDefineProperty$4(Fn,io,fo)}catch{}if("get"in fo||"set"in fo)throw TypeError("Accessors not supported");return"value"in fo&&(Fn[io]=fo.value),Fn};var createPropertyDescriptor$3$2=function(Mn,Fn){return{enumerable:!(Mn&1),configurable:!(Mn&2),writable:!(Mn&4),value:Fn}},DESCRIPTORS$6$2=descriptors$3,definePropertyModule$4$2=objectDefineProperty$3,createPropertyDescriptor$2$2=createPropertyDescriptor$3$2,createNonEnumerableProperty$7$2=DESCRIPTORS$6$2?function(Mn,Fn,io){return definePropertyModule$4$2.f(Mn,Fn,createPropertyDescriptor$2$2(1,io))}:function(Mn,Fn,io){return Mn[Fn]=io,Mn},global$h$1=global$j$1,createNonEnumerableProperty$6$2=createNonEnumerableProperty$7$2,setGlobal$3$2=function(Mn,Fn){try{createNonEnumerableProperty$6$2(global$h$1,Mn,Fn)}catch{global$h$1[Mn]=Fn}return Fn},global$g$2=global$j$1,setGlobal$2$3=setGlobal$3$2,SHARED$3="__core-js_shared__",store$3$3=global$g$2[SHARED$3]||setGlobal$2$3(SHARED$3,{}),sharedStore$3=store$3$3,store$2$3=sharedStore$3;(shared$2$2.exports=function(Mn,Fn){return store$2$3[Mn]||(store$2$3[Mn]=Fn!==void 0?Fn:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var hasOwnProperty$3={}.hasOwnProperty,has$b$1=function(Mn,Fn){return hasOwnProperty$3.call(Mn,Fn)},id$5=0,postfix$3=Math.random(),uid$2$2=function(Mn){return"Symbol("+String(Mn===void 0?"":Mn)+")_"+(++id$5+postfix$3).toString(36)},fails$8$2=fails$c$2,nativeSymbol$2=!!Object.getOwnPropertySymbols&&!fails$8$2(function(){return!String(Symbol())}),NATIVE_SYMBOL$1$2=nativeSymbol$2,useSymbolAsUid$2=NATIVE_SYMBOL$1$2&&!Symbol.sham&&typeof Symbol.iterator=="symbol",global$f$2=global$j$1,shared$1$3=shared$2$2.exports,has$a$2=has$b$1,uid$1$3=uid$2$2,NATIVE_SYMBOL$3=nativeSymbol$2,USE_SYMBOL_AS_UID$2=useSymbolAsUid$2,WellKnownSymbolsStore$2=shared$1$3("wks"),Symbol$1$2=global$f$2.Symbol,createWellKnownSymbol$2=USE_SYMBOL_AS_UID$2?Symbol$1$2:Symbol$1$2&&Symbol$1$2.withoutSetter||uid$1$3,wellKnownSymbol$f$1=function(Mn){return has$a$2(WellKnownSymbolsStore$2,Mn)||(NATIVE_SYMBOL$3&&has$a$2(Symbol$1$2,Mn)?WellKnownSymbolsStore$2[Mn]=Symbol$1$2[Mn]:WellKnownSymbolsStore$2[Mn]=createWellKnownSymbol$2("Symbol."+Mn)),WellKnownSymbolsStore$2[Mn]},ceil$2=Math.ceil,floor$5=Math.floor,toInteger$2$2=function(Mn){return isNaN(Mn=+Mn)?0:(Mn>0?floor$5:ceil$2)(Mn)},toInteger$1$2=toInteger$2$2,min$1$2=Math.min,toLength$3$2=function(Mn){return Mn>0?min$1$2(toInteger$1$2(Mn),9007199254740991):0},toInteger$7=toInteger$2$2,max$3=Math.max,min$4=Math.min,toAbsoluteIndex$1$2=function(Mn,Fn){var io=toInteger$7(Mn);return io<0?max$3(io+Fn,0):min$4(io,Fn)},toIndexedObject$3$2=toIndexedObject$4$2,toLength$2$2=toLength$3$2,toAbsoluteIndex$5=toAbsoluteIndex$1$2,createMethod$1$2=function(Mn){return function(Fn,io,fo){var $o=toIndexedObject$3$2(Fn),mo=toLength$2$2($o.length),Ao=toAbsoluteIndex$5(fo,mo),jo;if(Mn&&io!=io){for(;mo>Ao;)if(jo=$o[Ao++],jo!=jo)return!0}else for(;mo>Ao;Ao++)if((Mn||Ao in $o)&&$o[Ao]===io)return Mn||Ao||0;return!Mn&&-1}},arrayIncludes$2={includes:createMethod$1$2(!0),indexOf:createMethod$1$2(!1)},hiddenKeys$4$2={},has$9$2=has$b$1,toIndexedObject$2$2=toIndexedObject$4$2,indexOf$2=arrayIncludes$2.indexOf,hiddenKeys$3$2=hiddenKeys$4$2,objectKeysInternal$2=function(Mn,Fn){var io=toIndexedObject$2$2(Mn),fo=0,$o=[],mo;for(mo in io)!has$9$2(hiddenKeys$3$2,mo)&&has$9$2(io,mo)&&$o.push(mo);for(;Fn.length>fo;)has$9$2(io,mo=Fn[fo++])&&(~indexOf$2($o,mo)||$o.push(mo));return $o},enumBugKeys$3$2=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$2=objectKeysInternal$2,enumBugKeys$2$2=enumBugKeys$3$2,objectKeys$2$2=Object.keys||function Mn(Fn){return internalObjectKeys$1$2(Fn,enumBugKeys$2$2)},DESCRIPTORS$5$2=descriptors$3,definePropertyModule$3$2=objectDefineProperty$3,anObject$9$2=anObject$b$1,objectKeys$1$2=objectKeys$2$2,objectDefineProperties$2=DESCRIPTORS$5$2?Object.defineProperties:function Mn(Fn,io){anObject$9$2(Fn);for(var fo=objectKeys$1$2(io),$o=fo.length,mo=0,Ao;$o>mo;)definePropertyModule$3$2.f(Fn,Ao=fo[mo++],io[Ao]);return Fn},global$e$2=global$j$1,path$1$2=global$e$2,path$3=path$1$2,global$d$2=global$j$1,aFunction$7=function(Mn){return typeof Mn=="function"?Mn:void 0},getBuiltIn$5$1=function(Mn,Fn){return arguments.length<2?aFunction$7(path$3[Mn])||aFunction$7(global$d$2[Mn]):path$3[Mn]&&path$3[Mn][Fn]||global$d$2[Mn]&&global$d$2[Mn][Fn]},getBuiltIn$4$1=getBuiltIn$5$1,html$2$1=getBuiltIn$4$1("document","documentElement"),shared$5=shared$2$2.exports,uid$6=uid$2$2,keys$4=shared$5("keys"),sharedKey$3$2=function(Mn){return keys$4[Mn]||(keys$4[Mn]=uid$6(Mn))},anObject$8$2=anObject$b$1,defineProperties$3=objectDefineProperties$2,enumBugKeys$1$2=enumBugKeys$3$2,hiddenKeys$2$2=hiddenKeys$4$2,html$1$2=html$2$1,documentCreateElement$4=documentCreateElement$1$2,sharedKey$2$2=sharedKey$3$2,GT$2=">",LT$2="<",PROTOTYPE$3="prototype",SCRIPT$2="script",IE_PROTO$1$2=sharedKey$2$2("IE_PROTO"),EmptyConstructor$2=function(){},scriptTag$2=function(Mn){return LT$2+SCRIPT$2+GT$2+Mn+LT$2+"/"+SCRIPT$2+GT$2},NullProtoObjectViaActiveX$2=function(Mn){Mn.write(scriptTag$2("")),Mn.close();var Fn=Mn.parentWindow.Object;return Mn=null,Fn},NullProtoObjectViaIFrame$2=function(){var Mn=documentCreateElement$4("iframe"),Fn="java"+SCRIPT$2+":",io;return Mn.style.display="none",html$1$2.appendChild(Mn),Mn.src=String(Fn),io=Mn.contentWindow.document,io.open(),io.write(scriptTag$2("document.F=Object")),io.close(),io.F},activeXDocument$2,NullProtoObject$2=function(){try{activeXDocument$2=document.domain&&new ActiveXObject("htmlfile")}catch{}NullProtoObject$2=activeXDocument$2?NullProtoObjectViaActiveX$2(activeXDocument$2):NullProtoObjectViaIFrame$2();for(var Mn=enumBugKeys$1$2.length;Mn--;)delete NullProtoObject$2[PROTOTYPE$3][enumBugKeys$1$2[Mn]];return NullProtoObject$2()};hiddenKeys$2$2[IE_PROTO$1$2]=!0;var objectCreate$2=Object.create||function Mn(Fn,io){var fo;return Fn!==null?(EmptyConstructor$2[PROTOTYPE$3]=anObject$8$2(Fn),fo=new EmptyConstructor$2,EmptyConstructor$2[PROTOTYPE$3]=null,fo[IE_PROTO$1$2]=Fn):fo=NullProtoObject$2(),io===void 0?fo:defineProperties$3(fo,io)},wellKnownSymbol$e$1=wellKnownSymbol$f$1,create$1$2=objectCreate$2,definePropertyModule$2$2=objectDefineProperty$3,UNSCOPABLES$2=wellKnownSymbol$e$1("unscopables"),ArrayPrototype$1$2=Array.prototype;ArrayPrototype$1$2[UNSCOPABLES$2]==null&&definePropertyModule$2$2.f(ArrayPrototype$1$2,UNSCOPABLES$2,{configurable:!0,value:create$1$2(null)});var addToUnscopables$2$1=function(Mn){ArrayPrototype$1$2[UNSCOPABLES$2][Mn]=!0},iterators$2={},store$1$3=sharedStore$3,functionToString$3=Function.toString;typeof store$1$3.inspectSource!="function"&&(store$1$3.inspectSource=function(Mn){return functionToString$3.call(Mn)});var inspectSource$3$2=store$1$3.inspectSource,global$c$2=global$j$1,inspectSource$2$3=inspectSource$3$2,WeakMap$1$3=global$c$2.WeakMap,nativeWeakMap$3=typeof WeakMap$1$3=="function"&&/native code/.test(inspectSource$2$3(WeakMap$1$3)),NATIVE_WEAK_MAP$3=nativeWeakMap$3,global$b$2=global$j$1,isObject$5$2=isObject$9$1,createNonEnumerableProperty$5$2=createNonEnumerableProperty$7$2,objectHas$3=has$b$1,sharedKey$1$3=sharedKey$3$2,hiddenKeys$1$2=hiddenKeys$4$2,WeakMap$5=global$b$2.WeakMap,set$1$2,get$4,has$8$2,enforce$3=function(Mn){return has$8$2(Mn)?get$4(Mn):set$1$2(Mn,{})},getterFor$3=function(Mn){return function(Fn){var io;if(!isObject$5$2(Fn)||(io=get$4(Fn)).type!==Mn)throw TypeError("Incompatible receiver, "+Mn+" required");return io}};if(NATIVE_WEAK_MAP$3){var store$6=new WeakMap$5,wmget$3=store$6.get,wmhas$3=store$6.has,wmset$3=store$6.set;set$1$2=function(Mn,Fn){return wmset$3.call(store$6,Mn,Fn),Fn},get$4=function(Mn){return wmget$3.call(store$6,Mn)||{}},has$8$2=function(Mn){return wmhas$3.call(store$6,Mn)}}else{var STATE$3=sharedKey$1$3("state");hiddenKeys$1$2[STATE$3]=!0,set$1$2=function(Mn,Fn){return createNonEnumerableProperty$5$2(Mn,STATE$3,Fn),Fn},get$4=function(Mn){return objectHas$3(Mn,STATE$3)?Mn[STATE$3]:{}},has$8$2=function(Mn){return objectHas$3(Mn,STATE$3)}}var internalState$3={set:set$1$2,get:get$4,has:has$8$2,enforce:enforce$3,getterFor:getterFor$3},objectGetOwnPropertyDescriptor$2={},objectPropertyIsEnumerable$2={},nativePropertyIsEnumerable$2={}.propertyIsEnumerable,getOwnPropertyDescriptor$2$1=Object.getOwnPropertyDescriptor,NASHORN_BUG$2=getOwnPropertyDescriptor$2$1&&!nativePropertyIsEnumerable$2.call({1:2},1);objectPropertyIsEnumerable$2.f=NASHORN_BUG$2?function Mn(Fn){var io=getOwnPropertyDescriptor$2$1(this,Fn);return!!io&&io.enumerable}:nativePropertyIsEnumerable$2;var DESCRIPTORS$4$2=descriptors$3,propertyIsEnumerableModule$1$2=objectPropertyIsEnumerable$2,createPropertyDescriptor$1$3=createPropertyDescriptor$3$2,toIndexedObject$1$2=toIndexedObject$4$2,toPrimitive$6=toPrimitive$2$2,has$7$2=has$b$1,IE8_DOM_DEFINE$4=ie8DomDefine$3,nativeGetOwnPropertyDescriptor$3=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$2.f=DESCRIPTORS$4$2?nativeGetOwnPropertyDescriptor$3:function Mn(Fn,io){if(Fn=toIndexedObject$1$2(Fn),io=toPrimitive$6(io,!0),IE8_DOM_DEFINE$4)try{return nativeGetOwnPropertyDescriptor$3(Fn,io)}catch{}if(has$7$2(Fn,io))return createPropertyDescriptor$1$3(!propertyIsEnumerableModule$1$2.f.call(Fn,io),Fn[io])};var redefine$5$2={exports:{}},global$a$2=global$j$1,createNonEnumerableProperty$4$2=createNonEnumerableProperty$7$2,has$6$2=has$b$1,setGlobal$1$3=setGlobal$3$2,inspectSource$1$3=inspectSource$3$2,InternalStateModule$2$2=internalState$3,getInternalState$2$2=InternalStateModule$2$2.get,enforceInternalState$3=InternalStateModule$2$2.enforce,TEMPLATE$3=String(String).split("String");(redefine$5$2.exports=function(Mn,Fn,io,fo){var $o=fo?!!fo.unsafe:!1,mo=fo?!!fo.enumerable:!1,Ao=fo?!!fo.noTargetGet:!1;if(typeof io=="function"&&(typeof Fn=="string"&&!has$6$2(io,"name")&&createNonEnumerableProperty$4$2(io,"name",Fn),enforceInternalState$3(io).source=TEMPLATE$3.join(typeof Fn=="string"?Fn:"")),Mn===global$a$2){mo?Mn[Fn]=io:setGlobal$1$3(Fn,io);return}else $o?!Ao&&Mn[Fn]&&(mo=!0):delete Mn[Fn];mo?Mn[Fn]=io:createNonEnumerableProperty$4$2(Mn,Fn,io)})(Function.prototype,"toString",function Mn(){return typeof this=="function"&&getInternalState$2$2(this).source||inspectSource$1$3(this)});var objectGetOwnPropertyNames$2={},internalObjectKeys$3=objectKeysInternal$2,enumBugKeys$5=enumBugKeys$3$2,hiddenKeys$6=enumBugKeys$5.concat("length","prototype");objectGetOwnPropertyNames$2.f=Object.getOwnPropertyNames||function Mn(Fn){return internalObjectKeys$3(Fn,hiddenKeys$6)};var objectGetOwnPropertySymbols$2={};objectGetOwnPropertySymbols$2.f=Object.getOwnPropertySymbols;var getBuiltIn$3$2=getBuiltIn$5$1,getOwnPropertyNamesModule$2=objectGetOwnPropertyNames$2,getOwnPropertySymbolsModule$1$2=objectGetOwnPropertySymbols$2,anObject$7$2=anObject$b$1,ownKeys$1$2=getBuiltIn$3$2("Reflect","ownKeys")||function Mn(Fn){var io=getOwnPropertyNamesModule$2.f(anObject$7$2(Fn)),fo=getOwnPropertySymbolsModule$1$2.f;return fo?io.concat(fo(Fn)):io},has$5$2=has$b$1,ownKeys$3=ownKeys$1$2,getOwnPropertyDescriptorModule$3=objectGetOwnPropertyDescriptor$2,definePropertyModule$1$2=objectDefineProperty$3,copyConstructorProperties$2$1=function(Mn,Fn){for(var io=ownKeys$3(Fn),fo=definePropertyModule$1$2.f,$o=getOwnPropertyDescriptorModule$3.f,mo=0;mo<io.length;mo++){var Ao=io[mo];has$5$2(Mn,Ao)||fo(Mn,Ao,$o(Fn,Ao))}},fails$7$2=fails$c$2,replacement$2=/#|\.prototype\./,isForced$2$1=function(Mn,Fn){var io=data$2[normalize$2(Mn)];return io==POLYFILL$2?!0:io==NATIVE$2?!1:typeof Fn=="function"?fails$7$2(Fn):!!Fn},normalize$2=isForced$2$1.normalize=function(Mn){return String(Mn).replace(replacement$2,".").toLowerCase()},data$2=isForced$2$1.data={},NATIVE$2=isForced$2$1.NATIVE="N",POLYFILL$2=isForced$2$1.POLYFILL="P",isForced_1$2=isForced$2$1,global$9$2=global$j$1,getOwnPropertyDescriptor$1$2=objectGetOwnPropertyDescriptor$2.f,createNonEnumerableProperty$3$3=createNonEnumerableProperty$7$2,redefine$4$2=redefine$5$2.exports,setGlobal$6=setGlobal$3$2,copyConstructorProperties$1$2=copyConstructorProperties$2$1,isForced$1$2=isForced_1$2,_export$2=function(Mn,Fn){var io=Mn.target,fo=Mn.global,$o=Mn.stat,mo,Ao,jo,Lo,Ho,zo;if(fo?Ao=global$9$2:$o?Ao=global$9$2[io]||setGlobal$6(io,{}):Ao=(global$9$2[io]||{}).prototype,Ao)for(jo in Fn){if(Ho=Fn[jo],Mn.noTargetGet?(zo=getOwnPropertyDescriptor$1$2(Ao,jo),Lo=zo&&zo.value):Lo=Ao[jo],mo=isForced$1$2(fo?jo:io+($o?".":"#")+jo,Mn.forced),!mo&&Lo!==void 0){if(typeof Ho==typeof Lo)continue;copyConstructorProperties$1$2(Ho,Lo)}(Mn.sham||Lo&&Lo.sham)&&createNonEnumerableProperty$3$3(Ho,"sham",!0),redefine$4$2(Ao,jo,Ho,Mn)}},requireObjectCoercible$1$2=requireObjectCoercible$3$1,toObject$4$2=function(Mn){return Object(requireObjectCoercible$1$2(Mn))},fails$6$2=fails$c$2,correctPrototypeGetter$2=!fails$6$2(function(){function Mn(){}return Mn.prototype.constructor=null,Object.getPrototypeOf(new Mn)!==Mn.prototype}),has$4$2=has$b$1,toObject$3$2=toObject$4$2,sharedKey$6=sharedKey$3$2,CORRECT_PROTOTYPE_GETTER$2=correctPrototypeGetter$2,IE_PROTO$3=sharedKey$6("IE_PROTO"),ObjectPrototype$4=Object.prototype,objectGetPrototypeOf$2=CORRECT_PROTOTYPE_GETTER$2?Object.getPrototypeOf:function(Mn){return Mn=toObject$3$2(Mn),has$4$2(Mn,IE_PROTO$3)?Mn[IE_PROTO$3]:typeof Mn.constructor=="function"&&Mn instanceof Mn.constructor?Mn.constructor.prototype:Mn instanceof Object?ObjectPrototype$4:null},getPrototypeOf$1$2=objectGetPrototypeOf$2,createNonEnumerableProperty$2$3=createNonEnumerableProperty$7$2,has$3$2=has$b$1,wellKnownSymbol$d$2=wellKnownSymbol$f$1,ITERATOR$5$1=wellKnownSymbol$d$2("iterator"),BUGGY_SAFARI_ITERATORS$1$2=!1,returnThis$2$2=function(){return this},IteratorPrototype$2$2,PrototypeOfArrayIteratorPrototype$2,arrayIterator$2;[].keys&&(arrayIterator$2=[].keys(),"next"in arrayIterator$2?(PrototypeOfArrayIteratorPrototype$2=getPrototypeOf$1$2(getPrototypeOf$1$2(arrayIterator$2)),PrototypeOfArrayIteratorPrototype$2!==Object.prototype&&(IteratorPrototype$2$2=PrototypeOfArrayIteratorPrototype$2)):BUGGY_SAFARI_ITERATORS$1$2=!0);IteratorPrototype$2$2==null&&(IteratorPrototype$2$2={});has$3$2(IteratorPrototype$2$2,ITERATOR$5$1)||createNonEnumerableProperty$2$3(IteratorPrototype$2$2,ITERATOR$5$1,returnThis$2$2);var iteratorsCore$2={IteratorPrototype:IteratorPrototype$2$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1$2},defineProperty$3$1=objectDefineProperty$3.f,has$2$3=has$b$1,wellKnownSymbol$c$2=wellKnownSymbol$f$1,TO_STRING_TAG$3$2=wellKnownSymbol$c$2("toStringTag"),setToStringTag$3$2=function(Mn,Fn,io){Mn&&!has$2$3(Mn=io?Mn:Mn.prototype,TO_STRING_TAG$3$2)&&defineProperty$3$1(Mn,TO_STRING_TAG$3$2,{configurable:!0,value:Fn})},IteratorPrototype$1$2=iteratorsCore$2.IteratorPrototype,create$5=objectCreate$2,createPropertyDescriptor$7=createPropertyDescriptor$3$2,setToStringTag$2$2=setToStringTag$3$2,Iterators$4$2=iterators$2,returnThis$1$2=function(){return this},createIteratorConstructor$1$2=function(Mn,Fn,io){var fo=Fn+" Iterator";return Mn.prototype=create$5(IteratorPrototype$1$2,{next:createPropertyDescriptor$7(1,io)}),setToStringTag$2$2(Mn,fo,!1),Iterators$4$2[fo]=returnThis$1$2,Mn},isObject$4$3=isObject$9$1,aPossiblePrototype$1$2=function(Mn){if(!isObject$4$3(Mn)&&Mn!==null)throw TypeError("Can't set "+String(Mn)+" as a prototype");return Mn},anObject$6$2=anObject$b$1,aPossiblePrototype$3=aPossiblePrototype$1$2,objectSetPrototypeOf$2=Object.setPrototypeOf||("__proto__"in{}?function(){var Mn=!1,Fn={},io;try{io=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,io.call(Fn,[]),Mn=Fn instanceof Array}catch{}return function($o,mo){return anObject$6$2($o),aPossiblePrototype$3(mo),Mn?io.call($o,mo):$o.__proto__=mo,$o}}():void 0),$$7$1=_export$2,createIteratorConstructor$4=createIteratorConstructor$1$2,getPrototypeOf$5=objectGetPrototypeOf$2,setPrototypeOf$6=objectSetPrototypeOf$2,setToStringTag$1$2=setToStringTag$3$2,createNonEnumerableProperty$1$3=createNonEnumerableProperty$7$2,redefine$3$2=redefine$5$2.exports,wellKnownSymbol$b$2=wellKnownSymbol$f$1,Iterators$3$2=iterators$2,IteratorsCore$2=iteratorsCore$2,IteratorPrototype$4=IteratorsCore$2.IteratorPrototype,BUGGY_SAFARI_ITERATORS$3=IteratorsCore$2.BUGGY_SAFARI_ITERATORS,ITERATOR$4$2=wellKnownSymbol$b$2("iterator"),KEYS$2="keys",VALUES$2="values",ENTRIES$2="entries",returnThis$4=function(){return this},defineIterator$1$2=function(Mn,Fn,io,fo,$o,mo,Ao){createIteratorConstructor$4(io,Fn,fo);var jo=function(us){if(us===$o&&Vo)return Vo;if(!BUGGY_SAFARI_ITERATORS$3&&us in zo)return zo[us];switch(us){case KEYS$2:return function(){return new io(this,us)};case VALUES$2:return function(){return new io(this,us)};case ENTRIES$2:return function(){return new io(this,us)}}return function(){return new io(this)}},Lo=Fn+" Iterator",Ho=!1,zo=Mn.prototype,Go=zo[ITERATOR$4$2]||zo["@@iterator"]||$o&&zo[$o],Vo=!BUGGY_SAFARI_ITERATORS$3&&Go||jo($o),Yo=Fn=="Array"&&zo.entries||Go,Xo,is,yl;if(Yo&&(Xo=getPrototypeOf$5(Yo.call(new Mn)),IteratorPrototype$4!==Object.prototype&&Xo.next&&(getPrototypeOf$5(Xo)!==IteratorPrototype$4&&(setPrototypeOf$6?setPrototypeOf$6(Xo,IteratorPrototype$4):typeof Xo[ITERATOR$4$2]!="function"&&createNonEnumerableProperty$1$3(Xo,ITERATOR$4$2,returnThis$4)),setToStringTag$1$2(Xo,Lo,!0))),$o==VALUES$2&&Go&&Go.name!==VALUES$2&&(Ho=!0,Vo=function(){return Go.call(this)}),zo[ITERATOR$4$2]!==Vo&&createNonEnumerableProperty$1$3(zo,ITERATOR$4$2,Vo),Iterators$3$2[Fn]=Vo,$o)if(is={values:jo(VALUES$2),keys:mo?Vo:jo(KEYS$2),entries:jo(ENTRIES$2)},Ao)for(yl in is)(BUGGY_SAFARI_ITERATORS$3||Ho||!(yl in zo))&&redefine$3$2(zo,yl,is[yl]);else $$7$1({target:Fn,proto:!0,forced:BUGGY_SAFARI_ITERATORS$3||Ho},is);return is},toIndexedObject$6=toIndexedObject$4$2,addToUnscopables$1$2=addToUnscopables$2$1,Iterators$2$2=iterators$2,InternalStateModule$1$2=internalState$3,defineIterator$4=defineIterator$1$2,ARRAY_ITERATOR$2="Array Iterator",setInternalState$1$2=InternalStateModule$1$2.set,getInternalState$1$2=InternalStateModule$1$2.getterFor(ARRAY_ITERATOR$2),es_array_iterator$1=defineIterator$4(Array,"Array",function(Mn,Fn){setInternalState$1$2(this,{type:ARRAY_ITERATOR$2,target:toIndexedObject$6(Mn),index:0,kind:Fn})},function(){var Mn=getInternalState$1$2(this),Fn=Mn.target,io=Mn.kind,fo=Mn.index++;return!Fn||fo>=Fn.length?(Mn.target=void 0,{value:void 0,done:!0}):io=="keys"?{value:fo,done:!1}:io=="values"?{value:Fn[fo],done:!1}:{value:[fo,Fn[fo]],done:!1}},"values");Iterators$2$2.Arguments=Iterators$2$2.Array;addToUnscopables$1$2("keys");addToUnscopables$1$2("values");addToUnscopables$1$2("entries");var DESCRIPTORS$3$2=descriptors$3,fails$5$2=fails$c$2,objectKeys$4=objectKeys$2$2,getOwnPropertySymbolsModule$3=objectGetOwnPropertySymbols$2,propertyIsEnumerableModule$3=objectPropertyIsEnumerable$2,toObject$2$2=toObject$4$2,IndexedObject$1$2=indexedObject$2,nativeAssign$2=Object.assign,defineProperty$2$1=Object.defineProperty,objectAssign$2=!nativeAssign$2||fails$5$2(function(){if(DESCRIPTORS$3$2&&nativeAssign$2({b:1},nativeAssign$2(defineProperty$2$1({},"a",{enumerable:!0,get:function(){defineProperty$2$1(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var Mn={},Fn={},io=Symbol(),fo="abcdefghijklmnopqrst";return Mn[io]=7,fo.split("").forEach(function($o){Fn[$o]=$o}),nativeAssign$2({},Mn)[io]!=7||objectKeys$4(nativeAssign$2({},Fn)).join("")!=fo})?function Mn(Fn,io){for(var fo=toObject$2$2(Fn),$o=arguments.length,mo=1,Ao=getOwnPropertySymbolsModule$3.f,jo=propertyIsEnumerableModule$3.f;$o>mo;)for(var Lo=IndexedObject$1$2(arguments[mo++]),Ho=Ao?objectKeys$4(Lo).concat(Ao(Lo)):objectKeys$4(Lo),zo=Ho.length,Go=0,Vo;zo>Go;)Vo=Ho[Go++],(!DESCRIPTORS$3$2||jo.call(Lo,Vo))&&(fo[Vo]=Lo[Vo]);return fo}:nativeAssign$2,$$6$1=_export$2,assign$3=objectAssign$2;$$6$1({target:"Object",stat:!0,forced:Object.assign!==assign$3},{assign:assign$3});var domIterables$1={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},global$8$2=global$j$1,DOMIterables$1=domIterables$1,ArrayIteratorMethods$1=es_array_iterator$1,createNonEnumerableProperty$c=createNonEnumerableProperty$7$2,wellKnownSymbol$a$2=wellKnownSymbol$f$1,ITERATOR$3$2=wellKnownSymbol$a$2("iterator"),TO_STRING_TAG$2$2=wellKnownSymbol$a$2("toStringTag"),ArrayValues$1=ArrayIteratorMethods$1.values;for(var COLLECTION_NAME$1 in DOMIterables$1){var Collection$1=global$8$2[COLLECTION_NAME$1],CollectionPrototype$1=Collection$1&&Collection$1.prototype;if(CollectionPrototype$1){if(CollectionPrototype$1[ITERATOR$3$2]!==ArrayValues$1)try{createNonEnumerableProperty$c(CollectionPrototype$1,ITERATOR$3$2,ArrayValues$1)}catch{CollectionPrototype$1[ITERATOR$3$2]=ArrayValues$1}if(CollectionPrototype$1[TO_STRING_TAG$2$2]||createNonEnumerableProperty$c(CollectionPrototype$1,TO_STRING_TAG$2$2,COLLECTION_NAME$1),DOMIterables$1[COLLECTION_NAME$1]){for(var METHOD_NAME$1 in ArrayIteratorMethods$1)if(CollectionPrototype$1[METHOD_NAME$1]!==ArrayIteratorMethods$1[METHOD_NAME$1])try{createNonEnumerableProperty$c(CollectionPrototype$1,METHOD_NAME$1,ArrayIteratorMethods$1[METHOD_NAME$1])}catch{CollectionPrototype$1[METHOD_NAME$1]=ArrayIteratorMethods$1[METHOD_NAME$1]}}}}const CloseIcon=()=>jsxRuntimeExports.jsxs("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",fill:"#C1C1C1"},{children:[jsxRuntimeExports.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),jsxRuntimeExports.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})]})),CloseButton=({onClick:Mn})=>jsxRuntimeExports.jsx("button",Object.assign({onClick:Mn,className:"close-button"},{children:jsxRuntimeExports.jsx(CloseIcon,{})})),ModalHeader=({title:Mn,onCloseModal:Fn})=>{const io=Mn==="Get a Wallet"?" -open":"";return jsxRuntimeExports.jsxs("div",Object.assign({className:"nws-modal-header"},{children:[jsxRuntimeExports.jsx("h3",Object.assign({className:`middleTitle ${io}`},{children:Mn})),jsxRuntimeExports.jsx(CloseButton,{onClick:Fn})]}))},BackArrowIcon=()=>jsxRuntimeExports.jsx("svg",Object.assign({width:"8",height:"14",viewBox:"0 0 8 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:jsxRuntimeExports.jsx("path",{d:"M7 13L1 7L7 1",stroke:"#6494EE",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})),BackArrow=({onClick:Mn})=>jsxRuntimeExports.jsx("button",Object.assign({onClick:Mn,className:"back-button"},{children:jsxRuntimeExports.jsx(BackArrowIcon,{})})),WalletNetworkChanged=({selector:Mn,onBack:Fn,onCloseModal:io})=>jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",Object.assign({className:"nws-modal-header-wrapper"},{children:[jsxRuntimeExports.jsx(BackArrow,{onClick:Fn}),jsxRuntimeExports.jsx(ModalHeader,{title:"You Must Change the Network",onCloseModal:io})]})),jsxRuntimeExports.jsx("div",Object.assign({className:"switch-network-message-wrapper"},{children:jsxRuntimeExports.jsxs("div",Object.assign({className:"content"},{children:[jsxRuntimeExports.jsxs("p",{children:["We've detected that you need to change your wallet's network to",jsxRuntimeExports.jsx("strong",Object.assign({className:"network-id"},{children:` ${Mn.options.network.networkId}`}))," ","for this dApp."]}),jsxRuntimeExports.jsx("p",{children:"Some wallets may not support changing networks. If you can not change networks you may consider switching to another wallet."})]}))}))]});var $$5$1=_export$2,DESCRIPTORS$2$3=descriptors$3,global$7$3=global$j$1,has$1$3=has$b$1,isObject$3$3=isObject$9$1,defineProperty$1$2=objectDefineProperty$3.f,copyConstructorProperties$3=copyConstructorProperties$2$1,NativeSymbol=global$7$3.Symbol;if(DESCRIPTORS$2$3&&typeof NativeSymbol=="function"&&(!("description"in NativeSymbol.prototype)||NativeSymbol().description!==void 0)){var EmptyStringDescriptionStore={},SymbolWrapper=function(){var Fn=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),io=this instanceof SymbolWrapper?new NativeSymbol(Fn):Fn===void 0?NativeSymbol():NativeSymbol(Fn);return Fn===""&&(EmptyStringDescriptionStore[io]=!0),io};copyConstructorProperties$3(SymbolWrapper,NativeSymbol);var symbolPrototype=SymbolWrapper.prototype=NativeSymbol.prototype;symbolPrototype.constructor=SymbolWrapper;var symbolToString=symbolPrototype.toString,native=String(NativeSymbol("test"))=="Symbol(test)",regexp=/^Symbol\((.*)\)[^)]+$/;defineProperty$1$2(symbolPrototype,"description",{configurable:!0,get:function(){var Fn=isObject$3$3(this)?this.valueOf():this,io=symbolToString.call(Fn);if(has$1$3(EmptyStringDescriptionStore,Fn))return"";var fo=native?io.slice(7,-1):io.replace(regexp,"$1");return fo===""?void 0:fo}}),$$5$1({global:!0,forced:!0},{Symbol:SymbolWrapper})}var DESCRIPTORS$1$3=descriptors$3,fails$4$2=fails$c$2,has$e=has$b$1,defineProperty$5=Object.defineProperty,cache={},thrower=function(Mn){throw Mn},arrayMethodUsesToLength$2=function(Mn,Fn){if(has$e(cache,Mn))return cache[Mn];Fn||(Fn={});var io=[][Mn],fo=has$e(Fn,"ACCESSORS")?Fn.ACCESSORS:!1,$o=has$e(Fn,0)?Fn[0]:thrower,mo=has$e(Fn,1)?Fn[1]:void 0;return cache[Mn]=!!io&&!fails$4$2(function(){if(fo&&!DESCRIPTORS$1$3)return!0;var Ao={length:-1};fo?defineProperty$5(Ao,1,{enumerable:!0,get:thrower}):Ao[1]=1,io.call(Ao,$o,mo)})},$$4$1=_export$2,$includes=arrayIncludes$2.includes,addToUnscopables$3=addToUnscopables$2$1,arrayMethodUsesToLength$1=arrayMethodUsesToLength$2,USES_TO_LENGTH$1=arrayMethodUsesToLength$1("indexOf",{ACCESSORS:!0,1:0});$$4$1({target:"Array",proto:!0,forced:!USES_TO_LENGTH$1},{includes:function Mn(Fn){return $includes(this,Fn,arguments.length>1?arguments[1]:void 0)}});addToUnscopables$3("includes");var aFunction$6$1=function(Mn){if(typeof Mn!="function")throw TypeError(String(Mn)+" is not a function");return Mn},aFunction$5$1=aFunction$6$1,toObject$1$2=toObject$4$2,IndexedObject$4=indexedObject$2,toLength$1$2=toLength$3$2,createMethod$3=function(Mn){return function(Fn,io,fo,$o){aFunction$5$1(io);var mo=toObject$1$2(Fn),Ao=IndexedObject$4(mo),jo=toLength$1$2(mo.length),Lo=Mn?jo-1:0,Ho=Mn?-1:1;if(fo<2)for(;;){if(Lo in Ao){$o=Ao[Lo],Lo+=Ho;break}if(Lo+=Ho,Mn?Lo<0:jo<=Lo)throw TypeError("Reduce of empty array with no initial value")}for(;Mn?Lo>=0:jo>Lo;Lo+=Ho)Lo in Ao&&($o=io($o,Ao[Lo],Lo,mo));return $o}},arrayReduce={left:createMethod$3(!1),right:createMethod$3(!0)},fails$3$3=fails$c$2,arrayMethodIsStrict$2=function(Mn,Fn){var io=[][Mn];return!!io&&fails$3$3(function(){io.call(null,Fn||function(){throw 1},1)})},$$3$2=_export$2,$reduce=arrayReduce.left,arrayMethodIsStrict$1=arrayMethodIsStrict$2,arrayMethodUsesToLength=arrayMethodUsesToLength$2,STRICT_METHOD$1=arrayMethodIsStrict$1("reduce"),USES_TO_LENGTH=arrayMethodUsesToLength("reduce",{1:0});$$3$2({target:"Array",proto:!0,forced:!STRICT_METHOD$1||!USES_TO_LENGTH},{reduce:function Mn(Fn){return $reduce(this,Fn,arguments.length,arguments.length>1?arguments[1]:void 0)}});var $$2$2=_export$2,aFunction$4$1=aFunction$6$1,toObject$8=toObject$4$2,fails$2$3=fails$c$2,arrayMethodIsStrict=arrayMethodIsStrict$2,test$1$1=[],nativeSort=test$1$1.sort,FAILS_ON_UNDEFINED=fails$2$3(function(){test$1$1.sort(void 0)}),FAILS_ON_NULL=fails$2$3(function(){test$1$1.sort(null)}),STRICT_METHOD=arrayMethodIsStrict("sort"),FORCED$1$1=FAILS_ON_UNDEFINED||!FAILS_ON_NULL||!STRICT_METHOD;$$2$2({target:"Array",proto:!0,forced:FORCED$1$1},{sort:function Mn(Fn){return Fn===void 0?nativeSort.call(toObject$8(this)):nativeSort.call(toObject$8(this),aFunction$4$1(Fn))}});var isObject$2$3=isObject$9$1,classof$5$2=classofRaw$1$2,wellKnownSymbol$9$2=wellKnownSymbol$f$1,MATCH$1=wellKnownSymbol$9$2("match"),isRegexp=function(Mn){var Fn;return isObject$2$3(Mn)&&((Fn=Mn[MATCH$1])!==void 0?!!Fn:classof$5$2(Mn)=="RegExp")},isRegExp=isRegexp,notARegexp=function(Mn){if(isRegExp(Mn))throw TypeError("The method doesn't accept regular expressions");return Mn},wellKnownSymbol$8$2=wellKnownSymbol$f$1,MATCH=wellKnownSymbol$8$2("match"),correctIsRegexpLogic=function(Mn){var Fn=/./;try{"/./"[Mn](Fn)}catch{try{return Fn[MATCH]=!1,"/./"[Mn](Fn)}catch{}}return!1},$$1$2=_export$2,notARegExp=notARegexp,requireObjectCoercible$6=requireObjectCoercible$3$1,correctIsRegExpLogic=correctIsRegexpLogic;$$1$2({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function Mn(Fn){return!!~String(requireObjectCoercible$6(this)).indexOf(notARegExp(Fn),arguments.length>1?arguments[1]:void 0)}});const WarningIcon=()=>jsxRuntimeExports.jsxs("svg",Object.assign({width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[jsxRuntimeExports.jsx("path",{d:"M4.95215 16.3536L10.2152 5.85657C10.9531 4.38481 13.0538 4.38519 13.7912 5.85723L19.0494 16.3543C19.7156 17.6841 18.7486 19.25 17.2612 19.25H6.74001C5.25228 19.25 4.28535 17.6835 4.95215 16.3536Z",stroke:"#E6B73E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntimeExports.jsx("path",{d:"M12 10V12",stroke:"#E6B73E",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntimeExports.jsx("path",{d:"M12.5 16C12.5 16.2761 12.2761 16.5 12 16.5C11.7239 16.5 11.5 16.2761 11.5 16C11.5 15.7239 11.7239 15.5 12 15.5C12.2761 15.5 12.5 15.7239 12.5 16Z",stroke:"#E6B73E"})]})),WalletOptions=({selector:Mn,handleWalletClick:Fn})=>{const[io,fo]=reactExports.useState([]),[$o,mo]=reactExports.useState([]),[Ao,jo]=reactExports.useState([]),[Lo,Ho]=reactExports.useState("");reactExports.useEffect(()=>{const Go=Mn.store.observable.subscribe(Vo=>{const{selectedWalletId:Yo}=Mn.store.getState();Yo&&Ho(Yo);const Xo=Vo.modules.filter(is=>!(is.type==="instant-link"&&Yo!==is.id));if(Mn.options.optimizeWalletOrder){Vo.modules.sort((us,hs)=>us.metadata.deprecated===hs.metadata.deprecated?0:us.metadata.deprecated?1:-1),Vo.modules.sort((us,hs)=>hs.metadata.available===us.metadata.available?0:hs.metadata.available?1:-1);const is=[],yl=[];Xo.forEach(us=>{Mn.store.getState().recentlySignedInWallets.includes(us.id)?yl.push(us):is.push(us)}),mo(yl),jo(is)}Mn.options.randomizeWalletOrder?fo(Xo.sort(()=>Math.random()-.5)):fo(Xo)});return()=>Go.unsubscribe()},[]),reactExports.useEffect(()=>{const{recentlySignedInWallets:Go}=Mn.store.getState();Go.length&&Ho(Go[0])},[Mn.store]);function zo(Go){return Go.reduce((Vo,Yo,Xo)=>{const{selectedWalletId:is}=Mn.store.getState(),{name:yl,description:us,iconUrl:hs,deprecated:_l}=Yo.metadata,xl=Yo.id===is;return Vo.push(jsxRuntimeExports.jsxs("li",Object.assign({tabIndex:0,className:`single-wallet ${Lo===Yo.id?"selected-wallet":""} ${xl?"connected-wallet":""} ${_l?"deprecated-wallet":""} sidebar ${Yo.id}`,onClick:()=>{if(Mn.options.network.networkId==="testnet"&&Yo.id==="here-wallet"){alert("Here Wallet is not supported on testnet");return}return Yo.id===Go[Xo].id&&Ho(Yo.id),Fn(Yo)}},{children:[jsxRuntimeExports.jsx("div",Object.assign({className:"icon"},{children:jsxRuntimeExports.jsx("img",{src:hs,alt:yl})})),jsxRuntimeExports.jsxs("div",Object.assign({className:"content"},{children:[jsxRuntimeExports.jsx("div",Object.assign({className:"title"},{children:yl})),jsxRuntimeExports.jsx("div",Object.assign({className:"description"},{children:us}))]})),_l&&jsxRuntimeExports.jsx("div",Object.assign({className:"warning-triangle"},{children:jsxRuntimeExports.jsx(WarningIcon,{})}))]}),Yo.id)),Vo},[])}return jsxRuntimeExports.jsx("div",{children:Mn.options.optimizeWalletOrder&&Mn.store.getState().recentlySignedInWallets.length>0?jsxRuntimeExports.jsxs("div",Object.assign({className:"wallet-options-wrapper"},{children:[jsxRuntimeExports.jsxs("div",Object.assign({className:"options-list-section-recent"},{children:[jsxRuntimeExports.jsx("div",Object.assign({className:"options-list-section-header"},{children:"Recent"})),jsxRuntimeExports.jsx("div",Object.assign({className:"options-list more-options-list-content"},{children:zo($o)}))]})),jsxRuntimeExports.jsxs("div",Object.assign({className:"options-list-section-more"},{children:[jsxRuntimeExports.jsx("div",Object.assign({className:"options-list-section-header"},{children:"More"})),jsxRuntimeExports.jsx("div",Object.assign({className:"options-list more-options-list-content"},{children:zo(Ao)}))]}))]})):jsxRuntimeExports.jsx("div",Object.assign({className:"wallet-options-wrapper"},{children:jsxRuntimeExports.jsx("div",Object.assign({className:"options-list"},{children:zo(io)}))}))})},ConnectionErrorIcon=()=>jsxRuntimeExports.jsxs("svg",Object.assign({width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[jsxRuntimeExports.jsx("path",{d:"M10.5001 18.3333C15.1025 18.3333 18.8334 14.6023 18.8334 9.99996C18.8334 5.39759 15.1025 1.66663 10.5001 1.66663C5.89771 1.66663 2.16675 5.39759 2.16675 9.99996C2.16675 14.6023 5.89771 18.3333 10.5001 18.3333Z",stroke:"#CE5A6F",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntimeExports.jsx("path",{d:"M13 7.5L8 12.5",stroke:"#CE5A6F",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntimeExports.jsx("path",{d:"M8 7.5L13 12.5",stroke:"#CE5A6F",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})),ConnectionSuccessIcon=()=>jsxRuntimeExports.jsxs("svg",Object.assign({width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[jsxRuntimeExports.jsx("path",{d:"M18.8333 9.2333V9.99997C18.8323 11.797 18.2504 13.5455 17.1744 14.9848C16.0984 16.4241 14.586 17.477 12.8628 17.9866C11.1395 18.4961 9.29768 18.4349 7.61202 17.8121C5.92636 17.1894 4.48717 16.0384 3.50909 14.5309C2.53101 13.0233 2.06645 11.24 2.18469 9.4469C2.30293 7.65377 2.99763 5.94691 4.16519 4.58086C5.33275 3.21482 6.91061 2.26279 8.66345 1.86676C10.4163 1.47073 12.2502 1.65192 13.8916 2.3833",stroke:"#4FD98F",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntimeExports.jsx("path",{d:"M18.8333 3.33337L10.5 11.675L8 9.17504",stroke:"#4FD98F",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})),ConnectionResult=({module:Mn,message:Fn,err:io,onRetry:fo})=>jsxRuntimeExports.jsx("div",Object.assign({className:"connection connecting-details"},{children:io?jsxRuntimeExports.jsxs("div",Object.assign({className:"error-wrapper"},{children:[jsxRuntimeExports.jsxs("div",Object.assign({className:"error"},{children:[jsxRuntimeExports.jsx(ConnectionErrorIcon,{}),translate("modal.wallet.connectionFailed")]})),jsxRuntimeExports.jsx("p",{children:Fn}),(Mn==null?void 0:Mn.metadata.available)&&jsxRuntimeExports.jsx("button",Object.assign({onClick:fo},{children:translate("modal.ledger.retry")}))]})):jsxRuntimeExports.jsxs("div",Object.assign({className:"success"},{children:[jsxRuntimeExports.jsx(ConnectionSuccessIcon,{}),translate("modal.wallet.connectionSuccessful")]}))})),AlertMessage=({message:Mn,module:Fn,onBack:io,onCloseModal:fo})=>jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(ModalHeader,{title:"",onCloseModal:fo}),jsxRuntimeExports.jsx("div",Object.assign({className:"alert-message connecting-wrapper connecting-wrapper-err"},{children:jsxRuntimeExports.jsxs("div",Object.assign({className:"content"},{children:[jsxRuntimeExports.jsx("div",Object.assign({className:"icon"},{children:jsxRuntimeExports.jsx("img",{src:Fn==null?void 0:Fn.metadata.iconUrl,alt:Fn==null?void 0:Fn.metadata.name})})),jsxRuntimeExports.jsx("h3",Object.assign({className:"connecting-name"},{children:Fn==null?void 0:Fn.metadata.name})),jsxRuntimeExports.jsx(ConnectionResult,{module:Fn,message:Mn,err:Mn!==null,onRetry:()=>{io(!0)}})]}))}))]});var global$6$3=global$j$1,nativePromiseConstructor$1=global$6$3.Promise,redefine$2$2=redefine$5$2.exports,redefineAll$1$2=function(Mn,Fn,io){for(var fo in Fn)redefine$2$2(Mn,fo,Fn[fo],io);return Mn},getBuiltIn$2$2=getBuiltIn$5$1,definePropertyModule$8=objectDefineProperty$3,wellKnownSymbol$7$2=wellKnownSymbol$f$1,DESCRIPTORS$c=descriptors$3,SPECIES$2$2=wellKnownSymbol$7$2("species"),setSpecies$1$2=function(Mn){var Fn=getBuiltIn$2$2(Mn),io=definePropertyModule$8.f;DESCRIPTORS$c&&Fn&&!Fn[SPECIES$2$2]&&io(Fn,SPECIES$2$2,{configurable:!0,get:function(){return this}})},anInstance$1$2=function(Mn,Fn,io){if(!(Mn instanceof Fn))throw TypeError("Incorrect "+(io?io+" ":"")+"invocation");return Mn},iterate$2$1={exports:{}},wellKnownSymbol$6$2=wellKnownSymbol$f$1,Iterators$1$2=iterators$2,ITERATOR$2$2=wellKnownSymbol$6$2("iterator"),ArrayPrototype$3=Array.prototype,isArrayIteratorMethod$1$2=function(Mn){return Mn!==void 0&&(Iterators$1$2.Array===Mn||ArrayPrototype$3[ITERATOR$2$2]===Mn)},aFunction$3$2=aFunction$6$1,functionBindContext$2=function(Mn,Fn,io){if(aFunction$3$2(Mn),Fn===void 0)return Mn;switch(io){case 0:return function(){return Mn.call(Fn)};case 1:return function(fo){return Mn.call(Fn,fo)};case 2:return function(fo,$o){return Mn.call(Fn,fo,$o)};case 3:return function(fo,$o,mo){return Mn.call(Fn,fo,$o,mo)}}return function(){return Mn.apply(Fn,arguments)}},wellKnownSymbol$5$2=wellKnownSymbol$f$1,TO_STRING_TAG$1$2=wellKnownSymbol$5$2("toStringTag"),test$3={};test$3[TO_STRING_TAG$1$2]="z";var toStringTagSupport$2=String(test$3)==="[object z]",TO_STRING_TAG_SUPPORT$2=toStringTagSupport$2,classofRaw$3=classofRaw$1$2,wellKnownSymbol$4$2=wellKnownSymbol$f$1,TO_STRING_TAG$5=wellKnownSymbol$4$2("toStringTag"),CORRECT_ARGUMENTS$2=classofRaw$3(function(){return arguments}())=="Arguments",tryGet$2=function(Mn,Fn){try{return Mn[Fn]}catch{}},classof$4$2=TO_STRING_TAG_SUPPORT$2?classofRaw$3:function(Mn){var Fn,io,fo;return Mn===void 0?"Undefined":Mn===null?"Null":typeof(io=tryGet$2(Fn=Object(Mn),TO_STRING_TAG$5))=="string"?io:CORRECT_ARGUMENTS$2?classofRaw$3(Fn):(fo=classofRaw$3(Fn))=="Object"&&typeof Fn.callee=="function"?"Arguments":fo},classof$3$2=classof$4$2,Iterators$6=iterators$2,wellKnownSymbol$3$2=wellKnownSymbol$f$1,ITERATOR$1$2=wellKnownSymbol$3$2("iterator"),getIteratorMethod$1$2=function(Mn){if(Mn!=null)return Mn[ITERATOR$1$2]||Mn["@@iterator"]||Iterators$6[classof$3$2(Mn)]},anObject$5$2=anObject$b$1,callWithSafeIterationClosing$1$1=function(Mn,Fn,io,fo){try{return fo?Fn(anObject$5$2(io)[0],io[1]):Fn(io)}catch(mo){var $o=Mn.return;throw $o!==void 0&&anObject$5$2($o.call(Mn)),mo}},anObject$4$2=anObject$b$1,isArrayIteratorMethod$4=isArrayIteratorMethod$1$2,toLength$b=toLength$3$2,bind$2$1=functionBindContext$2,getIteratorMethod$6=getIteratorMethod$1$2,callWithSafeIterationClosing$3=callWithSafeIterationClosing$1$1,Result$1=function(Mn,Fn){this.stopped=Mn,this.result=Fn},iterate$1$1=iterate$2$1.exports=function(Mn,Fn,io,fo,$o){var mo=bind$2$1(Fn,io,fo?2:1),Ao,jo,Lo,Ho,zo,Go,Vo;if($o)Ao=Mn;else{if(jo=getIteratorMethod$6(Mn),typeof jo!="function")throw TypeError("Target is not iterable");if(isArrayIteratorMethod$4(jo)){for(Lo=0,Ho=toLength$b(Mn.length);Ho>Lo;Lo++)if(zo=fo?mo(anObject$4$2(Vo=Mn[Lo])[0],Vo[1]):mo(Mn[Lo]),zo&&zo instanceof Result$1)return zo;return new Result$1(!1)}Ao=jo.call(Mn)}for(Go=Ao.next;!(Vo=Go.call(Ao)).done;)if(zo=callWithSafeIterationClosing$3(Ao,mo,Vo.value,fo),typeof zo=="object"&&zo&&zo instanceof Result$1)return zo;return new Result$1(!1)};iterate$1$1.stop=function(Mn){return new Result$1(!0,Mn)};var wellKnownSymbol$2$2=wellKnownSymbol$f$1,ITERATOR$9=wellKnownSymbol$2$2("iterator"),SAFE_CLOSING$2=!1;try{var called$2=0,iteratorWithReturn$2={next:function(){return{done:!!called$2++}},return:function(){SAFE_CLOSING$2=!0}};iteratorWithReturn$2[ITERATOR$9]=function(){return this},Array.from(iteratorWithReturn$2,function(){throw 2})}catch(Mn){}var checkCorrectnessOfIteration$1$2=function(Mn,Fn){if(!Fn&&!SAFE_CLOSING$2)return!1;var io=!1;try{var fo={};fo[ITERATOR$9]=function(){return{next:function(){return{done:io=!0}}}},Mn(fo)}catch{}return io},anObject$3$3=anObject$b$1,aFunction$2$2=aFunction$6$1,wellKnownSymbol$1$2=wellKnownSymbol$f$1,SPECIES$1$2=wellKnownSymbol$1$2("species"),speciesConstructor$1$2=function(Mn,Fn){var io=anObject$3$3(Mn).constructor,fo;return io===void 0||(fo=anObject$3$3(io)[SPECIES$1$2])==null?Fn:aFunction$2$2(fo)},getBuiltIn$1$2=getBuiltIn$5$1,engineUserAgent$1=getBuiltIn$1$2("navigator","userAgent")||"",userAgent$1$1=engineUserAgent$1,engineIsIos$1=/(iphone|ipod|ipad).*applewebkit/i.test(userAgent$1$1),global$5$3=global$j$1,fails$1$3=fails$c$2,classof$2$2=classofRaw$1$2,bind$1$2=functionBindContext$2,html$4=html$2$1,createElement$3=documentCreateElement$1$2,IS_IOS$1$1=engineIsIos$1,location$2=global$5$3.location,set$4=global$5$3.setImmediate,clear$1=global$5$3.clearImmediate,process$3$1=global$5$3.process,MessageChannel$2=global$5$3.MessageChannel,Dispatch$1=global$5$3.Dispatch,counter$1=0,queue$1={},ONREADYSTATECHANGE$1="onreadystatechange",defer$1,channel$1,port$1,run$1=function(Mn){if(queue$1.hasOwnProperty(Mn)){var Fn=queue$1[Mn];delete queue$1[Mn],Fn()}},runner$1=function(Mn){return function(){run$1(Mn)}},listener$1=function(Mn){run$1(Mn.data)},post$1=function(Mn){global$5$3.postMessage(Mn+"",location$2.protocol+"//"+location$2.host)};(!set$4||!clear$1)&&(set$4=function(Fn){for(var io=[],fo=1;arguments.length>fo;)io.push(arguments[fo++]);return queue$1[++counter$1]=function(){(typeof Fn=="function"?Fn:Function(Fn)).apply(void 0,io)},defer$1(counter$1),counter$1},clear$1=function(Fn){delete queue$1[Fn]},classof$2$2(process$3$1)=="process"?defer$1=function(Mn){process$3$1.nextTick(runner$1(Mn))}:Dispatch$1&&Dispatch$1.now?defer$1=function(Mn){Dispatch$1.now(runner$1(Mn))}:MessageChannel$2&&!IS_IOS$1$1?(channel$1=new MessageChannel$2,port$1=channel$1.port2,channel$1.port1.onmessage=listener$1,defer$1=bind$1$2(port$1.postMessage,port$1,1)):global$5$3.addEventListener&&typeof postMessage=="function"&&!global$5$3.importScripts&&!fails$1$3(post$1)&&location$2.protocol!=="file:"?(defer$1=post$1,global$5$3.addEventListener("message",listener$1,!1)):ONREADYSTATECHANGE$1 in createElement$3("script")?defer$1=function(Mn){html$4.appendChild(createElement$3("script"))[ONREADYSTATECHANGE$1]=function(){html$4.removeChild(this),run$1(Mn)}}:defer$1=function(Mn){setTimeout(runner$1(Mn),0)});var task$1$1={set:set$4,clear:clear$1},global$4$3=global$j$1,getOwnPropertyDescriptor$4=objectGetOwnPropertyDescriptor$2.f,classof$1$2=classofRaw$1$2,macrotask$1=task$1$1.set,IS_IOS$2=engineIsIos$1,MutationObserver$2=global$4$3.MutationObserver||global$4$3.WebKitMutationObserver,process$2$1=global$4$3.process,Promise$1$1=global$4$3.Promise,IS_NODE$1$1=classof$1$2(process$2$1)=="process",queueMicrotaskDescriptor$1=getOwnPropertyDescriptor$4(global$4$3,"queueMicrotask"),queueMicrotask$2=queueMicrotaskDescriptor$1&&queueMicrotaskDescriptor$1.value,flush$1,head$1,last$1,notify$1$1,toggle$1,node$1,promise$1,then$1;queueMicrotask$2||(flush$1=function(){var Mn,Fn;for(IS_NODE$1$1&&(Mn=process$2$1.domain)&&Mn.exit();head$1;){Fn=head$1.fn,head$1=head$1.next;try{Fn()}catch(io){throw head$1?notify$1$1():last$1=void 0,io}}last$1=void 0,Mn&&Mn.enter()},IS_NODE$1$1?notify$1$1=function(){process$2$1.nextTick(flush$1)}:MutationObserver$2&&!IS_IOS$2?(toggle$1=!0,node$1=document.createTextNode(""),new MutationObserver$2(flush$1).observe(node$1,{characterData:!0}),notify$1$1=function(){node$1.data=toggle$1=!toggle$1}):Promise$1$1&&Promise$1$1.resolve?(promise$1=Promise$1$1.resolve(void 0),then$1=promise$1.then,notify$1$1=function(){then$1.call(promise$1,flush$1)}):notify$1$1=function(){macrotask$1.call(global$4$3,flush$1)});var microtask$1$1=queueMicrotask$2||function(Mn){var Fn={fn:Mn,next:void 0};last$1&&(last$1.next=Fn),head$1||(head$1=Fn,notify$1$1()),last$1=Fn},newPromiseCapability$2$1={},aFunction$1$2=aFunction$6$1,PromiseCapability$1=function(Mn){var Fn,io;this.promise=new Mn(function(fo,$o){if(Fn!==void 0||io!==void 0)throw TypeError("Bad Promise constructor");Fn=fo,io=$o}),this.resolve=aFunction$1$2(Fn),this.reject=aFunction$1$2(io)};newPromiseCapability$2$1.f=function(Mn){return new PromiseCapability$1(Mn)};var anObject$2$3=anObject$b$1,isObject$1$3=isObject$9$1,newPromiseCapability$1$1=newPromiseCapability$2$1,promiseResolve$1$1=function(Mn,Fn){if(anObject$2$3(Mn),isObject$1$3(Fn)&&Fn.constructor===Mn)return Fn;var io=newPromiseCapability$1$1.f(Mn),fo=io.resolve;return fo(Fn),io.promise},global$3$3=global$j$1,hostReportErrors$1$1=function(Mn,Fn){var io=global$3$3.console;io&&io.error&&(arguments.length===1?io.error(Mn):io.error(Mn,Fn))},perform$1$1=function(Mn){try{return{error:!1,value:Mn()}}catch(Fn){return{error:!0,value:Fn}}},global$2$3=global$j$1,userAgent$2=engineUserAgent$1,process$1$1=global$2$3.process,versions$1=process$1$1&&process$1$1.versions,v8$1=versions$1&&versions$1.v8,match$1,version$1;v8$1?(match$1=v8$1.split("."),version$1=match$1[0]+match$1[1]):userAgent$2&&(match$1=userAgent$2.match(/Edge\/(\d+)/),(!match$1||match$1[1]>=74)&&(match$1=userAgent$2.match(/Chrome\/(\d+)/),match$1&&(version$1=match$1[1])));var engineV8Version$1=version$1&&+version$1,$$8=_export$2,global$1$3=global$j$1,getBuiltIn$8=getBuiltIn$5$1,NativePromise$1=nativePromiseConstructor$1,redefine$1$3=redefine$5$2.exports,redefineAll$4=redefineAll$1$2,setToStringTag$7=setToStringTag$3$2,setSpecies$3=setSpecies$1$2,isObject$c=isObject$9$1,aFunction$8=aFunction$6$1,anInstance$5=anInstance$1$2,classof$9=classofRaw$1$2,inspectSource$5=inspectSource$3$2,iterate$3=iterate$2$1.exports,checkCorrectnessOfIteration$3=checkCorrectnessOfIteration$1$2,speciesConstructor$3=speciesConstructor$1$2,task$2=task$1$1.set,microtask$3=microtask$1$1,promiseResolve$2=promiseResolve$1$1,hostReportErrors$2=hostReportErrors$1$1,newPromiseCapabilityModule$1=newPromiseCapability$2$1,perform$2=perform$1$1,InternalStateModule$7=internalState$3,isForced$4=isForced_1$2,wellKnownSymbol$i=wellKnownSymbol$f$1,V8_VERSION$1=engineV8Version$1,SPECIES$5=wellKnownSymbol$i("species"),PROMISE$1="Promise",getInternalState$6=InternalStateModule$7.get,setInternalState$6=InternalStateModule$7.set,getInternalPromiseState$1=InternalStateModule$7.getterFor(PROMISE$1),PromiseConstructor$1=NativePromise$1,TypeError$1$1=global$1$3.TypeError,document$1$2=global$1$3.document,process$4=global$1$3.process,$fetch$2=getBuiltIn$8("fetch"),newPromiseCapability$3=newPromiseCapabilityModule$1.f,newGenericPromiseCapability$1=newPromiseCapability$3,IS_NODE$2=classof$9(process$4)=="process",DISPATCH_EVENT$1=!!(document$1$2&&document$1$2.createEvent&&global$1$3.dispatchEvent),UNHANDLED_REJECTION$1="unhandledrejection",REJECTION_HANDLED$1="rejectionhandled",PENDING$1=0,FULFILLED$1=1,REJECTED$1=2,HANDLED$1=1,UNHANDLED$1=2,Internal$1,OwnPromiseCapability$1,PromiseWrapper$1,nativeThen$1,FORCED$3=isForced$4(PROMISE$1,function(){var Mn=inspectSource$5(PromiseConstructor$1)!==String(PromiseConstructor$1);if(!Mn&&(V8_VERSION$1===66||!IS_NODE$2&&typeof PromiseRejectionEvent!="function"))return!0;if(V8_VERSION$1>=51&&/native code/.test(PromiseConstructor$1))return!1;var Fn=PromiseConstructor$1.resolve(1),io=function($o){$o(function(){},function(){})},fo=Fn.constructor={};return fo[SPECIES$5]=io,!(Fn.then(function(){})instanceof io)}),INCORRECT_ITERATION$1=FORCED$3||!checkCorrectnessOfIteration$3(function(Mn){PromiseConstructor$1.all(Mn).catch(function(){})}),isThenable$1=function(Mn){var Fn;return isObject$c(Mn)&&typeof(Fn=Mn.then)=="function"?Fn:!1},notify$2=function(Mn,Fn,io){if(!Fn.notified){Fn.notified=!0;var fo=Fn.reactions;microtask$3(function(){for(var $o=Fn.value,mo=Fn.state==FULFILLED$1,Ao=0;fo.length>Ao;){var jo=fo[Ao++],Lo=mo?jo.ok:jo.fail,Ho=jo.resolve,zo=jo.reject,Go=jo.domain,Vo,Yo,Xo;try{Lo?(mo||(Fn.rejection===UNHANDLED$1&&onHandleUnhandled$1(Mn,Fn),Fn.rejection=HANDLED$1),Lo===!0?Vo=$o:(Go&&Go.enter(),Vo=Lo($o),Go&&(Go.exit(),Xo=!0)),Vo===jo.promise?zo(TypeError$1$1("Promise-chain cycle")):(Yo=isThenable$1(Vo))?Yo.call(Vo,Ho,zo):Ho(Vo)):zo($o)}catch(is){Go&&!Xo&&Go.exit(),zo(is)}}Fn.reactions=[],Fn.notified=!1,io&&!Fn.rejection&&onUnhandled$1(Mn,Fn)})}},dispatchEvent$1=function(Mn,Fn,io){var fo,$o;DISPATCH_EVENT$1?(fo=document$1$2.createEvent("Event"),fo.promise=Fn,fo.reason=io,fo.initEvent(Mn,!1,!0),global$1$3.dispatchEvent(fo)):fo={promise:Fn,reason:io},($o=global$1$3["on"+Mn])?$o(fo):Mn===UNHANDLED_REJECTION$1&&hostReportErrors$2("Unhandled promise rejection",io)},onUnhandled$1=function(Mn,Fn){task$2.call(global$1$3,function(){var io=Fn.value,fo=isUnhandled$1(Fn),$o;if(fo&&($o=perform$2(function(){IS_NODE$2?process$4.emit("unhandledRejection",io,Mn):dispatchEvent$1(UNHANDLED_REJECTION$1,Mn,io)}),Fn.rejection=IS_NODE$2||isUnhandled$1(Fn)?UNHANDLED$1:HANDLED$1,$o.error))throw $o.value})},isUnhandled$1=function(Mn){return Mn.rejection!==HANDLED$1&&!Mn.parent},onHandleUnhandled$1=function(Mn,Fn){task$2.call(global$1$3,function(){IS_NODE$2?process$4.emit("rejectionHandled",Mn):dispatchEvent$1(REJECTION_HANDLED$1,Mn,Fn.value)})},bind$6=function(Mn,Fn,io,fo){return function($o){Mn(Fn,io,$o,fo)}},internalReject$1=function(Mn,Fn,io,fo){Fn.done||(Fn.done=!0,fo&&(Fn=fo),Fn.value=io,Fn.state=REJECTED$1,notify$2(Mn,Fn,!0))},internalResolve$1=function(Mn,Fn,io,fo){if(!Fn.done){Fn.done=!0,fo&&(Fn=fo);try{if(Mn===io)throw TypeError$1$1("Promise can't be resolved itself");var $o=isThenable$1(io);$o?microtask$3(function(){var mo={done:!1};try{$o.call(io,bind$6(internalResolve$1,Mn,mo,Fn),bind$6(internalReject$1,Mn,mo,Fn))}catch(Ao){internalReject$1(Mn,mo,Ao,Fn)}}):(Fn.value=io,Fn.state=FULFILLED$1,notify$2(Mn,Fn,!1))}catch(mo){internalReject$1(Mn,{done:!1},mo,Fn)}}};FORCED$3&&(PromiseConstructor$1=function(Fn){anInstance$5(this,PromiseConstructor$1,PROMISE$1),aFunction$8(Fn),Internal$1.call(this);var io=getInternalState$6(this);try{Fn(bind$6(internalResolve$1,this,io),bind$6(internalReject$1,this,io))}catch(fo){internalReject$1(this,io,fo)}},Internal$1=function(Fn){setInternalState$6(this,{type:PROMISE$1,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:PENDING$1,value:void 0})},Internal$1.prototype=redefineAll$4(PromiseConstructor$1.prototype,{then:function(Fn,io){var fo=getInternalPromiseState$1(this),$o=newPromiseCapability$3(speciesConstructor$3(this,PromiseConstructor$1));return $o.ok=typeof Fn=="function"?Fn:!0,$o.fail=typeof io=="function"&&io,$o.domain=IS_NODE$2?process$4.domain:void 0,fo.parent=!0,fo.reactions.push($o),fo.state!=PENDING$1&¬ify$2(this,fo,!1),$o.promise},catch:function(Mn){return this.then(void 0,Mn)}}),OwnPromiseCapability$1=function(){var Mn=new Internal$1,Fn=getInternalState$6(Mn);this.promise=Mn,this.resolve=bind$6(internalResolve$1,Mn,Fn),this.reject=bind$6(internalReject$1,Mn,Fn)},newPromiseCapabilityModule$1.f=newPromiseCapability$3=function(Mn){return Mn===PromiseConstructor$1||Mn===PromiseWrapper$1?new OwnPromiseCapability$1(Mn):newGenericPromiseCapability$1(Mn)},typeof NativePromise$1=="function"&&(nativeThen$1=NativePromise$1.prototype.then,redefine$1$3(NativePromise$1.prototype,"then",function(Fn,io){var fo=this;return new PromiseConstructor$1(function($o,mo){nativeThen$1.call(fo,$o,mo)}).then(Fn,io)},{unsafe:!0}),typeof $fetch$2=="function"&&$$8({global:!0,enumerable:!0,forced:!0},{fetch:function(Fn){return promiseResolve$2(PromiseConstructor$1,$fetch$2.apply(global$1$3,arguments))}})));$$8({global:!0,wrap:!0,forced:FORCED$3},{Promise:PromiseConstructor$1});setToStringTag$7(PromiseConstructor$1,PROMISE$1,!1);setSpecies$3(PROMISE$1);PromiseWrapper$1=getBuiltIn$8(PROMISE$1);$$8({target:PROMISE$1,stat:!0,forced:FORCED$3},{reject:function Mn(Fn){var io=newPromiseCapability$3(this);return io.reject.call(void 0,Fn),io.promise}});$$8({target:PROMISE$1,stat:!0,forced:FORCED$3},{resolve:function Mn(Fn){return promiseResolve$2(this,Fn)}});$$8({target:PROMISE$1,stat:!0,forced:INCORRECT_ITERATION$1},{all:function Mn(Fn){var io=this,fo=newPromiseCapability$3(io),$o=fo.resolve,mo=fo.reject,Ao=perform$2(function(){var jo=aFunction$8(io.resolve),Lo=[],Ho=0,zo=1;iterate$3(Fn,function(Go){var Vo=Ho++,Yo=!1;Lo.push(void 0),zo++,jo.call(io,Go).then(function(Xo){Yo||(Yo=!0,Lo[Vo]=Xo,--zo||$o(Lo))},mo)}),--zo||$o(Lo)});return Ao.error&&mo(Ao.value),fo.promise},race:function Mn(Fn){var io=this,fo=newPromiseCapability$3(io),$o=fo.reject,mo=perform$2(function(){var Ao=aFunction$8(io.resolve);iterate$3(Fn,function(jo){Ao.call(io,jo).then(fo.resolve,$o)})});return mo.error&&$o(mo.value),fo.promise}});const HardwareWalletAccountsForm=({accounts:Mn,onSelectedChanged:Fn,onSubmit:io,onChangeRoute:fo})=>jsxRuntimeExports.jsxs("div",Object.assign({className:"choose-ledger-account-form-wrapper"},{children:[jsxRuntimeExports.jsxs("p",{children:["We found ",Mn.length," accounts on your device. Select the account(s) you wish to connect."]}),jsxRuntimeExports.jsx("div",Object.assign({className:"button-wrapper"},{children:jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>{fo("SpecifyHDPath")}},{children:"HD.../0"}))})),jsxRuntimeExports.jsx("form",Object.assign({className:"form",onSubmit:$o=>{io(Mn,$o)}},{children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",Object.assign({className:"nws-form-control"},{children:Mn.map(($o,mo)=>jsxRuntimeExports.jsxs("div",Object.assign({className:"account"},{children:[jsxRuntimeExports.jsx("input",{onChange:Ao=>{Fn(mo,Ao.target.checked)},checked:$o.selected,type:"checkbox",id:$o.accountId,name:$o.accountId,value:$o.accountId}),jsxRuntimeExports.jsxs("label",Object.assign({htmlFor:$o.accountId},{children:[" ",$o.accountId]})),jsxRuntimeExports.jsx("br",{})]}),mo))})),jsxRuntimeExports.jsx("div",Object.assign({className:"action-buttons"},{children:jsxRuntimeExports.jsx("button",Object.assign({className:"middleButton",type:"submit",disabled:!Mn.some($o=>$o.selected)},{children:"Connect"}))}))]})}))]}));var img="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAR3SURBVHgBpVZ9aJVVGH+e55z33bi7zY9hMz+yMAeNoEIq6A9ZRKQWEsQNFIIpsf5Y9E+GsD9iBEEDMUkDa6ShRKKZYIWiRkaKaUGUGCKOTGMF84PNO99773vOefq9720yK5ZzD/dwPt/nd37P17lEk5Qnuz9roUkKT7T5bNe+QjTNLCHv24h1Xgh+OmtwQYPH2jUXwlnW9NRooqePfLS6MmmQ59cdeEGJlkJZA5MGVecoAwghBYZTVY9ftuaDSy8x8w9fbFl95JZAXuw9dmelkvRAyXxS7wMFryG4bIyWZiqzPgMhaFfGfn3NY3AZG9sPf/Dy8HidZvxkZc/h1pqnPlKey6yspMqUd9jVAEYY6RCGDQTwjGDwGTgAlbwRijV1C9vanz577tT+6r+YrOz5rlXFrQ/qZ+FbDxCfXS5oOgxln4v473f3rbgwdn7FK5/MCaH2eAg6X8g3K2iBMTiBkNJVKbod+ze9mgPZsY/UaicYzCE1HgpZc558olCTjTvWLxv9p1n3bV45iO7T5zq3TU9j9xTOLwQ5D9t48aEYrtGj2P/2BpNS78nZJoRdlDsYd8vphz273lqyhW5Rnlnz3hOe6SEwghvxPUMTVfYe2rpuUOqOkZeIxdSbsSJ8eTIAmXy5tftrMPkzi0C4B2ZDNHp+INvLQURkhYiJ6gDGko376DbEJ8k3mcnYBSeSM2ptL/XGsurNnxfnDIQNwCKADO1845Ef6Tbk0M51g4joMgncDyBmkrtsNEMQovcDxGYsGL2yDNAUxPv0VySs4yxhfeYbabJg0Awg+ILylEB6nKMpSOp0WCR1+QSuD4ELljNDEfyRrdXPCU1BTEgD7pyOzVmC2iBm0KgYAMCEeXovoClIjdKiVdQ3FYbzmatxWRqMPcNsDHyfNWskWk5TkJhNEwVyxA6hLL5clLJsW7voFxa6LiR5CCOeWzo3XFxKtyEdy3tnp7VahAoDp6PEVGvJye09l3P7K9k9WQijXBv4B6WG+0pvD0ybFEBHZ6OPh+/OGaBsIvNRAGp/ZHv1jJeon+omszBkFsr3FhsLB7rev3JLQKVSyfjmaW2BJSavDlqR7c5VrR+4AbLttbkXMehH7gjA8gZiD/tq+Or/ABZ3dUW/J62LcPUGcrW8pKSVFAg6cHz3O0l25qZHa/XGwWPg9aAwwzdZAaDX+7tbNsMYf5+bpaUS0dDQEF8rtsUxCbI5e5KRzGhBMiqNxllKju7d8NOYXjseRBytQngcVDL3wD9H+7vf3YS7mnnzqrZpwSxrwkh04cpM5NTMyJdHbIgaESyxJ6tZ5cDbw3qd0tqVCp25Se/4yYdr5/zm/ehjwvpxZHgN0Wlub0/Yt7awdykqRYFHy6NUQVrBd4o6p6ngrVL2Bo8ksuJqoXzq9Ln9m6rj9U74b6Wjo8OeP082aY5NUxRsYzwDkeFsU+MdUU3U4PG0QtbahqhadDMuHTy4fvS/9EwIUpdeuW/ZiShOipFxURRbNdWETFMRZrCFlEZGkuPHdycTafgLExNiI6YfUpcAAAAASUVORK5CYII=";const WalletConnecting=({wallet:Mn,onCloseModal:Fn})=>jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(ModalHeader,{title:"",onCloseModal:Fn}),jsxRuntimeExports.jsx("div",Object.assign({className:"connecting-wrapper"},{children:jsxRuntimeExports.jsxs("div",Object.assign({className:"content"},{children:[jsxRuntimeExports.jsx("div",Object.assign({className:"icon"},{children:jsxRuntimeExports.jsx("img",{src:Mn==null?void 0:Mn.metadata.iconUrl,alt:Mn==null?void 0:Mn.metadata.name})})),jsxRuntimeExports.jsx("h3",Object.assign({className:"connecting-name"},{children:Mn==null?void 0:Mn.metadata.name})),jsxRuntimeExports.jsxs("div",Object.assign({className:"connecting-details"},{children:[jsxRuntimeExports.jsx("div",Object.assign({className:"spinner"},{children:jsxRuntimeExports.jsx("img",{src:img,alt:"loading-icon"})})),jsxRuntimeExports.jsxs("span",{children:[translate("modal.wallet.connectingTo")," ",Mn==null?void 0:Mn.metadata.name,"..."]})]})),jsxRuntimeExports.jsx("div",Object.assign({className:"connecting-message"},{children:jsxRuntimeExports.jsx("span",{children:translate(`modal.wallet.connectingMessage.${Mn==null?void 0:Mn.type}`)})}))]}))}))]}),LedgerDeviceIcon=()=>jsxRuntimeExports.jsxs("svg",Object.assign({width:"317",height:"157",viewBox:"0 0 317 157",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M249.99 16.0994C270.063 -0.864155 289.788 1.58873 301.497 10.7365C307.402 15.3499 311.278 21.6575 312.267 28.1258C313.247 34.5412 311.413 41.2233 305.692 46.8044C297.366 54.9273 286.343 55.3362 273.015 51.5109C261.654 48.25 249.058 42.0377 235.726 35.4627L235.726 35.4626L235.717 35.458C233.367 34.2992 230.995 33.129 228.602 31.9618C212.742 24.2253 196.067 16.6575 179.842 13.8595C163.538 11.0479 147.552 13.0313 133.266 24.522C128.032 28.732 123.478 35.2086 121.716 44.8205C119.961 54.3947 120.992 66.9771 126.703 83.4311C135.432 108.583 132.899 126.677 123.575 138.063C114.217 149.491 97.5614 154.733 76.7887 153.121C55.0043 151.43 29.0621 142.206 3.29867 125.227L0.887817 127.942C27.2472 145.405 53.9251 154.952 76.5105 156.705C97.9028 158.365 115.96 153.035 126.356 140.341C136.785 127.606 139.045 108.029 130.099 82.2524C124.521 66.1801 123.642 54.2493 125.252 45.4687C126.854 36.7258 130.94 31.006 135.519 27.3232C148.794 16.6458 163.649 14.715 179.231 17.4021C194.891 20.1027 211.146 27.4463 227.026 35.1928C229.381 36.3415 231.729 37.5001 234.066 38.6531L234.073 38.6568C247.382 45.223 260.324 51.608 272.024 54.9662C285.819 58.9258 298.493 58.8501 308.202 49.3776C314.764 42.9759 316.974 35.1288 315.82 27.5826C314.675 20.0893 310.237 13.0029 303.71 7.90363C290.555 -2.37382 268.938 -4.62038 247.67 13.3537L249.99 16.0994Z",fill:"url(#paint0_linear_3_672)"}),jsxRuntimeExports.jsx("path",{d:"M260.264 17.8767L177.605 89.4649L157.679 73.9664L239.23 3.85423L260.264 17.8767Z",fill:"#6A7075"}),jsxRuntimeExports.jsx("path",{d:"M205.939 54.4577L199.764 50.2636L233.316 20.9053L239.907 25.8395L205.939 54.4577Z",fill:"#494E52"}),jsxRuntimeExports.jsx("path",{d:"M260.264 17.8757L177.605 89.4639L182.033 98.3202L264.323 26.363L260.264 17.8757Z",fill:"#494E52"}),jsxRuntimeExports.jsx("path",{d:"M177.236 89.4646L181.295 98.3209L165.059 85.7745L170.963 85.0365L177.236 89.4646Z",fill:"black"}),jsxRuntimeExports.jsx("path",{d:"M93.4708 99.6384L91.9948 110.13L174.653 92.894L164.69 85.7749L93.4708 99.6384Z",fill:"#DCDADA"}),jsxRuntimeExports.jsx("path",{d:"M93.1157 104.323L94.314 100.129L165.613 86.3483L169.208 89.344L93.1157 104.323Z",fill:"#C1C1C1"}),jsxRuntimeExports.jsx("path",{d:"M94.2086 99.7963L86.0903 101.272L92.3635 110.129L94.2086 99.7963Z",fill:"#B3AAAA"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M86.0903 100.907L89.0027 74.1304L178.455 55.2416C184.695 53.9962 195.766 54.7675 197.177 63.7058C198.284 70.717 195.506 73.9943 191.628 77.3592C188.495 80.0671 180.152 82.4646 178.343 82.8944C178.293 82.9064 178.241 82.9188 178.186 82.9319C177.38 83.1245 176.007 83.4525 170.644 84.5088C169.085 84.8158 167.382 85.1501 165.557 85.5078L164.933 85.63C146.312 89.2764 115.528 95.2297 93.9844 99.3849C91.1808 99.9257 88.5337 100.436 86.0903 100.907ZM185.076 75.554C190.748 73.3535 193.99 68.0745 192.318 63.7631C190.645 59.4517 184.691 57.7405 179.019 59.941C173.347 62.1416 170.105 67.4206 171.778 71.732C173.45 76.0434 179.404 77.7546 185.076 75.554Z",fill:"#F4F1E8"}),jsxRuntimeExports.jsx("path",{d:"M199.764 50.3994L196.768 48.3043L232.194 18.0454L233.316 21.6403L199.764 50.3994Z",fill:"black"}),jsxRuntimeExports.jsx("path",{d:"M239.968 25.9943L232.588 20.4592V17.5071L241.813 24.5183L239.968 25.9943Z",fill:"black"}),jsxRuntimeExports.jsx("ellipse",{cx:"182.084",cy:"68.0811",rx:"10.242",ry:"7.46772",transform:"rotate(-23.7949 182.084 68.0811)",fill:"#494E52"}),jsxRuntimeExports.jsx("ellipse",{cx:"182.084",cy:"68.0816",rx:"6.68462",ry:"4.87394",transform:"rotate(-23.7949 182.084 68.0816)",fill:"#494E52"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M238.725 2.93094L260.368 17.2564L264.865 26.4556L181.615 99.0341L175.16 94.311L92.0028 110.947L85.3267 101.399L88.3269 73.8157L178.118 54.8553L238.725 2.93094ZM178.599 56.2622L89.6786 75.0388L86.9321 100.29C89.0979 99.8725 91.4124 99.4263 93.8446 98.9572C115.388 94.8019 146.171 88.8488 164.791 85.2026L165.415 85.0804C167.24 84.7228 168.943 84.3885 170.501 84.0816C175.853 83.0275 177.219 82.701 178.015 82.5107C178.07 82.4976 178.122 82.4852 178.173 82.4732C179.048 82.2652 181.558 81.5669 184.235 80.5851C186.742 79.6655 189.286 78.5354 190.802 77.3758L191.151 77.0922L191.644 76.6595C193.341 75.147 194.723 73.6739 195.61 71.871C196.571 69.916 196.982 67.5029 196.448 64.1178C195.8 60.0131 192.959 57.7574 189.408 56.6566C185.833 55.5483 181.637 55.6566 178.603 56.2615C178.601 56.2617 178.6 56.262 178.599 56.2622ZM192.631 77.7565L259.555 18.9531L263.042 26.0869L181.808 96.9078L178.132 89.5713L191.724 78.529C191.859 78.4249 191.988 78.32 192.11 78.2144L192.111 78.2136C192.286 78.0617 192.46 77.9094 192.631 77.7565ZM185.491 81.6908C185.24 81.7868 184.99 81.8802 184.743 81.9709C182.013 82.9723 179.447 83.6875 178.514 83.9093C178.463 83.9213 178.411 83.9338 178.356 83.9468C177.635 84.1192 176.472 84.3971 172.491 85.1919L177.172 88.4492L185.491 81.6908ZM176.631 89.8707L170.479 85.5903C169.306 85.8213 168.054 86.0673 166.731 86.3265L175.769 92.9276L179.548 95.6924L176.631 89.8707ZM164.758 86.7132C146.252 90.3362 116.027 96.1817 94.6324 100.308L93.2258 109.197L173.543 93.1293L164.758 86.7132ZM91.888 108.207L93.0909 100.606C91.0848 100.993 89.1642 101.363 87.3471 101.713L91.888 108.207ZM258.581 17.8436L197.306 71.6841C198.142 69.5779 198.41 67.0795 197.906 63.8876C197.143 59.0539 193.743 56.4549 189.845 55.2467C186.921 54.3402 183.662 54.1916 180.861 54.449L238.84 4.77668L258.581 17.8436ZM232.505 16.82L243.089 24.5643L205.915 56.5106L196.042 48.0665L232.505 16.82ZM232.118 19.096L198.312 48.0654L199.744 49.29L232.584 20.9424L232.118 19.096ZM233.456 22.1396L200.878 50.2604L205.913 54.5664L239.041 26.0969L233.456 22.1396ZM240.195 25.1054L240.717 24.6571L233.759 19.5663L234.06 20.7586L240.195 25.1054Z",fill:"black"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M190.194 69.9744C191.32 68.1409 191.576 66.2271 190.942 64.5937C190.308 62.9603 188.829 61.7198 186.761 61.1254C184.691 60.5307 182.116 60.6196 179.553 61.6139C176.991 62.6081 175.029 64.2794 173.902 66.1141C172.776 67.9477 172.52 69.8614 173.154 71.4948C173.788 73.1282 175.267 74.3687 177.335 74.9631C179.405 75.5578 181.98 75.4689 184.543 74.4746C187.105 73.4804 189.067 71.8091 190.194 69.9744ZM185.077 75.8508C190.749 73.6502 193.991 68.3712 192.318 64.0598C190.645 59.7484 184.691 58.0372 179.019 60.2378C173.347 62.4383 170.105 67.7173 171.778 72.0287C173.451 76.3401 179.405 78.0513 185.077 75.8508Z",fill:"black"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M187.391 69.169C188.127 67.9713 188.266 66.7721 187.881 65.7812C187.497 64.7903 186.586 63.9984 185.235 63.6102C183.883 63.2216 182.173 63.2741 180.456 63.9404C178.738 64.6068 177.441 65.7208 176.705 66.9196C175.969 68.1172 175.83 69.3165 176.215 70.3074C176.599 71.2983 177.511 72.0901 178.861 72.4783C180.214 72.8669 181.923 72.8144 183.64 72.1481C185.358 71.4818 186.655 70.3678 187.391 69.169ZM184.174 73.5242C188.156 71.9795 190.432 68.2738 189.257 65.2473C188.083 62.2208 183.904 61.0196 179.922 62.5643C175.94 64.1091 173.665 67.8148 174.839 70.8412C176.013 73.8677 180.193 75.0689 184.174 73.5242Z",fill:"black"}),jsxRuntimeExports.jsx("path",{d:"M240.499 41.2441C239.744 40.3649 239.844 39.04 240.724 38.285L249.781 30.5067C250.66 29.7516 251.985 29.8523 252.74 30.7315V30.7315C253.495 31.6108 253.395 32.9356 252.516 33.6907L243.458 41.469C242.579 42.224 241.254 42.1234 240.499 41.2441V41.2441Z",fill:"black"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M250.743 31.6265L241.685 39.4048C241.424 39.6287 241.395 40.0217 241.619 40.2825C241.842 40.5433 242.235 40.5731 242.496 40.3492L251.554 32.5709C251.815 32.3469 251.845 31.954 251.621 31.6932C251.397 31.4324 251.004 31.4025 250.743 31.6265ZM240.724 38.285C239.844 39.04 239.744 40.3649 240.499 41.2441C241.254 42.1234 242.579 42.224 243.458 41.469L252.516 33.6907C253.395 32.9356 253.495 31.6108 252.74 30.7315C251.985 29.8523 250.66 29.7516 249.781 30.5067L240.724 38.285Z",fill:"black"}),jsxRuntimeExports.jsx("path",{d:"M205.779 71.4647C205.005 70.5642 205.108 69.2073 206.009 68.4339L214.989 60.7218C215.89 59.9485 217.247 60.0516 218.02 60.9521V60.9521C218.793 61.8526 218.69 63.2095 217.79 63.9829L208.809 71.695C207.909 72.4683 206.552 72.3652 205.779 71.4647V71.4647Z",fill:"black"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M215.951 61.8416L206.97 69.5537C206.688 69.796 206.656 70.221 206.898 70.5031C207.141 70.7851 207.566 70.8174 207.848 70.5752L216.828 62.863C217.11 62.6208 217.143 62.1958 216.9 61.9137C216.658 61.6317 216.233 61.5994 215.951 61.8416ZM206.009 68.4339C205.108 69.2073 205.005 70.5642 205.779 71.4647C206.552 72.3652 207.909 72.4683 208.809 71.695L217.79 63.9829C218.69 63.2095 218.793 61.8526 218.02 60.9521C217.247 60.0516 215.89 59.9485 214.989 60.7218L206.009 68.4339Z",fill:"black"}),jsxRuntimeExports.jsx("circle",{cx:"141.356",cy:"19.525",r:"10.1855",fill:"#FE89B4"}),jsxRuntimeExports.jsx("ellipse",{cx:"139.062",cy:"14.7094",rx:"2.42519",ry:"1.94015",transform:"rotate(-34.544 139.062 14.7094)",fill:"#FDF7FF"}),jsxRuntimeExports.jsx("circle",{cx:"252.489",cy:"79.7577",r:"7.78893",fill:"#EC5236"}),jsxRuntimeExports.jsx("ellipse",{cx:"250.434",cy:"76.3701",rx:"2.61272",ry:"2.09018",transform:"rotate(-34.544 250.434 76.3701)",fill:"#EDB69D"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M100.436 79.9254C100.461 79.6567 100.732 79.3897 101.042 79.329L106.657 78.2299C107.587 78.0478 108.281 78.5536 108.207 79.3596L107.759 84.2243C107.734 84.493 107.463 84.76 107.153 84.8207L100.416 86.1396C100.106 86.2003 99.8742 86.0317 99.899 85.7631L100.436 79.9254Z",fill:"#B3AAAA"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M95.8553 81.7775C95.9294 80.9715 96.7437 80.1704 97.6739 79.9883L98.7968 79.7685C99.1069 79.7078 99.3382 79.8764 99.3135 80.1451L99.1344 82.091C99.1096 82.3597 98.8382 82.6267 98.5282 82.6874L96.2824 83.127C95.9723 83.1877 95.741 83.0191 95.7657 82.7505L95.8553 81.7775Z",fill:"#B3AAAA"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M95.5865 84.6965C95.6112 84.4278 95.8826 84.1608 96.1927 84.1001L98.4385 83.6605C98.7486 83.5998 98.9799 83.7684 98.9552 84.037L98.7761 85.9829C98.7513 86.2516 98.4799 86.5186 98.1699 86.5793L95.9241 87.019C95.614 87.0797 95.3827 86.9111 95.4074 86.6424L95.5865 84.6965Z",fill:"#B3AAAA"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M95.2282 88.5884C95.2529 88.3197 95.5244 88.0527 95.8344 87.992L98.0802 87.5524C98.3903 87.4917 98.6216 87.6603 98.5969 87.929L98.4178 89.8749C98.3931 90.1435 98.1216 90.4105 97.8116 90.4712L96.6887 90.6911C95.7584 90.8732 95.0645 90.3674 95.1387 89.5614L95.2282 88.5884Z",fill:"#B3AAAA"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M99.7197 87.709C99.7444 87.4403 100.016 87.1733 100.326 87.1126L102.572 86.673C102.882 86.6123 103.113 86.7809 103.088 87.0496L102.909 88.9955C102.885 89.2641 102.613 89.5312 102.303 89.5919L100.057 90.0315C99.7472 90.0922 99.5159 89.9236 99.5406 89.6549L99.7197 87.709Z",fill:"#B3AAAA"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104.211 86.8298C104.236 86.5611 104.507 86.2941 104.817 86.2334L107.063 85.7938C107.373 85.7331 107.605 85.9017 107.58 86.1704L107.49 87.1433C107.416 87.9493 106.602 88.7504 105.672 88.9325L104.549 89.1523C104.239 89.213 104.007 89.0444 104.032 88.7757L104.211 86.8298Z",fill:"#B3AAAA"}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsxs("linearGradient",Object.assign({id:"paint0_linear_3_672",x1:"-44.5195",y1:"122.42",x2:"263.357",y2:"-8.65023",gradientUnits:"userSpaceOnUse"},{children:[jsxRuntimeExports.jsx("stop",{offset:"0.110697",stopColor:"#232323"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#3D3D3D"})]}))})]})),UpArrowIcon=()=>jsxRuntimeExports.jsx("svg",Object.assign({width:"10",height:"7",viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:jsxRuntimeExports.jsx("path",{d:"M9 5.4762L5 1.4762L1 5.4762",stroke:"#4F7CD1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})),DownArrowIcon=()=>jsxRuntimeExports.jsx("svg",Object.assign({width:"10",height:"7",viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:jsxRuntimeExports.jsx("path",{d:"M1 1.52382L5 5.52382L9 1.52382",stroke:"#4F7CD1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})),DEFAULT_DERIVATION_PATH="44'/397'/0'/0'/1'",DerivationPath=({selector:Mn,options:Fn,onBack:io,onConnected:fo,params:$o,onError:mo,onCloseModal:Ao})=>{const[jo,Lo]=reactExports.useState("EnterDerivationPath"),[Ho,zo]=reactExports.useState(DEFAULT_DERIVATION_PATH),[Go,Vo]=reactExports.useState(1),[Yo,Xo]=reactExports.useState([]),[is,yl]=reactExports.useState([]),[us,hs]=reactExports.useState(),[_l,xl]=reactExports.useState(""),[Il,Ol]=reactExports.useState(!1),Tl=translate("modal.ledger.connectWithLedger"),[Cl,Nl]=reactExports.useState(Tl),Wl=ps=>__awaiter$3(void 0,void 0,void 0,function*(){const _c=yield fetch(`${Mn.options.network.indexerUrl}/publicKey/ed25519:${ps}/accounts`);if(!_c.ok)throw new Error("Failed to get account id from public key");const $l=yield _c.json();return!Array.isArray($l)||!$l.length?[]:$l}),Dl=ps=>__awaiter$3(void 0,void 0,void 0,function*(){const _c=yield ps.getPublicKey(Ho);try{return(yield Wl(_c)).map((El,ds)=>({derivationPath:Ho,publicKey:_c,accountId:El,selected:ds===0}))}catch{return null}}),Rl=()=>__awaiter$3(void 0,void 0,void 0,function*(){const ps=yield Mn.wallet($o.walletId);if(ps.type==="hardware"){Ol(!0),hs(ps);try{const _c=yield Dl(ps);if(!_c){Lo("AddCustomAccountId");return}const $l=_c.length===0,El=_c.length>1;if($l){Nl(translate("modal.ledger.noAccountsFound")),Lo("NoAccountsFound");return}Xo(_c),El?(Nl(translate("modal.ledger.selectYourAccounts")),Lo("ChooseAccount")):(yl(_c),Lo("OverviewAccounts"))}catch(_c){Ol(!1);const $l=_c&&typeof _c=="object"&&"message"in _c?_c.message:"Something went wrong";mo($l,ps)}finally{Ol(!1)}}}),Qo=()=>__awaiter$3(void 0,void 0,void 0,function*(){try{Ol(!0);const ps=yield us.getPublicKey(Ho),_c=[{derivationPath:Ho,publicKey:ps,accountId:_l,selected:!0}];Xo(_c),yl(_c),Nl(translate("modal.ledger.connecting1Account")),Lo("OverviewAccounts")}catch(ps){Ol(!1);const _c=ps&&typeof ps=="object"&&"message"in ps?ps.message:"Something went wrong";mo(_c,us)}finally{Ol(!1)}}),Jo=()=>{const ps=is.map(_c=>({derivationPath:_c.derivationPath,publicKey:_c.publicKey,accountId:_c.accountId}));return us.signIn({contractId:Fn.contractId,methodNames:Fn.methodNames,accounts:ps}).then(()=>fo()).catch(_c=>{mo(`Error: ${_c.message}`,us)})},rs=()=>{(jo==="SpecifyHDPath"||jo==="NoAccountsFound"||jo==="ChooseAccount")&&(Nl(translate("modal.ledger.connectWithLedger")),Lo("EnterDerivationPath")),jo==="OverviewAccounts"&&(Nl(translate("modal.ledger.selectYourAccounts")),Lo("ChooseAccount"))};return Il?jsxRuntimeExports.jsx("div",Object.assign({className:"derivation-path-wrapper"},{children:jsxRuntimeExports.jsx(WalletConnecting,{wallet:us,onBack:()=>{Ol(!1)},onCloseModal:Ao})})):jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",Object.assign({className:"nws-modal-header-wrapper"},{children:[(jo==="SpecifyHDPath"||jo==="NoAccountsFound"||jo==="ChooseAccount"||jo==="OverviewAccounts")&&jsxRuntimeExports.jsx(BackArrow,{onClick:rs}),jsxRuntimeExports.jsx(ModalHeader,{title:Cl,onCloseModal:Ao})]})),jsxRuntimeExports.jsxs("div",Object.assign({className:"derivation-path-wrapper"},{children:[jo==="EnterDerivationPath"&&jsxRuntimeExports.jsxs("div",Object.assign({className:"enter-derivation-path"},{children:[jsxRuntimeExports.jsx("div",Object.assign({className:"ledger-image"},{children:jsxRuntimeExports.jsx(LedgerDeviceIcon,{})})),jsxRuntimeExports.jsxs("div",Object.assign({className:"ledger-description"},{children:[jsxRuntimeExports.jsx("p",{children:translate("modal.ledger.makeSureYourLedger")}),jsxRuntimeExports.jsx("p",Object.assign({className:"specify-path",onClick:()=>{Nl(translate("modal.ledger.specifyHDPath")),Lo("SpecifyHDPath")}},{children:translate("modal.ledger.specifyHDPath")}))]})),jsxRuntimeExports.jsx("div",Object.assign({className:"action-buttons"},{children:jsxRuntimeExports.jsx("button",Object.assign({className:"middleButton",onClick:Rl},{children:translate("modal.ledger.continue")}))}))]})),jo==="SpecifyHDPath"&&jsxRuntimeExports.jsxs("div",Object.assign({className:"specify-path-wrapper"},{children:[jsxRuntimeExports.jsxs("div",Object.assign({className:"change-path-wrapper"},{children:[jsxRuntimeExports.jsx("div",Object.assign({className:"display-path"},{children:jsxRuntimeExports.jsx("span",{children:Ho.slice(0,-2)})})),jsxRuntimeExports.jsxs("div",Object.assign({className:"change-path"},{children:[jsxRuntimeExports.jsx("div",Object.assign({className:"path-value"},{children:jsxRuntimeExports.jsx("span",{children:Go})})),jsxRuntimeExports.jsxs("div",Object.assign({className:"buttons-wrapper"},{children:[jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>{const ps=Go+1,_c=Ho.slice(0,-2);zo(`${_c}${ps}'`),Vo(ps)}},{children:jsxRuntimeExports.jsx(UpArrowIcon,{})})),jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>{const ps=Go-1;if(ps<0)return;const _c=Ho.slice(0,-2);zo(`${_c}${ps}'`),Vo(ps)}},{children:jsxRuntimeExports.jsx(DownArrowIcon,{})}))]}))]}))]})),jsxRuntimeExports.jsx("p",Object.assign({className:"path-description"},{children:translate("modal.ledger.enterYourPreferredHDPath")})),jsxRuntimeExports.jsx("p",Object.assign({className:"what-link"},{children:jsxRuntimeExports.jsx("a",Object.assign({href:"https://www.ledger.com/academy/crypto/what-are-hierarchical-deterministic-hd-wallets",target:"_blank"},{children:"What's this?"}))})),jsxRuntimeExports.jsx("div",Object.assign({className:"action-buttons"},{children:jsxRuntimeExports.jsx("button",Object.assign({className:"middleButton",onClick:Rl},{children:translate("modal.ledger.scan")}))}))]})),jo==="NoAccountsFound"&&jsxRuntimeExports.jsx("div",Object.assign({className:"no-accounts-found-wrapper"},{children:jsxRuntimeExports.jsxs("p",{children:[translate("modal.ledger.cantFindAnyAccount")," ",jsxRuntimeExports.jsx("a",Object.assign({href:`https://${Mn.options.network.networkId==="testnet"?"testnet":"app"}.mynearwallet.com/create`,target:"_blank"},{children:"MyNearWallet"}))," ",translate("modal.ledger.orConnectAnAnotherLedger")]})})),jo==="ChooseAccount"&&jsxRuntimeExports.jsx(HardwareWalletAccountsForm,{accounts:Yo,onSelectedChanged:(ps,_c)=>{Xo($l=>[...$l.map((ds,os)=>{const Al=ps===os?_c:ds.selected;return Object.assign(Object.assign({},ds),{selected:Al})})])},onSubmit:(ps,_c)=>{_c.preventDefault();const $l=ps.filter(ds=>ds.selected);yl($l);const El=$l.length;Nl(`${translate("modal.ledger.connecting")} ${El} ${translate("modal.ledger.ofAccounts")}`),Lo("OverviewAccounts")},onChangeRoute:ps=>{ps==="SpecifyHDPath"&&Nl(translate("modal.ledger.specifyHDPath")),Lo(ps)}}),jo==="AddCustomAccountId"&&jsxRuntimeExports.jsxs("div",Object.assign({className:"enter-custom-account"},{children:[jsxRuntimeExports.jsx("p",{children:translate("modal.ledger.failedToAutomatically")}),jsxRuntimeExports.jsx("div",Object.assign({className:"input-wrapper"},{children:jsxRuntimeExports.jsx("input",{type:"text",placeholder:"Account ID",value:_l,onChange:ps=>{xl(ps.target.value)}})})),jsxRuntimeExports.jsx("div",Object.assign({className:"action-buttons"},{children:jsxRuntimeExports.jsx("button",Object.assign({className:"middleButton",onClick:Qo},{children:translate("ledger.Continue")}))}))]})),jo==="OverviewAccounts"&&jsxRuntimeExports.jsxs("div",Object.assign({className:"overview-wrapper"},{children:[jsxRuntimeExports.jsx("p",{children:translate("modal.ledger.overviewTheListOfAuthorized")}),jsxRuntimeExports.jsx("div",Object.assign({className:"accounts"},{children:is.map((ps,_c)=>jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("div",Object.assign({className:"account"},{children:jsxRuntimeExports.jsx("span",{children:ps.accountId})}))},ps.accountId))})),jsxRuntimeExports.jsx("div",Object.assign({className:"action-buttons"},{children:jsxRuntimeExports.jsx("button",Object.assign({className:"middleButton",onClick:Jo,disabled:Yo.length===0},{children:translate("modal.ledger.finish")}))}))]}))]}))]})},WalletNotInstalled=({module:Mn,onBack:Fn,onCloseModal:io})=>jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",Object.assign({className:"nws-modal-header-wrapper"},{children:[jsxRuntimeExports.jsx(BackArrow,{onClick:Fn}),jsxRuntimeExports.jsx(ModalHeader,{title:"",onCloseModal:io})]})),jsxRuntimeExports.jsxs("div",Object.assign({className:"wallet-not-installed-wrapper"},{children:[jsxRuntimeExports.jsxs("div",Object.assign({className:"wallet-data"},{children:[jsxRuntimeExports.jsx("div",Object.assign({className:`wallet-icon-box ${Mn.id}`},{children:jsxRuntimeExports.jsx("img",{src:Mn.metadata.iconUrl,alt:Mn.metadata.name})})),jsxRuntimeExports.jsx("p",{children:Mn.metadata.name})]})),jsxRuntimeExports.jsxs("p",{children:[translate("modal.install.youllNeedToInstall")," ",Mn.metadata.name," ",translate("modal.install.toContinueAfterInstalling"),jsxRuntimeExports.jsxs("span",Object.assign({className:"refresh-link",onClick:()=>window.location.reload()},{children:[" ",translate("modal.install.refreshThePage")]}))]}),jsxRuntimeExports.jsx("div",Object.assign({className:"action-buttons"},{children:jsxRuntimeExports.jsxs("button",Object.assign({className:"middleButton",onClick:()=>{Mn.type==="injected"&&window.open(Mn.metadata.downloadUrl,"_blank")}},{children:[translate("modal.install.open")," ",Mn.metadata.name]}))}))]}))]}),QRIcon=()=>jsxRuntimeExports.jsxs("svg",Object.assign({width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[jsxRuntimeExports.jsx("path",{d:"M7.22224 1.33334H1.44446V6.66668H7.22224V1.33334Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntimeExports.jsx("path",{d:"M15.8889 1.33334H10.1111V6.66668H15.8889V1.33334Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntimeExports.jsx("path",{d:"M7.22224 9.33334H1.44446V14.6667H7.22224V9.33334Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntimeExports.jsx("path",{d:"M10.1111 13.1429V14.6667H15.8889M10.1111 9.33334V10.8572H12.5873V9.33334H15.8889V12.381",stroke:"#4C5155",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntimeExports.jsx("rect",{x:"3.61108",y:"3.33334",width:"1.44444",height:"1.33333",fill:"#4C5155"}),jsxRuntimeExports.jsx("rect",{x:"3.61108",y:"11.3333",width:"1.44444",height:"1.33333",fill:"#4C5155"}),jsxRuntimeExports.jsx("rect",{x:"12.2778",y:"3.33334",width:"1.44445",height:"1.33333",fill:"#4C5155"})]})),LinkIcon=()=>jsxRuntimeExports.jsxs("svg",Object.assign({width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[jsxRuntimeExports.jsx("path",{d:"M13 8.66667V12.6667C13 13.0203 12.8478 13.3594 12.577 13.6095C12.3061 13.8595 11.9387 14 11.5556 14H3.61113C3.22804 14 2.86064 13.8595 2.58975 13.6095C2.31887 13.3594 2.16669 13.0203 2.16669 12.6667V5.33333C2.16669 4.97971 2.31887 4.64057 2.58975 4.39052C2.86064 4.14048 3.22804 4 3.61113 4H7.94447",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntimeExports.jsx("path",{d:"M10.8333 2H15.1666V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntimeExports.jsx("path",{d:"M7.22223 9.33333L15.1667 2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]})),KeyIcon=()=>jsxRuntimeExports.jsx("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:jsxRuntimeExports.jsx("path",{d:"M33.5 1.83325L30.1666 5.16658M17.4818 17.8514C19.1406 19.5103 20.1666 21.8019 20.1666 24.3333C20.1666 29.3959 16.0626 33.4999 11 33.4999C5.93735 33.4999 1.8333 29.3959 1.8333 24.3333C1.8333 19.2706 5.93735 15.1666 11 15.1666C13.5313 15.1666 15.8229 16.1926 17.4818 17.8514ZM17.4818 17.8514L24.3333 10.9999M24.3333 10.9999L29.3333 15.9999L35.1666 10.1666L30.1666 5.16658M24.3333 10.9999L30.1666 5.16658",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})),FolderIcon=()=>jsxRuntimeExports.jsxs("svg",Object.assign({width:"40",height:"41",viewBox:"0 0 40 41",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[jsxRuntimeExports.jsx("circle",{cx:"28.3333",cy:"23.8333",r:"1.66667",fill:"currentColor"}),jsxRuntimeExports.jsx("path",{d:"M35 12.1667H7C5.89543 12.1667 5 11.2712 5 10.1667V7.5C5 6.39543 5.89543 5.5 7 5.5H31.6667",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntimeExports.jsx("path",{d:"M35 12.1667V35.5H7C5.89543 35.5 5 34.6046 5 33.5V8.83334",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})),WalletHome=({selector:Mn,onCloseModal:Fn})=>{const[io,fo]=reactExports.useState([]),[$o,mo]=reactExports.useState("WalletInfo");reactExports.useEffect(()=>{const jo=Mn.store.observable.subscribe(Lo=>{const Ho=Go=>Go.type!=="bridge"&&Go.type!=="hardware"&&Go.type!=="instant-link",zo=Lo.modules.filter(Ho);fo(zo)});return()=>jo.unsubscribe()},[]);const Ao=jo=>{let Lo="";return jo.type==="injected"&&(Lo=jo.metadata.downloadUrl),jo.type==="browser"&&(Lo=jo.metadata.walletUrl),Lo};return jsxRuntimeExports.jsxs("div",Object.assign({className:"wallet-home-wrapper"},{children:[jsxRuntimeExports.jsxs("div",Object.assign({className:"nws-modal-header-wrapper"},{children:[$o==="GetWallets"&&jsxRuntimeExports.jsx(BackArrow,{onClick:()=>{mo("WalletInfo")}}),jsxRuntimeExports.jsx(ModalHeader,{title:translate($o==="GetWallets"?"modal.wallet.getAWallet":"modal.wallet.whatIsAWallet"),onCloseModal:Fn})]})),$o==="GetWallets"&&jsxRuntimeExports.jsx("div",Object.assign({className:"get-wallet-wrapper"},{children:io.map(jo=>{const{iconUrl:Lo,name:Ho}=jo.metadata,zo=["nearfi","here-wallet"].includes(jo.id),Go=jo.id==="here-wallet"?"mobile":"",Vo=Ao(jo);return jsxRuntimeExports.jsxs("div",Object.assign({tabIndex:0,className:`single-wallet-get ${jo.id}`,onClick:()=>{Vo&&window.open(Vo,"_blank")}},{children:[jsxRuntimeExports.jsxs("div",Object.assign({className:"small-icon"},{children:[zo&&Vo&&jsxRuntimeExports.jsx(QRIcon,{}),!zo&&Vo&&jsxRuntimeExports.jsx(LinkIcon,{})]})),jsxRuntimeExports.jsx("div",Object.assign({className:"icon"},{children:jsxRuntimeExports.jsx("img",{src:Lo,alt:Ho})})),jsxRuntimeExports.jsxs("div",Object.assign({className:"content"},{children:[jsxRuntimeExports.jsx("div",Object.assign({className:"title"},{children:Ho})),jsxRuntimeExports.jsx("div",Object.assign({className:"type"},{children:translate(`modal.walletTypes.${Go||jo.type}`)}))]}))]}),jo.id)})})),$o==="WalletInfo"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",Object.assign({className:"wallet-info-wrapper what-wallet-hide"},{children:[jsxRuntimeExports.jsxs("div",Object.assign({className:"wallet-what"},{children:[jsxRuntimeExports.jsx("div",Object.assign({className:"icon-side"},{children:jsxRuntimeExports.jsx(KeyIcon,{})})),jsxRuntimeExports.jsxs("div",Object.assign({className:"content-side"},{children:[jsxRuntimeExports.jsx("h3",{children:translate("modal.wallet.secureAndManage")}),jsxRuntimeExports.jsx("p",{children:translate("modal.wallet.safelyStore")})]}))]})),jsxRuntimeExports.jsxs("div",Object.assign({className:"wallet-what"},{children:[jsxRuntimeExports.jsx("div",Object.assign({className:"icon-side"},{children:jsxRuntimeExports.jsx(FolderIcon,{})})),jsxRuntimeExports.jsxs("div",Object.assign({className:"content-side"},{children:[jsxRuntimeExports.jsx("h3",{children:translate("modal.wallet.logInToAny")}),jsxRuntimeExports.jsx("p",{children:translate("modal.wallet.noNeedToCreate")})]}))]})),jsxRuntimeExports.jsx("div",{className:"button-spacing"}),jsxRuntimeExports.jsx("button",Object.assign({className:"middleButton",onClick:()=>{mo("GetWallets")}},{children:translate("modal.wallet.getAWallet")}))]})),jsxRuntimeExports.jsxs("div",Object.assign({className:"what-wallet-mobile"},{children:[jsxRuntimeExports.jsx("p",{children:translate("modal.wallet.useAWallet")}),jsxRuntimeExports.jsx("button",Object.assign({className:"middleButton",onClick:()=>{mo("GetWallets")}},{children:translate("modal.wallet.getAWallet")}))]})),jsxRuntimeExports.jsx("div",Object.assign({className:"lang-selector-wrapper"},{children:jsxRuntimeExports.jsxs("select",Object.assign({className:"lang-selector",name:"lang"},{children:[jsxRuntimeExports.jsx("option",Object.assign({value:"en"},{children:"English"})),jsxRuntimeExports.jsx("option",Object.assign({value:"es"},{children:"Spanish"}))]}))}))]})]}))},WalletConnected=({module:Mn,onCloseModal:Fn})=>jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",Object.assign({className:"nws-modal-header"},{children:[jsxRuntimeExports.jsx("h3",Object.assign({className:"middleTitle"},{children:""})),jsxRuntimeExports.jsx(CloseButton,{onClick:Fn})]})),jsxRuntimeExports.jsx("div",Object.assign({className:"connecting-wrapper"},{children:jsxRuntimeExports.jsxs("div",Object.assign({className:"content"},{children:[jsxRuntimeExports.jsxs("div",Object.assign({className:"icon"},{children:[jsxRuntimeExports.jsx("div",{className:"green-dot"}),jsxRuntimeExports.jsx("img",{src:Mn==null?void 0:Mn.metadata.iconUrl,alt:Mn==null?void 0:Mn.metadata.name})]})),jsxRuntimeExports.jsx("h3",Object.assign({className:"connecting-name"},{children:Mn==null?void 0:Mn.metadata.name})),jsxRuntimeExports.jsxs("div",Object.assign({className:"wallet-connected-success"},{children:[jsxRuntimeExports.jsx(ConnectionSuccessIcon,{}),jsxRuntimeExports.jsx("span",{children:translate("modal.wallet.connectionSuccessful")})]}))]}))}))]});var anObject$1$3=anObject$b$1,regexpFlags$3=function(){var Mn=anObject$1$3(this),Fn="";return Mn.global&&(Fn+="g"),Mn.ignoreCase&&(Fn+="i"),Mn.multiline&&(Fn+="m"),Mn.dotAll&&(Fn+="s"),Mn.unicode&&(Fn+="u"),Mn.sticky&&(Fn+="y"),Fn},redefine$a=redefine$5$2.exports,anObject$g=anObject$b$1,fails$g=fails$c$2,flags$3=regexpFlags$3,TO_STRING$3="toString",RegExpPrototype$3=RegExp.prototype,nativeToString$3=RegExpPrototype$3[TO_STRING$3],NOT_GENERIC$3=fails$g(function(){return nativeToString$3.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$3=nativeToString$3.name!=TO_STRING$3;(NOT_GENERIC$3||INCORRECT_NAME$3)&&redefine$a(RegExp.prototype,TO_STRING$3,function(){var Fn=anObject$g(this),io=String(Fn.source),fo=Fn.flags,$o=String(fo===void 0&&Fn instanceof RegExp&&!("flags"in RegExpPrototype$3)?flags$3.call(Fn):fo);return"/"+io+"/"+$o},{unsafe:!0});const CopyIcon=()=>jsxRuntimeExports.jsxs("svg",Object.assign({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[jsxRuntimeExports.jsx("path",{d:"M6.5 15.25a1.75 1.75 0 0 1-1.75-1.75V6.75a2 2 0 0 1 2-2h6.75c.966 0 1.75.784 1.75 1.75",stroke:"#4F7CD1",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntimeExports.jsx("path",{d:"M8.75 10.75a2 2 0 0 1 2-2h6.5a2 2 0 0 1 2 2v6.5a2 2 0 0 1-2 2h-6.5a2 2 0 0 1-2-2v-6.5Z",stroke:"#4F7CD1",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]}));function formatQRCodeImage(Mn){return __awaiter$3(this,void 0,void 0,function*(){return yield browser.toString(Mn,{margin:0,type:"svg"})})}const ScanQRCode=({wallet:Mn,uri:Fn,onCloseModal:io,handleOpenDefaultModal:fo})=>{const[$o,mo]=React.useState(""),[Ao,jo]=React.useState(""),Lo=()=>{if(!Fn)return;copy$1(Fn)?(mo(translate("modal.qr.copiedToClipboard")),setTimeout(()=>mo(""),1200)):(mo(translate("modal.qr.failedToCopy")),setTimeout(()=>mo(""),1200))};return React.useEffect(()=>{__awaiter$3(void 0,void 0,void 0,function*(){Fn&&jo(yield formatQRCodeImage(Fn))})},[Fn]),jsxRuntimeExports.jsxs("section",Object.assign({className:"scan-qr-code"},{children:[jsxRuntimeExports.jsx(ModalHeader,{title:translate("modal.qr.scanWithYourMobile"),onCloseModal:io}),jsxRuntimeExports.jsxs("section",Object.assign({className:"qr-code"},{children:[jsxRuntimeExports.jsx("div",{dangerouslySetInnerHTML:{__html:Ao}}),$o?jsxRuntimeExports.jsx("div",Object.assign({className:"notification"},{children:$o})):jsxRuntimeExports.jsxs("div",Object.assign({className:"copy-btn",onClick:Lo},{children:[jsxRuntimeExports.jsx(CopyIcon,{}),translate("modal.qr.copyToClipboard")]}))]})),jsxRuntimeExports.jsxs("footer",Object.assign({className:"footer"},{children:[jsxRuntimeExports.jsxs("p",{children:[translate("modal.qr.preferTheOfficial")," ",Mn.metadata.name,"?"]}),jsxRuntimeExports.jsx("button",Object.assign({className:"btn",onClick:fo},{children:translate("modal.qr.open")}))]}))]}))},getThemeClass=Mn=>{switch(Mn){case"dark":return"dark-theme";case"light":return"light-theme";default:return""}},Modal=({selector:Mn,options:Fn,visible:io,hide:fo,emitter:$o})=>{var mo,Ao,jo;const[Lo,Ho]=reactExports.useState({name:"WalletHome"}),[zo,Go]=reactExports.useState(null),[Vo,Yo]=reactExports.useState(),[Xo,is]=reactExports.useState(),{rememberRecentWallets:yl}=Mn.store.getState(),[us,hs]=reactExports.useState(yl==="enabled"),_l=()=>{hs(Ol=>!Ol),Mn.setRememberRecentWallets()};reactExports.useEffect(()=>{Ho({name:"WalletHome"}),allowOnlyLanguage(Mn.options.languageCode);const{selectedWalletId:Ol,modules:Tl}=Mn.store.getState();if(Ol){const Cl=Tl.find(Nl=>Nl.id===Ol);Yo(Cl),Ho({name:"WalletConnected",params:{module:Cl}})}is("")},[io]),reactExports.useEffect(()=>{const Ol=Mn.on("networkChanged",({networkId:Tl})=>{if(Tl===Mn.options.network.networkId)return xl({});Ho({name:"WalletNetworkChanged"})});return()=>Ol.remove()},[]);const xl=reactExports.useCallback(({hideReason:Ol})=>{Go(null),Ho({name:"WalletHome"}),Ol==="user-triggered"&&$o.emit("onHide",{hideReason:Ol}),Ol==="wallet-navigation"&&$o.emit("onHide",{hideReason:Ol}),fo()},[fo,$o]);reactExports.useEffect(()=>{const Ol=Tl=>{Tl.key==="Escape"&&xl({hideReason:"user-triggered"})};return window.addEventListener("keydown",Ol),()=>window.removeEventListener("keydown",Ol)},[xl]);const Il=(Ol,Tl)=>__awaiter$3(void 0,void 0,void 0,function*(){Yo(Ol);const{selectedWalletId:Cl}=Mn.store.getState();if(Cl===Ol.id){Ho({name:"WalletConnected",params:{module:Ol}});return}try{const{deprecated:Nl,available:Wl}=Ol.metadata;if(Ol.type==="injected"&&!Wl){Ho({name:"WalletNotInstalled",params:{module:Ol}});return}const Dl=yield Ol.wallet();if(Nl){Go(`${Ol.metadata.name} is deprecated. Please select another wallet.`),Ho({name:"AlertMessage",params:{module:Ol}});return}if(Dl.type==="hardware"){Ho({name:"DerivationPath",params:{walletId:Dl.id||"ledger"}});return}if(Ho({name:"WalletConnecting",params:{wallet:Dl}}),Dl.type==="bridge"){const Rl=Mn.on("uriChanged",({uri:Qo})=>{is(Qo),Ho({name:"ScanQRCode",params:{uri:Qo,wallet:Dl}})});yield Dl.signIn({contractId:Fn.contractId,methodNames:Fn.methodNames,qrCodeModal:Tl}),Rl.remove(),xl({hideReason:"wallet-navigation"});return}if(Dl.type==="browser"){yield Dl.signIn({contractId:Fn.contractId,methodNames:Fn.methodNames,successUrl:Dl.metadata.successUrl,failureUrl:Dl.metadata.failureUrl}),xl({hideReason:"wallet-navigation"});return}yield Dl.signIn({contractId:Fn.contractId,methodNames:Fn.methodNames}),xl({hideReason:"wallet-navigation"})}catch(Nl){const{name:Wl}=Ol.metadata,Dl=Nl&&typeof Nl=="object"&&"message"in Nl?Nl.message:"Something went wrong";Go(`Failed to sign in with ${Wl}: ${Dl}`),Ho({name:"AlertMessage",params:{module:Ol}})}});return io?jsxRuntimeExports.jsxs("div",Object.assign({className:`nws-modal-wrapper ${getThemeClass(Fn==null?void 0:Fn.theme)} ${io?"open":""}`},{children:[jsxRuntimeExports.jsx("div",{className:"nws-modal-overlay",onClick:()=>{xl({hideReason:"user-triggered"})}}),jsxRuntimeExports.jsxs("div",Object.assign({className:"nws-modal"},{children:[jsxRuntimeExports.jsxs("div",Object.assign({className:"modal-left"},{children:[jsxRuntimeExports.jsxs("div",Object.assign({className:"modal-left-title"},{children:[jsxRuntimeExports.jsx("h2",{children:translate("modal.wallet.connectYourWallet")}),jsxRuntimeExports.jsx("span",Object.assign({className:"nws-remember-wallet"},{children:translate("modal.wallet.rememberWallet")})),jsxRuntimeExports.jsxs("label",Object.assign({className:"nws-switch"},{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:us,onChange:_l}),jsxRuntimeExports.jsx("span",{className:"nws-slider round"})]}))]})),jsxRuntimeExports.jsx(WalletOptions,{handleWalletClick:Ol=>{Il(Ol,!1)},selector:Mn})]})),jsxRuntimeExports.jsx("div",Object.assign({className:"modal-right"},{children:jsxRuntimeExports.jsxs("div",Object.assign({className:"nws-modal-body"},{children:[Lo.name==="AlertMessage"&&zo&&jsxRuntimeExports.jsx(AlertMessage,{message:zo,module:(mo=Lo.params)===null||mo===void 0?void 0:mo.module,onBack:Ol=>{Ol&&Il(Vo,!1),Go(null),Ho({name:"WalletHome"})},onCloseModal:()=>xl({hideReason:"user-triggered"})}),Lo.name==="DerivationPath"&&jsxRuntimeExports.jsx(DerivationPath,{selector:Mn,options:Fn,onConnected:()=>{xl({hideReason:"wallet-navigation"})},params:Lo.params,onBack:()=>Ho({name:"WalletHome"}),onError:(Ol,Tl)=>{const{modules:Cl}=Mn.store.getState(),Nl=Cl.find(Wl=>Wl.id===Tl.id);Go(Ol),Ho({name:"AlertMessage",params:{module:Nl}})},onCloseModal:()=>xl({hideReason:"user-triggered"})}),Lo.name==="WalletNetworkChanged"&&jsxRuntimeExports.jsx(WalletNetworkChanged,{selector:Mn,onBack:()=>Ho({name:"WalletHome"}),onCloseModal:()=>xl({hideReason:"user-triggered"})}),Lo.name==="WalletNotInstalled"&&jsxRuntimeExports.jsx(WalletNotInstalled,{module:(Ao=Lo.params)===null||Ao===void 0?void 0:Ao.module,onBack:()=>{Ho({name:"WalletHome"})},onCloseModal:()=>xl({hideReason:"user-triggered"})}),Lo.name==="WalletConnecting"&&jsxRuntimeExports.jsx(WalletConnecting,{wallet:(jo=Lo.params)===null||jo===void 0?void 0:jo.wallet,onBack:()=>{Ho({name:"WalletHome"})},onCloseModal:()=>xl({hideReason:"user-triggered"})}),Lo.name==="WalletHome"&&jsxRuntimeExports.jsx(WalletHome,{selector:Mn,onCloseModal:()=>xl({hideReason:"user-triggered"})}),Lo.name==="WalletConnected"&&jsxRuntimeExports.jsx(WalletConnected,{module:Vo,onCloseModal:()=>xl({hideReason:"user-triggered"})}),Lo.name==="ScanQRCode"&&jsxRuntimeExports.jsx(ScanQRCode,{handleOpenDefaultModal:()=>{Il(Vo,!0)},onCloseModal:()=>xl({hideReason:"user-triggered"}),uri:Xo,wallet:Vo})]}))}))]}))]})):null},MODAL_ELEMENT_ID="near-wallet-selector-modal";let modalInstance=null,root=null;const setupModal=(Mn,Fn)=>{if(!root){const $o=document.body,mo=document.createElement("div");mo.id=MODAL_ELEMENT_ID,$o.appendChild(mo),root=createRoot(mo)}const io=new EventEmitter;Mn.store.getState().modules.forEach($o=>__awaiter$3(void 0,void 0,void 0,function*(){if("topLevelInjected"in $o.metadata){if(!$o.metadata.topLevelInjected)return;const mo=yield $o.wallet();if(mo.type!=="injected")return;yield mo.signIn({contractId:Fn.contractId,methodNames:Fn.methodNames})}}));const fo=($o=!1)=>{root.render(jsxRuntimeExports.jsx(Modal,{selector:Mn,options:Fn,visible:$o,hide:()=>fo(!1),emitter:io}))};return modalInstance||(modalInstance={show:()=>{fo(!0)},hide:()=>{fo(!1)},on:($o,mo)=>io.on($o,mo),off:($o,mo)=>{io.off($o,mo)}}),modalInstance};var commonjsGlobal$2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global$o<"u"?global$o:typeof self<"u"?self:{},fails$c$1=function(Mn){try{return!!Mn()}catch{return!0}},toString$1={}.toString,classofRaw$1$1=function(Mn){return toString$1.call(Mn).slice(8,-1)},fails$b$1=fails$c$1,classof$7=classofRaw$1$1,split$1="".split,indexedObject$1=fails$b$1(function(){return!Object("z").propertyIsEnumerable(0)})?function(Mn){return classof$7(Mn)=="String"?split$1.call(Mn,""):Object(Mn)}:Object,requireObjectCoercible$4=function(Mn){if(Mn==null)throw TypeError("Can't call method on "+Mn);return Mn},IndexedObject$1$1=indexedObject$1,requireObjectCoercible$3=requireObjectCoercible$4,toIndexedObject$4$1=function(Mn){return IndexedObject$1$1(requireObjectCoercible$3(Mn))},check$2=function(Mn){return Mn&&Mn.Math==Math&&Mn},global$j=check$2(typeof globalThis=="object"&&globalThis)||check$2(typeof window=="object"&&window)||check$2(typeof self=="object"&&self)||check$2(typeof commonjsGlobal$2=="object"&&commonjsGlobal$2)||Function("return this")(),shared$2$1={exports:{}},isPure=!1,fails$a$1=fails$c$1,descriptors$2=!fails$a$1(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),objectDefineProperty$2={},isObject$8$1=function(Mn){return typeof Mn=="object"?Mn!==null:typeof Mn=="function"},global$i=global$j,isObject$7$1=isObject$8$1,document$2$1=global$i.document,EXISTS$2=isObject$7$1(document$2$1)&&isObject$7$1(document$2$1.createElement),documentCreateElement$1$1=function(Mn){return EXISTS$2?document$2$1.createElement(Mn):{}},DESCRIPTORS$7$1=descriptors$2,fails$9$1=fails$c$1,createElement$1$1=documentCreateElement$1$1,ie8DomDefine$2=!DESCRIPTORS$7$1&&!fails$9$1(function(){return Object.defineProperty(createElement$1$1("div"),"a",{get:function(){return 7}}).a!=7}),isObject$6$1=isObject$8$1,anObject$e=function(Mn){if(!isObject$6$1(Mn))throw TypeError(String(Mn)+" is not an object");return Mn},isObject$5$1=isObject$8$1,toPrimitive$3$1=function(Mn,Fn){if(!isObject$5$1(Mn))return Mn;var io,fo;if(Fn&&typeof(io=Mn.toString)=="function"&&!isObject$5$1(fo=io.call(Mn))||typeof(io=Mn.valueOf)=="function"&&!isObject$5$1(fo=io.call(Mn))||!Fn&&typeof(io=Mn.toString)=="function"&&!isObject$5$1(fo=io.call(Mn)))return fo;throw TypeError("Can't convert object to primitive value")},DESCRIPTORS$6$1=descriptors$2,IE8_DOM_DEFINE$1$1=ie8DomDefine$2,anObject$d=anObject$e,toPrimitive$2$1=toPrimitive$3$1,nativeDefineProperty$3=Object.defineProperty;objectDefineProperty$2.f=DESCRIPTORS$6$1?nativeDefineProperty$3:function Mn(Fn,io,fo){if(anObject$d(Fn),io=toPrimitive$2$1(io,!0),anObject$d(fo),IE8_DOM_DEFINE$1$1)try{return nativeDefineProperty$3(Fn,io,fo)}catch{}if("get"in fo||"set"in fo)throw TypeError("Accessors not supported");return"value"in fo&&(Fn[io]=fo.value),Fn};var createPropertyDescriptor$5$1=function(Mn,Fn){return{enumerable:!(Mn&1),configurable:!(Mn&2),writable:!(Mn&4),value:Fn}},DESCRIPTORS$5$1=descriptors$2,definePropertyModule$5$1=objectDefineProperty$2,createPropertyDescriptor$4$1=createPropertyDescriptor$5$1,createNonEnumerableProperty$8$1=DESCRIPTORS$5$1?function(Mn,Fn,io){return definePropertyModule$5$1.f(Mn,Fn,createPropertyDescriptor$4$1(1,io))}:function(Mn,Fn,io){return Mn[Fn]=io,Mn},global$h=global$j,createNonEnumerableProperty$7$1=createNonEnumerableProperty$8$1,setGlobal$3$1=function(Mn,Fn){try{createNonEnumerableProperty$7$1(global$h,Mn,Fn)}catch{global$h[Mn]=Fn}return Fn},global$g$1=global$j,setGlobal$2$2=setGlobal$3$1,SHARED$2="__core-js_shared__",store$3$2=global$g$1[SHARED$2]||setGlobal$2$2(SHARED$2,{}),sharedStore$2=store$3$2,store$2$2=sharedStore$2;(shared$2$1.exports=function(Mn,Fn){return store$2$2[Mn]||(store$2$2[Mn]=Fn!==void 0?Fn:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var hasOwnProperty$2={}.hasOwnProperty,has$a$1=function(Mn,Fn){return hasOwnProperty$2.call(Mn,Fn)},id$4=0,postfix$2=Math.random(),uid$2$1=function(Mn){return"Symbol("+String(Mn===void 0?"":Mn)+")_"+(++id$4+postfix$2).toString(36)},fails$8$1=fails$c$1,nativeSymbol$1=!!Object.getOwnPropertySymbols&&!fails$8$1(function(){return!String(Symbol())}),NATIVE_SYMBOL$1$1=nativeSymbol$1,useSymbolAsUid$1=NATIVE_SYMBOL$1$1&&!Symbol.sham&&typeof Symbol.iterator=="symbol",global$f$1=global$j,shared$1$2=shared$2$1.exports,has$9$1=has$a$1,uid$1$2=uid$2$1,NATIVE_SYMBOL$2=nativeSymbol$1,USE_SYMBOL_AS_UID$1=useSymbolAsUid$1,WellKnownSymbolsStore$1=shared$1$2("wks"),Symbol$1$1=global$f$1.Symbol,createWellKnownSymbol$1=USE_SYMBOL_AS_UID$1?Symbol$1$1:Symbol$1$1&&Symbol$1$1.withoutSetter||uid$1$2,wellKnownSymbol$g=function(Mn){return has$9$1(WellKnownSymbolsStore$1,Mn)||(NATIVE_SYMBOL$2&&has$9$1(Symbol$1$1,Mn)?WellKnownSymbolsStore$1[Mn]=Symbol$1$1[Mn]:WellKnownSymbolsStore$1[Mn]=createWellKnownSymbol$1("Symbol."+Mn)),WellKnownSymbolsStore$1[Mn]},ceil$1=Math.ceil,floor$3=Math.floor,toInteger$4$1=function(Mn){return isNaN(Mn=+Mn)?0:(Mn>0?floor$3:ceil$1)(Mn)},toInteger$3$1=toInteger$4$1,min$2=Math.min,toLength$4$1=function(Mn){return Mn>0?min$2(toInteger$3$1(Mn),9007199254740991):0},toInteger$2$1=toInteger$4$1,max$1=Math.max,min$1$1=Math.min,toAbsoluteIndex$1$1=function(Mn,Fn){var io=toInteger$2$1(Mn);return io<0?max$1(io+Fn,0):min$1$1(io,Fn)},toIndexedObject$3$1=toIndexedObject$4$1,toLength$3$1=toLength$4$1,toAbsoluteIndex$4=toAbsoluteIndex$1$1,createMethod$1$1=function(Mn){return function(Fn,io,fo){var $o=toIndexedObject$3$1(Fn),mo=toLength$3$1($o.length),Ao=toAbsoluteIndex$4(fo,mo),jo;if(Mn&&io!=io){for(;mo>Ao;)if(jo=$o[Ao++],jo!=jo)return!0}else for(;mo>Ao;Ao++)if((Mn||Ao in $o)&&$o[Ao]===io)return Mn||Ao||0;return!Mn&&-1}},arrayIncludes$1={includes:createMethod$1$1(!0),indexOf:createMethod$1$1(!1)},hiddenKeys$4$1={},has$8$1=has$a$1,toIndexedObject$2$1=toIndexedObject$4$1,indexOf$1=arrayIncludes$1.indexOf,hiddenKeys$3$1=hiddenKeys$4$1,objectKeysInternal$1=function(Mn,Fn){var io=toIndexedObject$2$1(Mn),fo=0,$o=[],mo;for(mo in io)!has$8$1(hiddenKeys$3$1,mo)&&has$8$1(io,mo)&&$o.push(mo);for(;Fn.length>fo;)has$8$1(io,mo=Fn[fo++])&&(~indexOf$1($o,mo)||$o.push(mo));return $o},enumBugKeys$3$1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$1=objectKeysInternal$1,enumBugKeys$2$1=enumBugKeys$3$1,objectKeys$2$1=Object.keys||function Mn(Fn){return internalObjectKeys$1$1(Fn,enumBugKeys$2$1)},DESCRIPTORS$4$1=descriptors$2,definePropertyModule$4$1=objectDefineProperty$2,anObject$c=anObject$e,objectKeys$1$1=objectKeys$2$1,objectDefineProperties$1=DESCRIPTORS$4$1?Object.defineProperties:function Mn(Fn,io){anObject$c(Fn);for(var fo=objectKeys$1$1(io),$o=fo.length,mo=0,Ao;$o>mo;)definePropertyModule$4$1.f(Fn,Ao=fo[mo++],io[Ao]);return Fn},global$e$1=global$j,path$1$1=global$e$1,path$2=path$1$1,global$d$1=global$j,aFunction$5=function(Mn){return typeof Mn=="function"?Mn:void 0},getBuiltIn$6=function(Mn,Fn){return arguments.length<2?aFunction$5(path$2[Mn])||aFunction$5(global$d$1[Mn]):path$2[Mn]&&path$2[Mn][Fn]||global$d$1[Mn]&&global$d$1[Mn][Fn]},getBuiltIn$5=getBuiltIn$6,html$2=getBuiltIn$5("document","documentElement"),shared$4=shared$2$1.exports,uid$5=uid$2$1,keys$3=shared$4("keys"),sharedKey$3$1=function(Mn){return keys$3[Mn]||(keys$3[Mn]=uid$5(Mn))},anObject$b=anObject$e,defineProperties$1=objectDefineProperties$1,enumBugKeys$1$1=enumBugKeys$3$1,hiddenKeys$2$1=hiddenKeys$4$1,html$1$1=html$2,documentCreateElement$3=documentCreateElement$1$1,sharedKey$2$1=sharedKey$3$1,GT$1=">",LT$1="<",PROTOTYPE$2="prototype",SCRIPT$1="script",IE_PROTO$1$1=sharedKey$2$1("IE_PROTO"),EmptyConstructor$1=function(){},scriptTag$1=function(Mn){return LT$1+SCRIPT$1+GT$1+Mn+LT$1+"/"+SCRIPT$1+GT$1},NullProtoObjectViaActiveX$1=function(Mn){Mn.write(scriptTag$1("")),Mn.close();var Fn=Mn.parentWindow.Object;return Mn=null,Fn},NullProtoObjectViaIFrame$1=function(){var Mn=documentCreateElement$3("iframe"),Fn="java"+SCRIPT$1+":",io;return Mn.style.display="none",html$1$1.appendChild(Mn),Mn.src=String(Fn),io=Mn.contentWindow.document,io.open(),io.write(scriptTag$1("document.F=Object")),io.close(),io.F},activeXDocument$1,NullProtoObject$1=function(){try{activeXDocument$1=document.domain&&new ActiveXObject("htmlfile")}catch{}NullProtoObject$1=activeXDocument$1?NullProtoObjectViaActiveX$1(activeXDocument$1):NullProtoObjectViaIFrame$1();for(var Mn=enumBugKeys$1$1.length;Mn--;)delete NullProtoObject$1[PROTOTYPE$2][enumBugKeys$1$1[Mn]];return NullProtoObject$1()};hiddenKeys$2$1[IE_PROTO$1$1]=!0;var objectCreate$1=Object.create||function Mn(Fn,io){var fo;return Fn!==null?(EmptyConstructor$1[PROTOTYPE$2]=anObject$b(Fn),fo=new EmptyConstructor$1,EmptyConstructor$1[PROTOTYPE$2]=null,fo[IE_PROTO$1$1]=Fn):fo=NullProtoObject$1(),io===void 0?fo:defineProperties$1(fo,io)},wellKnownSymbol$f=wellKnownSymbol$g,create$2$1=objectCreate$1,definePropertyModule$3$1=objectDefineProperty$2,UNSCOPABLES$1=wellKnownSymbol$f("unscopables"),ArrayPrototype$1$1=Array.prototype;ArrayPrototype$1$1[UNSCOPABLES$1]==null&&definePropertyModule$3$1.f(ArrayPrototype$1$1,UNSCOPABLES$1,{configurable:!0,value:create$2$1(null)});var addToUnscopables$1$1=function(Mn){ArrayPrototype$1$1[UNSCOPABLES$1][Mn]=!0},iterators$1={},store$1$2=sharedStore$2,functionToString$2=Function.toString;typeof store$1$2.inspectSource!="function"&&(store$1$2.inspectSource=function(Mn){return functionToString$2.call(Mn)});var inspectSource$3$1=store$1$2.inspectSource,global$c$1=global$j,inspectSource$2$2=inspectSource$3$1,WeakMap$1$2=global$c$1.WeakMap,nativeWeakMap$2=typeof WeakMap$1$2=="function"&&/native code/.test(inspectSource$2$2(WeakMap$1$2)),NATIVE_WEAK_MAP$2=nativeWeakMap$2,global$b$1=global$j,isObject$4$2=isObject$8$1,createNonEnumerableProperty$6$1=createNonEnumerableProperty$8$1,objectHas$2=has$a$1,sharedKey$1$2=sharedKey$3$1,hiddenKeys$1$1=hiddenKeys$4$1,WeakMap$4=global$b$1.WeakMap,set$1$1,get$3,has$7$1,enforce$2=function(Mn){return has$7$1(Mn)?get$3(Mn):set$1$1(Mn,{})},getterFor$2=function(Mn){return function(Fn){var io;if(!isObject$4$2(Fn)||(io=get$3(Fn)).type!==Mn)throw TypeError("Incompatible receiver, "+Mn+" required");return io}};if(NATIVE_WEAK_MAP$2){var store$5=new WeakMap$4,wmget$2=store$5.get,wmhas$2=store$5.has,wmset$2=store$5.set;set$1$1=function(Mn,Fn){return wmset$2.call(store$5,Mn,Fn),Fn},get$3=function(Mn){return wmget$2.call(store$5,Mn)||{}},has$7$1=function(Mn){return wmhas$2.call(store$5,Mn)}}else{var STATE$2=sharedKey$1$2("state");hiddenKeys$1$1[STATE$2]=!0,set$1$1=function(Mn,Fn){return createNonEnumerableProperty$6$1(Mn,STATE$2,Fn),Fn},get$3=function(Mn){return objectHas$2(Mn,STATE$2)?Mn[STATE$2]:{}},has$7$1=function(Mn){return objectHas$2(Mn,STATE$2)}}var internalState$2={set:set$1$1,get:get$3,has:has$7$1,enforce:enforce$2,getterFor:getterFor$2},objectGetOwnPropertyDescriptor$1={},objectPropertyIsEnumerable$1={},nativePropertyIsEnumerable$1={}.propertyIsEnumerable,getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,NASHORN_BUG$1=getOwnPropertyDescriptor$2&&!nativePropertyIsEnumerable$1.call({1:2},1);objectPropertyIsEnumerable$1.f=NASHORN_BUG$1?function Mn(Fn){var io=getOwnPropertyDescriptor$2(this,Fn);return!!io&&io.enumerable}:nativePropertyIsEnumerable$1;var DESCRIPTORS$3$1=descriptors$2,propertyIsEnumerableModule$1$1=objectPropertyIsEnumerable$1,createPropertyDescriptor$3$1=createPropertyDescriptor$5$1,toIndexedObject$1$1=toIndexedObject$4$1,toPrimitive$1$2=toPrimitive$3$1,has$6$1=has$a$1,IE8_DOM_DEFINE$3=ie8DomDefine$2,nativeGetOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$1.f=DESCRIPTORS$3$1?nativeGetOwnPropertyDescriptor$2:function Mn(Fn,io){if(Fn=toIndexedObject$1$1(Fn),io=toPrimitive$1$2(io,!0),IE8_DOM_DEFINE$3)try{return nativeGetOwnPropertyDescriptor$2(Fn,io)}catch{}if(has$6$1(Fn,io))return createPropertyDescriptor$3$1(!propertyIsEnumerableModule$1$1.f.call(Fn,io),Fn[io])};var redefine$8={exports:{}},global$a$1=global$j,createNonEnumerableProperty$5$1=createNonEnumerableProperty$8$1,has$5$1=has$a$1,setGlobal$1$2=setGlobal$3$1,inspectSource$1$2=inspectSource$3$1,InternalStateModule$5=internalState$2,getInternalState$3$1=InternalStateModule$5.get,enforceInternalState$2=InternalStateModule$5.enforce,TEMPLATE$2=String(String).split("String");(redefine$8.exports=function(Mn,Fn,io,fo){var $o=fo?!!fo.unsafe:!1,mo=fo?!!fo.enumerable:!1,Ao=fo?!!fo.noTargetGet:!1;if(typeof io=="function"&&(typeof Fn=="string"&&!has$5$1(io,"name")&&createNonEnumerableProperty$5$1(io,"name",Fn),enforceInternalState$2(io).source=TEMPLATE$2.join(typeof Fn=="string"?Fn:"")),Mn===global$a$1){mo?Mn[Fn]=io:setGlobal$1$2(Fn,io);return}else $o?!Ao&&Mn[Fn]&&(mo=!0):delete Mn[Fn];mo?Mn[Fn]=io:createNonEnumerableProperty$5$1(Mn,Fn,io)})(Function.prototype,"toString",function Mn(){return typeof this=="function"&&getInternalState$3$1(this).source||inspectSource$1$2(this)});var objectGetOwnPropertyNames$1={},internalObjectKeys$2=objectKeysInternal$1,enumBugKeys$4=enumBugKeys$3$1,hiddenKeys$5=enumBugKeys$4.concat("length","prototype");objectGetOwnPropertyNames$1.f=Object.getOwnPropertyNames||function Mn(Fn){return internalObjectKeys$2(Fn,hiddenKeys$5)};var objectGetOwnPropertySymbols$1={};objectGetOwnPropertySymbols$1.f=Object.getOwnPropertySymbols;var getBuiltIn$4=getBuiltIn$6,getOwnPropertyNamesModule$1=objectGetOwnPropertyNames$1,getOwnPropertySymbolsModule$1$1=objectGetOwnPropertySymbols$1,anObject$a$1=anObject$e,ownKeys$1$1=getBuiltIn$4("Reflect","ownKeys")||function Mn(Fn){var io=getOwnPropertyNamesModule$1.f(anObject$a$1(Fn)),fo=getOwnPropertySymbolsModule$1$1.f;return fo?io.concat(fo(Fn)):io},has$4$1=has$a$1,ownKeys$2=ownKeys$1$1,getOwnPropertyDescriptorModule$2=objectGetOwnPropertyDescriptor$1,definePropertyModule$2$1=objectDefineProperty$2,copyConstructorProperties$1$1=function(Mn,Fn){for(var io=ownKeys$2(Fn),fo=definePropertyModule$2$1.f,$o=getOwnPropertyDescriptorModule$2.f,mo=0;mo<io.length;mo++){var Ao=io[mo];has$4$1(Mn,Ao)||fo(Mn,Ao,$o(Fn,Ao))}},fails$7$1=fails$c$1,replacement$1=/#|\.prototype\./,isForced$2=function(Mn,Fn){var io=data$1[normalize$1(Mn)];return io==POLYFILL$1?!0:io==NATIVE$1?!1:typeof Fn=="function"?fails$7$1(Fn):!!Fn},normalize$1=isForced$2.normalize=function(Mn){return String(Mn).replace(replacement$1,".").toLowerCase()},data$1=isForced$2.data={},NATIVE$1=isForced$2.NATIVE="N",POLYFILL$1=isForced$2.POLYFILL="P",isForced_1$1=isForced$2,global$9$1=global$j,getOwnPropertyDescriptor$1$1=objectGetOwnPropertyDescriptor$1.f,createNonEnumerableProperty$4$1=createNonEnumerableProperty$8$1,redefine$7=redefine$8.exports,setGlobal$5=setGlobal$3$1,copyConstructorProperties$2=copyConstructorProperties$1$1,isForced$1$1=isForced_1$1,_export$1=function(Mn,Fn){var io=Mn.target,fo=Mn.global,$o=Mn.stat,mo,Ao,jo,Lo,Ho,zo;if(fo?Ao=global$9$1:$o?Ao=global$9$1[io]||setGlobal$5(io,{}):Ao=(global$9$1[io]||{}).prototype,Ao)for(jo in Fn){if(Ho=Fn[jo],Mn.noTargetGet?(zo=getOwnPropertyDescriptor$1$1(Ao,jo),Lo=zo&&zo.value):Lo=Ao[jo],mo=isForced$1$1(fo?jo:io+($o?".":"#")+jo,Mn.forced),!mo&&Lo!==void 0){if(typeof Ho==typeof Lo)continue;copyConstructorProperties$2(Ho,Lo)}(Mn.sham||Lo&&Lo.sham)&&createNonEnumerableProperty$4$1(Ho,"sham",!0),redefine$7(Ao,jo,Ho,Mn)}},requireObjectCoercible$2$1=requireObjectCoercible$4,toObject$4$1=function(Mn){return Object(requireObjectCoercible$2$1(Mn))},fails$6$1=fails$c$1,correctPrototypeGetter$1=!fails$6$1(function(){function Mn(){}return Mn.prototype.constructor=null,Object.getPrototypeOf(new Mn)!==Mn.prototype}),has$3$1=has$a$1,toObject$3$1=toObject$4$1,sharedKey$5=sharedKey$3$1,CORRECT_PROTOTYPE_GETTER$1=correctPrototypeGetter$1,IE_PROTO$2=sharedKey$5("IE_PROTO"),ObjectPrototype$3=Object.prototype,objectGetPrototypeOf$1=CORRECT_PROTOTYPE_GETTER$1?Object.getPrototypeOf:function(Mn){return Mn=toObject$3$1(Mn),has$3$1(Mn,IE_PROTO$2)?Mn[IE_PROTO$2]:typeof Mn.constructor=="function"&&Mn instanceof Mn.constructor?Mn.constructor.prototype:Mn instanceof Object?ObjectPrototype$3:null},getPrototypeOf$1$1=objectGetPrototypeOf$1,createNonEnumerableProperty$3$2=createNonEnumerableProperty$8$1,has$2$2=has$a$1,wellKnownSymbol$e=wellKnownSymbol$g,ITERATOR$7=wellKnownSymbol$e("iterator"),BUGGY_SAFARI_ITERATORS$1$1=!1,returnThis$2$1=function(){return this},IteratorPrototype$2$1,PrototypeOfArrayIteratorPrototype$1,arrayIterator$1;[].keys&&(arrayIterator$1=[].keys(),"next"in arrayIterator$1?(PrototypeOfArrayIteratorPrototype$1=getPrototypeOf$1$1(getPrototypeOf$1$1(arrayIterator$1)),PrototypeOfArrayIteratorPrototype$1!==Object.prototype&&(IteratorPrototype$2$1=PrototypeOfArrayIteratorPrototype$1)):BUGGY_SAFARI_ITERATORS$1$1=!0);IteratorPrototype$2$1==null&&(IteratorPrototype$2$1={});has$2$2(IteratorPrototype$2$1,ITERATOR$7)||createNonEnumerableProperty$3$2(IteratorPrototype$2$1,ITERATOR$7,returnThis$2$1);var iteratorsCore$1={IteratorPrototype:IteratorPrototype$2$1,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1$1},defineProperty$1$1=objectDefineProperty$2.f,has$1$2=has$a$1,wellKnownSymbol$d$1=wellKnownSymbol$g,TO_STRING_TAG$3$1=wellKnownSymbol$d$1("toStringTag"),setToStringTag$5=function(Mn,Fn,io){Mn&&!has$1$2(Mn=io?Mn:Mn.prototype,TO_STRING_TAG$3$1)&&defineProperty$1$1(Mn,TO_STRING_TAG$3$1,{configurable:!0,value:Fn})},IteratorPrototype$1$1=iteratorsCore$1.IteratorPrototype,create$1$1=objectCreate$1,createPropertyDescriptor$2$1=createPropertyDescriptor$5$1,setToStringTag$4=setToStringTag$5,Iterators$4$1=iterators$1,returnThis$1$1=function(){return this},createIteratorConstructor$2=function(Mn,Fn,io){var fo=Fn+" Iterator";return Mn.prototype=create$1$1(IteratorPrototype$1$1,{next:createPropertyDescriptor$2$1(1,io)}),setToStringTag$4(Mn,fo,!1),Iterators$4$1[fo]=returnThis$1$1,Mn},isObject$3$2=isObject$8$1,aPossiblePrototype$1$1=function(Mn){if(!isObject$3$2(Mn)&&Mn!==null)throw TypeError("Can't set "+String(Mn)+" as a prototype");return Mn},anObject$9$1=anObject$e,aPossiblePrototype$2=aPossiblePrototype$1$1,objectSetPrototypeOf$1=Object.setPrototypeOf||("__proto__"in{}?function(){var Mn=!1,Fn={},io;try{io=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,io.call(Fn,[]),Mn=Fn instanceof Array}catch{}return function($o,mo){return anObject$9$1($o),aPossiblePrototype$2(mo),Mn?io.call($o,mo):$o.__proto__=mo,$o}}():void 0),$$6=_export$1,createIteratorConstructor$1$1=createIteratorConstructor$2,getPrototypeOf$4=objectGetPrototypeOf$1,setPrototypeOf$5=objectSetPrototypeOf$1,setToStringTag$3$1=setToStringTag$5,createNonEnumerableProperty$2$2=createNonEnumerableProperty$8$1,redefine$6$1=redefine$8.exports,wellKnownSymbol$c$1=wellKnownSymbol$g,Iterators$3$1=iterators$1,IteratorsCore$1=iteratorsCore$1,IteratorPrototype$3=IteratorsCore$1.IteratorPrototype,BUGGY_SAFARI_ITERATORS$2=IteratorsCore$1.BUGGY_SAFARI_ITERATORS,ITERATOR$6=wellKnownSymbol$c$1("iterator"),KEYS$1="keys",VALUES$1="values",ENTRIES$1="entries",returnThis$3=function(){return this},defineIterator$2=function(Mn,Fn,io,fo,$o,mo,Ao){createIteratorConstructor$1$1(io,Fn,fo);var jo=function(us){if(us===$o&&Vo)return Vo;if(!BUGGY_SAFARI_ITERATORS$2&&us in zo)return zo[us];switch(us){case KEYS$1:return function(){return new io(this,us)};case VALUES$1:return function(){return new io(this,us)};case ENTRIES$1:return function(){return new io(this,us)}}return function(){return new io(this)}},Lo=Fn+" Iterator",Ho=!1,zo=Mn.prototype,Go=zo[ITERATOR$6]||zo["@@iterator"]||$o&&zo[$o],Vo=!BUGGY_SAFARI_ITERATORS$2&&Go||jo($o),Yo=Fn=="Array"&&zo.entries||Go,Xo,is,yl;if(Yo&&(Xo=getPrototypeOf$4(Yo.call(new Mn)),IteratorPrototype$3!==Object.prototype&&Xo.next&&(getPrototypeOf$4(Xo)!==IteratorPrototype$3&&(setPrototypeOf$5?setPrototypeOf$5(Xo,IteratorPrototype$3):typeof Xo[ITERATOR$6]!="function"&&createNonEnumerableProperty$2$2(Xo,ITERATOR$6,returnThis$3)),setToStringTag$3$1(Xo,Lo,!0))),$o==VALUES$1&&Go&&Go.name!==VALUES$1&&(Ho=!0,Vo=function(){return Go.call(this)}),zo[ITERATOR$6]!==Vo&&createNonEnumerableProperty$2$2(zo,ITERATOR$6,Vo),Iterators$3$1[Fn]=Vo,$o)if(is={values:jo(VALUES$1),keys:mo?Vo:jo(KEYS$1),entries:jo(ENTRIES$1)},Ao)for(yl in is)(BUGGY_SAFARI_ITERATORS$2||Ho||!(yl in zo))&&redefine$6$1(zo,yl,is[yl]);else $$6({target:Fn,proto:!0,forced:BUGGY_SAFARI_ITERATORS$2||Ho},is);return is},toIndexedObject$5=toIndexedObject$4$1,addToUnscopables$2=addToUnscopables$1$1,Iterators$2$1=iterators$1,InternalStateModule$4$1=internalState$2,defineIterator$1$1=defineIterator$2,ARRAY_ITERATOR$1="Array Iterator",setInternalState$4=InternalStateModule$4$1.set,getInternalState$2$1=InternalStateModule$4$1.getterFor(ARRAY_ITERATOR$1),es_array_iterator=defineIterator$1$1(Array,"Array",function(Mn,Fn){setInternalState$4(this,{type:ARRAY_ITERATOR$1,target:toIndexedObject$5(Mn),index:0,kind:Fn})},function(){var Mn=getInternalState$2$1(this),Fn=Mn.target,io=Mn.kind,fo=Mn.index++;return!Fn||fo>=Fn.length?(Mn.target=void 0,{value:void 0,done:!0}):io=="keys"?{value:fo,done:!1}:io=="values"?{value:Fn[fo],done:!1}:{value:[fo,Fn[fo]],done:!1}},"values");Iterators$2$1.Arguments=Iterators$2$1.Array;addToUnscopables$2("keys");addToUnscopables$2("values");addToUnscopables$2("entries");var DESCRIPTORS$2$2=descriptors$2,fails$5$1=fails$c$1,objectKeys$3=objectKeys$2$1,getOwnPropertySymbolsModule$2=objectGetOwnPropertySymbols$1,propertyIsEnumerableModule$2=objectPropertyIsEnumerable$1,toObject$2$1=toObject$4$1,IndexedObject$3=indexedObject$1,nativeAssign$1=Object.assign,defineProperty$4=Object.defineProperty,objectAssign$1=!nativeAssign$1||fails$5$1(function(){if(DESCRIPTORS$2$2&&nativeAssign$1({b:1},nativeAssign$1(defineProperty$4({},"a",{enumerable:!0,get:function(){defineProperty$4(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var Mn={},Fn={},io=Symbol(),fo="abcdefghijklmnopqrst";return Mn[io]=7,fo.split("").forEach(function($o){Fn[$o]=$o}),nativeAssign$1({},Mn)[io]!=7||objectKeys$3(nativeAssign$1({},Fn)).join("")!=fo})?function Mn(Fn,io){for(var fo=toObject$2$1(Fn),$o=arguments.length,mo=1,Ao=getOwnPropertySymbolsModule$2.f,jo=propertyIsEnumerableModule$2.f;$o>mo;)for(var Lo=IndexedObject$3(arguments[mo++]),Ho=Ao?objectKeys$3(Lo).concat(Ao(Lo)):objectKeys$3(Lo),zo=Ho.length,Go=0,Vo;zo>Go;)Vo=Ho[Go++],(!DESCRIPTORS$2$2||jo.call(Lo,Vo))&&(fo[Vo]=Lo[Vo]);return fo}:nativeAssign$1,$$5=_export$1,assign$1=objectAssign$1;$$5({target:"Object",stat:!0,forced:Object.assign!==assign$1},{assign:assign$1});var global$8$1=global$j,nativePromiseConstructor=global$8$1.Promise,redefine$5$1=redefine$8.exports,redefineAll$2=function(Mn,Fn,io){for(var fo in Fn)redefine$5$1(Mn,fo,Fn[fo],io);return Mn},getBuiltIn$3$1=getBuiltIn$6,definePropertyModule$1$1=objectDefineProperty$2,wellKnownSymbol$b$1=wellKnownSymbol$g,DESCRIPTORS$1$2=descriptors$2,SPECIES$3=wellKnownSymbol$b$1("species"),setSpecies$1$1=function(Mn){var Fn=getBuiltIn$3$1(Mn),io=definePropertyModule$1$1.f;DESCRIPTORS$1$2&&Fn&&!Fn[SPECIES$3]&&io(Fn,SPECIES$3,{configurable:!0,get:function(){return this}})},aFunction$4=function(Mn){if(typeof Mn!="function")throw TypeError(String(Mn)+" is not a function");return Mn},anInstance$3=function(Mn,Fn,io){if(!(Mn instanceof Fn))throw TypeError("Incorrect "+(io?io+" ":"")+"invocation");return Mn},iterate$2={exports:{}},wellKnownSymbol$a$1=wellKnownSymbol$g,Iterators$1$1=iterators$1,ITERATOR$5=wellKnownSymbol$a$1("iterator"),ArrayPrototype$2=Array.prototype,isArrayIteratorMethod$2=function(Mn){return Mn!==void 0&&(Iterators$1$1.Array===Mn||ArrayPrototype$2[ITERATOR$5]===Mn)},aFunction$3$1=aFunction$4,functionBindContext$1=function(Mn,Fn,io){if(aFunction$3$1(Mn),Fn===void 0)return Mn;switch(io){case 0:return function(){return Mn.call(Fn)};case 1:return function(fo){return Mn.call(Fn,fo)};case 2:return function(fo,$o){return Mn.call(Fn,fo,$o)};case 3:return function(fo,$o,mo){return Mn.call(Fn,fo,$o,mo)}}return function(){return Mn.apply(Fn,arguments)}},wellKnownSymbol$9$1=wellKnownSymbol$g,TO_STRING_TAG$2$1=wellKnownSymbol$9$1("toStringTag"),test$2={};test$2[TO_STRING_TAG$2$1]="z";var toStringTagSupport$1=String(test$2)==="[object z]",TO_STRING_TAG_SUPPORT$1=toStringTagSupport$1,classofRaw$2=classofRaw$1$1,wellKnownSymbol$8$1=wellKnownSymbol$g,TO_STRING_TAG$1$1=wellKnownSymbol$8$1("toStringTag"),CORRECT_ARGUMENTS$1=classofRaw$2(function(){return arguments}())=="Arguments",tryGet$1=function(Mn,Fn){try{return Mn[Fn]}catch{}},classof$6=TO_STRING_TAG_SUPPORT$1?classofRaw$2:function(Mn){var Fn,io,fo;return Mn===void 0?"Undefined":Mn===null?"Null":typeof(io=tryGet$1(Fn=Object(Mn),TO_STRING_TAG$1$1))=="string"?io:CORRECT_ARGUMENTS$1?classofRaw$2(Fn):(fo=classofRaw$2(Fn))=="Object"&&typeof Fn.callee=="function"?"Arguments":fo},classof$5$1=classof$6,Iterators$5=iterators$1,wellKnownSymbol$7$1=wellKnownSymbol$g,ITERATOR$4$1=wellKnownSymbol$7$1("iterator"),getIteratorMethod$4=function(Mn){if(Mn!=null)return Mn[ITERATOR$4$1]||Mn["@@iterator"]||Iterators$5[classof$5$1(Mn)]},anObject$8$1=anObject$e,callWithSafeIterationClosing$2=function(Mn,Fn,io,fo){try{return fo?Fn(anObject$8$1(io)[0],io[1]):Fn(io)}catch(mo){var $o=Mn.return;throw $o!==void 0&&anObject$8$1($o.call(Mn)),mo}},anObject$7$1=anObject$e,isArrayIteratorMethod$1$1=isArrayIteratorMethod$2,toLength$2$1=toLength$4$1,bind$4=functionBindContext$1,getIteratorMethod$3=getIteratorMethod$4,callWithSafeIterationClosing$1=callWithSafeIterationClosing$2,Result=function(Mn,Fn){this.stopped=Mn,this.result=Fn},iterate$1=iterate$2.exports=function(Mn,Fn,io,fo,$o){var mo=bind$4(Fn,io,fo?2:1),Ao,jo,Lo,Ho,zo,Go,Vo;if($o)Ao=Mn;else{if(jo=getIteratorMethod$3(Mn),typeof jo!="function")throw TypeError("Target is not iterable");if(isArrayIteratorMethod$1$1(jo)){for(Lo=0,Ho=toLength$2$1(Mn.length);Ho>Lo;Lo++)if(zo=fo?mo(anObject$7$1(Vo=Mn[Lo])[0],Vo[1]):mo(Mn[Lo]),zo&&zo instanceof Result)return zo;return new Result(!1)}Ao=jo.call(Mn)}for(Go=Ao.next;!(Vo=Go.call(Ao)).done;)if(zo=callWithSafeIterationClosing$1(Ao,mo,Vo.value,fo),typeof zo=="object"&&zo&&zo instanceof Result)return zo;return new Result(!1)};iterate$1.stop=function(Mn){return new Result(!0,Mn)};var wellKnownSymbol$6$1=wellKnownSymbol$g,ITERATOR$3$1=wellKnownSymbol$6$1("iterator"),SAFE_CLOSING$1=!1;try{var called$1=0,iteratorWithReturn$1={next:function(){return{done:!!called$1++}},return:function(){SAFE_CLOSING$1=!0}};iteratorWithReturn$1[ITERATOR$3$1]=function(){return this},Array.from(iteratorWithReturn$1,function(){throw 2})}catch(Mn){}var checkCorrectnessOfIteration$1$1=function(Mn,Fn){if(!Fn&&!SAFE_CLOSING$1)return!1;var io=!1;try{var fo={};fo[ITERATOR$3$1]=function(){return{next:function(){return{done:io=!0}}}},Mn(fo)}catch{}return io},anObject$6$1=anObject$e,aFunction$2$1=aFunction$4,wellKnownSymbol$5$1=wellKnownSymbol$g,SPECIES$2$1=wellKnownSymbol$5$1("species"),speciesConstructor$1$1=function(Mn,Fn){var io=anObject$6$1(Mn).constructor,fo;return io===void 0||(fo=anObject$6$1(io)[SPECIES$2$1])==null?Fn:aFunction$2$1(fo)},getBuiltIn$2$1=getBuiltIn$6,engineUserAgent=getBuiltIn$2$1("navigator","userAgent")||"",userAgent$1=engineUserAgent,engineIsIos=/(iphone|ipod|ipad).*applewebkit/i.test(userAgent$1),global$7$2=global$j,fails$4$1=fails$c$1,classof$4$1=classofRaw$1$1,bind$3=functionBindContext$1,html$3=html$2,createElement$2=documentCreateElement$1$1,IS_IOS$1=engineIsIos,location$1=global$7$2.location,set$3=global$7$2.setImmediate,clear=global$7$2.clearImmediate,process$3=global$7$2.process,MessageChannel$1=global$7$2.MessageChannel,Dispatch=global$7$2.Dispatch,counter=0,queue={},ONREADYSTATECHANGE="onreadystatechange",defer,channel,port,run=function(Mn){if(queue.hasOwnProperty(Mn)){var Fn=queue[Mn];delete queue[Mn],Fn()}},runner=function(Mn){return function(){run(Mn)}},listener=function(Mn){run(Mn.data)},post=function(Mn){global$7$2.postMessage(Mn+"",location$1.protocol+"//"+location$1.host)};(!set$3||!clear)&&(set$3=function(Fn){for(var io=[],fo=1;arguments.length>fo;)io.push(arguments[fo++]);return queue[++counter]=function(){(typeof Fn=="function"?Fn:Function(Fn)).apply(void 0,io)},defer(counter),counter},clear=function(Fn){delete queue[Fn]},classof$4$1(process$3)=="process"?defer=function(Mn){process$3.nextTick(runner(Mn))}:Dispatch&&Dispatch.now?defer=function(Mn){Dispatch.now(runner(Mn))}:MessageChannel$1&&!IS_IOS$1?(channel=new MessageChannel$1,port=channel.port2,channel.port1.onmessage=listener,defer=bind$3(port.postMessage,port,1)):global$7$2.addEventListener&&typeof postMessage=="function"&&!global$7$2.importScripts&&!fails$4$1(post)&&location$1.protocol!=="file:"?(defer=post,global$7$2.addEventListener("message",listener,!1)):ONREADYSTATECHANGE in createElement$2("script")?defer=function(Mn){html$3.appendChild(createElement$2("script"))[ONREADYSTATECHANGE]=function(){html$3.removeChild(this),run(Mn)}}:defer=function(Mn){setTimeout(runner(Mn),0)});var task$1={set:set$3,clear},global$6$2=global$j,getOwnPropertyDescriptor$3=objectGetOwnPropertyDescriptor$1.f,classof$3$1=classofRaw$1$1,macrotask=task$1.set,IS_IOS=engineIsIos,MutationObserver$1=global$6$2.MutationObserver||global$6$2.WebKitMutationObserver,process$2=global$6$2.process,Promise$1=global$6$2.Promise,IS_NODE$1=classof$3$1(process$2)=="process",queueMicrotaskDescriptor=getOwnPropertyDescriptor$3(global$6$2,"queueMicrotask"),queueMicrotask$1=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value,flush,head,last,notify$1,toggle,node,promise,then;queueMicrotask$1||(flush=function(){var Mn,Fn;for(IS_NODE$1&&(Mn=process$2.domain)&&Mn.exit();head;){Fn=head.fn,head=head.next;try{Fn()}catch(io){throw head?notify$1():last=void 0,io}}last=void 0,Mn&&Mn.enter()},IS_NODE$1?notify$1=function(){process$2.nextTick(flush)}:MutationObserver$1&&!IS_IOS?(toggle=!0,node=document.createTextNode(""),new MutationObserver$1(flush).observe(node,{characterData:!0}),notify$1=function(){node.data=toggle=!toggle}):Promise$1&&Promise$1.resolve?(promise=Promise$1.resolve(void 0),then=promise.then,notify$1=function(){then.call(promise,flush)}):notify$1=function(){macrotask.call(global$6$2,flush)});var microtask$1=queueMicrotask$1||function(Mn){var Fn={fn:Mn,next:void 0};last&&(last.next=Fn),head||(head=Fn,notify$1()),last=Fn},newPromiseCapability$2={},aFunction$1$1=aFunction$4,PromiseCapability=function(Mn){var Fn,io;this.promise=new Mn(function(fo,$o){if(Fn!==void 0||io!==void 0)throw TypeError("Bad Promise constructor");Fn=fo,io=$o}),this.resolve=aFunction$1$1(Fn),this.reject=aFunction$1$1(io)};newPromiseCapability$2.f=function(Mn){return new PromiseCapability(Mn)};var anObject$5$1=anObject$e,isObject$2$2=isObject$8$1,newPromiseCapability$1=newPromiseCapability$2,promiseResolve$1=function(Mn,Fn){if(anObject$5$1(Mn),isObject$2$2(Fn)&&Fn.constructor===Mn)return Fn;var io=newPromiseCapability$1.f(Mn),fo=io.resolve;return fo(Fn),io.promise},global$5$2=global$j,hostReportErrors$1=function(Mn,Fn){var io=global$5$2.console;io&&io.error&&(arguments.length===1?io.error(Mn):io.error(Mn,Fn))},perform$1=function(Mn){try{return{error:!1,value:Mn()}}catch(Fn){return{error:!0,value:Fn}}},global$4$2=global$j,userAgent=engineUserAgent,process$1=global$4$2.process,versions=process$1&&process$1.versions,v8=versions&&versions.v8,match,version;v8?(match=v8.split("."),version=match[0]+match[1]):userAgent&&(match=userAgent.match(/Edge\/(\d+)/),(!match||match[1]>=74)&&(match=userAgent.match(/Chrome\/(\d+)/),match&&(version=match[1])));var engineV8Version=version&&+version,$$4=_export$1,global$3$2=global$j,getBuiltIn$1$1=getBuiltIn$6,NativePromise=nativePromiseConstructor,redefine$4$1=redefine$8.exports,redefineAll$1$1=redefineAll$2,setToStringTag$2$1=setToStringTag$5,setSpecies$2=setSpecies$1$1,isObject$1$2=isObject$8$1,aFunction$6=aFunction$4,anInstance$2$1=anInstance$3,classof$2$1=classofRaw$1$1,inspectSource$4=inspectSource$3$1,iterate=iterate$2.exports,checkCorrectnessOfIteration$2=checkCorrectnessOfIteration$1$1,speciesConstructor$2=speciesConstructor$1$1,task=task$1.set,microtask$2=microtask$1,promiseResolve=promiseResolve$1,hostReportErrors=hostReportErrors$1,newPromiseCapabilityModule=newPromiseCapability$2,perform=perform$1,InternalStateModule$3$1=internalState$2,isForced$3=isForced_1$1,wellKnownSymbol$4$1=wellKnownSymbol$g,V8_VERSION=engineV8Version,SPECIES$1$1=wellKnownSymbol$4$1("species"),PROMISE="Promise",getInternalState$1$1=InternalStateModule$3$1.get,setInternalState$3=InternalStateModule$3$1.set,getInternalPromiseState=InternalStateModule$3$1.getterFor(PROMISE),PromiseConstructor=NativePromise,TypeError$1=global$3$2.TypeError,document$1$1=global$3$2.document,process=global$3$2.process,$fetch$1=getBuiltIn$1$1("fetch"),newPromiseCapability=newPromiseCapabilityModule.f,newGenericPromiseCapability=newPromiseCapability,IS_NODE=classof$2$1(process)=="process",DISPATCH_EVENT=!!(document$1$1&&document$1$1.createEvent&&global$3$2.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,FORCED$2=isForced$3(PROMISE,function(){var Mn=inspectSource$4(PromiseConstructor)!==String(PromiseConstructor);if(!Mn&&(V8_VERSION===66||!IS_NODE&&typeof PromiseRejectionEvent!="function"))return!0;if(V8_VERSION>=51&&/native code/.test(PromiseConstructor))return!1;var Fn=PromiseConstructor.resolve(1),io=function($o){$o(function(){},function(){})},fo=Fn.constructor={};return fo[SPECIES$1$1]=io,!(Fn.then(function(){})instanceof io)}),INCORRECT_ITERATION=FORCED$2||!checkCorrectnessOfIteration$2(function(Mn){PromiseConstructor.all(Mn).catch(function(){})}),isThenable=function(Mn){var Fn;return isObject$1$2(Mn)&&typeof(Fn=Mn.then)=="function"?Fn:!1},notify=function(Mn,Fn,io){if(!Fn.notified){Fn.notified=!0;var fo=Fn.reactions;microtask$2(function(){for(var $o=Fn.value,mo=Fn.state==FULFILLED,Ao=0;fo.length>Ao;){var jo=fo[Ao++],Lo=mo?jo.ok:jo.fail,Ho=jo.resolve,zo=jo.reject,Go=jo.domain,Vo,Yo,Xo;try{Lo?(mo||(Fn.rejection===UNHANDLED&&onHandleUnhandled(Mn,Fn),Fn.rejection=HANDLED),Lo===!0?Vo=$o:(Go&&Go.enter(),Vo=Lo($o),Go&&(Go.exit(),Xo=!0)),Vo===jo.promise?zo(TypeError$1("Promise-chain cycle")):(Yo=isThenable(Vo))?Yo.call(Vo,Ho,zo):Ho(Vo)):zo($o)}catch(is){Go&&!Xo&&Go.exit(),zo(is)}}Fn.reactions=[],Fn.notified=!1,io&&!Fn.rejection&&onUnhandled(Mn,Fn)})}},dispatchEvent=function(Mn,Fn,io){var fo,$o;DISPATCH_EVENT?(fo=document$1$1.createEvent("Event"),fo.promise=Fn,fo.reason=io,fo.initEvent(Mn,!1,!0),global$3$2.dispatchEvent(fo)):fo={promise:Fn,reason:io},($o=global$3$2["on"+Mn])?$o(fo):Mn===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",io)},onUnhandled=function(Mn,Fn){task.call(global$3$2,function(){var io=Fn.value,fo=isUnhandled(Fn),$o;if(fo&&($o=perform(function(){IS_NODE?process.emit("unhandledRejection",io,Mn):dispatchEvent(UNHANDLED_REJECTION,Mn,io)}),Fn.rejection=IS_NODE||isUnhandled(Fn)?UNHANDLED:HANDLED,$o.error))throw $o.value})},isUnhandled=function(Mn){return Mn.rejection!==HANDLED&&!Mn.parent},onHandleUnhandled=function(Mn,Fn){task.call(global$3$2,function(){IS_NODE?process.emit("rejectionHandled",Mn):dispatchEvent(REJECTION_HANDLED,Mn,Fn.value)})},bind$2=function(Mn,Fn,io,fo){return function($o){Mn(Fn,io,$o,fo)}},internalReject=function(Mn,Fn,io,fo){Fn.done||(Fn.done=!0,fo&&(Fn=fo),Fn.value=io,Fn.state=REJECTED,notify(Mn,Fn,!0))},internalResolve=function(Mn,Fn,io,fo){if(!Fn.done){Fn.done=!0,fo&&(Fn=fo);try{if(Mn===io)throw TypeError$1("Promise can't be resolved itself");var $o=isThenable(io);$o?microtask$2(function(){var mo={done:!1};try{$o.call(io,bind$2(internalResolve,Mn,mo,Fn),bind$2(internalReject,Mn,mo,Fn))}catch(Ao){internalReject(Mn,mo,Ao,Fn)}}):(Fn.value=io,Fn.state=FULFILLED,notify(Mn,Fn,!1))}catch(mo){internalReject(Mn,{done:!1},mo,Fn)}}};FORCED$2&&(PromiseConstructor=function(Fn){anInstance$2$1(this,PromiseConstructor,PROMISE),aFunction$6(Fn),Internal.call(this);var io=getInternalState$1$1(this);try{Fn(bind$2(internalResolve,this,io),bind$2(internalReject,this,io))}catch(fo){internalReject(this,io,fo)}},Internal=function(Fn){setInternalState$3(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:PENDING,value:void 0})},Internal.prototype=redefineAll$1$1(PromiseConstructor.prototype,{then:function(Fn,io){var fo=getInternalPromiseState(this),$o=newPromiseCapability(speciesConstructor$2(this,PromiseConstructor));return $o.ok=typeof Fn=="function"?Fn:!0,$o.fail=typeof io=="function"&&io,$o.domain=IS_NODE?process.domain:void 0,fo.parent=!0,fo.reactions.push($o),fo.state!=PENDING&¬ify(this,fo,!1),$o.promise},catch:function(Mn){return this.then(void 0,Mn)}}),OwnPromiseCapability=function(){var Mn=new Internal,Fn=getInternalState$1$1(Mn);this.promise=Mn,this.resolve=bind$2(internalResolve,Mn,Fn),this.reject=bind$2(internalReject,Mn,Fn)},newPromiseCapabilityModule.f=newPromiseCapability=function(Mn){return Mn===PromiseConstructor||Mn===PromiseWrapper?new OwnPromiseCapability(Mn):newGenericPromiseCapability(Mn)},typeof NativePromise=="function"&&(nativeThen=NativePromise.prototype.then,redefine$4$1(NativePromise.prototype,"then",function(Fn,io){var fo=this;return new PromiseConstructor(function($o,mo){nativeThen.call(fo,$o,mo)}).then(Fn,io)},{unsafe:!0}),typeof $fetch$1=="function"&&$$4({global:!0,enumerable:!0,forced:!0},{fetch:function(Fn){return promiseResolve(PromiseConstructor,$fetch$1.apply(global$3$2,arguments))}})));$$4({global:!0,wrap:!0,forced:FORCED$2},{Promise:PromiseConstructor});setToStringTag$2$1(PromiseConstructor,PROMISE,!1);setSpecies$2(PROMISE);PromiseWrapper=getBuiltIn$1$1(PROMISE);$$4({target:PROMISE,stat:!0,forced:FORCED$2},{reject:function Mn(Fn){var io=newPromiseCapability(this);return io.reject.call(void 0,Fn),io.promise}});$$4({target:PROMISE,stat:!0,forced:FORCED$2},{resolve:function Mn(Fn){return promiseResolve(this,Fn)}});$$4({target:PROMISE,stat:!0,forced:INCORRECT_ITERATION},{all:function Mn(Fn){var io=this,fo=newPromiseCapability(io),$o=fo.resolve,mo=fo.reject,Ao=perform(function(){var jo=aFunction$6(io.resolve),Lo=[],Ho=0,zo=1;iterate(Fn,function(Go){var Vo=Ho++,Yo=!1;Lo.push(void 0),zo++,jo.call(io,Go).then(function(Xo){Yo||(Yo=!0,Lo[Vo]=Xo,--zo||$o(Lo))},mo)}),--zo||$o(Lo)});return Ao.error&&mo(Ao.value),fo.promise},race:function Mn(Fn){var io=this,fo=newPromiseCapability(io),$o=fo.reject,mo=perform(function(){var Ao=aFunction$6(io.resolve);iterate(Fn,function(jo){Ao.call(io,jo).then(fo.resolve,$o)})});return mo.error&&$o(mo.value),fo.promise}});var anObject$4$1=anObject$e,regexpFlags$1$1=function(){var Mn=anObject$4$1(this),Fn="";return Mn.global&&(Fn+="g"),Mn.ignoreCase&&(Fn+="i"),Mn.multiline&&(Fn+="m"),Mn.dotAll&&(Fn+="s"),Mn.unicode&&(Fn+="u"),Mn.sticky&&(Fn+="y"),Fn},regexpStickyHelpers={},fails$3$2=fails$c$1;function RE(Mn,Fn){return RegExp(Mn,Fn)}regexpStickyHelpers.UNSUPPORTED_Y=fails$3$2(function(){var Mn=RE("a","y");return Mn.lastIndex=2,Mn.exec("abcd")!=null});regexpStickyHelpers.BROKEN_CARET=fails$3$2(function(){var Mn=RE("^r","gy");return Mn.lastIndex=2,Mn.exec("str")!=null});var regexpFlags$2=regexpFlags$1$1,stickyHelpers=regexpStickyHelpers,nativeExec=RegExp.prototype.exec,nativeReplace=String.prototype.replace,patchedExec=nativeExec,UPDATES_LAST_INDEX_WRONG=function(){var Mn=/a/,Fn=/b*/g;return nativeExec.call(Mn,"a"),nativeExec.call(Fn,"a"),Mn.lastIndex!==0||Fn.lastIndex!==0}(),UNSUPPORTED_Y=stickyHelpers.UNSUPPORTED_Y||stickyHelpers.BROKEN_CARET,NPCG_INCLUDED=/()??/.exec("")[1]!==void 0,PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y;PATCH&&(patchedExec=function(Fn){var io=this,fo,$o,mo,Ao,jo=UNSUPPORTED_Y&&io.sticky,Lo=regexpFlags$2.call(io),Ho=io.source,zo=0,Go=Fn;return jo&&(Lo=Lo.replace("y",""),Lo.indexOf("g")===-1&&(Lo+="g"),Go=String(Fn).slice(io.lastIndex),io.lastIndex>0&&(!io.multiline||io.multiline&&Fn[io.lastIndex-1]!==`
`)&&(Ho="(?: "+Ho+")",Go=" "+Go,zo++),$o=new RegExp("^(?:"+Ho+")",Lo)),NPCG_INCLUDED&&($o=new RegExp("^"+Ho+"$(?!\\s)",Lo)),UPDATES_LAST_INDEX_WRONG&&(fo=io.lastIndex),mo=nativeExec.call(jo?$o:io,Go),jo?mo?(mo.input=mo.input.slice(zo),mo[0]=mo[0].slice(zo),mo.index=io.lastIndex,io.lastIndex+=mo[0].length):io.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&mo&&(io.lastIndex=io.global?mo.index+mo[0].length:fo),NPCG_INCLUDED&&mo&&mo.length>1&&nativeReplace.call(mo[0],$o,function(){for(Ao=1;Ao<arguments.length-2;Ao++)arguments[Ao]===void 0&&(mo[Ao]=void 0)}),mo});var regexpExec$2=patchedExec,$$3$1=_export$1,exec=regexpExec$2;$$3$1({target:"RegExp",proto:!0,forced:/./.exec!==exec},{exec});var redefine$3$1=redefine$8.exports,anObject$3$2=anObject$e,fails$2$2=fails$c$1,flags$2=regexpFlags$1$1,TO_STRING$2="toString",RegExpPrototype$2=RegExp.prototype,nativeToString$2=RegExpPrototype$2[TO_STRING$2],NOT_GENERIC$2=fails$2$2(function(){return nativeToString$2.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$2=nativeToString$2.name!=TO_STRING$2;(NOT_GENERIC$2||INCORRECT_NAME$2)&&redefine$3$1(RegExp.prototype,TO_STRING$2,function(){var Fn=anObject$3$2(this),io=String(Fn.source),fo=Fn.flags,$o=String(fo===void 0&&Fn instanceof RegExp&&!("flags"in RegExpPrototype$2)?flags$2.call(Fn):fo);return"/"+io+"/"+$o},{unsafe:!0});var redefine$2$1=redefine$8.exports,fails$1$2=fails$c$1,wellKnownSymbol$3$1=wellKnownSymbol$g,regexpExec$1=regexpExec$2,createNonEnumerableProperty$1$2=createNonEnumerableProperty$8$1,SPECIES$4=wellKnownSymbol$3$1("species"),REPLACE_SUPPORTS_NAMED_GROUPS=!fails$1$2(function(){var Mn=/./;return Mn.exec=function(){var Fn=[];return Fn.groups={a:"7"},Fn},"".replace(Mn,"$<a>")!=="7"}),REPLACE_KEEPS_$0=function(){return"a".replace(/./,"$0")==="$0"}(),REPLACE=wellKnownSymbol$3$1("replace"),REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE=function(){return/./[REPLACE]?/./[REPLACE]("a","$0")==="":!1}(),SPLIT_WORKS_WITH_OVERWRITTEN_EXEC=!fails$1$2(function(){var Mn=/(?:)/,Fn=Mn.exec;Mn.exec=function(){return Fn.apply(this,arguments)};var io="ab".split(Mn);return io.length!==2||io[0]!=="a"||io[1]!=="b"}),fixRegexpWellKnownSymbolLogic=function(Mn,Fn,io,fo){var $o=wellKnownSymbol$3$1(Mn),mo=!fails$1$2(function(){var Go={};return Go[$o]=function(){return 7},""[Mn](Go)!=7}),Ao=mo&&!fails$1$2(function(){var Go=!1,Vo=/a/;return Mn==="split"&&(Vo={},Vo.constructor={},Vo.constructor[SPECIES$4]=function(){return Vo},Vo.flags="",Vo[$o]=/./[$o]),Vo.exec=function(){return Go=!0,null},Vo[$o](""),!Go});if(!mo||!Ao||Mn==="replace"&&!(REPLACE_SUPPORTS_NAMED_GROUPS&&REPLACE_KEEPS_$0&&!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE)||Mn==="split"&&!SPLIT_WORKS_WITH_OVERWRITTEN_EXEC){var jo=/./[$o],Lo=io($o,""[Mn],function(Go,Vo,Yo,Xo,is){return Vo.exec===regexpExec$1?mo&&!is?{done:!0,value:jo.call(Vo,Yo,Xo)}:{done:!0,value:Go.call(Yo,Vo,Xo)}:{done:!1}},{REPLACE_KEEPS_$0,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE}),Ho=Lo[0],zo=Lo[1];redefine$2$1(String.prototype,Mn,Ho),redefine$2$1(RegExp.prototype,$o,Fn==2?function(Go,Vo){return zo.call(Go,this,Vo)}:function(Go){return zo.call(Go,this)})}fo&&createNonEnumerableProperty$1$2(RegExp.prototype[$o],"sham",!0)},toInteger$1$1=toInteger$4$1,requireObjectCoercible$1$1=requireObjectCoercible$4,createMethod$2=function(Mn){return function(Fn,io){var fo=String(requireObjectCoercible$1$1(Fn)),$o=toInteger$1$1(io),mo=fo.length,Ao,jo;return $o<0||$o>=mo?Mn?"":void 0:(Ao=fo.charCodeAt($o),Ao<55296||Ao>56319||$o+1===mo||(jo=fo.charCodeAt($o+1))<56320||jo>57343?Mn?fo.charAt($o):Ao:Mn?fo.slice($o,$o+2):(Ao-55296<<10)+(jo-56320)+65536)}},stringMultibyte={codeAt:createMethod$2(!1),charAt:createMethod$2(!0)},charAt$1=stringMultibyte.charAt,advanceStringIndex$1=function(Mn,Fn,io){return Fn+(io?charAt$1(Mn,Fn).length:1)},classof$1$1=classofRaw$1$1,regexpExec=regexpExec$2,regexpExecAbstract=function(Mn,Fn){var io=Mn.exec;if(typeof io=="function"){var fo=io.call(Mn,Fn);if(typeof fo!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return fo}if(classof$1$1(Mn)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return regexpExec.call(Mn,Fn)},fixRegExpWellKnownSymbolLogic=fixRegexpWellKnownSymbolLogic,anObject$2$2=anObject$e,toObject$1$1=toObject$4$1,toLength$1$1=toLength$4$1,toInteger$6=toInteger$4$1,requireObjectCoercible$5=requireObjectCoercible$4,advanceStringIndex=advanceStringIndex$1,regExpExec=regexpExecAbstract,max$2=Math.max,min$3=Math.min,floor$2=Math.floor,SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d\d?|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d\d?)/g,maybeToString=function(Mn){return Mn===void 0?Mn:String(Mn)};fixRegExpWellKnownSymbolLogic("replace",2,function(Mn,Fn,io,fo){var $o=fo.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,mo=fo.REPLACE_KEEPS_$0,Ao=$o?"$":"$0";return[function(Ho,zo){var Go=requireObjectCoercible$5(this),Vo=Ho==null?void 0:Ho[Mn];return Vo!==void 0?Vo.call(Ho,Go,zo):Fn.call(String(Go),Ho,zo)},function(Lo,Ho){if(!$o&&mo||typeof Ho=="string"&&Ho.indexOf(Ao)===-1){var zo=io(Fn,Lo,this,Ho);if(zo.done)return zo.value}var Go=anObject$2$2(Lo),Vo=String(this),Yo=typeof Ho=="function";Yo||(Ho=String(Ho));var Xo=Go.global;if(Xo){var is=Go.unicode;Go.lastIndex=0}for(var yl=[];;){var us=regExpExec(Go,Vo);if(us===null||(yl.push(us),!Xo))break;var hs=String(us[0]);hs===""&&(Go.lastIndex=advanceStringIndex(Vo,toLength$1$1(Go.lastIndex),is))}for(var _l="",xl=0,Il=0;Il<yl.length;Il++){us=yl[Il];for(var Ol=String(us[0]),Tl=max$2(min$3(toInteger$6(us.index),Vo.length),0),Cl=[],Nl=1;Nl<us.length;Nl++)Cl.push(maybeToString(us[Nl]));var Wl=us.groups;if(Yo){var Dl=[Ol].concat(Cl,Tl,Vo);Wl!==void 0&&Dl.push(Wl);var Rl=String(Ho.apply(void 0,Dl))}else Rl=jo(Ol,Vo,Tl,Cl,Wl,Ho);Tl>=xl&&(_l+=Vo.slice(xl,Tl)+Rl,xl=Tl+Ol.length)}return _l+Vo.slice(xl)}];function jo(Lo,Ho,zo,Go,Vo,Yo){var Xo=zo+Lo.length,is=Go.length,yl=SUBSTITUTION_SYMBOLS_NO_NAMED;return Vo!==void 0&&(Vo=toObject$1$1(Vo),yl=SUBSTITUTION_SYMBOLS),Fn.call(Yo,yl,function(us,hs){var _l;switch(hs.charAt(0)){case"$":return"$";case"&":return Lo;case"`":return Ho.slice(0,zo);case"'":return Ho.slice(Xo);case"<":_l=Vo[hs.slice(1,-1)];break;default:var xl=+hs;if(xl===0)return us;if(xl>is){var Il=floor$2(xl/10);return Il===0?us:Il<=is?Go[Il-1]===void 0?hs.charAt(1):Go[Il-1]+hs.charAt(1):us}_l=Go[xl-1]}return _l===void 0?"":_l})}});var domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},global$2$2=global$j,DOMIterables=domIterables,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty$b=createNonEnumerableProperty$8$1,wellKnownSymbol$2$1=wellKnownSymbol$g,ITERATOR$2$1=wellKnownSymbol$2$1("iterator"),TO_STRING_TAG$4=wellKnownSymbol$2$1("toStringTag"),ArrayValues=ArrayIteratorMethods.values;for(var COLLECTION_NAME in DOMIterables){var Collection=global$2$2[COLLECTION_NAME],CollectionPrototype=Collection&&Collection.prototype;if(CollectionPrototype){if(CollectionPrototype[ITERATOR$2$1]!==ArrayValues)try{createNonEnumerableProperty$b(CollectionPrototype,ITERATOR$2$1,ArrayValues)}catch{CollectionPrototype[ITERATOR$2$1]=ArrayValues}if(CollectionPrototype[TO_STRING_TAG$4]||createNonEnumerableProperty$b(CollectionPrototype,TO_STRING_TAG$4,COLLECTION_NAME),DOMIterables[COLLECTION_NAME]){for(var METHOD_NAME in ArrayIteratorMethods)if(CollectionPrototype[METHOD_NAME]!==ArrayIteratorMethods[METHOD_NAME])try{createNonEnumerableProperty$b(CollectionPrototype,METHOD_NAME,ArrayIteratorMethods[METHOD_NAME])}catch{CollectionPrototype[METHOD_NAME]=ArrayIteratorMethods[METHOD_NAME]}}}}var charAt=stringMultibyte.charAt,InternalStateModule$2$1=internalState$2,defineIterator$3=defineIterator$2,STRING_ITERATOR="String Iterator",setInternalState$2$1=InternalStateModule$2$1.set,getInternalState$5=InternalStateModule$2$1.getterFor(STRING_ITERATOR);defineIterator$3(String,"String",function(Mn){setInternalState$2$1(this,{type:STRING_ITERATOR,string:String(Mn),index:0})},function Mn(){var Fn=getInternalState$5(this),io=Fn.string,fo=Fn.index,$o;return fo>=io.length?{value:void 0,done:!0}:($o=charAt(io,fo),Fn.index+=$o.length,{value:$o,done:!1})});var fails$f=fails$c$1,wellKnownSymbol$1$1=wellKnownSymbol$g,IS_PURE=isPure,ITERATOR$1$1=wellKnownSymbol$1$1("iterator"),nativeUrl=!fails$f(function(){var Mn=new URL("b?a=1&b=2&c=3","http://a"),Fn=Mn.searchParams,io="";return Mn.pathname="c%20d",Fn.forEach(function(fo,$o){Fn.delete("b"),io+=$o+fo}),IS_PURE&&!Mn.toJSON||!Fn.sort||Mn.href!=="http://a/c%20d?a=1&c=3"||Fn.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!Fn[ITERATOR$1$1]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://тест").host!=="xn--e1aybc"||new URL("http://a#б").hash!=="#%D0%B1"||io!=="a1c3"||new URL("http://x",void 0).host!=="x"}),toPrimitive$5=toPrimitive$3$1,definePropertyModule$7=objectDefineProperty$2,createPropertyDescriptor$1$2=createPropertyDescriptor$5$1,createProperty$1=function(Mn,Fn,io){var fo=toPrimitive$5(Fn);fo in Mn?definePropertyModule$7.f(Mn,fo,createPropertyDescriptor$1$2(0,io)):Mn[fo]=io},bind$1$1=functionBindContext$1,toObject$7=toObject$4$1,callWithSafeIterationClosing=callWithSafeIterationClosing$2,isArrayIteratorMethod$3=isArrayIteratorMethod$2,toLength$a=toLength$4$1,createProperty=createProperty$1,getIteratorMethod$2=getIteratorMethod$4,arrayFrom$1=function Mn(Fn){var io=toObject$7(Fn),fo=typeof this=="function"?this:Array,$o=arguments.length,mo=$o>1?arguments[1]:void 0,Ao=mo!==void 0,jo=getIteratorMethod$2(io),Lo=0,Ho,zo,Go,Vo,Yo,Xo;if(Ao&&(mo=bind$1$1(mo,$o>2?arguments[2]:void 0,2)),jo!=null&&!(fo==Array&&isArrayIteratorMethod$3(jo)))for(Vo=jo.call(io),Yo=Vo.next,zo=new fo;!(Go=Yo.call(Vo)).done;Lo++)Xo=Ao?callWithSafeIterationClosing(Vo,mo,[Go.value,Lo],!0):Go.value,createProperty(zo,Lo,Xo);else for(Ho=toLength$a(io.length),zo=new fo(Ho);Ho>Lo;Lo++)Xo=Ao?mo(io[Lo],Lo):io[Lo],createProperty(zo,Lo,Xo);return zo.length=Lo,zo},maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter="-",regexNonASCII=/[^\0-\u007E]/,regexSeparators=/[.\u3002\uFF0E\uFF61]/g,OVERFLOW_ERROR="Overflow: input needs wider integers to process",baseMinusTMin=base-tMin,floor$1$1=Math.floor,stringFromCharCode=String.fromCharCode,ucs2decode=function(Mn){for(var Fn=[],io=0,fo=Mn.length;io<fo;){var $o=Mn.charCodeAt(io++);if($o>=55296&&$o<=56319&&io<fo){var mo=Mn.charCodeAt(io++);(mo&64512)==56320?Fn.push((($o&1023)<<10)+(mo&1023)+65536):(Fn.push($o),io--)}else Fn.push($o)}return Fn},digitToBasic=function(Mn){return Mn+22+75*(Mn<26)},adapt=function(Mn,Fn,io){var fo=0;for(Mn=io?floor$1$1(Mn/damp):Mn>>1,Mn+=floor$1$1(Mn/Fn);Mn>baseMinusTMin*tMax>>1;fo+=base)Mn=floor$1$1(Mn/baseMinusTMin);return floor$1$1(fo+(baseMinusTMin+1)*Mn/(Mn+skew))},encode=function(Mn){var Fn=[];Mn=ucs2decode(Mn);var io=Mn.length,fo=initialN,$o=0,mo=initialBias,Ao,jo;for(Ao=0;Ao<Mn.length;Ao++)jo=Mn[Ao],jo<128&&Fn.push(stringFromCharCode(jo));var Lo=Fn.length,Ho=Lo;for(Lo&&Fn.push(delimiter);Ho<io;){var zo=maxInt;for(Ao=0;Ao<Mn.length;Ao++)jo=Mn[Ao],jo>=fo&&jo<zo&&(zo=jo);var Go=Ho+1;if(zo-fo>floor$1$1((maxInt-$o)/Go))throw RangeError(OVERFLOW_ERROR);for($o+=(zo-fo)*Go,fo=zo,Ao=0;Ao<Mn.length;Ao++){if(jo=Mn[Ao],jo<fo&&++$o>maxInt)throw RangeError(OVERFLOW_ERROR);if(jo==fo){for(var Vo=$o,Yo=base;;Yo+=base){var Xo=Yo<=mo?tMin:Yo>=mo+tMax?tMax:Yo-mo;if(Vo<Xo)break;var is=Vo-Xo,yl=base-Xo;Fn.push(stringFromCharCode(digitToBasic(Xo+is%yl))),Vo=floor$1$1(is/yl)}Fn.push(stringFromCharCode(digitToBasic(Vo))),mo=adapt($o,Go,Ho==Lo),$o=0,++Ho}}++$o,++fo}return Fn.join("")},stringPunycodeToAscii=function(Mn){var Fn=[],io=Mn.toLowerCase().replace(regexSeparators,".").split("."),fo,$o;for(fo=0;fo<io.length;fo++)$o=io[fo],Fn.push(regexNonASCII.test($o)?"xn--"+encode($o):$o);return Fn.join(".")},anObject$1$2=anObject$e,getIteratorMethod$1$1=getIteratorMethod$4,getIterator$1=function(Mn){var Fn=getIteratorMethod$1$1(Mn);if(typeof Fn!="function")throw TypeError(String(Mn)+" is not iterable");return anObject$1$2(Fn.call(Mn))},$$2$1=_export$1,getBuiltIn$7=getBuiltIn$6,USE_NATIVE_URL$1=nativeUrl,redefine$1$2=redefine$8.exports,redefineAll$3=redefineAll$2,setToStringTag$1$1=setToStringTag$5,createIteratorConstructor$3=createIteratorConstructor$2,InternalStateModule$1$1=internalState$2,anInstance$1$1=anInstance$3,hasOwn=has$a$1,bind$5=functionBindContext$1,classof$8=classof$6,anObject$f=anObject$e,isObject$b=isObject$8$1,create$4=objectCreate$1,createPropertyDescriptor$6=createPropertyDescriptor$5$1,getIterator=getIterator$1,getIteratorMethod$5=getIteratorMethod$4,wellKnownSymbol$h=wellKnownSymbol$g,$fetch=getBuiltIn$7("fetch"),Headers=getBuiltIn$7("Headers"),ITERATOR$8=wellKnownSymbol$h("iterator"),URL_SEARCH_PARAMS="URLSearchParams",URL_SEARCH_PARAMS_ITERATOR=URL_SEARCH_PARAMS+"Iterator",setInternalState$1$1=InternalStateModule$1$1.set,getInternalParamsState=InternalStateModule$1$1.getterFor(URL_SEARCH_PARAMS),getInternalIteratorState=InternalStateModule$1$1.getterFor(URL_SEARCH_PARAMS_ITERATOR),plus=/\+/g,sequences=Array(4),percentSequence=function(Mn){return sequences[Mn-1]||(sequences[Mn-1]=RegExp("((?:%[\\da-f]{2}){"+Mn+"})","gi"))},percentDecode=function(Mn){try{return decodeURIComponent(Mn)}catch{return Mn}},deserialize=function(Mn){var Fn=Mn.replace(plus," "),io=4;try{return decodeURIComponent(Fn)}catch{for(;io;)Fn=Fn.replace(percentSequence(io--),percentDecode);return Fn}},find=/[!'()~]|%20/g,replace={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(Mn){return replace[Mn]},serialize=function(Mn){return encodeURIComponent(Mn).replace(find,replacer)},parseSearchParams=function(Mn,Fn){if(Fn)for(var io=Fn.split("&"),fo=0,$o,mo;fo<io.length;)$o=io[fo++],$o.length&&(mo=$o.split("="),Mn.push({key:deserialize(mo.shift()),value:deserialize(mo.join("="))}))},updateSearchParams=function(Mn){this.entries.length=0,parseSearchParams(this.entries,Mn)},validateArgumentsLength=function(Mn,Fn){if(Mn<Fn)throw TypeError("Not enough arguments")},URLSearchParamsIterator=createIteratorConstructor$3(function Mn(Fn,io){setInternalState$1$1(this,{type:URL_SEARCH_PARAMS_ITERATOR,iterator:getIterator(getInternalParamsState(Fn).entries),kind:io})},"Iterator",function Mn(){var Fn=getInternalIteratorState(this),io=Fn.kind,fo=Fn.iterator.next(),$o=fo.value;return fo.done||(fo.value=io==="keys"?$o.key:io==="values"?$o.value:[$o.key,$o.value]),fo}),URLSearchParamsConstructor=function Mn(){anInstance$1$1(this,URLSearchParamsConstructor,URL_SEARCH_PARAMS);var Fn=arguments.length>0?arguments[0]:void 0,io=this,fo=[],$o,mo,Ao,jo,Lo,Ho,zo,Go,Vo;if(setInternalState$1$1(io,{type:URL_SEARCH_PARAMS,entries:fo,updateURL:function(){},updateSearchParams}),Fn!==void 0)if(isObject$b(Fn))if($o=getIteratorMethod$5(Fn),typeof $o=="function")for(mo=$o.call(Fn),Ao=mo.next;!(jo=Ao.call(mo)).done;){if(Lo=getIterator(anObject$f(jo.value)),Ho=Lo.next,(zo=Ho.call(Lo)).done||(Go=Ho.call(Lo)).done||!Ho.call(Lo).done)throw TypeError("Expected sequence with length 2");fo.push({key:zo.value+"",value:Go.value+""})}else for(Vo in Fn)hasOwn(Fn,Vo)&&fo.push({key:Vo,value:Fn[Vo]+""});else parseSearchParams(fo,typeof Fn=="string"?Fn.charAt(0)==="?"?Fn.slice(1):Fn:Fn+"")},URLSearchParamsPrototype=URLSearchParamsConstructor.prototype;redefineAll$3(URLSearchParamsPrototype,{append:function Mn(Fn,io){validateArgumentsLength(arguments.length,2);var fo=getInternalParamsState(this);fo.entries.push({key:Fn+"",value:io+""}),fo.updateURL()},delete:function(Mn){validateArgumentsLength(arguments.length,1);for(var Fn=getInternalParamsState(this),io=Fn.entries,fo=Mn+"",$o=0;$o<io.length;)io[$o].key===fo?io.splice($o,1):$o++;Fn.updateURL()},get:function Mn(Fn){validateArgumentsLength(arguments.length,1);for(var io=getInternalParamsState(this).entries,fo=Fn+"",$o=0;$o<io.length;$o++)if(io[$o].key===fo)return io[$o].value;return null},getAll:function Mn(Fn){validateArgumentsLength(arguments.length,1);for(var io=getInternalParamsState(this).entries,fo=Fn+"",$o=[],mo=0;mo<io.length;mo++)io[mo].key===fo&&$o.push(io[mo].value);return $o},has:function Mn(Fn){validateArgumentsLength(arguments.length,1);for(var io=getInternalParamsState(this).entries,fo=Fn+"",$o=0;$o<io.length;)if(io[$o++].key===fo)return!0;return!1},set:function Mn(Fn,io){validateArgumentsLength(arguments.length,1);for(var fo=getInternalParamsState(this),$o=fo.entries,mo=!1,Ao=Fn+"",jo=io+"",Lo=0,Ho;Lo<$o.length;Lo++)Ho=$o[Lo],Ho.key===Ao&&(mo?$o.splice(Lo--,1):(mo=!0,Ho.value=jo));mo||$o.push({key:Ao,value:jo}),fo.updateURL()},sort:function Mn(){var Fn=getInternalParamsState(this),io=Fn.entries,fo=io.slice(),$o,mo,Ao;for(io.length=0,Ao=0;Ao<fo.length;Ao++){for($o=fo[Ao],mo=0;mo<Ao;mo++)if(io[mo].key>$o.key){io.splice(mo,0,$o);break}mo===Ao&&io.push($o)}Fn.updateURL()},forEach:function Mn(Fn){for(var io=getInternalParamsState(this).entries,fo=bind$5(Fn,arguments.length>1?arguments[1]:void 0,3),$o=0,mo;$o<io.length;)mo=io[$o++],fo(mo.value,mo.key,this)},keys:function Mn(){return new URLSearchParamsIterator(this,"keys")},values:function Mn(){return new URLSearchParamsIterator(this,"values")},entries:function Mn(){return new URLSearchParamsIterator(this,"entries")}},{enumerable:!0});redefine$1$2(URLSearchParamsPrototype,ITERATOR$8,URLSearchParamsPrototype.entries);redefine$1$2(URLSearchParamsPrototype,"toString",function Mn(){for(var Fn=getInternalParamsState(this).entries,io=[],fo=0,$o;fo<Fn.length;)$o=Fn[fo++],io.push(serialize($o.key)+"="+serialize($o.value));return io.join("&")},{enumerable:!0});setToStringTag$1$1(URLSearchParamsConstructor,URL_SEARCH_PARAMS);$$2$1({global:!0,forced:!USE_NATIVE_URL$1},{URLSearchParams:URLSearchParamsConstructor});!USE_NATIVE_URL$1&&typeof $fetch=="function"&&typeof Headers=="function"&&$$2$1({global:!0,enumerable:!0,forced:!0},{fetch:function(Fn){var io=[Fn],fo,$o,mo;return arguments.length>1&&(fo=arguments[1],isObject$b(fo)&&($o=fo.body,classof$8($o)===URL_SEARCH_PARAMS&&(mo=fo.headers?new Headers(fo.headers):new Headers,mo.has("content-type")||mo.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),fo=create$4(fo,{body:createPropertyDescriptor$6(0,String($o)),headers:createPropertyDescriptor$6(0,mo)}))),io.push(fo)),$fetch.apply(this,io)}});var web_urlSearchParams={URLSearchParams:URLSearchParamsConstructor,getState:getInternalParamsState},$$1$1=_export$1,DESCRIPTORS$b=descriptors$2,USE_NATIVE_URL=nativeUrl,global$1$2=global$j,defineProperties$2=objectDefineProperties$1,redefine$9=redefine$8.exports,anInstance$4=anInstance$3,has$d=has$a$1,assign$2=objectAssign$1,arrayFrom=arrayFrom$1,codeAt=stringMultibyte.codeAt,toASCII=stringPunycodeToAscii,setToStringTag$6=setToStringTag$5,URLSearchParamsModule=web_urlSearchParams,InternalStateModule$6=internalState$2,NativeURL=global$1$2.URL,URLSearchParams$1=URLSearchParamsModule.URLSearchParams,getInternalSearchParamsState=URLSearchParamsModule.getState,setInternalState$5=InternalStateModule$6.set,getInternalURLState=InternalStateModule$6.getterFor("URL"),floor$4=Math.floor,pow$1=Math.pow,INVALID_AUTHORITY="Invalid authority",INVALID_SCHEME="Invalid scheme",INVALID_HOST="Invalid host",INVALID_PORT="Invalid port",ALPHA=/[A-Za-z]/,ALPHANUMERIC=/[\d+-.A-Za-z]/,DIGIT=/\d/,HEX_START=/^(0x|0X)/,OCT=/^[0-7]+$/,DEC=/^\d+$/,HEX=/^[\dA-Fa-f]+$/,FORBIDDEN_HOST_CODE_POINT=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,TAB_AND_NEW_LINE=/[\u0009\u000A\u000D]/g,EOF,parseHost=function(Mn,Fn){var io,fo,$o;if(Fn.charAt(0)=="["){if(Fn.charAt(Fn.length-1)!="]"||(io=parseIPv6(Fn.slice(1,-1)),!io))return INVALID_HOST;Mn.host=io}else if(isSpecial(Mn)){if(Fn=toASCII(Fn),FORBIDDEN_HOST_CODE_POINT.test(Fn)||(io=parseIPv4(Fn),io===null))return INVALID_HOST;Mn.host=io}else{if(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT.test(Fn))return INVALID_HOST;for(io="",fo=arrayFrom(Fn),$o=0;$o<fo.length;$o++)io+=percentEncode(fo[$o],C0ControlPercentEncodeSet);Mn.host=io}},parseIPv4=function(Mn){var Fn=Mn.split("."),io,fo,$o,mo,Ao,jo,Lo;if(Fn.length&&Fn[Fn.length-1]==""&&Fn.pop(),io=Fn.length,io>4)return Mn;for(fo=[],$o=0;$o<io;$o++){if(mo=Fn[$o],mo=="")return Mn;if(Ao=10,mo.length>1&&mo.charAt(0)=="0"&&(Ao=HEX_START.test(mo)?16:8,mo=mo.slice(Ao==8?1:2)),mo==="")jo=0;else{if(!(Ao==10?DEC:Ao==8?OCT:HEX).test(mo))return Mn;jo=parseInt(mo,Ao)}fo.push(jo)}for($o=0;$o<io;$o++)if(jo=fo[$o],$o==io-1){if(jo>=pow$1(256,5-io))return null}else if(jo>255)return null;for(Lo=fo.pop(),$o=0;$o<fo.length;$o++)Lo+=fo[$o]*pow$1(256,3-$o);return Lo},parseIPv6=function(Mn){var Fn=[0,0,0,0,0,0,0,0],io=0,fo=null,$o=0,mo,Ao,jo,Lo,Ho,zo,Go,Vo=function(){return Mn.charAt($o)};if(Vo()==":"){if(Mn.charAt(1)!=":")return;$o+=2,io++,fo=io}for(;Vo();){if(io==8)return;if(Vo()==":"){if(fo!==null)return;$o++,io++,fo=io;continue}for(mo=Ao=0;Ao<4&&HEX.test(Vo());)mo=mo*16+parseInt(Vo(),16),$o++,Ao++;if(Vo()=="."){if(Ao==0||($o-=Ao,io>6))return;for(jo=0;Vo();){if(Lo=null,jo>0)if(Vo()=="."&&jo<4)$o++;else return;if(!DIGIT.test(Vo()))return;for(;DIGIT.test(Vo());){if(Ho=parseInt(Vo(),10),Lo===null)Lo=Ho;else{if(Lo==0)return;Lo=Lo*10+Ho}if(Lo>255)return;$o++}Fn[io]=Fn[io]*256+Lo,jo++,(jo==2||jo==4)&&io++}if(jo!=4)return;break}else if(Vo()==":"){if($o++,!Vo())return}else if(Vo())return;Fn[io++]=mo}if(fo!==null)for(zo=io-fo,io=7;io!=0&&zo>0;)Go=Fn[io],Fn[io--]=Fn[fo+zo-1],Fn[fo+--zo]=Go;else if(io!=8)return;return Fn},findLongestZeroSequence=function(Mn){for(var Fn=null,io=1,fo=null,$o=0,mo=0;mo<8;mo++)Mn[mo]!==0?($o>io&&(Fn=fo,io=$o),fo=null,$o=0):(fo===null&&(fo=mo),++$o);return $o>io&&(Fn=fo,io=$o),Fn},serializeHost=function(Mn){var Fn,io,fo,$o;if(typeof Mn=="number"){for(Fn=[],io=0;io<4;io++)Fn.unshift(Mn%256),Mn=floor$4(Mn/256);return Fn.join(".")}else if(typeof Mn=="object"){for(Fn="",fo=findLongestZeroSequence(Mn),io=0;io<8;io++)$o&&Mn[io]===0||($o&&($o=!1),fo===io?(Fn+=io?":":"::",$o=!0):(Fn+=Mn[io].toString(16),io<7&&(Fn+=":")));return"["+Fn+"]"}return Mn},C0ControlPercentEncodeSet={},fragmentPercentEncodeSet=assign$2({},C0ControlPercentEncodeSet,{" ":1,'"':1,"<":1,">":1,"`":1}),pathPercentEncodeSet=assign$2({},fragmentPercentEncodeSet,{"#":1,"?":1,"{":1,"}":1}),userinfoPercentEncodeSet=assign$2({},pathPercentEncodeSet,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(Mn,Fn){var io=codeAt(Mn,0);return io>32&&io<127&&!has$d(Fn,Mn)?Mn:encodeURIComponent(Mn)},specialSchemes={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isSpecial=function(Mn){return has$d(specialSchemes,Mn.scheme)},includesCredentials=function(Mn){return Mn.username!=""||Mn.password!=""},cannotHaveUsernamePasswordPort=function(Mn){return!Mn.host||Mn.cannotBeABaseURL||Mn.scheme=="file"},isWindowsDriveLetter=function(Mn,Fn){var io;return Mn.length==2&&ALPHA.test(Mn.charAt(0))&&((io=Mn.charAt(1))==":"||!Fn&&io=="|")},startsWithWindowsDriveLetter=function(Mn){var Fn;return Mn.length>1&&isWindowsDriveLetter(Mn.slice(0,2))&&(Mn.length==2||(Fn=Mn.charAt(2))==="/"||Fn==="\\"||Fn==="?"||Fn==="#")},shortenURLsPath=function(Mn){var Fn=Mn.path,io=Fn.length;io&&(Mn.scheme!="file"||io!=1||!isWindowsDriveLetter(Fn[0],!0))&&Fn.pop()},isSingleDot=function(Mn){return Mn==="."||Mn.toLowerCase()==="%2e"},isDoubleDot=function(Mn){return Mn=Mn.toLowerCase(),Mn===".."||Mn==="%2e."||Mn===".%2e"||Mn==="%2e%2e"},SCHEME_START={},SCHEME={},NO_SCHEME={},SPECIAL_RELATIVE_OR_AUTHORITY={},PATH_OR_AUTHORITY={},RELATIVE={},RELATIVE_SLASH={},SPECIAL_AUTHORITY_SLASHES={},SPECIAL_AUTHORITY_IGNORE_SLASHES={},AUTHORITY={},HOST={},HOSTNAME={},PORT={},FILE={},FILE_SLASH={},FILE_HOST={},PATH_START={},PATH={},CANNOT_BE_A_BASE_URL_PATH={},QUERY={},FRAGMENT={},parseURL=function(Mn,Fn,io,fo){var $o=io||SCHEME_START,mo=0,Ao="",jo=!1,Lo=!1,Ho=!1,zo,Go,Vo,Yo;for(io||(Mn.scheme="",Mn.username="",Mn.password="",Mn.host=null,Mn.port=null,Mn.path=[],Mn.query=null,Mn.fragment=null,Mn.cannotBeABaseURL=!1,Fn=Fn.replace(LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE,"")),Fn=Fn.replace(TAB_AND_NEW_LINE,""),zo=arrayFrom(Fn);mo<=zo.length;){switch(Go=zo[mo],$o){case SCHEME_START:if(Go&&ALPHA.test(Go))Ao+=Go.toLowerCase(),$o=SCHEME;else{if(io)return INVALID_SCHEME;$o=NO_SCHEME;continue}break;case SCHEME:if(Go&&(ALPHANUMERIC.test(Go)||Go=="+"||Go=="-"||Go=="."))Ao+=Go.toLowerCase();else if(Go==":"){if(io&&(isSpecial(Mn)!=has$d(specialSchemes,Ao)||Ao=="file"&&(includesCredentials(Mn)||Mn.port!==null)||Mn.scheme=="file"&&!Mn.host))return;if(Mn.scheme=Ao,io){isSpecial(Mn)&&specialSchemes[Mn.scheme]==Mn.port&&(Mn.port=null);return}Ao="",Mn.scheme=="file"?$o=FILE:isSpecial(Mn)&&fo&&fo.scheme==Mn.scheme?$o=SPECIAL_RELATIVE_OR_AUTHORITY:isSpecial(Mn)?$o=SPECIAL_AUTHORITY_SLASHES:zo[mo+1]=="/"?($o=PATH_OR_AUTHORITY,mo++):(Mn.cannotBeABaseURL=!0,Mn.path.push(""),$o=CANNOT_BE_A_BASE_URL_PATH)}else{if(io)return INVALID_SCHEME;Ao="",$o=NO_SCHEME,mo=0;continue}break;case NO_SCHEME:if(!fo||fo.cannotBeABaseURL&&Go!="#")return INVALID_SCHEME;if(fo.cannotBeABaseURL&&Go=="#"){Mn.scheme=fo.scheme,Mn.path=fo.path.slice(),Mn.query=fo.query,Mn.fragment="",Mn.cannotBeABaseURL=!0,$o=FRAGMENT;break}$o=fo.scheme=="file"?FILE:RELATIVE;continue;case SPECIAL_RELATIVE_OR_AUTHORITY:if(Go=="/"&&zo[mo+1]=="/")$o=SPECIAL_AUTHORITY_IGNORE_SLASHES,mo++;else{$o=RELATIVE;continue}break;case PATH_OR_AUTHORITY:if(Go=="/"){$o=AUTHORITY;break}else{$o=PATH;continue}case RELATIVE:if(Mn.scheme=fo.scheme,Go==EOF)Mn.username=fo.username,Mn.password=fo.password,Mn.host=fo.host,Mn.port=fo.port,Mn.path=fo.path.slice(),Mn.query=fo.query;else if(Go=="/"||Go=="\\"&&isSpecial(Mn))$o=RELATIVE_SLASH;else if(Go=="?")Mn.username=fo.username,Mn.password=fo.password,Mn.host=fo.host,Mn.port=fo.port,Mn.path=fo.path.slice(),Mn.query="",$o=QUERY;else if(Go=="#")Mn.username=fo.username,Mn.password=fo.password,Mn.host=fo.host,Mn.port=fo.port,Mn.path=fo.path.slice(),Mn.query=fo.query,Mn.fragment="",$o=FRAGMENT;else{Mn.username=fo.username,Mn.password=fo.password,Mn.host=fo.host,Mn.port=fo.port,Mn.path=fo.path.slice(),Mn.path.pop(),$o=PATH;continue}break;case RELATIVE_SLASH:if(isSpecial(Mn)&&(Go=="/"||Go=="\\"))$o=SPECIAL_AUTHORITY_IGNORE_SLASHES;else if(Go=="/")$o=AUTHORITY;else{Mn.username=fo.username,Mn.password=fo.password,Mn.host=fo.host,Mn.port=fo.port,$o=PATH;continue}break;case SPECIAL_AUTHORITY_SLASHES:if($o=SPECIAL_AUTHORITY_IGNORE_SLASHES,Go!="/"||Ao.charAt(mo+1)!="/")continue;mo++;break;case SPECIAL_AUTHORITY_IGNORE_SLASHES:if(Go!="/"&&Go!="\\"){$o=AUTHORITY;continue}break;case AUTHORITY:if(Go=="@"){jo&&(Ao="%40"+Ao),jo=!0,Vo=arrayFrom(Ao);for(var Xo=0;Xo<Vo.length;Xo++){var is=Vo[Xo];if(is==":"&&!Ho){Ho=!0;continue}var yl=percentEncode(is,userinfoPercentEncodeSet);Ho?Mn.password+=yl:Mn.username+=yl}Ao=""}else if(Go==EOF||Go=="/"||Go=="?"||Go=="#"||Go=="\\"&&isSpecial(Mn)){if(jo&&Ao=="")return INVALID_AUTHORITY;mo-=arrayFrom(Ao).length+1,Ao="",$o=HOST}else Ao+=Go;break;case HOST:case HOSTNAME:if(io&&Mn.scheme=="file"){$o=FILE_HOST;continue}else if(Go==":"&&!Lo){if(Ao=="")return INVALID_HOST;if(Yo=parseHost(Mn,Ao),Yo)return Yo;if(Ao="",$o=PORT,io==HOSTNAME)return}else if(Go==EOF||Go=="/"||Go=="?"||Go=="#"||Go=="\\"&&isSpecial(Mn)){if(isSpecial(Mn)&&Ao=="")return INVALID_HOST;if(io&&Ao==""&&(includesCredentials(Mn)||Mn.port!==null))return;if(Yo=parseHost(Mn,Ao),Yo)return Yo;if(Ao="",$o=PATH_START,io)return;continue}else Go=="["?Lo=!0:Go=="]"&&(Lo=!1),Ao+=Go;break;case PORT:if(DIGIT.test(Go))Ao+=Go;else if(Go==EOF||Go=="/"||Go=="?"||Go=="#"||Go=="\\"&&isSpecial(Mn)||io){if(Ao!=""){var us=parseInt(Ao,10);if(us>65535)return INVALID_PORT;Mn.port=isSpecial(Mn)&&us===specialSchemes[Mn.scheme]?null:us,Ao=""}if(io)return;$o=PATH_START;continue}else return INVALID_PORT;break;case FILE:if(Mn.scheme="file",Go=="/"||Go=="\\")$o=FILE_SLASH;else if(fo&&fo.scheme=="file")if(Go==EOF)Mn.host=fo.host,Mn.path=fo.path.slice(),Mn.query=fo.query;else if(Go=="?")Mn.host=fo.host,Mn.path=fo.path.slice(),Mn.query="",$o=QUERY;else if(Go=="#")Mn.host=fo.host,Mn.path=fo.path.slice(),Mn.query=fo.query,Mn.fragment="",$o=FRAGMENT;else{startsWithWindowsDriveLetter(zo.slice(mo).join(""))||(Mn.host=fo.host,Mn.path=fo.path.slice(),shortenURLsPath(Mn)),$o=PATH;continue}else{$o=PATH;continue}break;case FILE_SLASH:if(Go=="/"||Go=="\\"){$o=FILE_HOST;break}fo&&fo.scheme=="file"&&!startsWithWindowsDriveLetter(zo.slice(mo).join(""))&&(isWindowsDriveLetter(fo.path[0],!0)?Mn.path.push(fo.path[0]):Mn.host=fo.host),$o=PATH;continue;case FILE_HOST:if(Go==EOF||Go=="/"||Go=="\\"||Go=="?"||Go=="#"){if(!io&&isWindowsDriveLetter(Ao))$o=PATH;else if(Ao==""){if(Mn.host="",io)return;$o=PATH_START}else{if(Yo=parseHost(Mn,Ao),Yo)return Yo;if(Mn.host=="localhost"&&(Mn.host=""),io)return;Ao="",$o=PATH_START}continue}else Ao+=Go;break;case PATH_START:if(isSpecial(Mn)){if($o=PATH,Go!="/"&&Go!="\\")continue}else if(!io&&Go=="?")Mn.query="",$o=QUERY;else if(!io&&Go=="#")Mn.fragment="",$o=FRAGMENT;else if(Go!=EOF&&($o=PATH,Go!="/"))continue;break;case PATH:if(Go==EOF||Go=="/"||Go=="\\"&&isSpecial(Mn)||!io&&(Go=="?"||Go=="#")){if(isDoubleDot(Ao)?(shortenURLsPath(Mn),Go!="/"&&!(Go=="\\"&&isSpecial(Mn))&&Mn.path.push("")):isSingleDot(Ao)?Go!="/"&&!(Go=="\\"&&isSpecial(Mn))&&Mn.path.push(""):(Mn.scheme=="file"&&!Mn.path.length&&isWindowsDriveLetter(Ao)&&(Mn.host&&(Mn.host=""),Ao=Ao.charAt(0)+":"),Mn.path.push(Ao)),Ao="",Mn.scheme=="file"&&(Go==EOF||Go=="?"||Go=="#"))for(;Mn.path.length>1&&Mn.path[0]==="";)Mn.path.shift();Go=="?"?(Mn.query="",$o=QUERY):Go=="#"&&(Mn.fragment="",$o=FRAGMENT)}else Ao+=percentEncode(Go,pathPercentEncodeSet);break;case CANNOT_BE_A_BASE_URL_PATH:Go=="?"?(Mn.query="",$o=QUERY):Go=="#"?(Mn.fragment="",$o=FRAGMENT):Go!=EOF&&(Mn.path[0]+=percentEncode(Go,C0ControlPercentEncodeSet));break;case QUERY:!io&&Go=="#"?(Mn.fragment="",$o=FRAGMENT):Go!=EOF&&(Go=="'"&&isSpecial(Mn)?Mn.query+="%27":Go=="#"?Mn.query+="%23":Mn.query+=percentEncode(Go,C0ControlPercentEncodeSet));break;case FRAGMENT:Go!=EOF&&(Mn.fragment+=percentEncode(Go,fragmentPercentEncodeSet));break}mo++}},URLConstructor=function Mn(Fn){var io=anInstance$4(this,URLConstructor,"URL"),fo=arguments.length>1?arguments[1]:void 0,$o=String(Fn),mo=setInternalState$5(io,{type:"URL"}),Ao,jo;if(fo!==void 0){if(fo instanceof URLConstructor)Ao=getInternalURLState(fo);else if(jo=parseURL(Ao={},String(fo)),jo)throw TypeError(jo)}if(jo=parseURL(mo,$o,null,Ao),jo)throw TypeError(jo);var Lo=mo.searchParams=new URLSearchParams$1,Ho=getInternalSearchParamsState(Lo);Ho.updateSearchParams(mo.query),Ho.updateURL=function(){mo.query=String(Lo)||null},DESCRIPTORS$b||(io.href=serializeURL.call(io),io.origin=getOrigin.call(io),io.protocol=getProtocol.call(io),io.username=getUsername.call(io),io.password=getPassword.call(io),io.host=getHost.call(io),io.hostname=getHostname.call(io),io.port=getPort.call(io),io.pathname=getPathname.call(io),io.search=getSearch.call(io),io.searchParams=getSearchParams.call(io),io.hash=getHash.call(io))},URLPrototype=URLConstructor.prototype,serializeURL=function(){var Mn=getInternalURLState(this),Fn=Mn.scheme,io=Mn.username,fo=Mn.password,$o=Mn.host,mo=Mn.port,Ao=Mn.path,jo=Mn.query,Lo=Mn.fragment,Ho=Fn+":";return $o!==null?(Ho+="//",includesCredentials(Mn)&&(Ho+=io+(fo?":"+fo:"")+"@"),Ho+=serializeHost($o),mo!==null&&(Ho+=":"+mo)):Fn=="file"&&(Ho+="//"),Ho+=Mn.cannotBeABaseURL?Ao[0]:Ao.length?"/"+Ao.join("/"):"",jo!==null&&(Ho+="?"+jo),Lo!==null&&(Ho+="#"+Lo),Ho},getOrigin=function(){var Mn=getInternalURLState(this),Fn=Mn.scheme,io=Mn.port;if(Fn=="blob")try{return new URL(Fn.path[0]).origin}catch{return"null"}return Fn=="file"||!isSpecial(Mn)?"null":Fn+"://"+serializeHost(Mn.host)+(io!==null?":"+io:"")},getProtocol=function(){return getInternalURLState(this).scheme+":"},getUsername=function(){return getInternalURLState(this).username},getPassword=function(){return getInternalURLState(this).password},getHost=function(){var Mn=getInternalURLState(this),Fn=Mn.host,io=Mn.port;return Fn===null?"":io===null?serializeHost(Fn):serializeHost(Fn)+":"+io},getHostname=function(){var Mn=getInternalURLState(this).host;return Mn===null?"":serializeHost(Mn)},getPort=function(){var Mn=getInternalURLState(this).port;return Mn===null?"":String(Mn)},getPathname=function(){var Mn=getInternalURLState(this),Fn=Mn.path;return Mn.cannotBeABaseURL?Fn[0]:Fn.length?"/"+Fn.join("/"):""},getSearch=function(){var Mn=getInternalURLState(this).query;return Mn?"?"+Mn:""},getSearchParams=function(){return getInternalURLState(this).searchParams},getHash=function(){var Mn=getInternalURLState(this).fragment;return Mn?"#"+Mn:""},accessorDescriptor=function(Mn,Fn){return{get:Mn,set:Fn,configurable:!0,enumerable:!0}};DESCRIPTORS$b&&defineProperties$2(URLPrototype,{href:accessorDescriptor(serializeURL,function(Mn){var Fn=getInternalURLState(this),io=String(Mn),fo=parseURL(Fn,io);if(fo)throw TypeError(fo);getInternalSearchParamsState(Fn.searchParams).updateSearchParams(Fn.query)}),origin:accessorDescriptor(getOrigin),protocol:accessorDescriptor(getProtocol,function(Mn){var Fn=getInternalURLState(this);parseURL(Fn,String(Mn)+":",SCHEME_START)}),username:accessorDescriptor(getUsername,function(Mn){var Fn=getInternalURLState(this),io=arrayFrom(String(Mn));if(!cannotHaveUsernamePasswordPort(Fn)){Fn.username="";for(var fo=0;fo<io.length;fo++)Fn.username+=percentEncode(io[fo],userinfoPercentEncodeSet)}}),password:accessorDescriptor(getPassword,function(Mn){var Fn=getInternalURLState(this),io=arrayFrom(String(Mn));if(!cannotHaveUsernamePasswordPort(Fn)){Fn.password="";for(var fo=0;fo<io.length;fo++)Fn.password+=percentEncode(io[fo],userinfoPercentEncodeSet)}}),host:accessorDescriptor(getHost,function(Mn){var Fn=getInternalURLState(this);Fn.cannotBeABaseURL||parseURL(Fn,String(Mn),HOST)}),hostname:accessorDescriptor(getHostname,function(Mn){var Fn=getInternalURLState(this);Fn.cannotBeABaseURL||parseURL(Fn,String(Mn),HOSTNAME)}),port:accessorDescriptor(getPort,function(Mn){var Fn=getInternalURLState(this);cannotHaveUsernamePasswordPort(Fn)||(Mn=String(Mn),Mn==""?Fn.port=null:parseURL(Fn,Mn,PORT))}),pathname:accessorDescriptor(getPathname,function(Mn){var Fn=getInternalURLState(this);Fn.cannotBeABaseURL||(Fn.path=[],parseURL(Fn,Mn+"",PATH_START))}),search:accessorDescriptor(getSearch,function(Mn){var Fn=getInternalURLState(this);Mn=String(Mn),Mn==""?Fn.query=null:(Mn.charAt(0)=="?"&&(Mn=Mn.slice(1)),Fn.query="",parseURL(Fn,Mn,QUERY)),getInternalSearchParamsState(Fn.searchParams).updateSearchParams(Fn.query)}),searchParams:accessorDescriptor(getSearchParams),hash:accessorDescriptor(getHash,function(Mn){var Fn=getInternalURLState(this);if(Mn=String(Mn),Mn==""){Fn.fragment=null;return}Mn.charAt(0)=="#"&&(Mn=Mn.slice(1)),Fn.fragment="",parseURL(Fn,Mn,FRAGMENT)})});redefine$9(URLPrototype,"toJSON",function Mn(){return serializeURL.call(this)},{enumerable:!0});redefine$9(URLPrototype,"toString",function Mn(){return serializeURL.call(this)},{enumerable:!0});if(NativeURL){var nativeCreateObjectURL=NativeURL.createObjectURL,nativeRevokeObjectURL=NativeURL.revokeObjectURL;nativeCreateObjectURL&&redefine$9(URLConstructor,"createObjectURL",function(Fn){return nativeCreateObjectURL.apply(NativeURL,arguments)}),nativeRevokeObjectURL&&redefine$9(URLConstructor,"revokeObjectURL",function(Fn){return nativeRevokeObjectURL.apply(NativeURL,arguments)})}setToStringTag$6(URLConstructor,"URL");$$1$1({global:!0,forced:!USE_NATIVE_URL,sham:!DESCRIPTORS$b},{URL:URLConstructor});var $$7=_export$1;$$7({target:"URL",proto:!0,enumerable:!0},{toJSON:function Mn(){return URL.prototype.toString.call(this)}});function __awaiter$2(Mn,Fn,io,fo){function $o(mo){return mo instanceof io?mo:new io(function(Ao){Ao(mo)})}return new(io||(io=Promise))(function(mo,Ao){function jo(zo){try{Ho(fo.next(zo))}catch(Go){Ao(Go)}}function Lo(zo){try{Ho(fo.throw(zo))}catch(Go){Ao(Go)}}function Ho(zo){zo.done?mo(zo.value):$o(zo.value).then(jo,Lo)}Ho((fo=fo.apply(Mn,[])).next())})}typeof SuppressedError=="function"&&SuppressedError;var icon$2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAMAAABOo35HAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAD8UExURUdwTGx5rpLO8YOYx1Og0ly29X5ezR4mT0tiji4eWJ953KGn1Jxs7qB9xvfD/Us0gduu8yeh4HOq74dD647R91256eSz+j82cbvg/dSj/LuL79Wp6zCf24KN9xANGRANF59d/0W+/taa/8iN/3HL9uOn/z638Bil7l3G84TP+FHB8o5A/0i9/ZjU+47S+vq8/4Qy/S6w8O+x/5Rp/wyg7G2T/s+T/vO2/+qt/1qp/qDV/HyD/ki4+4R7/qnY/tyh/1Gx/ptU/76E/2bJ9Ld8/4t0/pxe+XvN9iOq7rB0/0i88aRk/6ps/z++/naL/mab/mGh/pVM/wub5mGd+fAEOhEAAAAgdFJOUwBEyWKA47EKJhnFluGA6l3H67Du6crdNOXs5q/I65rcQbfB9AAAIABJREFUeNrsnE9r4zoXxidOG9tNQqBvSrLKeKGF7WIz4J0WgSCuDc1s7vf/Mq/+S0d2p7Zkd7i0SsZJh3th+PGcR4+OpP748T3+4yNODofDKY2/SYxgdbhcfl4ul9M3rY9ZpZefbFwu6TeMD8dJwPp5Sb6l9eFIL5zW5TDoWrEc35wEjtOFDWPxjE2aJMkqWa3W6/WevuigPyVJ+tWngTg+HQ58PmSDQlqvt5Eax+jIBv2UY7umyL6u0JiMBK6DpETp4KqmL/ngX9hnwcEJYl8TGIV1EpzOEaNUCUBqFPwPfRX0W8GfFSPGgX255JCcTpwUByVY1WAU/FHwLxRWV3RdIYGtvhIvKqoVI0WriwoGK1CDvLi8JDouse5L8YqT08M2Op+vVFOYl54wJ+5PkppkJUkJZYlipN9RV1Ne69UXmCOT0zY6Xq+4Kip7GEYGmKZVyNF1ghj9whx//ZfltXQYTE/b8xnTUeFr1R82Lm7vwuPh6Cgz9jr+TVx8Mt+zcTgt0w6Ik310xIJVJXxdUaqgsIzH1w6tjlekxrVdpX/FSlb7zW63a+lrt3vazG8JFiqHVa2ewOQLlR70W1oX58XlhSiv7aerKz4xUvd7Rse9pWO32xxm/VfE6To64yt1KyEsgUt8ckT99GDsHUpL6oq9EaKT4+cWY5weNrvfbZtlNwqLfkpcM0o8XtFMhZlRUT7YYDLKEtmhsurQJNO6R0sEL0brk3FRWe3+ydpMDvblzpDtnvYz/SPihIYFzHRFYYE6xMazBnJWYTyrhsri4uqEfSESPX+WdcWnza7NbjemKyYpVob/Ml5Zu9vP0cmME1aBxZXDuSpdKWSGlK0qxUqteSxUphA7hLoOsednWVe8YiV4y34zTYkX9a4bhXejtbgJp8VQcVmJuDA4Gyp7d2K8TFn1oGnJWbEjqO5ywnLE5+iK8mGyEnbFlMV0dWO1GEyLmhWdA1kKrdiTG7y2duPvss3QWx1qVLVLSxZiJwRWdOQTxJXsd9qrGKvMHsznn4JocbNic6B5KWW5wlLMBmbDesjcOzN4KZLj0uKKD7tWcslcVIJgiLbi1fasSYk3p2WUJTsOdsqqHGVBw9I5q7BQcVp0XlxYXKdNa4Tlqkp8/uNNi0UrzupqawsLd8cYqqoXSkHOqu0ED5SF1AshQo1+tRyteM+F1RhGjXy0oiwZLU9txWwdKEhpTKIIjWv1pDUQHGpXW66uUGfTWi8WIk5Pd6Ao5VqNNDCGq7170WIx9IqFqq4iuXNUVyWr95RVDeYsSKqwPEvSkrgQLcXFhHW/STz8T2uqz9DKfHwrPVisMP/GSV0tZdkxvq6qgf6fzu+1hQsoC+mwRQd/Pi5kXOnmt+Jh53fH4mkG220m/gOSh0gpyuBSVVhhuNxRsbRfh+5sCH1LCqpjvNg39kHYrLiIcfEqZHwah5DzM8tbk2glbBbEVgHKqVANMxViJzvApWFd9wOWcng9FSrHQtLpaUJdgFa8euqHheExzeWptRuzMgqzgpaO8bClVVXuhoXSVT0kLCEtwUo+mG2hxwVoxetdNhYW09YkXUFQ3LIMJ1OJGPJyFoiqVVrD6K6VpSdCpS0xlqjEdD8a1hRa8fYs8DiuBUrRpSWF1e/+DbSzrCq0YpaaDjv2mJ9Wutll9w8xNWKGpLT242gl0fnDEsRDylKkqoF2Vu24FoxYcsGjypDQEa3npRVvRllWw8MXXWGPpJVE0bXvWCad2sLCfc9yZkSoqkI3suyljnQrrimOi+Q5mplWuhnp7zKqUm2lo6wQlqGqQygsteDBoAFfuWsdp1Oquu+82dBZyoKuRdhr3kqksMbSov8dja8jtZVsoyFlye6DrSwtLVxbydQA05hqW1qOZ1mrQ1GENGyxx7y0KKzbOFgNz6ajXT5xogO+2j0H4Fm2tNxeqZXgB5SF3JQFBnWtefPW2DJsVLRvR9KKk4GgpV1LSQv0HjDcwh8CpTfCQHPGWJampF1+zrw12rPElDghQXBa2PV3LFc9lrIwbCtbs2ExBMzOo9ZEqCtQUpLFmOfH59lW1emYAN+2rb1snEDrHWm56QE7uAZmQ1iInb3QkaTEgwhgiIgPNCetdNxqpzUmn4kexFhauOdbYDVtdwAr9zzb8JahyqSwCjtkS4vwwX/K82g7T38rnqgs9Rf30S5/xX9QlhO1avNyldVzeKejbKpQSosI46Jhi+Rzxa109DoajFs2ntYfpNWbEHstmrofsmQZFrD5Dk2LCJNnpkWBoXlMPh4Jq4ENG563vLTVC1qgDut+F75/5AiUIfR36er6Wy4URrp5bCsZBavpb2fcRva3+tqCMb7CTg+w6p8qfb8MkeblmpaweOZblFl5nKPRHHuW4fj+FshbeIgXPPBQgSNa8iwpnAjtIjTuToBpyaW0GvPYFlXWPYTWhDnRNJcx1rs8yrC0ZfWOO4CGA5gLkW1ZrJ2skAlBWQPl5CXctpiyfGG12ciVz0lWIjZLa6Osyj3XVtfvG5YmVViGZa11pGUREUpFepDSIjPYlqeyGtXfmpK3sNUAtGj1TmnB3p+7aWiON1jW3klJ6ToEwqKoaNp6iP8KrEa5/di8dbLnRNxrl1Z21JLLRJgd3MMzrrur7E6QeQBYpCRRMkPO8itDtbc4tmNzBgZvw3Kb8AM7PEJbmhXYMESgj0V0yDI1mHNplcdgafkbPKfF9hPHnA0cWPmArGV1acCJtt5+YQH9ynYsgvS6EDllSGnRKB/s8QEGb3Yxxs6Jg5YFtyyArApnbSjPdPcSKQLKUgbveFYe7vFB0WFKf6u3kYhB9wH2ljUrFUrroe1CI6qOGGERhFCfE/8IlVaYsqZ0bNTKB2OVIrBTifJy4cAR3HcWOhKYG0d7M+Fc0vJTlld/C86JIGrpJQ/olaqLTXVtoSqsRGpWOTC5m3DFKTFQ3LVCc7yXstp+f2vUno/JW043XsbSuhq4kDJ07hZurMJAOmBXiloZJi3fBN/CoyNsPzGdsPKxYZmzy8KvsK5F9WUok0LXIqCfbCJDrljlYpRh0krDytBaJ07RluNa8Jj3UV0if5b3pu2DpI6yYMAyjQYrMhD9CpVWHBwdVH/r9xRaIMTbTRoBar9aJWKs+H1XSqxn8JpVJ2dDiQrBKEqAsgKlFbaQhnlrdCVewTa+Vha/X89+iUMM/49EACsKc/IdwfMNBLRIkWtYufb5IGkxZbE7AtMXh9nAefnt6P1ErNfV8iYPxmd2QeKdS3txslpTXPJeU1cg5PRnUK/+BB9LVDNIi+0btu2f3Gg0vZFnbHQPomK3U0Qgra7nj26Is9s/xyOlUxRDZ9d0KLXjlealPCsnQdJK+CZrm80w2imVKLqB/HoKV9W7ooK4okJ1sxCMWUQld2QbFvArupbmrZpVgLL+xy6DZfdwUqzLNS1viWXO9Rptk1E7e1xdtAaVbSHU26oAwT03ZiWZlbQO/ZsPFNbrLbsNH7qd0gzU57fS8VmeX9SkFTj+kH+SbKNanGCTJ7E63vgjCEYsouZBRYm7OzP4kL4WhfXr9XYb3H+ePjfesmYCLd6Jv068bMPEpY/O2Cdm1E40sqrQrUTOy9/iGSxFqwlgpc9vNU9jK5HdAJ4kK3W++vkIt+w7qzmK+v0GC1Qelh44rF//3uTN6CbMuW6j89aPlHdsztH0y7rsArGqxM5q+BF3BW3lK0WLLRD9LV7Aotq6ZzJvNb7RwfS3Rs2JlBaNml7XRpLt8UiorApwykjHhtwOC4ZUKT/KR986lLAorYErdF7r63a0ttbedwOpcRHSdXCXAsYG1fIjDi/28K1DBYvTalvv4OD0t0ZpK/b/JRuMlrMJTdw8CrO7paz8JRSW0FZIx9Ta8hmprZBuCaWVy/1CGLGsuK54lcLdpbJy7zo0sLhvZd77Yg04NHJfntY2Mg1lgnrtPuDrSloS1+NzGgpLJoh7gLIm97dCGuLbI4E79o6/W7hIqVmVtAx969CG1U+nPnOizBC/F6e1itR2DhlY5pjuqO1ZUlovq3BYglbr5fONX38rpCW+juz9HOT0sGzLKqVxleLta1oQFvetW3Zv5+lBbBf+HQvUtuSBoj/VoPH4UqAqc+JnWg4sOSe2QctEfdBmwv1EP9uKOnUeC2gqH/YrSYo9/JKWC4vTus0grAnpNLAQYcJyls9lbmJDKQ2ePl7mgRWUt5yY2ixNK3k+8gPJTsCydSVQKUxSWW+PXhv5fVgib4V2A6f1t/yldRwMDU5TRvAy0aEs0cNMsGbpb8lfntE0y9JKoiM76O4IK7eDOzAshuqNKeshnQmWS6v1tq3x9xP9XYvYsKyOe8nempYsQEXMz+FF82+YVtuG2tZtcd+iyZRYW6nvKctQkuMlmUtZpr/VhvsWpbVdjla6PZZcWQ4qKCrbsdh4K70yvFbW68Cc6N+yUbm0bTit5bQVr6J8uN0ODMtW1hufDn0yPNvd+TWsLf9EqhY+7LNZ2OWTl37/2O7J6LhgAXsLgcVxvc6Yt8zvSWKLxmZJWunzsXRxldzaS9utchsVez94K+v11+uwbwVKq2kFrHY5WjRqlWYjh6jFoFw8A1BvFqvH5yBlDWnLt2Uj9qcbRqvhymr+T9vZtTaOZGG4m51O3M3AsDOEgaEDXhjsxr6JcXxh3AKLHQnFDk68/v//ZavOV51TVfKHpJRkxUl6LubhOW+dKtlO9VG0fGhFrajsxiihfqi8grPLUpphtbhV9lhH4wdN4fjA3Pr88PcPvcahXQZdgRoVserUaHEZiluGGd5P7BD0TqeyFq18xn8YrdHvf4fmXWJd1oNRg7Wj8z8P3WA9zcmsltwqO9JybQMdOD6oEu//lXRY0X6MTIEECi4dYc0F1DzfQdy8v+UJ4bnU4/FDaEGnlZglpH7sog6LaHWGRbjmuZiH/a36JqfGJbGKYDm3PuJDMSHhCdR/bRf6Q9XezuT7rpdZ8/ZK7HDHgutPToL17QNoueUhvxg5tA2zdDm4I2a7fmXIauV53XY/sQ51aMWq3OHduv8QWDOJLIXqh4703Uyfuy6LQzILec3T+TB7P7E+qxaQqmOriNcH0Bo9yEvVeB6cmbTaxcB2HVfSbBYAw2JM7bpyfwuLcImJtRwniQWX6tvQtD4/SNdOG6N6caP7djnc+PJ5gMxq706vuZ+4ZLeYVSSWgzW4W86szK6MXTdrWjt4dHk7nZg1n8/VtBhXI+xvjc/uby3JqmWmaSCxMLaGdotghbUg35UIMs0w1yned2jWfefM0p3pvGUP4qJZwoucGusCJFp+fBv0k/hGDz/0YtDs8dneKqCaDGKWZNdT4tbljrTWdbhMpkJmVT3+OiQtB2um7jnbxY0qQJ1YPcyai1y6i8j2W/t2qZYRqXEovzpYVQ3uFpo1i7YZQv3586cpQW9Wl92/XGaZ6DK5db4/LTmyIrGqcHwELc4sm+ncJESUhoL1FBqurFpP6t0F7QvCjFdwFlqsQWn5MkxWzrtMtyCgJu4yhFmm45onbpXnb1EsWxosa1WBtIaaEwFWvBZUC5uIFdLqDusYVaEqQusXvV7+TOfOk+BYNe2+XYi88mOolIeAT2/ghElwNrOoepnlWR3n84xhmQ6i9fVb3F2N064dkSmzCj8eB3Jr9CDNle7Wd7swD052P9GncBmoDMPM+DTP3/NJtmw8onKZmwi5Fw2kioqOohiGlocFbu1UtxDSPVSeOXqU4TFHLJv14FYN7xVe2i0stcixabXUNViwWJV3a4hKFLNmihdTwifCKDzpUYZHC0zahywtiK19VIDpRMiNu80rJZaj9fsAtBjWTjUMO92ua7Xw7BnwSOqYmpVu2+A6Mbzblxv3fIdly7CAMgxjiA4CYamJb5ZMfgGVXL/80sMsVqtlZmztIJZxgxUCq9LrQc0KcG38uRmgEo1ZyqbJ2aM7LMaVZpfs3cyztPCtFRmvKu5IbbqHCgRag1QiwFJTn2GlmanI6m+W+HWMaCVuHZlW3da5i1TWrFCDHtVmsxmAloMlQTWTXQWKp0kUVSHgf+kd8MfsnJj2XEfcCoTw2ktoRfvtUeMeEqsiq1wZAq1+f6uKzOJdPV2CkxSS59cPVnokXVfccdWv+HmS/iVY+2XYw4q2RTWqQoe7w7QZhhaYtTPrZQ3JcuJHH1hH/7DhdcxFl4w7/5dJa9pp2OdWg8s42yuNisXyoyctb1ayUtZJBXAmhItpdYSFlEItJlH/xIvroNcfd3/+dkevvvKvWEv3RdMaND0DmMW0Nr1oebNyLdXErnCi0RkWD7aLWJ1x64/fvn79fId/7HZZi1e1whRt91FYVRmzerpFZXi2X5jIV8bWDVZ9LAWUkMo1EtJ1Aaz7T/fOrVevVT3WVsUb7rJyjkixWQd39HILzTJNekBjrhOFqxesSK44up4ULoL16etvd/tXvPds072qkiosKqa1kcZBxPK4utNCWJNs/ck1HovesCDobXTlNm3mHhb8x86t2t7ICbcmosCy6b7hA8069KFFZsVa7VSq6yeTvmVYGrtEMNui6m1nMMv915/vKKdqulTSt5ttGdlpUGFlxDocDo933WiNHtKEujAWPc0qLau5jq9owRhgebd0uHupinQbWa8HqXUnXAcgBaxWh45uxbAmqldQeOiER68yLMsScSlk8zpdWwsyhgWViFpVyzTZk/WglKASC6rw4HF1oxVgtXQJA5tVloKq1Dmvp8fjXG1yCSxPqwpuKbVUMxol1maz4XTHqRBjyz2+dKE1ejgPCYyyhzs7wgJSZUlfkuyisrSGBVi+g6jiFWGVqEW0glgqsCCywK1OKe9gRY1CWnxcfwuB1xkWc4IncTWa3YgjNRAKFtGqlrl90ciqWCzMduAEo1NueViZOmOFBJvF1QXWCM2CzEJmx1SxOOafDCxPCzjV0GApXoXZdGepCh1X9GBYqw65hWYlrGwJmktvsxAXSEWtRGnnRtN6GVjgVpXZkpEVYdUa7oeN9srBWt2cWzmzJtqsuBi7Z9Y3gCU1SJXIlqXtRA4Wp3yyHoxQ8RZWCCsK9kDLfXcrLQ9rkYZ5kCgN+K5mMSxGFqqR7Kqj+IJLBAtzq1qmPYPdwrK9aJgHoQLJrMOtuQVmJYjgXOgiNN9MBoClHHOUyriz5+g6xrDAragOw3KwkPWNFCEtcgQVksLr6TZaZFb7KZR6Z5aDNfbv/ir5UqoqlGqsfYuq6jGBhbRyN1PNPFgYs6QAV+HwxG7LLQernU/4brHAi79O+phV+3Os1QpVidkPvKivd5cUVkRLbnpVIlZh58GDqkGsQjpXb7f18lSGhtWCSjBAmqjrortZY4+pRrESwUqFS6mVgWVpFYlaG7V8Pti8Ikj0ZXXjnAhmLfQ5YVDqqYDql1ke1jjQMry4Eo/Y53PY58yiDsJsM5gGy/buB91fHYhVGDek/Oi7AWN1khqkn6FYPc1CYgxprHDRUsi2qVlYwa1CZ9aGOyyn1SFaO4cGS+N6W51ucGv0fTGxXlnBFgttFz/vCsvfLGVa4NhYcCGyY62v3rA8rOBW6LA20jUUei3Im1hhKgyk4Pp29arawbJjop43Ot0n8rNFD1j0MVBAyrHSuPx3ZoKEamyBxbQKfTdHljgFpxUvni0qKcM3h8qN1ZX3qhWsiSq/JsKmYPpf/bsrrJI+6hftGktdcoJFRXlsNYtpFXaJYzZGD3bxvDJinUgsr9bpykqMzGqUPnSNqPkfTjrC2qcfkFyOpSxrnfiyOfFrGyykpefBTaEXz9E8uJJ+VInlI4vduoJWBGvSLK4ZA8ESZPi1DGVZcpNRtpoFtEzPYBpRnALtrowpQc4sxHX6ckUlOlgN+nQBk9arh1l7OrLAalWTXJXtZqFbUS9qbk4c1EYyLQkF1xtVIMXW++mKSiSzCFdDlwy5ZjCz8NPYWqjpyMce9gwscMvcdi4MqDiwbIPlig9JrQDW6XLKs1lGL/u0SdB1N2vvxhgeltWeQOFnO2F/AW7V58zCfqsw97z0grAt3FEsZPUORXg6gVsXaOnMaoSOMo1/1ah/1nSHxQcz4xPJ7eUznsSzs2ZRJRZF1LdT9W3OouLGwU2GDta7w3aJFpnVhPJrDJ7G/gwf/cxiu1gxOeGo4aAPfPefnHwelneL2lHdim7OspIqpHHy4/39Ii0d8E2sUfhBNAv0gIVA9qKXyMWo8M8QwMce+uMSLMotuxq02wwZrzwqYYW0PKwLtDwsB6KhSxNUEoKNqVP4TVdY2RFwuVHTQ8ZFWOBWYe7Qm3VzbpHDnTtOhG/vPNbvp3O0Rt+bhlGFcmzEpsY84cegsOzwRYiVCI8rYHm3HjniDxu7MarMsmqFxDoJqbW7nnOLYZFYGlljZsfmw8w6P66ABbSCVXb/KrCKpsFQgGTWybFar8/RElgtgkXNF3zpDOvV/c+/wtk2kl+91lfA8q+xeTQNVnTXK+MV8joRrTcQy7t1WrfT8rCm7rDEwhFCKyRZD1ivROsVTz7CU48Hjj3942vMgtx6DHtYuRoM+wzgFdegEwraBjDrtPZne245WFODa5EyW1hinc16JRpBL4WIkfkTBn7zch2sT/d/3lVKLLMzGtL9zezMYLxLuK9JrnWrW6Pv0ymgmvqvLQOLk89FH1ivTIUhAROtGP8S/+XrlbA+3VMl4vbVJocq6q5wInS03kLCr5lW9p1cDhZyimuxaTLJz5r1MUtXnsYkHMUtP16uhoW0HKeVeQVI3GCtQsC/265BxPIpn/3kCjZrinKdI7YI0HqZJVwUMEtIf3ctLKjEx41e56R3clCslXglWgGkdzrWbZUIsIDV9KJbIfS7wopNujxerof16SvQStbPqh19W0WstFlrMWvrjhwthBWAYX41TWt+NU0/WFcRen2h8+UWWOiWbbHS2xOrRKt3UYpTfutwZWgFWOQWxDxNkPkkW0y7wnrZnyUEpx9Myz/55wZYQCu8SkZe0hDFO+z5ua7hzXglgYVjkqHlYT1PY2DypSX3hzbrhVGFg8S6ySyitUn7dtW4UzNKvZUmpVk5uVJaDtYzY9K0zrLqCusl8QiBvITn8iMef90Ei93KRLtZ5mSLkONq61vTHK3R92ej1tRY1UiG6THtAYvNoZMtwrrjIlTjn9vMIlq5lbPak1G5rkgJLjdmp+02peVhAa7nJkn6WLJesO4BFvIJGW4jKgL18o87bjTLDaAVrQdDWtEsqHCZuNqiXOstDttvEayp8at5bkI3kavHHma9hHKTQE8oMSl33A4rdSvpGUJgSXvlzi2H1RaKMXWLyjCuxQSUUqyzWVJsJphSTMypo1mf7kdIK4DSeaXbqzWtCY1ZAsqPn5qWg/X8jLQI2rT5nyR+nldXs15UQOkyNJg0KT86wLK01B7y6i1e5di2fcsZvyW9ttv/83Z+PY3kWBSHpdkkZBtlHjYtQr9UlaCkliXUKGuIZClRKQ8QbQlU+f7{"ActionError":{"index":0,"kind":{"FunctionCallError":{"CompilationError":{"CodeDoesNotExist":{"account_id":"web4.nearbuilders.testnet"}}}}}}
1 automatic refund step from the network not shown.
This page reads FastNEAR's public transaction index and stores nothing. This command asks a NEAR archival node for the same transaction and needs no keys.
curl -s https://archival-rpc.testnet.fastnear.com -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"tx","params":{"tx_hash":"EHRCk1PjHDtypjizxHk2CNHfq8Nyjet4vTwSQivSiVKi","sender_account_id":"web4.nearbuilders.testnet","wait_until":"FINAL"}}'Vouch has its own page because testnet.nearblocks.io stopped indexing on 27 Sep 2026, so it can't show newer transactions.