From 6a5245acf71cb13fd56740a32de7ded2337d7491 Mon Sep 17 00:00:00 2001 From: thekiba Date: Tue, 28 May 2024 20:10:37 +0400 Subject: [PATCH] chore: rebuild --- .../{index-c68c88af.js => index-3ff5a132.js} | 44 +++++++++---------- docs/index.html | 2 +- 2 files changed, 23 insertions(+), 23 deletions(-) rename docs/assets/{index-c68c88af.js => index-3ff5a132.js} (95%) diff --git a/docs/assets/index-c68c88af.js b/docs/assets/index-3ff5a132.js similarity index 95% rename from docs/assets/index-c68c88af.js rename to docs/assets/index-3ff5a132.js index 828d4c5..1d43546 100644 --- a/docs/assets/index-c68c88af.js +++ b/docs/assets/index-3ff5a132.js @@ -38,7 +38,7 @@ object-assign Error generating stack: `+$.message+` `+$.stack}return{value:b,source:_,stack:j}}function Ni(b,_){try{console.error(_.value)}catch(d){setTimeout(function(){throw d})}}var Oi=typeof WeakMap=="function"?WeakMap:Map;function Pi(b,_,d){d=zg(-1,d),d.tag=3,d.payload={element:null};var k=_.value;return d.callback=function(){Qi||(Qi=!0,Ri=k),Ni(b,_)},d}function Si(b,_,d){d=zg(-1,d),d.tag=3;var k=b.type.getDerivedStateFromError;if(typeof k=="function"){var j=_.value;d.payload=function(){return Ni(b,_),k(j)}}var $=b.stateNode;return $!==null&&typeof $.componentDidCatch=="function"&&(d.callback=function(){typeof k!="function"&&(Ti===null?Ti=new Set([this]):Ti.add(this),Ni(b,_));var et=_.stack;this.componentDidCatch(_.value,{componentStack:et!==null?et:""})}),d}var Ui=typeof WeakSet=="function"?WeakSet:Set;function Vi(b){var _=b.ref;if(_!==null)if(typeof _=="function")try{_(null)}catch(d){Wi(b,d)}else _.current=null}function Xi(b,_){switch(_.tag){case 0:case 11:case 15:case 22:return;case 1:if(_.flags&256&&b!==null){var d=b.memoizedProps,k=b.memoizedState;b=_.stateNode,_=b.getSnapshotBeforeUpdate(_.elementType===_.type?d:lg(_.type,d),k),b.__reactInternalSnapshotBeforeUpdate=_}return;case 3:_.flags&256&&qf(_.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(y(163))}function Yi(b,_,d){switch(d.tag){case 0:case 11:case 15:case 22:if(_=d.updateQueue,_=_!==null?_.lastEffect:null,_!==null){b=_=_.next;do{if((b.tag&3)===3){var k=b.create;b.destroy=k()}b=b.next}while(b!==_)}if(_=d.updateQueue,_=_!==null?_.lastEffect:null,_!==null){b=_=_.next;do{var j=b;k=j.next,j=j.tag,j&4&&j&1&&(Zi(d,b),$i(d,b)),b=k}while(b!==_)}return;case 1:b=d.stateNode,d.flags&4&&(_===null?b.componentDidMount():(k=d.elementType===d.type?_.memoizedProps:lg(d.type,_.memoizedProps),b.componentDidUpdate(k,_.memoizedState,b.__reactInternalSnapshotBeforeUpdate))),_=d.updateQueue,_!==null&&Eg(d,_,b);return;case 3:if(_=d.updateQueue,_!==null){if(b=null,d.child!==null)switch(d.child.tag){case 5:b=d.child.stateNode;break;case 1:b=d.child.stateNode}Eg(d,_,b)}return;case 5:b=d.stateNode,_===null&&d.flags&4&&mf(d.type,d.memoizedProps)&&b.focus();return;case 6:return;case 4:return;case 12:return;case 13:d.memoizedState===null&&(d=d.alternate,d!==null&&(d=d.memoizedState,d!==null&&(d=d.dehydrated,d!==null&&Cc(d))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(y(163))}function aj(b,_){for(var d=b;;){if(d.tag===5){var k=d.stateNode;if(_)k=k.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none";else{k=d.stateNode;var j=d.memoizedProps.style;j=j!=null&&j.hasOwnProperty("display")?j.display:null,k.style.display=sb("display",j)}}else if(d.tag===6)d.stateNode.nodeValue=_?"":d.memoizedProps;else if((d.tag!==23&&d.tag!==24||d.memoizedState===null||d===b)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===b)break;for(;d.sibling===null;){if(d.return===null||d.return===b)return;d=d.return}d.sibling.return=d.return,d=d.sibling}}function bj(b,_){if(Mf&&typeof Mf.onCommitFiberUnmount=="function")try{Mf.onCommitFiberUnmount(Lf,_)}catch{}switch(_.tag){case 0:case 11:case 14:case 15:case 22:if(b=_.updateQueue,b!==null&&(b=b.lastEffect,b!==null)){var d=b=b.next;do{var k=d,j=k.destroy;if(k=k.tag,j!==void 0)if(k&4)Zi(_,d);else{k=_;try{j()}catch($){Wi(k,$)}}d=d.next}while(d!==b)}break;case 1:if(Vi(_),b=_.stateNode,typeof b.componentWillUnmount=="function")try{b.props=_.memoizedProps,b.state=_.memoizedState,b.componentWillUnmount()}catch($){Wi(_,$)}break;case 5:Vi(_);break;case 4:cj(b,_)}}function dj(b){b.alternate=null,b.child=null,b.dependencies=null,b.firstEffect=null,b.lastEffect=null,b.memoizedProps=null,b.memoizedState=null,b.pendingProps=null,b.return=null,b.updateQueue=null}function ej(b){return b.tag===5||b.tag===3||b.tag===4}function fj(b){e:{for(var _=b.return;_!==null;){if(ej(_))break e;_=_.return}throw Error(y(160))}var d=_;switch(_=d.stateNode,d.tag){case 5:var k=!1;break;case 3:_=_.containerInfo,k=!0;break;case 4:_=_.containerInfo,k=!0;break;default:throw Error(y(161))}d.flags&16&&(pb(_,""),d.flags&=-17);e:t:for(d=b;;){for(;d.sibling===null;){if(d.return===null||ej(d.return)){d=null;break e}d=d.return}for(d.sibling.return=d.return,d=d.sibling;d.tag!==5&&d.tag!==6&&d.tag!==18;){if(d.flags&2||d.child===null||d.tag===4)continue t;d.child.return=d,d=d.child}if(!(d.flags&2)){d=d.stateNode;break e}}k?gj(b,d,_):hj(b,d,_)}function gj(b,_,d){var k=b.tag,j=k===5||k===6;if(j)b=j?b.stateNode:b.stateNode.instance,_?d.nodeType===8?d.parentNode.insertBefore(b,_):d.insertBefore(b,_):(d.nodeType===8?(_=d.parentNode,_.insertBefore(b,d)):(_=d,_.appendChild(b)),d=d._reactRootContainer,d!=null||_.onclick!==null||(_.onclick=jf));else if(k!==4&&(b=b.child,b!==null))for(gj(b,_,d),b=b.sibling;b!==null;)gj(b,_,d),b=b.sibling}function hj(b,_,d){var k=b.tag,j=k===5||k===6;if(j)b=j?b.stateNode:b.stateNode.instance,_?d.insertBefore(b,_):d.appendChild(b);else if(k!==4&&(b=b.child,b!==null))for(hj(b,_,d),b=b.sibling;b!==null;)hj(b,_,d),b=b.sibling}function cj(b,_){for(var d=_,k=!1,j,$;;){if(!k){k=d.return;e:for(;;){if(k===null)throw Error(y(160));switch(j=k.stateNode,k.tag){case 5:$=!1;break e;case 3:j=j.containerInfo,$=!0;break e;case 4:j=j.containerInfo,$=!0;break e}k=k.return}k=!0}if(d.tag===5||d.tag===6){e:for(var et=b,tt=d,rt=tt;;)if(bj(et,rt),rt.child!==null&&rt.tag!==4)rt.child.return=rt,rt=rt.child;else{if(rt===tt)break e;for(;rt.sibling===null;){if(rt.return===null||rt.return===tt)break e;rt=rt.return}rt.sibling.return=rt.return,rt=rt.sibling}$?(et=j,tt=d.stateNode,et.nodeType===8?et.parentNode.removeChild(tt):et.removeChild(tt)):j.removeChild(d.stateNode)}else if(d.tag===4){if(d.child!==null){j=d.stateNode.containerInfo,$=!0,d.child.return=d,d=d.child;continue}}else if(bj(b,d),d.child!==null){d.child.return=d,d=d.child;continue}if(d===_)break;for(;d.sibling===null;){if(d.return===null||d.return===_)return;d=d.return,d.tag===4&&(k=!1)}d.sibling.return=d.return,d=d.sibling}}function ij(b,_){switch(_.tag){case 0:case 11:case 14:case 15:case 22:var d=_.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var k=d=d.next;do(k.tag&3)===3&&(b=k.destroy,k.destroy=void 0,b!==void 0&&b()),k=k.next;while(k!==d)}return;case 1:return;case 5:if(d=_.stateNode,d!=null){k=_.memoizedProps;var j=b!==null?b.memoizedProps:k;b=_.type;var $=_.updateQueue;if(_.updateQueue=null,$!==null){for(d[xf]=k,b==="input"&&k.type==="radio"&&k.name!=null&&$a(d,k),wb(b,j),_=wb(b,k),j=0;j<$.length;j+=2){var et=$[j],tt=$[j+1];et==="style"?tb(d,tt):et==="dangerouslySetInnerHTML"?ob(d,tt):et==="children"?pb(d,tt):qa(d,et,tt,_)}switch(b){case"input":ab(d,k);break;case"textarea":ib(d,k);break;case"select":b=d._wrapperState.wasMultiple,d._wrapperState.wasMultiple=!!k.multiple,$=k.value,$!=null?fb(d,!!k.multiple,$,!1):b!==!!k.multiple&&(k.defaultValue!=null?fb(d,!!k.multiple,k.defaultValue,!0):fb(d,!!k.multiple,k.multiple?[]:"",!1))}}}return;case 6:if(_.stateNode===null)throw Error(y(162));_.stateNode.nodeValue=_.memoizedProps;return;case 3:d=_.stateNode,d.hydrate&&(d.hydrate=!1,Cc(d.containerInfo));return;case 12:return;case 13:_.memoizedState!==null&&(jj=O(),aj(_.child,!0)),kj(_);return;case 19:kj(_);return;case 17:return;case 23:case 24:aj(_,_.memoizedState!==null);return}throw Error(y(163))}function kj(b){var _=b.updateQueue;if(_!==null){b.updateQueue=null;var d=b.stateNode;d===null&&(d=b.stateNode=new Ui),_.forEach(function(k){var j=lj.bind(null,b,k);d.has(k)||(d.add(k),k.then(j,j))})}}function mj(b,_){return b!==null&&(b=b.memoizedState,b===null||b.dehydrated!==null)?(_=_.memoizedState,_!==null&&_.dehydrated===null):!1}var nj=Math.ceil,oj=ra.ReactCurrentDispatcher,pj=ra.ReactCurrentOwner,X=0,U=null,Y=null,W=0,qj=0,rj=Bf(0),V=0,sj=null,tj=0,Dg=0,Hi=0,uj=0,vj=null,jj=0,Ji=1/0;function wj(){Ji=O()+500}var Z=null,Qi=!1,Ri=null,Ti=null,xj=!1,yj=null,zj=90,Aj=[],Bj=[],Cj=null,Dj=0,Ej=null,Fj=-1,Gj=0,Hj=0,Ij=null,Jj=!1;function Hg(){return X&48?O():Fj!==-1?Fj:Fj=O()}function Ig(b){if(b=b.mode,!(b&2))return 1;if(!(b&4))return eg()===99?1:2;if(Gj===0&&(Gj=tj),kg.transition!==0){Hj!==0&&(Hj=vj!==null?vj.pendingLanes:0),b=Gj;var _=4186112&~Hj;return _&=-_,_===0&&(b=4186112&~b,_=b&-b,_===0&&(_=8192)),_}return b=eg(),X&4&&b===98?b=Xc(12,Gj):(b=Sc(b),b=Xc(b,Gj)),b}function Jg(b,_,d){if(50j&&(j=et),d&=~$}if(d=j,d=O()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*nj(d/1960))-d,10 component higher in the tree to provide a loading indicator or placeholder to display.`)}V!==5&&(V=2),rt=Mi(rt,tt),it=et;do{switch(it.tag){case 3:$=rt,it.flags|=4096,_&=-_,it.lanes|=_;var wt=Pi(it,$,_);Bg(it,wt);break e;case 1:$=rt;var yt=it.type,vt=it.stateNode;if(!(it.flags&64)&&(typeof yt.getDerivedStateFromError=="function"||vt!==null&&typeof vt.componentDidCatch=="function"&&(Ti===null||!Ti.has(vt)))){it.flags|=4096,_&=-_,it.lanes|=_;var St=Si(it,$,_);Bg(it,St);break e}}it=it.return}while(it!==null)}Zj(d)}catch(xt){_=xt,Y===d&&d!==null&&(Y=d=d.return);continue}break}while(1)}function Pj(){var b=oj.current;return oj.current=Gh,b===null?Gh:b}function Tj(b,_){var d=X;X|=16;var k=Pj();U===b&&W===_||Qj(b,_);do try{ak();break}catch(j){Sj(b,j)}while(1);if(qg(),X=d,oj.current=k,Y!==null)throw Error(y(261));return U=null,W=0,V}function ak(){for(;Y!==null;)bk(Y)}function Rj(){for(;Y!==null&&!Qf();)bk(Y)}function bk(b){var _=ck(b.alternate,b,qj);b.memoizedProps=b.pendingProps,_===null?Zj(b):Y=_,pj.current=null}function Zj(b){var _=b;do{var d=_.alternate;if(b=_.return,_.flags&2048){if(d=Li(_),d!==null){d.flags&=2047,Y=d;return}b!==null&&(b.firstEffect=b.lastEffect=null,b.flags|=2048)}else{if(d=Gi(d,_,qj),d!==null){Y=d;return}if(d=_,d.tag!==24&&d.tag!==23||d.memoizedState===null||qj&1073741824||!(d.mode&4)){for(var k=0,j=d.child;j!==null;)k|=j.lanes|j.childLanes,j=j.sibling;d.childLanes=k}b!==null&&!(b.flags&2048)&&(b.firstEffect===null&&(b.firstEffect=_.firstEffect),_.lastEffect!==null&&(b.lastEffect!==null&&(b.lastEffect.nextEffect=_.firstEffect),b.lastEffect=_.lastEffect),1<_.flags&&(b.lastEffect!==null?b.lastEffect.nextEffect=_:b.firstEffect=_,b.lastEffect=_))}if(_=_.sibling,_!==null){Y=_;return}Y=_=b}while(_!==null);V===0&&(V=5)}function Uj(b){var _=eg();return gg(99,dk.bind(null,b,_)),null}function dk(b,_){do Oj();while(yj!==null);if(X&48)throw Error(y(327));var d=b.finishedWork;if(d===null)return null;if(b.finishedWork=null,b.finishedLanes=0,d===b.current)throw Error(y(177));b.callbackNode=null;var k=d.lanes|d.childLanes,j=k,$=b.pendingLanes&~j;b.pendingLanes=j,b.suspendedLanes=0,b.pingedLanes=0,b.expiredLanes&=j,b.mutableReadLanes&=j,b.entangledLanes&=j,j=b.entanglements;for(var et=b.eventTimes,tt=b.expirationTimes;0<$;){var rt=31-Vc($),nt=1<et&&(tt=et,et=wt,wt=tt),tt=Le(ct,wt),$=Le(ct,et),tt&&$&&(lt.rangeCount!==1||lt.anchorNode!==tt.node||lt.anchorOffset!==tt.offset||lt.focusNode!==$.node||lt.focusOffset!==$.offset)&&(pt=pt.createRange(),pt.setStart(tt.node,tt.offset),lt.removeAllRanges(),wt>et?(lt.addRange(pt),lt.extend($.node,$.offset)):(pt.setEnd($.node,$.offset),lt.addRange(pt)))))),pt=[],lt=ct;lt=lt.parentNode;)lt.nodeType===1&&pt.push({element:lt,left:lt.scrollLeft,top:lt.scrollTop});for(typeof ct.focus=="function"&&ct.focus(),ct=0;ctO()-jj?Qj(b,0):uj|=d),Mj(b,_)}function lj(b,_){var d=b.stateNode;d!==null&&d.delete(_),_=0,_===0&&(_=b.mode,_&2?_&4?(Gj===0&&(Gj=tj),_=Yc(62914560&~Gj),_===0&&(_=4194304)):_=eg()===99?1:2:_=1),d=Hg(),b=Kj(b,_),b!==null&&($c(b,_,d),Mj(b,d))}var ck;ck=function(b,_,d){var k=_.lanes;if(b!==null)if(b.memoizedProps!==_.pendingProps||N.current)ug=!0;else if(d&k)ug=!!(b.flags&16384);else{switch(ug=!1,_.tag){case 3:ri(_),sh();break;case 5:gh(_);break;case 1:Ff(_.type)&&Jf(_);break;case 4:eh(_,_.stateNode.containerInfo);break;case 10:k=_.memoizedProps.value;var j=_.type._context;I(mg,j._currentValue),j._currentValue=k;break;case 13:if(_.memoizedState!==null)return d&_.child.childLanes?ti(b,_,d):(I(P$1,P$1.current&1),_=hi(b,_,d),_!==null?_.sibling:null);I(P$1,P$1.current&1);break;case 19:if(k=(d&_.childLanes)!==0,b.flags&64){if(k)return Ai(b,_,d);_.flags|=64}if(j=_.memoizedState,j!==null&&(j.rendering=null,j.tail=null,j.lastEffect=null),I(P$1,P$1.current),k)break;return null;case 23:case 24:return _.lanes=0,mi(b,_,d)}return hi(b,_,d)}else ug=!1;switch(_.lanes=0,_.tag){case 2:if(k=_.type,b!==null&&(b.alternate=null,_.alternate=null,_.flags|=2),b=_.pendingProps,j=Ef(_,M.current),tg(_,d),j=Ch(null,_,k,b,j,d),_.flags|=1,typeof j=="object"&&j!==null&&typeof j.render=="function"&&j.$$typeof===void 0){if(_.tag=1,_.memoizedState=null,_.updateQueue=null,Ff(k)){var $=!0;Jf(_)}else $=!1;_.memoizedState=j.state!==null&&j.state!==void 0?j.state:null,xg(_);var et=k.getDerivedStateFromProps;typeof et=="function"&&Gg(_,k,et,b),j.updater=Kg,_.stateNode=j,j._reactInternals=_,Og(_,k,b,d),_=qi(null,_,k,!0,$,d)}else _.tag=0,fi(null,_,j,d),_=_.child;return _;case 16:j=_.elementType;e:{switch(b!==null&&(b.alternate=null,_.alternate=null,_.flags|=2),b=_.pendingProps,$=j._init,j=$(j._payload),_.type=j,$=_.tag=hk(j),b=lg(j,b),$){case 0:_=li(null,_,j,b,d);break e;case 1:_=pi(null,_,j,b,d);break e;case 11:_=gi(null,_,j,b,d);break e;case 14:_=ii(null,_,j,lg(j.type,b),k,d);break e}throw Error(y(306,j,""))}return _;case 0:return k=_.type,j=_.pendingProps,j=_.elementType===k?j:lg(k,j),li(b,_,k,j,d);case 1:return k=_.type,j=_.pendingProps,j=_.elementType===k?j:lg(k,j),pi(b,_,k,j,d);case 3:if(ri(_),k=_.updateQueue,b===null||k===null)throw Error(y(282));if(k=_.pendingProps,j=_.memoizedState,j=j!==null?j.element:null,yg(b,_),Cg(_,k,null,d),k=_.memoizedState.element,k===j)sh(),_=hi(b,_,d);else{if(j=_.stateNode,($=j.hydrate)&&(kh=rf(_.stateNode.containerInfo.firstChild),jh=_,$=lh=!0),$){if(b=j.mutableSourceEagerHydrationData,b!=null)for(j=0;j"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(b){console.error(b)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const App$2="",logEvent=b=>(b=b.startsWith("ton-connect-ui-")?"TonConnectUI":"TonConnect",_=>{if(!(_ instanceof CustomEvent))return;const d=_.detail;console.log(`${b} Event: ${d.type}`,d)}),tonConnectUiPrefix="ton-connect-ui-",tonConnectUiEvents=["request-version","response-version","connection-started","connection-completed","connection-error","connection-restoring-started","connection-restoring-completed","connection-restoring-error","transaction-sent-for-signature","transaction-signed","transaction-signing-failed","disconnection"].map(b=>`${tonConnectUiPrefix}${b}`),tonConnectPrefix="ton-connect-",tonConnectEvents=["request-version","response-version","connection-started","connection-completed","connection-error","connection-restoring-started","connection-restoring-completed","connection-restoring-error","transaction-sent-for-signature","transaction-signed","transaction-signing-failed","disconnection"].map(b=>`${tonConnectPrefix}${b}`),events=[...tonConnectUiEvents,...tonConnectEvents];for(const b of events)try{window.addEventListener(`${b}`,logEvent(b))}catch{}var naclUtil={exports:{}};(function(b){(function(_,d){b.exports?b.exports=d():(_.nacl||(_.nacl={}),_.nacl.util=d())})(commonjsGlobal,function(){var _={};function d(k){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(k))throw new TypeError("invalid encoding")}return _.decodeUTF8=function(k){if(typeof k!="string")throw new TypeError("expected string");var j,$=unescape(encodeURIComponent(k)),et=new Uint8Array($.length);for(j=0;j<$.length;j++)et[j]=$.charCodeAt(j);return et},_.encodeUTF8=function(k){var j,$=[];for(j=0;j"u"?typeof Buffer.from<"u"?(_.encodeBase64=function(k){return Buffer.from(k).toString("base64")},_.decodeBase64=function(k){return d(k),new Uint8Array(Array.prototype.slice.call(Buffer.from(k,"base64"),0))}):(_.encodeBase64=function(k){return new Buffer(k).toString("base64")},_.decodeBase64=function(k){return d(k),new Uint8Array(Array.prototype.slice.call(new Buffer(k,"base64"),0))}):(_.encodeBase64=function(k){var j,$=[],et=k.length;for(j=0;j>24&255,kt[$t+1]=Pt>>16&255,kt[$t+2]=Pt>>8&255,kt[$t+3]=Pt&255,kt[$t+4]=gt>>24&255,kt[$t+5]=gt>>16&255,kt[$t+6]=gt>>8&255,kt[$t+7]=gt&255}function ht(kt,$t,Pt,gt,Nt){var Yt,Et=0;for(Yt=0;Yt>>8)-1}function ft(kt,$t,Pt,gt){return ht(kt,$t,Pt,gt,16)}function st(kt,$t,Pt,gt){return ht(kt,$t,Pt,gt,32)}function ct(kt,$t,Pt,gt){for(var Nt=gt[0]&255|(gt[1]&255)<<8|(gt[2]&255)<<16|(gt[3]&255)<<24,Yt=Pt[0]&255|(Pt[1]&255)<<8|(Pt[2]&255)<<16|(Pt[3]&255)<<24,Et=Pt[4]&255|(Pt[5]&255)<<8|(Pt[6]&255)<<16|(Pt[7]&255)<<24,Lt=Pt[8]&255|(Pt[9]&255)<<8|(Pt[10]&255)<<16|(Pt[11]&255)<<24,Ot=Pt[12]&255|(Pt[13]&255)<<8|(Pt[14]&255)<<16|(Pt[15]&255)<<24,Bt=gt[4]&255|(gt[5]&255)<<8|(gt[6]&255)<<16|(gt[7]&255)<<24,It=$t[0]&255|($t[1]&255)<<8|($t[2]&255)<<16|($t[3]&255)<<24,an=$t[4]&255|($t[5]&255)<<8|($t[6]&255)<<16|($t[7]&255)<<24,nn=$t[8]&255|($t[9]&255)<<8|($t[10]&255)<<16|($t[11]&255)<<24,Qt=$t[12]&255|($t[13]&255)<<8|($t[14]&255)<<16|($t[15]&255)<<24,Ht=gt[8]&255|(gt[9]&255)<<8|(gt[10]&255)<<16|(gt[11]&255)<<24,gn=Pt[16]&255|(Pt[17]&255)<<8|(Pt[18]&255)<<16|(Pt[19]&255)<<24,Wn=Pt[20]&255|(Pt[21]&255)<<8|(Pt[22]&255)<<16|(Pt[23]&255)<<24,Kn=Pt[24]&255|(Pt[25]&255)<<8|(Pt[26]&255)<<16|(Pt[27]&255)<<24,Yn=Pt[28]&255|(Pt[29]&255)<<8|(Pt[30]&255)<<16|(Pt[31]&255)<<24,er=gt[12]&255|(gt[13]&255)<<8|(gt[14]&255)<<16|(gt[15]&255)<<24,Hn=Nt,Jn=Yt,or=Et,Xn=Lt,mr=Ot,hr=Bt,Mn=It,$n=an,sr=nn,nr=Qt,tr=Ht,ir=gn,Ar=Wn,Mr=Kn,jr=Yn,Or=er,sn,Lr=0;Lr<20;Lr+=2)sn=Hn+Ar|0,mr^=sn<<7|sn>>>32-7,sn=mr+Hn|0,sr^=sn<<9|sn>>>32-9,sn=sr+mr|0,Ar^=sn<<13|sn>>>32-13,sn=Ar+sr|0,Hn^=sn<<18|sn>>>32-18,sn=hr+Jn|0,nr^=sn<<7|sn>>>32-7,sn=nr+hr|0,Mr^=sn<<9|sn>>>32-9,sn=Mr+nr|0,Jn^=sn<<13|sn>>>32-13,sn=Jn+Mr|0,hr^=sn<<18|sn>>>32-18,sn=tr+Mn|0,jr^=sn<<7|sn>>>32-7,sn=jr+tr|0,or^=sn<<9|sn>>>32-9,sn=or+jr|0,Mn^=sn<<13|sn>>>32-13,sn=Mn+or|0,tr^=sn<<18|sn>>>32-18,sn=Or+ir|0,Xn^=sn<<7|sn>>>32-7,sn=Xn+Or|0,$n^=sn<<9|sn>>>32-9,sn=$n+Xn|0,ir^=sn<<13|sn>>>32-13,sn=ir+$n|0,Or^=sn<<18|sn>>>32-18,sn=Hn+Xn|0,Jn^=sn<<7|sn>>>32-7,sn=Jn+Hn|0,or^=sn<<9|sn>>>32-9,sn=or+Jn|0,Xn^=sn<<13|sn>>>32-13,sn=Xn+or|0,Hn^=sn<<18|sn>>>32-18,sn=hr+mr|0,Mn^=sn<<7|sn>>>32-7,sn=Mn+hr|0,$n^=sn<<9|sn>>>32-9,sn=$n+Mn|0,mr^=sn<<13|sn>>>32-13,sn=mr+$n|0,hr^=sn<<18|sn>>>32-18,sn=tr+nr|0,ir^=sn<<7|sn>>>32-7,sn=ir+tr|0,sr^=sn<<9|sn>>>32-9,sn=sr+ir|0,nr^=sn<<13|sn>>>32-13,sn=nr+sr|0,tr^=sn<<18|sn>>>32-18,sn=Or+jr|0,Ar^=sn<<7|sn>>>32-7,sn=Ar+Or|0,Mr^=sn<<9|sn>>>32-9,sn=Mr+Ar|0,jr^=sn<<13|sn>>>32-13,sn=jr+Mr|0,Or^=sn<<18|sn>>>32-18;Hn=Hn+Nt|0,Jn=Jn+Yt|0,or=or+Et|0,Xn=Xn+Lt|0,mr=mr+Ot|0,hr=hr+Bt|0,Mn=Mn+It|0,$n=$n+an|0,sr=sr+nn|0,nr=nr+Qt|0,tr=tr+Ht|0,ir=ir+gn|0,Ar=Ar+Wn|0,Mr=Mr+Kn|0,jr=jr+Yn|0,Or=Or+er|0,kt[0]=Hn>>>0&255,kt[1]=Hn>>>8&255,kt[2]=Hn>>>16&255,kt[3]=Hn>>>24&255,kt[4]=Jn>>>0&255,kt[5]=Jn>>>8&255,kt[6]=Jn>>>16&255,kt[7]=Jn>>>24&255,kt[8]=or>>>0&255,kt[9]=or>>>8&255,kt[10]=or>>>16&255,kt[11]=or>>>24&255,kt[12]=Xn>>>0&255,kt[13]=Xn>>>8&255,kt[14]=Xn>>>16&255,kt[15]=Xn>>>24&255,kt[16]=mr>>>0&255,kt[17]=mr>>>8&255,kt[18]=mr>>>16&255,kt[19]=mr>>>24&255,kt[20]=hr>>>0&255,kt[21]=hr>>>8&255,kt[22]=hr>>>16&255,kt[23]=hr>>>24&255,kt[24]=Mn>>>0&255,kt[25]=Mn>>>8&255,kt[26]=Mn>>>16&255,kt[27]=Mn>>>24&255,kt[28]=$n>>>0&255,kt[29]=$n>>>8&255,kt[30]=$n>>>16&255,kt[31]=$n>>>24&255,kt[32]=sr>>>0&255,kt[33]=sr>>>8&255,kt[34]=sr>>>16&255,kt[35]=sr>>>24&255,kt[36]=nr>>>0&255,kt[37]=nr>>>8&255,kt[38]=nr>>>16&255,kt[39]=nr>>>24&255,kt[40]=tr>>>0&255,kt[41]=tr>>>8&255,kt[42]=tr>>>16&255,kt[43]=tr>>>24&255,kt[44]=ir>>>0&255,kt[45]=ir>>>8&255,kt[46]=ir>>>16&255,kt[47]=ir>>>24&255,kt[48]=Ar>>>0&255,kt[49]=Ar>>>8&255,kt[50]=Ar>>>16&255,kt[51]=Ar>>>24&255,kt[52]=Mr>>>0&255,kt[53]=Mr>>>8&255,kt[54]=Mr>>>16&255,kt[55]=Mr>>>24&255,kt[56]=jr>>>0&255,kt[57]=jr>>>8&255,kt[58]=jr>>>16&255,kt[59]=jr>>>24&255,kt[60]=Or>>>0&255,kt[61]=Or>>>8&255,kt[62]=Or>>>16&255,kt[63]=Or>>>24&255}function pt(kt,$t,Pt,gt){for(var Nt=gt[0]&255|(gt[1]&255)<<8|(gt[2]&255)<<16|(gt[3]&255)<<24,Yt=Pt[0]&255|(Pt[1]&255)<<8|(Pt[2]&255)<<16|(Pt[3]&255)<<24,Et=Pt[4]&255|(Pt[5]&255)<<8|(Pt[6]&255)<<16|(Pt[7]&255)<<24,Lt=Pt[8]&255|(Pt[9]&255)<<8|(Pt[10]&255)<<16|(Pt[11]&255)<<24,Ot=Pt[12]&255|(Pt[13]&255)<<8|(Pt[14]&255)<<16|(Pt[15]&255)<<24,Bt=gt[4]&255|(gt[5]&255)<<8|(gt[6]&255)<<16|(gt[7]&255)<<24,It=$t[0]&255|($t[1]&255)<<8|($t[2]&255)<<16|($t[3]&255)<<24,an=$t[4]&255|($t[5]&255)<<8|($t[6]&255)<<16|($t[7]&255)<<24,nn=$t[8]&255|($t[9]&255)<<8|($t[10]&255)<<16|($t[11]&255)<<24,Qt=$t[12]&255|($t[13]&255)<<8|($t[14]&255)<<16|($t[15]&255)<<24,Ht=gt[8]&255|(gt[9]&255)<<8|(gt[10]&255)<<16|(gt[11]&255)<<24,gn=Pt[16]&255|(Pt[17]&255)<<8|(Pt[18]&255)<<16|(Pt[19]&255)<<24,Wn=Pt[20]&255|(Pt[21]&255)<<8|(Pt[22]&255)<<16|(Pt[23]&255)<<24,Kn=Pt[24]&255|(Pt[25]&255)<<8|(Pt[26]&255)<<16|(Pt[27]&255)<<24,Yn=Pt[28]&255|(Pt[29]&255)<<8|(Pt[30]&255)<<16|(Pt[31]&255)<<24,er=gt[12]&255|(gt[13]&255)<<8|(gt[14]&255)<<16|(gt[15]&255)<<24,Hn=Nt,Jn=Yt,or=Et,Xn=Lt,mr=Ot,hr=Bt,Mn=It,$n=an,sr=nn,nr=Qt,tr=Ht,ir=gn,Ar=Wn,Mr=Kn,jr=Yn,Or=er,sn,Lr=0;Lr<20;Lr+=2)sn=Hn+Ar|0,mr^=sn<<7|sn>>>32-7,sn=mr+Hn|0,sr^=sn<<9|sn>>>32-9,sn=sr+mr|0,Ar^=sn<<13|sn>>>32-13,sn=Ar+sr|0,Hn^=sn<<18|sn>>>32-18,sn=hr+Jn|0,nr^=sn<<7|sn>>>32-7,sn=nr+hr|0,Mr^=sn<<9|sn>>>32-9,sn=Mr+nr|0,Jn^=sn<<13|sn>>>32-13,sn=Jn+Mr|0,hr^=sn<<18|sn>>>32-18,sn=tr+Mn|0,jr^=sn<<7|sn>>>32-7,sn=jr+tr|0,or^=sn<<9|sn>>>32-9,sn=or+jr|0,Mn^=sn<<13|sn>>>32-13,sn=Mn+or|0,tr^=sn<<18|sn>>>32-18,sn=Or+ir|0,Xn^=sn<<7|sn>>>32-7,sn=Xn+Or|0,$n^=sn<<9|sn>>>32-9,sn=$n+Xn|0,ir^=sn<<13|sn>>>32-13,sn=ir+$n|0,Or^=sn<<18|sn>>>32-18,sn=Hn+Xn|0,Jn^=sn<<7|sn>>>32-7,sn=Jn+Hn|0,or^=sn<<9|sn>>>32-9,sn=or+Jn|0,Xn^=sn<<13|sn>>>32-13,sn=Xn+or|0,Hn^=sn<<18|sn>>>32-18,sn=hr+mr|0,Mn^=sn<<7|sn>>>32-7,sn=Mn+hr|0,$n^=sn<<9|sn>>>32-9,sn=$n+Mn|0,mr^=sn<<13|sn>>>32-13,sn=mr+$n|0,hr^=sn<<18|sn>>>32-18,sn=tr+nr|0,ir^=sn<<7|sn>>>32-7,sn=ir+tr|0,sr^=sn<<9|sn>>>32-9,sn=sr+ir|0,nr^=sn<<13|sn>>>32-13,sn=nr+sr|0,tr^=sn<<18|sn>>>32-18,sn=Or+jr|0,Ar^=sn<<7|sn>>>32-7,sn=Ar+Or|0,Mr^=sn<<9|sn>>>32-9,sn=Mr+Ar|0,jr^=sn<<13|sn>>>32-13,sn=jr+Mr|0,Or^=sn<<18|sn>>>32-18;kt[0]=Hn>>>0&255,kt[1]=Hn>>>8&255,kt[2]=Hn>>>16&255,kt[3]=Hn>>>24&255,kt[4]=hr>>>0&255,kt[5]=hr>>>8&255,kt[6]=hr>>>16&255,kt[7]=hr>>>24&255,kt[8]=tr>>>0&255,kt[9]=tr>>>8&255,kt[10]=tr>>>16&255,kt[11]=tr>>>24&255,kt[12]=Or>>>0&255,kt[13]=Or>>>8&255,kt[14]=Or>>>16&255,kt[15]=Or>>>24&255,kt[16]=Mn>>>0&255,kt[17]=Mn>>>8&255,kt[18]=Mn>>>16&255,kt[19]=Mn>>>24&255,kt[20]=$n>>>0&255,kt[21]=$n>>>8&255,kt[22]=$n>>>16&255,kt[23]=$n>>>24&255,kt[24]=sr>>>0&255,kt[25]=sr>>>8&255,kt[26]=sr>>>16&255,kt[27]=sr>>>24&255,kt[28]=nr>>>0&255,kt[29]=nr>>>8&255,kt[30]=nr>>>16&255,kt[31]=nr>>>24&255}function lt(kt,$t,Pt,gt){ct(kt,$t,Pt,gt)}function wt(kt,$t,Pt,gt){pt(kt,$t,Pt,gt)}var yt=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function vt(kt,$t,Pt,gt,Nt,Yt,Et){var Lt=new Uint8Array(16),Ot=new Uint8Array(64),Bt,It;for(It=0;It<16;It++)Lt[It]=0;for(It=0;It<8;It++)Lt[It]=Yt[It];for(;Nt>=64;){for(lt(Ot,Lt,Et,yt),It=0;It<64;It++)kt[$t+It]=Pt[gt+It]^Ot[It];for(Bt=1,It=8;It<16;It++)Bt=Bt+(Lt[It]&255)|0,Lt[It]=Bt&255,Bt>>>=8;Nt-=64,$t+=64,gt+=64}if(Nt>0)for(lt(Ot,Lt,Et,yt),It=0;It=64;){for(lt(Et,Yt,Nt,yt),Ot=0;Ot<64;Ot++)kt[$t+Ot]=Et[Ot];for(Lt=1,Ot=8;Ot<16;Ot++)Lt=Lt+(Yt[Ot]&255)|0,Yt[Ot]=Lt&255,Lt>>>=8;Pt-=64,$t+=64}if(Pt>0)for(lt(Et,Yt,Nt,yt),Ot=0;Ot>>13|Pt<<3)&8191,gt=kt[4]&255|(kt[5]&255)<<8,this.r[2]=(Pt>>>10|gt<<6)&7939,Nt=kt[6]&255|(kt[7]&255)<<8,this.r[3]=(gt>>>7|Nt<<9)&8191,Yt=kt[8]&255|(kt[9]&255)<<8,this.r[4]=(Nt>>>4|Yt<<12)&255,this.r[5]=Yt>>>1&8190,Et=kt[10]&255|(kt[11]&255)<<8,this.r[6]=(Yt>>>14|Et<<2)&8191,Lt=kt[12]&255|(kt[13]&255)<<8,this.r[7]=(Et>>>11|Lt<<5)&8065,Ot=kt[14]&255|(kt[15]&255)<<8,this.r[8]=(Lt>>>8|Ot<<8)&8191,this.r[9]=Ot>>>5&127,this.pad[0]=kt[16]&255|(kt[17]&255)<<8,this.pad[1]=kt[18]&255|(kt[19]&255)<<8,this.pad[2]=kt[20]&255|(kt[21]&255)<<8,this.pad[3]=kt[22]&255|(kt[23]&255)<<8,this.pad[4]=kt[24]&255|(kt[25]&255)<<8,this.pad[5]=kt[26]&255|(kt[27]&255)<<8,this.pad[6]=kt[28]&255|(kt[29]&255)<<8,this.pad[7]=kt[30]&255|(kt[31]&255)<<8};At.prototype.blocks=function(kt,$t,Pt){for(var gt=this.fin?0:2048,Nt,Yt,Et,Lt,Ot,Bt,It,an,nn,Qt,Ht,gn,Wn,Kn,Yn,er,Hn,Jn,or,Xn=this.h[0],mr=this.h[1],hr=this.h[2],Mn=this.h[3],$n=this.h[4],sr=this.h[5],nr=this.h[6],tr=this.h[7],ir=this.h[8],Ar=this.h[9],Mr=this.r[0],jr=this.r[1],Or=this.r[2],sn=this.r[3],Lr=this.r[4],Dr=this.r[5],Fr=this.r[6],Nr=this.r[7],Br=this.r[8],Wr=this.r[9];Pt>=16;)Nt=kt[$t+0]&255|(kt[$t+1]&255)<<8,Xn+=Nt&8191,Yt=kt[$t+2]&255|(kt[$t+3]&255)<<8,mr+=(Nt>>>13|Yt<<3)&8191,Et=kt[$t+4]&255|(kt[$t+5]&255)<<8,hr+=(Yt>>>10|Et<<6)&8191,Lt=kt[$t+6]&255|(kt[$t+7]&255)<<8,Mn+=(Et>>>7|Lt<<9)&8191,Ot=kt[$t+8]&255|(kt[$t+9]&255)<<8,$n+=(Lt>>>4|Ot<<12)&8191,sr+=Ot>>>1&8191,Bt=kt[$t+10]&255|(kt[$t+11]&255)<<8,nr+=(Ot>>>14|Bt<<2)&8191,It=kt[$t+12]&255|(kt[$t+13]&255)<<8,tr+=(Bt>>>11|It<<5)&8191,an=kt[$t+14]&255|(kt[$t+15]&255)<<8,ir+=(It>>>8|an<<8)&8191,Ar+=an>>>5|gt,nn=0,Qt=nn,Qt+=Xn*Mr,Qt+=mr*(5*Wr),Qt+=hr*(5*Br),Qt+=Mn*(5*Nr),Qt+=$n*(5*Fr),nn=Qt>>>13,Qt&=8191,Qt+=sr*(5*Dr),Qt+=nr*(5*Lr),Qt+=tr*(5*sn),Qt+=ir*(5*Or),Qt+=Ar*(5*jr),nn+=Qt>>>13,Qt&=8191,Ht=nn,Ht+=Xn*jr,Ht+=mr*Mr,Ht+=hr*(5*Wr),Ht+=Mn*(5*Br),Ht+=$n*(5*Nr),nn=Ht>>>13,Ht&=8191,Ht+=sr*(5*Fr),Ht+=nr*(5*Dr),Ht+=tr*(5*Lr),Ht+=ir*(5*sn),Ht+=Ar*(5*Or),nn+=Ht>>>13,Ht&=8191,gn=nn,gn+=Xn*Or,gn+=mr*jr,gn+=hr*Mr,gn+=Mn*(5*Wr),gn+=$n*(5*Br),nn=gn>>>13,gn&=8191,gn+=sr*(5*Nr),gn+=nr*(5*Fr),gn+=tr*(5*Dr),gn+=ir*(5*Lr),gn+=Ar*(5*sn),nn+=gn>>>13,gn&=8191,Wn=nn,Wn+=Xn*sn,Wn+=mr*Or,Wn+=hr*jr,Wn+=Mn*Mr,Wn+=$n*(5*Wr),nn=Wn>>>13,Wn&=8191,Wn+=sr*(5*Br),Wn+=nr*(5*Nr),Wn+=tr*(5*Fr),Wn+=ir*(5*Dr),Wn+=Ar*(5*Lr),nn+=Wn>>>13,Wn&=8191,Kn=nn,Kn+=Xn*Lr,Kn+=mr*sn,Kn+=hr*Or,Kn+=Mn*jr,Kn+=$n*Mr,nn=Kn>>>13,Kn&=8191,Kn+=sr*(5*Wr),Kn+=nr*(5*Br),Kn+=tr*(5*Nr),Kn+=ir*(5*Fr),Kn+=Ar*(5*Dr),nn+=Kn>>>13,Kn&=8191,Yn=nn,Yn+=Xn*Dr,Yn+=mr*Lr,Yn+=hr*sn,Yn+=Mn*Or,Yn+=$n*jr,nn=Yn>>>13,Yn&=8191,Yn+=sr*Mr,Yn+=nr*(5*Wr),Yn+=tr*(5*Br),Yn+=ir*(5*Nr),Yn+=Ar*(5*Fr),nn+=Yn>>>13,Yn&=8191,er=nn,er+=Xn*Fr,er+=mr*Dr,er+=hr*Lr,er+=Mn*sn,er+=$n*Or,nn=er>>>13,er&=8191,er+=sr*jr,er+=nr*Mr,er+=tr*(5*Wr),er+=ir*(5*Br),er+=Ar*(5*Nr),nn+=er>>>13,er&=8191,Hn=nn,Hn+=Xn*Nr,Hn+=mr*Fr,Hn+=hr*Dr,Hn+=Mn*Lr,Hn+=$n*sn,nn=Hn>>>13,Hn&=8191,Hn+=sr*Or,Hn+=nr*jr,Hn+=tr*Mr,Hn+=ir*(5*Wr),Hn+=Ar*(5*Br),nn+=Hn>>>13,Hn&=8191,Jn=nn,Jn+=Xn*Br,Jn+=mr*Nr,Jn+=hr*Fr,Jn+=Mn*Dr,Jn+=$n*Lr,nn=Jn>>>13,Jn&=8191,Jn+=sr*sn,Jn+=nr*Or,Jn+=tr*jr,Jn+=ir*Mr,Jn+=Ar*(5*Wr),nn+=Jn>>>13,Jn&=8191,or=nn,or+=Xn*Wr,or+=mr*Br,or+=hr*Nr,or+=Mn*Fr,or+=$n*Dr,nn=or>>>13,or&=8191,or+=sr*Lr,or+=nr*sn,or+=tr*Or,or+=ir*jr,or+=Ar*Mr,nn+=or>>>13,or&=8191,nn=(nn<<2)+nn|0,nn=nn+Qt|0,Qt=nn&8191,nn=nn>>>13,Ht+=nn,Xn=Qt,mr=Ht,hr=gn,Mn=Wn,$n=Kn,sr=Yn,nr=er,tr=Hn,ir=Jn,Ar=or,$t+=16,Pt-=16;this.h[0]=Xn,this.h[1]=mr,this.h[2]=hr,this.h[3]=Mn,this.h[4]=$n,this.h[5]=sr,this.h[6]=nr,this.h[7]=tr,this.h[8]=ir,this.h[9]=Ar},At.prototype.finish=function(kt,$t){var Pt=new Uint16Array(10),gt,Nt,Yt,Et;if(this.leftover){for(Et=this.leftover,this.buffer[Et++]=1;Et<16;Et++)this.buffer[Et]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(gt=this.h[1]>>>13,this.h[1]&=8191,Et=2;Et<10;Et++)this.h[Et]+=gt,gt=this.h[Et]>>>13,this.h[Et]&=8191;for(this.h[0]+=gt*5,gt=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=gt,gt=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=gt,Pt[0]=this.h[0]+5,gt=Pt[0]>>>13,Pt[0]&=8191,Et=1;Et<10;Et++)Pt[Et]=this.h[Et]+gt,gt=Pt[Et]>>>13,Pt[Et]&=8191;for(Pt[9]-=8192,Nt=(gt^1)-1,Et=0;Et<10;Et++)Pt[Et]&=Nt;for(Nt=~Nt,Et=0;Et<10;Et++)this.h[Et]=this.h[Et]&Nt|Pt[Et];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,Yt=this.h[0]+this.pad[0],this.h[0]=Yt&65535,Et=1;Et<8;Et++)Yt=(this.h[Et]+this.pad[Et]|0)+(Yt>>>16)|0,this.h[Et]=Yt&65535;kt[$t+0]=this.h[0]>>>0&255,kt[$t+1]=this.h[0]>>>8&255,kt[$t+2]=this.h[1]>>>0&255,kt[$t+3]=this.h[1]>>>8&255,kt[$t+4]=this.h[2]>>>0&255,kt[$t+5]=this.h[2]>>>8&255,kt[$t+6]=this.h[3]>>>0&255,kt[$t+7]=this.h[3]>>>8&255,kt[$t+8]=this.h[4]>>>0&255,kt[$t+9]=this.h[4]>>>8&255,kt[$t+10]=this.h[5]>>>0&255,kt[$t+11]=this.h[5]>>>8&255,kt[$t+12]=this.h[6]>>>0&255,kt[$t+13]=this.h[6]>>>8&255,kt[$t+14]=this.h[7]>>>0&255,kt[$t+15]=this.h[7]>>>8&255},At.prototype.update=function(kt,$t,Pt){var gt,Nt;if(this.leftover){for(Nt=16-this.leftover,Nt>Pt&&(Nt=Pt),gt=0;gt=16&&(Nt=Pt-Pt%16,this.blocks(kt,$t,Nt),$t+=Nt,Pt-=Nt),Pt){for(gt=0;gt>16&1),Yt[Pt-1]&=65535;Yt[15]=Et[15]-32767-(Yt[14]>>16&1),Nt=Yt[15]>>16&1,Yt[14]&=65535,Xt(Et,Yt,1-Nt)}for(Pt=0;Pt<16;Pt++)kt[2*Pt]=Et[Pt]&255,kt[2*Pt+1]=Et[Pt]>>8}function Kt(kt,$t){var Pt=new Uint8Array(32),gt=new Uint8Array(32);return Jt(Pt,kt),Jt(gt,$t),st(Pt,0,gt,0)}function Zt(kt){var $t=new Uint8Array(32);return Jt($t,kt),$t[0]&1}function dn(kt,$t){var Pt;for(Pt=0;Pt<16;Pt++)kt[Pt]=$t[2*Pt]+($t[2*Pt+1]<<8);kt[15]&=32767}function An(kt,$t,Pt){for(var gt=0;gt<16;gt++)kt[gt]=$t[gt]+Pt[gt]}function En(kt,$t,Pt){for(var gt=0;gt<16;gt++)kt[gt]=$t[gt]-Pt[gt]}function yn(kt,$t,Pt){var gt,Nt,Yt=0,Et=0,Lt=0,Ot=0,Bt=0,It=0,an=0,nn=0,Qt=0,Ht=0,gn=0,Wn=0,Kn=0,Yn=0,er=0,Hn=0,Jn=0,or=0,Xn=0,mr=0,hr=0,Mn=0,$n=0,sr=0,nr=0,tr=0,ir=0,Ar=0,Mr=0,jr=0,Or=0,sn=Pt[0],Lr=Pt[1],Dr=Pt[2],Fr=Pt[3],Nr=Pt[4],Br=Pt[5],Wr=Pt[6],ro=Pt[7],qr=Pt[8],eo=Pt[9],to=Pt[10],no=Pt[11],io=Pt[12],co=Pt[13],so=Pt[14],fo=Pt[15];gt=$t[0],Yt+=gt*sn,Et+=gt*Lr,Lt+=gt*Dr,Ot+=gt*Fr,Bt+=gt*Nr,It+=gt*Br,an+=gt*Wr,nn+=gt*ro,Qt+=gt*qr,Ht+=gt*eo,gn+=gt*to,Wn+=gt*no,Kn+=gt*io,Yn+=gt*co,er+=gt*so,Hn+=gt*fo,gt=$t[1],Et+=gt*sn,Lt+=gt*Lr,Ot+=gt*Dr,Bt+=gt*Fr,It+=gt*Nr,an+=gt*Br,nn+=gt*Wr,Qt+=gt*ro,Ht+=gt*qr,gn+=gt*eo,Wn+=gt*to,Kn+=gt*no,Yn+=gt*io,er+=gt*co,Hn+=gt*so,Jn+=gt*fo,gt=$t[2],Lt+=gt*sn,Ot+=gt*Lr,Bt+=gt*Dr,It+=gt*Fr,an+=gt*Nr,nn+=gt*Br,Qt+=gt*Wr,Ht+=gt*ro,gn+=gt*qr,Wn+=gt*eo,Kn+=gt*to,Yn+=gt*no,er+=gt*io,Hn+=gt*co,Jn+=gt*so,or+=gt*fo,gt=$t[3],Ot+=gt*sn,Bt+=gt*Lr,It+=gt*Dr,an+=gt*Fr,nn+=gt*Nr,Qt+=gt*Br,Ht+=gt*Wr,gn+=gt*ro,Wn+=gt*qr,Kn+=gt*eo,Yn+=gt*to,er+=gt*no,Hn+=gt*io,Jn+=gt*co,or+=gt*so,Xn+=gt*fo,gt=$t[4],Bt+=gt*sn,It+=gt*Lr,an+=gt*Dr,nn+=gt*Fr,Qt+=gt*Nr,Ht+=gt*Br,gn+=gt*Wr,Wn+=gt*ro,Kn+=gt*qr,Yn+=gt*eo,er+=gt*to,Hn+=gt*no,Jn+=gt*io,or+=gt*co,Xn+=gt*so,mr+=gt*fo,gt=$t[5],It+=gt*sn,an+=gt*Lr,nn+=gt*Dr,Qt+=gt*Fr,Ht+=gt*Nr,gn+=gt*Br,Wn+=gt*Wr,Kn+=gt*ro,Yn+=gt*qr,er+=gt*eo,Hn+=gt*to,Jn+=gt*no,or+=gt*io,Xn+=gt*co,mr+=gt*so,hr+=gt*fo,gt=$t[6],an+=gt*sn,nn+=gt*Lr,Qt+=gt*Dr,Ht+=gt*Fr,gn+=gt*Nr,Wn+=gt*Br,Kn+=gt*Wr,Yn+=gt*ro,er+=gt*qr,Hn+=gt*eo,Jn+=gt*to,or+=gt*no,Xn+=gt*io,mr+=gt*co,hr+=gt*so,Mn+=gt*fo,gt=$t[7],nn+=gt*sn,Qt+=gt*Lr,Ht+=gt*Dr,gn+=gt*Fr,Wn+=gt*Nr,Kn+=gt*Br,Yn+=gt*Wr,er+=gt*ro,Hn+=gt*qr,Jn+=gt*eo,or+=gt*to,Xn+=gt*no,mr+=gt*io,hr+=gt*co,Mn+=gt*so,$n+=gt*fo,gt=$t[8],Qt+=gt*sn,Ht+=gt*Lr,gn+=gt*Dr,Wn+=gt*Fr,Kn+=gt*Nr,Yn+=gt*Br,er+=gt*Wr,Hn+=gt*ro,Jn+=gt*qr,or+=gt*eo,Xn+=gt*to,mr+=gt*no,hr+=gt*io,Mn+=gt*co,$n+=gt*so,sr+=gt*fo,gt=$t[9],Ht+=gt*sn,gn+=gt*Lr,Wn+=gt*Dr,Kn+=gt*Fr,Yn+=gt*Nr,er+=gt*Br,Hn+=gt*Wr,Jn+=gt*ro,or+=gt*qr,Xn+=gt*eo,mr+=gt*to,hr+=gt*no,Mn+=gt*io,$n+=gt*co,sr+=gt*so,nr+=gt*fo,gt=$t[10],gn+=gt*sn,Wn+=gt*Lr,Kn+=gt*Dr,Yn+=gt*Fr,er+=gt*Nr,Hn+=gt*Br,Jn+=gt*Wr,or+=gt*ro,Xn+=gt*qr,mr+=gt*eo,hr+=gt*to,Mn+=gt*no,$n+=gt*io,sr+=gt*co,nr+=gt*so,tr+=gt*fo,gt=$t[11],Wn+=gt*sn,Kn+=gt*Lr,Yn+=gt*Dr,er+=gt*Fr,Hn+=gt*Nr,Jn+=gt*Br,or+=gt*Wr,Xn+=gt*ro,mr+=gt*qr,hr+=gt*eo,Mn+=gt*to,$n+=gt*no,sr+=gt*io,nr+=gt*co,tr+=gt*so,ir+=gt*fo,gt=$t[12],Kn+=gt*sn,Yn+=gt*Lr,er+=gt*Dr,Hn+=gt*Fr,Jn+=gt*Nr,or+=gt*Br,Xn+=gt*Wr,mr+=gt*ro,hr+=gt*qr,Mn+=gt*eo,$n+=gt*to,sr+=gt*no,nr+=gt*io,tr+=gt*co,ir+=gt*so,Ar+=gt*fo,gt=$t[13],Yn+=gt*sn,er+=gt*Lr,Hn+=gt*Dr,Jn+=gt*Fr,or+=gt*Nr,Xn+=gt*Br,mr+=gt*Wr,hr+=gt*ro,Mn+=gt*qr,$n+=gt*eo,sr+=gt*to,nr+=gt*no,tr+=gt*io,ir+=gt*co,Ar+=gt*so,Mr+=gt*fo,gt=$t[14],er+=gt*sn,Hn+=gt*Lr,Jn+=gt*Dr,or+=gt*Fr,Xn+=gt*Nr,mr+=gt*Br,hr+=gt*Wr,Mn+=gt*ro,$n+=gt*qr,sr+=gt*eo,nr+=gt*to,tr+=gt*no,ir+=gt*io,Ar+=gt*co,Mr+=gt*so,jr+=gt*fo,gt=$t[15],Hn+=gt*sn,Jn+=gt*Lr,or+=gt*Dr,Xn+=gt*Fr,mr+=gt*Nr,hr+=gt*Br,Mn+=gt*Wr,$n+=gt*ro,sr+=gt*qr,nr+=gt*eo,tr+=gt*to,ir+=gt*no,Ar+=gt*io,Mr+=gt*co,jr+=gt*so,Or+=gt*fo,Yt+=38*Jn,Et+=38*or,Lt+=38*Xn,Ot+=38*mr,Bt+=38*hr,It+=38*Mn,an+=38*$n,nn+=38*sr,Qt+=38*nr,Ht+=38*tr,gn+=38*ir,Wn+=38*Ar,Kn+=38*Mr,Yn+=38*jr,er+=38*Or,Nt=1,gt=Yt+Nt+65535,Nt=Math.floor(gt/65536),Yt=gt-Nt*65536,gt=Et+Nt+65535,Nt=Math.floor(gt/65536),Et=gt-Nt*65536,gt=Lt+Nt+65535,Nt=Math.floor(gt/65536),Lt=gt-Nt*65536,gt=Ot+Nt+65535,Nt=Math.floor(gt/65536),Ot=gt-Nt*65536,gt=Bt+Nt+65535,Nt=Math.floor(gt/65536),Bt=gt-Nt*65536,gt=It+Nt+65535,Nt=Math.floor(gt/65536),It=gt-Nt*65536,gt=an+Nt+65535,Nt=Math.floor(gt/65536),an=gt-Nt*65536,gt=nn+Nt+65535,Nt=Math.floor(gt/65536),nn=gt-Nt*65536,gt=Qt+Nt+65535,Nt=Math.floor(gt/65536),Qt=gt-Nt*65536,gt=Ht+Nt+65535,Nt=Math.floor(gt/65536),Ht=gt-Nt*65536,gt=gn+Nt+65535,Nt=Math.floor(gt/65536),gn=gt-Nt*65536,gt=Wn+Nt+65535,Nt=Math.floor(gt/65536),Wn=gt-Nt*65536,gt=Kn+Nt+65535,Nt=Math.floor(gt/65536),Kn=gt-Nt*65536,gt=Yn+Nt+65535,Nt=Math.floor(gt/65536),Yn=gt-Nt*65536,gt=er+Nt+65535,Nt=Math.floor(gt/65536),er=gt-Nt*65536,gt=Hn+Nt+65535,Nt=Math.floor(gt/65536),Hn=gt-Nt*65536,Yt+=Nt-1+37*(Nt-1),Nt=1,gt=Yt+Nt+65535,Nt=Math.floor(gt/65536),Yt=gt-Nt*65536,gt=Et+Nt+65535,Nt=Math.floor(gt/65536),Et=gt-Nt*65536,gt=Lt+Nt+65535,Nt=Math.floor(gt/65536),Lt=gt-Nt*65536,gt=Ot+Nt+65535,Nt=Math.floor(gt/65536),Ot=gt-Nt*65536,gt=Bt+Nt+65535,Nt=Math.floor(gt/65536),Bt=gt-Nt*65536,gt=It+Nt+65535,Nt=Math.floor(gt/65536),It=gt-Nt*65536,gt=an+Nt+65535,Nt=Math.floor(gt/65536),an=gt-Nt*65536,gt=nn+Nt+65535,Nt=Math.floor(gt/65536),nn=gt-Nt*65536,gt=Qt+Nt+65535,Nt=Math.floor(gt/65536),Qt=gt-Nt*65536,gt=Ht+Nt+65535,Nt=Math.floor(gt/65536),Ht=gt-Nt*65536,gt=gn+Nt+65535,Nt=Math.floor(gt/65536),gn=gt-Nt*65536,gt=Wn+Nt+65535,Nt=Math.floor(gt/65536),Wn=gt-Nt*65536,gt=Kn+Nt+65535,Nt=Math.floor(gt/65536),Kn=gt-Nt*65536,gt=Yn+Nt+65535,Nt=Math.floor(gt/65536),Yn=gt-Nt*65536,gt=er+Nt+65535,Nt=Math.floor(gt/65536),er=gt-Nt*65536,gt=Hn+Nt+65535,Nt=Math.floor(gt/65536),Hn=gt-Nt*65536,Yt+=Nt-1+37*(Nt-1),kt[0]=Yt,kt[1]=Et,kt[2]=Lt,kt[3]=Ot,kt[4]=Bt,kt[5]=It,kt[6]=an,kt[7]=nn,kt[8]=Qt,kt[9]=Ht,kt[10]=gn,kt[11]=Wn,kt[12]=Kn,kt[13]=Yn,kt[14]=er,kt[15]=Hn}function jn(kt,$t){yn(kt,$t,$t)}function Vn(kt,$t){var Pt=d(),gt;for(gt=0;gt<16;gt++)Pt[gt]=$t[gt];for(gt=253;gt>=0;gt--)jn(Pt,Pt),gt!==2&>!==4&&yn(Pt,Pt,$t);for(gt=0;gt<16;gt++)kt[gt]=Pt[gt]}function rn(kt,$t){var Pt=d(),gt;for(gt=0;gt<16;gt++)Pt[gt]=$t[gt];for(gt=250;gt>=0;gt--)jn(Pt,Pt),gt!==1&&yn(Pt,Pt,$t);for(gt=0;gt<16;gt++)kt[gt]=Pt[gt]}function xn(kt,$t,Pt){var gt=new Uint8Array(32),Nt=new Float64Array(80),Yt,Et,Lt=d(),Ot=d(),Bt=d(),It=d(),an=d(),nn=d();for(Et=0;Et<31;Et++)gt[Et]=$t[Et];for(gt[31]=$t[31]&127|64,gt[0]&=248,dn(Nt,Pt),Et=0;Et<16;Et++)Ot[Et]=Nt[Et],It[Et]=Lt[Et]=Bt[Et]=0;for(Lt[0]=It[0]=1,Et=254;Et>=0;--Et)Yt=gt[Et>>>3]>>>(Et&7)&1,Xt(Lt,Ot,Yt),Xt(Bt,It,Yt),An(an,Lt,Bt),En(Lt,Lt,Bt),An(Bt,Ot,It),En(Ot,Ot,It),jn(It,an),jn(nn,Lt),yn(Lt,Bt,Lt),yn(Bt,Ot,an),An(an,Lt,Bt),En(Lt,Lt,Bt),jn(Ot,Lt),En(Bt,It,nn),yn(Lt,Bt,rt),An(Lt,Lt,It),yn(Bt,Bt,Lt),yn(Lt,It,nn),yn(It,Ot,Nt),jn(Ot,an),Xt(Lt,Ot,Yt),Xt(Bt,It,Yt);for(Et=0;Et<16;Et++)Nt[Et+16]=Lt[Et],Nt[Et+32]=Bt[Et],Nt[Et+48]=Ot[Et],Nt[Et+64]=It[Et];var Qt=Nt.subarray(32),Ht=Nt.subarray(16);return Vn(Qt,Qt),yn(Ht,Ht,Qt),Jt(kt,Ht),0}function fn(kt,$t){return xn(kt,$t,$)}function Sn(kt,$t){return k($t,32),fn(kt,$t)}function bn(kt,$t,Pt){var gt=new Uint8Array(32);return xn(gt,Pt,$t),wt(kt,j,gt,yt)}var hn=Mt,_n=jt;function ln(kt,$t,Pt,gt,Nt,Yt){var Et=new Uint8Array(32);return bn(Et,Nt,Yt),hn(kt,$t,Pt,gt,Et)}function Tn(kt,$t,Pt,gt,Nt,Yt){var Et=new Uint8Array(32);return bn(Et,Nt,Yt),_n(kt,$t,Pt,gt,Et)}var In=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Ln(kt,$t,Pt,gt){for(var Nt=new Int32Array(16),Yt=new Int32Array(16),Et,Lt,Ot,Bt,It,an,nn,Qt,Ht,gn,Wn,Kn,Yn,er,Hn,Jn,or,Xn,mr,hr,Mn,$n,sr,nr,tr,ir,Ar=kt[0],Mr=kt[1],jr=kt[2],Or=kt[3],sn=kt[4],Lr=kt[5],Dr=kt[6],Fr=kt[7],Nr=$t[0],Br=$t[1],Wr=$t[2],ro=$t[3],qr=$t[4],eo=$t[5],to=$t[6],no=$t[7],io=0;gt>=128;){for(mr=0;mr<16;mr++)hr=8*mr+io,Nt[mr]=Pt[hr+0]<<24|Pt[hr+1]<<16|Pt[hr+2]<<8|Pt[hr+3],Yt[mr]=Pt[hr+4]<<24|Pt[hr+5]<<16|Pt[hr+6]<<8|Pt[hr+7];for(mr=0;mr<80;mr++)if(Et=Ar,Lt=Mr,Ot=jr,Bt=Or,It=sn,an=Lr,nn=Dr,Qt=Fr,Ht=Nr,gn=Br,Wn=Wr,Kn=ro,Yn=qr,er=eo,Hn=to,Jn=no,Mn=Fr,$n=no,sr=$n&65535,nr=$n>>>16,tr=Mn&65535,ir=Mn>>>16,Mn=(sn>>>14|qr<<32-14)^(sn>>>18|qr<<32-18)^(qr>>>41-32|sn<<32-(41-32)),$n=(qr>>>14|sn<<32-14)^(qr>>>18|sn<<32-18)^(sn>>>41-32|qr<<32-(41-32)),sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,Mn=sn&Lr^~sn&Dr,$n=qr&eo^~qr&to,sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,Mn=In[mr*2],$n=In[mr*2+1],sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,Mn=Nt[mr%16],$n=Yt[mr%16],sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,nr+=sr>>>16,tr+=nr>>>16,ir+=tr>>>16,or=tr&65535|ir<<16,Xn=sr&65535|nr<<16,Mn=or,$n=Xn,sr=$n&65535,nr=$n>>>16,tr=Mn&65535,ir=Mn>>>16,Mn=(Ar>>>28|Nr<<32-28)^(Nr>>>34-32|Ar<<32-(34-32))^(Nr>>>39-32|Ar<<32-(39-32)),$n=(Nr>>>28|Ar<<32-28)^(Ar>>>34-32|Nr<<32-(34-32))^(Ar>>>39-32|Nr<<32-(39-32)),sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,Mn=Ar&Mr^Ar&jr^Mr&jr,$n=Nr&Br^Nr&Wr^Br&Wr,sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,nr+=sr>>>16,tr+=nr>>>16,ir+=tr>>>16,Qt=tr&65535|ir<<16,Jn=sr&65535|nr<<16,Mn=Bt,$n=Kn,sr=$n&65535,nr=$n>>>16,tr=Mn&65535,ir=Mn>>>16,Mn=or,$n=Xn,sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,nr+=sr>>>16,tr+=nr>>>16,ir+=tr>>>16,Bt=tr&65535|ir<<16,Kn=sr&65535|nr<<16,Mr=Et,jr=Lt,Or=Ot,sn=Bt,Lr=It,Dr=an,Fr=nn,Ar=Qt,Br=Ht,Wr=gn,ro=Wn,qr=Kn,eo=Yn,to=er,no=Hn,Nr=Jn,mr%16===15)for(hr=0;hr<16;hr++)Mn=Nt[hr],$n=Yt[hr],sr=$n&65535,nr=$n>>>16,tr=Mn&65535,ir=Mn>>>16,Mn=Nt[(hr+9)%16],$n=Yt[(hr+9)%16],sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,or=Nt[(hr+1)%16],Xn=Yt[(hr+1)%16],Mn=(or>>>1|Xn<<32-1)^(or>>>8|Xn<<32-8)^or>>>7,$n=(Xn>>>1|or<<32-1)^(Xn>>>8|or<<32-8)^(Xn>>>7|or<<32-7),sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,or=Nt[(hr+14)%16],Xn=Yt[(hr+14)%16],Mn=(or>>>19|Xn<<32-19)^(Xn>>>61-32|or<<32-(61-32))^or>>>6,$n=(Xn>>>19|or<<32-19)^(or>>>61-32|Xn<<32-(61-32))^(Xn>>>6|or<<32-6),sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,nr+=sr>>>16,tr+=nr>>>16,ir+=tr>>>16,Nt[hr]=tr&65535|ir<<16,Yt[hr]=sr&65535|nr<<16;Mn=Ar,$n=Nr,sr=$n&65535,nr=$n>>>16,tr=Mn&65535,ir=Mn>>>16,Mn=kt[0],$n=$t[0],sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,nr+=sr>>>16,tr+=nr>>>16,ir+=tr>>>16,kt[0]=Ar=tr&65535|ir<<16,$t[0]=Nr=sr&65535|nr<<16,Mn=Mr,$n=Br,sr=$n&65535,nr=$n>>>16,tr=Mn&65535,ir=Mn>>>16,Mn=kt[1],$n=$t[1],sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,nr+=sr>>>16,tr+=nr>>>16,ir+=tr>>>16,kt[1]=Mr=tr&65535|ir<<16,$t[1]=Br=sr&65535|nr<<16,Mn=jr,$n=Wr,sr=$n&65535,nr=$n>>>16,tr=Mn&65535,ir=Mn>>>16,Mn=kt[2],$n=$t[2],sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,nr+=sr>>>16,tr+=nr>>>16,ir+=tr>>>16,kt[2]=jr=tr&65535|ir<<16,$t[2]=Wr=sr&65535|nr<<16,Mn=Or,$n=ro,sr=$n&65535,nr=$n>>>16,tr=Mn&65535,ir=Mn>>>16,Mn=kt[3],$n=$t[3],sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,nr+=sr>>>16,tr+=nr>>>16,ir+=tr>>>16,kt[3]=Or=tr&65535|ir<<16,$t[3]=ro=sr&65535|nr<<16,Mn=sn,$n=qr,sr=$n&65535,nr=$n>>>16,tr=Mn&65535,ir=Mn>>>16,Mn=kt[4],$n=$t[4],sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,nr+=sr>>>16,tr+=nr>>>16,ir+=tr>>>16,kt[4]=sn=tr&65535|ir<<16,$t[4]=qr=sr&65535|nr<<16,Mn=Lr,$n=eo,sr=$n&65535,nr=$n>>>16,tr=Mn&65535,ir=Mn>>>16,Mn=kt[5],$n=$t[5],sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,nr+=sr>>>16,tr+=nr>>>16,ir+=tr>>>16,kt[5]=Lr=tr&65535|ir<<16,$t[5]=eo=sr&65535|nr<<16,Mn=Dr,$n=to,sr=$n&65535,nr=$n>>>16,tr=Mn&65535,ir=Mn>>>16,Mn=kt[6],$n=$t[6],sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,nr+=sr>>>16,tr+=nr>>>16,ir+=tr>>>16,kt[6]=Dr=tr&65535|ir<<16,$t[6]=to=sr&65535|nr<<16,Mn=Fr,$n=no,sr=$n&65535,nr=$n>>>16,tr=Mn&65535,ir=Mn>>>16,Mn=kt[7],$n=$t[7],sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,nr+=sr>>>16,tr+=nr>>>16,ir+=tr>>>16,kt[7]=Fr=tr&65535|ir<<16,$t[7]=no=sr&65535|nr<<16,io+=128,gt-=128}return gt}function kn(kt,$t,Pt){var gt=new Int32Array(8),Nt=new Int32Array(8),Yt=new Uint8Array(256),Et,Lt=Pt;for(gt[0]=1779033703,gt[1]=3144134277,gt[2]=1013904242,gt[3]=2773480762,gt[4]=1359893119,gt[5]=2600822924,gt[6]=528734635,gt[7]=1541459225,Nt[0]=4089235720,Nt[1]=2227873595,Nt[2]=4271175723,Nt[3]=1595750129,Nt[4]=2917565137,Nt[5]=725511199,Nt[6]=4215389547,Nt[7]=327033209,Ln(gt,Nt,$t,Pt),Pt%=128,Et=0;Et=0;--Nt)gt=Pt[Nt/8|0]>>(Nt&7)&1,vn(kt,$t,gt),Fn($t,kt),Fn(kt,kt),vn(kt,$t,gt)}function Un(kt,$t){var Pt=[d(),d(),d(),d()];Rt(Pt[0],at),Rt(Pt[1],it),Rt(Pt[2],tt),yn(Pt[3],at,it),Pn(kt,Pt,$t)}function pn(kt,$t,Pt){var gt=new Uint8Array(64),Nt=[d(),d(),d(),d()],Yt;for(Pt||k($t,32),kn(gt,$t,32),gt[0]&=248,gt[31]&=127,gt[31]|=64,Un(Nt,gt),Bn(kt,Nt),Yt=0;Yt<32;Yt++)$t[Yt+32]=kt[Yt];return 0}var Vt=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function qt(kt,$t){var Pt,gt,Nt,Yt;for(gt=63;gt>=32;--gt){for(Pt=0,Nt=gt-32,Yt=gt-12;Nt>4)*Vt[Nt],Pt=$t[Nt]>>8,$t[Nt]&=255;for(Nt=0;Nt<32;Nt++)$t[Nt]-=Pt*Vt[Nt];for(gt=0;gt<32;gt++)$t[gt+1]+=$t[gt]>>8,kt[gt]=$t[gt]&255}function wn(kt){var $t=new Float64Array(64),Pt;for(Pt=0;Pt<64;Pt++)$t[Pt]=kt[Pt];for(Pt=0;Pt<64;Pt++)kt[Pt]=0;qt(kt,$t)}function Nn(kt,$t,Pt,gt){var Nt=new Uint8Array(64),Yt=new Uint8Array(64),Et=new Uint8Array(64),Lt,Ot,Bt=new Float64Array(64),It=[d(),d(),d(),d()];kn(Nt,gt,32),Nt[0]&=248,Nt[31]&=127,Nt[31]|=64;var an=Pt+64;for(Lt=0;Lt>7&&En(kt[0],et,kt[0]),yn(kt[3],kt[0],kt[1]),0)}function fr(kt,$t,Pt,gt){var Nt,Yt=new Uint8Array(32),Et=new Uint8Array(64),Lt=[d(),d(),d(),d()],Ot=[d(),d(),d(),d()];if(Pt<64||lr(Ot,gt))return-1;for(Nt=0;Nt=0},_.sign.keyPair=function(){var kt=new Uint8Array(kr),$t=new Uint8Array(Tr);return pn(kt,$t),{publicKey:kt,secretKey:$t}},_.sign.keyPair.fromSecretKey=function(kt){if(Zr(kt),kt.length!==Tr)throw new Error("bad secret key size");for(var $t=new Uint8Array(kr),Pt=0;Pt<$t.length;Pt++)$t[Pt]=kt[32+Pt];return{publicKey:$t,secretKey:new Uint8Array(kt)}},_.sign.keyPair.fromSeed=function(kt){if(Zr(kt),kt.length!==Pr)throw new Error("bad seed size");for(var $t=new Uint8Array(kr),Pt=new Uint8Array(Tr),gt=0;gt<32;gt++)Pt[gt]=kt[gt];return pn($t,Pt,!0),{publicKey:$t,secretKey:Pt}},_.sign.publicKeyLength=kr,_.sign.secretKeyLength=Tr,_.sign.seedLength=Pr,_.sign.signatureLength=xr,_.hash=function(kt){Zr(kt);var $t=new Uint8Array(Ir);return kn($t,kt,kt.length),$t},_.hash.hashLength=Ir,_.verify=function(kt,$t){return Zr(kt,$t),kt.length===0||$t.length===0||kt.length!==$t.length?!1:ht(kt,0,$t,0,kt.length)===0},_.setPRNG=function(kt){k=kt},function(){var kt=typeof self<"u"?self.crypto||self.msCrypto:null;if(kt&&kt.getRandomValues){var $t=65536;_.setPRNG(function(Pt,gt){var Nt,Yt=new Uint8Array(gt);for(Nt=0;Nt=b.length)throw new Error("Index is out of buffer");const d=b.slice(0,_),k=b.slice(_);return[d,k]}function toHexString(b){let _="";return b.forEach(d=>{_+=("0"+(d&255).toString(16)).slice(-2)}),_}function hexToByteArray(b){if(b.length%2!==0)throw new Error(`Cannot convert ${b} to bytesArray`);const _=new Uint8Array(b.length/2);for(let d=0;d component higher in the tree to provide a loading indicator or placeholder to display.`)}V!==5&&(V=2),rt=Mi(rt,tt),it=et;do{switch(it.tag){case 3:$=rt,it.flags|=4096,_&=-_,it.lanes|=_;var wt=Pi(it,$,_);Bg(it,wt);break e;case 1:$=rt;var yt=it.type,vt=it.stateNode;if(!(it.flags&64)&&(typeof yt.getDerivedStateFromError=="function"||vt!==null&&typeof vt.componentDidCatch=="function"&&(Ti===null||!Ti.has(vt)))){it.flags|=4096,_&=-_,it.lanes|=_;var St=Si(it,$,_);Bg(it,St);break e}}it=it.return}while(it!==null)}Zj(d)}catch(xt){_=xt,Y===d&&d!==null&&(Y=d=d.return);continue}break}while(1)}function Pj(){var b=oj.current;return oj.current=Gh,b===null?Gh:b}function Tj(b,_){var d=X;X|=16;var k=Pj();U===b&&W===_||Qj(b,_);do try{ak();break}catch(j){Sj(b,j)}while(1);if(qg(),X=d,oj.current=k,Y!==null)throw Error(y(261));return U=null,W=0,V}function ak(){for(;Y!==null;)bk(Y)}function Rj(){for(;Y!==null&&!Qf();)bk(Y)}function bk(b){var _=ck(b.alternate,b,qj);b.memoizedProps=b.pendingProps,_===null?Zj(b):Y=_,pj.current=null}function Zj(b){var _=b;do{var d=_.alternate;if(b=_.return,_.flags&2048){if(d=Li(_),d!==null){d.flags&=2047,Y=d;return}b!==null&&(b.firstEffect=b.lastEffect=null,b.flags|=2048)}else{if(d=Gi(d,_,qj),d!==null){Y=d;return}if(d=_,d.tag!==24&&d.tag!==23||d.memoizedState===null||qj&1073741824||!(d.mode&4)){for(var k=0,j=d.child;j!==null;)k|=j.lanes|j.childLanes,j=j.sibling;d.childLanes=k}b!==null&&!(b.flags&2048)&&(b.firstEffect===null&&(b.firstEffect=_.firstEffect),_.lastEffect!==null&&(b.lastEffect!==null&&(b.lastEffect.nextEffect=_.firstEffect),b.lastEffect=_.lastEffect),1<_.flags&&(b.lastEffect!==null?b.lastEffect.nextEffect=_:b.firstEffect=_,b.lastEffect=_))}if(_=_.sibling,_!==null){Y=_;return}Y=_=b}while(_!==null);V===0&&(V=5)}function Uj(b){var _=eg();return gg(99,dk.bind(null,b,_)),null}function dk(b,_){do Oj();while(yj!==null);if(X&48)throw Error(y(327));var d=b.finishedWork;if(d===null)return null;if(b.finishedWork=null,b.finishedLanes=0,d===b.current)throw Error(y(177));b.callbackNode=null;var k=d.lanes|d.childLanes,j=k,$=b.pendingLanes&~j;b.pendingLanes=j,b.suspendedLanes=0,b.pingedLanes=0,b.expiredLanes&=j,b.mutableReadLanes&=j,b.entangledLanes&=j,j=b.entanglements;for(var et=b.eventTimes,tt=b.expirationTimes;0<$;){var rt=31-Vc($),nt=1<et&&(tt=et,et=wt,wt=tt),tt=Le(ct,wt),$=Le(ct,et),tt&&$&&(lt.rangeCount!==1||lt.anchorNode!==tt.node||lt.anchorOffset!==tt.offset||lt.focusNode!==$.node||lt.focusOffset!==$.offset)&&(pt=pt.createRange(),pt.setStart(tt.node,tt.offset),lt.removeAllRanges(),wt>et?(lt.addRange(pt),lt.extend($.node,$.offset)):(pt.setEnd($.node,$.offset),lt.addRange(pt)))))),pt=[],lt=ct;lt=lt.parentNode;)lt.nodeType===1&&pt.push({element:lt,left:lt.scrollLeft,top:lt.scrollTop});for(typeof ct.focus=="function"&&ct.focus(),ct=0;ctO()-jj?Qj(b,0):uj|=d),Mj(b,_)}function lj(b,_){var d=b.stateNode;d!==null&&d.delete(_),_=0,_===0&&(_=b.mode,_&2?_&4?(Gj===0&&(Gj=tj),_=Yc(62914560&~Gj),_===0&&(_=4194304)):_=eg()===99?1:2:_=1),d=Hg(),b=Kj(b,_),b!==null&&($c(b,_,d),Mj(b,d))}var ck;ck=function(b,_,d){var k=_.lanes;if(b!==null)if(b.memoizedProps!==_.pendingProps||N.current)ug=!0;else if(d&k)ug=!!(b.flags&16384);else{switch(ug=!1,_.tag){case 3:ri(_),sh();break;case 5:gh(_);break;case 1:Ff(_.type)&&Jf(_);break;case 4:eh(_,_.stateNode.containerInfo);break;case 10:k=_.memoizedProps.value;var j=_.type._context;I(mg,j._currentValue),j._currentValue=k;break;case 13:if(_.memoizedState!==null)return d&_.child.childLanes?ti(b,_,d):(I(P$1,P$1.current&1),_=hi(b,_,d),_!==null?_.sibling:null);I(P$1,P$1.current&1);break;case 19:if(k=(d&_.childLanes)!==0,b.flags&64){if(k)return Ai(b,_,d);_.flags|=64}if(j=_.memoizedState,j!==null&&(j.rendering=null,j.tail=null,j.lastEffect=null),I(P$1,P$1.current),k)break;return null;case 23:case 24:return _.lanes=0,mi(b,_,d)}return hi(b,_,d)}else ug=!1;switch(_.lanes=0,_.tag){case 2:if(k=_.type,b!==null&&(b.alternate=null,_.alternate=null,_.flags|=2),b=_.pendingProps,j=Ef(_,M.current),tg(_,d),j=Ch(null,_,k,b,j,d),_.flags|=1,typeof j=="object"&&j!==null&&typeof j.render=="function"&&j.$$typeof===void 0){if(_.tag=1,_.memoizedState=null,_.updateQueue=null,Ff(k)){var $=!0;Jf(_)}else $=!1;_.memoizedState=j.state!==null&&j.state!==void 0?j.state:null,xg(_);var et=k.getDerivedStateFromProps;typeof et=="function"&&Gg(_,k,et,b),j.updater=Kg,_.stateNode=j,j._reactInternals=_,Og(_,k,b,d),_=qi(null,_,k,!0,$,d)}else _.tag=0,fi(null,_,j,d),_=_.child;return _;case 16:j=_.elementType;e:{switch(b!==null&&(b.alternate=null,_.alternate=null,_.flags|=2),b=_.pendingProps,$=j._init,j=$(j._payload),_.type=j,$=_.tag=hk(j),b=lg(j,b),$){case 0:_=li(null,_,j,b,d);break e;case 1:_=pi(null,_,j,b,d);break e;case 11:_=gi(null,_,j,b,d);break e;case 14:_=ii(null,_,j,lg(j.type,b),k,d);break e}throw Error(y(306,j,""))}return _;case 0:return k=_.type,j=_.pendingProps,j=_.elementType===k?j:lg(k,j),li(b,_,k,j,d);case 1:return k=_.type,j=_.pendingProps,j=_.elementType===k?j:lg(k,j),pi(b,_,k,j,d);case 3:if(ri(_),k=_.updateQueue,b===null||k===null)throw Error(y(282));if(k=_.pendingProps,j=_.memoizedState,j=j!==null?j.element:null,yg(b,_),Cg(_,k,null,d),k=_.memoizedState.element,k===j)sh(),_=hi(b,_,d);else{if(j=_.stateNode,($=j.hydrate)&&(kh=rf(_.stateNode.containerInfo.firstChild),jh=_,$=lh=!0),$){if(b=j.mutableSourceEagerHydrationData,b!=null)for(j=0;j"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(b){console.error(b)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const App$2="",logEvent=b=>(b=b.startsWith("ton-connect-ui-")?"TonConnectUI":"TonConnect",_=>{if(!(_ instanceof CustomEvent))return;const d=_.detail;console.log(`${b} Event: ${d.type}`,d)}),tonConnectUiPrefix="ton-connect-ui-",tonConnectUiEvents=["request-version","response-version","connection-started","connection-completed","connection-error","connection-restoring-started","connection-restoring-completed","connection-restoring-error","transaction-sent-for-signature","transaction-signed","transaction-signing-failed","disconnection"].map(b=>`${tonConnectUiPrefix}${b}`),tonConnectPrefix="ton-connect-",tonConnectEvents=["request-version","response-version","connection-started","connection-completed","connection-error","connection-restoring-started","connection-restoring-completed","connection-restoring-error","transaction-sent-for-signature","transaction-signed","transaction-signing-failed","disconnection"].map(b=>`${tonConnectPrefix}${b}`),events=[...tonConnectUiEvents,...tonConnectEvents];for(const b of events)try{window.addEventListener(`${b}`,logEvent(b))}catch{}var naclUtil={exports:{}};(function(b){(function(_,d){b.exports?b.exports=d():(_.nacl||(_.nacl={}),_.nacl.util=d())})(commonjsGlobal,function(){var _={};function d(k){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(k))throw new TypeError("invalid encoding")}return _.decodeUTF8=function(k){if(typeof k!="string")throw new TypeError("expected string");var j,$=unescape(encodeURIComponent(k)),et=new Uint8Array($.length);for(j=0;j<$.length;j++)et[j]=$.charCodeAt(j);return et},_.encodeUTF8=function(k){var j,$=[];for(j=0;j"u"?typeof Buffer.from<"u"?(_.encodeBase64=function(k){return Buffer.from(k).toString("base64")},_.decodeBase64=function(k){return d(k),new Uint8Array(Array.prototype.slice.call(Buffer.from(k,"base64"),0))}):(_.encodeBase64=function(k){return new Buffer(k).toString("base64")},_.decodeBase64=function(k){return d(k),new Uint8Array(Array.prototype.slice.call(new Buffer(k,"base64"),0))}):(_.encodeBase64=function(k){var j,$=[],et=k.length;for(j=0;j>24&255,kt[$t+1]=Pt>>16&255,kt[$t+2]=Pt>>8&255,kt[$t+3]=Pt&255,kt[$t+4]=gt>>24&255,kt[$t+5]=gt>>16&255,kt[$t+6]=gt>>8&255,kt[$t+7]=gt&255}function ht(kt,$t,Pt,gt,Nt){var Yt,Et=0;for(Yt=0;Yt>>8)-1}function ft(kt,$t,Pt,gt){return ht(kt,$t,Pt,gt,16)}function st(kt,$t,Pt,gt){return ht(kt,$t,Pt,gt,32)}function ct(kt,$t,Pt,gt){for(var Nt=gt[0]&255|(gt[1]&255)<<8|(gt[2]&255)<<16|(gt[3]&255)<<24,Yt=Pt[0]&255|(Pt[1]&255)<<8|(Pt[2]&255)<<16|(Pt[3]&255)<<24,Et=Pt[4]&255|(Pt[5]&255)<<8|(Pt[6]&255)<<16|(Pt[7]&255)<<24,Lt=Pt[8]&255|(Pt[9]&255)<<8|(Pt[10]&255)<<16|(Pt[11]&255)<<24,Ot=Pt[12]&255|(Pt[13]&255)<<8|(Pt[14]&255)<<16|(Pt[15]&255)<<24,Bt=gt[4]&255|(gt[5]&255)<<8|(gt[6]&255)<<16|(gt[7]&255)<<24,It=$t[0]&255|($t[1]&255)<<8|($t[2]&255)<<16|($t[3]&255)<<24,an=$t[4]&255|($t[5]&255)<<8|($t[6]&255)<<16|($t[7]&255)<<24,nn=$t[8]&255|($t[9]&255)<<8|($t[10]&255)<<16|($t[11]&255)<<24,Qt=$t[12]&255|($t[13]&255)<<8|($t[14]&255)<<16|($t[15]&255)<<24,Ht=gt[8]&255|(gt[9]&255)<<8|(gt[10]&255)<<16|(gt[11]&255)<<24,gn=Pt[16]&255|(Pt[17]&255)<<8|(Pt[18]&255)<<16|(Pt[19]&255)<<24,Wn=Pt[20]&255|(Pt[21]&255)<<8|(Pt[22]&255)<<16|(Pt[23]&255)<<24,Kn=Pt[24]&255|(Pt[25]&255)<<8|(Pt[26]&255)<<16|(Pt[27]&255)<<24,Yn=Pt[28]&255|(Pt[29]&255)<<8|(Pt[30]&255)<<16|(Pt[31]&255)<<24,er=gt[12]&255|(gt[13]&255)<<8|(gt[14]&255)<<16|(gt[15]&255)<<24,Hn=Nt,Jn=Yt,or=Et,Xn=Lt,mr=Ot,hr=Bt,Mn=It,$n=an,sr=nn,nr=Qt,tr=Ht,ir=gn,Ar=Wn,Mr=Kn,jr=Yn,Or=er,sn,Lr=0;Lr<20;Lr+=2)sn=Hn+Ar|0,mr^=sn<<7|sn>>>32-7,sn=mr+Hn|0,sr^=sn<<9|sn>>>32-9,sn=sr+mr|0,Ar^=sn<<13|sn>>>32-13,sn=Ar+sr|0,Hn^=sn<<18|sn>>>32-18,sn=hr+Jn|0,nr^=sn<<7|sn>>>32-7,sn=nr+hr|0,Mr^=sn<<9|sn>>>32-9,sn=Mr+nr|0,Jn^=sn<<13|sn>>>32-13,sn=Jn+Mr|0,hr^=sn<<18|sn>>>32-18,sn=tr+Mn|0,jr^=sn<<7|sn>>>32-7,sn=jr+tr|0,or^=sn<<9|sn>>>32-9,sn=or+jr|0,Mn^=sn<<13|sn>>>32-13,sn=Mn+or|0,tr^=sn<<18|sn>>>32-18,sn=Or+ir|0,Xn^=sn<<7|sn>>>32-7,sn=Xn+Or|0,$n^=sn<<9|sn>>>32-9,sn=$n+Xn|0,ir^=sn<<13|sn>>>32-13,sn=ir+$n|0,Or^=sn<<18|sn>>>32-18,sn=Hn+Xn|0,Jn^=sn<<7|sn>>>32-7,sn=Jn+Hn|0,or^=sn<<9|sn>>>32-9,sn=or+Jn|0,Xn^=sn<<13|sn>>>32-13,sn=Xn+or|0,Hn^=sn<<18|sn>>>32-18,sn=hr+mr|0,Mn^=sn<<7|sn>>>32-7,sn=Mn+hr|0,$n^=sn<<9|sn>>>32-9,sn=$n+Mn|0,mr^=sn<<13|sn>>>32-13,sn=mr+$n|0,hr^=sn<<18|sn>>>32-18,sn=tr+nr|0,ir^=sn<<7|sn>>>32-7,sn=ir+tr|0,sr^=sn<<9|sn>>>32-9,sn=sr+ir|0,nr^=sn<<13|sn>>>32-13,sn=nr+sr|0,tr^=sn<<18|sn>>>32-18,sn=Or+jr|0,Ar^=sn<<7|sn>>>32-7,sn=Ar+Or|0,Mr^=sn<<9|sn>>>32-9,sn=Mr+Ar|0,jr^=sn<<13|sn>>>32-13,sn=jr+Mr|0,Or^=sn<<18|sn>>>32-18;Hn=Hn+Nt|0,Jn=Jn+Yt|0,or=or+Et|0,Xn=Xn+Lt|0,mr=mr+Ot|0,hr=hr+Bt|0,Mn=Mn+It|0,$n=$n+an|0,sr=sr+nn|0,nr=nr+Qt|0,tr=tr+Ht|0,ir=ir+gn|0,Ar=Ar+Wn|0,Mr=Mr+Kn|0,jr=jr+Yn|0,Or=Or+er|0,kt[0]=Hn>>>0&255,kt[1]=Hn>>>8&255,kt[2]=Hn>>>16&255,kt[3]=Hn>>>24&255,kt[4]=Jn>>>0&255,kt[5]=Jn>>>8&255,kt[6]=Jn>>>16&255,kt[7]=Jn>>>24&255,kt[8]=or>>>0&255,kt[9]=or>>>8&255,kt[10]=or>>>16&255,kt[11]=or>>>24&255,kt[12]=Xn>>>0&255,kt[13]=Xn>>>8&255,kt[14]=Xn>>>16&255,kt[15]=Xn>>>24&255,kt[16]=mr>>>0&255,kt[17]=mr>>>8&255,kt[18]=mr>>>16&255,kt[19]=mr>>>24&255,kt[20]=hr>>>0&255,kt[21]=hr>>>8&255,kt[22]=hr>>>16&255,kt[23]=hr>>>24&255,kt[24]=Mn>>>0&255,kt[25]=Mn>>>8&255,kt[26]=Mn>>>16&255,kt[27]=Mn>>>24&255,kt[28]=$n>>>0&255,kt[29]=$n>>>8&255,kt[30]=$n>>>16&255,kt[31]=$n>>>24&255,kt[32]=sr>>>0&255,kt[33]=sr>>>8&255,kt[34]=sr>>>16&255,kt[35]=sr>>>24&255,kt[36]=nr>>>0&255,kt[37]=nr>>>8&255,kt[38]=nr>>>16&255,kt[39]=nr>>>24&255,kt[40]=tr>>>0&255,kt[41]=tr>>>8&255,kt[42]=tr>>>16&255,kt[43]=tr>>>24&255,kt[44]=ir>>>0&255,kt[45]=ir>>>8&255,kt[46]=ir>>>16&255,kt[47]=ir>>>24&255,kt[48]=Ar>>>0&255,kt[49]=Ar>>>8&255,kt[50]=Ar>>>16&255,kt[51]=Ar>>>24&255,kt[52]=Mr>>>0&255,kt[53]=Mr>>>8&255,kt[54]=Mr>>>16&255,kt[55]=Mr>>>24&255,kt[56]=jr>>>0&255,kt[57]=jr>>>8&255,kt[58]=jr>>>16&255,kt[59]=jr>>>24&255,kt[60]=Or>>>0&255,kt[61]=Or>>>8&255,kt[62]=Or>>>16&255,kt[63]=Or>>>24&255}function pt(kt,$t,Pt,gt){for(var Nt=gt[0]&255|(gt[1]&255)<<8|(gt[2]&255)<<16|(gt[3]&255)<<24,Yt=Pt[0]&255|(Pt[1]&255)<<8|(Pt[2]&255)<<16|(Pt[3]&255)<<24,Et=Pt[4]&255|(Pt[5]&255)<<8|(Pt[6]&255)<<16|(Pt[7]&255)<<24,Lt=Pt[8]&255|(Pt[9]&255)<<8|(Pt[10]&255)<<16|(Pt[11]&255)<<24,Ot=Pt[12]&255|(Pt[13]&255)<<8|(Pt[14]&255)<<16|(Pt[15]&255)<<24,Bt=gt[4]&255|(gt[5]&255)<<8|(gt[6]&255)<<16|(gt[7]&255)<<24,It=$t[0]&255|($t[1]&255)<<8|($t[2]&255)<<16|($t[3]&255)<<24,an=$t[4]&255|($t[5]&255)<<8|($t[6]&255)<<16|($t[7]&255)<<24,nn=$t[8]&255|($t[9]&255)<<8|($t[10]&255)<<16|($t[11]&255)<<24,Qt=$t[12]&255|($t[13]&255)<<8|($t[14]&255)<<16|($t[15]&255)<<24,Ht=gt[8]&255|(gt[9]&255)<<8|(gt[10]&255)<<16|(gt[11]&255)<<24,gn=Pt[16]&255|(Pt[17]&255)<<8|(Pt[18]&255)<<16|(Pt[19]&255)<<24,Wn=Pt[20]&255|(Pt[21]&255)<<8|(Pt[22]&255)<<16|(Pt[23]&255)<<24,Kn=Pt[24]&255|(Pt[25]&255)<<8|(Pt[26]&255)<<16|(Pt[27]&255)<<24,Yn=Pt[28]&255|(Pt[29]&255)<<8|(Pt[30]&255)<<16|(Pt[31]&255)<<24,er=gt[12]&255|(gt[13]&255)<<8|(gt[14]&255)<<16|(gt[15]&255)<<24,Hn=Nt,Jn=Yt,or=Et,Xn=Lt,mr=Ot,hr=Bt,Mn=It,$n=an,sr=nn,nr=Qt,tr=Ht,ir=gn,Ar=Wn,Mr=Kn,jr=Yn,Or=er,sn,Lr=0;Lr<20;Lr+=2)sn=Hn+Ar|0,mr^=sn<<7|sn>>>32-7,sn=mr+Hn|0,sr^=sn<<9|sn>>>32-9,sn=sr+mr|0,Ar^=sn<<13|sn>>>32-13,sn=Ar+sr|0,Hn^=sn<<18|sn>>>32-18,sn=hr+Jn|0,nr^=sn<<7|sn>>>32-7,sn=nr+hr|0,Mr^=sn<<9|sn>>>32-9,sn=Mr+nr|0,Jn^=sn<<13|sn>>>32-13,sn=Jn+Mr|0,hr^=sn<<18|sn>>>32-18,sn=tr+Mn|0,jr^=sn<<7|sn>>>32-7,sn=jr+tr|0,or^=sn<<9|sn>>>32-9,sn=or+jr|0,Mn^=sn<<13|sn>>>32-13,sn=Mn+or|0,tr^=sn<<18|sn>>>32-18,sn=Or+ir|0,Xn^=sn<<7|sn>>>32-7,sn=Xn+Or|0,$n^=sn<<9|sn>>>32-9,sn=$n+Xn|0,ir^=sn<<13|sn>>>32-13,sn=ir+$n|0,Or^=sn<<18|sn>>>32-18,sn=Hn+Xn|0,Jn^=sn<<7|sn>>>32-7,sn=Jn+Hn|0,or^=sn<<9|sn>>>32-9,sn=or+Jn|0,Xn^=sn<<13|sn>>>32-13,sn=Xn+or|0,Hn^=sn<<18|sn>>>32-18,sn=hr+mr|0,Mn^=sn<<7|sn>>>32-7,sn=Mn+hr|0,$n^=sn<<9|sn>>>32-9,sn=$n+Mn|0,mr^=sn<<13|sn>>>32-13,sn=mr+$n|0,hr^=sn<<18|sn>>>32-18,sn=tr+nr|0,ir^=sn<<7|sn>>>32-7,sn=ir+tr|0,sr^=sn<<9|sn>>>32-9,sn=sr+ir|0,nr^=sn<<13|sn>>>32-13,sn=nr+sr|0,tr^=sn<<18|sn>>>32-18,sn=Or+jr|0,Ar^=sn<<7|sn>>>32-7,sn=Ar+Or|0,Mr^=sn<<9|sn>>>32-9,sn=Mr+Ar|0,jr^=sn<<13|sn>>>32-13,sn=jr+Mr|0,Or^=sn<<18|sn>>>32-18;kt[0]=Hn>>>0&255,kt[1]=Hn>>>8&255,kt[2]=Hn>>>16&255,kt[3]=Hn>>>24&255,kt[4]=hr>>>0&255,kt[5]=hr>>>8&255,kt[6]=hr>>>16&255,kt[7]=hr>>>24&255,kt[8]=tr>>>0&255,kt[9]=tr>>>8&255,kt[10]=tr>>>16&255,kt[11]=tr>>>24&255,kt[12]=Or>>>0&255,kt[13]=Or>>>8&255,kt[14]=Or>>>16&255,kt[15]=Or>>>24&255,kt[16]=Mn>>>0&255,kt[17]=Mn>>>8&255,kt[18]=Mn>>>16&255,kt[19]=Mn>>>24&255,kt[20]=$n>>>0&255,kt[21]=$n>>>8&255,kt[22]=$n>>>16&255,kt[23]=$n>>>24&255,kt[24]=sr>>>0&255,kt[25]=sr>>>8&255,kt[26]=sr>>>16&255,kt[27]=sr>>>24&255,kt[28]=nr>>>0&255,kt[29]=nr>>>8&255,kt[30]=nr>>>16&255,kt[31]=nr>>>24&255}function lt(kt,$t,Pt,gt){ct(kt,$t,Pt,gt)}function wt(kt,$t,Pt,gt){pt(kt,$t,Pt,gt)}var yt=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function vt(kt,$t,Pt,gt,Nt,Yt,Et){var Lt=new Uint8Array(16),Ot=new Uint8Array(64),Bt,It;for(It=0;It<16;It++)Lt[It]=0;for(It=0;It<8;It++)Lt[It]=Yt[It];for(;Nt>=64;){for(lt(Ot,Lt,Et,yt),It=0;It<64;It++)kt[$t+It]=Pt[gt+It]^Ot[It];for(Bt=1,It=8;It<16;It++)Bt=Bt+(Lt[It]&255)|0,Lt[It]=Bt&255,Bt>>>=8;Nt-=64,$t+=64,gt+=64}if(Nt>0)for(lt(Ot,Lt,Et,yt),It=0;It=64;){for(lt(Et,Yt,Nt,yt),Ot=0;Ot<64;Ot++)kt[$t+Ot]=Et[Ot];for(Lt=1,Ot=8;Ot<16;Ot++)Lt=Lt+(Yt[Ot]&255)|0,Yt[Ot]=Lt&255,Lt>>>=8;Pt-=64,$t+=64}if(Pt>0)for(lt(Et,Yt,Nt,yt),Ot=0;Ot>>13|Pt<<3)&8191,gt=kt[4]&255|(kt[5]&255)<<8,this.r[2]=(Pt>>>10|gt<<6)&7939,Nt=kt[6]&255|(kt[7]&255)<<8,this.r[3]=(gt>>>7|Nt<<9)&8191,Yt=kt[8]&255|(kt[9]&255)<<8,this.r[4]=(Nt>>>4|Yt<<12)&255,this.r[5]=Yt>>>1&8190,Et=kt[10]&255|(kt[11]&255)<<8,this.r[6]=(Yt>>>14|Et<<2)&8191,Lt=kt[12]&255|(kt[13]&255)<<8,this.r[7]=(Et>>>11|Lt<<5)&8065,Ot=kt[14]&255|(kt[15]&255)<<8,this.r[8]=(Lt>>>8|Ot<<8)&8191,this.r[9]=Ot>>>5&127,this.pad[0]=kt[16]&255|(kt[17]&255)<<8,this.pad[1]=kt[18]&255|(kt[19]&255)<<8,this.pad[2]=kt[20]&255|(kt[21]&255)<<8,this.pad[3]=kt[22]&255|(kt[23]&255)<<8,this.pad[4]=kt[24]&255|(kt[25]&255)<<8,this.pad[5]=kt[26]&255|(kt[27]&255)<<8,this.pad[6]=kt[28]&255|(kt[29]&255)<<8,this.pad[7]=kt[30]&255|(kt[31]&255)<<8};At.prototype.blocks=function(kt,$t,Pt){for(var gt=this.fin?0:2048,Nt,Yt,Et,Lt,Ot,Bt,It,an,nn,Qt,Ht,gn,Wn,Kn,Yn,er,Hn,Jn,or,Xn=this.h[0],mr=this.h[1],hr=this.h[2],Mn=this.h[3],$n=this.h[4],sr=this.h[5],nr=this.h[6],tr=this.h[7],ir=this.h[8],Ar=this.h[9],Mr=this.r[0],jr=this.r[1],Or=this.r[2],sn=this.r[3],Lr=this.r[4],Dr=this.r[5],Fr=this.r[6],Nr=this.r[7],Br=this.r[8],Wr=this.r[9];Pt>=16;)Nt=kt[$t+0]&255|(kt[$t+1]&255)<<8,Xn+=Nt&8191,Yt=kt[$t+2]&255|(kt[$t+3]&255)<<8,mr+=(Nt>>>13|Yt<<3)&8191,Et=kt[$t+4]&255|(kt[$t+5]&255)<<8,hr+=(Yt>>>10|Et<<6)&8191,Lt=kt[$t+6]&255|(kt[$t+7]&255)<<8,Mn+=(Et>>>7|Lt<<9)&8191,Ot=kt[$t+8]&255|(kt[$t+9]&255)<<8,$n+=(Lt>>>4|Ot<<12)&8191,sr+=Ot>>>1&8191,Bt=kt[$t+10]&255|(kt[$t+11]&255)<<8,nr+=(Ot>>>14|Bt<<2)&8191,It=kt[$t+12]&255|(kt[$t+13]&255)<<8,tr+=(Bt>>>11|It<<5)&8191,an=kt[$t+14]&255|(kt[$t+15]&255)<<8,ir+=(It>>>8|an<<8)&8191,Ar+=an>>>5|gt,nn=0,Qt=nn,Qt+=Xn*Mr,Qt+=mr*(5*Wr),Qt+=hr*(5*Br),Qt+=Mn*(5*Nr),Qt+=$n*(5*Fr),nn=Qt>>>13,Qt&=8191,Qt+=sr*(5*Dr),Qt+=nr*(5*Lr),Qt+=tr*(5*sn),Qt+=ir*(5*Or),Qt+=Ar*(5*jr),nn+=Qt>>>13,Qt&=8191,Ht=nn,Ht+=Xn*jr,Ht+=mr*Mr,Ht+=hr*(5*Wr),Ht+=Mn*(5*Br),Ht+=$n*(5*Nr),nn=Ht>>>13,Ht&=8191,Ht+=sr*(5*Fr),Ht+=nr*(5*Dr),Ht+=tr*(5*Lr),Ht+=ir*(5*sn),Ht+=Ar*(5*Or),nn+=Ht>>>13,Ht&=8191,gn=nn,gn+=Xn*Or,gn+=mr*jr,gn+=hr*Mr,gn+=Mn*(5*Wr),gn+=$n*(5*Br),nn=gn>>>13,gn&=8191,gn+=sr*(5*Nr),gn+=nr*(5*Fr),gn+=tr*(5*Dr),gn+=ir*(5*Lr),gn+=Ar*(5*sn),nn+=gn>>>13,gn&=8191,Wn=nn,Wn+=Xn*sn,Wn+=mr*Or,Wn+=hr*jr,Wn+=Mn*Mr,Wn+=$n*(5*Wr),nn=Wn>>>13,Wn&=8191,Wn+=sr*(5*Br),Wn+=nr*(5*Nr),Wn+=tr*(5*Fr),Wn+=ir*(5*Dr),Wn+=Ar*(5*Lr),nn+=Wn>>>13,Wn&=8191,Kn=nn,Kn+=Xn*Lr,Kn+=mr*sn,Kn+=hr*Or,Kn+=Mn*jr,Kn+=$n*Mr,nn=Kn>>>13,Kn&=8191,Kn+=sr*(5*Wr),Kn+=nr*(5*Br),Kn+=tr*(5*Nr),Kn+=ir*(5*Fr),Kn+=Ar*(5*Dr),nn+=Kn>>>13,Kn&=8191,Yn=nn,Yn+=Xn*Dr,Yn+=mr*Lr,Yn+=hr*sn,Yn+=Mn*Or,Yn+=$n*jr,nn=Yn>>>13,Yn&=8191,Yn+=sr*Mr,Yn+=nr*(5*Wr),Yn+=tr*(5*Br),Yn+=ir*(5*Nr),Yn+=Ar*(5*Fr),nn+=Yn>>>13,Yn&=8191,er=nn,er+=Xn*Fr,er+=mr*Dr,er+=hr*Lr,er+=Mn*sn,er+=$n*Or,nn=er>>>13,er&=8191,er+=sr*jr,er+=nr*Mr,er+=tr*(5*Wr),er+=ir*(5*Br),er+=Ar*(5*Nr),nn+=er>>>13,er&=8191,Hn=nn,Hn+=Xn*Nr,Hn+=mr*Fr,Hn+=hr*Dr,Hn+=Mn*Lr,Hn+=$n*sn,nn=Hn>>>13,Hn&=8191,Hn+=sr*Or,Hn+=nr*jr,Hn+=tr*Mr,Hn+=ir*(5*Wr),Hn+=Ar*(5*Br),nn+=Hn>>>13,Hn&=8191,Jn=nn,Jn+=Xn*Br,Jn+=mr*Nr,Jn+=hr*Fr,Jn+=Mn*Dr,Jn+=$n*Lr,nn=Jn>>>13,Jn&=8191,Jn+=sr*sn,Jn+=nr*Or,Jn+=tr*jr,Jn+=ir*Mr,Jn+=Ar*(5*Wr),nn+=Jn>>>13,Jn&=8191,or=nn,or+=Xn*Wr,or+=mr*Br,or+=hr*Nr,or+=Mn*Fr,or+=$n*Dr,nn=or>>>13,or&=8191,or+=sr*Lr,or+=nr*sn,or+=tr*Or,or+=ir*jr,or+=Ar*Mr,nn+=or>>>13,or&=8191,nn=(nn<<2)+nn|0,nn=nn+Qt|0,Qt=nn&8191,nn=nn>>>13,Ht+=nn,Xn=Qt,mr=Ht,hr=gn,Mn=Wn,$n=Kn,sr=Yn,nr=er,tr=Hn,ir=Jn,Ar=or,$t+=16,Pt-=16;this.h[0]=Xn,this.h[1]=mr,this.h[2]=hr,this.h[3]=Mn,this.h[4]=$n,this.h[5]=sr,this.h[6]=nr,this.h[7]=tr,this.h[8]=ir,this.h[9]=Ar},At.prototype.finish=function(kt,$t){var Pt=new Uint16Array(10),gt,Nt,Yt,Et;if(this.leftover){for(Et=this.leftover,this.buffer[Et++]=1;Et<16;Et++)this.buffer[Et]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(gt=this.h[1]>>>13,this.h[1]&=8191,Et=2;Et<10;Et++)this.h[Et]+=gt,gt=this.h[Et]>>>13,this.h[Et]&=8191;for(this.h[0]+=gt*5,gt=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=gt,gt=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=gt,Pt[0]=this.h[0]+5,gt=Pt[0]>>>13,Pt[0]&=8191,Et=1;Et<10;Et++)Pt[Et]=this.h[Et]+gt,gt=Pt[Et]>>>13,Pt[Et]&=8191;for(Pt[9]-=8192,Nt=(gt^1)-1,Et=0;Et<10;Et++)Pt[Et]&=Nt;for(Nt=~Nt,Et=0;Et<10;Et++)this.h[Et]=this.h[Et]&Nt|Pt[Et];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,Yt=this.h[0]+this.pad[0],this.h[0]=Yt&65535,Et=1;Et<8;Et++)Yt=(this.h[Et]+this.pad[Et]|0)+(Yt>>>16)|0,this.h[Et]=Yt&65535;kt[$t+0]=this.h[0]>>>0&255,kt[$t+1]=this.h[0]>>>8&255,kt[$t+2]=this.h[1]>>>0&255,kt[$t+3]=this.h[1]>>>8&255,kt[$t+4]=this.h[2]>>>0&255,kt[$t+5]=this.h[2]>>>8&255,kt[$t+6]=this.h[3]>>>0&255,kt[$t+7]=this.h[3]>>>8&255,kt[$t+8]=this.h[4]>>>0&255,kt[$t+9]=this.h[4]>>>8&255,kt[$t+10]=this.h[5]>>>0&255,kt[$t+11]=this.h[5]>>>8&255,kt[$t+12]=this.h[6]>>>0&255,kt[$t+13]=this.h[6]>>>8&255,kt[$t+14]=this.h[7]>>>0&255,kt[$t+15]=this.h[7]>>>8&255},At.prototype.update=function(kt,$t,Pt){var gt,Nt;if(this.leftover){for(Nt=16-this.leftover,Nt>Pt&&(Nt=Pt),gt=0;gt=16&&(Nt=Pt-Pt%16,this.blocks(kt,$t,Nt),$t+=Nt,Pt-=Nt),Pt){for(gt=0;gt>16&1),Yt[Pt-1]&=65535;Yt[15]=Et[15]-32767-(Yt[14]>>16&1),Nt=Yt[15]>>16&1,Yt[14]&=65535,Xt(Et,Yt,1-Nt)}for(Pt=0;Pt<16;Pt++)kt[2*Pt]=Et[Pt]&255,kt[2*Pt+1]=Et[Pt]>>8}function Kt(kt,$t){var Pt=new Uint8Array(32),gt=new Uint8Array(32);return Jt(Pt,kt),Jt(gt,$t),st(Pt,0,gt,0)}function Zt(kt){var $t=new Uint8Array(32);return Jt($t,kt),$t[0]&1}function dn(kt,$t){var Pt;for(Pt=0;Pt<16;Pt++)kt[Pt]=$t[2*Pt]+($t[2*Pt+1]<<8);kt[15]&=32767}function An(kt,$t,Pt){for(var gt=0;gt<16;gt++)kt[gt]=$t[gt]+Pt[gt]}function En(kt,$t,Pt){for(var gt=0;gt<16;gt++)kt[gt]=$t[gt]-Pt[gt]}function yn(kt,$t,Pt){var gt,Nt,Yt=0,Et=0,Lt=0,Ot=0,Bt=0,It=0,an=0,nn=0,Qt=0,Ht=0,gn=0,Wn=0,Kn=0,Yn=0,er=0,Hn=0,Jn=0,or=0,Xn=0,mr=0,hr=0,Mn=0,$n=0,sr=0,nr=0,tr=0,ir=0,Ar=0,Mr=0,jr=0,Or=0,sn=Pt[0],Lr=Pt[1],Dr=Pt[2],Fr=Pt[3],Nr=Pt[4],Br=Pt[5],Wr=Pt[6],ro=Pt[7],qr=Pt[8],eo=Pt[9],to=Pt[10],no=Pt[11],io=Pt[12],co=Pt[13],so=Pt[14],fo=Pt[15];gt=$t[0],Yt+=gt*sn,Et+=gt*Lr,Lt+=gt*Dr,Ot+=gt*Fr,Bt+=gt*Nr,It+=gt*Br,an+=gt*Wr,nn+=gt*ro,Qt+=gt*qr,Ht+=gt*eo,gn+=gt*to,Wn+=gt*no,Kn+=gt*io,Yn+=gt*co,er+=gt*so,Hn+=gt*fo,gt=$t[1],Et+=gt*sn,Lt+=gt*Lr,Ot+=gt*Dr,Bt+=gt*Fr,It+=gt*Nr,an+=gt*Br,nn+=gt*Wr,Qt+=gt*ro,Ht+=gt*qr,gn+=gt*eo,Wn+=gt*to,Kn+=gt*no,Yn+=gt*io,er+=gt*co,Hn+=gt*so,Jn+=gt*fo,gt=$t[2],Lt+=gt*sn,Ot+=gt*Lr,Bt+=gt*Dr,It+=gt*Fr,an+=gt*Nr,nn+=gt*Br,Qt+=gt*Wr,Ht+=gt*ro,gn+=gt*qr,Wn+=gt*eo,Kn+=gt*to,Yn+=gt*no,er+=gt*io,Hn+=gt*co,Jn+=gt*so,or+=gt*fo,gt=$t[3],Ot+=gt*sn,Bt+=gt*Lr,It+=gt*Dr,an+=gt*Fr,nn+=gt*Nr,Qt+=gt*Br,Ht+=gt*Wr,gn+=gt*ro,Wn+=gt*qr,Kn+=gt*eo,Yn+=gt*to,er+=gt*no,Hn+=gt*io,Jn+=gt*co,or+=gt*so,Xn+=gt*fo,gt=$t[4],Bt+=gt*sn,It+=gt*Lr,an+=gt*Dr,nn+=gt*Fr,Qt+=gt*Nr,Ht+=gt*Br,gn+=gt*Wr,Wn+=gt*ro,Kn+=gt*qr,Yn+=gt*eo,er+=gt*to,Hn+=gt*no,Jn+=gt*io,or+=gt*co,Xn+=gt*so,mr+=gt*fo,gt=$t[5],It+=gt*sn,an+=gt*Lr,nn+=gt*Dr,Qt+=gt*Fr,Ht+=gt*Nr,gn+=gt*Br,Wn+=gt*Wr,Kn+=gt*ro,Yn+=gt*qr,er+=gt*eo,Hn+=gt*to,Jn+=gt*no,or+=gt*io,Xn+=gt*co,mr+=gt*so,hr+=gt*fo,gt=$t[6],an+=gt*sn,nn+=gt*Lr,Qt+=gt*Dr,Ht+=gt*Fr,gn+=gt*Nr,Wn+=gt*Br,Kn+=gt*Wr,Yn+=gt*ro,er+=gt*qr,Hn+=gt*eo,Jn+=gt*to,or+=gt*no,Xn+=gt*io,mr+=gt*co,hr+=gt*so,Mn+=gt*fo,gt=$t[7],nn+=gt*sn,Qt+=gt*Lr,Ht+=gt*Dr,gn+=gt*Fr,Wn+=gt*Nr,Kn+=gt*Br,Yn+=gt*Wr,er+=gt*ro,Hn+=gt*qr,Jn+=gt*eo,or+=gt*to,Xn+=gt*no,mr+=gt*io,hr+=gt*co,Mn+=gt*so,$n+=gt*fo,gt=$t[8],Qt+=gt*sn,Ht+=gt*Lr,gn+=gt*Dr,Wn+=gt*Fr,Kn+=gt*Nr,Yn+=gt*Br,er+=gt*Wr,Hn+=gt*ro,Jn+=gt*qr,or+=gt*eo,Xn+=gt*to,mr+=gt*no,hr+=gt*io,Mn+=gt*co,$n+=gt*so,sr+=gt*fo,gt=$t[9],Ht+=gt*sn,gn+=gt*Lr,Wn+=gt*Dr,Kn+=gt*Fr,Yn+=gt*Nr,er+=gt*Br,Hn+=gt*Wr,Jn+=gt*ro,or+=gt*qr,Xn+=gt*eo,mr+=gt*to,hr+=gt*no,Mn+=gt*io,$n+=gt*co,sr+=gt*so,nr+=gt*fo,gt=$t[10],gn+=gt*sn,Wn+=gt*Lr,Kn+=gt*Dr,Yn+=gt*Fr,er+=gt*Nr,Hn+=gt*Br,Jn+=gt*Wr,or+=gt*ro,Xn+=gt*qr,mr+=gt*eo,hr+=gt*to,Mn+=gt*no,$n+=gt*io,sr+=gt*co,nr+=gt*so,tr+=gt*fo,gt=$t[11],Wn+=gt*sn,Kn+=gt*Lr,Yn+=gt*Dr,er+=gt*Fr,Hn+=gt*Nr,Jn+=gt*Br,or+=gt*Wr,Xn+=gt*ro,mr+=gt*qr,hr+=gt*eo,Mn+=gt*to,$n+=gt*no,sr+=gt*io,nr+=gt*co,tr+=gt*so,ir+=gt*fo,gt=$t[12],Kn+=gt*sn,Yn+=gt*Lr,er+=gt*Dr,Hn+=gt*Fr,Jn+=gt*Nr,or+=gt*Br,Xn+=gt*Wr,mr+=gt*ro,hr+=gt*qr,Mn+=gt*eo,$n+=gt*to,sr+=gt*no,nr+=gt*io,tr+=gt*co,ir+=gt*so,Ar+=gt*fo,gt=$t[13],Yn+=gt*sn,er+=gt*Lr,Hn+=gt*Dr,Jn+=gt*Fr,or+=gt*Nr,Xn+=gt*Br,mr+=gt*Wr,hr+=gt*ro,Mn+=gt*qr,$n+=gt*eo,sr+=gt*to,nr+=gt*no,tr+=gt*io,ir+=gt*co,Ar+=gt*so,Mr+=gt*fo,gt=$t[14],er+=gt*sn,Hn+=gt*Lr,Jn+=gt*Dr,or+=gt*Fr,Xn+=gt*Nr,mr+=gt*Br,hr+=gt*Wr,Mn+=gt*ro,$n+=gt*qr,sr+=gt*eo,nr+=gt*to,tr+=gt*no,ir+=gt*io,Ar+=gt*co,Mr+=gt*so,jr+=gt*fo,gt=$t[15],Hn+=gt*sn,Jn+=gt*Lr,or+=gt*Dr,Xn+=gt*Fr,mr+=gt*Nr,hr+=gt*Br,Mn+=gt*Wr,$n+=gt*ro,sr+=gt*qr,nr+=gt*eo,tr+=gt*to,ir+=gt*no,Ar+=gt*io,Mr+=gt*co,jr+=gt*so,Or+=gt*fo,Yt+=38*Jn,Et+=38*or,Lt+=38*Xn,Ot+=38*mr,Bt+=38*hr,It+=38*Mn,an+=38*$n,nn+=38*sr,Qt+=38*nr,Ht+=38*tr,gn+=38*ir,Wn+=38*Ar,Kn+=38*Mr,Yn+=38*jr,er+=38*Or,Nt=1,gt=Yt+Nt+65535,Nt=Math.floor(gt/65536),Yt=gt-Nt*65536,gt=Et+Nt+65535,Nt=Math.floor(gt/65536),Et=gt-Nt*65536,gt=Lt+Nt+65535,Nt=Math.floor(gt/65536),Lt=gt-Nt*65536,gt=Ot+Nt+65535,Nt=Math.floor(gt/65536),Ot=gt-Nt*65536,gt=Bt+Nt+65535,Nt=Math.floor(gt/65536),Bt=gt-Nt*65536,gt=It+Nt+65535,Nt=Math.floor(gt/65536),It=gt-Nt*65536,gt=an+Nt+65535,Nt=Math.floor(gt/65536),an=gt-Nt*65536,gt=nn+Nt+65535,Nt=Math.floor(gt/65536),nn=gt-Nt*65536,gt=Qt+Nt+65535,Nt=Math.floor(gt/65536),Qt=gt-Nt*65536,gt=Ht+Nt+65535,Nt=Math.floor(gt/65536),Ht=gt-Nt*65536,gt=gn+Nt+65535,Nt=Math.floor(gt/65536),gn=gt-Nt*65536,gt=Wn+Nt+65535,Nt=Math.floor(gt/65536),Wn=gt-Nt*65536,gt=Kn+Nt+65535,Nt=Math.floor(gt/65536),Kn=gt-Nt*65536,gt=Yn+Nt+65535,Nt=Math.floor(gt/65536),Yn=gt-Nt*65536,gt=er+Nt+65535,Nt=Math.floor(gt/65536),er=gt-Nt*65536,gt=Hn+Nt+65535,Nt=Math.floor(gt/65536),Hn=gt-Nt*65536,Yt+=Nt-1+37*(Nt-1),Nt=1,gt=Yt+Nt+65535,Nt=Math.floor(gt/65536),Yt=gt-Nt*65536,gt=Et+Nt+65535,Nt=Math.floor(gt/65536),Et=gt-Nt*65536,gt=Lt+Nt+65535,Nt=Math.floor(gt/65536),Lt=gt-Nt*65536,gt=Ot+Nt+65535,Nt=Math.floor(gt/65536),Ot=gt-Nt*65536,gt=Bt+Nt+65535,Nt=Math.floor(gt/65536),Bt=gt-Nt*65536,gt=It+Nt+65535,Nt=Math.floor(gt/65536),It=gt-Nt*65536,gt=an+Nt+65535,Nt=Math.floor(gt/65536),an=gt-Nt*65536,gt=nn+Nt+65535,Nt=Math.floor(gt/65536),nn=gt-Nt*65536,gt=Qt+Nt+65535,Nt=Math.floor(gt/65536),Qt=gt-Nt*65536,gt=Ht+Nt+65535,Nt=Math.floor(gt/65536),Ht=gt-Nt*65536,gt=gn+Nt+65535,Nt=Math.floor(gt/65536),gn=gt-Nt*65536,gt=Wn+Nt+65535,Nt=Math.floor(gt/65536),Wn=gt-Nt*65536,gt=Kn+Nt+65535,Nt=Math.floor(gt/65536),Kn=gt-Nt*65536,gt=Yn+Nt+65535,Nt=Math.floor(gt/65536),Yn=gt-Nt*65536,gt=er+Nt+65535,Nt=Math.floor(gt/65536),er=gt-Nt*65536,gt=Hn+Nt+65535,Nt=Math.floor(gt/65536),Hn=gt-Nt*65536,Yt+=Nt-1+37*(Nt-1),kt[0]=Yt,kt[1]=Et,kt[2]=Lt,kt[3]=Ot,kt[4]=Bt,kt[5]=It,kt[6]=an,kt[7]=nn,kt[8]=Qt,kt[9]=Ht,kt[10]=gn,kt[11]=Wn,kt[12]=Kn,kt[13]=Yn,kt[14]=er,kt[15]=Hn}function jn(kt,$t){yn(kt,$t,$t)}function Vn(kt,$t){var Pt=d(),gt;for(gt=0;gt<16;gt++)Pt[gt]=$t[gt];for(gt=253;gt>=0;gt--)jn(Pt,Pt),gt!==2&>!==4&&yn(Pt,Pt,$t);for(gt=0;gt<16;gt++)kt[gt]=Pt[gt]}function rn(kt,$t){var Pt=d(),gt;for(gt=0;gt<16;gt++)Pt[gt]=$t[gt];for(gt=250;gt>=0;gt--)jn(Pt,Pt),gt!==1&&yn(Pt,Pt,$t);for(gt=0;gt<16;gt++)kt[gt]=Pt[gt]}function xn(kt,$t,Pt){var gt=new Uint8Array(32),Nt=new Float64Array(80),Yt,Et,Lt=d(),Ot=d(),Bt=d(),It=d(),an=d(),nn=d();for(Et=0;Et<31;Et++)gt[Et]=$t[Et];for(gt[31]=$t[31]&127|64,gt[0]&=248,dn(Nt,Pt),Et=0;Et<16;Et++)Ot[Et]=Nt[Et],It[Et]=Lt[Et]=Bt[Et]=0;for(Lt[0]=It[0]=1,Et=254;Et>=0;--Et)Yt=gt[Et>>>3]>>>(Et&7)&1,Xt(Lt,Ot,Yt),Xt(Bt,It,Yt),An(an,Lt,Bt),En(Lt,Lt,Bt),An(Bt,Ot,It),En(Ot,Ot,It),jn(It,an),jn(nn,Lt),yn(Lt,Bt,Lt),yn(Bt,Ot,an),An(an,Lt,Bt),En(Lt,Lt,Bt),jn(Ot,Lt),En(Bt,It,nn),yn(Lt,Bt,rt),An(Lt,Lt,It),yn(Bt,Bt,Lt),yn(Lt,It,nn),yn(It,Ot,Nt),jn(Ot,an),Xt(Lt,Ot,Yt),Xt(Bt,It,Yt);for(Et=0;Et<16;Et++)Nt[Et+16]=Lt[Et],Nt[Et+32]=Bt[Et],Nt[Et+48]=Ot[Et],Nt[Et+64]=It[Et];var Qt=Nt.subarray(32),Ht=Nt.subarray(16);return Vn(Qt,Qt),yn(Ht,Ht,Qt),Jt(kt,Ht),0}function fn(kt,$t){return xn(kt,$t,$)}function Sn(kt,$t){return k($t,32),fn(kt,$t)}function bn(kt,$t,Pt){var gt=new Uint8Array(32);return xn(gt,Pt,$t),wt(kt,j,gt,yt)}var hn=Mt,_n=jt;function ln(kt,$t,Pt,gt,Nt,Yt){var Et=new Uint8Array(32);return bn(Et,Nt,Yt),hn(kt,$t,Pt,gt,Et)}function Tn(kt,$t,Pt,gt,Nt,Yt){var Et=new Uint8Array(32);return bn(Et,Nt,Yt),_n(kt,$t,Pt,gt,Et)}var In=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Ln(kt,$t,Pt,gt){for(var Nt=new Int32Array(16),Yt=new Int32Array(16),Et,Lt,Ot,Bt,It,an,nn,Qt,Ht,gn,Wn,Kn,Yn,er,Hn,Jn,or,Xn,mr,hr,Mn,$n,sr,nr,tr,ir,Ar=kt[0],Mr=kt[1],jr=kt[2],Or=kt[3],sn=kt[4],Lr=kt[5],Dr=kt[6],Fr=kt[7],Nr=$t[0],Br=$t[1],Wr=$t[2],ro=$t[3],qr=$t[4],eo=$t[5],to=$t[6],no=$t[7],io=0;gt>=128;){for(mr=0;mr<16;mr++)hr=8*mr+io,Nt[mr]=Pt[hr+0]<<24|Pt[hr+1]<<16|Pt[hr+2]<<8|Pt[hr+3],Yt[mr]=Pt[hr+4]<<24|Pt[hr+5]<<16|Pt[hr+6]<<8|Pt[hr+7];for(mr=0;mr<80;mr++)if(Et=Ar,Lt=Mr,Ot=jr,Bt=Or,It=sn,an=Lr,nn=Dr,Qt=Fr,Ht=Nr,gn=Br,Wn=Wr,Kn=ro,Yn=qr,er=eo,Hn=to,Jn=no,Mn=Fr,$n=no,sr=$n&65535,nr=$n>>>16,tr=Mn&65535,ir=Mn>>>16,Mn=(sn>>>14|qr<<32-14)^(sn>>>18|qr<<32-18)^(qr>>>41-32|sn<<32-(41-32)),$n=(qr>>>14|sn<<32-14)^(qr>>>18|sn<<32-18)^(sn>>>41-32|qr<<32-(41-32)),sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,Mn=sn&Lr^~sn&Dr,$n=qr&eo^~qr&to,sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,Mn=In[mr*2],$n=In[mr*2+1],sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,Mn=Nt[mr%16],$n=Yt[mr%16],sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,nr+=sr>>>16,tr+=nr>>>16,ir+=tr>>>16,or=tr&65535|ir<<16,Xn=sr&65535|nr<<16,Mn=or,$n=Xn,sr=$n&65535,nr=$n>>>16,tr=Mn&65535,ir=Mn>>>16,Mn=(Ar>>>28|Nr<<32-28)^(Nr>>>34-32|Ar<<32-(34-32))^(Nr>>>39-32|Ar<<32-(39-32)),$n=(Nr>>>28|Ar<<32-28)^(Ar>>>34-32|Nr<<32-(34-32))^(Ar>>>39-32|Nr<<32-(39-32)),sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,Mn=Ar&Mr^Ar&jr^Mr&jr,$n=Nr&Br^Nr&Wr^Br&Wr,sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,nr+=sr>>>16,tr+=nr>>>16,ir+=tr>>>16,Qt=tr&65535|ir<<16,Jn=sr&65535|nr<<16,Mn=Bt,$n=Kn,sr=$n&65535,nr=$n>>>16,tr=Mn&65535,ir=Mn>>>16,Mn=or,$n=Xn,sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,nr+=sr>>>16,tr+=nr>>>16,ir+=tr>>>16,Bt=tr&65535|ir<<16,Kn=sr&65535|nr<<16,Mr=Et,jr=Lt,Or=Ot,sn=Bt,Lr=It,Dr=an,Fr=nn,Ar=Qt,Br=Ht,Wr=gn,ro=Wn,qr=Kn,eo=Yn,to=er,no=Hn,Nr=Jn,mr%16===15)for(hr=0;hr<16;hr++)Mn=Nt[hr],$n=Yt[hr],sr=$n&65535,nr=$n>>>16,tr=Mn&65535,ir=Mn>>>16,Mn=Nt[(hr+9)%16],$n=Yt[(hr+9)%16],sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,or=Nt[(hr+1)%16],Xn=Yt[(hr+1)%16],Mn=(or>>>1|Xn<<32-1)^(or>>>8|Xn<<32-8)^or>>>7,$n=(Xn>>>1|or<<32-1)^(Xn>>>8|or<<32-8)^(Xn>>>7|or<<32-7),sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,or=Nt[(hr+14)%16],Xn=Yt[(hr+14)%16],Mn=(or>>>19|Xn<<32-19)^(Xn>>>61-32|or<<32-(61-32))^or>>>6,$n=(Xn>>>19|or<<32-19)^(or>>>61-32|Xn<<32-(61-32))^(Xn>>>6|or<<32-6),sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,nr+=sr>>>16,tr+=nr>>>16,ir+=tr>>>16,Nt[hr]=tr&65535|ir<<16,Yt[hr]=sr&65535|nr<<16;Mn=Ar,$n=Nr,sr=$n&65535,nr=$n>>>16,tr=Mn&65535,ir=Mn>>>16,Mn=kt[0],$n=$t[0],sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,nr+=sr>>>16,tr+=nr>>>16,ir+=tr>>>16,kt[0]=Ar=tr&65535|ir<<16,$t[0]=Nr=sr&65535|nr<<16,Mn=Mr,$n=Br,sr=$n&65535,nr=$n>>>16,tr=Mn&65535,ir=Mn>>>16,Mn=kt[1],$n=$t[1],sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,nr+=sr>>>16,tr+=nr>>>16,ir+=tr>>>16,kt[1]=Mr=tr&65535|ir<<16,$t[1]=Br=sr&65535|nr<<16,Mn=jr,$n=Wr,sr=$n&65535,nr=$n>>>16,tr=Mn&65535,ir=Mn>>>16,Mn=kt[2],$n=$t[2],sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,nr+=sr>>>16,tr+=nr>>>16,ir+=tr>>>16,kt[2]=jr=tr&65535|ir<<16,$t[2]=Wr=sr&65535|nr<<16,Mn=Or,$n=ro,sr=$n&65535,nr=$n>>>16,tr=Mn&65535,ir=Mn>>>16,Mn=kt[3],$n=$t[3],sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,nr+=sr>>>16,tr+=nr>>>16,ir+=tr>>>16,kt[3]=Or=tr&65535|ir<<16,$t[3]=ro=sr&65535|nr<<16,Mn=sn,$n=qr,sr=$n&65535,nr=$n>>>16,tr=Mn&65535,ir=Mn>>>16,Mn=kt[4],$n=$t[4],sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,nr+=sr>>>16,tr+=nr>>>16,ir+=tr>>>16,kt[4]=sn=tr&65535|ir<<16,$t[4]=qr=sr&65535|nr<<16,Mn=Lr,$n=eo,sr=$n&65535,nr=$n>>>16,tr=Mn&65535,ir=Mn>>>16,Mn=kt[5],$n=$t[5],sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,nr+=sr>>>16,tr+=nr>>>16,ir+=tr>>>16,kt[5]=Lr=tr&65535|ir<<16,$t[5]=eo=sr&65535|nr<<16,Mn=Dr,$n=to,sr=$n&65535,nr=$n>>>16,tr=Mn&65535,ir=Mn>>>16,Mn=kt[6],$n=$t[6],sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,nr+=sr>>>16,tr+=nr>>>16,ir+=tr>>>16,kt[6]=Dr=tr&65535|ir<<16,$t[6]=to=sr&65535|nr<<16,Mn=Fr,$n=no,sr=$n&65535,nr=$n>>>16,tr=Mn&65535,ir=Mn>>>16,Mn=kt[7],$n=$t[7],sr+=$n&65535,nr+=$n>>>16,tr+=Mn&65535,ir+=Mn>>>16,nr+=sr>>>16,tr+=nr>>>16,ir+=tr>>>16,kt[7]=Fr=tr&65535|ir<<16,$t[7]=no=sr&65535|nr<<16,io+=128,gt-=128}return gt}function kn(kt,$t,Pt){var gt=new Int32Array(8),Nt=new Int32Array(8),Yt=new Uint8Array(256),Et,Lt=Pt;for(gt[0]=1779033703,gt[1]=3144134277,gt[2]=1013904242,gt[3]=2773480762,gt[4]=1359893119,gt[5]=2600822924,gt[6]=528734635,gt[7]=1541459225,Nt[0]=4089235720,Nt[1]=2227873595,Nt[2]=4271175723,Nt[3]=1595750129,Nt[4]=2917565137,Nt[5]=725511199,Nt[6]=4215389547,Nt[7]=327033209,Ln(gt,Nt,$t,Pt),Pt%=128,Et=0;Et=0;--Nt)gt=Pt[Nt/8|0]>>(Nt&7)&1,vn(kt,$t,gt),Fn($t,kt),Fn(kt,kt),vn(kt,$t,gt)}function Un(kt,$t){var Pt=[d(),d(),d(),d()];Rt(Pt[0],at),Rt(Pt[1],it),Rt(Pt[2],tt),yn(Pt[3],at,it),Nn(kt,Pt,$t)}function pn(kt,$t,Pt){var gt=new Uint8Array(64),Nt=[d(),d(),d(),d()],Yt;for(Pt||k($t,32),kn(gt,$t,32),gt[0]&=248,gt[31]&=127,gt[31]|=64,Un(Nt,gt),Bn(kt,Nt),Yt=0;Yt<32;Yt++)$t[Yt+32]=kt[Yt];return 0}var Vt=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function qt(kt,$t){var Pt,gt,Nt,Yt;for(gt=63;gt>=32;--gt){for(Pt=0,Nt=gt-32,Yt=gt-12;Nt>4)*Vt[Nt],Pt=$t[Nt]>>8,$t[Nt]&=255;for(Nt=0;Nt<32;Nt++)$t[Nt]-=Pt*Vt[Nt];for(gt=0;gt<32;gt++)$t[gt+1]+=$t[gt]>>8,kt[gt]=$t[gt]&255}function wn(kt){var $t=new Float64Array(64),Pt;for(Pt=0;Pt<64;Pt++)$t[Pt]=kt[Pt];for(Pt=0;Pt<64;Pt++)kt[Pt]=0;qt(kt,$t)}function Pn(kt,$t,Pt,gt){var Nt=new Uint8Array(64),Yt=new Uint8Array(64),Et=new Uint8Array(64),Lt,Ot,Bt=new Float64Array(64),It=[d(),d(),d(),d()];kn(Nt,gt,32),Nt[0]&=248,Nt[31]&=127,Nt[31]|=64;var an=Pt+64;for(Lt=0;Lt>7&&En(kt[0],et,kt[0]),yn(kt[3],kt[0],kt[1]),0)}function fr(kt,$t,Pt,gt){var Nt,Yt=new Uint8Array(32),Et=new Uint8Array(64),Lt=[d(),d(),d(),d()],Ot=[d(),d(),d(),d()];if(Pt<64||lr(Ot,gt))return-1;for(Nt=0;Nt=0},_.sign.keyPair=function(){var kt=new Uint8Array(kr),$t=new Uint8Array(Tr);return pn(kt,$t),{publicKey:kt,secretKey:$t}},_.sign.keyPair.fromSecretKey=function(kt){if(Zr(kt),kt.length!==Tr)throw new Error("bad secret key size");for(var $t=new Uint8Array(kr),Pt=0;Pt<$t.length;Pt++)$t[Pt]=kt[32+Pt];return{publicKey:$t,secretKey:new Uint8Array(kt)}},_.sign.keyPair.fromSeed=function(kt){if(Zr(kt),kt.length!==Pr)throw new Error("bad seed size");for(var $t=new Uint8Array(kr),Pt=new Uint8Array(Tr),gt=0;gt<32;gt++)Pt[gt]=kt[gt];return pn($t,Pt,!0),{publicKey:$t,secretKey:Pt}},_.sign.publicKeyLength=kr,_.sign.secretKeyLength=Tr,_.sign.seedLength=Pr,_.sign.signatureLength=xr,_.hash=function(kt){Zr(kt);var $t=new Uint8Array(Ir);return kn($t,kt,kt.length),$t},_.hash.hashLength=Ir,_.verify=function(kt,$t){return Zr(kt,$t),kt.length===0||$t.length===0||kt.length!==$t.length?!1:ht(kt,0,$t,0,kt.length)===0},_.setPRNG=function(kt){k=kt},function(){var kt=typeof self<"u"?self.crypto||self.msCrypto:null;if(kt&&kt.getRandomValues){var $t=65536;_.setPRNG(function(Pt,gt){var Nt,Yt=new Uint8Array(gt);for(Nt=0;Nt=b.length)throw new Error("Index is out of buffer");const d=b.slice(0,_),k=b.slice(_);return[d,k]}function toHexString(b){let _="";return b.forEach(d=>{_+=("0"+(d&255).toString(16)).slice(-2)}),_}function hexToByteArray(b){if(b.length%2!==0)throw new Error(`Cannot convert ${b} to bytesArray`);const _=new Uint8Array(b.length/2);for(let d=0;d{var j,$;if(!((j=_==null?void 0:_.signal)===null||j===void 0)&&j.aborted){k(new TonConnectError("Delay aborted"));return}const et=setTimeout(()=>d(),b);($=_==null?void 0:_.signal)===null||$===void 0||$.addEventListener("abort",()=>{clearTimeout(et),k(new TonConnectError("Delay aborted"))})})})}function createAbortController(b){const _=new AbortController;return b!=null&&b.aborted?_.abort():b==null||b.addEventListener("abort",()=>_.abort(),{once:!0}),_}function callForSuccess(b,_){var d,k;return __awaiter(this,void 0,void 0,function*(){const j=(d=_==null?void 0:_.attempts)!==null&&d!==void 0?d:10,$=(k=_==null?void 0:_.delayMs)!==null&&k!==void 0?k:200,et=createAbortController(_==null?void 0:_.signal);if(typeof b!="function")throw new TonConnectError(`Expected a function, got ${typeof b}`);let tt=0,rt;for(;tt__awaiter(this,void 0,void 0,function*(){if($=at??null,et==null||et.abort(),et=createAbortController(at),et.signal.aborted)throw new TonConnectError("Resource creation was aborted");k=it??null;const dt=b(et.signal,...it);j=dt;const ut=yield dt;if(j!==dt&&ut!==d)throw yield _(ut),new TonConnectError("Resource creation was aborted by a new resource creation");return d=ut,d});return{create:tt,current:()=>d??null,dispose:()=>__awaiter(this,void 0,void 0,function*(){try{const at=d;d=null;const it=j;j=null;try{et==null||et.abort()}catch{}yield Promise.allSettled([at?_(at):Promise.resolve(),it?_(yield it):Promise.resolve()])}catch{}}),recreate:at=>__awaiter(this,void 0,void 0,function*(){const it=d,dt=j,ut=k,ht=$;if(yield delay(at),it===d&&dt===j&&ut===k&&ht===$)return yield tt($,...ut??[]);throw new TonConnectError("Resource recreation was aborted by a new resource creation")})}}function timeout(b,_){const d=_==null?void 0:_.timeout,k=_==null?void 0:_.signal,j=createAbortController(k);return new Promise(($,et)=>{if(j.signal.aborted){et(new TonConnectError("Operation aborted"));return}let tt;typeof d<"u"&&(tt=setTimeout(()=>{j.abort(),et(new TonConnectError(`Timeout after ${d}ms`))},d)),j.signal.addEventListener("abort",()=>{clearTimeout(tt),et(new TonConnectError("Operation aborted"))},{once:!0});const rt={timeout:d,abort:j.signal};b($,et,rt).finally(()=>clearTimeout(tt))})}class BridgeGateway{constructor(_,d,k,j,$){this.bridgeUrl=d,this.sessionId=k,this.listener=j,this.errorsListener=$,this.ssePath="events",this.postPath="message",this.heartbeatMessage="heartbeat",this.defaultTtl=300,this.defaultReconnectDelay=5e3,this.eventSource=createResource$1((et,tt)=>__awaiter(this,void 0,void 0,function*(){const rt={bridgeUrl:this.bridgeUrl,ssePath:this.ssePath,sessionId:this.sessionId,bridgeGatewayStorage:this.bridgeGatewayStorage,errorHandler:this.errorsHandler.bind(this),messageHandler:this.messagesHandler.bind(this),signal:et,openingDeadlineMS:tt};return yield createEventSource(rt)}),et=>__awaiter(this,void 0,void 0,function*(){et.close()})),this.bridgeGatewayStorage=new HttpBridgeGatewayStorage(_,d)}get isReady(){const _=this.eventSource.current();return(_==null?void 0:_.readyState)===EventSource.OPEN}get isClosed(){const _=this.eventSource.current();return(_==null?void 0:_.readyState)!==EventSource.OPEN}get isConnecting(){const _=this.eventSource.current();return(_==null?void 0:_.readyState)===EventSource.CONNECTING}registerSession(_){return __awaiter(this,void 0,void 0,function*(){yield this.eventSource.create(_==null?void 0:_.signal,_==null?void 0:_.openingDeadlineMS)})}send(_,d,k,j){var $;return __awaiter(this,void 0,void 0,function*(){const et={};typeof j=="number"?et.ttl=j:(et.ttl=j==null?void 0:j.ttl,et.signal=j==null?void 0:j.signal,et.attempts=j==null?void 0:j.attempts);const tt=new URL(addPathToUrl(this.bridgeUrl,this.postPath));tt.searchParams.append("client_id",this.sessionId),tt.searchParams.append("to",d),tt.searchParams.append("ttl",((et==null?void 0:et.ttl)||this.defaultTtl).toString()),tt.searchParams.append("topic",k);const rt=Base64.encode(_);yield callForSuccess(nt=>__awaiter(this,void 0,void 0,function*(){const ot=yield this.post(tt,rt,nt.signal);if(!ot.ok)throw new TonConnectError(`Bridge send failed, status ${ot.status}`)}),{attempts:($=et==null?void 0:et.attempts)!==null&&$!==void 0?$:Number.MAX_SAFE_INTEGER,delayMs:5e3,signal:et==null?void 0:et.signal})})}pause(){this.eventSource.dispose().catch(_=>logError$1(`Bridge pause failed, ${_}`))}unPause(){return __awaiter(this,void 0,void 0,function*(){yield this.eventSource.recreate(0)})}close(){return __awaiter(this,void 0,void 0,function*(){yield this.eventSource.dispose().catch(_=>logError$1(`Bridge close failed, ${_}`))})}setListener(_){this.listener=_}setErrorsListener(_){this.errorsListener=_}post(_,d,k){return __awaiter(this,void 0,void 0,function*(){const j=yield fetch(_,{method:"post",body:d,signal:k});if(!j.ok)throw new TonConnectError(`Bridge send failed, status ${j.status}`);return j})}errorsHandler(_,d){return __awaiter(this,void 0,void 0,function*(){if(this.isConnecting){logError$1("Bridge error",JSON.stringify(d));return}if(this.isReady){try{this.errorsListener(d)}catch{}return}if(this.isClosed)return _.close(),logDebug$1(`Bridge reconnecting, ${this.defaultReconnectDelay}ms delay`),yield this.eventSource.recreate(this.defaultReconnectDelay);throw new TonConnectError("Bridge error, unknown state")})}messagesHandler(_){return __awaiter(this,void 0,void 0,function*(){if(_.data===this.heartbeatMessage||(yield this.bridgeGatewayStorage.storeLastEventId(_.lastEventId),this.isClosed))return;let d;try{d=JSON.parse(_.data)}catch(k){throw new TonConnectError(`Bridge message parse failed, message ${k.data}`)}this.listener(d)})}}function createEventSource(b){return __awaiter(this,void 0,void 0,function*(){return yield timeout((_,d,k)=>__awaiter(this,void 0,void 0,function*(){var j;const et=createAbortController(k.signal).signal;if(et.aborted){d(new TonConnectError("Bridge connection aborted"));return}const tt=new URL(addPathToUrl(b.bridgeUrl,b.ssePath));tt.searchParams.append("client_id",b.sessionId);const rt=yield b.bridgeGatewayStorage.getLastEventId();if(rt&&tt.searchParams.append("last_event_id",rt),et.aborted){d(new TonConnectError("Bridge connection aborted"));return}const nt=new EventSource(tt.toString());nt.onerror=ot=>__awaiter(this,void 0,void 0,function*(){if(et.aborted){nt.close(),d(new TonConnectError("Bridge connection aborted"));return}try{const at=yield b.errorHandler(nt,ot);at!==nt&&nt.close(),at&&at!==nt&&_(at)}catch(at){nt.close(),d(at)}}),nt.onopen=()=>{if(et.aborted){nt.close(),d(new TonConnectError("Bridge connection aborted"));return}_(nt)},nt.onmessage=ot=>{if(et.aborted){nt.close(),d(new TonConnectError("Bridge connection aborted"));return}b.messageHandler(ot)},(j=b.signal)===null||j===void 0||j.addEventListener("abort",()=>{nt.close(),d(new TonConnectError("Bridge connection aborted"))})}),{timeout:b.openingDeadlineMS,signal:b.signal})})}function isPendingConnectionHttp(b){return!("connectEvent"in b)}class BridgeConnectionStorage{constructor(_){this.storage=_,this.storeKey="ton-connect-storage_bridge-connection"}storeConnection(_){return __awaiter(this,void 0,void 0,function*(){if(_.type==="injected")return this.storage.setItem(this.storeKey,JSON.stringify(_));if(!isPendingConnectionHttp(_)){const k={sessionKeyPair:_.session.sessionCrypto.stringifyKeypair(),walletPublicKey:_.session.walletPublicKey,bridgeUrl:_.session.bridgeUrl},j={type:"http",connectEvent:_.connectEvent,session:k,lastWalletEventId:_.lastWalletEventId,nextRpcRequestId:_.nextRpcRequestId};return this.storage.setItem(this.storeKey,JSON.stringify(j))}const d={type:"http",connectionSource:_.connectionSource,sessionCrypto:_.sessionCrypto.stringifyKeypair()};return this.storage.setItem(this.storeKey,JSON.stringify(d))})}removeConnection(){return __awaiter(this,void 0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getConnection(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.storage.getItem(this.storeKey);if(!_)return null;const d=JSON.parse(_);if(d.type==="injected")return d;if("connectEvent"in d){const k=new SessionCrypto(d.session.sessionKeyPair);return{type:"http",connectEvent:d.connectEvent,lastWalletEventId:d.lastWalletEventId,nextRpcRequestId:d.nextRpcRequestId,session:{sessionCrypto:k,bridgeUrl:d.session.bridgeUrl,walletPublicKey:d.session.walletPublicKey}}}return{type:"http",sessionCrypto:new SessionCrypto(d.sessionCrypto),connectionSource:d.connectionSource}})}getHttpConnection(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.getConnection();if(!_)throw new TonConnectError("Trying to read HTTP connection source while nothing is stored");if(_.type==="injected")throw new TonConnectError("Trying to read HTTP connection source while injected connection is stored");return _})}getHttpPendingConnection(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.getConnection();if(!_)throw new TonConnectError("Trying to read HTTP connection source while nothing is stored");if(_.type==="injected")throw new TonConnectError("Trying to read HTTP connection source while injected connection is stored");if(!isPendingConnectionHttp(_))throw new TonConnectError("Trying to read HTTP-pending connection while http connection is stored");return _})}getInjectedConnection(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.getConnection();if(!_)throw new TonConnectError("Trying to read Injected bridge connection source while nothing is stored");if((_==null?void 0:_.type)==="http")throw new TonConnectError("Trying to read Injected bridge connection source while HTTP connection is stored");return _})}storedConnectionType(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.storage.getItem(this.storeKey);return _?JSON.parse(_).type:null})}storeLastWalletEventId(_){return __awaiter(this,void 0,void 0,function*(){const d=yield this.getConnection();if(d&&d.type==="http"&&!isPendingConnectionHttp(d))return d.lastWalletEventId=_,this.storeConnection(d)})}getLastWalletEventId(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.getConnection();if(_&&"lastWalletEventId"in _)return _.lastWalletEventId})}increaseNextRpcRequestId(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.getConnection();if(_&&"nextRpcRequestId"in _){const d=_.nextRpcRequestId||0;return _.nextRpcRequestId=d+1,this.storeConnection(_)}})}getNextRpcRequestId(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.getConnection();return _&&"nextRpcRequestId"in _&&_.nextRpcRequestId||0})}}const PROTOCOL_VERSION=2;class BridgeProvider{constructor(_,d){this.storage=_,this.walletConnectionSource=d,this.type="http",this.standardUniversalLink="tc://",this.pendingRequests=new Map,this.session=null,this.gateway=null,this.pendingGateways=[],this.listeners=[],this.defaultOpeningDeadlineMS=5e3,this.connectionStorage=new BridgeConnectionStorage(_)}static fromStorage(_){return __awaiter(this,void 0,void 0,function*(){const k=yield new BridgeConnectionStorage(_).getHttpConnection();return isPendingConnectionHttp(k)?new BridgeProvider(_,k.connectionSource):new BridgeProvider(_,{bridgeUrl:k.session.bridgeUrl})})}connect(_,d){var k;const j=createAbortController(d==null?void 0:d.signal);(k=this.abortController)===null||k===void 0||k.abort(),this.abortController=j,this.closeGateways();const $=new SessionCrypto;this.session={sessionCrypto:$,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},this.connectionStorage.storeConnection({type:"http",connectionSource:this.walletConnectionSource,sessionCrypto:$}).then(()=>__awaiter(this,void 0,void 0,function*(){j.signal.aborted||(yield callForSuccess(tt=>this.openGateways($,{openingDeadlineMS:d==null?void 0:d.openingDeadlineMS,signal:tt==null?void 0:tt.signal}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:5e3,signal:j.signal}))}));const et="universalLink"in this.walletConnectionSource&&this.walletConnectionSource.universalLink?this.walletConnectionSource.universalLink:this.standardUniversalLink;return this.generateUniversalLink(et,_)}restoreConnection(_){var d,k;return __awaiter(this,void 0,void 0,function*(){const j=createAbortController(_==null?void 0:_.signal);if((d=this.abortController)===null||d===void 0||d.abort(),this.abortController=j,j.signal.aborted)return;this.closeGateways();const $=yield this.connectionStorage.getHttpConnection();if(!$||j.signal.aborted)return;const et=(k=_==null?void 0:_.openingDeadlineMS)!==null&&k!==void 0?k:this.defaultOpeningDeadlineMS;if(isPendingConnectionHttp($))return this.session={sessionCrypto:$.sessionCrypto,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},yield this.openGateways($.sessionCrypto,{openingDeadlineMS:et,signal:j==null?void 0:j.signal});if(Array.isArray(this.walletConnectionSource))throw new TonConnectError("Internal error. Connection source is array while WalletConnectionSourceHTTP was expected.");if(this.session=$.session,this.gateway&&(logDebug$1("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new BridgeGateway(this.storage,this.walletConnectionSource.bridgeUrl,$.session.sessionCrypto.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),!j.signal.aborted){this.listeners.forEach(tt=>tt($.connectEvent));try{yield callForSuccess(tt=>this.gateway.registerSession({openingDeadlineMS:et,signal:tt.signal}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:5e3,signal:j.signal})}catch{yield this.disconnect({signal:j.signal});return}}})}sendRequest(_,d){const k={};return typeof d=="function"?k.onRequestSent=d:(k.onRequestSent=d==null?void 0:d.onRequestSent,k.signal=d==null?void 0:d.signal,k.attempts=d==null?void 0:d.attempts),new Promise((j,$)=>__awaiter(this,void 0,void 0,function*(){var et;if(!this.gateway||!this.session||!("walletPublicKey"in this.session))throw new TonConnectError("Trying to send bridge request without session");const tt=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),logDebug$1("Send http-bridge request:",Object.assign(Object.assign({},_),{id:tt}));const rt=this.session.sessionCrypto.encrypt(JSON.stringify(Object.assign(Object.assign({},_),{id:tt})),hexToByteArray(this.session.walletPublicKey));try{yield this.gateway.send(rt,this.session.walletPublicKey,_.method,{attempts:k==null?void 0:k.attempts,signal:k==null?void 0:k.signal}),(et=k==null?void 0:k.onRequestSent)===null||et===void 0||et.call(k),this.pendingRequests.set(tt.toString(),j)}catch(nt){$(nt)}}))}closeConnection(){this.closeGateways(),this.listeners=[],this.session=null,this.gateway=null}disconnect(_){return __awaiter(this,void 0,void 0,function*(){return new Promise(d=>__awaiter(this,void 0,void 0,function*(){let k=!1,j=null;const $=()=>{k||(k=!0,this.removeBridgeAndSession().then(d))};try{this.closeGateways();const et=createAbortController(_==null?void 0:_.signal);j=setTimeout(()=>{et.abort()},this.defaultOpeningDeadlineMS),yield this.sendRequest({method:"disconnect",params:[]},{onRequestSent:$,signal:et.signal,attempts:1})}catch(et){logDebug$1("Disconnect error:",et),k||this.removeBridgeAndSession().then(d)}finally{j&&clearTimeout(j),$()}}))})}listen(_){return this.listeners.push(_),()=>this.listeners=this.listeners.filter(d=>d!==_)}pause(){var _;(_=this.gateway)===null||_===void 0||_.pause(),this.pendingGateways.forEach(d=>d.pause())}unPause(){return __awaiter(this,void 0,void 0,function*(){const _=this.pendingGateways.map(d=>d.unPause());this.gateway&&_.push(this.gateway.unPause()),yield Promise.all(_)})}pendingGatewaysListener(_,d,k){return __awaiter(this,void 0,void 0,function*(){if(!this.pendingGateways.includes(_)){yield _.close();return}return this.closeGateways({except:_}),this.gateway&&(logDebug$1("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.session.bridgeUrl=d,this.gateway=_,this.gateway.setErrorsListener(this.gatewayErrorsListener.bind(this)),this.gateway.setListener(this.gatewayListener.bind(this)),this.gatewayListener(k)})}gatewayListener(_){return __awaiter(this,void 0,void 0,function*(){const d=JSON.parse(this.session.sessionCrypto.decrypt(Base64.decode(_.message).toUint8Array(),hexToByteArray(_.from)));if(logDebug$1("Wallet message received:",d),!("event"in d)){const j=d.id.toString(),$=this.pendingRequests.get(j);if(!$){logDebug$1(`Response id ${j} doesn't match any request's id`);return}$(d),this.pendingRequests.delete(j);return}if(d.id!==void 0){const j=yield this.connectionStorage.getLastWalletEventId();if(j!==void 0&&d.id<=j){logError$1(`Received event id (=${d.id}) must be greater than stored last wallet event id (=${j}) `);return}d.event!=="connect"&&(yield this.connectionStorage.storeLastWalletEventId(d.id))}const k=this.listeners;d.event==="connect"&&(yield this.updateSession(d,_.from)),d.event==="disconnect"&&(logDebug$1("Removing bridge and session: received disconnect event"),yield this.removeBridgeAndSession()),k.forEach(j=>j(d))})}gatewayErrorsListener(_){return __awaiter(this,void 0,void 0,function*(){throw new TonConnectError(`Bridge error ${JSON.stringify(_)}`)})}updateSession(_,d){return __awaiter(this,void 0,void 0,function*(){this.session=Object.assign(Object.assign({},this.session),{walletPublicKey:d});const k=_.payload.items.find($=>$.name==="ton_addr"),j=Object.assign(Object.assign({},_),{payload:Object.assign(Object.assign({},_.payload),{items:[k]})});yield this.connectionStorage.storeConnection({type:"http",session:this.session,lastWalletEventId:_.id,connectEvent:j,nextRpcRequestId:0})})}removeBridgeAndSession(){return __awaiter(this,void 0,void 0,function*(){this.closeConnection(),yield this.connectionStorage.removeConnection()})}generateUniversalLink(_,d){return isTelegramUrl(_)?this.generateTGUniversalLink(_,d):this.generateRegularUniversalLink(_,d)}generateRegularUniversalLink(_,d){const k=new URL(_);return k.searchParams.append("v",PROTOCOL_VERSION.toString()),k.searchParams.append("id",this.session.sessionCrypto.sessionId),k.searchParams.append("r",JSON.stringify(d)),k.toString()}generateTGUniversalLink(_,d){const j=this.generateRegularUniversalLink("about:blank",d).split("?")[1],$="tonconnect-"+encodeTelegramUrlParameters(j),et=this.convertToDirectLink(_),tt=new URL(et);return tt.searchParams.append("startapp",$),tt.toString()}convertToDirectLink(_){const d=new URL(_);return d.searchParams.has("attach")&&(d.searchParams.delete("attach"),d.pathname+="/start"),d.toString()}openGateways(_,d){return __awaiter(this,void 0,void 0,function*(){if(Array.isArray(this.walletConnectionSource)){this.pendingGateways.map(k=>k.close().catch()),this.pendingGateways=this.walletConnectionSource.map(k=>{const j=new BridgeGateway(this.storage,k.bridgeUrl,_.sessionId,()=>{},()=>{});return j.setListener($=>this.pendingGatewaysListener(j,k.bridgeUrl,$)),j}),yield Promise.allSettled(this.pendingGateways.map(k=>callForSuccess(j=>this.pendingGateways.some($=>$===k)?k.registerSession({openingDeadlineMS:d==null?void 0:d.openingDeadlineMS,signal:j.signal}):k.close(),{attempts:Number.MAX_SAFE_INTEGER,delayMs:5e3,signal:d==null?void 0:d.signal})));return}else return this.gateway&&(logDebug$1("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new BridgeGateway(this.storage,this.walletConnectionSource.bridgeUrl,_.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),yield this.gateway.registerSession({openingDeadlineMS:d==null?void 0:d.openingDeadlineMS,signal:d==null?void 0:d.signal})})}closeGateways(_){var d;(d=this.gateway)===null||d===void 0||d.close(),this.pendingGateways.filter(k=>k!==(_==null?void 0:_.except)).forEach(k=>k.close()),this.pendingGateways=[]}}function hasProperty(b,_){return hasProperties(b,[_])}function hasProperties(b,_){return!b||typeof b!="object"?!1:_.every(d=>d in b)}function isJSBridgeWithMetadata(b){try{return!hasProperty(b,"tonconnect")||!hasProperty(b.tonconnect,"walletInfo")?!1:hasProperties(b.tonconnect.walletInfo,["name","app_name","image","about_url","platforms"])}catch{return!1}}let InMemoryStorage$1=class Jo{constructor(){this.storage={}}static getInstance(){return Jo.instance||(Jo.instance=new Jo),Jo.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(_){var d;return(d=this.storage[_])!==null&&d!==void 0?d:null}key(_){var d;const k=Object.keys(this.storage);return _<0||_>=k.length?null:(d=k[_])!==null&&d!==void 0?d:null}removeItem(_){delete this.storage[_]}setItem(_,d){this.storage[_]=d}};function getWindow$2(){if(!(typeof window>"u"))return window}function tryGetWindowKeys(){const b=getWindow$2();if(!b)return[];try{return Object.keys(b)}catch{return[]}}function getDocument(){if(!(typeof document>"u"))return document}function getWebPageManifest(){var b;const _=(b=getWindow$2())===null||b===void 0?void 0:b.location.origin;return _?_+"/tonconnect-manifest.json":""}function tryGetLocalStorage$1(){if(isLocalStorageAvailable$1())return localStorage;if(isNodeJs$1())throw new TonConnectError("`localStorage` is unavailable, but it is required for TonConnect. For more details, see https://github.com/ton-connect/sdk/tree/main/packages/sdk#init-connector");return InMemoryStorage$1.getInstance()}function isLocalStorageAvailable$1(){try{return typeof localStorage<"u"}catch{return!1}}function isNodeJs$1(){return typeof process<"u"&&process.versions!=null&&process.versions.node!=null}class InjectedProvider{constructor(_,d){this.injectedWalletKey=d,this.type="injected",this.unsubscribeCallback=null,this.listenSubscriptions=!1,this.listeners=[];const k=InjectedProvider.window;if(!InjectedProvider.isWindowContainsWallet(k,d))throw new WalletNotInjectedError;this.connectionStorage=new BridgeConnectionStorage(_),this.injectedWallet=k[d].tonconnect}static fromStorage(_){return __awaiter(this,void 0,void 0,function*(){const k=yield new BridgeConnectionStorage(_).getInjectedConnection();return new InjectedProvider(_,k.jsBridgeKey)})}static isWalletInjected(_){return InjectedProvider.isWindowContainsWallet(this.window,_)}static isInsideWalletBrowser(_){return InjectedProvider.isWindowContainsWallet(this.window,_)?this.window[_].tonconnect.isWalletBrowser:!1}static getCurrentlyInjectedWallets(){return this.window?tryGetWindowKeys().filter(([k,j])=>isJSBridgeWithMetadata(j)).map(([k,j])=>({name:j.tonconnect.walletInfo.name,appName:j.tonconnect.walletInfo.app_name,aboutUrl:j.tonconnect.walletInfo.about_url,imageUrl:j.tonconnect.walletInfo.image,tondns:j.tonconnect.walletInfo.tondns,jsBridgeKey:k,injected:!0,embedded:j.tonconnect.isWalletBrowser,platforms:j.tonconnect.walletInfo.platforms})):[]}static isWindowContainsWallet(_,d){return!!_&&d in _&&typeof _[d]=="object"&&"tonconnect"in _[d]}connect(_){this._connect(PROTOCOL_VERSION,_)}restoreConnection(){return __awaiter(this,void 0,void 0,function*(){try{logDebug$1("Injected Provider restoring connection...");const _=yield this.injectedWallet.restoreConnection();logDebug$1("Injected Provider restoring connection response",_),_.event==="connect"?(this.makeSubscriptions(),this.listeners.forEach(d=>d(_))):yield this.connectionStorage.removeConnection()}catch(_){yield this.connectionStorage.removeConnection(),console.error(_)}})}closeConnection(){this.listenSubscriptions&&this.injectedWallet.disconnect(),this.closeAllListeners()}disconnect(){return __awaiter(this,void 0,void 0,function*(){return new Promise(_=>{const d=()=>{this.closeAllListeners(),this.connectionStorage.removeConnection().then(_)};try{this.injectedWallet.disconnect(),d()}catch(k){logDebug$1(k),this.sendRequest({method:"disconnect",params:[]},d)}})})}closeAllListeners(){var _;this.listenSubscriptions=!1,this.listeners=[],(_=this.unsubscribeCallback)===null||_===void 0||_.call(this)}listen(_){return this.listeners.push(_),()=>this.listeners=this.listeners.filter(d=>d!==_)}sendRequest(_,d){var k;return __awaiter(this,void 0,void 0,function*(){const j={};typeof d=="function"?j.onRequestSent=d:(j.onRequestSent=d==null?void 0:d.onRequestSent,j.signal=d==null?void 0:d.signal);const $=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),logDebug$1("Send injected-bridge request:",Object.assign(Object.assign({},_),{id:$}));const et=this.injectedWallet.send(Object.assign(Object.assign({},_),{id:$}));return et.then(tt=>logDebug$1("Wallet message received:",tt)),(k=j==null?void 0:j.onRequestSent)===null||k===void 0||k.call(j),et})}_connect(_,d){return __awaiter(this,void 0,void 0,function*(){try{logDebug$1(`Injected Provider connect request: protocolVersion: ${_}, message:`,d);const k=yield this.injectedWallet.connect(_,d);logDebug$1("Injected Provider connect response:",k),k.event==="connect"&&(yield this.updateSession(),this.makeSubscriptions()),this.listeners.forEach(j=>j(k))}catch(k){logDebug$1("Injected Provider connect error:",k);const j={event:"connect_error",payload:{code:0,message:k==null?void 0:k.toString()}};this.listeners.forEach($=>$(j))}})}makeSubscriptions(){this.listenSubscriptions=!0,this.unsubscribeCallback=this.injectedWallet.listen(_=>{logDebug$1("Wallet message received:",_),this.listenSubscriptions&&this.listeners.forEach(d=>d(_)),_.event==="disconnect"&&this.disconnect()})}updateSession(){return this.connectionStorage.storeConnection({type:"injected",jsBridgeKey:this.injectedWalletKey,nextRpcRequestId:0})}}InjectedProvider.window=getWindow$2();class DefaultStorage{constructor(){this.localStorage=tryGetLocalStorage$1()}getItem(_){return __awaiter(this,void 0,void 0,function*(){return this.localStorage.getItem(_)})}removeItem(_){return __awaiter(this,void 0,void 0,function*(){this.localStorage.removeItem(_)})}setItem(_,d){return __awaiter(this,void 0,void 0,function*(){this.localStorage.setItem(_,d)})}}function isWalletInfoCurrentlyInjected(b){return isWalletInfoInjectable(b)&&b.injected}function isWalletInfoCurrentlyEmbedded(b){return isWalletInfoCurrentlyInjected(b)&&b.embedded}function isWalletInfoInjectable(b){return"jsBridgeKey"in b}function isWalletInfoRemote(b){return"bridgeUrl"in b}const FALLBACK_WALLETS_LIST=[{app_name:"telegram-wallet",name:"Wallet",image:"https://wallet.tg/images/logo-288.png",about_url:"https://wallet.tg/",universal_url:"https://t.me/wallet?attach=wallet",bridge:[{type:"sse",url:"https://bridge.tonapi.io/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"tonkeeper",name:"Tonkeeper",image:"https://tonkeeper.com/assets/tonconnect-icon.png",tondns:"tonkeeper.ton",about_url:"https://tonkeeper.com",universal_url:"https://app.tonkeeper.com/ton-connect",deepLink:"tonkeeper-tc://",bridge:[{type:"sse",url:"https://bridge.tonapi.io/bridge"},{type:"js",key:"tonkeeper"}],platforms:["ios","android","chrome","firefox","macos"]},{app_name:"mytonwallet",name:"MyTonWallet",image:"https://mytonwallet.io/icon-256.png",about_url:"https://mytonwallet.io",universal_url:"https://connect.mytonwallet.org",bridge:[{type:"js",key:"mytonwallet"},{type:"sse",url:"https://tonconnectbridge.mytonwallet.org/bridge/"}],platforms:["chrome","windows","macos","linux","ios","android","firefox"]},{app_name:"openmask",name:"OpenMask",image:"https://raw.githubusercontent.com/OpenProduct/openmask-extension/main/public/openmask-logo-288.png",about_url:"https://www.openmask.app/",bridge:[{type:"js",key:"openmask"}],platforms:["chrome"]},{app_name:"tonhub",name:"Tonhub",image:"https://tonhub.com/tonconnect_logo.png",about_url:"https://tonhub.com",universal_url:"https://tonhub.com/ton-connect",bridge:[{type:"js",key:"tonhub"},{type:"sse",url:"https://connect.tonhubapi.com/tonconnect"}],platforms:["ios","android"]},{app_name:"dewallet",name:"DeWallet",image:"https://app.delabwallet.com/logo_black.png",about_url:"https://delabwallet.com",bridge:[{type:"js",key:"dewallet"}],platforms:["chrome"]},{app_name:"xtonwallet",name:"XTONWallet",image:"https://xtonwallet.com/assets/img/icon-256-back.png",about_url:"https://xtonwallet.com",bridge:[{type:"js",key:"xtonwallet"}],platforms:["chrome","firefox"]},{app_name:"tonwallet",name:"TON Wallet",image:"https://wallet.ton.org/assets/ui/qr-logo.png",about_url:"https://chrome.google.com/webstore/detail/ton-wallet/nphplpgoakhhjchkkhmiggakijnkhfnd",bridge:[{type:"js",key:"tonwallet"}],platforms:["chrome"]}];class WalletsListManager{constructor(_){this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null,this.walletsListSource="https://raw.githubusercontent.com/ton-blockchain/wallets-list/main/wallets-v2.json",_!=null&&_.walletsListSource&&(this.walletsListSource=_.walletsListSource),_!=null&&_.cacheTTLMs&&(this.cacheTTLMs=_.cacheTTLMs)}getWallets(){return __awaiter(this,void 0,void 0,function*(){return this.cacheTTLMs&&this.walletsListCacheCreationTimestamp&&Date.now()>this.walletsListCacheCreationTimestamp+this.cacheTTLMs&&(this.walletsListCache=null),this.walletsListCache||(this.walletsListCache=this.fetchWalletsList(),this.walletsListCache.then(()=>{this.walletsListCacheCreationTimestamp=Date.now()}).catch(()=>{this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null})),this.walletsListCache})}getEmbeddedWallet(){return __awaiter(this,void 0,void 0,function*(){const d=(yield this.getWallets()).filter(isWalletInfoCurrentlyEmbedded);return d.length!==1?null:d[0]})}fetchWalletsList(){return __awaiter(this,void 0,void 0,function*(){let _=[];try{if(_=yield(yield fetch(this.walletsListSource)).json(),!Array.isArray(_))throw new FetchWalletsError("Wrong wallets list format, wallets list must be an array.");const j=_.filter($=>!this.isCorrectWalletConfigDTO($));j.length&&(logError$1(`Wallet(s) ${j.map($=>$.name).join(", ")} config format is wrong. They were removed from the wallets list.`),_=_.filter($=>this.isCorrectWalletConfigDTO($)))}catch(k){logError$1(k),_=FALLBACK_WALLETS_LIST}let d=[];try{d=InjectedProvider.getCurrentlyInjectedWallets()}catch(k){logError$1(k)}return this.mergeWalletsLists(this.walletConfigDTOListToWalletConfigList(_),d)})}walletConfigDTOListToWalletConfigList(_){return _.map(d=>{const j={name:d.name,appName:d.app_name,imageUrl:d.image,aboutUrl:d.about_url,tondns:d.tondns,platforms:d.platforms};return d.bridge.forEach($=>{if($.type==="sse"&&(j.bridgeUrl=$.url,j.universalLink=d.universal_url,j.deepLink=d.deepLink),$.type==="js"){const et=$.key;j.jsBridgeKey=et,j.injected=InjectedProvider.isWalletInjected(et),j.embedded=InjectedProvider.isInsideWalletBrowser(et)}}),j})}mergeWalletsLists(_,d){return[...new Set(_.concat(d).map(j=>j.name)).values()].map(j=>{const $=_.find(tt=>tt.name===j),et=d.find(tt=>tt.name===j);return Object.assign(Object.assign({},$&&Object.assign({},$)),et&&Object.assign({},et))})}isCorrectWalletConfigDTO(_){if(!_||typeof _!="object")return!1;const d="name"in _,k="app_name"in _,j="image"in _,$="about_url"in _,et="platforms"in _;if(!d||!j||!$||!et||!k||!_.platforms||!Array.isArray(_.platforms)||!_.platforms.length||!("bridge"in _)||!Array.isArray(_.bridge)||!_.bridge.length)return!1;const tt=_.bridge;if(tt.some(ot=>!ot||typeof ot!="object"||!("type"in ot)))return!1;const rt=tt.find(ot=>ot.type==="sse");if(rt&&(!("url"in rt)||!rt.url||!_.universal_url))return!1;const nt=tt.find(ot=>ot.type==="js");return!(nt&&(!("key"in nt)||!nt.key))}}class WalletNotSupportFeatureError extends TonConnectError{get info(){return"Wallet doesn't support requested feature method."}constructor(..._){super(..._),Object.setPrototypeOf(this,WalletNotSupportFeatureError.prototype)}}function checkSendTransactionSupport(b,_){const d=b.includes("SendTransaction"),k=b.find(j=>j&&typeof j=="object"&&j.name==="SendTransaction");if(!d&&!k)throw new WalletNotSupportFeatureError("Wallet doesn't support SendTransaction feature.");if(k&&k.maxMessages!==void 0){if(k.maxMessages<_.requiredMessagesNumber)throw new WalletNotSupportFeatureError(`Wallet is not able to handle such SendTransaction request. Max support messages number is ${k.maxMessages}, but ${_.requiredMessagesNumber} is required.`);return}logWarning$1("Connected wallet didn't provide information about max allowed messages in the SendTransaction request. Request may be rejected by the wallet.")}function createRequestVersionEvent(){return{type:"request-version"}}function createResponseVersionEvent(b){return{type:"response-version",version:b}}function createVersionInfo(b){return{ton_connect_sdk_lib:b.ton_connect_sdk_lib,ton_connect_ui_lib:b.ton_connect_ui_lib}}function createConnectionInfo(b,_){var d,k,j,$,et,tt,rt,nt;const at=((d=_==null?void 0:_.connectItems)===null||d===void 0?void 0:d.tonProof)&&"proof"in _.connectItems.tonProof?"ton_proof":"ton_addr";return{wallet_address:(j=(k=_==null?void 0:_.account)===null||k===void 0?void 0:k.address)!==null&&j!==void 0?j:null,wallet_type:($=_==null?void 0:_.device.appName)!==null&&$!==void 0?$:null,wallet_version:(et=_==null?void 0:_.device.appVersion)!==null&&et!==void 0?et:null,auth_type:at,custom_data:Object.assign({chain_id:(rt=(tt=_==null?void 0:_.account)===null||tt===void 0?void 0:tt.chain)!==null&&rt!==void 0?rt:null,provider:(nt=_==null?void 0:_.provider)!==null&&nt!==void 0?nt:null},createVersionInfo(b))}}function createConnectionStartedEvent(b){return{type:"connection-started",custom_data:createVersionInfo(b)}}function createConnectionCompletedEvent(b,_){return Object.assign({type:"connection-completed",is_success:!0},createConnectionInfo(b,_))}function createConnectionErrorEvent(b,_,d){return{type:"connection-error",is_success:!1,error_message:_,error_code:d??null,custom_data:createVersionInfo(b)}}function createConnectionRestoringStartedEvent(b){return{type:"connection-restoring-started",custom_data:createVersionInfo(b)}}function createConnectionRestoringCompletedEvent(b,_){return Object.assign({type:"connection-restoring-completed",is_success:!0},createConnectionInfo(b,_))}function createConnectionRestoringErrorEvent(b,_){return{type:"connection-restoring-error",is_success:!1,error_message:_,custom_data:createVersionInfo(b)}}function createTransactionInfo(b,_){var d,k,j,$;return{valid_until:(d=String(_.validUntil))!==null&&d!==void 0?d:null,from:($=(k=_.from)!==null&&k!==void 0?k:(j=b==null?void 0:b.account)===null||j===void 0?void 0:j.address)!==null&&$!==void 0?$:null,messages:_.messages.map(et=>{var tt,rt;return{address:(tt=et.address)!==null&&tt!==void 0?tt:null,amount:(rt=et.amount)!==null&&rt!==void 0?rt:null}})}}function createTransactionSentForSignatureEvent(b,_,d){return Object.assign(Object.assign({type:"transaction-sent-for-signature"},createConnectionInfo(b,_)),createTransactionInfo(_,d))}function createTransactionSignedEvent(b,_,d,k){return Object.assign(Object.assign({type:"transaction-signed",is_success:!0,signed_transaction:k.boc},createConnectionInfo(b,_)),createTransactionInfo(_,d))}function createTransactionSigningFailedEvent(b,_,d,k,j){return Object.assign(Object.assign({type:"transaction-signing-failed",is_success:!1,error_message:k,error_code:j??null},createConnectionInfo(b,_)),createTransactionInfo(_,d))}function createDisconnectionEvent(b,_,d){return Object.assign({type:"disconnection",scope:d},createConnectionInfo(b,_))}class BrowserEventDispatcher{constructor(){this.window=getWindow$2()}dispatchEvent(_,d){var k;return __awaiter(this,void 0,void 0,function*(){const j=new CustomEvent(_,{detail:d});(k=this.window)===null||k===void 0||k.dispatchEvent(j)})}addEventListener(_,d,k){var j;return __awaiter(this,void 0,void 0,function*(){return(j=this.window)===null||j===void 0||j.addEventListener(_,d,k),()=>{var $;return($=this.window)===null||$===void 0?void 0:$.removeEventListener(_,d)}})}}class TonConnectTracker{constructor(_){var d;this.eventPrefix="ton-connect-",this.tonConnectUiVersion=null,this.eventDispatcher=(d=_==null?void 0:_.eventDispatcher)!==null&&d!==void 0?d:new BrowserEventDispatcher,this.tonConnectSdkVersion=_.tonConnectSdkVersion,this.init().catch()}get version(){return createVersionInfo({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return __awaiter(this,void 0,void 0,function*(){try{yield this.setRequestVersionHandler(),this.tonConnectUiVersion=yield this.requestTonConnectUiVersion()}catch{}})}setRequestVersionHandler(){return __awaiter(this,void 0,void 0,function*(){yield this.eventDispatcher.addEventListener("ton-connect-request-version",()=>__awaiter(this,void 0,void 0,function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-response-version",createResponseVersionEvent(this.tonConnectSdkVersion))}))})}requestTonConnectUiVersion(){return __awaiter(this,void 0,void 0,function*(){return new Promise((_,d)=>__awaiter(this,void 0,void 0,function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-ui-response-version",k=>{_(k.detail.version)},{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-ui-request-version",createRequestVersionEvent())}catch(k){d(k)}}))})}dispatchUserActionEvent(_){try{this.eventDispatcher.dispatchEvent(`${this.eventPrefix}${_.type}`,_).catch()}catch{}}trackConnectionStarted(..._){try{const d=createConnectionStartedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionCompleted(..._){try{const d=createConnectionCompletedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionError(..._){try{const d=createConnectionErrorEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionRestoringStarted(..._){try{const d=createConnectionRestoringStartedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionRestoringCompleted(..._){try{const d=createConnectionRestoringCompletedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionRestoringError(..._){try{const d=createConnectionRestoringErrorEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackDisconnection(..._){try{const d=createDisconnectionEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackTransactionSentForSignature(..._){try{const d=createTransactionSentForSignatureEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackTransactionSigned(..._){try{const d=createTransactionSignedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackTransactionSigningFailed(..._){try{const d=createTransactionSigningFailedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}}const tonConnectSdkVersion="3.0.3-beta.1";class TonConnect{constructor(_){if(this.walletsList=new WalletsListManager,this._wallet=null,this.provider=null,this.statusChangeSubscriptions=[],this.statusChangeErrorSubscriptions=[],this.dappSettings={manifestUrl:(_==null?void 0:_.manifestUrl)||getWebPageManifest(),storage:(_==null?void 0:_.storage)||new DefaultStorage},this.walletsList=new WalletsListManager({walletsListSource:_==null?void 0:_.walletsListSource,cacheTTLMs:_==null?void 0:_.walletsListCacheTTLMs}),this.tracker=new TonConnectTracker({eventDispatcher:_==null?void 0:_.eventDispatcher,tonConnectSdkVersion}),!this.dappSettings.manifestUrl)throw new DappMetadataError("Dapp tonconnect-manifest.json must be specified if window.location.origin is undefined. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest");this.bridgeConnectionStorage=new BridgeConnectionStorage(this.dappSettings.storage),_!=null&&_.disableAutoPauseConnection||this.addWindowFocusAndBlurSubscriptions()}static getWallets(){return this.walletsList.getWallets()}get connected(){return this._wallet!==null}get account(){var _;return((_=this._wallet)===null||_===void 0?void 0:_.account)||null}get wallet(){return this._wallet}set wallet(_){this._wallet=_,this.statusChangeSubscriptions.forEach(d=>d(this._wallet))}getWallets(){return this.walletsList.getWallets()}onStatusChange(_,d){return this.statusChangeSubscriptions.push(_),d&&this.statusChangeErrorSubscriptions.push(d),()=>{this.statusChangeSubscriptions=this.statusChangeSubscriptions.filter(k=>k!==_),d&&(this.statusChangeErrorSubscriptions=this.statusChangeErrorSubscriptions.filter(k=>k!==d))}}connect(_,d){var k,j;const $={};if(typeof d=="object"&&"tonProof"in d&&($.request=d),typeof d=="object"&&("openingDeadlineMS"in d||"signal"in d||"request"in d)&&($.request=d==null?void 0:d.request,$.openingDeadlineMS=d==null?void 0:d.openingDeadlineMS,$.signal=d==null?void 0:d.signal),this.connected)throw new WalletAlreadyConnectedError;const et=createAbortController($==null?void 0:$.signal);if((k=this.abortController)===null||k===void 0||k.abort(),this.abortController=et,et.signal.aborted)throw new TonConnectError("Connection was aborted");return(j=this.provider)===null||j===void 0||j.closeConnection(),this.provider=this.createProvider(_),et.signal.addEventListener("abort",()=>{var tt;(tt=this.provider)===null||tt===void 0||tt.closeConnection(),this.provider=null}),this.tracker.trackConnectionStarted(),this.provider.connect(this.createConnectRequest($==null?void 0:$.request),{openingDeadlineMS:$==null?void 0:$.openingDeadlineMS,signal:et.signal})}restoreConnection(_){var d,k;return __awaiter(this,void 0,void 0,function*(){this.tracker.trackConnectionRestoringStarted();const j=createAbortController(_==null?void 0:_.signal);if((d=this.abortController)===null||d===void 0||d.abort(),this.abortController=j,j.signal.aborted){this.tracker.trackConnectionRestoringError("Connection restoring was aborted");return}const[$,et]=yield Promise.all([this.bridgeConnectionStorage.storedConnectionType(),this.walletsList.getEmbeddedWallet()]);if(j.signal.aborted){this.tracker.trackConnectionRestoringError("Connection restoring was aborted");return}let tt=null;try{switch($){case"http":tt=yield BridgeProvider.fromStorage(this.dappSettings.storage);break;case"injected":tt=yield InjectedProvider.fromStorage(this.dappSettings.storage);break;default:if(et)tt=this.createProvider(et);else return}}catch{this.tracker.trackConnectionRestoringError("Provider is not restored"),yield this.bridgeConnectionStorage.removeConnection(),tt==null||tt.closeConnection(),tt=null;return}if(j.signal.aborted){tt==null||tt.closeConnection(),this.tracker.trackConnectionRestoringError("Connection restoring was aborted");return}if(!tt){logError$1("Provider is not restored"),this.tracker.trackConnectionRestoringError("Provider is not restored");return}(k=this.provider)===null||k===void 0||k.closeConnection(),this.provider=tt,tt.listen(this.walletEventsListener.bind(this));const rt=()=>{this.tracker.trackConnectionRestoringError("Connection restoring was aborted"),tt==null||tt.closeConnection(),tt=null};return j.signal.addEventListener("abort",rt),yield callForSuccess(nt=>__awaiter(this,void 0,void 0,function*(){yield tt==null?void 0:tt.restoreConnection({openingDeadlineMS:_==null?void 0:_.openingDeadlineMS,signal:nt.signal}),j.signal.removeEventListener("abort",rt),this.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):this.tracker.trackConnectionRestoringError("Connection restoring failed")}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:5e3,signal:_==null?void 0:_.signal})})}sendTransaction(_,d){return __awaiter(this,void 0,void 0,function*(){const k={};typeof d=="function"?k.onRequestSent=d:(k.onRequestSent=d==null?void 0:d.onRequestSent,k.signal=d==null?void 0:d.signal);const j=createAbortController(k==null?void 0:k.signal);if(j.signal.aborted)throw new TonConnectError("Transaction sending was aborted");this.checkConnection(),checkSendTransactionSupport(this.wallet.device.features,{requiredMessagesNumber:_.messages.length}),this.tracker.trackTransactionSentForSignature(this.wallet,_);const{validUntil:$}=_,et=__rest(_,["validUntil"]),tt=_.from||this.account.address,rt=_.network||this.account.chain,nt=yield this.provider.sendRequest(sendTransactionParser.convertToRpcRequest(Object.assign(Object.assign({},et),{valid_until:$,from:tt,network:rt})),{onRequestSent:k.onRequestSent,signal:j.signal});if(sendTransactionParser.isError(nt))return this.tracker.trackTransactionSigningFailed(this.wallet,_,nt.error.message,nt.error.code),sendTransactionParser.parseAndThrowError(nt);const ot=sendTransactionParser.convertFromRpcResponse(nt);return this.tracker.trackTransactionSigned(this.wallet,_,ot),ot})}disconnect(_){var d;return __awaiter(this,void 0,void 0,function*(){if(!this.connected)throw new WalletNotConnectedError;const k=createAbortController(_==null?void 0:_.signal),j=this.abortController;if(this.abortController=k,k.signal.aborted)throw new TonConnectError("Disconnect was aborted");this.onWalletDisconnected("dapp"),yield(d=this.provider)===null||d===void 0?void 0:d.disconnect({signal:k.signal}),j==null||j.abort()})}pauseConnection(){var _;((_=this.provider)===null||_===void 0?void 0:_.type)==="http"&&this.provider.pause()}unPauseConnection(){var _;return((_=this.provider)===null||_===void 0?void 0:_.type)!=="http"?Promise.resolve():this.provider.unPause()}addWindowFocusAndBlurSubscriptions(){const _=getDocument();if(_)try{_.addEventListener("visibilitychange",()=>{_.hidden?this.pauseConnection():this.unPauseConnection().catch()})}catch(d){logError$1("Cannot subscribe to the document.visibilitychange: ",d)}}createProvider(_){let d;return!Array.isArray(_)&&isWalletConnectionSourceJS(_)?d=new InjectedProvider(this.dappSettings.storage,_.jsBridgeKey):d=new BridgeProvider(this.dappSettings.storage,_),d.listen(this.walletEventsListener.bind(this)),d}walletEventsListener(_){switch(_.event){case"connect":this.onWalletConnected(_.payload);break;case"connect_error":this.onWalletConnectError(_.payload);break;case"disconnect":this.onWalletDisconnected("wallet")}}onWalletConnected(_){const d=_.items.find($=>$.name==="ton_addr"),k=_.items.find($=>$.name==="ton_proof");if(!d)throw new TonConnectError("ton_addr connection item was not found");const j={device:_.device,provider:this.provider.type,account:{address:d.address,chain:d.network,walletStateInit:d.walletStateInit,publicKey:d.publicKey}};k&&(j.connectItems={tonProof:k}),this.wallet=j,this.tracker.trackConnectionCompleted(j)}onWalletConnectError(_){const d=connectErrorsParser.parseError(_);if(this.statusChangeErrorSubscriptions.forEach(k=>k(d)),logDebug$1(d),this.tracker.trackConnectionError(_.message,_.code),d instanceof ManifestNotFoundError||d instanceof ManifestContentErrorError)throw logError$1(d),d}onWalletDisconnected(_){this.tracker.trackDisconnection(this.wallet,_),this.wallet=null}checkConnection(){if(!this.connected)throw new WalletNotConnectedError}createConnectRequest(_){const d=[{name:"ton_addr"}];return _!=null&&_.tonProof&&d.push({name:"ton_proof",payload:_.tonProof}),{manifestUrl:this.dappSettings.manifestUrl,items:d}}}TonConnect.walletsList=new WalletsListManager;TonConnect.isWalletInjected=b=>InjectedProvider.isWalletInjected(b);TonConnect.isInsideWalletBrowser=b=>InjectedProvider.isInsideWalletBrowser(b);const noBounceableTag=81,testOnlyTag=128;function toUserFriendlyAddress(b,_=!1){const{wc:d,hex:k}=parseHexAddress(b);let j=noBounceableTag;_&&(j|=testOnlyTag);const $=new Int8Array(34);$[0]=j,$[1]=d,$.set(k,2);const et=new Uint8Array(36);return et.set($),et.set(crc16($),34),Base64.encode(et).replace(/\+/g,"-").replace(/\//g,"_")}function parseHexAddress(b){if(!b.includes(":"))throw new WrongAddressError(`Wrong address ${b}. Address must include ":".`);const _=b.split(":");if(_.length!==2)throw new WrongAddressError(`Wrong address ${b}. Address must include ":" only once.`);const d=parseInt(_[0]);if(d!==0&&d!==-1)throw new WrongAddressError(`Wrong address ${b}. WC must be eq 0 or -1, but ${d} received.`);const k=_[1];if((k==null?void 0:k.length)!==64)throw new WrongAddressError(`Wrong address ${b}. Hex part must be 64bytes length, but ${k==null?void 0:k.length} received.`);return{wc:d,hex:hexToBytes(k)}}function crc16(b){let d=0;const k=new Uint8Array(b.length+2);k.set(b);for(let j of k){let $=128;for(;$>0;)d<<=1,j&$&&(d+=1),$>>=1,d>65535&&(d&=65535,d^=4129)}return new Uint8Array([Math.floor(d/256),d%256])}const toByteMap={};for(let b=0;b<=255;b++){let _=b.toString(16);_.length<2&&(_="0"+_),toByteMap[_]=b}function hexToBytes(b){b=b.toLowerCase();const _=b.length;if(_%2!==0)throw new ParseHexError("Hex string must have length a multiple of 2: "+b);const d=_/2,k=new Uint8Array(d);for(let j=0;j0?fr.length===2?typeof fr[1]==tt?this[fr[0]]=fr[1].call(this,vr):this[fr[0]]=fr[1]:fr.length===3?typeof fr[1]===tt&&!(fr[1].exec&&fr[1].test)?this[fr[0]]=vr?fr[1].call(this,vr,fr[2]):k:this[fr[0]]=vr?vr.replace(fr[1],fr[2]):k:fr.length===4&&(this[fr[0]]=vr?fr[3].call(this,vr.replace(fr[1],fr[2])):k):this[fr]=vr||k;qt+=2}},Ln=function(pn,Vt){for(var qt in Vt)if(typeof Vt[qt]===nt&&Vt[qt].length>0){for(var wn=0;wn2&&(Zn[it]="iPad",Zn[ut]=lt),Zn},this.getEngine=function(){var Zn={};return Zn[dt]=k,Zn[ft]=k,In.call(Zn,wn,lr.engine),Zn},this.getOS=function(){var Zn={};return Zn[dt]=k,Zn[ft]=k,In.call(Zn,wn,lr.os),fr&&!Zn[dt]&&Nn&&Nn.platform!="Unknown"&&(Zn[dt]=Nn.platform.replace(/chrome os/i,xn).replace(/macos/i,fn)),Zn},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return wn},this.setUA=function(Zn){return wn=typeof Zn===ot&&Zn.length>St?Tn(Zn,St):Zn,this},this.setUA(wn),this};Bn.VERSION=j,Bn.BROWSER=bn([dt,ft,at]),Bn.CPU=bn([st]),Bn.DEVICE=bn([it,ht,ut,ct,pt,wt,lt,yt,vt]),Bn.ENGINE=Bn.OS=bn([dt,ft]),b.exports&&(_=b.exports=Bn),_.UAParser=Bn;var Pn=typeof d!==rt&&(d.jQuery||d.Zepto);if(Pn&&!Pn.ua){var Un=new Bn;Pn.ua=Un.getResult(),Pn.ua.get=function(){return Un.getUA()},Pn.ua.set=function(pn){Un.setUA(pn);var Vt=Un.getResult();for(var qt in Vt)Pn.ua[qt]=Vt[qt]}}})(typeof window=="object"?window:commonjsGlobal)})(uaParser,uaParser.exports);var uaParserExports=uaParser.exports;const UAParser=getDefaultExportFromCjs(uaParserExports);var isMergeableObject=function(_){return isNonNullObject(_)&&!isSpecial(_)};function isNonNullObject(b){return!!b&&typeof b=="object"}function isSpecial(b){var _=Object.prototype.toString.call(b);return _==="[object RegExp]"||_==="[object Date]"||isReactElement(b)}var canUseSymbol=typeof Symbol=="function"&&Symbol.for,REACT_ELEMENT_TYPE=canUseSymbol?Symbol.for("react.element"):60103;function isReactElement(b){return b.$$typeof===REACT_ELEMENT_TYPE}function emptyTarget(b){return Array.isArray(b)?[]:{}}function cloneUnlessOtherwiseSpecified(b,_){return _.clone!==!1&&_.isMergeableObject(b)?deepmerge(emptyTarget(b),b,_):b}function defaultArrayMerge(b,_,d){return b.concat(_).map(function(k){return cloneUnlessOtherwiseSpecified(k,d)})}function getMergeFunction(b,_){if(!_.customMerge)return deepmerge;var d=_.customMerge(b);return typeof d=="function"?d:deepmerge}function getEnumerableOwnPropertySymbols(b){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(b).filter(function(_){return Object.propertyIsEnumerable.call(b,_)}):[]}function getKeys(b){return Object.keys(b).concat(getEnumerableOwnPropertySymbols(b))}function propertyIsOnObject(b,_){try{return _ in b}catch{return!1}}function propertyIsUnsafe(b,_){return propertyIsOnObject(b,_)&&!(Object.hasOwnProperty.call(b,_)&&Object.propertyIsEnumerable.call(b,_))}function mergeObject(b,_,d){var k={};return d.isMergeableObject(b)&&getKeys(b).forEach(function(j){k[j]=cloneUnlessOtherwiseSpecified(b[j],d)}),getKeys(_).forEach(function(j){propertyIsUnsafe(b,j)||(propertyIsOnObject(b,j)&&d.isMergeableObject(_[j])?k[j]=getMergeFunction(j,d)(b[j],_[j],d):k[j]=cloneUnlessOtherwiseSpecified(_[j],d))}),k}function deepmerge(b,_,d){d=d||{},d.arrayMerge=d.arrayMerge||defaultArrayMerge,d.isMergeableObject=d.isMergeableObject||isMergeableObject,d.cloneUnlessOtherwiseSpecified=cloneUnlessOtherwiseSpecified;var k=Array.isArray(_),j=Array.isArray(b),$=k===j;return $?k?d.arrayMerge(b,_,d):mergeObject(b,_,d):cloneUnlessOtherwiseSpecified(_,d)}deepmerge.all=function(_,d){if(!Array.isArray(_))throw new Error("first argument should be an array");return _.reduce(function(k,j){return deepmerge(k,j,d)},{})};var deepmerge_1=deepmerge,cjs=deepmerge_1;const deepmerge$1=getDefaultExportFromCjs(cjs);var classnames={exports:{}};/*! +`+_:""}`,Object.setPrototypeOf(this,TonConnectError.prototype)}get info(){return""}}TonConnectError.prefix="[TON_CONNECT_SDK_ERROR]";class DappMetadataError extends TonConnectError{get info(){return"Passed DappMetadata is in incorrect format."}constructor(..._){super(..._),Object.setPrototypeOf(this,DappMetadataError.prototype)}}class ManifestContentErrorError extends TonConnectError{get info(){return"Passed `tonconnect-manifest.json` contains errors. Check format of your manifest. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest"}constructor(..._){super(..._),Object.setPrototypeOf(this,ManifestContentErrorError.prototype)}}class ManifestNotFoundError extends TonConnectError{get info(){return"Manifest not found. Make sure you added `tonconnect-manifest.json` to the root of your app or passed correct manifestUrl. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest"}constructor(..._){super(..._),Object.setPrototypeOf(this,ManifestNotFoundError.prototype)}}class WalletAlreadyConnectedError extends TonConnectError{get info(){return"Wallet connection called but wallet already connected. To avoid the error, disconnect the wallet before doing a new connection."}constructor(..._){super(..._),Object.setPrototypeOf(this,WalletAlreadyConnectedError.prototype)}}class WalletNotConnectedError extends TonConnectError{get info(){return"Send transaction or other protocol methods called while wallet is not connected."}constructor(..._){super(..._),Object.setPrototypeOf(this,WalletNotConnectedError.prototype)}}function isWalletConnectionSourceJS(b){return"jsBridgeKey"in b}class UserRejectsError extends TonConnectError{get info(){return"User rejects the action in the wallet."}constructor(..._){super(..._),Object.setPrototypeOf(this,UserRejectsError.prototype)}}class BadRequestError extends TonConnectError{get info(){return"Request to the wallet contains errors."}constructor(..._){super(..._),Object.setPrototypeOf(this,BadRequestError.prototype)}}class UnknownAppError extends TonConnectError{get info(){return"App tries to send rpc request to the injected wallet while not connected."}constructor(..._){super(..._),Object.setPrototypeOf(this,UnknownAppError.prototype)}}class WalletNotInjectedError extends TonConnectError{get info(){return"There is an attempt to connect to the injected wallet while it is not exists in the webpage."}constructor(..._){super(..._),Object.setPrototypeOf(this,WalletNotInjectedError.prototype)}}class FetchWalletsError extends TonConnectError{get info(){return"An error occurred while fetching the wallets list."}constructor(..._){super(..._),Object.setPrototypeOf(this,FetchWalletsError.prototype)}}class WrongAddressError extends TonConnectError{get info(){return"Passed address is in incorrect format."}constructor(..._){super(..._),Object.setPrototypeOf(this,WrongAddressError.prototype)}}class ParseHexError extends TonConnectError{get info(){return"Passed hex is in incorrect format."}constructor(..._){super(..._),Object.setPrototypeOf(this,ParseHexError.prototype)}}class UnknownError extends TonConnectError{constructor(..._){super(..._),Object.setPrototypeOf(this,UnknownError.prototype)}}const connectEventErrorsCodes={[CONNECT_EVENT_ERROR_CODES.UNKNOWN_ERROR]:UnknownError,[CONNECT_EVENT_ERROR_CODES.USER_REJECTS_ERROR]:UserRejectsError,[CONNECT_EVENT_ERROR_CODES.BAD_REQUEST_ERROR]:BadRequestError,[CONNECT_EVENT_ERROR_CODES.UNKNOWN_APP_ERROR]:UnknownAppError,[CONNECT_EVENT_ERROR_CODES.MANIFEST_NOT_FOUND_ERROR]:ManifestNotFoundError,[CONNECT_EVENT_ERROR_CODES.MANIFEST_CONTENT_ERROR]:ManifestContentErrorError};class ConnectErrorsParser{parseError(_){let d=UnknownError;return _.code in connectEventErrorsCodes&&(d=connectEventErrorsCodes[_.code]||UnknownError),new d(_.message)}}const connectErrorsParser=new ConnectErrorsParser;class RpcParser{isError(_){return"error"in _}}const sendTransactionErrors={[SEND_TRANSACTION_ERROR_CODES.UNKNOWN_ERROR]:UnknownError,[SEND_TRANSACTION_ERROR_CODES.USER_REJECTS_ERROR]:UserRejectsError,[SEND_TRANSACTION_ERROR_CODES.BAD_REQUEST_ERROR]:BadRequestError,[SEND_TRANSACTION_ERROR_CODES.UNKNOWN_APP_ERROR]:UnknownAppError};class SendTransactionParser extends RpcParser{convertToRpcRequest(_){return{method:"sendTransaction",params:[JSON.stringify(_)]}}parseAndThrowError(_){let d=UnknownError;throw _.error.code in sendTransactionErrors&&(d=sendTransactionErrors[_.error.code]||UnknownError),new d(_.error.message)}convertFromRpcResponse(_){return{boc:_.result}}}const sendTransactionParser=new SendTransactionParser;class HttpBridgeGatewayStorage{constructor(_,d){this.storage=_,this.storeKey="ton-connect-storage_http-bridge-gateway::"+d}storeLastEventId(_){return __awaiter(this,void 0,void 0,function*(){return this.storage.setItem(this.storeKey,_)})}removeLastEventId(){return __awaiter(this,void 0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getLastEventId(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.storage.getItem(this.storeKey);return _||null})}}function removeUrlLastSlash(b){return b.slice(-1)==="/"?b.slice(0,-1):b}function addPathToUrl(b,_){return removeUrlLastSlash(b)+"/"+_}function isTelegramUrl(b){if(!b)return!1;const _=new URL(b);return _.protocol==="tg:"||_.hostname==="t.me"}function encodeTelegramUrlParameters(b){return b.replaceAll(".","%2E").replaceAll("-","%2D").replaceAll("_","%5F").replaceAll("&","-").replaceAll("=","__").replaceAll("%","--")}function delay(b,_){return __awaiter(this,void 0,void 0,function*(){return new Promise((d,k)=>{var j,$;if(!((j=_==null?void 0:_.signal)===null||j===void 0)&&j.aborted){k(new TonConnectError("Delay aborted"));return}const et=setTimeout(()=>d(),b);($=_==null?void 0:_.signal)===null||$===void 0||$.addEventListener("abort",()=>{clearTimeout(et),k(new TonConnectError("Delay aborted"))})})})}function createAbortController(b){const _=new AbortController;return b!=null&&b.aborted?_.abort():b==null||b.addEventListener("abort",()=>_.abort(),{once:!0}),_}function callForSuccess(b,_){var d,k;return __awaiter(this,void 0,void 0,function*(){const j=(d=_==null?void 0:_.attempts)!==null&&d!==void 0?d:10,$=(k=_==null?void 0:_.delayMs)!==null&&k!==void 0?k:200,et=createAbortController(_==null?void 0:_.signal);if(typeof b!="function")throw new TonConnectError(`Expected a function, got ${typeof b}`);let tt=0,rt;for(;tt__awaiter(this,void 0,void 0,function*(){if($=at??null,et==null||et.abort(),et=createAbortController(at),et.signal.aborted)throw new TonConnectError("Resource creation was aborted");k=it??null;const dt=b(et.signal,...it);j=dt;const ut=yield dt;if(j!==dt&&ut!==d)throw yield _(ut),new TonConnectError("Resource creation was aborted by a new resource creation");return d=ut,d});return{create:tt,current:()=>d??null,dispose:()=>__awaiter(this,void 0,void 0,function*(){try{const at=d;d=null;const it=j;j=null;try{et==null||et.abort()}catch{}yield Promise.allSettled([at?_(at):Promise.resolve(),it?_(yield it):Promise.resolve()])}catch{}}),recreate:at=>__awaiter(this,void 0,void 0,function*(){const it=d,dt=j,ut=k,ht=$;if(yield delay(at),it===d&&dt===j&&ut===k&&ht===$)return yield tt($,...ut??[]);throw new TonConnectError("Resource recreation was aborted by a new resource creation")})}}function timeout(b,_){const d=_==null?void 0:_.timeout,k=_==null?void 0:_.signal,j=createAbortController(k);return new Promise(($,et)=>{if(j.signal.aborted){et(new TonConnectError("Operation aborted"));return}let tt;typeof d<"u"&&(tt=setTimeout(()=>{j.abort(),et(new TonConnectError(`Timeout after ${d}ms`))},d)),j.signal.addEventListener("abort",()=>{clearTimeout(tt),et(new TonConnectError("Operation aborted"))},{once:!0});const rt={timeout:d,abort:j.signal};b($,et,rt).finally(()=>clearTimeout(tt))})}class BridgeGateway{constructor(_,d,k,j,$){this.bridgeUrl=d,this.sessionId=k,this.listener=j,this.errorsListener=$,this.ssePath="events",this.postPath="message",this.heartbeatMessage="heartbeat",this.defaultTtl=300,this.defaultReconnectDelay=5e3,this.eventSource=createResource$1((et,tt)=>__awaiter(this,void 0,void 0,function*(){const rt={bridgeUrl:this.bridgeUrl,ssePath:this.ssePath,sessionId:this.sessionId,bridgeGatewayStorage:this.bridgeGatewayStorage,errorHandler:this.errorsHandler.bind(this),messageHandler:this.messagesHandler.bind(this),signal:et,openingDeadlineMS:tt};return yield createEventSource(rt)}),et=>__awaiter(this,void 0,void 0,function*(){et.close()})),this.bridgeGatewayStorage=new HttpBridgeGatewayStorage(_,d)}get isReady(){const _=this.eventSource.current();return(_==null?void 0:_.readyState)===EventSource.OPEN}get isClosed(){const _=this.eventSource.current();return(_==null?void 0:_.readyState)!==EventSource.OPEN}get isConnecting(){const _=this.eventSource.current();return(_==null?void 0:_.readyState)===EventSource.CONNECTING}registerSession(_){return __awaiter(this,void 0,void 0,function*(){yield this.eventSource.create(_==null?void 0:_.signal,_==null?void 0:_.openingDeadlineMS)})}send(_,d,k,j){var $;return __awaiter(this,void 0,void 0,function*(){const et={};typeof j=="number"?et.ttl=j:(et.ttl=j==null?void 0:j.ttl,et.signal=j==null?void 0:j.signal,et.attempts=j==null?void 0:j.attempts);const tt=new URL(addPathToUrl(this.bridgeUrl,this.postPath));tt.searchParams.append("client_id",this.sessionId),tt.searchParams.append("to",d),tt.searchParams.append("ttl",((et==null?void 0:et.ttl)||this.defaultTtl).toString()),tt.searchParams.append("topic",k);const rt=Base64.encode(_);yield callForSuccess(nt=>__awaiter(this,void 0,void 0,function*(){const ot=yield this.post(tt,rt,nt.signal);if(!ot.ok)throw new TonConnectError(`Bridge send failed, status ${ot.status}`)}),{attempts:($=et==null?void 0:et.attempts)!==null&&$!==void 0?$:Number.MAX_SAFE_INTEGER,delayMs:5e3,signal:et==null?void 0:et.signal})})}pause(){this.eventSource.dispose().catch(_=>logError$1(`Bridge pause failed, ${_}`))}unPause(){return __awaiter(this,void 0,void 0,function*(){yield this.eventSource.recreate(0)})}close(){return __awaiter(this,void 0,void 0,function*(){yield this.eventSource.dispose().catch(_=>logError$1(`Bridge close failed, ${_}`))})}setListener(_){this.listener=_}setErrorsListener(_){this.errorsListener=_}post(_,d,k){return __awaiter(this,void 0,void 0,function*(){const j=yield fetch(_,{method:"post",body:d,signal:k});if(!j.ok)throw new TonConnectError(`Bridge send failed, status ${j.status}`);return j})}errorsHandler(_,d){return __awaiter(this,void 0,void 0,function*(){if(this.isConnecting){logError$1("Bridge error",JSON.stringify(d));return}if(this.isReady){try{this.errorsListener(d)}catch{}return}if(this.isClosed)return _.close(),logDebug$1(`Bridge reconnecting, ${this.defaultReconnectDelay}ms delay`),yield this.eventSource.recreate(this.defaultReconnectDelay);throw new TonConnectError("Bridge error, unknown state")})}messagesHandler(_){return __awaiter(this,void 0,void 0,function*(){if(_.data===this.heartbeatMessage||(yield this.bridgeGatewayStorage.storeLastEventId(_.lastEventId),this.isClosed))return;let d;try{d=JSON.parse(_.data)}catch(k){throw new TonConnectError(`Bridge message parse failed, message ${k.data}`)}this.listener(d)})}}function createEventSource(b){return __awaiter(this,void 0,void 0,function*(){return yield timeout((_,d,k)=>__awaiter(this,void 0,void 0,function*(){var j;const et=createAbortController(k.signal).signal;if(et.aborted){d(new TonConnectError("Bridge connection aborted"));return}const tt=new URL(addPathToUrl(b.bridgeUrl,b.ssePath));tt.searchParams.append("client_id",b.sessionId);const rt=yield b.bridgeGatewayStorage.getLastEventId();if(rt&&tt.searchParams.append("last_event_id",rt),et.aborted){d(new TonConnectError("Bridge connection aborted"));return}const nt=new EventSource(tt.toString());nt.onerror=ot=>__awaiter(this,void 0,void 0,function*(){if(et.aborted){nt.close(),d(new TonConnectError("Bridge connection aborted"));return}try{const at=yield b.errorHandler(nt,ot);at!==nt&&nt.close(),at&&at!==nt&&_(at)}catch(at){nt.close(),d(at)}}),nt.onopen=()=>{if(et.aborted){nt.close(),d(new TonConnectError("Bridge connection aborted"));return}_(nt)},nt.onmessage=ot=>{if(et.aborted){nt.close(),d(new TonConnectError("Bridge connection aborted"));return}b.messageHandler(ot)},(j=b.signal)===null||j===void 0||j.addEventListener("abort",()=>{nt.close(),d(new TonConnectError("Bridge connection aborted"))})}),{timeout:b.openingDeadlineMS,signal:b.signal})})}function isPendingConnectionHttp(b){return!("connectEvent"in b)}class BridgeConnectionStorage{constructor(_){this.storage=_,this.storeKey="ton-connect-storage_bridge-connection"}storeConnection(_){return __awaiter(this,void 0,void 0,function*(){if(_.type==="injected")return this.storage.setItem(this.storeKey,JSON.stringify(_));if(!isPendingConnectionHttp(_)){const k={sessionKeyPair:_.session.sessionCrypto.stringifyKeypair(),walletPublicKey:_.session.walletPublicKey,bridgeUrl:_.session.bridgeUrl},j={type:"http",connectEvent:_.connectEvent,session:k,lastWalletEventId:_.lastWalletEventId,nextRpcRequestId:_.nextRpcRequestId};return this.storage.setItem(this.storeKey,JSON.stringify(j))}const d={type:"http",connectionSource:_.connectionSource,sessionCrypto:_.sessionCrypto.stringifyKeypair()};return this.storage.setItem(this.storeKey,JSON.stringify(d))})}removeConnection(){return __awaiter(this,void 0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getConnection(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.storage.getItem(this.storeKey);if(!_)return null;const d=JSON.parse(_);if(d.type==="injected")return d;if("connectEvent"in d){const k=new SessionCrypto(d.session.sessionKeyPair);return{type:"http",connectEvent:d.connectEvent,lastWalletEventId:d.lastWalletEventId,nextRpcRequestId:d.nextRpcRequestId,session:{sessionCrypto:k,bridgeUrl:d.session.bridgeUrl,walletPublicKey:d.session.walletPublicKey}}}return{type:"http",sessionCrypto:new SessionCrypto(d.sessionCrypto),connectionSource:d.connectionSource}})}getHttpConnection(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.getConnection();if(!_)throw new TonConnectError("Trying to read HTTP connection source while nothing is stored");if(_.type==="injected")throw new TonConnectError("Trying to read HTTP connection source while injected connection is stored");return _})}getHttpPendingConnection(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.getConnection();if(!_)throw new TonConnectError("Trying to read HTTP connection source while nothing is stored");if(_.type==="injected")throw new TonConnectError("Trying to read HTTP connection source while injected connection is stored");if(!isPendingConnectionHttp(_))throw new TonConnectError("Trying to read HTTP-pending connection while http connection is stored");return _})}getInjectedConnection(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.getConnection();if(!_)throw new TonConnectError("Trying to read Injected bridge connection source while nothing is stored");if((_==null?void 0:_.type)==="http")throw new TonConnectError("Trying to read Injected bridge connection source while HTTP connection is stored");return _})}storedConnectionType(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.storage.getItem(this.storeKey);return _?JSON.parse(_).type:null})}storeLastWalletEventId(_){return __awaiter(this,void 0,void 0,function*(){const d=yield this.getConnection();if(d&&d.type==="http"&&!isPendingConnectionHttp(d))return d.lastWalletEventId=_,this.storeConnection(d)})}getLastWalletEventId(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.getConnection();if(_&&"lastWalletEventId"in _)return _.lastWalletEventId})}increaseNextRpcRequestId(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.getConnection();if(_&&"nextRpcRequestId"in _){const d=_.nextRpcRequestId||0;return _.nextRpcRequestId=d+1,this.storeConnection(_)}})}getNextRpcRequestId(){return __awaiter(this,void 0,void 0,function*(){const _=yield this.getConnection();return _&&"nextRpcRequestId"in _&&_.nextRpcRequestId||0})}}const PROTOCOL_VERSION=2;class BridgeProvider{constructor(_,d){this.storage=_,this.walletConnectionSource=d,this.type="http",this.standardUniversalLink="tc://",this.pendingRequests=new Map,this.session=null,this.gateway=null,this.pendingGateways=[],this.listeners=[],this.defaultOpeningDeadlineMS=5e3,this.connectionStorage=new BridgeConnectionStorage(_)}static fromStorage(_){return __awaiter(this,void 0,void 0,function*(){const k=yield new BridgeConnectionStorage(_).getHttpConnection();return isPendingConnectionHttp(k)?new BridgeProvider(_,k.connectionSource):new BridgeProvider(_,{bridgeUrl:k.session.bridgeUrl})})}connect(_,d){var k;const j=createAbortController(d==null?void 0:d.signal);(k=this.abortController)===null||k===void 0||k.abort(),this.abortController=j,this.closeGateways();const $=new SessionCrypto;this.session={sessionCrypto:$,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},this.connectionStorage.storeConnection({type:"http",connectionSource:this.walletConnectionSource,sessionCrypto:$}).then(()=>__awaiter(this,void 0,void 0,function*(){j.signal.aborted||(yield callForSuccess(tt=>this.openGateways($,{openingDeadlineMS:d==null?void 0:d.openingDeadlineMS,signal:tt==null?void 0:tt.signal}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:5e3,signal:j.signal}))}));const et="universalLink"in this.walletConnectionSource&&this.walletConnectionSource.universalLink?this.walletConnectionSource.universalLink:this.standardUniversalLink;return this.generateUniversalLink(et,_)}restoreConnection(_){var d,k;return __awaiter(this,void 0,void 0,function*(){const j=createAbortController(_==null?void 0:_.signal);if((d=this.abortController)===null||d===void 0||d.abort(),this.abortController=j,j.signal.aborted)return;this.closeGateways();const $=yield this.connectionStorage.getHttpConnection();if(!$||j.signal.aborted)return;const et=(k=_==null?void 0:_.openingDeadlineMS)!==null&&k!==void 0?k:this.defaultOpeningDeadlineMS;if(isPendingConnectionHttp($))return this.session={sessionCrypto:$.sessionCrypto,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},yield this.openGateways($.sessionCrypto,{openingDeadlineMS:et,signal:j==null?void 0:j.signal});if(Array.isArray(this.walletConnectionSource))throw new TonConnectError("Internal error. Connection source is array while WalletConnectionSourceHTTP was expected.");if(this.session=$.session,this.gateway&&(logDebug$1("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new BridgeGateway(this.storage,this.walletConnectionSource.bridgeUrl,$.session.sessionCrypto.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),!j.signal.aborted){this.listeners.forEach(tt=>tt($.connectEvent));try{yield callForSuccess(tt=>this.gateway.registerSession({openingDeadlineMS:et,signal:tt.signal}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:5e3,signal:j.signal})}catch{yield this.disconnect({signal:j.signal});return}}})}sendRequest(_,d){const k={};return typeof d=="function"?k.onRequestSent=d:(k.onRequestSent=d==null?void 0:d.onRequestSent,k.signal=d==null?void 0:d.signal,k.attempts=d==null?void 0:d.attempts),new Promise((j,$)=>__awaiter(this,void 0,void 0,function*(){var et;if(!this.gateway||!this.session||!("walletPublicKey"in this.session))throw new TonConnectError("Trying to send bridge request without session");const tt=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),logDebug$1("Send http-bridge request:",Object.assign(Object.assign({},_),{id:tt}));const rt=this.session.sessionCrypto.encrypt(JSON.stringify(Object.assign(Object.assign({},_),{id:tt})),hexToByteArray(this.session.walletPublicKey));try{yield this.gateway.send(rt,this.session.walletPublicKey,_.method,{attempts:k==null?void 0:k.attempts,signal:k==null?void 0:k.signal}),(et=k==null?void 0:k.onRequestSent)===null||et===void 0||et.call(k),this.pendingRequests.set(tt.toString(),j)}catch(nt){$(nt)}}))}closeConnection(){this.closeGateways(),this.listeners=[],this.session=null,this.gateway=null}disconnect(_){return __awaiter(this,void 0,void 0,function*(){return new Promise(d=>__awaiter(this,void 0,void 0,function*(){let k=!1,j=null;const $=()=>{k||(k=!0,this.removeBridgeAndSession().then(d))};try{this.closeGateways();const et=createAbortController(_==null?void 0:_.signal);j=setTimeout(()=>{et.abort()},this.defaultOpeningDeadlineMS),yield this.sendRequest({method:"disconnect",params:[]},{onRequestSent:$,signal:et.signal,attempts:1})}catch(et){logDebug$1("Disconnect error:",et),k||this.removeBridgeAndSession().then(d)}finally{j&&clearTimeout(j),$()}}))})}listen(_){return this.listeners.push(_),()=>this.listeners=this.listeners.filter(d=>d!==_)}pause(){var _;(_=this.gateway)===null||_===void 0||_.pause(),this.pendingGateways.forEach(d=>d.pause())}unPause(){return __awaiter(this,void 0,void 0,function*(){const _=this.pendingGateways.map(d=>d.unPause());this.gateway&&_.push(this.gateway.unPause()),yield Promise.all(_)})}pendingGatewaysListener(_,d,k){return __awaiter(this,void 0,void 0,function*(){if(!this.pendingGateways.includes(_)){yield _.close();return}return this.closeGateways({except:_}),this.gateway&&(logDebug$1("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.session.bridgeUrl=d,this.gateway=_,this.gateway.setErrorsListener(this.gatewayErrorsListener.bind(this)),this.gateway.setListener(this.gatewayListener.bind(this)),this.gatewayListener(k)})}gatewayListener(_){return __awaiter(this,void 0,void 0,function*(){const d=JSON.parse(this.session.sessionCrypto.decrypt(Base64.decode(_.message).toUint8Array(),hexToByteArray(_.from)));if(logDebug$1("Wallet message received:",d),!("event"in d)){const j=d.id.toString(),$=this.pendingRequests.get(j);if(!$){logDebug$1(`Response id ${j} doesn't match any request's id`);return}$(d),this.pendingRequests.delete(j);return}if(d.id!==void 0){const j=yield this.connectionStorage.getLastWalletEventId();if(j!==void 0&&d.id<=j){logError$1(`Received event id (=${d.id}) must be greater than stored last wallet event id (=${j}) `);return}d.event!=="connect"&&(yield this.connectionStorage.storeLastWalletEventId(d.id))}const k=this.listeners;d.event==="connect"&&(yield this.updateSession(d,_.from)),d.event==="disconnect"&&(logDebug$1("Removing bridge and session: received disconnect event"),yield this.removeBridgeAndSession()),k.forEach(j=>j(d))})}gatewayErrorsListener(_){return __awaiter(this,void 0,void 0,function*(){throw new TonConnectError(`Bridge error ${JSON.stringify(_)}`)})}updateSession(_,d){return __awaiter(this,void 0,void 0,function*(){this.session=Object.assign(Object.assign({},this.session),{walletPublicKey:d});const k=_.payload.items.find($=>$.name==="ton_addr"),j=Object.assign(Object.assign({},_),{payload:Object.assign(Object.assign({},_.payload),{items:[k]})});yield this.connectionStorage.storeConnection({type:"http",session:this.session,lastWalletEventId:_.id,connectEvent:j,nextRpcRequestId:0})})}removeBridgeAndSession(){return __awaiter(this,void 0,void 0,function*(){this.closeConnection(),yield this.connectionStorage.removeConnection()})}generateUniversalLink(_,d){return isTelegramUrl(_)?this.generateTGUniversalLink(_,d):this.generateRegularUniversalLink(_,d)}generateRegularUniversalLink(_,d){const k=new URL(_);return k.searchParams.append("v",PROTOCOL_VERSION.toString()),k.searchParams.append("id",this.session.sessionCrypto.sessionId),k.searchParams.append("r",JSON.stringify(d)),k.toString()}generateTGUniversalLink(_,d){const j=this.generateRegularUniversalLink("about:blank",d).split("?")[1],$="tonconnect-"+encodeTelegramUrlParameters(j),et=this.convertToDirectLink(_),tt=new URL(et);return tt.searchParams.append("startapp",$),tt.toString()}convertToDirectLink(_){const d=new URL(_);return d.searchParams.has("attach")&&(d.searchParams.delete("attach"),d.pathname+="/start"),d.toString()}openGateways(_,d){return __awaiter(this,void 0,void 0,function*(){if(Array.isArray(this.walletConnectionSource)){this.pendingGateways.map(k=>k.close().catch()),this.pendingGateways=this.walletConnectionSource.map(k=>{const j=new BridgeGateway(this.storage,k.bridgeUrl,_.sessionId,()=>{},()=>{});return j.setListener($=>this.pendingGatewaysListener(j,k.bridgeUrl,$)),j}),yield Promise.allSettled(this.pendingGateways.map(k=>callForSuccess(j=>this.pendingGateways.some($=>$===k)?k.registerSession({openingDeadlineMS:d==null?void 0:d.openingDeadlineMS,signal:j.signal}):k.close(),{attempts:Number.MAX_SAFE_INTEGER,delayMs:5e3,signal:d==null?void 0:d.signal})));return}else return this.gateway&&(logDebug$1("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new BridgeGateway(this.storage,this.walletConnectionSource.bridgeUrl,_.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),yield this.gateway.registerSession({openingDeadlineMS:d==null?void 0:d.openingDeadlineMS,signal:d==null?void 0:d.signal})})}closeGateways(_){var d;(d=this.gateway)===null||d===void 0||d.close(),this.pendingGateways.filter(k=>k!==(_==null?void 0:_.except)).forEach(k=>k.close()),this.pendingGateways=[]}}function hasProperty(b,_){return hasProperties(b,[_])}function hasProperties(b,_){return!b||typeof b!="object"?!1:_.every(d=>d in b)}function isJSBridgeWithMetadata(b){try{return!hasProperty(b,"tonconnect")||!hasProperty(b.tonconnect,"walletInfo")?!1:hasProperties(b.tonconnect.walletInfo,["name","app_name","image","about_url","platforms"])}catch{return!1}}let InMemoryStorage$1=class Jo{constructor(){this.storage={}}static getInstance(){return Jo.instance||(Jo.instance=new Jo),Jo.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(_){var d;return(d=this.storage[_])!==null&&d!==void 0?d:null}key(_){var d;const k=Object.keys(this.storage);return _<0||_>=k.length?null:(d=k[_])!==null&&d!==void 0?d:null}removeItem(_){delete this.storage[_]}setItem(_,d){this.storage[_]=d}};function getWindow$2(){if(!(typeof window>"u"))return window}function tryGetWindowKeys(){const b=getWindow$2();if(!b)return[];try{return Object.keys(b)}catch{return[]}}function getDocument(){if(!(typeof document>"u"))return document}function getWebPageManifest(){var b;const _=(b=getWindow$2())===null||b===void 0?void 0:b.location.origin;return _?_+"/tonconnect-manifest.json":""}function tryGetLocalStorage$1(){if(isLocalStorageAvailable$1())return localStorage;if(isNodeJs$1())throw new TonConnectError("`localStorage` is unavailable, but it is required for TonConnect. For more details, see https://github.com/ton-connect/sdk/tree/main/packages/sdk#init-connector");return InMemoryStorage$1.getInstance()}function isLocalStorageAvailable$1(){try{return typeof localStorage<"u"}catch{return!1}}function isNodeJs$1(){return typeof process<"u"&&process.versions!=null&&process.versions.node!=null}class InjectedProvider{constructor(_,d){this.injectedWalletKey=d,this.type="injected",this.unsubscribeCallback=null,this.listenSubscriptions=!1,this.listeners=[];const k=InjectedProvider.window;if(!InjectedProvider.isWindowContainsWallet(k,d))throw new WalletNotInjectedError;this.connectionStorage=new BridgeConnectionStorage(_),this.injectedWallet=k[d].tonconnect}static fromStorage(_){return __awaiter(this,void 0,void 0,function*(){const k=yield new BridgeConnectionStorage(_).getInjectedConnection();return new InjectedProvider(_,k.jsBridgeKey)})}static isWalletInjected(_){return InjectedProvider.isWindowContainsWallet(this.window,_)}static isInsideWalletBrowser(_){return InjectedProvider.isWindowContainsWallet(this.window,_)?this.window[_].tonconnect.isWalletBrowser:!1}static getCurrentlyInjectedWallets(){return this.window?tryGetWindowKeys().filter(([k,j])=>isJSBridgeWithMetadata(j)).map(([k,j])=>({name:j.tonconnect.walletInfo.name,appName:j.tonconnect.walletInfo.app_name,aboutUrl:j.tonconnect.walletInfo.about_url,imageUrl:j.tonconnect.walletInfo.image,tondns:j.tonconnect.walletInfo.tondns,jsBridgeKey:k,injected:!0,embedded:j.tonconnect.isWalletBrowser,platforms:j.tonconnect.walletInfo.platforms})):[]}static isWindowContainsWallet(_,d){return!!_&&d in _&&typeof _[d]=="object"&&"tonconnect"in _[d]}connect(_){this._connect(PROTOCOL_VERSION,_)}restoreConnection(){return __awaiter(this,void 0,void 0,function*(){try{logDebug$1("Injected Provider restoring connection...");const _=yield this.injectedWallet.restoreConnection();logDebug$1("Injected Provider restoring connection response",_),_.event==="connect"?(this.makeSubscriptions(),this.listeners.forEach(d=>d(_))):yield this.connectionStorage.removeConnection()}catch(_){yield this.connectionStorage.removeConnection(),console.error(_)}})}closeConnection(){this.listenSubscriptions&&this.injectedWallet.disconnect(),this.closeAllListeners()}disconnect(){return __awaiter(this,void 0,void 0,function*(){return new Promise(_=>{const d=()=>{this.closeAllListeners(),this.connectionStorage.removeConnection().then(_)};try{this.injectedWallet.disconnect(),d()}catch(k){logDebug$1(k),this.sendRequest({method:"disconnect",params:[]},d)}})})}closeAllListeners(){var _;this.listenSubscriptions=!1,this.listeners=[],(_=this.unsubscribeCallback)===null||_===void 0||_.call(this)}listen(_){return this.listeners.push(_),()=>this.listeners=this.listeners.filter(d=>d!==_)}sendRequest(_,d){var k;return __awaiter(this,void 0,void 0,function*(){const j={};typeof d=="function"?j.onRequestSent=d:(j.onRequestSent=d==null?void 0:d.onRequestSent,j.signal=d==null?void 0:d.signal);const $=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),logDebug$1("Send injected-bridge request:",Object.assign(Object.assign({},_),{id:$}));const et=this.injectedWallet.send(Object.assign(Object.assign({},_),{id:$}));return et.then(tt=>logDebug$1("Wallet message received:",tt)),(k=j==null?void 0:j.onRequestSent)===null||k===void 0||k.call(j),et})}_connect(_,d){return __awaiter(this,void 0,void 0,function*(){try{logDebug$1(`Injected Provider connect request: protocolVersion: ${_}, message:`,d);const k=yield this.injectedWallet.connect(_,d);logDebug$1("Injected Provider connect response:",k),k.event==="connect"&&(yield this.updateSession(),this.makeSubscriptions()),this.listeners.forEach(j=>j(k))}catch(k){logDebug$1("Injected Provider connect error:",k);const j={event:"connect_error",payload:{code:0,message:k==null?void 0:k.toString()}};this.listeners.forEach($=>$(j))}})}makeSubscriptions(){this.listenSubscriptions=!0,this.unsubscribeCallback=this.injectedWallet.listen(_=>{logDebug$1("Wallet message received:",_),this.listenSubscriptions&&this.listeners.forEach(d=>d(_)),_.event==="disconnect"&&this.disconnect()})}updateSession(){return this.connectionStorage.storeConnection({type:"injected",jsBridgeKey:this.injectedWalletKey,nextRpcRequestId:0})}}InjectedProvider.window=getWindow$2();class DefaultStorage{constructor(){this.localStorage=tryGetLocalStorage$1()}getItem(_){return __awaiter(this,void 0,void 0,function*(){return this.localStorage.getItem(_)})}removeItem(_){return __awaiter(this,void 0,void 0,function*(){this.localStorage.removeItem(_)})}setItem(_,d){return __awaiter(this,void 0,void 0,function*(){this.localStorage.setItem(_,d)})}}function isWalletInfoCurrentlyInjected(b){return isWalletInfoInjectable(b)&&b.injected}function isWalletInfoCurrentlyEmbedded(b){return isWalletInfoCurrentlyInjected(b)&&b.embedded}function isWalletInfoInjectable(b){return"jsBridgeKey"in b}function isWalletInfoRemote(b){return"bridgeUrl"in b}const FALLBACK_WALLETS_LIST=[{app_name:"telegram-wallet",name:"Wallet",image:"https://wallet.tg/images/logo-288.png",about_url:"https://wallet.tg/",universal_url:"https://t.me/wallet?attach=wallet",bridge:[{type:"sse",url:"https://bridge.tonapi.io/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"tonkeeper",name:"Tonkeeper",image:"https://tonkeeper.com/assets/tonconnect-icon.png",tondns:"tonkeeper.ton",about_url:"https://tonkeeper.com",universal_url:"https://app.tonkeeper.com/ton-connect",deepLink:"tonkeeper-tc://",bridge:[{type:"sse",url:"https://bridge.tonapi.io/bridge"},{type:"js",key:"tonkeeper"}],platforms:["ios","android","chrome","firefox","macos"]},{app_name:"mytonwallet",name:"MyTonWallet",image:"https://mytonwallet.io/icon-256.png",about_url:"https://mytonwallet.io",universal_url:"https://connect.mytonwallet.org",bridge:[{type:"js",key:"mytonwallet"},{type:"sse",url:"https://tonconnectbridge.mytonwallet.org/bridge/"}],platforms:["chrome","windows","macos","linux","ios","android","firefox"]},{app_name:"openmask",name:"OpenMask",image:"https://raw.githubusercontent.com/OpenProduct/openmask-extension/main/public/openmask-logo-288.png",about_url:"https://www.openmask.app/",bridge:[{type:"js",key:"openmask"}],platforms:["chrome"]},{app_name:"tonhub",name:"Tonhub",image:"https://tonhub.com/tonconnect_logo.png",about_url:"https://tonhub.com",universal_url:"https://tonhub.com/ton-connect",bridge:[{type:"js",key:"tonhub"},{type:"sse",url:"https://connect.tonhubapi.com/tonconnect"}],platforms:["ios","android"]},{app_name:"dewallet",name:"DeWallet",image:"https://app.delabwallet.com/logo_black.png",about_url:"https://delabwallet.com",bridge:[{type:"js",key:"dewallet"}],platforms:["chrome"]},{app_name:"xtonwallet",name:"XTONWallet",image:"https://xtonwallet.com/assets/img/icon-256-back.png",about_url:"https://xtonwallet.com",bridge:[{type:"js",key:"xtonwallet"}],platforms:["chrome","firefox"]},{app_name:"tonwallet",name:"TON Wallet",image:"https://wallet.ton.org/assets/ui/qr-logo.png",about_url:"https://chrome.google.com/webstore/detail/ton-wallet/nphplpgoakhhjchkkhmiggakijnkhfnd",bridge:[{type:"js",key:"tonwallet"}],platforms:["chrome"]}];class WalletsListManager{constructor(_){this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null,this.walletsListSource="https://raw.githubusercontent.com/ton-blockchain/wallets-list/main/wallets-v2.json",_!=null&&_.walletsListSource&&(this.walletsListSource=_.walletsListSource),_!=null&&_.cacheTTLMs&&(this.cacheTTLMs=_.cacheTTLMs)}getWallets(){return __awaiter(this,void 0,void 0,function*(){return this.cacheTTLMs&&this.walletsListCacheCreationTimestamp&&Date.now()>this.walletsListCacheCreationTimestamp+this.cacheTTLMs&&(this.walletsListCache=null),this.walletsListCache||(this.walletsListCache=this.fetchWalletsList(),this.walletsListCache.then(()=>{this.walletsListCacheCreationTimestamp=Date.now()}).catch(()=>{this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null})),this.walletsListCache})}getEmbeddedWallet(){return __awaiter(this,void 0,void 0,function*(){const d=(yield this.getWallets()).filter(isWalletInfoCurrentlyEmbedded);return d.length!==1?null:d[0]})}fetchWalletsList(){return __awaiter(this,void 0,void 0,function*(){let _=[];try{if(_=yield(yield fetch(this.walletsListSource)).json(),!Array.isArray(_))throw new FetchWalletsError("Wrong wallets list format, wallets list must be an array.");const j=_.filter($=>!this.isCorrectWalletConfigDTO($));j.length&&(logError$1(`Wallet(s) ${j.map($=>$.name).join(", ")} config format is wrong. They were removed from the wallets list.`),_=_.filter($=>this.isCorrectWalletConfigDTO($)))}catch(k){logError$1(k),_=FALLBACK_WALLETS_LIST}let d=[];try{d=InjectedProvider.getCurrentlyInjectedWallets()}catch(k){logError$1(k)}return this.mergeWalletsLists(this.walletConfigDTOListToWalletConfigList(_),d)})}walletConfigDTOListToWalletConfigList(_){return _.map(d=>{const j={name:d.name,appName:d.app_name,imageUrl:d.image,aboutUrl:d.about_url,tondns:d.tondns,platforms:d.platforms};return d.bridge.forEach($=>{if($.type==="sse"&&(j.bridgeUrl=$.url,j.universalLink=d.universal_url,j.deepLink=d.deepLink),$.type==="js"){const et=$.key;j.jsBridgeKey=et,j.injected=InjectedProvider.isWalletInjected(et),j.embedded=InjectedProvider.isInsideWalletBrowser(et)}}),j})}mergeWalletsLists(_,d){return[...new Set(_.concat(d).map(j=>j.name)).values()].map(j=>{const $=_.find(tt=>tt.name===j),et=d.find(tt=>tt.name===j);return Object.assign(Object.assign({},$&&Object.assign({},$)),et&&Object.assign({},et))})}isCorrectWalletConfigDTO(_){if(!_||typeof _!="object")return!1;const d="name"in _,k="app_name"in _,j="image"in _,$="about_url"in _,et="platforms"in _;if(!d||!j||!$||!et||!k||!_.platforms||!Array.isArray(_.platforms)||!_.platforms.length||!("bridge"in _)||!Array.isArray(_.bridge)||!_.bridge.length)return!1;const tt=_.bridge;if(tt.some(ot=>!ot||typeof ot!="object"||!("type"in ot)))return!1;const rt=tt.find(ot=>ot.type==="sse");if(rt&&(!("url"in rt)||!rt.url||!_.universal_url))return!1;const nt=tt.find(ot=>ot.type==="js");return!(nt&&(!("key"in nt)||!nt.key))}}class WalletNotSupportFeatureError extends TonConnectError{get info(){return"Wallet doesn't support requested feature method."}constructor(..._){super(..._),Object.setPrototypeOf(this,WalletNotSupportFeatureError.prototype)}}function checkSendTransactionSupport(b,_){const d=b.includes("SendTransaction"),k=b.find(j=>j&&typeof j=="object"&&j.name==="SendTransaction");if(!d&&!k)throw new WalletNotSupportFeatureError("Wallet doesn't support SendTransaction feature.");if(k&&k.maxMessages!==void 0){if(k.maxMessages<_.requiredMessagesNumber)throw new WalletNotSupportFeatureError(`Wallet is not able to handle such SendTransaction request. Max support messages number is ${k.maxMessages}, but ${_.requiredMessagesNumber} is required.`);return}logWarning$1("Connected wallet didn't provide information about max allowed messages in the SendTransaction request. Request may be rejected by the wallet.")}function createRequestVersionEvent(){return{type:"request-version"}}function createResponseVersionEvent(b){return{type:"response-version",version:b}}function createVersionInfo(b){return{ton_connect_sdk_lib:b.ton_connect_sdk_lib,ton_connect_ui_lib:b.ton_connect_ui_lib}}function createConnectionInfo(b,_){var d,k,j,$,et,tt,rt,nt;const at=((d=_==null?void 0:_.connectItems)===null||d===void 0?void 0:d.tonProof)&&"proof"in _.connectItems.tonProof?"ton_proof":"ton_addr";return{wallet_address:(j=(k=_==null?void 0:_.account)===null||k===void 0?void 0:k.address)!==null&&j!==void 0?j:null,wallet_type:($=_==null?void 0:_.device.appName)!==null&&$!==void 0?$:null,wallet_version:(et=_==null?void 0:_.device.appVersion)!==null&&et!==void 0?et:null,auth_type:at,custom_data:Object.assign({chain_id:(rt=(tt=_==null?void 0:_.account)===null||tt===void 0?void 0:tt.chain)!==null&&rt!==void 0?rt:null,provider:(nt=_==null?void 0:_.provider)!==null&&nt!==void 0?nt:null},createVersionInfo(b))}}function createConnectionStartedEvent(b){return{type:"connection-started",custom_data:createVersionInfo(b)}}function createConnectionCompletedEvent(b,_){return Object.assign({type:"connection-completed",is_success:!0},createConnectionInfo(b,_))}function createConnectionErrorEvent(b,_,d){return{type:"connection-error",is_success:!1,error_message:_,error_code:d??null,custom_data:createVersionInfo(b)}}function createConnectionRestoringStartedEvent(b){return{type:"connection-restoring-started",custom_data:createVersionInfo(b)}}function createConnectionRestoringCompletedEvent(b,_){return Object.assign({type:"connection-restoring-completed",is_success:!0},createConnectionInfo(b,_))}function createConnectionRestoringErrorEvent(b,_){return{type:"connection-restoring-error",is_success:!1,error_message:_,custom_data:createVersionInfo(b)}}function createTransactionInfo(b,_){var d,k,j,$;return{valid_until:(d=String(_.validUntil))!==null&&d!==void 0?d:null,from:($=(k=_.from)!==null&&k!==void 0?k:(j=b==null?void 0:b.account)===null||j===void 0?void 0:j.address)!==null&&$!==void 0?$:null,messages:_.messages.map(et=>{var tt,rt;return{address:(tt=et.address)!==null&&tt!==void 0?tt:null,amount:(rt=et.amount)!==null&&rt!==void 0?rt:null}})}}function createTransactionSentForSignatureEvent(b,_,d){return Object.assign(Object.assign({type:"transaction-sent-for-signature"},createConnectionInfo(b,_)),createTransactionInfo(_,d))}function createTransactionSignedEvent(b,_,d,k){return Object.assign(Object.assign({type:"transaction-signed",is_success:!0,signed_transaction:k.boc},createConnectionInfo(b,_)),createTransactionInfo(_,d))}function createTransactionSigningFailedEvent(b,_,d,k,j){return Object.assign(Object.assign({type:"transaction-signing-failed",is_success:!1,error_message:k,error_code:j??null},createConnectionInfo(b,_)),createTransactionInfo(_,d))}function createDisconnectionEvent(b,_,d){return Object.assign({type:"disconnection",scope:d},createConnectionInfo(b,_))}class BrowserEventDispatcher{constructor(){this.window=getWindow$2()}dispatchEvent(_,d){var k;return __awaiter(this,void 0,void 0,function*(){const j=new CustomEvent(_,{detail:d});(k=this.window)===null||k===void 0||k.dispatchEvent(j)})}addEventListener(_,d,k){var j;return __awaiter(this,void 0,void 0,function*(){return(j=this.window)===null||j===void 0||j.addEventListener(_,d,k),()=>{var $;return($=this.window)===null||$===void 0?void 0:$.removeEventListener(_,d)}})}}class TonConnectTracker{constructor(_){var d;this.eventPrefix="ton-connect-",this.tonConnectUiVersion=null,this.eventDispatcher=(d=_==null?void 0:_.eventDispatcher)!==null&&d!==void 0?d:new BrowserEventDispatcher,this.tonConnectSdkVersion=_.tonConnectSdkVersion,this.init().catch()}get version(){return createVersionInfo({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return __awaiter(this,void 0,void 0,function*(){try{yield this.setRequestVersionHandler(),this.tonConnectUiVersion=yield this.requestTonConnectUiVersion()}catch{}})}setRequestVersionHandler(){return __awaiter(this,void 0,void 0,function*(){yield this.eventDispatcher.addEventListener("ton-connect-request-version",()=>__awaiter(this,void 0,void 0,function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-response-version",createResponseVersionEvent(this.tonConnectSdkVersion))}))})}requestTonConnectUiVersion(){return __awaiter(this,void 0,void 0,function*(){return new Promise((_,d)=>__awaiter(this,void 0,void 0,function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-ui-response-version",k=>{_(k.detail.version)},{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-ui-request-version",createRequestVersionEvent())}catch(k){d(k)}}))})}dispatchUserActionEvent(_){try{this.eventDispatcher.dispatchEvent(`${this.eventPrefix}${_.type}`,_).catch()}catch{}}trackConnectionStarted(..._){try{const d=createConnectionStartedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionCompleted(..._){try{const d=createConnectionCompletedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionError(..._){try{const d=createConnectionErrorEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionRestoringStarted(..._){try{const d=createConnectionRestoringStartedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionRestoringCompleted(..._){try{const d=createConnectionRestoringCompletedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionRestoringError(..._){try{const d=createConnectionRestoringErrorEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackDisconnection(..._){try{const d=createDisconnectionEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackTransactionSentForSignature(..._){try{const d=createTransactionSentForSignatureEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackTransactionSigned(..._){try{const d=createTransactionSignedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackTransactionSigningFailed(..._){try{const d=createTransactionSigningFailedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}}const tonConnectSdkVersion="3.0.3";class TonConnect{constructor(_){if(this.walletsList=new WalletsListManager,this._wallet=null,this.provider=null,this.statusChangeSubscriptions=[],this.statusChangeErrorSubscriptions=[],this.dappSettings={manifestUrl:(_==null?void 0:_.manifestUrl)||getWebPageManifest(),storage:(_==null?void 0:_.storage)||new DefaultStorage},this.walletsList=new WalletsListManager({walletsListSource:_==null?void 0:_.walletsListSource,cacheTTLMs:_==null?void 0:_.walletsListCacheTTLMs}),this.tracker=new TonConnectTracker({eventDispatcher:_==null?void 0:_.eventDispatcher,tonConnectSdkVersion}),!this.dappSettings.manifestUrl)throw new DappMetadataError("Dapp tonconnect-manifest.json must be specified if window.location.origin is undefined. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest");this.bridgeConnectionStorage=new BridgeConnectionStorage(this.dappSettings.storage),_!=null&&_.disableAutoPauseConnection||this.addWindowFocusAndBlurSubscriptions()}static getWallets(){return this.walletsList.getWallets()}get connected(){return this._wallet!==null}get account(){var _;return((_=this._wallet)===null||_===void 0?void 0:_.account)||null}get wallet(){return this._wallet}set wallet(_){this._wallet=_,this.statusChangeSubscriptions.forEach(d=>d(this._wallet))}getWallets(){return this.walletsList.getWallets()}onStatusChange(_,d){return this.statusChangeSubscriptions.push(_),d&&this.statusChangeErrorSubscriptions.push(d),()=>{this.statusChangeSubscriptions=this.statusChangeSubscriptions.filter(k=>k!==_),d&&(this.statusChangeErrorSubscriptions=this.statusChangeErrorSubscriptions.filter(k=>k!==d))}}connect(_,d){var k,j;const $={};if(typeof d=="object"&&"tonProof"in d&&($.request=d),typeof d=="object"&&("openingDeadlineMS"in d||"signal"in d||"request"in d)&&($.request=d==null?void 0:d.request,$.openingDeadlineMS=d==null?void 0:d.openingDeadlineMS,$.signal=d==null?void 0:d.signal),this.connected)throw new WalletAlreadyConnectedError;const et=createAbortController($==null?void 0:$.signal);if((k=this.abortController)===null||k===void 0||k.abort(),this.abortController=et,et.signal.aborted)throw new TonConnectError("Connection was aborted");return(j=this.provider)===null||j===void 0||j.closeConnection(),this.provider=this.createProvider(_),et.signal.addEventListener("abort",()=>{var tt;(tt=this.provider)===null||tt===void 0||tt.closeConnection(),this.provider=null}),this.tracker.trackConnectionStarted(),this.provider.connect(this.createConnectRequest($==null?void 0:$.request),{openingDeadlineMS:$==null?void 0:$.openingDeadlineMS,signal:et.signal})}restoreConnection(_){var d,k;return __awaiter(this,void 0,void 0,function*(){this.tracker.trackConnectionRestoringStarted();const j=createAbortController(_==null?void 0:_.signal);if((d=this.abortController)===null||d===void 0||d.abort(),this.abortController=j,j.signal.aborted){this.tracker.trackConnectionRestoringError("Connection restoring was aborted");return}const[$,et]=yield Promise.all([this.bridgeConnectionStorage.storedConnectionType(),this.walletsList.getEmbeddedWallet()]);if(j.signal.aborted){this.tracker.trackConnectionRestoringError("Connection restoring was aborted");return}let tt=null;try{switch($){case"http":tt=yield BridgeProvider.fromStorage(this.dappSettings.storage);break;case"injected":tt=yield InjectedProvider.fromStorage(this.dappSettings.storage);break;default:if(et)tt=this.createProvider(et);else return}}catch{this.tracker.trackConnectionRestoringError("Provider is not restored"),yield this.bridgeConnectionStorage.removeConnection(),tt==null||tt.closeConnection(),tt=null;return}if(j.signal.aborted){tt==null||tt.closeConnection(),this.tracker.trackConnectionRestoringError("Connection restoring was aborted");return}if(!tt){logError$1("Provider is not restored"),this.tracker.trackConnectionRestoringError("Provider is not restored");return}(k=this.provider)===null||k===void 0||k.closeConnection(),this.provider=tt,tt.listen(this.walletEventsListener.bind(this));const rt=()=>{this.tracker.trackConnectionRestoringError("Connection restoring was aborted"),tt==null||tt.closeConnection(),tt=null};return j.signal.addEventListener("abort",rt),yield callForSuccess(nt=>__awaiter(this,void 0,void 0,function*(){yield tt==null?void 0:tt.restoreConnection({openingDeadlineMS:_==null?void 0:_.openingDeadlineMS,signal:nt.signal}),j.signal.removeEventListener("abort",rt),this.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):this.tracker.trackConnectionRestoringError("Connection restoring failed")}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:5e3,signal:_==null?void 0:_.signal})})}sendTransaction(_,d){return __awaiter(this,void 0,void 0,function*(){const k={};typeof d=="function"?k.onRequestSent=d:(k.onRequestSent=d==null?void 0:d.onRequestSent,k.signal=d==null?void 0:d.signal);const j=createAbortController(k==null?void 0:k.signal);if(j.signal.aborted)throw new TonConnectError("Transaction sending was aborted");this.checkConnection(),checkSendTransactionSupport(this.wallet.device.features,{requiredMessagesNumber:_.messages.length}),this.tracker.trackTransactionSentForSignature(this.wallet,_);const{validUntil:$}=_,et=__rest(_,["validUntil"]),tt=_.from||this.account.address,rt=_.network||this.account.chain,nt=yield this.provider.sendRequest(sendTransactionParser.convertToRpcRequest(Object.assign(Object.assign({},et),{valid_until:$,from:tt,network:rt})),{onRequestSent:k.onRequestSent,signal:j.signal});if(sendTransactionParser.isError(nt))return this.tracker.trackTransactionSigningFailed(this.wallet,_,nt.error.message,nt.error.code),sendTransactionParser.parseAndThrowError(nt);const ot=sendTransactionParser.convertFromRpcResponse(nt);return this.tracker.trackTransactionSigned(this.wallet,_,ot),ot})}disconnect(_){var d;return __awaiter(this,void 0,void 0,function*(){if(!this.connected)throw new WalletNotConnectedError;const k=createAbortController(_==null?void 0:_.signal),j=this.abortController;if(this.abortController=k,k.signal.aborted)throw new TonConnectError("Disconnect was aborted");this.onWalletDisconnected("dapp"),yield(d=this.provider)===null||d===void 0?void 0:d.disconnect({signal:k.signal}),j==null||j.abort()})}pauseConnection(){var _;((_=this.provider)===null||_===void 0?void 0:_.type)==="http"&&this.provider.pause()}unPauseConnection(){var _;return((_=this.provider)===null||_===void 0?void 0:_.type)!=="http"?Promise.resolve():this.provider.unPause()}addWindowFocusAndBlurSubscriptions(){const _=getDocument();if(_)try{_.addEventListener("visibilitychange",()=>{_.hidden?this.pauseConnection():this.unPauseConnection().catch()})}catch(d){logError$1("Cannot subscribe to the document.visibilitychange: ",d)}}createProvider(_){let d;return!Array.isArray(_)&&isWalletConnectionSourceJS(_)?d=new InjectedProvider(this.dappSettings.storage,_.jsBridgeKey):d=new BridgeProvider(this.dappSettings.storage,_),d.listen(this.walletEventsListener.bind(this)),d}walletEventsListener(_){switch(_.event){case"connect":this.onWalletConnected(_.payload);break;case"connect_error":this.onWalletConnectError(_.payload);break;case"disconnect":this.onWalletDisconnected("wallet")}}onWalletConnected(_){const d=_.items.find($=>$.name==="ton_addr"),k=_.items.find($=>$.name==="ton_proof");if(!d)throw new TonConnectError("ton_addr connection item was not found");const j={device:_.device,provider:this.provider.type,account:{address:d.address,chain:d.network,walletStateInit:d.walletStateInit,publicKey:d.publicKey}};k&&(j.connectItems={tonProof:k}),this.wallet=j,this.tracker.trackConnectionCompleted(j)}onWalletConnectError(_){const d=connectErrorsParser.parseError(_);if(this.statusChangeErrorSubscriptions.forEach(k=>k(d)),logDebug$1(d),this.tracker.trackConnectionError(_.message,_.code),d instanceof ManifestNotFoundError||d instanceof ManifestContentErrorError)throw logError$1(d),d}onWalletDisconnected(_){this.tracker.trackDisconnection(this.wallet,_),this.wallet=null}checkConnection(){if(!this.connected)throw new WalletNotConnectedError}createConnectRequest(_){const d=[{name:"ton_addr"}];return _!=null&&_.tonProof&&d.push({name:"ton_proof",payload:_.tonProof}),{manifestUrl:this.dappSettings.manifestUrl,items:d}}}TonConnect.walletsList=new WalletsListManager;TonConnect.isWalletInjected=b=>InjectedProvider.isWalletInjected(b);TonConnect.isInsideWalletBrowser=b=>InjectedProvider.isInsideWalletBrowser(b);const noBounceableTag=81,testOnlyTag=128;function toUserFriendlyAddress(b,_=!1){const{wc:d,hex:k}=parseHexAddress(b);let j=noBounceableTag;_&&(j|=testOnlyTag);const $=new Int8Array(34);$[0]=j,$[1]=d,$.set(k,2);const et=new Uint8Array(36);return et.set($),et.set(crc16($),34),Base64.encode(et).replace(/\+/g,"-").replace(/\//g,"_")}function parseHexAddress(b){if(!b.includes(":"))throw new WrongAddressError(`Wrong address ${b}. Address must include ":".`);const _=b.split(":");if(_.length!==2)throw new WrongAddressError(`Wrong address ${b}. Address must include ":" only once.`);const d=parseInt(_[0]);if(d!==0&&d!==-1)throw new WrongAddressError(`Wrong address ${b}. WC must be eq 0 or -1, but ${d} received.`);const k=_[1];if((k==null?void 0:k.length)!==64)throw new WrongAddressError(`Wrong address ${b}. Hex part must be 64bytes length, but ${k==null?void 0:k.length} received.`);return{wc:d,hex:hexToBytes(k)}}function crc16(b){let d=0;const k=new Uint8Array(b.length+2);k.set(b);for(let j of k){let $=128;for(;$>0;)d<<=1,j&$&&(d+=1),$>>=1,d>65535&&(d&=65535,d^=4129)}return new Uint8Array([Math.floor(d/256),d%256])}const toByteMap={};for(let b=0;b<=255;b++){let _=b.toString(16);_.length<2&&(_="0"+_),toByteMap[_]=b}function hexToBytes(b){b=b.toLowerCase();const _=b.length;if(_%2!==0)throw new ParseHexError("Hex string must have length a multiple of 2: "+b);const d=_/2,k=new Uint8Array(d);for(let j=0;j0?fr.length===2?typeof fr[1]==tt?this[fr[0]]=fr[1].call(this,vr):this[fr[0]]=fr[1]:fr.length===3?typeof fr[1]===tt&&!(fr[1].exec&&fr[1].test)?this[fr[0]]=vr?fr[1].call(this,vr,fr[2]):k:this[fr[0]]=vr?vr.replace(fr[1],fr[2]):k:fr.length===4&&(this[fr[0]]=vr?fr[3].call(this,vr.replace(fr[1],fr[2])):k):this[fr]=vr||k;qt+=2}},Ln=function(pn,Vt){for(var qt in Vt)if(typeof Vt[qt]===nt&&Vt[qt].length>0){for(var wn=0;wn2&&(Zn[it]="iPad",Zn[ut]=lt),Zn},this.getEngine=function(){var Zn={};return Zn[dt]=k,Zn[ft]=k,In.call(Zn,wn,lr.engine),Zn},this.getOS=function(){var Zn={};return Zn[dt]=k,Zn[ft]=k,In.call(Zn,wn,lr.os),fr&&!Zn[dt]&&Pn&&Pn.platform&&Pn.platform!="Unknown"&&(Zn[dt]=Pn.platform.replace(/chrome os/i,xn).replace(/macos/i,fn)),Zn},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return wn},this.setUA=function(Zn){return wn=typeof Zn===ot&&Zn.length>St?Tn(Zn,St):Zn,this},this.setUA(wn),this};Bn.VERSION=j,Bn.BROWSER=bn([dt,ft,at]),Bn.CPU=bn([st]),Bn.DEVICE=bn([it,ht,ut,ct,pt,wt,lt,yt,vt]),Bn.ENGINE=Bn.OS=bn([dt,ft]),b.exports&&(_=b.exports=Bn),_.UAParser=Bn;var Nn=typeof d!==rt&&(d.jQuery||d.Zepto);if(Nn&&!Nn.ua){var Un=new Bn;Nn.ua=Un.getResult(),Nn.ua.get=function(){return Un.getUA()},Nn.ua.set=function(pn){Un.setUA(pn);var Vt=Un.getResult();for(var qt in Vt)Nn.ua[qt]=Vt[qt]}}})(typeof window=="object"?window:commonjsGlobal)})(uaParser,uaParser.exports);var uaParserExports=uaParser.exports;const UAParser=getDefaultExportFromCjs(uaParserExports);var isMergeableObject=function(_){return isNonNullObject(_)&&!isSpecial(_)};function isNonNullObject(b){return!!b&&typeof b=="object"}function isSpecial(b){var _=Object.prototype.toString.call(b);return _==="[object RegExp]"||_==="[object Date]"||isReactElement(b)}var canUseSymbol=typeof Symbol=="function"&&Symbol.for,REACT_ELEMENT_TYPE=canUseSymbol?Symbol.for("react.element"):60103;function isReactElement(b){return b.$$typeof===REACT_ELEMENT_TYPE}function emptyTarget(b){return Array.isArray(b)?[]:{}}function cloneUnlessOtherwiseSpecified(b,_){return _.clone!==!1&&_.isMergeableObject(b)?deepmerge(emptyTarget(b),b,_):b}function defaultArrayMerge(b,_,d){return b.concat(_).map(function(k){return cloneUnlessOtherwiseSpecified(k,d)})}function getMergeFunction(b,_){if(!_.customMerge)return deepmerge;var d=_.customMerge(b);return typeof d=="function"?d:deepmerge}function getEnumerableOwnPropertySymbols(b){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(b).filter(function(_){return Object.propertyIsEnumerable.call(b,_)}):[]}function getKeys(b){return Object.keys(b).concat(getEnumerableOwnPropertySymbols(b))}function propertyIsOnObject(b,_){try{return _ in b}catch{return!1}}function propertyIsUnsafe(b,_){return propertyIsOnObject(b,_)&&!(Object.hasOwnProperty.call(b,_)&&Object.propertyIsEnumerable.call(b,_))}function mergeObject(b,_,d){var k={};return d.isMergeableObject(b)&&getKeys(b).forEach(function(j){k[j]=cloneUnlessOtherwiseSpecified(b[j],d)}),getKeys(_).forEach(function(j){propertyIsUnsafe(b,j)||(propertyIsOnObject(b,j)&&d.isMergeableObject(_[j])?k[j]=getMergeFunction(j,d)(b[j],_[j],d):k[j]=cloneUnlessOtherwiseSpecified(_[j],d))}),k}function deepmerge(b,_,d){d=d||{},d.arrayMerge=d.arrayMerge||defaultArrayMerge,d.isMergeableObject=d.isMergeableObject||isMergeableObject,d.cloneUnlessOtherwiseSpecified=cloneUnlessOtherwiseSpecified;var k=Array.isArray(_),j=Array.isArray(b),$=k===j;return $?k?d.arrayMerge(b,_,d):mergeObject(b,_,d):cloneUnlessOtherwiseSpecified(_,d)}deepmerge.all=function(_,d){if(!Array.isArray(_))throw new Error("first argument should be an array");return _.reduce(function(k,j){return deepmerge(k,j,d)},{})};var deepmerge_1=deepmerge,cjs=deepmerge_1;const deepmerge$1=getDefaultExportFromCjs(cjs);var classnames={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames @@ -372,7 +372,7 @@ PERFORMANCE OF THIS SOFTWARE. filter: drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.08)); background-color: ${b=>b.theme.colors.background.segment}; -`;var qrcode$1={exports:{}};(function(b,_){var d=function(){var k=function(wt,yt){var vt=236,St=17,xt=wt,bt=$[yt],At=null,_t=0,Ct=null,Mt=[],jt={},Rt=function(rn,xn){_t=xt*4+17,At=function(fn){for(var Sn=new Array(fn),bn=0;bn=7&&Zt(rn),Ct==null&&(Ct=yn(xt,bt,Mt)),An(Ct,xn)},zt=function(rn,xn){for(var fn=-1;fn<=7;fn+=1)if(!(rn+fn<=-1||_t<=rn+fn))for(var Sn=-1;Sn<=7;Sn+=1)xn+Sn<=-1||_t<=xn+Sn||(0<=fn&&fn<=6&&(Sn==0||Sn==6)||0<=Sn&&Sn<=6&&(fn==0||fn==6)||2<=fn&&fn<=4&&2<=Sn&&Sn<=4?At[rn+fn][xn+Sn]=!0:At[rn+fn][xn+Sn]=!1)},Xt=function(){for(var rn=0,xn=0,fn=0;fn<8;fn+=1){Rt(!0,fn);var Sn=tt.getLostPoint(jt);(fn==0||rn>Sn)&&(rn=Sn,xn=fn)}return xn},Jt=function(){for(var rn=8;rn<_t-8;rn+=1)At[rn][6]==null&&(At[rn][6]=rn%2==0);for(var xn=8;xn<_t-8;xn+=1)At[6][xn]==null&&(At[6][xn]=xn%2==0)},Kt=function(){for(var rn=tt.getPatternPosition(xt),xn=0;xn>fn&1)==1;At[Math.floor(fn/3)][fn%3+_t-8-3]=Sn}for(var fn=0;fn<18;fn+=1){var Sn=!rn&&(xn>>fn&1)==1;At[fn%3+_t-8-3][Math.floor(fn/3)]=Sn}},dn=function(rn,xn){for(var fn=bt<<3|xn,Sn=tt.getBCHTypeInfo(fn),bn=0;bn<15;bn+=1){var hn=!rn&&(Sn>>bn&1)==1;bn<6?At[bn][8]=hn:bn<8?At[bn+1][8]=hn:At[_t-15+bn][8]=hn}for(var bn=0;bn<15;bn+=1){var hn=!rn&&(Sn>>bn&1)==1;bn<8?At[8][_t-bn-1]=hn:bn<9?At[8][15-bn-1+1]=hn:At[8][15-bn-1]=hn}At[_t-8][8]=!rn},An=function(rn,xn){for(var fn=-1,Sn=_t-1,bn=7,hn=0,_n=tt.getMaskFunction(xn),ln=_t-1;ln>0;ln-=2)for(ln==6&&(ln-=1);;){for(var Tn=0;Tn<2;Tn+=1)if(At[Sn][ln-Tn]==null){var In=!1;hn>>bn&1)==1);var Ln=_n(Sn,ln-Tn);Ln&&(In=!In),At[Sn][ln-Tn]=In,bn-=1,bn==-1&&(hn+=1,bn=7)}if(Sn+=fn,Sn<0||_t<=Sn){Sn-=fn,fn=-fn;break}}},En=function(rn,xn){for(var fn=0,Sn=0,bn=0,hn=new Array(xn.length),_n=new Array(xn.length),ln=0;ln=0?vn.getAt(Bn):0}}for(var Pn=0,Ln=0;Lnln*8)throw"code length overflow. ("+bn.getLengthInBits()+">"+ln*8+")";for(bn.getLengthInBits()+4<=ln*8&&bn.put(0,4);bn.getLengthInBits()%8!=0;)bn.putBit(!1);for(;!(bn.getLengthInBits()>=ln*8||(bn.put(vt,8),bn.getLengthInBits()>=ln*8));)bn.put(St,8);return En(bn,Sn)};jt.addData=function(rn,xn){xn=xn||"Byte";var fn=null;switch(xn){case"Numeric":fn=it(rn);break;case"Alphanumeric":fn=dt(rn);break;case"Byte":fn=ut(rn);break;case"Kanji":fn=ht(rn);break;default:throw"mode:"+xn}Mt.push(fn),Ct=null},jt.isDark=function(rn,xn){if(rn<0||_t<=rn||xn<0||_t<=xn)throw rn+","+xn;return At[rn][xn]},jt.getModuleCount=function(){return _t},jt.make=function(){if(xt<1){for(var rn=1;rn<40;rn++){for(var xn=ot.getRSBlocks(rn,bt),fn=at(),Sn=0;Sn"u"?rn*4:xn;var fn="";fn+='";for(var bn=0;bn';fn+=""}return fn+="",fn+="
",fn},jt.createSvgTag=function(rn,xn,fn,Sn){var bn={};typeof arguments[0]=="object"&&(bn=arguments[0],rn=bn.cellSize,xn=bn.margin,fn=bn.alt,Sn=bn.title),rn=rn||2,xn=typeof xn>"u"?rn*4:xn,fn=typeof fn=="string"?{text:fn}:fn||{},fn.text=fn.text||null,fn.id=fn.text?fn.id||"qrcode-description":null,Sn=typeof Sn=="string"?{text:Sn}:Sn||{},Sn.text=Sn.text||null,Sn.id=Sn.text?Sn.id||"qrcode-title":null;var hn=jt.getModuleCount()*rn+xn*2,_n,ln,Tn,In,Ln="",kn;for(kn="l"+rn+",0 0,"+rn+" -"+rn+",0 0,-"+rn+"z ",Ln+=''+jn(Sn.text)+"":"",Ln+=fn.text?''+jn(fn.text)+"":"",Ln+='',Ln+='"u"?rn*4:xn;var fn=jt.getModuleCount()*rn+xn*2,Sn=xn,bn=fn-xn;return lt(fn,fn,function(hn,_n){if(Sn<=hn&&hn"u"?rn*4:xn;var Sn=jt.getModuleCount()*rn+xn*2,bn="";return bn+="",bn};var jn=function(rn){for(var xn="",fn=0;fn":xn+=">";break;case"&":xn+="&";break;case'"':xn+=""";break;default:xn+=Sn;break}}return xn},Vn=function(rn){var xn=1;rn=typeof rn>"u"?xn*2:rn;var fn=jt.getModuleCount()*xn+rn*2,Sn=rn,bn=fn-rn,hn,_n,ln,Tn,In,Ln={"██":"█","█ ":"▀"," █":"▄"," ":" "},kn={"██":"▀","█ ":"▀"," █":" "," ":" "},Fn="";for(hn=0;hn=bn?kn[In]:Ln[In];Fn+=` +`;var qrcode$1={exports:{}};(function(b,_){var d=function(){var k=function(wt,yt){var vt=236,St=17,xt=wt,bt=$[yt],At=null,_t=0,Ct=null,Mt=[],jt={},Rt=function(rn,xn){_t=xt*4+17,At=function(fn){for(var Sn=new Array(fn),bn=0;bn=7&&Zt(rn),Ct==null&&(Ct=yn(xt,bt,Mt)),An(Ct,xn)},zt=function(rn,xn){for(var fn=-1;fn<=7;fn+=1)if(!(rn+fn<=-1||_t<=rn+fn))for(var Sn=-1;Sn<=7;Sn+=1)xn+Sn<=-1||_t<=xn+Sn||(0<=fn&&fn<=6&&(Sn==0||Sn==6)||0<=Sn&&Sn<=6&&(fn==0||fn==6)||2<=fn&&fn<=4&&2<=Sn&&Sn<=4?At[rn+fn][xn+Sn]=!0:At[rn+fn][xn+Sn]=!1)},Xt=function(){for(var rn=0,xn=0,fn=0;fn<8;fn+=1){Rt(!0,fn);var Sn=tt.getLostPoint(jt);(fn==0||rn>Sn)&&(rn=Sn,xn=fn)}return xn},Jt=function(){for(var rn=8;rn<_t-8;rn+=1)At[rn][6]==null&&(At[rn][6]=rn%2==0);for(var xn=8;xn<_t-8;xn+=1)At[6][xn]==null&&(At[6][xn]=xn%2==0)},Kt=function(){for(var rn=tt.getPatternPosition(xt),xn=0;xn>fn&1)==1;At[Math.floor(fn/3)][fn%3+_t-8-3]=Sn}for(var fn=0;fn<18;fn+=1){var Sn=!rn&&(xn>>fn&1)==1;At[fn%3+_t-8-3][Math.floor(fn/3)]=Sn}},dn=function(rn,xn){for(var fn=bt<<3|xn,Sn=tt.getBCHTypeInfo(fn),bn=0;bn<15;bn+=1){var hn=!rn&&(Sn>>bn&1)==1;bn<6?At[bn][8]=hn:bn<8?At[bn+1][8]=hn:At[_t-15+bn][8]=hn}for(var bn=0;bn<15;bn+=1){var hn=!rn&&(Sn>>bn&1)==1;bn<8?At[8][_t-bn-1]=hn:bn<9?At[8][15-bn-1+1]=hn:At[8][15-bn-1]=hn}At[_t-8][8]=!rn},An=function(rn,xn){for(var fn=-1,Sn=_t-1,bn=7,hn=0,_n=tt.getMaskFunction(xn),ln=_t-1;ln>0;ln-=2)for(ln==6&&(ln-=1);;){for(var Tn=0;Tn<2;Tn+=1)if(At[Sn][ln-Tn]==null){var In=!1;hn>>bn&1)==1);var Ln=_n(Sn,ln-Tn);Ln&&(In=!In),At[Sn][ln-Tn]=In,bn-=1,bn==-1&&(hn+=1,bn=7)}if(Sn+=fn,Sn<0||_t<=Sn){Sn-=fn,fn=-fn;break}}},En=function(rn,xn){for(var fn=0,Sn=0,bn=0,hn=new Array(xn.length),_n=new Array(xn.length),ln=0;ln=0?vn.getAt(Bn):0}}for(var Nn=0,Ln=0;Lnln*8)throw"code length overflow. ("+bn.getLengthInBits()+">"+ln*8+")";for(bn.getLengthInBits()+4<=ln*8&&bn.put(0,4);bn.getLengthInBits()%8!=0;)bn.putBit(!1);for(;!(bn.getLengthInBits()>=ln*8||(bn.put(vt,8),bn.getLengthInBits()>=ln*8));)bn.put(St,8);return En(bn,Sn)};jt.addData=function(rn,xn){xn=xn||"Byte";var fn=null;switch(xn){case"Numeric":fn=it(rn);break;case"Alphanumeric":fn=dt(rn);break;case"Byte":fn=ut(rn);break;case"Kanji":fn=ht(rn);break;default:throw"mode:"+xn}Mt.push(fn),Ct=null},jt.isDark=function(rn,xn){if(rn<0||_t<=rn||xn<0||_t<=xn)throw rn+","+xn;return At[rn][xn]},jt.getModuleCount=function(){return _t},jt.make=function(){if(xt<1){for(var rn=1;rn<40;rn++){for(var xn=ot.getRSBlocks(rn,bt),fn=at(),Sn=0;Sn"u"?rn*4:xn;var fn="";fn+='";for(var bn=0;bn';fn+=""}return fn+="",fn+="
",fn},jt.createSvgTag=function(rn,xn,fn,Sn){var bn={};typeof arguments[0]=="object"&&(bn=arguments[0],rn=bn.cellSize,xn=bn.margin,fn=bn.alt,Sn=bn.title),rn=rn||2,xn=typeof xn>"u"?rn*4:xn,fn=typeof fn=="string"?{text:fn}:fn||{},fn.text=fn.text||null,fn.id=fn.text?fn.id||"qrcode-description":null,Sn=typeof Sn=="string"?{text:Sn}:Sn||{},Sn.text=Sn.text||null,Sn.id=Sn.text?Sn.id||"qrcode-title":null;var hn=jt.getModuleCount()*rn+xn*2,_n,ln,Tn,In,Ln="",kn;for(kn="l"+rn+",0 0,"+rn+" -"+rn+",0 0,-"+rn+"z ",Ln+=''+jn(Sn.text)+"":"",Ln+=fn.text?''+jn(fn.text)+"":"",Ln+='',Ln+='"u"?rn*4:xn;var fn=jt.getModuleCount()*rn+xn*2,Sn=xn,bn=fn-xn;return lt(fn,fn,function(hn,_n){if(Sn<=hn&&hn"u"?rn*4:xn;var Sn=jt.getModuleCount()*rn+xn*2,bn="";return bn+="",bn};var jn=function(rn){for(var xn="",fn=0;fn":xn+=">";break;case"&":xn+="&";break;case'"':xn+=""";break;default:xn+=Sn;break}}return xn},Vn=function(rn){var xn=1;rn=typeof rn>"u"?xn*2:rn;var fn=jt.getModuleCount()*xn+rn*2,Sn=rn,bn=fn-rn,hn,_n,ln,Tn,In,Ln={"██":"█","█ ":"▀"," █":"▄"," ":" "},kn={"██":"▀","█ ":"▀"," █":" "," ":" "},Fn="";for(hn=0;hn=bn?kn[In]:Ln[In];Fn+=` `}return fn%2&&rn>0?Fn.substring(0,Fn.length-fn-1)+Array(fn+1).join("▀"):Fn.substring(0,Fn.length-1)};return jt.createASCII=function(rn,xn){if(rn=rn||1,rn<2)return Vn(xn);rn-=1,xn=typeof xn>"u"?rn*2:xn;var fn=jt.getModuleCount()*rn+xn*2,Sn=xn,bn=fn-xn,hn,_n,ln,Tn,In=Array(rn+1).join("██"),Ln=Array(rn+1).join(" "),kn="",Fn="";for(hn=0;hn>>8),bt.push(Ct&255)):bt.push(St)}}return bt}};var j={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},$={L:1,M:0,Q:3,H:2},et={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},tt=function(){var wt=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],yt=1335,vt=7973,St=21522,xt={},bt=function(At){for(var _t=0;At!=0;)_t+=1,At>>>=1;return _t};return xt.getBCHTypeInfo=function(At){for(var _t=At<<10;bt(_t)-bt(yt)>=0;)_t^=yt<=0;)_t^=vt<5&&(Ct+=3+Rt-5)}for(var Mt=0;Mt<_t-1;Mt+=1)for(var jt=0;jt<_t-1;jt+=1){var Kt=0;At.isDark(Mt,jt)&&(Kt+=1),At.isDark(Mt+1,jt)&&(Kt+=1),At.isDark(Mt,jt+1)&&(Kt+=1),At.isDark(Mt+1,jt+1)&&(Kt+=1),(Kt==0||Kt==4)&&(Ct+=3)}for(var Mt=0;Mt<_t;Mt+=1)for(var jt=0;jt<_t-6;jt+=1)At.isDark(Mt,jt)&&!At.isDark(Mt,jt+1)&&At.isDark(Mt,jt+2)&&At.isDark(Mt,jt+3)&&At.isDark(Mt,jt+4)&&!At.isDark(Mt,jt+5)&&At.isDark(Mt,jt+6)&&(Ct+=40);for(var jt=0;jt<_t;jt+=1)for(var Mt=0;Mt<_t-6;Mt+=1)At.isDark(Mt,jt)&&!At.isDark(Mt+1,jt)&&At.isDark(Mt+2,jt)&&At.isDark(Mt+3,jt)&&At.isDark(Mt+4,jt)&&!At.isDark(Mt+5,jt)&&At.isDark(Mt+6,jt)&&(Ct+=40);for(var Zt=0,jt=0;jt<_t;jt+=1)for(var Mt=0;Mt<_t;Mt+=1)At.isDark(Mt,jt)&&(Zt+=1);var dn=Math.abs(100*Zt/_t/_t-50)/5;return Ct+=dn*10,Ct},xt}(),rt=function(){for(var wt=new Array(256),yt=new Array(256),vt=0;vt<8;vt+=1)wt[vt]=1<=256;)xt-=255;return wt[xt]},St}();function nt(wt,yt){if(typeof wt.length>"u")throw wt.length+"/"+yt;var vt=function(){for(var xt=0;xt"u")throw"bad rs block @ typeNumber:"+xt+"/errorCorrectionLevel:"+bt;for(var _t=At.length/3,Ct=[],Mt=0;Mt<_t;Mt+=1)for(var jt=At[Mt*3+0],Rt=At[Mt*3+1],zt=At[Mt*3+2],Xt=0;Xt>>7-St%8&1)==1},vt.put=function(St,xt){for(var bt=0;bt>>xt-bt-1&1)==1)},vt.getLengthInBits=function(){return yt},vt.putBit=function(St){var xt=Math.floor(yt/8);wt.length<=xt&&wt.push(0),St&&(wt[xt]|=128>>>yt%8),yt+=1},vt},it=function(wt){var yt=j.MODE_NUMBER,vt=wt,St={};St.getMode=function(){return yt},St.getLength=function(At){return vt.length},St.write=function(At){for(var _t=vt,Ct=0;Ct+2<_t.length;)At.put(xt(_t.substring(Ct,Ct+3)),10),Ct+=3;Ct<_t.length&&(_t.length-Ct==1?At.put(xt(_t.substring(Ct,Ct+1)),4):_t.length-Ct==2&&At.put(xt(_t.substring(Ct,Ct+2)),7))};var xt=function(At){for(var _t=0,Ct=0;Ct>>8&255)*192+(Ct&255),bt.put(Ct,13),_t+=2}if(_t>>8)},yt.writeBytes=function(vt,St,xt){St=St||0,xt=xt||vt.length;for(var bt=0;bt0&&(vt+=","),vt+=wt[St];return vt+="]",vt},yt},st=function(){var wt=0,yt=0,vt=0,St="",xt={},bt=function(_t){St+=String.fromCharCode(At(_t&63))},At=function(_t){if(!(_t<0)){if(_t<26)return 65+_t;if(_t<52)return 97+(_t-26);if(_t<62)return 48+(_t-52);if(_t==62)return 43;if(_t==63)return 47}throw"n:"+_t};return xt.writeByte=function(_t){for(wt=wt<<8|_t&255,yt+=8,vt+=1;yt>=6;)bt(wt>>>yt-6),yt-=6},xt.flush=function(){if(yt>0&&(bt(wt<<6-yt),wt=0,yt=0),vt%3!=0)for(var _t=3-vt%3,Ct=0;Ct<_t;Ct+=1)St+="="},xt.toString=function(){return St},xt},ct=function(wt){var yt=wt,vt=0,St=0,xt=0,bt={};bt.read=function(){for(;xt<8;){if(vt>=yt.length){if(xt==0)return-1;throw"unexpected end of file./"+xt}var _t=yt.charAt(vt);if(vt+=1,_t=="=")return xt=0,-1;if(_t.match(/^\s$/))continue;St=St<<6|At(_t.charCodeAt(0)),xt+=6}var Ct=St>>>xt-8&255;return xt-=8,Ct};var At=function(_t){if(65<=_t&&_t<=90)return _t-65;if(97<=_t&&_t<=122)return _t-97+26;if(48<=_t&&_t<=57)return _t-48+52;if(_t==43)return 62;if(_t==47)return 63;throw"c:"+_t};return bt},pt=function(wt,yt){var vt=wt,St=yt,xt=new Array(wt*yt),bt={};bt.setPixel=function(Mt,jt,Rt){xt[jt*vt+Mt]=Rt},bt.write=function(Mt){Mt.writeString("GIF87a"),Mt.writeShort(vt),Mt.writeShort(St),Mt.writeByte(128),Mt.writeByte(0),Mt.writeByte(0),Mt.writeByte(0),Mt.writeByte(0),Mt.writeByte(0),Mt.writeByte(255),Mt.writeByte(255),Mt.writeByte(255),Mt.writeString(","),Mt.writeShort(0),Mt.writeShort(0),Mt.writeShort(vt),Mt.writeShort(St),Mt.writeByte(0);var jt=2,Rt=_t(jt);Mt.writeByte(jt);for(var zt=0;Rt.length-zt>255;)Mt.writeByte(255),Mt.writeBytes(Rt,zt,255),zt+=255;Mt.writeByte(Rt.length-zt),Mt.writeBytes(Rt,zt,Rt.length-zt),Mt.writeByte(0),Mt.writeString(";")};var At=function(Mt){var jt=Mt,Rt=0,zt=0,Xt={};return Xt.write=function(Jt,Kt){if(Jt>>>Kt)throw"length over";for(;Rt+Kt>=8;)jt.writeByte(255&(Jt<>>=8-Rt,zt=0,Rt=0;zt=Jt<0&&jt.writeByte(zt)},Xt},_t=function(Mt){for(var jt=1<>6,128|rt&63):rt<55296||rt>=57344?et.push(224|rt>>12,128|rt>>6&63,128|rt&63):(tt++,rt=65536+((rt&1023)<<10|$.charCodeAt(tt)&1023),et.push(240|rt>>18,128|rt>>12&63,128|rt>>6&63,128|rt&63))}return et}return j(k)}})(),function(k){b.exports=k()}(function(){return d})})(qrcode$1);const qrcode=qrcode$1.exports;function copyToClipboard(b){return __async(this,null,function*(){try{if(!(navigator!=null&&navigator.clipboard))throw new TonConnectUIError("Clipboard API not available");return yield navigator.clipboard.writeText(b)}catch{}fallbackCopyTextToClipboard(b)})}function fallbackCopyTextToClipboard(b){const _=document.createElement("textarea");_.value=b,_.style.top="0",_.style.left="0",_.style.position="fixed",document.body.appendChild(_),_.focus(),_.select();try{document.execCommand("copy")}finally{document.body.removeChild(_)}}const _tmpl$$s=template$1("
"),QRCode=b=>{let _,d,k;const[j,$]=createSignal(!1),[et,tt]=createSignal(picSizeDefault);createEffect(()=>{const it=qrcode(0,"L");it.addData(b.sourceUrl),it.make(),_.innerHTML=it.createSvgTag(4,0);const dt=_.firstElementChild.clientWidth,ut=Math.round(qrNormalSize/dt*1e5)/1e5;if(k){const ht=Math.ceil(imgSizeDefault/(ut*4))*4,ft=toPx(Math.ceil((dt-ht)/(2*4))*4);k.style.top=ft,k.style.left=ft,k.style.height=toPx(ht),k.style.width=toPx(ht),tt(Math.round(picSizeDefault/ut))}d.style.transform=`scale(${ut})`});let rt=null;return createComponent(QrCodeBackground,{get class(){return b.class},onClick:()=>{$(!0),copyToClipboard(b.sourceUrl),rt!=null&&clearTimeout(rt),rt=setTimeout(()=>$(!1),1500)},get children(){return[createComponent(QrCodeWrapper$2,{ref(ot){const at=d;typeof at=="function"?at(ot):d=ot},get children(){return[(()=>{const ot=_tmpl$$s.cloneNode(!0),at=_;return typeof at=="function"?use(at,ot):_=ot,ot})(),createComponent(Show,{get when(){return b.imageUrl},get children(){return createComponent(ImageBackground,{ref(ot){const at=k;typeof at=="function"?at(ot):k=ot},get children(){return createComponent(ImageStyled$3,{get src(){return b.imageUrl},alt:"",get size(){return et()}})}})}})]}}),createComponent(Transition,{onBeforeEnter:ot=>{animate(ot,[{opacity:0,transform:"translate(-50%, 44px)"},{opacity:1,transform:"translate(-50%, 0)"}],{duration:150,easing:"ease-out"})},onExit:(ot,at)=>{animate(ot,[{opacity:1,transform:"translate(-50%, 0)"},{opacity:0,transform:"translate(-50%, 44px)"}],{duration:150,easing:"ease-out"}).finished.then(()=>{at()})},get children(){return createComponent(Show,{get when(){return j()&&!b.disableCopy},get children(){return createComponent(CopiedBoxStyled,{get children(){return[createComponent(SuccessIcon,{size:"xs"}),createComponent(Text$1,{translationKey:"common.linkCopied",children:"Link Copied"})]}})}})}}),createComponent(Show,{get when(){return!b.disableCopy},get children(){return createComponent(CopyIconButton,{get children(){return createComponent(CopyLightIcon,{})}})}})]}})};var deepReadObject=(b,_,d)=>{const k=_.trim().split(".").reduce((j,$)=>j?j[$]:void 0,b);return k!==void 0?k:d},template=(b,_,d=/{{(.*?)}}/g)=>b.replace(d,(k,j)=>deepReadObject(_,j,"")),createI18nContext=(b={},_=navigator.language in b?navigator.language:Object.keys(b)[0])=>{const[d,k]=createSignal(_),[j,$]=createStore(b);return[(rt,nt,ot)=>{const at=deepReadObject(j[d()],rt,ot||"");return typeof at=="function"?at(nt):typeof at=="string"?template(at,nt||{}):at},{add(rt,nt){$(rt,ot=>Object.assign(ot||{},nt))},locale:rt=>rt?k(rt):d(),dict:rt=>deepReadObject(j,rt)}]},I18nContext=createContext({}),useI18n=()=>useContext(I18nContext);const TextStyled$3=styled.div` font-style: normal; @@ -1089,7 +1089,7 @@ PERFORMANCE OF THIS SOFTWARE. width: 16px; `,ButtonStyled=styled(Button)` margin-top: 32px; -`,ActionModal=b=>{const _=useDataAttributes(b),d=useContext(TonConnectUiContext),[k,j]=createSignal(!0),[$,et]=createSignal(!1);createEffect(()=>{const ot=action();et(!!ot&&"sent"in ot&&ot.sent)});let tt;d!=null&&d.wallet&&"universalLink"in d.wallet&&(d.wallet.openMethod==="universal-link"||isTelegramUrl(d.wallet.universalLink)&&isInTMA())&&(tt=d.wallet.universalLink);let rt;d!=null&&d.wallet&&"deepLink"in d.wallet&&(d.wallet.openMethod==="custom-deeplink"||isTelegramUrl(d.wallet.deepLink)&&isInTMA())&&(rt=d.wallet.deepLink);const nt=()=>{const ot=action(),at="returnStrategy"in ot?ot.returnStrategy:appState.returnStrategy,it=!k();j(!1),isTelegramUrl(tt)?redirectToTelegram(tt,{returnStrategy:at,twaReturnUrl:"twaReturnUrl"in ot?ot.twaReturnUrl:appState.twaReturnUrl,forceRedirect:it}):redirectToWallet(tt,rt,{returnStrategy:at,forceRedirect:it},()=>{})};return createComponent(ActionModalStyled,mergeProps(_,{get children(){return[createMemo(()=>b.icon),createComponent(H1Styled,{get translationKey(){return b.headerTranslationKey},get translationValues(){return b.headerTranslationValues}}),createComponent(TextStyled,{get translationKey(){return b.textTranslationKey},get translationValues(){return b.textTranslationValues}}),createComponent(Show,{get when(){return!$()&&(b.showButton==="open-wallet"&&tt||b.showButton!=="open-wallet")},get children(){return createComponent(LoaderButtonStyled,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return createComponent(LoaderIconStyled,{})}})}}),createComponent(Show,{get when(){return $()},get children(){return[createComponent(Show,{get when(){return b.showButton!=="open-wallet"},get children(){return createComponent(ButtonStyled,{onClick:()=>b.onClose(),get children(){return createComponent(Translation,{translationKey:"common.close",children:"Close"})}})}}),createComponent(Show,{get when(){return b.showButton==="open-wallet"&&tt},get children(){return createComponent(ButtonStyled,{onClick:nt,get children(){return createComponent(Translation,{translationKey:"common.openWallet",children:"Open wallet"})}})}})]}})]}}))},ConfirmTransactionModal=b=>{const _=useContext(TonConnectUiContext),[d]=useI18n(),k=()=>_.wallet&&"name"in _.wallet?_.wallet.name:d("common.yourWallet",{},"Your wallet");return createComponent(ActionModal,{headerTranslationKey:"actionModal.confirmTransaction.header",get headerTranslationValues(){return{name:k()}},textTranslationKey:"actionModal.confirmTransaction.text",get icon(){return createComponent(LoaderIcon,{size:"m"})},onClose:()=>b.onClose(),showButton:"open-wallet","data-tc-confirm-modal":"true"})},TransactionCanceledModal=b=>createComponent(ActionModal,{headerTranslationKey:"actionModal.transactionCanceled.header",textTranslationKey:"actionModal.transactionCanceled.text",get icon(){return createComponent(ErrorIcon,{size:"m"})},onClose:()=>b.onClose(),"data-tc-transaction-canceled-modal":"true"}),TransactionSentModal=b=>createComponent(ActionModal,{headerTranslationKey:"actionModal.transactionSent.header",textTranslationKey:"actionModal.transactionSent.text",get icon(){return createComponent(SuccessIcon,{size:"m"})},onClose:()=>b.onClose(),"data-tc-transaction-sent-modal":"true"}),ActionsModal=()=>createComponent(Modal,{get opened(){var b;return createMemo(()=>action()!==null)()&&((b=action())==null?void 0:b.openModal)===!0},get enableAndroidBackHandler(){return appState.enableAndroidBackHandler},onClose:()=>setAction(null),"data-tc-actions-modal-container":"true",get children(){return createComponent(Switch,{get children(){return[createComponent(Match,{get when(){return action().name==="transaction-sent"},get children(){return createComponent(TransactionSentModal,{onClose:()=>setAction(null)})}}),createComponent(Match,{get when(){return action().name==="transaction-canceled"},get children(){return createComponent(TransactionCanceledModal,{onClose:()=>setAction(null)})}}),createComponent(Match,{get when(){return action().name==="confirm-transaction"},get children(){return createComponent(ConfirmTransactionModal,{onClose:()=>setAction(null)})}})]}})}}),SingleWalletModal=()=>{const{locale:b}=useI18n()[1];createEffect(()=>b(appState.language)),createEffect(()=>{getSingleWalletModalIsOpened()&&updateIsMobile()});const _=useContext(ConnectorContext),d=useContext(TonConnectUiContext),[k,j]=createSignal(!1),$=()=>{var nt;return((nt=appState.connectRequestParameters)==null?void 0:nt.state)==="loading"},et=createMemo(()=>{var nt;if(!$())return(nt=appState.connectRequestParameters)==null?void 0:nt.value}),tt=nt=>{d.closeSingleWalletModal(nt)},rt=_.onStatusChange(nt=>{nt&&tt("wallet-selected")});return onCleanup(rt),onCleanup(()=>{j(!1)}),createComponent(StyledModal,{get opened(){return getSingleWalletModalIsOpened()},get enableAndroidBackHandler(){return appState.enableAndroidBackHandler},onClose:()=>tt("action-cancelled"),onClickQuestion:()=>j(nt=>!nt),"data-tc-wallets-modal-container":"true",get children(){return[createComponent(Show,{get when(){return k()},get children(){return createComponent(InfoModal,{onBackClick:()=>j(!1)})}}),createComponent(Show,{get when(){return!k()},get children(){return[createComponent(Show,{get when(){return $()},get children(){return[createComponent(H1Styled$8,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),createComponent(LoaderContainerStyled,{get children(){return createComponent(LoaderIcon,{size:"m"})}})]}}),createComponent(Show,{get when(){return!$()},get children(){return createComponent(Dynamic,{get component(){return isMobile()?MobileConnectionModal:DesktopConnectionModal},get wallet(){return getSingleWalletModalWalletInfo()},get additionalRequest(){return et()},onBackClick:()=>{},backDisabled:!0})}})]}})]}})},App$1=b=>{const _=createI18nContext(i18nDictionary,appState.language);return defineStylesRoot(),fixMobileSafariActiveTransition(),createComponent(I18nContext.Provider,{value:_,get children(){return createComponent(TonConnectUiContext.Provider,{get value(){return b.tonConnectUI},get children(){return createComponent(ConnectorContext.Provider,{get value(){return appState.connector},get children(){return[createComponent(GlobalStyles,{}),createComponent(ThemeProvider,{theme:themeState,get children(){return[createComponent(Show,{get when(){return appState.buttonRootId},get children(){return createComponent(Portal,{get mount(){return document.getElementById(appState.buttonRootId)},get children(){return createComponent(AccountButton,{})}})}}),createComponent(Dynamic,{component:globalStylesTag,get children(){return[createComponent(WalletsModal,{}),createComponent(SingleWalletModal,{}),createComponent(ActionsModal,{})]}})]}})]}})}})}})},widgetController={openWalletsModal:()=>void setTimeout(()=>setWalletsModalState({status:"opened",closeReason:null})),closeWalletsModal:b=>void setTimeout(()=>setWalletsModalState({status:"closed",closeReason:b})),openSingleWalletModal:b=>{setTimeout(()=>setSingleWalletModalState({status:"opened",closeReason:null,walletInfo:b}))},closeSingleWalletModal:b=>void setTimeout(()=>setSingleWalletModalState({status:"closed",closeReason:b})),setAction:b=>void setTimeout(()=>setAction(b)),clearAction:()=>void setTimeout(()=>setAction(null)),getSelectedWalletInfo:()=>lastSelectedWalletInfo(),removeSelectedWalletInfo:()=>setLastSelectedWalletInfo(null),renderApp:(b,_)=>render(()=>createComponent(App$1,{tonConnectUI:_}),document.getElementById(b))};class WalletsModalManager{constructor(_){__publicField(this,"connector"),__publicField(this,"setConnectRequestParametersCallback"),__publicField(this,"consumers",[]),__publicField(this,"tracker"),__publicField(this,"state",walletsModalState()),this.connector=_.connector,this.tracker=_.tracker,this.setConnectRequestParametersCallback=_.setConnectRequestParametersCallback,createEffect(()=>{const d=walletsModalState();this.state=d,this.consumers.forEach(k=>k(d))})}open(){return __async(this,null,function*(){this.tracker.trackConnectionStarted();const d=(yield this.connector.getWallets()).find(isWalletInfoCurrentlyEmbedded);return d?this.connectEmbeddedWallet(d):this.openWalletsModal()})}close(_="action-cancelled"){_==="action-cancelled"&&this.tracker.trackConnectionError("Connection was cancelled"),widgetController.closeWalletsModal(_)}onStateChange(_){return this.consumers.push(_),()=>{this.consumers=this.consumers.filter(d=>d!==_)}}connectEmbeddedWallet(_){const d=j=>{setLastSelectedWalletInfo(_),this.connector.connect({jsBridgeKey:_.jsBridgeKey},j)},k=appState.connectRequestParameters;(k==null?void 0:k.state)==="loading"?this.setConnectRequestParametersCallback(d):d(k==null?void 0:k.value)}openWalletsModal(){return __async(this,null,function*(){return isInTMA()&&sendExpand(),widgetController.openWalletsModal(),new Promise(_=>{const d=this.onStateChange(k=>{const{status:j}=k;j==="opened"&&(d(),_())})})})}}class TransactionModalManager{constructor(_){__publicField(this,"connector"),__publicField(this,"consumers",[]),this.connector=_.connector,createEffect(()=>{const d=action();this.consumers.forEach(k=>k(d))})}onStateChange(_){return this.consumers.push(_),()=>{this.consumers=this.consumers.filter(d=>d!==_)}}}class SingleWalletModalManager{constructor(_){__publicField(this,"connector"),__publicField(this,"setConnectRequestParametersCallback"),__publicField(this,"consumers",[]),__publicField(this,"tracker"),__publicField(this,"state",singleWalletModalState()),this.connector=_.connector,this.tracker=_.tracker,this.setConnectRequestParametersCallback=_.setConnectRequestParametersCallback,createEffect(()=>{const d=singleWalletModalState();this.state=d,this.consumers.forEach(k=>k(d))})}open(_){return __async(this,null,function*(){this.tracker.trackConnectionStarted();const d=yield this.connector.getWallets(),k=applyWalletsListConfiguration(d,appState.walletsListConfiguration),j=k.find(isWalletInfoCurrentlyEmbedded);if(!!j)return this.connectEmbeddedWallet(j);const tt=k.filter(isWalletInfoRemote).find(ot=>eqWalletName(ot,_));if(!!tt)return this.openSingleWalletModal(tt);const nt=`Trying to open modal window with unknown wallet "${_}".`;throw this.tracker.trackConnectionError(nt),new TonConnectUIError(nt)})}close(_="action-cancelled"){_==="action-cancelled"&&this.tracker.trackConnectionError("Connection was cancelled"),widgetController.closeSingleWalletModal("action-cancelled")}onStateChange(_){return this.consumers.push(_),()=>{this.consumers=this.consumers.filter(d=>d!==_)}}connectEmbeddedWallet(_){const d=j=>{setLastSelectedWalletInfo(_),this.connector.connect({jsBridgeKey:_.jsBridgeKey},j)},k=appState.connectRequestParameters;(k==null?void 0:k.state)==="loading"?this.setConnectRequestParametersCallback(d):d(k==null?void 0:k.value)}openSingleWalletModal(_){return __async(this,null,function*(){return isInTMA()&&sendExpand(),widgetController.openSingleWalletModal(_),new Promise(d=>{const k=this.onStateChange(j=>{const{status:$}=j;$==="opened"&&(k(),d())})})})}}class TonConnectUITracker{constructor(_){__publicField(this,"eventPrefix","ton-connect-ui-"),__publicField(this,"tonConnectUiVersion"),__publicField(this,"tonConnectSdkVersion",null),__publicField(this,"eventDispatcher");var d;this.eventDispatcher=(d=_==null?void 0:_.eventDispatcher)!=null?d:new BrowserEventDispatcher,this.tonConnectUiVersion=_.tonConnectUiVersion,this.init().catch()}get version(){return createVersionInfo({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return __async(this,null,function*(){try{yield this.setRequestVersionHandler(),this.tonConnectSdkVersion=yield this.requestTonConnectSdkVersion()}catch{}})}setRequestVersionHandler(){return __async(this,null,function*(){yield this.eventDispatcher.addEventListener("ton-connect-ui-request-version",()=>__async(this,null,function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-ui-response-version",createResponseVersionEvent(this.tonConnectUiVersion))}))})}requestTonConnectSdkVersion(){return __async(this,null,function*(){return new Promise((_,d)=>__async(this,null,function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-response-version",k=>{_(k.detail.version)},{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-request-version",createRequestVersionEvent())}catch(k){d(k)}}))})}dispatchUserActionEvent(_){var d;try{(d=this.eventDispatcher)==null||d.dispatchEvent(`${this.eventPrefix}${_.type}`,_).catch()}catch{}}trackConnectionStarted(..._){try{const d=createConnectionStartedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionCompleted(..._){try{const d=createConnectionCompletedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionError(..._){try{const d=createConnectionErrorEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionRestoringStarted(..._){try{const d=createConnectionRestoringStartedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionRestoringCompleted(..._){try{const d=createConnectionRestoringCompletedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionRestoringError(..._){try{const d=createConnectionRestoringErrorEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackDisconnection(..._){try{const d=createDisconnectionEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackTransactionSentForSignature(..._){try{const d=createTransactionSentForSignatureEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackTransactionSigned(..._){try{const d=createTransactionSignedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackTransactionSigningFailed(..._){try{const d=createTransactionSigningFailedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}}const tonConnectUiVersion="2.0.3-beta.4";class TonConnectUI{constructor(_){if(__publicField(this,"walletInfoStorage",new WalletInfoStorage),__publicField(this,"preferredWalletStorage",new PreferredWalletStorage),__publicField(this,"tracker"),__publicField(this,"walletInfo",null),__publicField(this,"systemThemeChangeUnsubscribe",null),__publicField(this,"actionsConfiguration"),__publicField(this,"walletsList"),__publicField(this,"connectRequestParametersCallback"),__publicField(this,"connector"),__publicField(this,"modal"),__publicField(this,"singleWalletModal"),__publicField(this,"transactionModal"),__publicField(this,"connectionRestored",Promise.resolve(!1)),_&&"connector"in _&&_.connector)this.connector=_.connector;else if(_&&"manifestUrl"in _&&_.manifestUrl)this.connector=new TonConnect({manifestUrl:_.manifestUrl,eventDispatcher:_==null?void 0:_.eventDispatcher});else throw new TonConnectUIError("You have to specify a `manifestUrl` or a `connector` in the options.");this.tracker=new TonConnectUITracker({eventDispatcher:_==null?void 0:_.eventDispatcher,tonConnectUiVersion}),this.modal=new WalletsModalManager({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:j=>{this.connectRequestParametersCallback=j}}),this.singleWalletModal=new SingleWalletModalManager({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:j=>{this.connectRequestParametersCallback=j}}),this.transactionModal=new TransactionModalManager({connector:this.connector}),this.walletsList=this.getWallets(),this.walletsList.then(j=>preloadImages(uniq(j.map($=>$.imageUrl))));const d=this.normalizeWidgetRoot(_==null?void 0:_.widgetRootId);this.subscribeToWalletChange(),(_==null?void 0:_.restoreConnection)!==!1&&(this.connectionRestored=createMacrotaskAsync(()=>__async(this,null,function*(){return this.tracker.trackConnectionRestoringStarted(),yield this.connector.restoreConnection(),this.connector.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):(this.tracker.trackConnectionRestoringError("Connection was not restored"),this.walletInfoStorage.removeWalletInfo()),this.connector.connected}))),this.uiOptions=mergeOptions(_,{uiPreferences:{theme:"SYSTEM"}});const k=this.preferredWalletStorage.getPreferredWalletAppName();setAppState({connector:this.connector,preferredWalletAppName:k}),widgetController.renderApp(d,this)}static getWallets(){return TonConnect.getWallets()}get connected(){return this.connector.connected}get account(){return this.connector.account}get wallet(){return this.connector.wallet?__spreadValues$1(__spreadValues$1({},this.connector.wallet),this.walletInfo):null}set uiOptions(_){var d,k,j,$,et;this.checkButtonRootExist(_.buttonRootId),this.actionsConfiguration=_.actionsConfiguration,(d=_.uiPreferences)!=null&&d.theme?((k=_.uiPreferences)==null?void 0:k.theme)!=="SYSTEM"?((j=this.systemThemeChangeUnsubscribe)==null||j.call(this),setTheme(_.uiPreferences.theme,_.uiPreferences.colorsSet)):(setTheme(getSystemTheme(),_.uiPreferences.colorsSet),this.systemThemeChangeUnsubscribe||(this.systemThemeChangeUnsubscribe=subscribeToThemeChange(setTheme))):($=_.uiPreferences)!=null&&$.colorsSet&&setColors(_.uiPreferences.colorsSet),(et=_.uiPreferences)!=null&&et.borderRadius&&setBorderRadius(_.uiPreferences.borderRadius),setAppState(tt=>{var rt,nt;const ot=mergeOptions(__spreadValues$1(__spreadValues$1(__spreadValues$1(__spreadValues$1({},_.language&&{language:_.language}),!!((rt=_.actionsConfiguration)!=null&&rt.returnStrategy)&&{returnStrategy:_.actionsConfiguration.returnStrategy}),!!((nt=_.actionsConfiguration)!=null&&nt.twaReturnUrl)&&{twaReturnUrl:_.actionsConfiguration.twaReturnUrl}),!!_.walletsListConfiguration&&{walletsListConfiguration:_.walletsListConfiguration}),unwrap(tt));return _.buttonRootId!==void 0&&(ot.buttonRootId=_.buttonRootId),_.enableAndroidBackHandler!==void 0&&(ot.enableAndroidBackHandler=_.enableAndroidBackHandler),ot})}setConnectRequestParameters(_){var d;setAppState({connectRequestParameters:_}),((_==null?void 0:_.state)==="ready"||!_)&&((d=this.connectRequestParametersCallback)==null||d.call(this,_==null?void 0:_.value))}getWallets(){return __async(this,null,function*(){return this.connector.getWallets()})}onStatusChange(_,d){return this.connector.onStatusChange(k=>__async(this,null,function*(){if(k){const j=yield this.getSelectedWalletInfo(k);_(__spreadValues$1(__spreadValues$1({},k),j||this.walletInfoStorage.getWalletInfo()))}else _(k)}),d)}openModal(){return __async(this,null,function*(){return this.modal.open()})}closeModal(_){this.modal.close(_)}onModalStateChange(_){return this.modal.onStateChange(_)}get modalState(){return this.modal.state}openSingleWalletModal(_){return __async(this,null,function*(){return this.singleWalletModal.open(_)})}closeSingleWalletModal(_){this.singleWalletModal.close(_)}onSingleWalletModalStateChange(_){return this.singleWalletModal.onStateChange(_)}get singleWalletModalState(){return this.singleWalletModal.state}connectWallet(){return __async(this,null,function*(){const d=(yield this.getWallets()).find(isWalletInfoCurrentlyEmbedded);return d?yield this.connectEmbeddedWallet(d):yield this.connectExternalWallet()})}disconnect(){return this.tracker.trackDisconnection(this.wallet,"dapp"),widgetController.clearAction(),widgetController.removeSelectedWalletInfo(),this.walletInfoStorage.removeWalletInfo(),this.connector.disconnect()}sendTransaction(_,d){return __async(this,null,function*(){if(this.tracker.trackTransactionSentForSignature(this.wallet,_),!this.connected)throw this.tracker.trackTransactionSigningFailed(this.wallet,_,"Wallet was not connected"),new TonConnectUIError("Connect wallet to send a transaction.");isInTMA()&&sendExpand();const{notifications:k,modals:j,returnStrategy:$,twaReturnUrl:et,skipRedirectToWallet:tt}=this.getModalsAndNotificationsConfiguration(d);widgetController.setAction({name:"confirm-transaction",showNotification:k.includes("before"),openModal:j.includes("before"),sent:!1});const rt=()=>{nt.signal.aborted||(widgetController.setAction({name:"confirm-transaction",showNotification:k.includes("before"),openModal:j.includes("before"),sent:!0}),this.walletInfo&&"universalLink"in this.walletInfo&&(this.walletInfo.openMethod==="universal-link"||this.walletInfo.openMethod==="custom-deeplink")&&(isTelegramUrl(this.walletInfo.universalLink)?redirectToTelegram(this.walletInfo.universalLink,{returnStrategy:$,twaReturnUrl:et||appState.twaReturnUrl,forceRedirect:!1}):redirectToWallet(this.walletInfo.universalLink,this.walletInfo.deepLink,{returnStrategy:$,forceRedirect:!1},()=>{})))},nt=new AbortController,ot=this.onTransactionModalStateChange(at=>{at!=null&&at.openModal||(ot(),at||nt.abort())});try{const at=yield this.waitForSendTransaction({transaction:_,signal:nt.signal},rt);return this.tracker.trackTransactionSigned(this.wallet,_,at),widgetController.setAction({name:"transaction-sent",showNotification:k.includes("success"),openModal:j.includes("success")}),at}catch(at){throw widgetController.setAction({name:"transaction-canceled",showNotification:k.includes("error"),openModal:j.includes("error")}),at instanceof TonConnectError?at:(console.error(at),new TonConnectUIError("Unhandled error:"+at))}finally{ot()}})}connectEmbeddedWallet(_){return __async(this,null,function*(){const d=j=>{setLastSelectedWalletInfo(_),this.connector.connect({jsBridgeKey:_.jsBridgeKey},j)},k=appState.connectRequestParameters;return(k==null?void 0:k.state)==="loading"?this.connectRequestParametersCallback=d:d(k==null?void 0:k.value),yield this.waitForWalletConnection({ignoreErrors:!1})})}connectExternalWallet(){return __async(this,null,function*(){const _=new AbortController;widgetController.openWalletsModal();const d=this.onModalStateChange(k=>{const{status:j,closeReason:$}=k;j!=="opened"&&(d(),$==="action-cancelled"&&_.abort())});return yield this.waitForWalletConnection({ignoreErrors:!0,signal:_.signal})})}waitForWalletConnection(_){return __async(this,null,function*(){return new Promise((d,k)=>{this.tracker.trackConnectionStarted();const{ignoreErrors:j=!1,signal:$=null}=_;if($&&$.aborted)return this.tracker.trackConnectionError("Connection was cancelled"),k(new TonConnectUIError("Wallet was not connected"));const et=nt=>__async(this,null,function*(){if(nt)this.tracker.trackConnectionCompleted(nt),rt(),d(nt);else{if(this.tracker.trackConnectionError("Connection was cancelled"),j)return;rt(),k(new TonConnectUIError("Wallet was not connected"))}}),tt=nt=>{this.tracker.trackConnectionError(nt.message),!j&&(rt(),k(nt))},rt=this.onStatusChange(nt=>et(nt),nt=>tt(nt));$&&$.addEventListener("abort",()=>{rt(),k(new TonConnectUIError("Wallet was not connected"))},{once:!0})})})}waitForSendTransaction(_,d){return __async(this,null,function*(){return new Promise((k,j)=>{const{transaction:$,signal:et}=_;if(et.aborted)return this.tracker.trackTransactionSigningFailed(this.wallet,$,"Transaction was cancelled"),j(new TonConnectUIError("Transaction was not sent"));const tt=ot=>__async(this,null,function*(){k(ot)}),rt=ot=>{j(ot)},nt=()=>{this.tracker.trackTransactionSigningFailed(this.wallet,$,"Transaction was cancelled"),j(new TonConnectUIError("Transaction was not sent"))};et.addEventListener("abort",nt,{once:!0}),this.connector.sendTransaction($,{onRequestSent:d,signal:et}).then(ot=>(et.removeEventListener("abort",nt),tt(ot))).catch(ot=>(et.removeEventListener("abort",nt),rt(ot)))})})}onTransactionModalStateChange(_){return this.transactionModal.onStateChange(_)}subscribeToWalletChange(){this.connector.onStatusChange(_=>__async(this,null,function*(){var d;_?(yield this.updateWalletInfo(_),this.setPreferredWalletAppName(((d=this.walletInfo)==null?void 0:d.appName)||_.device.appName)):this.walletInfoStorage.removeWalletInfo()}))}setPreferredWalletAppName(_){this.preferredWalletStorage.setPreferredWalletAppName(_),setAppState({preferredWalletAppName:_})}getSelectedWalletInfo(_){return __async(this,null,function*(){let d=widgetController.getSelectedWalletInfo();if(!d)return null;let k;if("name"in d)k=d;else{const $=applyWalletsListConfiguration(yield this.walletsList,appState.walletsListConfiguration).find(et=>eqWalletName(et,_.device.appName));if(!$)throw new TonConnectUIError(`Cannot find WalletInfo for the '${_.device.appName}' wallet`);k=__spreadValues$1(__spreadValues$1({},$),d)}return k})}updateWalletInfo(_){return __async(this,null,function*(){const d=yield this.getSelectedWalletInfo(_);if(d){this.walletInfo=d,this.walletInfoStorage.setWalletInfo(d);return}const k=this.walletInfoStorage.getWalletInfo();if(k){this.walletInfo=k;return}this.walletInfo=(yield this.walletsList).find(j=>eqWalletName(j,_.device.appName))||null})}normalizeWidgetRoot(_){if(!_||!document.getElementById(_)){_="tc-widget-root";const d=document.createElement("div");d.id=_,document.body.appendChild(d)}return _}checkButtonRootExist(_){if(_!=null&&!document.getElementById(_))throw new TonConnectUIError(`${_} element not found in the document.`)}getModalsAndNotificationsConfiguration(_){var d,k,j,$,et,tt;const rt=["before","success","error"];let nt=rt;(d=this.actionsConfiguration)!=null&&d.notifications&&((k=this.actionsConfiguration)==null?void 0:k.notifications)!=="all"&&(nt=this.actionsConfiguration.notifications),_!=null&&_.notifications&&(_.notifications==="all"?nt=rt:nt=_.notifications);let ot=["before"];(j=this.actionsConfiguration)!=null&&j.modals&&(this.actionsConfiguration.modals==="all"?ot=rt:ot=this.actionsConfiguration.modals),_!=null&&_.modals&&(_.modals==="all"?ot=rt:ot=_.modals);const at=(_==null?void 0:_.returnStrategy)||(($=this.actionsConfiguration)==null?void 0:$.returnStrategy)||"back",it=(_==null?void 0:_.twaReturnUrl)||((et=this.actionsConfiguration)==null?void 0:et.twaReturnUrl);let dt=(_==null?void 0:_.skipRedirectToWallet)||((tt=this.actionsConfiguration)==null?void 0:tt.skipRedirectToWallet)||"ios";return isInTMA()&&(dt="never"),{notifications:nt,modals:ot,returnStrategy:at,twaReturnUrl:it,skipRedirectToWallet:dt}}}var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(b,_,d)=>_ in b?__defProp(b,_,{enumerable:!0,configurable:!0,writable:!0,value:d}):b[_]=d,__spreadValues=(b,_)=>{for(var d in _||(_={}))__hasOwnProp.call(_,d)&&__defNormalProp(b,d,_[d]);if(__getOwnPropSymbols)for(var d of __getOwnPropSymbols(_))__propIsEnum.call(_,d)&&__defNormalProp(b,d,_[d]);return b},__objRest=(b,_)=>{var d={};for(var k in b)__hasOwnProp.call(b,k)&&_.indexOf(k)<0&&(d[k]=b[k]);if(b!=null&&__getOwnPropSymbols)for(var k of __getOwnPropSymbols(b))_.indexOf(k)<0&&__propIsEnum.call(b,k)&&(d[k]=b[k]);return d},jsxRuntime={exports:{}},reactJsxRuntime_production_min={};/** +`,ActionModal=b=>{const _=useDataAttributes(b),d=useContext(TonConnectUiContext),[k,j]=createSignal(!0),[$,et]=createSignal(!1);createEffect(()=>{const ot=action();et(!!ot&&"sent"in ot&&ot.sent)});let tt;d!=null&&d.wallet&&"universalLink"in d.wallet&&(d.wallet.openMethod==="universal-link"||isTelegramUrl(d.wallet.universalLink)&&isInTMA())&&(tt=d.wallet.universalLink);let rt;d!=null&&d.wallet&&"deepLink"in d.wallet&&(d.wallet.openMethod==="custom-deeplink"||isTelegramUrl(d.wallet.deepLink)&&isInTMA())&&(rt=d.wallet.deepLink);const nt=()=>{const ot=action(),at="returnStrategy"in ot?ot.returnStrategy:appState.returnStrategy,it=!k();j(!1),isTelegramUrl(tt)?redirectToTelegram(tt,{returnStrategy:at,twaReturnUrl:"twaReturnUrl"in ot?ot.twaReturnUrl:appState.twaReturnUrl,forceRedirect:it}):redirectToWallet(tt,rt,{returnStrategy:at,forceRedirect:it},()=>{})};return createComponent(ActionModalStyled,mergeProps(_,{get children(){return[createMemo(()=>b.icon),createComponent(H1Styled,{get translationKey(){return b.headerTranslationKey},get translationValues(){return b.headerTranslationValues}}),createComponent(TextStyled,{get translationKey(){return b.textTranslationKey},get translationValues(){return b.textTranslationValues}}),createComponent(Show,{get when(){return!$()&&(b.showButton==="open-wallet"&&tt||b.showButton!=="open-wallet")},get children(){return createComponent(LoaderButtonStyled,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return createComponent(LoaderIconStyled,{})}})}}),createComponent(Show,{get when(){return $()},get children(){return[createComponent(Show,{get when(){return b.showButton!=="open-wallet"},get children(){return createComponent(ButtonStyled,{onClick:()=>b.onClose(),get children(){return createComponent(Translation,{translationKey:"common.close",children:"Close"})}})}}),createComponent(Show,{get when(){return b.showButton==="open-wallet"&&tt},get children(){return createComponent(ButtonStyled,{onClick:nt,get children(){return createComponent(Translation,{translationKey:"common.openWallet",children:"Open wallet"})}})}})]}})]}}))},ConfirmTransactionModal=b=>{const _=useContext(TonConnectUiContext),[d]=useI18n(),k=()=>_.wallet&&"name"in _.wallet?_.wallet.name:d("common.yourWallet",{},"Your wallet");return createComponent(ActionModal,{headerTranslationKey:"actionModal.confirmTransaction.header",get headerTranslationValues(){return{name:k()}},textTranslationKey:"actionModal.confirmTransaction.text",get icon(){return createComponent(LoaderIcon,{size:"m"})},onClose:()=>b.onClose(),showButton:"open-wallet","data-tc-confirm-modal":"true"})},TransactionCanceledModal=b=>createComponent(ActionModal,{headerTranslationKey:"actionModal.transactionCanceled.header",textTranslationKey:"actionModal.transactionCanceled.text",get icon(){return createComponent(ErrorIcon,{size:"m"})},onClose:()=>b.onClose(),"data-tc-transaction-canceled-modal":"true"}),TransactionSentModal=b=>createComponent(ActionModal,{headerTranslationKey:"actionModal.transactionSent.header",textTranslationKey:"actionModal.transactionSent.text",get icon(){return createComponent(SuccessIcon,{size:"m"})},onClose:()=>b.onClose(),"data-tc-transaction-sent-modal":"true"}),ActionsModal=()=>createComponent(Modal,{get opened(){var b;return createMemo(()=>action()!==null)()&&((b=action())==null?void 0:b.openModal)===!0},get enableAndroidBackHandler(){return appState.enableAndroidBackHandler},onClose:()=>setAction(null),"data-tc-actions-modal-container":"true",get children(){return createComponent(Switch,{get children(){return[createComponent(Match,{get when(){return action().name==="transaction-sent"},get children(){return createComponent(TransactionSentModal,{onClose:()=>setAction(null)})}}),createComponent(Match,{get when(){return action().name==="transaction-canceled"},get children(){return createComponent(TransactionCanceledModal,{onClose:()=>setAction(null)})}}),createComponent(Match,{get when(){return action().name==="confirm-transaction"},get children(){return createComponent(ConfirmTransactionModal,{onClose:()=>setAction(null)})}})]}})}}),SingleWalletModal=()=>{const{locale:b}=useI18n()[1];createEffect(()=>b(appState.language)),createEffect(()=>{getSingleWalletModalIsOpened()&&updateIsMobile()});const _=useContext(ConnectorContext),d=useContext(TonConnectUiContext),[k,j]=createSignal(!1),$=()=>{var nt;return((nt=appState.connectRequestParameters)==null?void 0:nt.state)==="loading"},et=createMemo(()=>{var nt;if(!$())return(nt=appState.connectRequestParameters)==null?void 0:nt.value}),tt=nt=>{d.closeSingleWalletModal(nt)},rt=_.onStatusChange(nt=>{nt&&tt("wallet-selected")});return onCleanup(rt),onCleanup(()=>{j(!1)}),createComponent(StyledModal,{get opened(){return getSingleWalletModalIsOpened()},get enableAndroidBackHandler(){return appState.enableAndroidBackHandler},onClose:()=>tt("action-cancelled"),onClickQuestion:()=>j(nt=>!nt),"data-tc-wallets-modal-container":"true",get children(){return[createComponent(Show,{get when(){return k()},get children(){return createComponent(InfoModal,{onBackClick:()=>j(!1)})}}),createComponent(Show,{get when(){return!k()},get children(){return[createComponent(Show,{get when(){return $()},get children(){return[createComponent(H1Styled$8,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),createComponent(LoaderContainerStyled,{get children(){return createComponent(LoaderIcon,{size:"m"})}})]}}),createComponent(Show,{get when(){return!$()},get children(){return createComponent(Dynamic,{get component(){return isMobile()?MobileConnectionModal:DesktopConnectionModal},get wallet(){return getSingleWalletModalWalletInfo()},get additionalRequest(){return et()},onBackClick:()=>{},backDisabled:!0})}})]}})]}})},App$1=b=>{const _=createI18nContext(i18nDictionary,appState.language);return defineStylesRoot(),fixMobileSafariActiveTransition(),createComponent(I18nContext.Provider,{value:_,get children(){return createComponent(TonConnectUiContext.Provider,{get value(){return b.tonConnectUI},get children(){return createComponent(ConnectorContext.Provider,{get value(){return appState.connector},get children(){return[createComponent(GlobalStyles,{}),createComponent(ThemeProvider,{theme:themeState,get children(){return[createComponent(Show,{get when(){return appState.buttonRootId},get children(){return createComponent(Portal,{get mount(){return document.getElementById(appState.buttonRootId)},get children(){return createComponent(AccountButton,{})}})}}),createComponent(Dynamic,{component:globalStylesTag,get children(){return[createComponent(WalletsModal,{}),createComponent(SingleWalletModal,{}),createComponent(ActionsModal,{})]}})]}})]}})}})}})},widgetController={openWalletsModal:()=>void setTimeout(()=>setWalletsModalState({status:"opened",closeReason:null})),closeWalletsModal:b=>void setTimeout(()=>setWalletsModalState({status:"closed",closeReason:b})),openSingleWalletModal:b=>{setTimeout(()=>setSingleWalletModalState({status:"opened",closeReason:null,walletInfo:b}))},closeSingleWalletModal:b=>void setTimeout(()=>setSingleWalletModalState({status:"closed",closeReason:b})),setAction:b=>void setTimeout(()=>setAction(b)),clearAction:()=>void setTimeout(()=>setAction(null)),getSelectedWalletInfo:()=>lastSelectedWalletInfo(),removeSelectedWalletInfo:()=>setLastSelectedWalletInfo(null),renderApp:(b,_)=>render(()=>createComponent(App$1,{tonConnectUI:_}),document.getElementById(b))};class WalletsModalManager{constructor(_){__publicField(this,"connector"),__publicField(this,"setConnectRequestParametersCallback"),__publicField(this,"consumers",[]),__publicField(this,"tracker"),__publicField(this,"state",walletsModalState()),this.connector=_.connector,this.tracker=_.tracker,this.setConnectRequestParametersCallback=_.setConnectRequestParametersCallback,createEffect(()=>{const d=walletsModalState();this.state=d,this.consumers.forEach(k=>k(d))})}open(){return __async(this,null,function*(){this.tracker.trackConnectionStarted();const d=(yield this.connector.getWallets()).find(isWalletInfoCurrentlyEmbedded);return d?this.connectEmbeddedWallet(d):this.openWalletsModal()})}close(_="action-cancelled"){_==="action-cancelled"&&this.tracker.trackConnectionError("Connection was cancelled"),widgetController.closeWalletsModal(_)}onStateChange(_){return this.consumers.push(_),()=>{this.consumers=this.consumers.filter(d=>d!==_)}}connectEmbeddedWallet(_){const d=j=>{setLastSelectedWalletInfo(_),this.connector.connect({jsBridgeKey:_.jsBridgeKey},j)},k=appState.connectRequestParameters;(k==null?void 0:k.state)==="loading"?this.setConnectRequestParametersCallback(d):d(k==null?void 0:k.value)}openWalletsModal(){return __async(this,null,function*(){return isInTMA()&&sendExpand(),widgetController.openWalletsModal(),new Promise(_=>{const d=this.onStateChange(k=>{const{status:j}=k;j==="opened"&&(d(),_())})})})}}class TransactionModalManager{constructor(_){__publicField(this,"connector"),__publicField(this,"consumers",[]),this.connector=_.connector,createEffect(()=>{const d=action();this.consumers.forEach(k=>k(d))})}onStateChange(_){return this.consumers.push(_),()=>{this.consumers=this.consumers.filter(d=>d!==_)}}}class SingleWalletModalManager{constructor(_){__publicField(this,"connector"),__publicField(this,"setConnectRequestParametersCallback"),__publicField(this,"consumers",[]),__publicField(this,"tracker"),__publicField(this,"state",singleWalletModalState()),this.connector=_.connector,this.tracker=_.tracker,this.setConnectRequestParametersCallback=_.setConnectRequestParametersCallback,createEffect(()=>{const d=singleWalletModalState();this.state=d,this.consumers.forEach(k=>k(d))})}open(_){return __async(this,null,function*(){this.tracker.trackConnectionStarted();const d=yield this.connector.getWallets(),k=applyWalletsListConfiguration(d,appState.walletsListConfiguration),j=k.find(isWalletInfoCurrentlyEmbedded);if(!!j)return this.connectEmbeddedWallet(j);const tt=k.filter(isWalletInfoRemote).find(ot=>eqWalletName(ot,_));if(!!tt)return this.openSingleWalletModal(tt);const nt=`Trying to open modal window with unknown wallet "${_}".`;throw this.tracker.trackConnectionError(nt),new TonConnectUIError(nt)})}close(_="action-cancelled"){_==="action-cancelled"&&this.tracker.trackConnectionError("Connection was cancelled"),widgetController.closeSingleWalletModal("action-cancelled")}onStateChange(_){return this.consumers.push(_),()=>{this.consumers=this.consumers.filter(d=>d!==_)}}connectEmbeddedWallet(_){const d=j=>{setLastSelectedWalletInfo(_),this.connector.connect({jsBridgeKey:_.jsBridgeKey},j)},k=appState.connectRequestParameters;(k==null?void 0:k.state)==="loading"?this.setConnectRequestParametersCallback(d):d(k==null?void 0:k.value)}openSingleWalletModal(_){return __async(this,null,function*(){return isInTMA()&&sendExpand(),widgetController.openSingleWalletModal(_),new Promise(d=>{const k=this.onStateChange(j=>{const{status:$}=j;$==="opened"&&(k(),d())})})})}}class TonConnectUITracker{constructor(_){__publicField(this,"eventPrefix","ton-connect-ui-"),__publicField(this,"tonConnectUiVersion"),__publicField(this,"tonConnectSdkVersion",null),__publicField(this,"eventDispatcher");var d;this.eventDispatcher=(d=_==null?void 0:_.eventDispatcher)!=null?d:new BrowserEventDispatcher,this.tonConnectUiVersion=_.tonConnectUiVersion,this.init().catch()}get version(){return createVersionInfo({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return __async(this,null,function*(){try{yield this.setRequestVersionHandler(),this.tonConnectSdkVersion=yield this.requestTonConnectSdkVersion()}catch{}})}setRequestVersionHandler(){return __async(this,null,function*(){yield this.eventDispatcher.addEventListener("ton-connect-ui-request-version",()=>__async(this,null,function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-ui-response-version",createResponseVersionEvent(this.tonConnectUiVersion))}))})}requestTonConnectSdkVersion(){return __async(this,null,function*(){return new Promise((_,d)=>__async(this,null,function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-response-version",k=>{_(k.detail.version)},{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-request-version",createRequestVersionEvent())}catch(k){d(k)}}))})}dispatchUserActionEvent(_){var d;try{(d=this.eventDispatcher)==null||d.dispatchEvent(`${this.eventPrefix}${_.type}`,_).catch()}catch{}}trackConnectionStarted(..._){try{const d=createConnectionStartedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionCompleted(..._){try{const d=createConnectionCompletedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionError(..._){try{const d=createConnectionErrorEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionRestoringStarted(..._){try{const d=createConnectionRestoringStartedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionRestoringCompleted(..._){try{const d=createConnectionRestoringCompletedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackConnectionRestoringError(..._){try{const d=createConnectionRestoringErrorEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackDisconnection(..._){try{const d=createDisconnectionEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackTransactionSentForSignature(..._){try{const d=createTransactionSentForSignatureEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackTransactionSigned(..._){try{const d=createTransactionSignedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}trackTransactionSigningFailed(..._){try{const d=createTransactionSigningFailedEvent(this.version,..._);this.dispatchUserActionEvent(d)}catch{}}}const tonConnectUiVersion="2.0.3";class TonConnectUI{constructor(_){if(__publicField(this,"walletInfoStorage",new WalletInfoStorage),__publicField(this,"preferredWalletStorage",new PreferredWalletStorage),__publicField(this,"tracker"),__publicField(this,"walletInfo",null),__publicField(this,"systemThemeChangeUnsubscribe",null),__publicField(this,"actionsConfiguration"),__publicField(this,"walletsList"),__publicField(this,"connectRequestParametersCallback"),__publicField(this,"connector"),__publicField(this,"modal"),__publicField(this,"singleWalletModal"),__publicField(this,"transactionModal"),__publicField(this,"connectionRestored",Promise.resolve(!1)),_&&"connector"in _&&_.connector)this.connector=_.connector;else if(_&&"manifestUrl"in _&&_.manifestUrl)this.connector=new TonConnect({manifestUrl:_.manifestUrl,eventDispatcher:_==null?void 0:_.eventDispatcher});else throw new TonConnectUIError("You have to specify a `manifestUrl` or a `connector` in the options.");this.tracker=new TonConnectUITracker({eventDispatcher:_==null?void 0:_.eventDispatcher,tonConnectUiVersion}),this.modal=new WalletsModalManager({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:j=>{this.connectRequestParametersCallback=j}}),this.singleWalletModal=new SingleWalletModalManager({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:j=>{this.connectRequestParametersCallback=j}}),this.transactionModal=new TransactionModalManager({connector:this.connector}),this.walletsList=this.getWallets(),this.walletsList.then(j=>preloadImages(uniq(j.map($=>$.imageUrl))));const d=this.normalizeWidgetRoot(_==null?void 0:_.widgetRootId);this.subscribeToWalletChange(),(_==null?void 0:_.restoreConnection)!==!1&&(this.connectionRestored=createMacrotaskAsync(()=>__async(this,null,function*(){return this.tracker.trackConnectionRestoringStarted(),yield this.connector.restoreConnection(),this.connector.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):(this.tracker.trackConnectionRestoringError("Connection was not restored"),this.walletInfoStorage.removeWalletInfo()),this.connector.connected}))),this.uiOptions=mergeOptions(_,{uiPreferences:{theme:"SYSTEM"}});const k=this.preferredWalletStorage.getPreferredWalletAppName();setAppState({connector:this.connector,preferredWalletAppName:k}),widgetController.renderApp(d,this)}static getWallets(){return TonConnect.getWallets()}get connected(){return this.connector.connected}get account(){return this.connector.account}get wallet(){return this.connector.wallet?__spreadValues$1(__spreadValues$1({},this.connector.wallet),this.walletInfo):null}set uiOptions(_){var d,k,j,$,et;this.checkButtonRootExist(_.buttonRootId),this.actionsConfiguration=_.actionsConfiguration,(d=_.uiPreferences)!=null&&d.theme?((k=_.uiPreferences)==null?void 0:k.theme)!=="SYSTEM"?((j=this.systemThemeChangeUnsubscribe)==null||j.call(this),setTheme(_.uiPreferences.theme,_.uiPreferences.colorsSet)):(setTheme(getSystemTheme(),_.uiPreferences.colorsSet),this.systemThemeChangeUnsubscribe||(this.systemThemeChangeUnsubscribe=subscribeToThemeChange(setTheme))):($=_.uiPreferences)!=null&&$.colorsSet&&setColors(_.uiPreferences.colorsSet),(et=_.uiPreferences)!=null&&et.borderRadius&&setBorderRadius(_.uiPreferences.borderRadius),setAppState(tt=>{var rt,nt;const ot=mergeOptions(__spreadValues$1(__spreadValues$1(__spreadValues$1(__spreadValues$1({},_.language&&{language:_.language}),!!((rt=_.actionsConfiguration)!=null&&rt.returnStrategy)&&{returnStrategy:_.actionsConfiguration.returnStrategy}),!!((nt=_.actionsConfiguration)!=null&&nt.twaReturnUrl)&&{twaReturnUrl:_.actionsConfiguration.twaReturnUrl}),!!_.walletsListConfiguration&&{walletsListConfiguration:_.walletsListConfiguration}),unwrap(tt));return _.buttonRootId!==void 0&&(ot.buttonRootId=_.buttonRootId),_.enableAndroidBackHandler!==void 0&&(ot.enableAndroidBackHandler=_.enableAndroidBackHandler),ot})}setConnectRequestParameters(_){var d;setAppState({connectRequestParameters:_}),((_==null?void 0:_.state)==="ready"||!_)&&((d=this.connectRequestParametersCallback)==null||d.call(this,_==null?void 0:_.value))}getWallets(){return __async(this,null,function*(){return this.connector.getWallets()})}onStatusChange(_,d){return this.connector.onStatusChange(k=>__async(this,null,function*(){if(k){const j=yield this.getSelectedWalletInfo(k);_(__spreadValues$1(__spreadValues$1({},k),j||this.walletInfoStorage.getWalletInfo()))}else _(k)}),d)}openModal(){return __async(this,null,function*(){return this.modal.open()})}closeModal(_){this.modal.close(_)}onModalStateChange(_){return this.modal.onStateChange(_)}get modalState(){return this.modal.state}openSingleWalletModal(_){return __async(this,null,function*(){return this.singleWalletModal.open(_)})}closeSingleWalletModal(_){this.singleWalletModal.close(_)}onSingleWalletModalStateChange(_){return this.singleWalletModal.onStateChange(_)}get singleWalletModalState(){return this.singleWalletModal.state}connectWallet(){return __async(this,null,function*(){const d=(yield this.getWallets()).find(isWalletInfoCurrentlyEmbedded);return d?yield this.connectEmbeddedWallet(d):yield this.connectExternalWallet()})}disconnect(){return this.tracker.trackDisconnection(this.wallet,"dapp"),widgetController.clearAction(),widgetController.removeSelectedWalletInfo(),this.walletInfoStorage.removeWalletInfo(),this.connector.disconnect()}sendTransaction(_,d){return __async(this,null,function*(){if(this.tracker.trackTransactionSentForSignature(this.wallet,_),!this.connected)throw this.tracker.trackTransactionSigningFailed(this.wallet,_,"Wallet was not connected"),new TonConnectUIError("Connect wallet to send a transaction.");isInTMA()&&sendExpand();const{notifications:k,modals:j,returnStrategy:$,twaReturnUrl:et,skipRedirectToWallet:tt}=this.getModalsAndNotificationsConfiguration(d);widgetController.setAction({name:"confirm-transaction",showNotification:k.includes("before"),openModal:j.includes("before"),sent:!1});const rt=()=>{nt.signal.aborted||(widgetController.setAction({name:"confirm-transaction",showNotification:k.includes("before"),openModal:j.includes("before"),sent:!0}),this.walletInfo&&"universalLink"in this.walletInfo&&(this.walletInfo.openMethod==="universal-link"||this.walletInfo.openMethod==="custom-deeplink")&&(isTelegramUrl(this.walletInfo.universalLink)?redirectToTelegram(this.walletInfo.universalLink,{returnStrategy:$,twaReturnUrl:et||appState.twaReturnUrl,forceRedirect:!1}):redirectToWallet(this.walletInfo.universalLink,this.walletInfo.deepLink,{returnStrategy:$,forceRedirect:!1},()=>{})))},nt=new AbortController,ot=this.onTransactionModalStateChange(at=>{at!=null&&at.openModal||(ot(),at||nt.abort())});try{const at=yield this.waitForSendTransaction({transaction:_,signal:nt.signal},rt);return this.tracker.trackTransactionSigned(this.wallet,_,at),widgetController.setAction({name:"transaction-sent",showNotification:k.includes("success"),openModal:j.includes("success")}),at}catch(at){throw widgetController.setAction({name:"transaction-canceled",showNotification:k.includes("error"),openModal:j.includes("error")}),at instanceof TonConnectError?at:(console.error(at),new TonConnectUIError("Unhandled error:"+at))}finally{ot()}})}connectEmbeddedWallet(_){return __async(this,null,function*(){const d=j=>{setLastSelectedWalletInfo(_),this.connector.connect({jsBridgeKey:_.jsBridgeKey},j)},k=appState.connectRequestParameters;return(k==null?void 0:k.state)==="loading"?this.connectRequestParametersCallback=d:d(k==null?void 0:k.value),yield this.waitForWalletConnection({ignoreErrors:!1})})}connectExternalWallet(){return __async(this,null,function*(){const _=new AbortController;widgetController.openWalletsModal();const d=this.onModalStateChange(k=>{const{status:j,closeReason:$}=k;j!=="opened"&&(d(),$==="action-cancelled"&&_.abort())});return yield this.waitForWalletConnection({ignoreErrors:!0,signal:_.signal})})}waitForWalletConnection(_){return __async(this,null,function*(){return new Promise((d,k)=>{this.tracker.trackConnectionStarted();const{ignoreErrors:j=!1,signal:$=null}=_;if($&&$.aborted)return this.tracker.trackConnectionError("Connection was cancelled"),k(new TonConnectUIError("Wallet was not connected"));const et=nt=>__async(this,null,function*(){if(nt)this.tracker.trackConnectionCompleted(nt),rt(),d(nt);else{if(this.tracker.trackConnectionError("Connection was cancelled"),j)return;rt(),k(new TonConnectUIError("Wallet was not connected"))}}),tt=nt=>{this.tracker.trackConnectionError(nt.message),!j&&(rt(),k(nt))},rt=this.onStatusChange(nt=>et(nt),nt=>tt(nt));$&&$.addEventListener("abort",()=>{rt(),k(new TonConnectUIError("Wallet was not connected"))},{once:!0})})})}waitForSendTransaction(_,d){return __async(this,null,function*(){return new Promise((k,j)=>{const{transaction:$,signal:et}=_;if(et.aborted)return this.tracker.trackTransactionSigningFailed(this.wallet,$,"Transaction was cancelled"),j(new TonConnectUIError("Transaction was not sent"));const tt=ot=>__async(this,null,function*(){k(ot)}),rt=ot=>{j(ot)},nt=()=>{this.tracker.trackTransactionSigningFailed(this.wallet,$,"Transaction was cancelled"),j(new TonConnectUIError("Transaction was not sent"))};et.addEventListener("abort",nt,{once:!0}),this.connector.sendTransaction($,{onRequestSent:d,signal:et}).then(ot=>(et.removeEventListener("abort",nt),tt(ot))).catch(ot=>(et.removeEventListener("abort",nt),rt(ot)))})})}onTransactionModalStateChange(_){return this.transactionModal.onStateChange(_)}subscribeToWalletChange(){this.connector.onStatusChange(_=>__async(this,null,function*(){var d;_?(yield this.updateWalletInfo(_),this.setPreferredWalletAppName(((d=this.walletInfo)==null?void 0:d.appName)||_.device.appName)):this.walletInfoStorage.removeWalletInfo()}))}setPreferredWalletAppName(_){this.preferredWalletStorage.setPreferredWalletAppName(_),setAppState({preferredWalletAppName:_})}getSelectedWalletInfo(_){return __async(this,null,function*(){let d=widgetController.getSelectedWalletInfo();if(!d)return null;let k;if("name"in d)k=d;else{const $=applyWalletsListConfiguration(yield this.walletsList,appState.walletsListConfiguration).find(et=>eqWalletName(et,_.device.appName));if(!$)throw new TonConnectUIError(`Cannot find WalletInfo for the '${_.device.appName}' wallet`);k=__spreadValues$1(__spreadValues$1({},$),d)}return k})}updateWalletInfo(_){return __async(this,null,function*(){const d=yield this.getSelectedWalletInfo(_);if(d){this.walletInfo=d,this.walletInfoStorage.setWalletInfo(d);return}const k=this.walletInfoStorage.getWalletInfo();if(k){this.walletInfo=k;return}this.walletInfo=(yield this.walletsList).find(j=>eqWalletName(j,_.device.appName))||null})}normalizeWidgetRoot(_){if(!_||!document.getElementById(_)){_="tc-widget-root";const d=document.createElement("div");d.id=_,document.body.appendChild(d)}return _}checkButtonRootExist(_){if(_!=null&&!document.getElementById(_))throw new TonConnectUIError(`${_} element not found in the document.`)}getModalsAndNotificationsConfiguration(_){var d,k,j,$,et,tt;const rt=["before","success","error"];let nt=rt;(d=this.actionsConfiguration)!=null&&d.notifications&&((k=this.actionsConfiguration)==null?void 0:k.notifications)!=="all"&&(nt=this.actionsConfiguration.notifications),_!=null&&_.notifications&&(_.notifications==="all"?nt=rt:nt=_.notifications);let ot=["before"];(j=this.actionsConfiguration)!=null&&j.modals&&(this.actionsConfiguration.modals==="all"?ot=rt:ot=this.actionsConfiguration.modals),_!=null&&_.modals&&(_.modals==="all"?ot=rt:ot=_.modals);const at=(_==null?void 0:_.returnStrategy)||(($=this.actionsConfiguration)==null?void 0:$.returnStrategy)||"back",it=(_==null?void 0:_.twaReturnUrl)||((et=this.actionsConfiguration)==null?void 0:et.twaReturnUrl);let dt=(_==null?void 0:_.skipRedirectToWallet)||((tt=this.actionsConfiguration)==null?void 0:tt.skipRedirectToWallet)||"ios";return isInTMA()&&(dt="never"),{notifications:nt,modals:ot,returnStrategy:at,twaReturnUrl:it,skipRedirectToWallet:dt}}}var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(b,_,d)=>_ in b?__defProp(b,_,{enumerable:!0,configurable:!0,writable:!0,value:d}):b[_]=d,__spreadValues=(b,_)=>{for(var d in _||(_={}))__hasOwnProp.call(_,d)&&__defNormalProp(b,d,_[d]);if(__getOwnPropSymbols)for(var d of __getOwnPropSymbols(_))__propIsEnum.call(_,d)&&__defNormalProp(b,d,_[d]);return b},__objRest=(b,_)=>{var d={};for(var k in b)__hasOwnProp.call(b,k)&&_.indexOf(k)<0&&(d[k]=b[k]);if(b!=null&&__getOwnPropSymbols)for(var k of __getOwnPropSymbols(b))_.indexOf(k)<0&&__propIsEnum.call(b,k)&&(d[k]=b[k]);return d},jsxRuntime={exports:{}},reactJsxRuntime_production_min={};/** * @license React * react-jsx-runtime.production.min.js * @@ -1097,9 +1097,9 @@ PERFORMANCE OF THIS SOFTWARE. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var hasRequiredReactJsxRuntime_production_min;function requireReactJsxRuntime_production_min(){if(hasRequiredReactJsxRuntime_production_min)return reactJsxRuntime_production_min;hasRequiredReactJsxRuntime_production_min=1;var b=require$$0$1,_=Symbol.for("react.element"),d=Symbol.for("react.fragment"),k=Object.prototype.hasOwnProperty,j=b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$={key:!0,ref:!0,__self:!0,__source:!0};function et(tt,rt,nt){var ot,at={},it=null,dt=null;nt!==void 0&&(it=""+nt),rt.key!==void 0&&(it=""+rt.key),rt.ref!==void 0&&(dt=rt.ref);for(ot in rt)k.call(rt,ot)&&!$.hasOwnProperty(ot)&&(at[ot]=rt[ot]);if(tt&&tt.defaultProps)for(ot in rt=tt.defaultProps,rt)at[ot]===void 0&&(at[ot]=rt[ot]);return{$$typeof:_,type:tt,key:it,ref:dt,props:at,_owner:j.current}}return reactJsxRuntime_production_min.Fragment=d,reactJsxRuntime_production_min.jsx=et,reactJsxRuntime_production_min.jsxs=et,reactJsxRuntime_production_min}(function(b){b.exports=requireReactJsxRuntime_production_min()})(jsxRuntime);const jsx=jsxRuntime.exports.jsx;function isClientSide(){return typeof window<"u"}function isServerSide(){return!isClientSide()}const TonConnectUIContext=reactExports.createContext(null);let tonConnectUI=null;const TonConnectUIProvider=b=>{var _=b,{children:d}=_,k=__objRest(_,["children"]);return isClientSide()&&!tonConnectUI&&(tonConnectUI=new TonConnectUI(k)),jsx(TonConnectUIContext.Provider,{value:tonConnectUI,children:d})},TonConnectUIProvider$1=reactExports.memo(TonConnectUIProvider);class TonConnectUIReactError extends TonConnectUIError{constructor(..._){super(..._),Object.setPrototypeOf(this,TonConnectUIReactError.prototype)}}class TonConnectProviderNotSetError extends TonConnectUIReactError{constructor(..._){super(..._),Object.setPrototypeOf(this,TonConnectProviderNotSetError.prototype)}}function checkProvider(b){if(!b)throw new TonConnectProviderNotSetError("You should add on the top of the app to use TonConnect");return!0}function useTonConnectUI(){const b=reactExports.useContext(TonConnectUIContext),_=reactExports.useCallback(d=>{b&&(b.uiOptions=d)},[b]);return isServerSide()?[null,()=>{}]:(checkProvider(b),[b,_])}const buttonRootId="ton-connect-button",TonConnectButton=({className:b,style:_})=>{const[d,k]=useTonConnectUI();return reactExports.useEffect(()=>(k({buttonRootId}),()=>k({buttonRootId:null})),[k]),jsx("div",{id:buttonRootId,className:b,style:__spreadValues({width:"fit-content"},_)})},TonConnectButton$1=reactExports.memo(TonConnectButton);function useTonWallet(){const[b]=useTonConnectUI(),[_,d]=reactExports.useState((b==null?void 0:b.wallet)||null);return reactExports.useEffect(()=>{if(b)return d(b.wallet),b.onStatusChange(k=>{d(k)})},[b]),_}const footer="",style$2="",defaultColors={[THEME.LIGHT]:{constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#0098EA",telegramButton:"#0098EA",icon:{primary:"#0F0F0F",secondary:"#7A8999",tertiary:"#C1CAD2",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#FFFFFF",secondary:"#F1F3F5",segment:"#FFFFFF",tint:"#F1F3F5",qr:"#F1F3F5"},text:{primary:"#0F0F0F",secondary:"#6A7785"}},[THEME.DARK]:{constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#E5E5EA",telegramButton:"#31A6F5",icon:{primary:"#E5E5EA",secondary:"#909099",tertiary:"#434347",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#121214",secondary:"#18181A",segment:"#262629",tint:"#222224",qr:"#F1F3F5"},text:{primary:"#E5E5EA",secondary:"#7D7D85"}}},ColorsSelect=({theme:b})=>{const[_,d]=useTonConnectUI(),[k,j]=reactExports.useState(defaultColors[b]);reactExports.useEffect(()=>{j(defaultColors[b])},[b]);const $=(et,tt,rt)=>{d({uiPreferences:{colorsSet:{[b]:{[tt]:rt?{...k[tt],[rt]:et}:et}}}}),j(nt=>({...nt,[tt]:rt?{...nt[tt],[rt]:et}:et})),defaultColors[b]={...defaultColors[b],[tt]:rt?{...k[tt],[rt]:et}:et}};return jsx$1("div",{className:"colors-container",children:Object.entries(k).map(([et,tt])=>typeof tt=="object"?jsxs("div",{children:[jsxs("span",{children:[et,":"]}),Object.entries(tt).map(([rt,nt])=>jsxs("label",{children:[rt,jsx$1("input",{type:"color",value:k[et][rt],onChange:ot=>$(ot.target.value,et,rt)})]},et+rt))]},et):jsxs("div",{children:[jsxs("span",{children:[et,":"]}),jsx$1("label",{children:jsx$1("input",{type:"color",value:k[et],onChange:rt=>$(rt.target.value,et)})})]}))})},style$1="",ColorsModal=()=>{const[b,_]=reactExports.useState(!1),[d,k]=reactExports.useState(THEME.LIGHT);return jsxs(Fragment,{children:[jsx$1("button",{onClick:()=>_(!0),children:"change colors"}),b&&jsxs("div",{className:"modal",children:[jsx$1("button",{onClick:()=>_(!1),children:"close"}),jsxs("div",{className:"modal__toggle",children:[jsx$1("a",{href:"#",style:{color:d===THEME.LIGHT?"blue":"white"},onClick:()=>k(THEME.LIGHT),children:"LIGHT"}),jsx$1("a",{href:"#",style:{color:d===THEME.DARK?"blue":"white"},onClick:()=>k(THEME.DARK),children:"DARK"})]}),jsx$1(ColorsSelect,{theme:d})]})]})},Footer=()=>{const[b,_]=reactExports.useState([!0,!1,!1,!0,!0,!0]),[d,k]=reactExports.useState("back"),[j,$]=reactExports.useState("ios"),[et,tt]=useTonConnectUI(),rt=ut=>{tt({language:ut})},nt=ut=>{tt({uiPreferences:{theme:ut}})},ot=ut=>{tt({uiPreferences:{borderRadius:ut}})},at=ut=>{_(ht=>ht.map((ft,st)=>st===ut?!ft:ft))},it=()=>{if(!d){k("back");return}tt({actionsConfiguration:{returnStrategy:d}})},dt=()=>{if(!j){$("ios");return}tt({actionsConfiguration:{skipRedirectToWallet:j}})};return reactExports.useEffect(()=>{const ut=["before","success","error"],ht=ut.map((st,ct)=>b[ct]?st:void 0).filter(st=>st),ft=ut.map((st,ct)=>b[ct+3]?st:void 0).filter(st=>st);tt({actionsConfiguration:{modals:ht,notifications:ft}})},[b]),jsxs("footer",{className:"footer",children:[jsxs("div",{children:[jsx$1("label",{children:"language"}),jsxs("select",{onChange:ut=>rt(ut.target.value),children:[jsx$1("option",{value:"en",children:"en"}),jsx$1("option",{value:"ru",children:"ru"})]})]}),jsxs("div",{children:[jsx$1("label",{children:"theme"}),jsxs("select",{onChange:ut=>nt(ut.target.value),children:[jsx$1("option",{value:THEME.DARK,children:"dark"}),jsx$1("option",{value:THEME.LIGHT,children:"light"}),jsx$1("option",{value:"SYSTEM",children:"system"})]})]}),jsxs("div",{children:[jsx$1("label",{children:"borders"}),jsxs("select",{onChange:ut=>ot(ut.target.value),children:[jsx$1("option",{value:"m",children:"m"}),jsx$1("option",{value:"s",children:"s"}),jsx$1("option",{value:"none",children:"none"})]})]}),jsxs("div",{className:"footer-checkbox-container",children:[jsx$1("span",{children:"modals"}),jsxs("label",{children:["before",jsx$1("input",{type:"checkbox",checked:b[0],onChange:()=>at(0)})]}),jsxs("label",{children:["success",jsx$1("input",{type:"checkbox",checked:b[1],onChange:()=>at(1)})]}),jsxs("label",{children:["error",jsx$1("input",{type:"checkbox",checked:b[2],onChange:()=>at(2)})]})]}),jsxs("div",{className:"footer-checkbox-container",children:[jsx$1("span",{children:"notifications"}),jsxs("label",{children:["before",jsx$1("input",{type:"checkbox",checked:b[3],onChange:()=>at(3)})]}),jsxs("label",{children:["success",jsx$1("input",{type:"checkbox",checked:b[4],onChange:()=>at(4)})]}),jsxs("label",{children:["error",jsx$1("input",{type:"checkbox",checked:b[5],onChange:()=>at(5)})]})]}),jsx$1("div",{children:jsx$1(ColorsModal,{})}),jsx$1("div",{children:jsxs("label",{children:["return strategy:",jsx$1("input",{style:{width:"200px"},value:d,onChange:ut=>k(ut.target.value),onBlur:it})]})}),jsx$1("div",{children:jsxs("label",{children:[jsx$1("div",{children:"skip redirect to wallet:"}),jsx$1("div",{children:"('ios', 'never', 'always')"}),jsx$1("input",{style:{width:"200px"},value:j,onChange:ut=>$(ut.target.value),onBlur:dt})]})})]})},header="",Header=()=>jsxs("header",{children:[jsx$1("span",{children:"My App with React UI"}),jsx$1(TonConnectButton$1,{})]});var main={exports:{}};(function(b,_){(function(d,k){b.exports=k(reactExports)})(commonjsGlobal,function(d){return function(k){var j={};function $(et){if(j[et])return j[et].exports;var tt=j[et]={i:et,l:!1,exports:{}};return k[et].call(tt.exports,tt,tt.exports,$),tt.l=!0,tt.exports}return $.m=k,$.c=j,$.d=function(et,tt,rt){$.o(et,tt)||Object.defineProperty(et,tt,{enumerable:!0,get:rt})},$.r=function(et){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(et,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(et,"__esModule",{value:!0})},$.t=function(et,tt){if(1&tt&&(et=$(et)),8&tt||4&tt&&typeof et=="object"&&et&&et.__esModule)return et;var rt=Object.create(null);if($.r(rt),Object.defineProperty(rt,"default",{enumerable:!0,value:et}),2&tt&&typeof et!="string")for(var nt in et)$.d(rt,nt,(function(ot){return et[ot]}).bind(null,nt));return rt},$.n=function(et){var tt=et&&et.__esModule?function(){return et.default}:function(){return et};return $.d(tt,"a",tt),tt},$.o=function(et,tt){return Object.prototype.hasOwnProperty.call(et,tt)},$.p="",$($.s=48)}([function(k,j){k.exports=d},function(k,j){var $=k.exports={version:"2.6.12"};typeof __e=="number"&&(__e=$)},function(k,j,$){var et=$(26)("wks"),tt=$(17),rt=$(3).Symbol,nt=typeof rt=="function";(k.exports=function(ot){return et[ot]||(et[ot]=nt&&rt[ot]||(nt?rt:tt)("Symbol."+ot))}).store=et},function(k,j){var $=k.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=$)},function(k,j,$){k.exports=!$(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(k,j){var $={}.hasOwnProperty;k.exports=function(et,tt){return $.call(et,tt)}},function(k,j,$){var et=$(7),tt=$(16);k.exports=$(4)?function(rt,nt,ot){return et.f(rt,nt,tt(1,ot))}:function(rt,nt,ot){return rt[nt]=ot,rt}},function(k,j,$){var et=$(10),tt=$(35),rt=$(23),nt=Object.defineProperty;j.f=$(4)?Object.defineProperty:function(ot,at,it){if(et(ot),at=rt(at,!0),et(it),tt)try{return nt(ot,at,it)}catch{}if("get"in it||"set"in it)throw TypeError("Accessors not supported!");return"value"in it&&(ot[at]=it.value),ot}},function(k,j){k.exports=function($){try{return!!$()}catch{return!0}}},function(k,j,$){var et=$(40),tt=$(22);k.exports=function(rt){return et(tt(rt))}},function(k,j,$){var et=$(11);k.exports=function(tt){if(!et(tt))throw TypeError(tt+" is not an object!");return tt}},function(k,j){k.exports=function($){return typeof $=="object"?$!==null:typeof $=="function"}},function(k,j){k.exports={}},function(k,j,$){var et=$(39),tt=$(27);k.exports=Object.keys||function(rt){return et(rt,tt)}},function(k,j){k.exports=!0},function(k,j,$){var et=$(3),tt=$(1),rt=$(53),nt=$(6),ot=$(5),at=function(it,dt,ut){var ht,ft,st,ct=it&at.F,pt=it&at.G,lt=it&at.S,wt=it&at.P,yt=it&at.B,vt=it&at.W,St=pt?tt:tt[dt]||(tt[dt]={}),xt=St.prototype,bt=pt?et:lt?et[dt]:(et[dt]||{}).prototype;for(ht in pt&&(ut=dt),ut)(ft=!ct&&bt&&bt[ht]!==void 0)&&ot(St,ht)||(st=ft?bt[ht]:ut[ht],St[ht]=pt&&typeof bt[ht]!="function"?ut[ht]:yt&&ft?rt(st,et):vt&&bt[ht]==st?function(At){var _t=function(Ct,Mt,jt){if(this instanceof At){switch(arguments.length){case 0:return new At;case 1:return new At(Ct);case 2:return new At(Ct,Mt)}return new At(Ct,Mt,jt)}return At.apply(this,arguments)};return _t.prototype=At.prototype,_t}(st):wt&&typeof st=="function"?rt(Function.call,st):st,wt&&((St.virtual||(St.virtual={}))[ht]=st,it&at.R&&xt&&!xt[ht]&&nt(xt,ht,st)))};at.F=1,at.G=2,at.S=4,at.P=8,at.B=16,at.W=32,at.U=64,at.R=128,k.exports=at},function(k,j){k.exports=function($,et){return{enumerable:!(1&$),configurable:!(2&$),writable:!(4&$),value:et}}},function(k,j){var $=0,et=Math.random();k.exports=function(tt){return"Symbol(".concat(tt===void 0?"":tt,")_",(++$+et).toString(36))}},function(k,j,$){var et=$(22);k.exports=function(tt){return Object(et(tt))}},function(k,j){j.f={}.propertyIsEnumerable},function(k,j,$){var et=$(52)(!0);$(34)(String,"String",function(tt){this._t=String(tt),this._i=0},function(){var tt,rt=this._t,nt=this._i;return nt>=rt.length?{value:void 0,done:!0}:(tt=et(rt,nt),this._i+=tt.length,{value:tt,done:!1})})},function(k,j){var $=Math.ceil,et=Math.floor;k.exports=function(tt){return isNaN(tt=+tt)?0:(tt>0?et:$)(tt)}},function(k,j){k.exports=function($){if($==null)throw TypeError("Can't call method on "+$);return $}},function(k,j,$){var et=$(11);k.exports=function(tt,rt){if(!et(tt))return tt;var nt,ot;if(rt&&typeof(nt=tt.toString)=="function"&&!et(ot=nt.call(tt))||typeof(nt=tt.valueOf)=="function"&&!et(ot=nt.call(tt))||!rt&&typeof(nt=tt.toString)=="function"&&!et(ot=nt.call(tt)))return ot;throw TypeError("Can't convert object to primitive value")}},function(k,j){var $={}.toString;k.exports=function(et){return $.call(et).slice(8,-1)}},function(k,j,$){var et=$(26)("keys"),tt=$(17);k.exports=function(rt){return et[rt]||(et[rt]=tt(rt))}},function(k,j,$){var et=$(1),tt=$(3),rt=tt["__core-js_shared__"]||(tt["__core-js_shared__"]={});(k.exports=function(nt,ot){return rt[nt]||(rt[nt]=ot!==void 0?ot:{})})("versions",[]).push({version:et.version,mode:$(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(k,j){k.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(k,j,$){var et=$(7).f,tt=$(5),rt=$(2)("toStringTag");k.exports=function(nt,ot,at){nt&&!tt(nt=at?nt:nt.prototype,rt)&&et(nt,rt,{configurable:!0,value:ot})}},function(k,j,$){$(62);for(var et=$(3),tt=$(6),rt=$(12),nt=$(2)("toStringTag"),ot="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),at=0;atdocument.F=Object<\/script>"),it.close(),at=it.F;ut--;)delete at.prototype[rt[ut]];return at()};k.exports=Object.create||function(it,dt){var ut;return it!==null?(ot.prototype=et(it),ut=new ot,ot.prototype=null,ut[nt]=it):ut=at(),dt===void 0?ut:tt(ut,dt)}},function(k,j,$){var et=$(5),tt=$(9),rt=$(57)(!1),nt=$(25)("IE_PROTO");k.exports=function(ot,at){var it,dt=tt(ot),ut=0,ht=[];for(it in dt)it!=nt&&et(dt,it)&&ht.push(it);for(;at.length>ut;)et(dt,it=at[ut++])&&(~rt(ht,it)||ht.push(it));return ht}},function(k,j,$){var et=$(24);k.exports=Object("z").propertyIsEnumerable(0)?Object:function(tt){return et(tt)=="String"?tt.split(""):Object(tt)}},function(k,j,$){var et=$(39),tt=$(27).concat("length","prototype");j.f=Object.getOwnPropertyNames||function(rt){return et(rt,tt)}},function(k,j,$){var et=$(24),tt=$(2)("toStringTag"),rt=et(function(){return arguments}())=="Arguments";k.exports=function(nt){var ot,at,it;return nt===void 0?"Undefined":nt===null?"Null":typeof(at=function(dt,ut){try{return dt[ut]}catch{}}(ot=Object(nt),tt))=="string"?at:rt?et(ot):(it=et(ot))=="Object"&&typeof ot.callee=="function"?"Arguments":it}},function(k,j){var $;$=function(){return this}();try{$=$||new Function("return this")()}catch{typeof window=="object"&&($=window)}k.exports=$},function(k,j){var $=/-?\d+(\.\d+)?%?/g;k.exports=function(et){return et.match($)}},function(k,j,$){Object.defineProperty(j,"__esModule",{value:!0}),j.getBase16Theme=j.createStyling=j.invertTheme=void 0;var et=ft($(49)),tt=ft($(76)),rt=ft($(81)),nt=ft($(89)),ot=ft($(93)),at=function(xt){if(xt&&xt.__esModule)return xt;var bt={};if(xt!=null)for(var At in xt)Object.prototype.hasOwnProperty.call(xt,At)&&(bt[At]=xt[At]);return bt.default=xt,bt}($(94)),it=ft($(132)),dt=ft($(133)),ut=ft($(138)),ht=$(139);function ft(xt){return xt&&xt.__esModule?xt:{default:xt}}var st=at.default,ct=(0,nt.default)(st),pt=(0,ut.default)(dt.default,ht.rgb2yuv,function(xt){var bt,At=(0,rt.default)(xt,3),_t=At[0],Ct=At[1],Mt=At[2];return[(bt=_t,bt<.25?1:bt<.5?.9-bt:1.1-bt),Ct,Mt]},ht.yuv2rgb,it.default),lt=function(xt){return function(bt){return{className:[bt.className,xt.className].filter(Boolean).join(" "),style:(0,tt.default)({},bt.style||{},xt.style||{})}}},wt=function(xt,bt){var At=(0,nt.default)(bt);for(var _t in xt)At.indexOf(_t)===-1&&At.push(_t);return At.reduce(function(Ct,Mt){return Ct[Mt]=function(jt,Rt){if(jt===void 0)return Rt;if(Rt===void 0)return jt;var zt=jt===void 0?"undefined":(0,et.default)(jt),Xt=Rt===void 0?"undefined":(0,et.default)(Rt);switch(zt){case"string":switch(Xt){case"string":return[Rt,jt].filter(Boolean).join(" ");case"object":return lt({className:jt,style:Rt});case"function":return function(Jt){for(var Kt=arguments.length,Zt=Array(Kt>1?Kt-1:0),dn=1;dn1?Kt-1:0),dn=1;dn1?Kt-1:0),dn=1;dn1?Kt-1:0),dn=1;dn1?Kt-1:0),dn=1;dn2?At-2:0),Ct=2;Ct3?bt-3:0),_t=3;_t1&&arguments[1]!==void 0?arguments[1]:{},Mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},jt=Ct.defaultBase16,Rt=jt===void 0?st:jt,zt=Ct.base16Themes,Xt=zt===void 0?null:zt,Jt=St(Mt,Xt);Jt&&(Mt=(0,tt.default)({},Jt,Mt));var Kt=ct.reduce(function(En,yn){return En[yn]=Mt[yn]||Rt[yn],En},{}),Zt=(0,nt.default)(Mt).reduce(function(En,yn){return ct.indexOf(yn)===-1&&(En[yn]=Mt[yn]),En},{}),dn=xt(Kt),An=wt(Zt,dn);return(0,ot.default)(yt,2).apply(void 0,[An].concat(At))},3),j.getBase16Theme=function(xt,bt){if(xt&&xt.extend&&(xt=xt.extend),typeof xt=="string"){var At=xt.split(":"),_t=(0,rt.default)(At,2),Ct=_t[0],Mt=_t[1];xt=(bt||{})[Ct]||at[Ct],Mt==="inverted"&&(xt=vt(xt))}return xt&&xt.hasOwnProperty("base00")?xt:void 0})},function(k,j,$){var et,tt=typeof Reflect=="object"?Reflect:null,rt=tt&&typeof tt.apply=="function"?tt.apply:function(lt,wt,yt){return Function.prototype.apply.call(lt,wt,yt)};et=tt&&typeof tt.ownKeys=="function"?tt.ownKeys:Object.getOwnPropertySymbols?function(lt){return Object.getOwnPropertyNames(lt).concat(Object.getOwnPropertySymbols(lt))}:function(lt){return Object.getOwnPropertyNames(lt)};var nt=Number.isNaN||function(lt){return lt!=lt};function ot(){ot.init.call(this)}k.exports=ot,k.exports.once=function(lt,wt){return new Promise(function(yt,vt){function St(){xt!==void 0&<.removeListener("error",xt),yt([].slice.call(arguments))}var xt;wt!=="error"&&(xt=function(bt){lt.removeListener(wt,St),vt(bt)},lt.once("error",xt)),lt.once(wt,St)})},ot.EventEmitter=ot,ot.prototype._events=void 0,ot.prototype._eventsCount=0,ot.prototype._maxListeners=void 0;var at=10;function it(lt){if(typeof lt!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof lt)}function dt(lt){return lt._maxListeners===void 0?ot.defaultMaxListeners:lt._maxListeners}function ut(lt,wt,yt,vt){var St,xt,bt,At;if(it(yt),(xt=lt._events)===void 0?(xt=lt._events=Object.create(null),lt._eventsCount=0):(xt.newListener!==void 0&&(lt.emit("newListener",wt,yt.listener?yt.listener:yt),xt=lt._events),bt=xt[wt]),bt===void 0)bt=xt[wt]=yt,++lt._eventsCount;else if(typeof bt=="function"?bt=xt[wt]=vt?[yt,bt]:[bt,yt]:vt?bt.unshift(yt):bt.push(yt),(St=dt(lt))>0&&bt.length>St&&!bt.warned){bt.warned=!0;var _t=new Error("Possible EventEmitter memory leak detected. "+bt.length+" "+String(wt)+" listeners added. Use emitter.setMaxListeners() to increase limit");_t.name="MaxListenersExceededWarning",_t.emitter=lt,_t.type=wt,_t.count=bt.length,At=_t,console&&console.warn&&console.warn(At)}return lt}function ht(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function ft(lt,wt,yt){var vt={fired:!1,wrapFn:void 0,target:lt,type:wt,listener:yt},St=ht.bind(vt);return St.listener=yt,vt.wrapFn=St,St}function st(lt,wt,yt){var vt=lt._events;if(vt===void 0)return[];var St=vt[wt];return St===void 0?[]:typeof St=="function"?yt?[St.listener||St]:[St]:yt?function(xt){for(var bt=new Array(xt.length),At=0;At0&&(xt=wt[0]),xt instanceof Error)throw xt;var bt=new Error("Unhandled error."+(xt?" ("+xt.message+")":""));throw bt.context=xt,bt}var At=St[lt];if(At===void 0)return!1;if(typeof At=="function")rt(At,this,wt);else{var _t=At.length,Ct=pt(At,_t);for(yt=0;yt<_t;++yt)rt(Ct[yt],this,wt)}return!0},ot.prototype.addListener=function(lt,wt){return ut(this,lt,wt,!1)},ot.prototype.on=ot.prototype.addListener,ot.prototype.prependListener=function(lt,wt){return ut(this,lt,wt,!0)},ot.prototype.once=function(lt,wt){return it(wt),this.on(lt,ft(this,lt,wt)),this},ot.prototype.prependOnceListener=function(lt,wt){return it(wt),this.prependListener(lt,ft(this,lt,wt)),this},ot.prototype.removeListener=function(lt,wt){var yt,vt,St,xt,bt;if(it(wt),(vt=this._events)===void 0)return this;if((yt=vt[lt])===void 0)return this;if(yt===wt||yt.listener===wt)--this._eventsCount==0?this._events=Object.create(null):(delete vt[lt],vt.removeListener&&this.emit("removeListener",lt,yt.listener||wt));else if(typeof yt!="function"){for(St=-1,xt=yt.length-1;xt>=0;xt--)if(yt[xt]===wt||yt[xt].listener===wt){bt=yt[xt].listener,St=xt;break}if(St<0)return this;St===0?yt.shift():function(At,_t){for(;_t+1=0;vt--)this.removeListener(lt,wt[vt]);return this},ot.prototype.listeners=function(lt){return st(this,lt,!0)},ot.prototype.rawListeners=function(lt){return st(this,lt,!1)},ot.listenerCount=function(lt,wt){return typeof lt.listenerCount=="function"?lt.listenerCount(wt):ct.call(lt,wt)},ot.prototype.listenerCount=ct,ot.prototype.eventNames=function(){return this._eventsCount>0?et(this._events):[]}},function(k,j,$){k.exports.Dispatcher=$(140)},function(k,j,$){k.exports=$(142)},function(k,j,$){j.__esModule=!0;var et=nt($(50)),tt=nt($(65)),rt=typeof tt.default=="function"&&typeof et.default=="symbol"?function(ot){return typeof ot}:function(ot){return ot&&typeof tt.default=="function"&&ot.constructor===tt.default&&ot!==tt.default.prototype?"symbol":typeof ot};function nt(ot){return ot&&ot.__esModule?ot:{default:ot}}j.default=typeof tt.default=="function"&&rt(et.default)==="symbol"?function(ot){return ot===void 0?"undefined":rt(ot)}:function(ot){return ot&&typeof tt.default=="function"&&ot.constructor===tt.default&&ot!==tt.default.prototype?"symbol":ot===void 0?"undefined":rt(ot)}},function(k,j,$){k.exports={default:$(51),__esModule:!0}},function(k,j,$){$(20),$(29),k.exports=$(30).f("iterator")},function(k,j,$){var et=$(21),tt=$(22);k.exports=function(rt){return function(nt,ot){var at,it,dt=String(tt(nt)),ut=et(ot),ht=dt.length;return ut<0||ut>=ht?rt?"":void 0:(at=dt.charCodeAt(ut))<55296||at>56319||ut+1===ht||(it=dt.charCodeAt(ut+1))<56320||it>57343?rt?dt.charAt(ut):at:rt?dt.slice(ut,ut+2):it-56320+(at-55296<<10)+65536}}},function(k,j,$){var et=$(54);k.exports=function(tt,rt,nt){if(et(tt),rt===void 0)return tt;switch(nt){case 1:return function(ot){return tt.call(rt,ot)};case 2:return function(ot,at){return tt.call(rt,ot,at)};case 3:return function(ot,at,it){return tt.call(rt,ot,at,it)}}return function(){return tt.apply(rt,arguments)}}},function(k,j){k.exports=function($){if(typeof $!="function")throw TypeError($+" is not a function!");return $}},function(k,j,$){var et=$(38),tt=$(16),rt=$(28),nt={};$(6)(nt,$(2)("iterator"),function(){return this}),k.exports=function(ot,at,it){ot.prototype=et(nt,{next:tt(1,it)}),rt(ot,at+" Iterator")}},function(k,j,$){var et=$(7),tt=$(10),rt=$(13);k.exports=$(4)?Object.defineProperties:function(nt,ot){tt(nt);for(var at,it=rt(ot),dt=it.length,ut=0;dt>ut;)et.f(nt,at=it[ut++],ot[at]);return nt}},function(k,j,$){var et=$(9),tt=$(58),rt=$(59);k.exports=function(nt){return function(ot,at,it){var dt,ut=et(ot),ht=tt(ut.length),ft=rt(it,ht);if(nt&&at!=at){for(;ht>ft;)if((dt=ut[ft++])!=dt)return!0}else for(;ht>ft;ft++)if((nt||ft in ut)&&ut[ft]===at)return nt||ft||0;return!nt&&-1}}},function(k,j,$){var et=$(21),tt=Math.min;k.exports=function(rt){return rt>0?tt(et(rt),9007199254740991):0}},function(k,j,$){var et=$(21),tt=Math.max,rt=Math.min;k.exports=function(nt,ot){return(nt=et(nt))<0?tt(nt+ot,0):rt(nt,ot)}},function(k,j,$){var et=$(3).document;k.exports=et&&et.documentElement},function(k,j,$){var et=$(5),tt=$(18),rt=$(25)("IE_PROTO"),nt=Object.prototype;k.exports=Object.getPrototypeOf||function(ot){return ot=tt(ot),et(ot,rt)?ot[rt]:typeof ot.constructor=="function"&&ot instanceof ot.constructor?ot.constructor.prototype:ot instanceof Object?nt:null}},function(k,j,$){var et=$(63),tt=$(64),rt=$(12),nt=$(9);k.exports=$(34)(Array,"Array",function(ot,at){this._t=nt(ot),this._i=0,this._k=at},function(){var ot=this._t,at=this._k,it=this._i++;return!ot||it>=ot.length?(this._t=void 0,tt(1)):tt(0,at=="keys"?it:at=="values"?ot[it]:[it,ot[it]])},"values"),rt.Arguments=rt.Array,et("keys"),et("values"),et("entries")},function(k,j){k.exports=function(){}},function(k,j){k.exports=function($,et){return{value:et,done:!!$}}},function(k,j,$){k.exports={default:$(66),__esModule:!0}},function(k,j,$){$(67),$(73),$(74),$(75),k.exports=$(1).Symbol},function(k,j,$){var et=$(3),tt=$(5),rt=$(4),nt=$(15),ot=$(37),at=$(68).KEY,it=$(8),dt=$(26),ut=$(28),ht=$(17),ft=$(2),st=$(30),ct=$(31),pt=$(69),lt=$(70),wt=$(10),yt=$(11),vt=$(18),St=$(9),xt=$(23),bt=$(16),At=$(38),_t=$(71),Ct=$(72),Mt=$(32),jt=$(7),Rt=$(13),zt=Ct.f,Xt=jt.f,Jt=_t.f,Kt=et.Symbol,Zt=et.JSON,dn=Zt&&Zt.stringify,An=ft("_hidden"),En=ft("toPrimitive"),yn={}.propertyIsEnumerable,jn=dt("symbol-registry"),Vn=dt("symbols"),rn=dt("op-symbols"),xn=Object.prototype,fn=typeof Kt=="function"&&!!Mt.f,Sn=et.QObject,bn=!Sn||!Sn.prototype||!Sn.prototype.findChild,hn=rt&&it(function(){return At(Xt({},"a",{get:function(){return Xt(this,"a",{value:7}).a}})).a!=7})?function(qt,wn,Nn){var lr=zt(xn,wn);lr&&delete xn[wn],Xt(qt,wn,Nn),lr&&qt!==xn&&Xt(xn,wn,lr)}:Xt,_n=function(qt){var wn=Vn[qt]=At(Kt.prototype);return wn._k=qt,wn},ln=fn&&typeof Kt.iterator=="symbol"?function(qt){return typeof qt=="symbol"}:function(qt){return qt instanceof Kt},Tn=function(qt,wn,Nn){return qt===xn&&Tn(rn,wn,Nn),wt(qt),wn=xt(wn,!0),wt(Nn),tt(Vn,wn)?(Nn.enumerable?(tt(qt,An)&&qt[An][wn]&&(qt[An][wn]=!1),Nn=At(Nn,{enumerable:bt(0,!1)})):(tt(qt,An)||Xt(qt,An,bt(1,{})),qt[An][wn]=!0),hn(qt,wn,Nn)):Xt(qt,wn,Nn)},In=function(qt,wn){wt(qt);for(var Nn,lr=pt(wn=St(wn)),fr=0,Zn=lr.length;Zn>fr;)Tn(qt,Nn=lr[fr++],wn[Nn]);return qt},Ln=function(qt){var wn=yn.call(this,qt=xt(qt,!0));return!(this===xn&&tt(Vn,qt)&&!tt(rn,qt))&&(!(wn||!tt(this,qt)||!tt(Vn,qt)||tt(this,An)&&this[An][qt])||wn)},kn=function(qt,wn){if(qt=St(qt),wn=xt(wn,!0),qt!==xn||!tt(Vn,wn)||tt(rn,wn)){var Nn=zt(qt,wn);return!Nn||!tt(Vn,wn)||tt(qt,An)&&qt[An][wn]||(Nn.enumerable=!0),Nn}},Fn=function(qt){for(var wn,Nn=Jt(St(qt)),lr=[],fr=0;Nn.length>fr;)tt(Vn,wn=Nn[fr++])||wn==An||wn==at||lr.push(wn);return lr},vn=function(qt){for(var wn,Nn=qt===xn,lr=Jt(Nn?rn:St(qt)),fr=[],Zn=0;lr.length>Zn;)!tt(Vn,wn=lr[Zn++])||Nn&&!tt(xn,wn)||fr.push(Vn[wn]);return fr};fn||(ot((Kt=function(){if(this instanceof Kt)throw TypeError("Symbol is not a constructor!");var qt=ht(arguments.length>0?arguments[0]:void 0),wn=function(Nn){this===xn&&wn.call(rn,Nn),tt(this,An)&&tt(this[An],qt)&&(this[An][qt]=!1),hn(this,qt,bt(1,Nn))};return rt&&bn&&hn(xn,qt,{configurable:!0,set:wn}),_n(qt)}).prototype,"toString",function(){return this._k}),Ct.f=kn,jt.f=Tn,$(41).f=_t.f=Fn,$(19).f=Ln,Mt.f=vn,rt&&!$(14)&&ot(xn,"propertyIsEnumerable",Ln,!0),st.f=function(qt){return _n(ft(qt))}),nt(nt.G+nt.W+nt.F*!fn,{Symbol:Kt});for(var Bn="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Pn=0;Bn.length>Pn;)ft(Bn[Pn++]);for(var Un=Rt(ft.store),pn=0;Un.length>pn;)ct(Un[pn++]);nt(nt.S+nt.F*!fn,"Symbol",{for:function(qt){return tt(jn,qt+="")?jn[qt]:jn[qt]=Kt(qt)},keyFor:function(qt){if(!ln(qt))throw TypeError(qt+" is not a symbol!");for(var wn in jn)if(jn[wn]===qt)return wn},useSetter:function(){bn=!0},useSimple:function(){bn=!1}}),nt(nt.S+nt.F*!fn,"Object",{create:function(qt,wn){return wn===void 0?At(qt):In(At(qt),wn)},defineProperty:Tn,defineProperties:In,getOwnPropertyDescriptor:kn,getOwnPropertyNames:Fn,getOwnPropertySymbols:vn});var Vt=it(function(){Mt.f(1)});nt(nt.S+nt.F*Vt,"Object",{getOwnPropertySymbols:function(qt){return Mt.f(vt(qt))}}),Zt&&nt(nt.S+nt.F*(!fn||it(function(){var qt=Kt();return dn([qt])!="[null]"||dn({a:qt})!="{}"||dn(Object(qt))!="{}"})),"JSON",{stringify:function(qt){for(var wn,Nn,lr=[qt],fr=1;arguments.length>fr;)lr.push(arguments[fr++]);if(Nn=wn=lr[1],(yt(wn)||qt!==void 0)&&!ln(qt))return lt(wn)||(wn=function(Zn,vr){if(typeof Nn=="function"&&(vr=Nn.call(this,Zn,vr)),!ln(vr))return vr}),lr[1]=wn,dn.apply(Zt,lr)}}),Kt.prototype[En]||$(6)(Kt.prototype,En,Kt.prototype.valueOf),ut(Kt,"Symbol"),ut(Math,"Math",!0),ut(et.JSON,"JSON",!0)},function(k,j,$){var et=$(17)("meta"),tt=$(11),rt=$(5),nt=$(7).f,ot=0,at=Object.isExtensible||function(){return!0},it=!$(8)(function(){return at(Object.preventExtensions({}))}),dt=function(ht){nt(ht,et,{value:{i:"O"+ ++ot,w:{}}})},ut=k.exports={KEY:et,NEED:!1,fastKey:function(ht,ft){if(!tt(ht))return typeof ht=="symbol"?ht:(typeof ht=="string"?"S":"P")+ht;if(!rt(ht,et)){if(!at(ht))return"F";if(!ft)return"E";dt(ht)}return ht[et].i},getWeak:function(ht,ft){if(!rt(ht,et)){if(!at(ht))return!0;if(!ft)return!1;dt(ht)}return ht[et].w},onFreeze:function(ht){return it&&ut.NEED&&at(ht)&&!rt(ht,et)&&dt(ht),ht}}},function(k,j,$){var et=$(13),tt=$(32),rt=$(19);k.exports=function(nt){var ot=et(nt),at=tt.f;if(at)for(var it,dt=at(nt),ut=rt.f,ht=0;dt.length>ht;)ut.call(nt,it=dt[ht++])&&ot.push(it);return ot}},function(k,j,$){var et=$(24);k.exports=Array.isArray||function(tt){return et(tt)=="Array"}},function(k,j,$){var et=$(9),tt=$(41).f,rt={}.toString,nt=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];k.exports.f=function(ot){return nt&&rt.call(ot)=="[object Window]"?function(at){try{return tt(at)}catch{return nt.slice()}}(ot):tt(et(ot))}},function(k,j,$){var et=$(19),tt=$(16),rt=$(9),nt=$(23),ot=$(5),at=$(35),it=Object.getOwnPropertyDescriptor;j.f=$(4)?it:function(dt,ut){if(dt=rt(dt),ut=nt(ut,!0),at)try{return it(dt,ut)}catch{}if(ot(dt,ut))return tt(!et.f.call(dt,ut),dt[ut])}},function(k,j){},function(k,j,$){$(31)("asyncIterator")},function(k,j,$){$(31)("observable")},function(k,j,$){j.__esModule=!0;var et,tt=$(77),rt=(et=tt)&&et.__esModule?et:{default:et};j.default=rt.default||function(nt){for(var ot=1;otst;)for(var lt,wt=at(arguments[st++]),yt=ct?tt(wt).concat(ct(wt)):tt(wt),vt=yt.length,St=0;vt>St;)lt=yt[St++],et&&!pt.call(wt,lt)||(ht[lt]=wt[lt]);return ht}:it},function(k,j,$){j.__esModule=!0;var et=rt($(82)),tt=rt($(85));function rt(nt){return nt&&nt.__esModule?nt:{default:nt}}j.default=function(nt,ot){if(Array.isArray(nt))return nt;if((0,et.default)(Object(nt)))return function(at,it){var dt=[],ut=!0,ht=!1,ft=void 0;try{for(var st,ct=(0,tt.default)(at);!(ut=(st=ct.next()).done)&&(dt.push(st.value),!it||dt.length!==it);ut=!0);}catch(pt){ht=!0,ft=pt}finally{try{!ut&&ct.return&&ct.return()}finally{if(ht)throw ft}}return dt}(nt,ot);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(k,j,$){k.exports={default:$(83),__esModule:!0}},function(k,j,$){$(29),$(20),k.exports=$(84)},function(k,j,$){var et=$(42),tt=$(2)("iterator"),rt=$(12);k.exports=$(1).isIterable=function(nt){var ot=Object(nt);return ot[tt]!==void 0||"@@iterator"in ot||rt.hasOwnProperty(et(ot))}},function(k,j,$){k.exports={default:$(86),__esModule:!0}},function(k,j,$){$(29),$(20),k.exports=$(87)},function(k,j,$){var et=$(10),tt=$(88);k.exports=$(1).getIterator=function(rt){var nt=tt(rt);if(typeof nt!="function")throw TypeError(rt+" is not iterable!");return et(nt.call(rt))}},function(k,j,$){var et=$(42),tt=$(2)("iterator"),rt=$(12);k.exports=$(1).getIteratorMethod=function(nt){if(nt!=null)return nt[tt]||nt["@@iterator"]||rt[et(nt)]}},function(k,j,$){k.exports={default:$(90),__esModule:!0}},function(k,j,$){$(91),k.exports=$(1).Object.keys},function(k,j,$){var et=$(18),tt=$(13);$(92)("keys",function(){return function(rt){return tt(et(rt))}})},function(k,j,$){var et=$(15),tt=$(1),rt=$(8);k.exports=function(nt,ot){var at=(tt.Object||{})[nt]||Object[nt],it={};it[nt]=ot(at),et(et.S+et.F*rt(function(){at(1)}),"Object",it)}},function(k,j,$){(function(et){var tt=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],rt=/^\s+|\s+$/g,nt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,it=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,ut=/^\[object .+?Constructor\]$/,ht=/^0o[0-7]+$/i,ft=/^(?:0|[1-9]\d*)$/,st=parseInt,ct=typeof et=="object"&&et&&et.Object===Object&&et,pt=typeof self=="object"&&self&&self.Object===Object&&self,lt=ct||pt||Function("return this")();function wt(pn,Vt,qt){switch(qt.length){case 0:return pn.call(Vt);case 1:return pn.call(Vt,qt[0]);case 2:return pn.call(Vt,qt[0],qt[1]);case 3:return pn.call(Vt,qt[0],qt[1],qt[2])}return pn.apply(Vt,qt)}function yt(pn,Vt){return!!(pn&&pn.length)&&function(qt,wn,Nn){if(wn!=wn)return function(Zn,vr,yr,Rn){for(var ur=Zn.length,qn=yr+(Rn?1:-1);Rn?qn--:++qn-1}function vt(pn){return pn!=pn}function St(pn,Vt){for(var qt=pn.length,wn=0;qt--;)pn[qt]===Vt&&wn++;return wn}function xt(pn,Vt){for(var qt=-1,wn=pn.length,Nn=0,lr=[];++qt2?At:void 0);function yn(pn){return Bn(pn)?Zt(pn):{}}function jn(pn){return!(!Bn(pn)||function(Vt){return!!Rt&&Rt in Vt}(pn))&&(function(Vt){var qt=Bn(Vt)?Jt.call(Vt):"";return qt=="[object Function]"||qt=="[object GeneratorFunction]"}(pn)||function(Vt){var qt=!1;if(Vt!=null&&typeof Vt.toString!="function")try{qt=!!(Vt+"")}catch{}return qt}(pn)?Kt:ut).test(function(Vt){if(Vt!=null){try{return zt.call(Vt)}catch{}try{return Vt+""}catch{}}return""}(pn))}function Vn(pn,Vt,qt,wn){for(var Nn=-1,lr=pn.length,fr=qt.length,Zn=-1,vr=Vt.length,yr=dn(lr-fr,0),Rn=Array(vr+yr),ur=!wn;++Zn1&&cr.reverse(),Rn&&vr1?"& ":"")+Vt[wn],Vt=Vt.join(qt>2?", ":" "),pn.replace(nt,`{ + */var hasRequiredReactJsxRuntime_production_min;function requireReactJsxRuntime_production_min(){if(hasRequiredReactJsxRuntime_production_min)return reactJsxRuntime_production_min;hasRequiredReactJsxRuntime_production_min=1;var b=require$$0$1,_=Symbol.for("react.element"),d=Symbol.for("react.fragment"),k=Object.prototype.hasOwnProperty,j=b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$={key:!0,ref:!0,__self:!0,__source:!0};function et(tt,rt,nt){var ot,at={},it=null,dt=null;nt!==void 0&&(it=""+nt),rt.key!==void 0&&(it=""+rt.key),rt.ref!==void 0&&(dt=rt.ref);for(ot in rt)k.call(rt,ot)&&!$.hasOwnProperty(ot)&&(at[ot]=rt[ot]);if(tt&&tt.defaultProps)for(ot in rt=tt.defaultProps,rt)at[ot]===void 0&&(at[ot]=rt[ot]);return{$$typeof:_,type:tt,key:it,ref:dt,props:at,_owner:j.current}}return reactJsxRuntime_production_min.Fragment=d,reactJsxRuntime_production_min.jsx=et,reactJsxRuntime_production_min.jsxs=et,reactJsxRuntime_production_min}(function(b){b.exports=requireReactJsxRuntime_production_min()})(jsxRuntime);const jsx=jsxRuntime.exports.jsx;function isClientSide(){return typeof window<"u"}function isServerSide(){return!isClientSide()}const TonConnectUIContext=reactExports.createContext(null);let tonConnectUI=null;const TonConnectUIProvider=b=>{var _=b,{children:d}=_,k=__objRest(_,["children"]);return isClientSide()&&!tonConnectUI&&(tonConnectUI=new TonConnectUI(k)),jsx(TonConnectUIContext.Provider,{value:tonConnectUI,children:d})},TonConnectUIProvider$1=reactExports.memo(TonConnectUIProvider);class TonConnectUIReactError extends TonConnectUIError{constructor(..._){super(..._),Object.setPrototypeOf(this,TonConnectUIReactError.prototype)}}class TonConnectProviderNotSetError extends TonConnectUIReactError{constructor(..._){super(..._),Object.setPrototypeOf(this,TonConnectProviderNotSetError.prototype)}}function checkProvider(b){if(!b)throw new TonConnectProviderNotSetError("You should add on the top of the app to use TonConnect");return!0}function useTonConnectUI(){const b=reactExports.useContext(TonConnectUIContext),_=reactExports.useCallback(d=>{b&&(b.uiOptions=d)},[b]);return isServerSide()?[null,()=>{}]:(checkProvider(b),[b,_])}const buttonRootId="ton-connect-button",TonConnectButton=({className:b,style:_})=>{const[d,k]=useTonConnectUI();return reactExports.useEffect(()=>(k({buttonRootId}),()=>k({buttonRootId:null})),[k]),jsx("div",{id:buttonRootId,className:b,style:__spreadValues({width:"fit-content"},_)})},TonConnectButton$1=reactExports.memo(TonConnectButton);function useTonWallet(){const[b]=useTonConnectUI(),[_,d]=reactExports.useState((b==null?void 0:b.wallet)||null);return reactExports.useEffect(()=>{if(b)return d(b.wallet),b.onStatusChange(k=>{d(k)})},[b]),_}const footer="",style$2="",defaultColors={[THEME.LIGHT]:{constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#0098EA",telegramButton:"#0098EA",icon:{primary:"#0F0F0F",secondary:"#7A8999",tertiary:"#C1CAD2",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#FFFFFF",secondary:"#F1F3F5",segment:"#FFFFFF",tint:"#F1F3F5",qr:"#F1F3F5"},text:{primary:"#0F0F0F",secondary:"#6A7785"}},[THEME.DARK]:{constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#E5E5EA",telegramButton:"#31A6F5",icon:{primary:"#E5E5EA",secondary:"#909099",tertiary:"#434347",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#121214",secondary:"#18181A",segment:"#262629",tint:"#222224",qr:"#F1F3F5"},text:{primary:"#E5E5EA",secondary:"#7D7D85"}}},ColorsSelect=({theme:b})=>{const[_,d]=useTonConnectUI(),[k,j]=reactExports.useState(defaultColors[b]);reactExports.useEffect(()=>{j(defaultColors[b])},[b]);const $=(et,tt,rt)=>{d({uiPreferences:{colorsSet:{[b]:{[tt]:rt?{...k[tt],[rt]:et}:et}}}}),j(nt=>({...nt,[tt]:rt?{...nt[tt],[rt]:et}:et})),defaultColors[b]={...defaultColors[b],[tt]:rt?{...k[tt],[rt]:et}:et}};return jsx$1("div",{className:"colors-container",children:Object.entries(k).map(([et,tt])=>typeof tt=="object"?jsxs("div",{children:[jsxs("span",{children:[et,":"]}),Object.entries(tt).map(([rt,nt])=>jsxs("label",{children:[rt,jsx$1("input",{type:"color",value:k[et][rt],onChange:ot=>$(ot.target.value,et,rt)})]},et+rt))]},et):jsxs("div",{children:[jsxs("span",{children:[et,":"]}),jsx$1("label",{children:jsx$1("input",{type:"color",value:k[et],onChange:rt=>$(rt.target.value,et)})})]}))})},style$1="",ColorsModal=()=>{const[b,_]=reactExports.useState(!1),[d,k]=reactExports.useState(THEME.LIGHT);return jsxs(Fragment,{children:[jsx$1("button",{onClick:()=>_(!0),children:"change colors"}),b&&jsxs("div",{className:"modal",children:[jsx$1("button",{onClick:()=>_(!1),children:"close"}),jsxs("div",{className:"modal__toggle",children:[jsx$1("a",{href:"#",style:{color:d===THEME.LIGHT?"blue":"white"},onClick:()=>k(THEME.LIGHT),children:"LIGHT"}),jsx$1("a",{href:"#",style:{color:d===THEME.DARK?"blue":"white"},onClick:()=>k(THEME.DARK),children:"DARK"})]}),jsx$1(ColorsSelect,{theme:d})]})]})},Footer=()=>{const[b,_]=reactExports.useState([!0,!1,!1,!0,!0,!0]),[d,k]=reactExports.useState("back"),[j,$]=reactExports.useState("ios"),[et,tt]=useTonConnectUI(),rt=ut=>{tt({language:ut})},nt=ut=>{tt({uiPreferences:{theme:ut}})},ot=ut=>{tt({uiPreferences:{borderRadius:ut}})},at=ut=>{_(ht=>ht.map((ft,st)=>st===ut?!ft:ft))},it=()=>{if(!d){k("back");return}tt({actionsConfiguration:{returnStrategy:d}})},dt=()=>{if(!j){$("ios");return}tt({actionsConfiguration:{skipRedirectToWallet:j}})};return reactExports.useEffect(()=>{const ut=["before","success","error"],ht=ut.map((st,ct)=>b[ct]?st:void 0).filter(st=>st),ft=ut.map((st,ct)=>b[ct+3]?st:void 0).filter(st=>st);tt({actionsConfiguration:{modals:ht,notifications:ft}})},[b]),jsxs("footer",{className:"footer",children:[jsxs("div",{children:[jsx$1("label",{children:"language"}),jsxs("select",{onChange:ut=>rt(ut.target.value),children:[jsx$1("option",{value:"en",children:"en"}),jsx$1("option",{value:"ru",children:"ru"})]})]}),jsxs("div",{children:[jsx$1("label",{children:"theme"}),jsxs("select",{onChange:ut=>nt(ut.target.value),children:[jsx$1("option",{value:THEME.DARK,children:"dark"}),jsx$1("option",{value:THEME.LIGHT,children:"light"}),jsx$1("option",{value:"SYSTEM",children:"system"})]})]}),jsxs("div",{children:[jsx$1("label",{children:"borders"}),jsxs("select",{onChange:ut=>ot(ut.target.value),children:[jsx$1("option",{value:"m",children:"m"}),jsx$1("option",{value:"s",children:"s"}),jsx$1("option",{value:"none",children:"none"})]})]}),jsxs("div",{className:"footer-checkbox-container",children:[jsx$1("span",{children:"modals"}),jsxs("label",{children:["before",jsx$1("input",{type:"checkbox",checked:b[0],onChange:()=>at(0)})]}),jsxs("label",{children:["success",jsx$1("input",{type:"checkbox",checked:b[1],onChange:()=>at(1)})]}),jsxs("label",{children:["error",jsx$1("input",{type:"checkbox",checked:b[2],onChange:()=>at(2)})]})]}),jsxs("div",{className:"footer-checkbox-container",children:[jsx$1("span",{children:"notifications"}),jsxs("label",{children:["before",jsx$1("input",{type:"checkbox",checked:b[3],onChange:()=>at(3)})]}),jsxs("label",{children:["success",jsx$1("input",{type:"checkbox",checked:b[4],onChange:()=>at(4)})]}),jsxs("label",{children:["error",jsx$1("input",{type:"checkbox",checked:b[5],onChange:()=>at(5)})]})]}),jsx$1("div",{children:jsx$1(ColorsModal,{})}),jsx$1("div",{children:jsxs("label",{children:["return strategy:",jsx$1("input",{style:{width:"200px"},value:d,onChange:ut=>k(ut.target.value),onBlur:it})]})}),jsx$1("div",{children:jsxs("label",{children:[jsx$1("div",{children:"skip redirect to wallet:"}),jsx$1("div",{children:"('ios', 'never', 'always')"}),jsx$1("input",{style:{width:"200px"},value:j,onChange:ut=>$(ut.target.value),onBlur:dt})]})})]})},header="",Header=()=>jsxs("header",{children:[jsx$1("span",{children:"My App with React UI"}),jsx$1(TonConnectButton$1,{})]});var main={exports:{}};(function(b,_){(function(d,k){b.exports=k(reactExports)})(commonjsGlobal,function(d){return function(k){var j={};function $(et){if(j[et])return j[et].exports;var tt=j[et]={i:et,l:!1,exports:{}};return k[et].call(tt.exports,tt,tt.exports,$),tt.l=!0,tt.exports}return $.m=k,$.c=j,$.d=function(et,tt,rt){$.o(et,tt)||Object.defineProperty(et,tt,{enumerable:!0,get:rt})},$.r=function(et){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(et,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(et,"__esModule",{value:!0})},$.t=function(et,tt){if(1&tt&&(et=$(et)),8&tt||4&tt&&typeof et=="object"&&et&&et.__esModule)return et;var rt=Object.create(null);if($.r(rt),Object.defineProperty(rt,"default",{enumerable:!0,value:et}),2&tt&&typeof et!="string")for(var nt in et)$.d(rt,nt,(function(ot){return et[ot]}).bind(null,nt));return rt},$.n=function(et){var tt=et&&et.__esModule?function(){return et.default}:function(){return et};return $.d(tt,"a",tt),tt},$.o=function(et,tt){return Object.prototype.hasOwnProperty.call(et,tt)},$.p="",$($.s=48)}([function(k,j){k.exports=d},function(k,j){var $=k.exports={version:"2.6.12"};typeof __e=="number"&&(__e=$)},function(k,j,$){var et=$(26)("wks"),tt=$(17),rt=$(3).Symbol,nt=typeof rt=="function";(k.exports=function(ot){return et[ot]||(et[ot]=nt&&rt[ot]||(nt?rt:tt)("Symbol."+ot))}).store=et},function(k,j){var $=k.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=$)},function(k,j,$){k.exports=!$(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(k,j){var $={}.hasOwnProperty;k.exports=function(et,tt){return $.call(et,tt)}},function(k,j,$){var et=$(7),tt=$(16);k.exports=$(4)?function(rt,nt,ot){return et.f(rt,nt,tt(1,ot))}:function(rt,nt,ot){return rt[nt]=ot,rt}},function(k,j,$){var et=$(10),tt=$(35),rt=$(23),nt=Object.defineProperty;j.f=$(4)?Object.defineProperty:function(ot,at,it){if(et(ot),at=rt(at,!0),et(it),tt)try{return nt(ot,at,it)}catch{}if("get"in it||"set"in it)throw TypeError("Accessors not supported!");return"value"in it&&(ot[at]=it.value),ot}},function(k,j){k.exports=function($){try{return!!$()}catch{return!0}}},function(k,j,$){var et=$(40),tt=$(22);k.exports=function(rt){return et(tt(rt))}},function(k,j,$){var et=$(11);k.exports=function(tt){if(!et(tt))throw TypeError(tt+" is not an object!");return tt}},function(k,j){k.exports=function($){return typeof $=="object"?$!==null:typeof $=="function"}},function(k,j){k.exports={}},function(k,j,$){var et=$(39),tt=$(27);k.exports=Object.keys||function(rt){return et(rt,tt)}},function(k,j){k.exports=!0},function(k,j,$){var et=$(3),tt=$(1),rt=$(53),nt=$(6),ot=$(5),at=function(it,dt,ut){var ht,ft,st,ct=it&at.F,pt=it&at.G,lt=it&at.S,wt=it&at.P,yt=it&at.B,vt=it&at.W,St=pt?tt:tt[dt]||(tt[dt]={}),xt=St.prototype,bt=pt?et:lt?et[dt]:(et[dt]||{}).prototype;for(ht in pt&&(ut=dt),ut)(ft=!ct&&bt&&bt[ht]!==void 0)&&ot(St,ht)||(st=ft?bt[ht]:ut[ht],St[ht]=pt&&typeof bt[ht]!="function"?ut[ht]:yt&&ft?rt(st,et):vt&&bt[ht]==st?function(At){var _t=function(Ct,Mt,jt){if(this instanceof At){switch(arguments.length){case 0:return new At;case 1:return new At(Ct);case 2:return new At(Ct,Mt)}return new At(Ct,Mt,jt)}return At.apply(this,arguments)};return _t.prototype=At.prototype,_t}(st):wt&&typeof st=="function"?rt(Function.call,st):st,wt&&((St.virtual||(St.virtual={}))[ht]=st,it&at.R&&xt&&!xt[ht]&&nt(xt,ht,st)))};at.F=1,at.G=2,at.S=4,at.P=8,at.B=16,at.W=32,at.U=64,at.R=128,k.exports=at},function(k,j){k.exports=function($,et){return{enumerable:!(1&$),configurable:!(2&$),writable:!(4&$),value:et}}},function(k,j){var $=0,et=Math.random();k.exports=function(tt){return"Symbol(".concat(tt===void 0?"":tt,")_",(++$+et).toString(36))}},function(k,j,$){var et=$(22);k.exports=function(tt){return Object(et(tt))}},function(k,j){j.f={}.propertyIsEnumerable},function(k,j,$){var et=$(52)(!0);$(34)(String,"String",function(tt){this._t=String(tt),this._i=0},function(){var tt,rt=this._t,nt=this._i;return nt>=rt.length?{value:void 0,done:!0}:(tt=et(rt,nt),this._i+=tt.length,{value:tt,done:!1})})},function(k,j){var $=Math.ceil,et=Math.floor;k.exports=function(tt){return isNaN(tt=+tt)?0:(tt>0?et:$)(tt)}},function(k,j){k.exports=function($){if($==null)throw TypeError("Can't call method on "+$);return $}},function(k,j,$){var et=$(11);k.exports=function(tt,rt){if(!et(tt))return tt;var nt,ot;if(rt&&typeof(nt=tt.toString)=="function"&&!et(ot=nt.call(tt))||typeof(nt=tt.valueOf)=="function"&&!et(ot=nt.call(tt))||!rt&&typeof(nt=tt.toString)=="function"&&!et(ot=nt.call(tt)))return ot;throw TypeError("Can't convert object to primitive value")}},function(k,j){var $={}.toString;k.exports=function(et){return $.call(et).slice(8,-1)}},function(k,j,$){var et=$(26)("keys"),tt=$(17);k.exports=function(rt){return et[rt]||(et[rt]=tt(rt))}},function(k,j,$){var et=$(1),tt=$(3),rt=tt["__core-js_shared__"]||(tt["__core-js_shared__"]={});(k.exports=function(nt,ot){return rt[nt]||(rt[nt]=ot!==void 0?ot:{})})("versions",[]).push({version:et.version,mode:$(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(k,j){k.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(k,j,$){var et=$(7).f,tt=$(5),rt=$(2)("toStringTag");k.exports=function(nt,ot,at){nt&&!tt(nt=at?nt:nt.prototype,rt)&&et(nt,rt,{configurable:!0,value:ot})}},function(k,j,$){$(62);for(var et=$(3),tt=$(6),rt=$(12),nt=$(2)("toStringTag"),ot="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),at=0;atdocument.F=Object<\/script>"),it.close(),at=it.F;ut--;)delete at.prototype[rt[ut]];return at()};k.exports=Object.create||function(it,dt){var ut;return it!==null?(ot.prototype=et(it),ut=new ot,ot.prototype=null,ut[nt]=it):ut=at(),dt===void 0?ut:tt(ut,dt)}},function(k,j,$){var et=$(5),tt=$(9),rt=$(57)(!1),nt=$(25)("IE_PROTO");k.exports=function(ot,at){var it,dt=tt(ot),ut=0,ht=[];for(it in dt)it!=nt&&et(dt,it)&&ht.push(it);for(;at.length>ut;)et(dt,it=at[ut++])&&(~rt(ht,it)||ht.push(it));return ht}},function(k,j,$){var et=$(24);k.exports=Object("z").propertyIsEnumerable(0)?Object:function(tt){return et(tt)=="String"?tt.split(""):Object(tt)}},function(k,j,$){var et=$(39),tt=$(27).concat("length","prototype");j.f=Object.getOwnPropertyNames||function(rt){return et(rt,tt)}},function(k,j,$){var et=$(24),tt=$(2)("toStringTag"),rt=et(function(){return arguments}())=="Arguments";k.exports=function(nt){var ot,at,it;return nt===void 0?"Undefined":nt===null?"Null":typeof(at=function(dt,ut){try{return dt[ut]}catch{}}(ot=Object(nt),tt))=="string"?at:rt?et(ot):(it=et(ot))=="Object"&&typeof ot.callee=="function"?"Arguments":it}},function(k,j){var $;$=function(){return this}();try{$=$||new Function("return this")()}catch{typeof window=="object"&&($=window)}k.exports=$},function(k,j){var $=/-?\d+(\.\d+)?%?/g;k.exports=function(et){return et.match($)}},function(k,j,$){Object.defineProperty(j,"__esModule",{value:!0}),j.getBase16Theme=j.createStyling=j.invertTheme=void 0;var et=ft($(49)),tt=ft($(76)),rt=ft($(81)),nt=ft($(89)),ot=ft($(93)),at=function(xt){if(xt&&xt.__esModule)return xt;var bt={};if(xt!=null)for(var At in xt)Object.prototype.hasOwnProperty.call(xt,At)&&(bt[At]=xt[At]);return bt.default=xt,bt}($(94)),it=ft($(132)),dt=ft($(133)),ut=ft($(138)),ht=$(139);function ft(xt){return xt&&xt.__esModule?xt:{default:xt}}var st=at.default,ct=(0,nt.default)(st),pt=(0,ut.default)(dt.default,ht.rgb2yuv,function(xt){var bt,At=(0,rt.default)(xt,3),_t=At[0],Ct=At[1],Mt=At[2];return[(bt=_t,bt<.25?1:bt<.5?.9-bt:1.1-bt),Ct,Mt]},ht.yuv2rgb,it.default),lt=function(xt){return function(bt){return{className:[bt.className,xt.className].filter(Boolean).join(" "),style:(0,tt.default)({},bt.style||{},xt.style||{})}}},wt=function(xt,bt){var At=(0,nt.default)(bt);for(var _t in xt)At.indexOf(_t)===-1&&At.push(_t);return At.reduce(function(Ct,Mt){return Ct[Mt]=function(jt,Rt){if(jt===void 0)return Rt;if(Rt===void 0)return jt;var zt=jt===void 0?"undefined":(0,et.default)(jt),Xt=Rt===void 0?"undefined":(0,et.default)(Rt);switch(zt){case"string":switch(Xt){case"string":return[Rt,jt].filter(Boolean).join(" ");case"object":return lt({className:jt,style:Rt});case"function":return function(Jt){for(var Kt=arguments.length,Zt=Array(Kt>1?Kt-1:0),dn=1;dn1?Kt-1:0),dn=1;dn1?Kt-1:0),dn=1;dn1?Kt-1:0),dn=1;dn1?Kt-1:0),dn=1;dn2?At-2:0),Ct=2;Ct3?bt-3:0),_t=3;_t1&&arguments[1]!==void 0?arguments[1]:{},Mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},jt=Ct.defaultBase16,Rt=jt===void 0?st:jt,zt=Ct.base16Themes,Xt=zt===void 0?null:zt,Jt=St(Mt,Xt);Jt&&(Mt=(0,tt.default)({},Jt,Mt));var Kt=ct.reduce(function(En,yn){return En[yn]=Mt[yn]||Rt[yn],En},{}),Zt=(0,nt.default)(Mt).reduce(function(En,yn){return ct.indexOf(yn)===-1&&(En[yn]=Mt[yn]),En},{}),dn=xt(Kt),An=wt(Zt,dn);return(0,ot.default)(yt,2).apply(void 0,[An].concat(At))},3),j.getBase16Theme=function(xt,bt){if(xt&&xt.extend&&(xt=xt.extend),typeof xt=="string"){var At=xt.split(":"),_t=(0,rt.default)(At,2),Ct=_t[0],Mt=_t[1];xt=(bt||{})[Ct]||at[Ct],Mt==="inverted"&&(xt=vt(xt))}return xt&&xt.hasOwnProperty("base00")?xt:void 0})},function(k,j,$){var et,tt=typeof Reflect=="object"?Reflect:null,rt=tt&&typeof tt.apply=="function"?tt.apply:function(lt,wt,yt){return Function.prototype.apply.call(lt,wt,yt)};et=tt&&typeof tt.ownKeys=="function"?tt.ownKeys:Object.getOwnPropertySymbols?function(lt){return Object.getOwnPropertyNames(lt).concat(Object.getOwnPropertySymbols(lt))}:function(lt){return Object.getOwnPropertyNames(lt)};var nt=Number.isNaN||function(lt){return lt!=lt};function ot(){ot.init.call(this)}k.exports=ot,k.exports.once=function(lt,wt){return new Promise(function(yt,vt){function St(){xt!==void 0&<.removeListener("error",xt),yt([].slice.call(arguments))}var xt;wt!=="error"&&(xt=function(bt){lt.removeListener(wt,St),vt(bt)},lt.once("error",xt)),lt.once(wt,St)})},ot.EventEmitter=ot,ot.prototype._events=void 0,ot.prototype._eventsCount=0,ot.prototype._maxListeners=void 0;var at=10;function it(lt){if(typeof lt!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof lt)}function dt(lt){return lt._maxListeners===void 0?ot.defaultMaxListeners:lt._maxListeners}function ut(lt,wt,yt,vt){var St,xt,bt,At;if(it(yt),(xt=lt._events)===void 0?(xt=lt._events=Object.create(null),lt._eventsCount=0):(xt.newListener!==void 0&&(lt.emit("newListener",wt,yt.listener?yt.listener:yt),xt=lt._events),bt=xt[wt]),bt===void 0)bt=xt[wt]=yt,++lt._eventsCount;else if(typeof bt=="function"?bt=xt[wt]=vt?[yt,bt]:[bt,yt]:vt?bt.unshift(yt):bt.push(yt),(St=dt(lt))>0&&bt.length>St&&!bt.warned){bt.warned=!0;var _t=new Error("Possible EventEmitter memory leak detected. "+bt.length+" "+String(wt)+" listeners added. Use emitter.setMaxListeners() to increase limit");_t.name="MaxListenersExceededWarning",_t.emitter=lt,_t.type=wt,_t.count=bt.length,At=_t,console&&console.warn&&console.warn(At)}return lt}function ht(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function ft(lt,wt,yt){var vt={fired:!1,wrapFn:void 0,target:lt,type:wt,listener:yt},St=ht.bind(vt);return St.listener=yt,vt.wrapFn=St,St}function st(lt,wt,yt){var vt=lt._events;if(vt===void 0)return[];var St=vt[wt];return St===void 0?[]:typeof St=="function"?yt?[St.listener||St]:[St]:yt?function(xt){for(var bt=new Array(xt.length),At=0;At0&&(xt=wt[0]),xt instanceof Error)throw xt;var bt=new Error("Unhandled error."+(xt?" ("+xt.message+")":""));throw bt.context=xt,bt}var At=St[lt];if(At===void 0)return!1;if(typeof At=="function")rt(At,this,wt);else{var _t=At.length,Ct=pt(At,_t);for(yt=0;yt<_t;++yt)rt(Ct[yt],this,wt)}return!0},ot.prototype.addListener=function(lt,wt){return ut(this,lt,wt,!1)},ot.prototype.on=ot.prototype.addListener,ot.prototype.prependListener=function(lt,wt){return ut(this,lt,wt,!0)},ot.prototype.once=function(lt,wt){return it(wt),this.on(lt,ft(this,lt,wt)),this},ot.prototype.prependOnceListener=function(lt,wt){return it(wt),this.prependListener(lt,ft(this,lt,wt)),this},ot.prototype.removeListener=function(lt,wt){var yt,vt,St,xt,bt;if(it(wt),(vt=this._events)===void 0)return this;if((yt=vt[lt])===void 0)return this;if(yt===wt||yt.listener===wt)--this._eventsCount==0?this._events=Object.create(null):(delete vt[lt],vt.removeListener&&this.emit("removeListener",lt,yt.listener||wt));else if(typeof yt!="function"){for(St=-1,xt=yt.length-1;xt>=0;xt--)if(yt[xt]===wt||yt[xt].listener===wt){bt=yt[xt].listener,St=xt;break}if(St<0)return this;St===0?yt.shift():function(At,_t){for(;_t+1=0;vt--)this.removeListener(lt,wt[vt]);return this},ot.prototype.listeners=function(lt){return st(this,lt,!0)},ot.prototype.rawListeners=function(lt){return st(this,lt,!1)},ot.listenerCount=function(lt,wt){return typeof lt.listenerCount=="function"?lt.listenerCount(wt):ct.call(lt,wt)},ot.prototype.listenerCount=ct,ot.prototype.eventNames=function(){return this._eventsCount>0?et(this._events):[]}},function(k,j,$){k.exports.Dispatcher=$(140)},function(k,j,$){k.exports=$(142)},function(k,j,$){j.__esModule=!0;var et=nt($(50)),tt=nt($(65)),rt=typeof tt.default=="function"&&typeof et.default=="symbol"?function(ot){return typeof ot}:function(ot){return ot&&typeof tt.default=="function"&&ot.constructor===tt.default&&ot!==tt.default.prototype?"symbol":typeof ot};function nt(ot){return ot&&ot.__esModule?ot:{default:ot}}j.default=typeof tt.default=="function"&&rt(et.default)==="symbol"?function(ot){return ot===void 0?"undefined":rt(ot)}:function(ot){return ot&&typeof tt.default=="function"&&ot.constructor===tt.default&&ot!==tt.default.prototype?"symbol":ot===void 0?"undefined":rt(ot)}},function(k,j,$){k.exports={default:$(51),__esModule:!0}},function(k,j,$){$(20),$(29),k.exports=$(30).f("iterator")},function(k,j,$){var et=$(21),tt=$(22);k.exports=function(rt){return function(nt,ot){var at,it,dt=String(tt(nt)),ut=et(ot),ht=dt.length;return ut<0||ut>=ht?rt?"":void 0:(at=dt.charCodeAt(ut))<55296||at>56319||ut+1===ht||(it=dt.charCodeAt(ut+1))<56320||it>57343?rt?dt.charAt(ut):at:rt?dt.slice(ut,ut+2):it-56320+(at-55296<<10)+65536}}},function(k,j,$){var et=$(54);k.exports=function(tt,rt,nt){if(et(tt),rt===void 0)return tt;switch(nt){case 1:return function(ot){return tt.call(rt,ot)};case 2:return function(ot,at){return tt.call(rt,ot,at)};case 3:return function(ot,at,it){return tt.call(rt,ot,at,it)}}return function(){return tt.apply(rt,arguments)}}},function(k,j){k.exports=function($){if(typeof $!="function")throw TypeError($+" is not a function!");return $}},function(k,j,$){var et=$(38),tt=$(16),rt=$(28),nt={};$(6)(nt,$(2)("iterator"),function(){return this}),k.exports=function(ot,at,it){ot.prototype=et(nt,{next:tt(1,it)}),rt(ot,at+" Iterator")}},function(k,j,$){var et=$(7),tt=$(10),rt=$(13);k.exports=$(4)?Object.defineProperties:function(nt,ot){tt(nt);for(var at,it=rt(ot),dt=it.length,ut=0;dt>ut;)et.f(nt,at=it[ut++],ot[at]);return nt}},function(k,j,$){var et=$(9),tt=$(58),rt=$(59);k.exports=function(nt){return function(ot,at,it){var dt,ut=et(ot),ht=tt(ut.length),ft=rt(it,ht);if(nt&&at!=at){for(;ht>ft;)if((dt=ut[ft++])!=dt)return!0}else for(;ht>ft;ft++)if((nt||ft in ut)&&ut[ft]===at)return nt||ft||0;return!nt&&-1}}},function(k,j,$){var et=$(21),tt=Math.min;k.exports=function(rt){return rt>0?tt(et(rt),9007199254740991):0}},function(k,j,$){var et=$(21),tt=Math.max,rt=Math.min;k.exports=function(nt,ot){return(nt=et(nt))<0?tt(nt+ot,0):rt(nt,ot)}},function(k,j,$){var et=$(3).document;k.exports=et&&et.documentElement},function(k,j,$){var et=$(5),tt=$(18),rt=$(25)("IE_PROTO"),nt=Object.prototype;k.exports=Object.getPrototypeOf||function(ot){return ot=tt(ot),et(ot,rt)?ot[rt]:typeof ot.constructor=="function"&&ot instanceof ot.constructor?ot.constructor.prototype:ot instanceof Object?nt:null}},function(k,j,$){var et=$(63),tt=$(64),rt=$(12),nt=$(9);k.exports=$(34)(Array,"Array",function(ot,at){this._t=nt(ot),this._i=0,this._k=at},function(){var ot=this._t,at=this._k,it=this._i++;return!ot||it>=ot.length?(this._t=void 0,tt(1)):tt(0,at=="keys"?it:at=="values"?ot[it]:[it,ot[it]])},"values"),rt.Arguments=rt.Array,et("keys"),et("values"),et("entries")},function(k,j){k.exports=function(){}},function(k,j){k.exports=function($,et){return{value:et,done:!!$}}},function(k,j,$){k.exports={default:$(66),__esModule:!0}},function(k,j,$){$(67),$(73),$(74),$(75),k.exports=$(1).Symbol},function(k,j,$){var et=$(3),tt=$(5),rt=$(4),nt=$(15),ot=$(37),at=$(68).KEY,it=$(8),dt=$(26),ut=$(28),ht=$(17),ft=$(2),st=$(30),ct=$(31),pt=$(69),lt=$(70),wt=$(10),yt=$(11),vt=$(18),St=$(9),xt=$(23),bt=$(16),At=$(38),_t=$(71),Ct=$(72),Mt=$(32),jt=$(7),Rt=$(13),zt=Ct.f,Xt=jt.f,Jt=_t.f,Kt=et.Symbol,Zt=et.JSON,dn=Zt&&Zt.stringify,An=ft("_hidden"),En=ft("toPrimitive"),yn={}.propertyIsEnumerable,jn=dt("symbol-registry"),Vn=dt("symbols"),rn=dt("op-symbols"),xn=Object.prototype,fn=typeof Kt=="function"&&!!Mt.f,Sn=et.QObject,bn=!Sn||!Sn.prototype||!Sn.prototype.findChild,hn=rt&&it(function(){return At(Xt({},"a",{get:function(){return Xt(this,"a",{value:7}).a}})).a!=7})?function(qt,wn,Pn){var lr=zt(xn,wn);lr&&delete xn[wn],Xt(qt,wn,Pn),lr&&qt!==xn&&Xt(xn,wn,lr)}:Xt,_n=function(qt){var wn=Vn[qt]=At(Kt.prototype);return wn._k=qt,wn},ln=fn&&typeof Kt.iterator=="symbol"?function(qt){return typeof qt=="symbol"}:function(qt){return qt instanceof Kt},Tn=function(qt,wn,Pn){return qt===xn&&Tn(rn,wn,Pn),wt(qt),wn=xt(wn,!0),wt(Pn),tt(Vn,wn)?(Pn.enumerable?(tt(qt,An)&&qt[An][wn]&&(qt[An][wn]=!1),Pn=At(Pn,{enumerable:bt(0,!1)})):(tt(qt,An)||Xt(qt,An,bt(1,{})),qt[An][wn]=!0),hn(qt,wn,Pn)):Xt(qt,wn,Pn)},In=function(qt,wn){wt(qt);for(var Pn,lr=pt(wn=St(wn)),fr=0,Zn=lr.length;Zn>fr;)Tn(qt,Pn=lr[fr++],wn[Pn]);return qt},Ln=function(qt){var wn=yn.call(this,qt=xt(qt,!0));return!(this===xn&&tt(Vn,qt)&&!tt(rn,qt))&&(!(wn||!tt(this,qt)||!tt(Vn,qt)||tt(this,An)&&this[An][qt])||wn)},kn=function(qt,wn){if(qt=St(qt),wn=xt(wn,!0),qt!==xn||!tt(Vn,wn)||tt(rn,wn)){var Pn=zt(qt,wn);return!Pn||!tt(Vn,wn)||tt(qt,An)&&qt[An][wn]||(Pn.enumerable=!0),Pn}},Fn=function(qt){for(var wn,Pn=Jt(St(qt)),lr=[],fr=0;Pn.length>fr;)tt(Vn,wn=Pn[fr++])||wn==An||wn==at||lr.push(wn);return lr},vn=function(qt){for(var wn,Pn=qt===xn,lr=Jt(Pn?rn:St(qt)),fr=[],Zn=0;lr.length>Zn;)!tt(Vn,wn=lr[Zn++])||Pn&&!tt(xn,wn)||fr.push(Vn[wn]);return fr};fn||(ot((Kt=function(){if(this instanceof Kt)throw TypeError("Symbol is not a constructor!");var qt=ht(arguments.length>0?arguments[0]:void 0),wn=function(Pn){this===xn&&wn.call(rn,Pn),tt(this,An)&&tt(this[An],qt)&&(this[An][qt]=!1),hn(this,qt,bt(1,Pn))};return rt&&bn&&hn(xn,qt,{configurable:!0,set:wn}),_n(qt)}).prototype,"toString",function(){return this._k}),Ct.f=kn,jt.f=Tn,$(41).f=_t.f=Fn,$(19).f=Ln,Mt.f=vn,rt&&!$(14)&&ot(xn,"propertyIsEnumerable",Ln,!0),st.f=function(qt){return _n(ft(qt))}),nt(nt.G+nt.W+nt.F*!fn,{Symbol:Kt});for(var Bn="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Nn=0;Bn.length>Nn;)ft(Bn[Nn++]);for(var Un=Rt(ft.store),pn=0;Un.length>pn;)ct(Un[pn++]);nt(nt.S+nt.F*!fn,"Symbol",{for:function(qt){return tt(jn,qt+="")?jn[qt]:jn[qt]=Kt(qt)},keyFor:function(qt){if(!ln(qt))throw TypeError(qt+" is not a symbol!");for(var wn in jn)if(jn[wn]===qt)return wn},useSetter:function(){bn=!0},useSimple:function(){bn=!1}}),nt(nt.S+nt.F*!fn,"Object",{create:function(qt,wn){return wn===void 0?At(qt):In(At(qt),wn)},defineProperty:Tn,defineProperties:In,getOwnPropertyDescriptor:kn,getOwnPropertyNames:Fn,getOwnPropertySymbols:vn});var Vt=it(function(){Mt.f(1)});nt(nt.S+nt.F*Vt,"Object",{getOwnPropertySymbols:function(qt){return Mt.f(vt(qt))}}),Zt&&nt(nt.S+nt.F*(!fn||it(function(){var qt=Kt();return dn([qt])!="[null]"||dn({a:qt})!="{}"||dn(Object(qt))!="{}"})),"JSON",{stringify:function(qt){for(var wn,Pn,lr=[qt],fr=1;arguments.length>fr;)lr.push(arguments[fr++]);if(Pn=wn=lr[1],(yt(wn)||qt!==void 0)&&!ln(qt))return lt(wn)||(wn=function(Zn,vr){if(typeof Pn=="function"&&(vr=Pn.call(this,Zn,vr)),!ln(vr))return vr}),lr[1]=wn,dn.apply(Zt,lr)}}),Kt.prototype[En]||$(6)(Kt.prototype,En,Kt.prototype.valueOf),ut(Kt,"Symbol"),ut(Math,"Math",!0),ut(et.JSON,"JSON",!0)},function(k,j,$){var et=$(17)("meta"),tt=$(11),rt=$(5),nt=$(7).f,ot=0,at=Object.isExtensible||function(){return!0},it=!$(8)(function(){return at(Object.preventExtensions({}))}),dt=function(ht){nt(ht,et,{value:{i:"O"+ ++ot,w:{}}})},ut=k.exports={KEY:et,NEED:!1,fastKey:function(ht,ft){if(!tt(ht))return typeof ht=="symbol"?ht:(typeof ht=="string"?"S":"P")+ht;if(!rt(ht,et)){if(!at(ht))return"F";if(!ft)return"E";dt(ht)}return ht[et].i},getWeak:function(ht,ft){if(!rt(ht,et)){if(!at(ht))return!0;if(!ft)return!1;dt(ht)}return ht[et].w},onFreeze:function(ht){return it&&ut.NEED&&at(ht)&&!rt(ht,et)&&dt(ht),ht}}},function(k,j,$){var et=$(13),tt=$(32),rt=$(19);k.exports=function(nt){var ot=et(nt),at=tt.f;if(at)for(var it,dt=at(nt),ut=rt.f,ht=0;dt.length>ht;)ut.call(nt,it=dt[ht++])&&ot.push(it);return ot}},function(k,j,$){var et=$(24);k.exports=Array.isArray||function(tt){return et(tt)=="Array"}},function(k,j,$){var et=$(9),tt=$(41).f,rt={}.toString,nt=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];k.exports.f=function(ot){return nt&&rt.call(ot)=="[object Window]"?function(at){try{return tt(at)}catch{return nt.slice()}}(ot):tt(et(ot))}},function(k,j,$){var et=$(19),tt=$(16),rt=$(9),nt=$(23),ot=$(5),at=$(35),it=Object.getOwnPropertyDescriptor;j.f=$(4)?it:function(dt,ut){if(dt=rt(dt),ut=nt(ut,!0),at)try{return it(dt,ut)}catch{}if(ot(dt,ut))return tt(!et.f.call(dt,ut),dt[ut])}},function(k,j){},function(k,j,$){$(31)("asyncIterator")},function(k,j,$){$(31)("observable")},function(k,j,$){j.__esModule=!0;var et,tt=$(77),rt=(et=tt)&&et.__esModule?et:{default:et};j.default=rt.default||function(nt){for(var ot=1;otst;)for(var lt,wt=at(arguments[st++]),yt=ct?tt(wt).concat(ct(wt)):tt(wt),vt=yt.length,St=0;vt>St;)lt=yt[St++],et&&!pt.call(wt,lt)||(ht[lt]=wt[lt]);return ht}:it},function(k,j,$){j.__esModule=!0;var et=rt($(82)),tt=rt($(85));function rt(nt){return nt&&nt.__esModule?nt:{default:nt}}j.default=function(nt,ot){if(Array.isArray(nt))return nt;if((0,et.default)(Object(nt)))return function(at,it){var dt=[],ut=!0,ht=!1,ft=void 0;try{for(var st,ct=(0,tt.default)(at);!(ut=(st=ct.next()).done)&&(dt.push(st.value),!it||dt.length!==it);ut=!0);}catch(pt){ht=!0,ft=pt}finally{try{!ut&&ct.return&&ct.return()}finally{if(ht)throw ft}}return dt}(nt,ot);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(k,j,$){k.exports={default:$(83),__esModule:!0}},function(k,j,$){$(29),$(20),k.exports=$(84)},function(k,j,$){var et=$(42),tt=$(2)("iterator"),rt=$(12);k.exports=$(1).isIterable=function(nt){var ot=Object(nt);return ot[tt]!==void 0||"@@iterator"in ot||rt.hasOwnProperty(et(ot))}},function(k,j,$){k.exports={default:$(86),__esModule:!0}},function(k,j,$){$(29),$(20),k.exports=$(87)},function(k,j,$){var et=$(10),tt=$(88);k.exports=$(1).getIterator=function(rt){var nt=tt(rt);if(typeof nt!="function")throw TypeError(rt+" is not iterable!");return et(nt.call(rt))}},function(k,j,$){var et=$(42),tt=$(2)("iterator"),rt=$(12);k.exports=$(1).getIteratorMethod=function(nt){if(nt!=null)return nt[tt]||nt["@@iterator"]||rt[et(nt)]}},function(k,j,$){k.exports={default:$(90),__esModule:!0}},function(k,j,$){$(91),k.exports=$(1).Object.keys},function(k,j,$){var et=$(18),tt=$(13);$(92)("keys",function(){return function(rt){return tt(et(rt))}})},function(k,j,$){var et=$(15),tt=$(1),rt=$(8);k.exports=function(nt,ot){var at=(tt.Object||{})[nt]||Object[nt],it={};it[nt]=ot(at),et(et.S+et.F*rt(function(){at(1)}),"Object",it)}},function(k,j,$){(function(et){var tt=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],rt=/^\s+|\s+$/g,nt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,it=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,ut=/^\[object .+?Constructor\]$/,ht=/^0o[0-7]+$/i,ft=/^(?:0|[1-9]\d*)$/,st=parseInt,ct=typeof et=="object"&&et&&et.Object===Object&&et,pt=typeof self=="object"&&self&&self.Object===Object&&self,lt=ct||pt||Function("return this")();function wt(pn,Vt,qt){switch(qt.length){case 0:return pn.call(Vt);case 1:return pn.call(Vt,qt[0]);case 2:return pn.call(Vt,qt[0],qt[1]);case 3:return pn.call(Vt,qt[0],qt[1],qt[2])}return pn.apply(Vt,qt)}function yt(pn,Vt){return!!(pn&&pn.length)&&function(qt,wn,Pn){if(wn!=wn)return function(Zn,vr,yr,Rn){for(var ur=Zn.length,qn=yr+(Rn?1:-1);Rn?qn--:++qn-1}function vt(pn){return pn!=pn}function St(pn,Vt){for(var qt=pn.length,wn=0;qt--;)pn[qt]===Vt&&wn++;return wn}function xt(pn,Vt){for(var qt=-1,wn=pn.length,Pn=0,lr=[];++qt2?At:void 0);function yn(pn){return Bn(pn)?Zt(pn):{}}function jn(pn){return!(!Bn(pn)||function(Vt){return!!Rt&&Rt in Vt}(pn))&&(function(Vt){var qt=Bn(Vt)?Jt.call(Vt):"";return qt=="[object Function]"||qt=="[object GeneratorFunction]"}(pn)||function(Vt){var qt=!1;if(Vt!=null&&typeof Vt.toString!="function")try{qt=!!(Vt+"")}catch{}return qt}(pn)?Kt:ut).test(function(Vt){if(Vt!=null){try{return zt.call(Vt)}catch{}try{return Vt+""}catch{}}return""}(pn))}function Vn(pn,Vt,qt,wn){for(var Pn=-1,lr=pn.length,fr=qt.length,Zn=-1,vr=Vt.length,yr=dn(lr-fr,0),Rn=Array(vr+yr),ur=!wn;++Zn1&&cr.reverse(),Rn&&vr1?"& ":"")+Vt[wn],Vt=Vt.join(qt>2?", ":" "),pn.replace(nt,`{ /* [wrapped with `+Vt+`] */ -`)}function In(pn,Vt){return!!(Vt=Vt??9007199254740991)&&(typeof pn=="number"||ft.test(pn))&&pn>-1&&pn%1==0&&pn1&&rt--,ot=6*rt<1?et+6*(tt-et)*rt:2*rt<1?tt:3*rt<2?et+(tt-et)*(2/3-rt)*6:et,nt[ut]=255*ot;return nt}},function(k,j,$){(function(et){var tt=typeof et=="object"&&et&&et.Object===Object&&et,rt=typeof self=="object"&&self&&self.Object===Object&&self,nt=tt||rt||Function("return this")();function ot(xt,bt,At){switch(At.length){case 0:return xt.call(bt);case 1:return xt.call(bt,At[0]);case 2:return xt.call(bt,At[0],At[1]);case 3:return xt.call(bt,At[0],At[1],At[2])}return xt.apply(bt,At)}function at(xt,bt){for(var At=-1,_t=bt.length,Ct=xt.length;++At<_t;)xt[Ct+At]=bt[At];return xt}var it=Object.prototype,dt=it.hasOwnProperty,ut=it.toString,ht=nt.Symbol,ft=it.propertyIsEnumerable,st=ht?ht.isConcatSpreadable:void 0,ct=Math.max;function pt(xt){return lt(xt)||function(bt){return function(At){return function(_t){return!!_t&&typeof _t=="object"}(At)&&function(_t){return _t!=null&&function(Ct){return typeof Ct=="number"&&Ct>-1&&Ct%1==0&&Ct<=9007199254740991}(_t.length)&&!function(Ct){var Mt=function(jt){var Rt=typeof jt;return!!jt&&(Rt=="object"||Rt=="function")}(Ct)?ut.call(Ct):"";return Mt=="[object Function]"||Mt=="[object GeneratorFunction]"}(_t)}(At)}(bt)&&dt.call(bt,"callee")&&(!ft.call(bt,"callee")||ut.call(bt)=="[object Arguments]")}(xt)||!!(st&&xt&&xt[st])}var lt=Array.isArray,wt,yt,vt,St=(yt=function(xt){var bt=(xt=function _t(Ct,Mt,jt,Rt,zt){var Xt=-1,Jt=Ct.length;for(jt||(jt=pt),zt||(zt=[]);++Xt0&&jt(Kt)?Mt>1?_t(Kt,Mt-1,jt,Rt,zt):at(zt,Kt):Rt||(zt[zt.length]=Kt)}return zt}(xt,1)).length,At=bt;for(wt;At--;)if(typeof xt[At]!="function")throw new TypeError("Expected a function");return function(){for(var _t=0,Ct=bt?xt[_t].apply(this,arguments):arguments[0];++_t2?rt-2:0),ot=2;ot"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var Ot,Bt=ut(Et);if(Lt){var It=ut(this).constructor;Ot=Reflect.construct(Bt,arguments,It)}else Ot=Bt.apply(this,arguments);return st(this,Ot)}}$.r(j);var pt=$(0),lt=$.n(pt);function wt(){var Et=this.constructor.getDerivedStateFromProps(this.props,this.state);Et!=null&&this.setState(Et)}function yt(Et){this.setState((function(Lt){var Ot=this.constructor.getDerivedStateFromProps(Et,Lt);return Ot??null}).bind(this))}function vt(Et,Lt){try{var Ot=this.props,Bt=this.state;this.props=Et,this.state=Lt,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(Ot,Bt)}finally{this.props=Ot,this.state=Bt}}function St(Et){var Lt=Et.prototype;if(!Lt||!Lt.isReactComponent)throw new Error("Can only polyfill class components");if(typeof Et.getDerivedStateFromProps!="function"&&typeof Lt.getSnapshotBeforeUpdate!="function")return Et;var Ot=null,Bt=null,It=null;if(typeof Lt.componentWillMount=="function"?Ot="componentWillMount":typeof Lt.UNSAFE_componentWillMount=="function"&&(Ot="UNSAFE_componentWillMount"),typeof Lt.componentWillReceiveProps=="function"?Bt="componentWillReceiveProps":typeof Lt.UNSAFE_componentWillReceiveProps=="function"&&(Bt="UNSAFE_componentWillReceiveProps"),typeof Lt.componentWillUpdate=="function"?It="componentWillUpdate":typeof Lt.UNSAFE_componentWillUpdate=="function"&&(It="UNSAFE_componentWillUpdate"),Ot!==null||Bt!==null||It!==null){var an=Et.displayName||Et.name,nn=typeof Et.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. +`)}function In(pn,Vt){return!!(Vt=Vt??9007199254740991)&&(typeof pn=="number"||ft.test(pn))&&pn>-1&&pn%1==0&&pn1&&rt--,ot=6*rt<1?et+6*(tt-et)*rt:2*rt<1?tt:3*rt<2?et+(tt-et)*(2/3-rt)*6:et,nt[ut]=255*ot;return nt}},function(k,j,$){(function(et){var tt=typeof et=="object"&&et&&et.Object===Object&&et,rt=typeof self=="object"&&self&&self.Object===Object&&self,nt=tt||rt||Function("return this")();function ot(xt,bt,At){switch(At.length){case 0:return xt.call(bt);case 1:return xt.call(bt,At[0]);case 2:return xt.call(bt,At[0],At[1]);case 3:return xt.call(bt,At[0],At[1],At[2])}return xt.apply(bt,At)}function at(xt,bt){for(var At=-1,_t=bt.length,Ct=xt.length;++At<_t;)xt[Ct+At]=bt[At];return xt}var it=Object.prototype,dt=it.hasOwnProperty,ut=it.toString,ht=nt.Symbol,ft=it.propertyIsEnumerable,st=ht?ht.isConcatSpreadable:void 0,ct=Math.max;function pt(xt){return lt(xt)||function(bt){return function(At){return function(_t){return!!_t&&typeof _t=="object"}(At)&&function(_t){return _t!=null&&function(Ct){return typeof Ct=="number"&&Ct>-1&&Ct%1==0&&Ct<=9007199254740991}(_t.length)&&!function(Ct){var Mt=function(jt){var Rt=typeof jt;return!!jt&&(Rt=="object"||Rt=="function")}(Ct)?ut.call(Ct):"";return Mt=="[object Function]"||Mt=="[object GeneratorFunction]"}(_t)}(At)}(bt)&&dt.call(bt,"callee")&&(!ft.call(bt,"callee")||ut.call(bt)=="[object Arguments]")}(xt)||!!(st&&xt&&xt[st])}var lt=Array.isArray,wt,yt,vt,St=(yt=function(xt){var bt=(xt=function _t(Ct,Mt,jt,Rt,zt){var Xt=-1,Jt=Ct.length;for(jt||(jt=pt),zt||(zt=[]);++Xt0&&jt(Kt)?Mt>1?_t(Kt,Mt-1,jt,Rt,zt):at(zt,Kt):Rt||(zt[zt.length]=Kt)}return zt}(xt,1)).length,At=bt;for(wt;At--;)if(typeof xt[At]!="function")throw new TypeError("Expected a function");return function(){for(var _t=0,Ct=bt?xt[_t].apply(this,arguments):arguments[0];++_t2?rt-2:0),ot=2;ot"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var Ot,Bt=ut(Et);if(Lt){var It=ut(this).constructor;Ot=Reflect.construct(Bt,arguments,It)}else Ot=Bt.apply(this,arguments);return st(this,Ot)}}$.r(j);var pt=$(0),lt=$.n(pt);function wt(){var Et=this.constructor.getDerivedStateFromProps(this.props,this.state);Et!=null&&this.setState(Et)}function yt(Et){this.setState((function(Lt){var Ot=this.constructor.getDerivedStateFromProps(Et,Lt);return Ot??null}).bind(this))}function vt(Et,Lt){try{var Ot=this.props,Bt=this.state;this.props=Et,this.state=Lt,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(Ot,Bt)}finally{this.props=Ot,this.state=Bt}}function St(Et){var Lt=Et.prototype;if(!Lt||!Lt.isReactComponent)throw new Error("Can only polyfill class components");if(typeof Et.getDerivedStateFromProps!="function"&&typeof Lt.getSnapshotBeforeUpdate!="function")return Et;var Ot=null,Bt=null,It=null;if(typeof Lt.componentWillMount=="function"?Ot="componentWillMount":typeof Lt.UNSAFE_componentWillMount=="function"&&(Ot="UNSAFE_componentWillMount"),typeof Lt.componentWillReceiveProps=="function"?Bt="componentWillReceiveProps":typeof Lt.UNSAFE_componentWillReceiveProps=="function"&&(Bt="UNSAFE_componentWillReceiveProps"),typeof Lt.componentWillUpdate=="function"?It="componentWillUpdate":typeof Lt.UNSAFE_componentWillUpdate=="function"&&(It="UNSAFE_componentWillUpdate"),Ot!==null||Bt!==null||It!==null){var an=Et.displayName||Et.name,nn=typeof Et.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. `+an+" uses "+nn+" but also contains the following legacy lifecycles:"+(Ot!==null?` `+Ot:"")+(Bt!==null?` @@ -1109,8 +1109,8 @@ PERFORMANCE OF THIS SOFTWARE. The above lifecycles should be removed. Learn more about this warning here: https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof Et.getDerivedStateFromProps=="function"&&(Lt.componentWillMount=wt,Lt.componentWillReceiveProps=yt),typeof Lt.getSnapshotBeforeUpdate=="function"){if(typeof Lt.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");Lt.componentWillUpdate=vt;var Qt=Lt.componentDidUpdate;Lt.componentDidUpdate=function(Ht,gn,Wn){var Kn=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:Wn;Qt.call(this,Ht,gn,Kn)}}return Et}function xt(Et,Lt){if(Et==null)return{};var Ot,Bt,It=function(nn,Qt){if(nn==null)return{};var Ht,gn,Wn={},Kn=Object.keys(nn);for(gn=0;gn=0||(Wn[Ht]=nn[Ht]);return Wn}(Et,Lt);if(Object.getOwnPropertySymbols){var an=Object.getOwnPropertySymbols(Et);for(Bt=0;Bt=0||Object.prototype.propertyIsEnumerable.call(Et,Ot)&&(It[Ot]=Et[Ot])}return It}function bt(Et){var Lt=function(Ot){return{}.toString.call(Ot).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(Et);return Lt==="number"&&(Lt=isNaN(Et)?"nan":(0|Et)!=Et?"float":"integer"),Lt}wt.__suppressDeprecationWarning=!0,yt.__suppressDeprecationWarning=!0,vt.__suppressDeprecationWarning=!0;var At={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},_t={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},Ct={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},Mt=$(45),jt=function(Et){var Lt=function(Ot){return{backgroundColor:Ot.base00,ellipsisColor:Ot.base09,braceColor:Ot.base07,expandedIcon:Ot.base0D,collapsedIcon:Ot.base0E,keyColor:Ot.base07,arrayKeyColor:Ot.base0C,objectSize:Ot.base04,copyToClipboard:Ot.base0F,copyToClipboardCheck:Ot.base0D,objectBorder:Ot.base02,dataTypes:{boolean:Ot.base0E,date:Ot.base0D,float:Ot.base0B,function:Ot.base0D,integer:Ot.base0F,string:Ot.base09,nan:Ot.base08,null:Ot.base0A,undefined:Ot.base05,regexp:Ot.base0A,background:Ot.base02},editVariable:{editIcon:Ot.base0E,cancelIcon:Ot.base09,removeIcon:Ot.base09,addIcon:Ot.base0E,checkIcon:Ot.base0E,background:Ot.base01,color:Ot.base0A,border:Ot.base07},addKeyModal:{background:Ot.base05,border:Ot.base04,color:Ot.base0A,labelColor:Ot.base01},validationFailure:{background:Ot.base09,iconColor:Ot.base01,fontColor:Ot.base01}}}(Et);return{"app-container":{fontFamily:Ct.globalFontFamily,cursor:Ct.globalCursor,backgroundColor:Lt.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:Lt.ellipsisColor,fontSize:Ct.ellipsisFontSize,lineHeight:Ct.ellipsisLineHeight,cursor:Ct.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:Ct.braceCursor,fontWeight:Ct.braceFontWeight,color:Lt.braceColor},"expanded-icon":{color:Lt.expandedIcon},"collapsed-icon":{color:Lt.collapsedIcon},colon:{display:"inline-block",margin:Ct.keyMargin,color:Lt.keyColor,verticalAlign:"top"},objectKeyVal:function(Ot,Bt){return{style:rt({paddingTop:Ct.keyValPaddingTop,paddingRight:Ct.keyValPaddingRight,paddingBottom:Ct.keyValPaddingBottom,borderLeft:Ct.keyValBorderLeft+" "+Lt.objectBorder,":hover":{paddingLeft:Bt.paddingLeft-1+"px",borderLeft:Ct.keyValBorderHover+" "+Lt.objectBorder}},Bt)}},"object-key-val-no-border":{padding:Ct.keyValPadding},"pushed-content":{marginLeft:Ct.pushedContentMarginLeft},variableValue:function(Ot,Bt){return{style:rt({display:"inline-block",paddingRight:Ct.variableValuePaddingRight,position:"relative"},Bt)}},"object-name":{display:"inline-block",color:Lt.keyColor,letterSpacing:Ct.keyLetterSpacing,fontStyle:Ct.keyFontStyle,verticalAlign:Ct.keyVerticalAlign,opacity:Ct.keyOpacity,":hover":{opacity:Ct.keyOpacityHover}},"array-key":{display:"inline-block",color:Lt.arrayKeyColor,letterSpacing:Ct.keyLetterSpacing,fontStyle:Ct.keyFontStyle,verticalAlign:Ct.keyVerticalAlign,opacity:Ct.keyOpacity,":hover":{opacity:Ct.keyOpacityHover}},"object-size":{color:Lt.objectSize,borderRadius:Ct.objectSizeBorderRadius,fontStyle:Ct.objectSizeFontStyle,margin:Ct.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:Ct.dataTypeFontSize,marginRight:Ct.dataTypeMarginRight,opacity:Ct.datatypeOpacity},boolean:{display:"inline-block",color:Lt.dataTypes.boolean},date:{display:"inline-block",color:Lt.dataTypes.date},"date-value":{marginLeft:Ct.dateValueMarginLeft},float:{display:"inline-block",color:Lt.dataTypes.float},function:{display:"inline-block",color:Lt.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:Lt.dataTypes.integer},string:{display:"inline-block",color:Lt.dataTypes.string},nan:{display:"inline-block",color:Lt.dataTypes.nan,fontSize:Ct.nanFontSize,fontWeight:Ct.nanFontWeight,backgroundColor:Lt.dataTypes.background,padding:Ct.nanPadding,borderRadius:Ct.nanBorderRadius},null:{display:"inline-block",color:Lt.dataTypes.null,fontSize:Ct.nullFontSize,fontWeight:Ct.nullFontWeight,backgroundColor:Lt.dataTypes.background,padding:Ct.nullPadding,borderRadius:Ct.nullBorderRadius},undefined:{display:"inline-block",color:Lt.dataTypes.undefined,fontSize:Ct.undefinedFontSize,padding:Ct.undefinedPadding,borderRadius:Ct.undefinedBorderRadius,backgroundColor:Lt.dataTypes.background},regexp:{display:"inline-block",color:Lt.dataTypes.regexp},"copy-to-clipboard":{cursor:Ct.clipboardCursor},"copy-icon":{color:Lt.copyToClipboard,fontSize:Ct.iconFontSize,marginRight:Ct.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:Lt.copyToClipboardCheck,marginLeft:Ct.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:Ct.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:Ct.metaDataPadding},"icon-container":{display:"inline-block",width:Ct.iconContainerWidth},tooltip:{padding:Ct.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:Lt.editVariable.removeIcon,cursor:Ct.iconCursor,fontSize:Ct.iconFontSize,marginRight:Ct.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:Lt.editVariable.addIcon,cursor:Ct.iconCursor,fontSize:Ct.iconFontSize,marginRight:Ct.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:Lt.editVariable.editIcon,cursor:Ct.iconCursor,fontSize:Ct.iconFontSize,marginRight:Ct.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:Ct.iconCursor,color:Lt.editVariable.checkIcon,fontSize:Ct.iconFontSize,paddingRight:Ct.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:Ct.iconCursor,color:Lt.editVariable.cancelIcon,fontSize:Ct.iconFontSize,paddingRight:Ct.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:Ct.editInputMinWidth,borderRadius:Ct.editInputBorderRadius,backgroundColor:Lt.editVariable.background,color:Lt.editVariable.color,padding:Ct.editInputPadding,marginRight:Ct.editInputMarginRight,fontFamily:Ct.editInputFontFamily},"detected-row":{paddingTop:Ct.detectedRowPaddingTop},"key-modal-request":{position:Ct.addKeyCoverPosition,top:Ct.addKeyCoverPositionPx,left:Ct.addKeyCoverPositionPx,right:Ct.addKeyCoverPositionPx,bottom:Ct.addKeyCoverPositionPx,backgroundColor:Ct.addKeyCoverBackground},"key-modal":{width:Ct.addKeyModalWidth,backgroundColor:Lt.addKeyModal.background,marginLeft:Ct.addKeyModalMargin,marginRight:Ct.addKeyModalMargin,padding:Ct.addKeyModalPadding,borderRadius:Ct.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:Lt.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:Lt.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:Lt.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:Lt.addKeyModal.labelColor,fontSize:Ct.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:Lt.editVariable.addIcon,fontSize:Ct.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:Lt.ellipsisColor,fontSize:Ct.ellipsisFontSize,lineHeight:Ct.ellipsisLineHeight,cursor:Ct.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:Lt.validationFailure.fontColor,backgroundColor:Lt.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:Lt.validationFailure.iconColor,fontSize:Ct.iconFontSize,transform:"rotate(45deg)"}}};function Rt(Et,Lt,Ot){return Et||console.error("theme has not been set"),function(Bt){var It=At;return Bt!==!1&&Bt!=="none"||(It=_t),Object(Mt.createStyling)(jt,{defaultBase16:It})(Bt)}(Et)(Lt,Ot)}var zt=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=(Bt.rjvId,Bt.type_name),an=Bt.displayDataTypes,nn=Bt.theme;return an?lt.a.createElement("span",Object.assign({className:"data-type-label"},Rt(nn,"data-type-label")),It):null}}]),Ot}(lt.a.PureComponent),Xt=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props;return lt.a.createElement("div",Rt(Bt.theme,"boolean"),lt.a.createElement(zt,Object.assign({type_name:"bool"},Bt)),Bt.value?"true":"false")}}]),Ot}(lt.a.PureComponent),Jt=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props;return lt.a.createElement("div",Rt(Bt.theme,"date"),lt.a.createElement(zt,Object.assign({type_name:"date"},Bt)),lt.a.createElement("span",Object.assign({className:"date-value"},Rt(Bt.theme,"date-value")),Bt.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),Ot}(lt.a.PureComponent),Kt=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props;return lt.a.createElement("div",Rt(Bt.theme,"float"),lt.a.createElement(zt,Object.assign({type_name:"float"},Bt)),this.props.value)}}]),Ot}(lt.a.PureComponent);function Zt(Et,Lt){(Lt==null||Lt>Et.length)&&(Lt=Et.length);for(var Ot=0,Bt=new Array(Lt);Ot"u"||Et[Symbol.iterator]==null){if(Array.isArray(Et)||(Ot=dn(Et))||Lt&&Et&&typeof Et.length=="number"){Ot&&(Et=Ot);var Bt=0,It=function(){};return{s:It,n:function(){return Bt>=Et.length?{done:!0}:{done:!1,value:Et[Bt++]}},e:function(Ht){throw Ht},f:It}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var an,nn=!0,Qt=!1;return{s:function(){Ot=Et[Symbol.iterator]()},n:function(){var Ht=Ot.next();return nn=Ht.done,Ht},e:function(Ht){Qt=!0,an=Ht},f:function(){try{nn||Ot.return==null||Ot.return()}finally{if(Qt)throw an}}}}function En(Et){return function(Lt){if(Array.isArray(Lt))return Zt(Lt)}(Et)||function(Lt){if(typeof Symbol<"u"&&Symbol.iterator in Object(Lt))return Array.from(Lt)}(Et)||dn(Et)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var yn=$(46),jn=new($(47)).Dispatcher,Vn=new(function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){var Bt;nt(this,Ot);for(var It=arguments.length,an=new Array(It),nn=0;nnIt&&(Qt.style.cursor="pointer",this.state.collapsed&&(nn=lt.a.createElement("span",null,nn.substring(0,It),lt.a.createElement("span",Rt(an,"ellipsis")," ...")))),lt.a.createElement("div",Rt(an,"string"),lt.a.createElement(zt,Object.assign({type_name:"string"},Bt)),lt.a.createElement("span",Object.assign({className:"string-value"},Qt,{onClick:this.toggleCollapsed}),'"',nn,'"'))}}]),Ot}(lt.a.PureComponent),ln=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){return lt.a.createElement("div",Rt(this.props.theme,"undefined"),"undefined")}}]),Ot}(lt.a.PureComponent);function Tn(){return(Tn=Object.assign||function(Et){for(var Lt=1;Lt=0||($n[hr]=Xn[hr]);return $n}(Et,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),Wn,Kn=gn.value!==void 0,Yn=Object(pt.useRef)(null),er=Fn(Yn,Lt),Hn=Object(pt.useRef)(0),Jn=Object(pt.useRef)(),or=function(){var Xn=Yn.current,mr=Ot&&Jn.current?Jn.current:function(sr){var nr=window.getComputedStyle(sr);if(nr===null)return null;var tr,ir=(tr=nr,pn.reduce(function(Mr,jr){return Mr[jr]=tr[jr],Mr},{})),Ar=ir.boxSizing;return Ar===""?null:(Vt&&Ar==="border-box"&&(ir.width=parseFloat(ir.width)+parseFloat(ir.borderRightWidth)+parseFloat(ir.borderLeftWidth)+parseFloat(ir.paddingRight)+parseFloat(ir.paddingLeft)+"px"),{sizingStyle:ir,paddingSize:parseFloat(ir.paddingBottom)+parseFloat(ir.paddingTop),borderSize:parseFloat(ir.borderBottomWidth)+parseFloat(ir.borderTopWidth)})}(Xn);if(mr){Jn.current=mr;var hr=function(sr,nr,tr,ir){tr===void 0&&(tr=1),ir===void 0&&(ir=1/0),Pn||((Pn=document.createElement("textarea")).setAttribute("tab-index","-1"),Pn.setAttribute("aria-hidden","true"),Bn(Pn)),Pn.parentNode===null&&document.body.appendChild(Pn);var Ar=sr.paddingSize,Mr=sr.borderSize,jr=sr.sizingStyle,Or=jr.boxSizing;Object.keys(jr).forEach(function(Nr){var Br=Nr;Pn.style[Br]=jr[Br]}),Bn(Pn),Pn.value=nr;var sn=function(Nr,Br){var Wr=Nr.scrollHeight;return Br.sizingStyle.boxSizing==="border-box"?Wr+Br.borderSize:Wr-Br.paddingSize}(Pn,sr);Pn.value="x";var Lr=Pn.scrollHeight-Ar,Dr=Lr*tr;Or==="border-box"&&(Dr=Dr+Ar+Mr),sn=Math.max(Dr,sn);var Fr=Lr*ir;return Or==="border-box"&&(Fr=Fr+Ar+Mr),[sn=Math.min(Fr,sn),Lr]}(mr,Xn.value||Xn.placeholder||"x",It,Bt),Mn=hr[0],$n=hr[1];Hn.current!==Mn&&(Hn.current=Mn,Xn.style.setProperty("height",Mn+"px","important"),Ht(Mn,{rowHeight:$n}))}};return Object(pt.useLayoutEffect)(or),Wn=Ln(or),Object(pt.useLayoutEffect)(function(){var Xn=function(mr){Wn.current(mr)};return window.addEventListener("resize",Xn),function(){window.removeEventListener("resize",Xn)}},[]),Object(pt.createElement)("textarea",Tn({},gn,{onChange:function(Xn){Kn||or(),nn(Xn)},ref:er}))},wn=Object(pt.forwardRef)(qt);function Nn(Et){Et=Et.trim();try{if((Et=JSON.stringify(JSON.parse(Et)))[0]==="[")return lr("array",JSON.parse(Et));if(Et[0]==="{")return lr("object",JSON.parse(Et));if(Et.match(/\-?\d+\.\d+/)&&Et.match(/\-?\d+\.\d+/)[0]===Et)return lr("float",parseFloat(Et));if(Et.match(/\-?\d+e-\d+/)&&Et.match(/\-?\d+e-\d+/)[0]===Et)return lr("float",Number(Et));if(Et.match(/\-?\d+/)&&Et.match(/\-?\d+/)[0]===Et)return lr("integer",parseInt(Et));if(Et.match(/\-?\d+e\+\d+/)&&Et.match(/\-?\d+e\+\d+/)[0]===Et)return lr("integer",Number(Et))}catch{}switch(Et=Et.toLowerCase()){case"undefined":return lr("undefined",void 0);case"nan":return lr("nan",NaN);case"null":return lr("null",null);case"true":return lr("boolean",!0);case"false":return lr("boolean",!1);default:if(Et=Date.parse(Et))return lr("date",new Date(Et))}return lr(!1,null)}function lr(Et,Lt){return{type:Et,value:Lt}}var fr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return lt.a.createElement("span",an,lt.a.createElement("svg",Object.assign({},cr(It),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),lt.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),Ot}(lt.a.PureComponent),Zn=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return lt.a.createElement("span",an,lt.a.createElement("svg",Object.assign({},cr(It),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),lt.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),Ot}(lt.a.PureComponent),vr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]),nn=cr(It).style;return lt.a.createElement("span",an,lt.a.createElement("svg",{fill:nn.color,width:nn.height,height:nn.width,style:nn,viewBox:"0 0 1792 1792"},lt.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),Ot}(lt.a.PureComponent),yr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]),nn=cr(It).style;return lt.a.createElement("span",an,lt.a.createElement("svg",{fill:nn.color,width:nn.height,height:nn.width,style:nn,viewBox:"0 0 1792 1792"},lt.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),Ot}(lt.a.PureComponent),Rn=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return lt.a.createElement("span",an,lt.a.createElement("svg",{style:rt(rt({},cr(It).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},lt.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),Ot}(lt.a.PureComponent),ur=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return lt.a.createElement("span",an,lt.a.createElement("svg",{style:rt(rt({},cr(It).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},lt.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),Ot}(lt.a.PureComponent),qn=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return lt.a.createElement("span",an,lt.a.createElement("svg",Object.assign({},cr(It),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),lt.a.createElement("g",null,lt.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),Ot}(lt.a.PureComponent),pr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return lt.a.createElement("span",an,lt.a.createElement("svg",Object.assign({},cr(It),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),lt.a.createElement("g",null,lt.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),Ot}(lt.a.PureComponent),Gn=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return lt.a.createElement("span",an,lt.a.createElement("svg",Object.assign({},cr(It),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),lt.a.createElement("g",null,lt.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),Ot}(lt.a.PureComponent),zn=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return lt.a.createElement("span",an,lt.a.createElement("svg",Object.assign({},cr(It),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),lt.a.createElement("g",null,lt.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),Ot}(lt.a.PureComponent),ar=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return lt.a.createElement("span",an,lt.a.createElement("svg",Object.assign({},cr(It),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),lt.a.createElement("g",null,lt.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),Ot}(lt.a.PureComponent),rr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return lt.a.createElement("span",an,lt.a.createElement("svg",Object.assign({},cr(It),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),lt.a.createElement("g",null,lt.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),Ot}(lt.a.PureComponent);function cr(Et){return Et||(Et={}),{style:rt(rt({verticalAlign:"middle"},Et),{},{color:Et.color?Et.color:"#000000",height:"1em",width:"1em"})}}var xr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(Bt){var It;return nt(this,Ot),(It=Lt.call(this,Bt)).copiedTimer=null,It.handleCopy=function(){var an=document.createElement("textarea"),nn=It.props,Qt=nn.clickCallback,Ht=nn.src,gn=nn.namespace;an.innerHTML=JSON.stringify(It.clipboardValue(Ht),null," "),document.body.appendChild(an),an.select(),document.execCommand("copy"),document.body.removeChild(an),It.copiedTimer=setTimeout(function(){It.setState({copied:!1})},5500),It.setState({copied:!0},function(){typeof Qt=="function"&&Qt({src:Ht,namespace:gn,name:gn[gn.length-1]})})},It.getClippyIcon=function(){var an=It.props.theme;return It.state.copied?lt.a.createElement("span",null,lt.a.createElement(qn,Object.assign({className:"copy-icon"},Rt(an,"copy-icon"))),lt.a.createElement("span",Rt(an,"copy-icon-copied"),"✔")):lt.a.createElement(qn,Object.assign({className:"copy-icon"},Rt(an,"copy-icon")))},It.clipboardValue=function(an){switch(bt(an)){case"function":case"regexp":return an.toString();default:return an}},It.state={copied:!1},It}return at(Ot,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var Bt=this.props,It=(Bt.src,Bt.theme),an=Bt.hidden,nn=Bt.rowHovered,Qt=Rt(It,"copy-to-clipboard").style,Ht="inline";return an&&(Ht="none"),lt.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:nn?"inline-block":"none"}},lt.a.createElement("span",{style:rt(rt({},Qt),{},{display:Ht}),onClick:this.handleCopy},this.getClippyIcon()))}}]),Ot}(lt.a.PureComponent),kr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(Bt){var It;return nt(this,Ot),(It=Lt.call(this,Bt)).getEditIcon=function(){var an=It.props,nn=an.variable,Qt=an.theme;return lt.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:It.state.hovered?"inline-block":"none"}},lt.a.createElement(ar,Object.assign({className:"click-to-edit-icon"},Rt(Qt,"editVarIcon"),{onClick:function(){It.prepopInput(nn)}})))},It.prepopInput=function(an){if(It.props.onEdit!==!1){var nn=function(Ht){var gn;switch(bt(Ht)){case"undefined":gn="undefined";break;case"nan":gn="NaN";break;case"string":gn=Ht;break;case"date":case"function":case"regexp":gn=Ht.toString();break;default:try{gn=JSON.stringify(Ht,null," ")}catch{gn=""}}return gn}(an.value),Qt=Nn(nn);It.setState({editMode:!0,editValue:nn,parsedInput:{type:Qt.type,value:Qt.value}})}},It.getRemoveIcon=function(){var an=It.props,nn=an.variable,Qt=an.namespace,Ht=an.theme,gn=an.rjvId;return lt.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:It.state.hovered?"inline-block":"none"}},lt.a.createElement(pr,Object.assign({className:"click-to-remove-icon"},Rt(Ht,"removeVarIcon"),{onClick:function(){jn.dispatch({name:"VARIABLE_REMOVED",rjvId:gn,data:{name:nn.name,namespace:Qt,existing_value:nn.value,variable_removed:!0}})}})))},It.getValue=function(an,nn){var Qt=!nn&&an.type,Ht=ft(It).props;switch(Qt){case!1:return It.getEditInput();case"string":return lt.a.createElement(_n,Object.assign({value:an.value},Ht));case"integer":return lt.a.createElement(bn,Object.assign({value:an.value},Ht));case"float":return lt.a.createElement(Kt,Object.assign({value:an.value},Ht));case"boolean":return lt.a.createElement(Xt,Object.assign({value:an.value},Ht));case"function":return lt.a.createElement(xn,Object.assign({value:an.value},Ht));case"null":return lt.a.createElement(Sn,Ht);case"nan":return lt.a.createElement(fn,Ht);case"undefined":return lt.a.createElement(ln,Ht);case"date":return lt.a.createElement(Jt,Object.assign({value:an.value},Ht));case"regexp":return lt.a.createElement(hn,Object.assign({value:an.value},Ht));default:return lt.a.createElement("div",{className:"object-value"},JSON.stringify(an.value))}},It.getEditInput=function(){var an=It.props.theme,nn=It.state.editValue;return lt.a.createElement("div",null,lt.a.createElement(wn,Object.assign({type:"text",inputRef:function(Qt){return Qt&&Qt.focus()},value:nn,className:"variable-editor",onChange:function(Qt){var Ht=Qt.target.value,gn=Nn(Ht);It.setState({editValue:Ht,parsedInput:{type:gn.type,value:gn.value}})},onKeyDown:function(Qt){switch(Qt.key){case"Escape":It.setState({editMode:!1,editValue:""});break;case"Enter":(Qt.ctrlKey||Qt.metaKey)&&It.submitEdit(!0)}Qt.stopPropagation()},placeholder:"update this value",minRows:2},Rt(an,"edit-input"))),lt.a.createElement("div",Rt(an,"edit-icon-container"),lt.a.createElement(pr,Object.assign({className:"edit-cancel"},Rt(an,"cancel-icon"),{onClick:function(){It.setState({editMode:!1,editValue:""})}})),lt.a.createElement(rr,Object.assign({className:"edit-check string-value"},Rt(an,"check-icon"),{onClick:function(){It.submitEdit()}})),lt.a.createElement("div",null,It.showDetected())))},It.submitEdit=function(an){var nn=It.props,Qt=nn.variable,Ht=nn.namespace,gn=nn.rjvId,Wn=It.state,Kn=Wn.editValue,Yn=Wn.parsedInput,er=Kn;an&&Yn.type&&(er=Yn.value),It.setState({editMode:!1}),jn.dispatch({name:"VARIABLE_UPDATED",rjvId:gn,data:{name:Qt.name,namespace:Ht,existing_value:Qt.value,new_value:er,variable_removed:!1}})},It.showDetected=function(){var an=It.props,nn=an.theme,Qt=(an.variable,an.namespace,an.rjvId,It.state.parsedInput),Ht=(Qt.type,Qt.value,It.getDetectedInput());if(Ht)return lt.a.createElement("div",null,lt.a.createElement("div",Rt(nn,"detected-row"),Ht,lt.a.createElement(rr,{className:"edit-check detected",style:rt({verticalAlign:"top",paddingLeft:"3px"},Rt(nn,"check-icon").style),onClick:function(){It.submitEdit(!0)}})))},It.getDetectedInput=function(){var an=It.state.parsedInput,nn=an.type,Qt=an.value,Ht=ft(It).props,gn=Ht.theme;if(nn!==!1)switch(nn.toLowerCase()){case"object":return lt.a.createElement("span",null,lt.a.createElement("span",{style:rt(rt({},Rt(gn,"brace").style),{},{cursor:"default"})},"{"),lt.a.createElement("span",{style:rt(rt({},Rt(gn,"ellipsis").style),{},{cursor:"default"})},"..."),lt.a.createElement("span",{style:rt(rt({},Rt(gn,"brace").style),{},{cursor:"default"})},"}"));case"array":return lt.a.createElement("span",null,lt.a.createElement("span",{style:rt(rt({},Rt(gn,"brace").style),{},{cursor:"default"})},"["),lt.a.createElement("span",{style:rt(rt({},Rt(gn,"ellipsis").style),{},{cursor:"default"})},"..."),lt.a.createElement("span",{style:rt(rt({},Rt(gn,"brace").style),{},{cursor:"default"})},"]"));case"string":return lt.a.createElement(_n,Object.assign({value:Qt},Ht));case"integer":return lt.a.createElement(bn,Object.assign({value:Qt},Ht));case"float":return lt.a.createElement(Kt,Object.assign({value:Qt},Ht));case"boolean":return lt.a.createElement(Xt,Object.assign({value:Qt},Ht));case"function":return lt.a.createElement(xn,Object.assign({value:Qt},Ht));case"null":return lt.a.createElement(Sn,Ht);case"nan":return lt.a.createElement(fn,Ht);case"undefined":return lt.a.createElement(ln,Ht);case"date":return lt.a.createElement(Jt,Object.assign({value:new Date(Qt)},Ht))}},It.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},It}return at(Ot,[{key:"render",value:function(){var Bt=this,It=this.props,an=It.variable,nn=It.singleIndent,Qt=It.type,Ht=It.theme,gn=It.namespace,Wn=It.indentWidth,Kn=It.enableClipboard,Yn=It.onEdit,er=It.onDelete,Hn=It.onSelect,Jn=It.displayArrayKey,or=It.quotesOnKeys,Xn=this.state.editMode;return lt.a.createElement("div",Object.assign({},Rt(Ht,"objectKeyVal",{paddingLeft:Wn*nn}),{onMouseEnter:function(){return Bt.setState(rt(rt({},Bt.state),{},{hovered:!0}))},onMouseLeave:function(){return Bt.setState(rt(rt({},Bt.state),{},{hovered:!1}))},className:"variable-row",key:an.name}),Qt=="array"?Jn?lt.a.createElement("span",Object.assign({},Rt(Ht,"array-key"),{key:an.name+"_"+gn}),an.name,lt.a.createElement("div",Rt(Ht,"colon"),":")):null:lt.a.createElement("span",null,lt.a.createElement("span",Object.assign({},Rt(Ht,"object-name"),{className:"object-key",key:an.name+"_"+gn}),!!or&<.a.createElement("span",{style:{verticalAlign:"top"}},'"'),lt.a.createElement("span",{style:{display:"inline-block"}},an.name),!!or&<.a.createElement("span",{style:{verticalAlign:"top"}},'"')),lt.a.createElement("span",Rt(Ht,"colon"),":")),lt.a.createElement("div",Object.assign({className:"variable-value",onClick:Hn===!1&&Yn===!1?null:function(mr){var hr=En(gn);(mr.ctrlKey||mr.metaKey)&&Yn!==!1?Bt.prepopInput(an):Hn!==!1&&(hr.shift(),Hn(rt(rt({},an),{},{namespace:hr})))}},Rt(Ht,"variableValue",{cursor:Hn===!1?"default":"pointer"})),this.getValue(an,Xn)),Kn?lt.a.createElement(xr,{rowHovered:this.state.hovered,hidden:Xn,src:an.value,clickCallback:Kn,theme:Ht,namespace:[].concat(En(gn),[an.name])}):null,Yn!==!1&&Xn==0?this.getEditIcon():null,er!==!1&&Xn==0?this.getRemoveIcon():null)}}]),Ot}(lt.a.PureComponent),Tr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){var Bt;nt(this,Ot);for(var It=arguments.length,an=new Array(It),nn=0;nn0?Kn:null,namespace:Wn.splice(0,Wn.length-1),existing_value:Yn,variable_removed:!1,key_name:null};bt(Yn)==="object"?jn.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:er,data:Jn}):jn.dispatch({name:"VARIABLE_ADDED",rjvId:er,data:rt(rt({},Jn),{},{new_value:[].concat(En(Yn),[null])})})}})))},Bt.getRemoveObject=function(Qt){var Ht=Bt.props,gn=Ht.theme,Wn=(Ht.hover,Ht.namespace),Kn=Ht.name,Yn=Ht.src,er=Ht.rjvId;if(Wn.length!==1)return lt.a.createElement("span",{className:"click-to-remove",style:{display:Qt?"inline-block":"none"}},lt.a.createElement(pr,Object.assign({className:"click-to-remove-icon"},Rt(gn,"removeVarIcon"),{onClick:function(){jn.dispatch({name:"VARIABLE_REMOVED",rjvId:er,data:{name:Kn,namespace:Wn.splice(0,Wn.length-1),existing_value:Yn,variable_removed:!0}})}})))},Bt.render=function(){var Qt=Bt.props,Ht=Qt.theme,gn=Qt.onDelete,Wn=Qt.onAdd,Kn=Qt.enableClipboard,Yn=Qt.src,er=Qt.namespace,Hn=Qt.rowHovered;return lt.a.createElement("div",Object.assign({},Rt(Ht,"object-meta-data"),{className:"object-meta-data",onClick:function(Jn){Jn.stopPropagation()}}),Bt.getObjectSize(),Kn?lt.a.createElement(xr,{rowHovered:Hn,clickCallback:Kn,src:Yn,theme:Ht,namespace:er}):null,Wn!==!1?Bt.getAddAttribute(Hn):null,gn!==!1?Bt.getRemoveObject(Hn):null)},Bt}return Ot}(lt.a.PureComponent);function Pr(Et){var Lt=Et.parent_type,Ot=Et.namespace,Bt=Et.quotesOnKeys,It=Et.theme,an=Et.jsvRoot,nn=Et.name,Qt=Et.displayArrayKey,Ht=Et.name?Et.name:"";return!an||nn!==!1&&nn!==null?Lt=="array"?Qt?lt.a.createElement("span",Object.assign({},Rt(It,"array-key"),{key:Ot}),lt.a.createElement("span",{className:"array-key"},Ht),lt.a.createElement("span",Rt(It,"colon"),":")):lt.a.createElement("span",null):lt.a.createElement("span",Object.assign({},Rt(It,"object-name"),{key:Ot}),lt.a.createElement("span",{className:"object-key"},Bt&<.a.createElement("span",{style:{verticalAlign:"top"}},'"'),lt.a.createElement("span",null,Ht),Bt&<.a.createElement("span",{style:{verticalAlign:"top"}},'"')),lt.a.createElement("span",Rt(It,"colon"),":")):lt.a.createElement("span",null)}function Ir(Et){var Lt=Et.theme;switch(Et.iconStyle){case"triangle":return lt.a.createElement(ur,Object.assign({},Rt(Lt,"expanded-icon"),{className:"expanded-icon"}));case"square":return lt.a.createElement(vr,Object.assign({},Rt(Lt,"expanded-icon"),{className:"expanded-icon"}));default:return lt.a.createElement(fr,Object.assign({},Rt(Lt,"expanded-icon"),{className:"expanded-icon"}))}}function zr(Et){var Lt=Et.theme;switch(Et.iconStyle){case"triangle":return lt.a.createElement(Rn,Object.assign({},Rt(Lt,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return lt.a.createElement(yr,Object.assign({},Rt(Lt,"collapsed-icon"),{className:"collapsed-icon"}));default:return lt.a.createElement(Zn,Object.assign({},Rt(Lt,"collapsed-icon"),{className:"collapsed-icon"}))}}var Qr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(Bt){var It;return nt(this,Ot),(It=Lt.call(this,Bt)).toggleCollapsed=function(an){var nn=[];for(var Qt in It.state.expanded)nn.push(It.state.expanded[Qt]);nn[an]=!nn[an],It.setState({expanded:nn})},It.state={expanded:[]},It}return at(Ot,[{key:"getExpandedIcon",value:function(Bt){var It=this.props,an=It.theme,nn=It.iconStyle;return this.state.expanded[Bt]?lt.a.createElement(Ir,{theme:an,iconStyle:nn}):lt.a.createElement(zr,{theme:an,iconStyle:nn})}},{key:"render",value:function(){var Bt=this,It=this.props,an=It.src,nn=It.groupArraysAfterLength,Qt=(It.depth,It.name),Ht=It.theme,gn=It.jsvRoot,Wn=It.namespace,Kn=(It.parent_type,xt(It,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),Yn=0,er=5*this.props.indentWidth;gn||(Yn=5*this.props.indentWidth);var Hn=nn,Jn=Math.ceil(an.length/Hn);return lt.a.createElement("div",Object.assign({className:"object-key-val"},Rt(Ht,gn?"jsv-root":"objectKeyVal",{paddingLeft:Yn})),lt.a.createElement(Pr,this.props),lt.a.createElement("span",null,lt.a.createElement(Tr,Object.assign({size:an.length},this.props))),En(Array(Jn)).map(function(or,Xn){return lt.a.createElement("div",Object.assign({key:Xn,className:"object-key-val array-group"},Rt(Ht,"objectKeyVal",{marginLeft:6,paddingLeft:er})),lt.a.createElement("span",Rt(Ht,"brace-row"),lt.a.createElement("div",Object.assign({className:"icon-container"},Rt(Ht,"icon-container"),{onClick:function(mr){Bt.toggleCollapsed(Xn)}}),Bt.getExpandedIcon(Xn)),Bt.state.expanded[Xn]?lt.a.createElement(kt,Object.assign({key:Qt+Xn,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:Hn,index_offset:Xn*Hn,src:an.slice(Xn*Hn,Xn*Hn+Hn),namespace:Wn,type:"array",parent_type:"array_group",theme:Ht},Kn)):lt.a.createElement("span",Object.assign({},Rt(Ht,"brace"),{onClick:function(mr){Bt.toggleCollapsed(Xn)},className:"array-group-brace"}),"[",lt.a.createElement("div",Object.assign({},Rt(Ht,"array-group-meta-data"),{className:"array-group-meta-data"}),lt.a.createElement("span",Object.assign({className:"object-size"},Rt(Ht,"object-size")),Xn*Hn," - ",Xn*Hn+Hn>an.length?an.length:Xn*Hn+Hn)),"]")))}))}}]),Ot}(lt.a.PureComponent),Zr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(Bt){var It;nt(this,Ot),(It=Lt.call(this,Bt)).toggleCollapsed=function(){It.setState({expanded:!It.state.expanded},function(){rn.set(It.props.rjvId,It.props.namespace,"expanded",It.state.expanded)})},It.getObjectContent=function(nn,Qt,Ht){return lt.a.createElement("div",{className:"pushed-content object-container"},lt.a.createElement("div",Object.assign({className:"object-content"},Rt(It.props.theme,"pushed-content")),It.renderObjectContents(Qt,Ht)))},It.getEllipsis=function(){return It.state.size===0?null:lt.a.createElement("div",Object.assign({},Rt(It.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:It.toggleCollapsed}),"...")},It.getObjectMetaData=function(nn){var Qt=It.props,Ht=(Qt.rjvId,Qt.theme,It.state),gn=Ht.size,Wn=Ht.hovered;return lt.a.createElement(Tr,Object.assign({rowHovered:Wn,size:gn},It.props))},It.renderObjectContents=function(nn,Qt){var Ht,gn=It.props,Wn=gn.depth,Kn=gn.parent_type,Yn=gn.index_offset,er=gn.groupArraysAfterLength,Hn=gn.namespace,Jn=It.state.object_type,or=[],Xn=Object.keys(nn||{});return It.props.sortKeys&&Jn!=="array"&&(Xn=Xn.sort()),Xn.forEach(function(mr){if(Ht=new mo(mr,nn[mr]),Kn==="array_group"&&Yn&&(Ht.name=parseInt(Ht.name)+Yn),nn.hasOwnProperty(mr))if(Ht.type==="object")or.push(lt.a.createElement(kt,Object.assign({key:Ht.name,depth:Wn+1,name:Ht.name,src:Ht.value,namespace:Hn.concat(Ht.name),parent_type:Jn},Qt)));else if(Ht.type==="array"){var hr=kt;er&&Ht.value.length>er&&(hr=Qr),or.push(lt.a.createElement(hr,Object.assign({key:Ht.name,depth:Wn+1,name:Ht.name,src:Ht.value,namespace:Hn.concat(Ht.name),type:"array",parent_type:Jn},Qt)))}else or.push(lt.a.createElement(kr,Object.assign({key:Ht.name+"_"+Hn,variable:Ht,singleIndent:5,namespace:Hn,type:It.props.type},Qt)))}),or};var an=Ot.getState(Bt);return It.state=rt(rt({},an),{},{prevProps:{}}),It}return at(Ot,[{key:"getBraceStart",value:function(Bt,It){var an=this,nn=this.props,Qt=nn.src,Ht=nn.theme,gn=nn.iconStyle;if(nn.parent_type==="array_group")return lt.a.createElement("span",null,lt.a.createElement("span",Rt(Ht,"brace"),Bt==="array"?"[":"{"),It?this.getObjectMetaData(Qt):null);var Wn=It?Ir:zr;return lt.a.createElement("span",null,lt.a.createElement("span",Object.assign({onClick:function(Kn){an.toggleCollapsed()}},Rt(Ht,"brace-row")),lt.a.createElement("div",Object.assign({className:"icon-container"},Rt(Ht,"icon-container")),lt.a.createElement(Wn,{theme:Ht,iconStyle:gn})),lt.a.createElement(Pr,this.props),lt.a.createElement("span",Rt(Ht,"brace"),Bt==="array"?"[":"{")),It?this.getObjectMetaData(Qt):null)}},{key:"render",value:function(){var Bt=this,It=this.props,an=It.depth,nn=It.src,Qt=(It.namespace,It.name,It.type,It.parent_type),Ht=It.theme,gn=It.jsvRoot,Wn=It.iconStyle,Kn=xt(It,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),Yn=this.state,er=Yn.object_type,Hn=Yn.expanded,Jn={};return gn||Qt==="array_group"?Qt==="array_group"&&(Jn.borderLeft=0,Jn.display="inline"):Jn.paddingLeft=5*this.props.indentWidth,lt.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return Bt.setState(rt(rt({},Bt.state),{},{hovered:!0}))},onMouseLeave:function(){return Bt.setState(rt(rt({},Bt.state),{},{hovered:!1}))}},Rt(Ht,gn?"jsv-root":"objectKeyVal",Jn)),this.getBraceStart(er,Hn),Hn?this.getObjectContent(an,nn,rt({theme:Ht,iconStyle:Wn},Kn)):this.getEllipsis(),lt.a.createElement("span",{className:"brace-row"},lt.a.createElement("span",{style:rt(rt({},Rt(Ht,"brace").style),{},{paddingLeft:Hn?"3px":"0px"})},er==="array"?"]":"}"),Hn?null:this.getObjectMetaData(nn)))}}],[{key:"getDerivedStateFromProps",value:function(Bt,It){var an=It.prevProps;return Bt.src!==an.src||Bt.collapsed!==an.collapsed||Bt.name!==an.name||Bt.namespace!==an.namespace||Bt.rjvId!==an.rjvId?rt(rt({},Ot.getState(Bt)),{},{prevProps:Bt}):null}}]),Ot}(lt.a.PureComponent);Zr.getState=function(Et){var Lt=Object.keys(Et.src).length,Ot=(Et.collapsed===!1||Et.collapsed!==!0&&Et.collapsed>Et.depth)&&(!Et.shouldCollapse||Et.shouldCollapse({name:Et.name,src:Et.src,type:bt(Et.src),namespace:Et.namespace})===!1)&&Lt!==0;return{expanded:rn.get(Et.rjvId,Et.namespace,"expanded",Ot),object_type:Et.type==="array"?"array":"object",parent_type:Et.type==="array"?"array":"object",size:Lt,hovered:!1}};var mo=function Et(Lt,Ot){nt(this,Et),this.name=Lt,this.value=Ot,this.type=bt(Ot)};St(Zr);var kt=Zr,$t=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){var Bt;nt(this,Ot);for(var It=arguments.length,an=new Array(It),nn=0;nnQt.groupArraysAfterLength&&(gn=Qr),lt.a.createElement("div",{className:"pretty-json-container object-container"},lt.a.createElement("div",{className:"object-content"},lt.a.createElement(gn,Object.assign({namespace:Ht,depth:0,jsvRoot:!0},Qt))))},Bt}return Ot}(lt.a.PureComponent),Pt=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(Bt){var It;return nt(this,Ot),(It=Lt.call(this,Bt)).closeModal=function(){jn.dispatch({rjvId:It.props.rjvId,name:"RESET"})},It.submit=function(){It.props.submit(It.state.input)},It.state={input:Bt.input?Bt.input:""},It}return at(Ot,[{key:"render",value:function(){var Bt=this,It=this.props,an=It.theme,nn=It.rjvId,Qt=It.isValid,Ht=this.state.input,gn=Qt(Ht);return lt.a.createElement("div",Object.assign({className:"key-modal-request"},Rt(an,"key-modal-request"),{onClick:this.closeModal}),lt.a.createElement("div",Object.assign({},Rt(an,"key-modal"),{onClick:function(Wn){Wn.stopPropagation()}}),lt.a.createElement("div",Rt(an,"key-modal-label"),"Key Name:"),lt.a.createElement("div",{style:{position:"relative"}},lt.a.createElement("input",Object.assign({},Rt(an,"key-modal-input"),{className:"key-modal-input",ref:function(Wn){return Wn&&Wn.focus()},spellCheck:!1,value:Ht,placeholder:"...",onChange:function(Wn){Bt.setState({input:Wn.target.value})},onKeyPress:function(Wn){gn&&Wn.key==="Enter"?Bt.submit():Wn.key==="Escape"&&Bt.closeModal()}})),gn?lt.a.createElement(rr,Object.assign({},Rt(an,"key-modal-submit"),{className:"key-modal-submit",onClick:function(Wn){return Bt.submit()}})):null),lt.a.createElement("span",Rt(an,"key-modal-cancel"),lt.a.createElement(zn,Object.assign({},Rt(an,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){jn.dispatch({rjvId:nn,name:"RESET"})}})))))}}]),Ot}(lt.a.PureComponent),gt=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){var Bt;nt(this,Ot);for(var It=arguments.length,an=new Array(It),nn=0;nn_($.updated_src),[]);return jsxs("div",{className:"send-tx-form",children:[jsx$1("h3",{children:"Configure and send transaction"}),jsx$1(ReactJson,{src:defaultTx,theme:"ocean",onEdit:j,onAdd:j,onDelete:j}),d?jsx$1("button",{onClick:()=>k.sendTransaction(b),children:"Send transaction"}):jsx$1("button",{onClick:()=>k.openModal(),children:"Connect wallet to send the transaction"})]})}function App(){return jsx$1(TonConnectUIProvider$1,{manifestUrl:"https://ton-connect.github.io/demo-dapp-with-wallet/tonconnect-manifest.json",uiPreferences:{theme:THEME.DARK},walletsListConfiguration:{includeWallets:[{appName:"safepalwallet",name:"SafePal",imageUrl:"https://s.pvcliping.com/web/public_image/SafePal_x288.png",tondns:"",aboutUrl:"https://www.safepal.com",universalLink:"https://link.safepal.io/ton-connect",jsBridgeKey:"safepalwallet",bridgeUrl:"https://ton-bridge.safepal.com/tonbridge/v1/bridge",platforms:["ios","android","chrome","firefox"]},{appName:"tonwallet",name:"TON Wallet",imageUrl:"https://wallet.ton.org/assets/ui/qr-logo.png",aboutUrl:"https://chrome.google.com/webstore/detail/ton-wallet/nphplpgoakhhjchkkhmiggakijnkhfnd",universalLink:"https://wallet.ton.org/ton-connect",jsBridgeKey:"tonwallet",bridgeUrl:"https://bridge.tonapi.io/bridge",platforms:["chrome","android"]}]},actionsConfiguration:{twaReturnUrl:"https://t.me/tc_twa_demo_bot/start"},children:jsxs("div",{className:"app",children:[jsx$1(Header,{}),jsx$1(TxForm,{}),jsx$1(Footer,{})]})})}const index="";var eruda$1={exports:{}};/*! eruda v2.11.3 https://eruda.liriliri.io/ */(function(module,exports){(function(b,_){module.exports=_()})(self,function(){return function(){var __webpack_modules__={422:function(b,_,d){d.d(_,{Z:function(){return rn}});var k=d(5671),j=d(3144),$=d(9340),et=d(2963),tt=d(1120),rt=d(2461),nt=d.n(rt),ot=d(3990),at=d.n(ot),it=d(6768),dt=d.n(it),ut=d(4331),ht=d.n(ut),ft=d(5610),st=d.n(ft),ct=d(7483),pt=d.n(ct),lt=d(6341),wt=d.n(lt),yt=d(3875),vt=d.n(yt),St=d(6954),xt=d.n(St);d(9585);function bt(fn){var Sn="luna-".concat(fn,"-");function bn(hn){return nt()(ht()(hn).split(/\s+/),function(_n){return wt()(_n,Sn)?_n:_n.replace(/[\w-]+/,function(ln){return"".concat(Sn).concat(ln)})}).join(" ")}return function(hn){if(/<[^>]*>/g.test(hn))try{var _n=pt().parse(hn);return At(_n,function(ln){ln.attrs&&ln.attrs.class&&(ln.attrs.class=bn(ln.attrs.class))}),pt().stringify(_n)}catch{return bn(hn)}return bn(hn)}}function At(fn,Sn){for(var bn=0,hn=fn.length;bn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var bn,hn=(0,tt.Z)(fn);if(Sn){var _n=(0,tt.Z)(this).constructor;bn=Reflect.construct(hn,arguments,_n)}else bn=hn.apply(this,arguments);return(0,et.Z)(this,bn)}}var jn=function(fn){(0,$.Z)(bn,fn);var Sn=yn(bn);function bn(hn,_n){var ln,Tn=_n.compName,In=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Ln=In===void 0?"light":In;return(0,k.Z)(this,bn),(ln=Sn.call(this)).subComponents=[],ln.compName=Tn,ln.c=bt(Tn),ln.options={},ln.container=hn,ln.$container=Rt()(hn),ln.$container.addClass(["luna-".concat(Tn),ln.c("platform-".concat(_t()))]),ln.on("optionChange",function(kn,Fn,vn){var Bn=ln.c;kn==="theme"&&(ln.$container.rmClass(Bn("theme-".concat(vn))).addClass(Bn("theme-".concat(Fn))),Xt()(ln.subComponents,function(Pn){return Pn.setOption("theme",Fn)}))}),ln.setOption("theme",Ln),ln}return(0,j.Z)(bn,[{key:"destroy",value:function(){this.destroySubComponents();var hn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(hn("platform-".concat(_t()))).rmClass(hn("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(hn,_n){var ln=this,Tn=this.options,In={};typeof hn=="string"?In[hn]=_n:In=hn,Xt()(In,function(Ln,kn){var Fn=Tn[kn];Tn[kn]=Ln,ln.emit("optionChange",kn,Ln,Fn)})}},{key:"getOption",value:function(hn){return this.options[hn]}},{key:"addSubComponent",value:function(hn){hn.setOption("theme",this.options.theme),this.subComponents.push(hn)}},{key:"removeSubComponent",value:function(hn){En()(this.subComponents,function(_n){return _n===hn})}},{key:"destroySubComponents",value:function(){Xt()(this.subComponents,function(hn){return hn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(hn){var _n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};dn()(hn,_n),Kt()(this.options,hn)}},{key:"find",value:function(hn){return this.$container.find(this.c(hn))}}]),bn}(Mt());function Vn(fn){var Sn=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var bn,hn=(0,tt.Z)(fn);if(Sn){var _n=(0,tt.Z)(this).constructor;bn=Reflect.construct(hn,arguments,_n)}else bn=hn.apply(this,arguments);return(0,et.Z)(this,bn)}}b=d.hmd(b);var rn=function(fn){(0,$.Z)(bn,fn);var Sn=Vn(bn);function bn(hn){var _n,ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,k.Z)(this,bn),(_n=Sn.call(this,hn,{compName:"box-model"})).initOptions(ln),_n.options.element&&_n.render(),_n.bindEvent(),_n}return(0,j.Z)(bn,[{key:"bindEvent",value:function(){var hn=this;this.on("optionChange",function(_n){_n==="element"&&hn.render()})}},{key:"render",value:function(){var hn=this.c,_n=this.getBoxModelData();this.$container.html(['
'),_n.position?'
'):"",_n.position?'
position
').concat(_n.position.top,'

').concat(_n.position.left,"
"):"",'
'),'
margin
').concat(_n.margin.top,'

').concat(_n.margin.left,"
"),'
'),'
border
').concat(_n.border.top,'

').concat(_n.border.left,"
"),'
'),'
padding
').concat(_n.padding.top,'

').concat(_n.padding.left,"
"),'
'),"".concat(_n.content.width," × ").concat(_n.content.height,""),"
",'
').concat(_n.padding.right,'

').concat(_n.padding.bottom,"
"),"
",'
').concat(_n.border.right,'

').concat(_n.border.bottom,"
"),"
",'
').concat(_n.margin.right,'

').concat(_n.margin.bottom,"
"),"
",_n.position?'
').concat(_n.position.right,'

').concat(_n.position.bottom,"
"):"",_n.position?"
":"","
"].join(""))}},{key:"getBoxModelData",value:function(){var hn=this.options.element,_n=window.getComputedStyle(hn);function ln(In){var Ln=["top","left","right","bottom"];return In!=="position"&&(Ln=nt()(Ln,function(kn){return"".concat(In,"-").concat(kn)})),In==="border"&&(Ln=nt()(Ln,function(kn){return"".concat(kn,"-width")})),{top:xn(_n[Ln[0]],In),left:xn(_n[Ln[1]],In),right:xn(_n[Ln[2]],In),bottom:xn(_n[Ln[3]],In)}}var Tn={margin:ln("margin"),border:ln("border"),padding:ln("padding"),content:{width:xn(_n.width),height:xn(_n.height)}};return _n.position!=="static"&&(Tn.position=ln("position")),Tn}}]),bn}(jn);function xn(fn,Sn){if(at()(fn))return fn;if(!dt()(fn))return"‒";var bn,hn=(bn=fn,vt()(bn.replace("px","")));return isNaN(hn)?fn:Sn==="position"?hn:hn===0?"‒":hn}(function(fn,Sn){try{fn.exports=Sn,fn.exports.default=Sn}catch{}})(b,rn)},8816:function(b,_,d){d.d(_,{Z:function(){return ts}});var k=d(168),j=d(181);function $(Er,Hr){return function(Sr){if(Array.isArray(Sr))return Sr}(Er)||function(Sr,Wt){var Ut=Sr==null?null:typeof Symbol<"u"&&Sr[Symbol.iterator]||Sr["@@iterator"];if(Ut!=null){var mn,Dn,br,dr,_r=[],Cr=!0,Rr=!1;try{if(br=(Ut=Ut.call(Sr)).next,Wt===0){if(Object(Ut)!==Ut)return;Cr=!1}else for(;!(Cr=(mn=br.call(Ut)).done)&&(_r.push(mn.value),_r.length!==Wt);Cr=!0);}catch(Yr){Rr=!0,Dn=Yr}finally{try{if(!Cr&&Ut.return!=null&&(dr=Ut.return(),Object(dr)!==dr))return}finally{if(Rr)throw Dn}}return _r}}(Er,Hr)||(0,j.Z)(Er,Hr)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var et=d(5671),tt=d(3144),rt=d(1752),nt=d(9340),ot=d(2963),at=d(1120),it=d(7326),dt=d(8901),ut=d.n(dt),ht=d(3367),ft=d.n(ht),st=d(6341),ct=d.n(st),pt=d(6930),lt=d.n(pt),wt=d(4187),yt=d.n(wt),vt=d(3783),St=d.n(vt),xt=d(4858),bt=d.n(xt),At=d(8887),_t=d.n(At),Ct=d(7756),Mt=d.n(Ct),jt=d(3023),Rt=d.n(jt);function zt(Er){return Er.constructor&&Er.constructor.name?Er.constructor.name:Rt()({}.toString.call(Er).replace(/(\[object )|]/g,""))}var Xt=d(2461),Jt=d.n(Xt),Kt=d(4331),Zt=d.n(Kt),dn=d(5610),An=d.n(dn),En=d(7483),yn=d.n(En),jn=d(3990),Vn=d.n(jn),rn=d(3875),xn=d.n(rn),fn=d(6954),Sn=d.n(fn),bn=d(9585),hn=d.n(bn);function _n(Er){var Hr="luna-".concat(Er,"-");function Sr(Wt){return Jt()(Zt()(Wt).split(/\s+/),function(Ut){return ct()(Ut,Hr)?Ut:Ut.replace(/[\w-]+/,function(mn){return"".concat(Hr).concat(mn)})}).join(" ")}return function(Wt){if(/<[^>]*>/g.test(Wt))try{var Ut=yn().parse(Wt);return ln(Ut,function(mn){mn.attrs&&mn.attrs.class&&(mn.attrs.class=Sr(mn.attrs.class))}),yn().stringify(Ut)}catch{return Sr(Wt)}return Sr(Wt)}}function ln(Er,Hr){for(var Sr=0,Wt=Er.length;Sr1&&arguments[1]!==void 0?arguments[1]:{},Wt=Sr.topObj,Ut=Sr.level,mn=Ut===void 0?0:Ut,Dn=Sr.getterVal,br=Dn!==void 0&&Dn,dr=Sr.unenumerable,_r=dr===void 0||dr,Cr="",Rr="",Yr=5,Gr=[],oo=[],po="";Wt=Wt||Er;var Ur={getterVal:br,unenumerable:_r,level:mn+1},ao=mn===0,yo=''),bo=''),So=''),Io=''),vo=''),Oo=''),Eo=function(Xr){return ut()(Xr).replace(/\\n/g,"↵").replace(/\\f|\\r|\\t/g,"").replace(/\\/g,"")},wo="",Ao=function(Xr){return yo+Eo(Xr)+wo};function Co(Xr){return Xr=ft()(Xr),ct()(kn,Xr)||lt()(Xr,"Array[")?Oo+Eo(Xr)+wo:(Xr.length>100&&(Xr=Mt()(Xr,100,{separator:" ",ellipsis:"…"})),Io+Eo('"'.concat(Xr,'"'))+wo)}function Lo(Xr){if(Hr>Yr)po=", …";else{var os=Ao(vn(Xr));if(!br){var $o=Object.getOwnPropertyDescriptor(Er,Xr);if($o&&$o.get)return Gr.push("".concat(os,": ").concat(Co("(...)"))),void Hr++}Gr.push("".concat(os,": ").concat(Ln(Wt[Xr],Ur))),Hr++}}try{Rr={}.toString.call(Er)}catch{Rr="[object Object]"}var Po,No=Rr=="[object Array]",Fo=Rr=="[object Object]",Uo=Rr=="[object Number]",jo=Rr=="[object RegExp]",Ro=Rr=="[object Symbol]",Ls=Rr=="[object Function]",Ps=Rr=="[object Boolean]";if(Rr=="[object String]")Cr=Co(vn(Er));else if(jo)Po=vn(Er.toString()),Cr=Io+Po+wo;else if(Ls)Cr=Co("ƒ");else if(No)if(ao){Cr="[";var Zo=Er.length,rs="";Zo>100&&(Zo=100,rs=", …");for(var Vo=0;Vo"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Sr,Wt=(0,at.Z)(Er);if(Hr){var Ut=(0,at.Z)(this).constructor;Sr=Reflect.construct(Wt,arguments,Ut)}else Sr=Wt.apply(this,arguments);return(0,ot.Z)(this,Sr)}}var qr=/https?:\/\/([0-9.\-A-Za-z]+)(?::(\d+))?\/[A-Z.a-z0-9/]*\.js/g,eo={comment:"",string:"",number:"",keyword:"",operator:""},to=function(Er){(0,nt.Z)(Sr,Er);var Hr=ro(Sr);function Sr(Wt,Ut){var mn,Dn=Ut.type,br=Dn===void 0?"log":Dn,dr=Ut.args,_r=dr===void 0?[]:dr,Cr=Ut.id,Rr=Ut.group,Yr=Ut.targetGroup,Gr=Ut.header,oo=Ut.ignoreFilter,po=oo!==void 0&&oo,Ur=Ut.accessGetter,ao=Ut.unenumerable,yo=Ut.lazyEvaluation;(0,et.Z)(this,Sr),(mn=Hr.call(this)).container=nn()("div"),mn.count=1,mn.width=0,mn.height=0,mn.isHidden=!1,mn.columns=[],mn.elements={},mn.objects={},mn.console=Wt,mn.type=br,mn.group=Rr,mn.targetGroup=Yr,mn.args=_r,mn.id=Cr,mn.header=Gr,mn.ignoreFilter=po,mn.collapsed=!1,mn.container.log=(0,it.Z)(mn),mn.height=0,mn.width=0,mn.$container=It()(mn.container),mn.accessGetter=Ur,mn.unenumerable=ao,mn.lazyEvaluation=yo;var bo="info";switch(br){case"debug":bo="verbose";break;case"error":bo="error";break;case"warn":bo="warning"}return mn.level=bo,mn.resizeSensor=new(qt())(mn.container),mn.onResize=Wn()(function(){hn()(mn.container)?mn.isHidden=!0:(mn.isHidden||mn.updateSize(!1),mn.isHidden=!1)},16),mn.formatMsg(),mn.group&&mn.checkGroup(),mn.bindEvent(),mn}return(0,tt.Z)(Sr,[{key:"checkGroup",value:function(){for(var Wt=this.group,Ut=!1;Wt;){if(Wt.collapsed){Ut=!0;break}Wt=Wt.parent}return Ut!==this.collapsed&&(this.collapsed=Ut,!0)}},{key:"updateIcon",value:function(Wt){var Ut=this.console.c;return this.$container.find(Ut(".icon-container")).find(Ut(".icon")).rmAttr("class").addClass([Ut("icon"),Ut("icon-".concat(Wt))]),this}},{key:"addCount",value:function(){this.count++;var Wt=this.$container,Ut=this.count,mn=this.console.c,Dn=Wt.find(mn(".count-container")),br=Wt.find(mn(".icon-container")),dr=Dn.find(mn(".count"));return Ut===2&&Dn.rmClass(mn("hidden")),dr.text(ft()(Ut)),br.addClass(mn("hidden")),this}},{key:"groupEnd",value:function(){var Wt=this.$container,Ut=this.console.c;return Wt.find(".".concat(Ut("nesting-level"),":not(.").concat(Ut("group-closed"),")")).last().addClass(Ut("group-closed")),this}},{key:"updateTime",value:function(Wt){var Ut=this.$container.find(this.console.c(".time-container"));return this.header&&(Ut.find("span").eq(0).text(Wt),this.header.time=Wt),this}},{key:"isAttached",value:function(){return!!this.container.parentNode}},{key:"isSimple",value:function(){return!tr()(this.args,function(Wt){return Nn()(Wt)})}},{key:"updateSize",value:function(){var Wt=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],Ut=this.container.getBoundingClientRect(),mn=Ut.width,Dn=Ut.height-1;this.height!==Dn&&(this.height=Dn,Wt||this.emit("updateHeight")),this.width!==mn&&(this.width=mn)}},{key:"html",value:function(){return this.container.outerHTML}},{key:"text",value:function(){return this.content.textContent||""}},{key:"select",value:function(){this.$container.addClass(this.console.c("selected"))}},{key:"deselect",value:function(){this.$container.rmClass(this.console.c("selected"))}},{key:"copy",value:function(){var Wt=this.args,Ut="";St()(Wt,function(mn,Dn){Dn!==0&&(Ut+=" "),Nn()(mn)?Ut+=Yn()(mn):Ut+=ft()(mn)}),Hn()(Ut)}},{key:"bindEvent",value:function(){var Wt=this,Ut=this.console.c,mn=this;this.resizeSensor.addListener(this.onResize),this.$container.on("click",Ut(".dom-viewer"),function(Dn){return Dn.stopPropagation()}).on("click",Ut(".preview"),function(Dn){Dn.stopPropagation();var br=It()(this).find(Ut(".preview-icon-container")).find(Ut(".icon")),dr="caret-down";br.hasClass(Ut("icon-caret-down"))&&(dr="caret-right"),br.rmAttr("class").addClass([Ut("icon"),Ut("icon-".concat(dr))]),mn.renderObjectViewer(this)}).on("click",function(){return Wt.click()})}},{key:"renderEl",value:function(){var Wt=this.elements,Ut=this.console.c,mn=this;this.$container.find(Ut(".dom-viewer")).each(function(){var Dn=It()(this).data("id");new pn.Z(this,{node:Wt[Dn],theme:mn.console.getOption("theme")})})}},{key:"renderObjectViewer",value:function(Wt){var Ut=this.console,mn=this.unenumerable,Dn=this.accessGetter,br=this.lazyEvaluation,dr=Ut.c,_r=It()(Wt),Cr=_r.data("id");if(Cr){var Rr=this.objects[Cr],Yr=_r.find(dr(".json"));if(Yr.hasClass(dr("hidden"))){if(Yr.data("init")!=="true"){if(br){var Gr=new Pn.Z(Yr.get(0),{unenumerable:mn,accessGetter:Dn});Gr.setOption("theme",Ut.getOption("theme")),Gr.set(Rr)}else{var oo=new Pn.q(Yr.get(0));oo.setOption("theme",Ut.getOption("theme")),oo.set(Rr)}Yr.data("init","true")}Yr.rmClass(dr("hidden"))}else Yr.addClass(dr("hidden"))}}},{key:"renderTable",value:function(Wt){var Ut=this,mn="__LunaConsoleValue",Dn=this.columns,br=this.$container,dr=this.console,_r=dr.c,Cr=br.find(_r(".data-grid")),Rr=Wt[0],Yr=new Un.Z(Cr.get(0),{columns:cr()([{id:"(index)",title:"(index)",sortable:!0}],Jt()(Dn,function(Gr){return{id:Gr,title:Gr===mn?"Value":Gr,sortable:!0}})),theme:dr.getOption("theme")});St()(Rr,function(Gr,oo){var po={"(index)":ft()(oo)};Dn.forEach(function(Ur){Nn()(Gr)?po[Ur]=Ur===mn?"":Ut.formatTableVal(Gr[Ur]):Rn()(Gr)&&(po[Ur]=Ur===mn?Ut.formatTableVal(Gr):"")}),Yr.append(po)})}},{key:"extractObj",value:function(Wt){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},mn=arguments.length>2?arguments[2]:void 0,Dn=this.accessGetter,br=this.unenumerable;qn()(Ut,{accessGetter:Dn,unenumerable:br,symbol:br,timeout:1e3}),function(dr,_r,Cr){var Rr=or()(dr,_r);mr()(function(){return Cr(Rr)})}(Wt,Ut,function(dr){return mn(JSON.parse(dr))})}},{key:"click",value:function(){var Wt=this.type,Ut=this.$container,mn=this.console,Dn=mn.c;switch(Wt){case"log":case"warn":case"info":case"debug":case"output":case"table":case"dir":break;case"group":case"groupCollapsed":mn.toggleGroup(this);break;case"error":Ut.find(Dn(".stack")).toggleClass(Dn("hidden"))}}},{key:"formatMsg",value:function(){var Wt=this.args,Ut=this.type,mn=this.id,Dn=this.header,br=this.group,dr=this.console.c;Wt=Nt()(Wt);var _r,Cr,Rr="";switch(Ut!=="group"&&Ut!=="groupCollapsed"||Wt.length===0&&(Wt=["console.group"]),Ut){case"log":case"info":case"debug":Rr=this.formatCommon(Wt);break;case"dir":Rr=this.formatDir(Wt);break;case"warn":_r="warn",Rr=this.formatCommon(Wt);break;case"error":fr()(Wt[0])&&Wt.length!==1&&(Wt=this.substituteStr(Wt)),Cr=Wt[0],_r="error",Cr=vr()(Cr)?Cr:new Error(this.formatCommon(Wt)),Rr=this.formatErr(Cr);break;case"table":Rr=this.formatTable(Wt);break;case"html":Rr=Wt[0];break;case"input":Rr=this.formatJs(Wt[0]),_r="input";break;case"output":Rr=this.formatCommon(Wt),_r="output";break;case"groupCollapsed":Rr=this.formatCommon(Wt),_r="caret-right";break;case"group":Rr=this.formatCommon(Wt),_r="caret-down"}ct()(["log","debug","warn"],Ut)&&this.isSimple()&&(Rr=Mn()(Rr,function(Yr){return'').concat(Yr,"")})),Rr=this.render({msg:Rr,type:Ut,icon:_r,id:mn,header:Dn,group:br}),this.$container.addClass("".concat(dr("log-container"))).html(Rr),Ut==="table"&&(_t()(this.columns)||this.renderTable(Wt)),_t()(this.elements)||this.renderEl(),this.$content=this.$container.find(dr(".log-content")),this.content=this.$content.get(0)}},{key:"render",value:function(Wt){var Ut=this.console.c,mn="",Dn="";if(Wt.group)for(var br=Wt.group.indentLevel,dr=0;dr');Wt.header&&(mn+=Ar()(Bn||(Bn=(0,k.Z)([` +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var yn=$(46),jn=new($(47)).Dispatcher,Vn=new(function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){var Bt;nt(this,Ot);for(var It=arguments.length,an=new Array(It),nn=0;nnIt&&(Qt.style.cursor="pointer",this.state.collapsed&&(nn=lt.a.createElement("span",null,nn.substring(0,It),lt.a.createElement("span",Rt(an,"ellipsis")," ...")))),lt.a.createElement("div",Rt(an,"string"),lt.a.createElement(zt,Object.assign({type_name:"string"},Bt)),lt.a.createElement("span",Object.assign({className:"string-value"},Qt,{onClick:this.toggleCollapsed}),'"',nn,'"'))}}]),Ot}(lt.a.PureComponent),ln=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){return lt.a.createElement("div",Rt(this.props.theme,"undefined"),"undefined")}}]),Ot}(lt.a.PureComponent);function Tn(){return(Tn=Object.assign||function(Et){for(var Lt=1;Lt=0||($n[hr]=Xn[hr]);return $n}(Et,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),Wn,Kn=gn.value!==void 0,Yn=Object(pt.useRef)(null),er=Fn(Yn,Lt),Hn=Object(pt.useRef)(0),Jn=Object(pt.useRef)(),or=function(){var Xn=Yn.current,mr=Ot&&Jn.current?Jn.current:function(sr){var nr=window.getComputedStyle(sr);if(nr===null)return null;var tr,ir=(tr=nr,pn.reduce(function(Mr,jr){return Mr[jr]=tr[jr],Mr},{})),Ar=ir.boxSizing;return Ar===""?null:(Vt&&Ar==="border-box"&&(ir.width=parseFloat(ir.width)+parseFloat(ir.borderRightWidth)+parseFloat(ir.borderLeftWidth)+parseFloat(ir.paddingRight)+parseFloat(ir.paddingLeft)+"px"),{sizingStyle:ir,paddingSize:parseFloat(ir.paddingBottom)+parseFloat(ir.paddingTop),borderSize:parseFloat(ir.borderBottomWidth)+parseFloat(ir.borderTopWidth)})}(Xn);if(mr){Jn.current=mr;var hr=function(sr,nr,tr,ir){tr===void 0&&(tr=1),ir===void 0&&(ir=1/0),Nn||((Nn=document.createElement("textarea")).setAttribute("tab-index","-1"),Nn.setAttribute("aria-hidden","true"),Bn(Nn)),Nn.parentNode===null&&document.body.appendChild(Nn);var Ar=sr.paddingSize,Mr=sr.borderSize,jr=sr.sizingStyle,Or=jr.boxSizing;Object.keys(jr).forEach(function(Nr){var Br=Nr;Nn.style[Br]=jr[Br]}),Bn(Nn),Nn.value=nr;var sn=function(Nr,Br){var Wr=Nr.scrollHeight;return Br.sizingStyle.boxSizing==="border-box"?Wr+Br.borderSize:Wr-Br.paddingSize}(Nn,sr);Nn.value="x";var Lr=Nn.scrollHeight-Ar,Dr=Lr*tr;Or==="border-box"&&(Dr=Dr+Ar+Mr),sn=Math.max(Dr,sn);var Fr=Lr*ir;return Or==="border-box"&&(Fr=Fr+Ar+Mr),[sn=Math.min(Fr,sn),Lr]}(mr,Xn.value||Xn.placeholder||"x",It,Bt),Mn=hr[0],$n=hr[1];Hn.current!==Mn&&(Hn.current=Mn,Xn.style.setProperty("height",Mn+"px","important"),Ht(Mn,{rowHeight:$n}))}};return Object(pt.useLayoutEffect)(or),Wn=Ln(or),Object(pt.useLayoutEffect)(function(){var Xn=function(mr){Wn.current(mr)};return window.addEventListener("resize",Xn),function(){window.removeEventListener("resize",Xn)}},[]),Object(pt.createElement)("textarea",Tn({},gn,{onChange:function(Xn){Kn||or(),nn(Xn)},ref:er}))},wn=Object(pt.forwardRef)(qt);function Pn(Et){Et=Et.trim();try{if((Et=JSON.stringify(JSON.parse(Et)))[0]==="[")return lr("array",JSON.parse(Et));if(Et[0]==="{")return lr("object",JSON.parse(Et));if(Et.match(/\-?\d+\.\d+/)&&Et.match(/\-?\d+\.\d+/)[0]===Et)return lr("float",parseFloat(Et));if(Et.match(/\-?\d+e-\d+/)&&Et.match(/\-?\d+e-\d+/)[0]===Et)return lr("float",Number(Et));if(Et.match(/\-?\d+/)&&Et.match(/\-?\d+/)[0]===Et)return lr("integer",parseInt(Et));if(Et.match(/\-?\d+e\+\d+/)&&Et.match(/\-?\d+e\+\d+/)[0]===Et)return lr("integer",Number(Et))}catch{}switch(Et=Et.toLowerCase()){case"undefined":return lr("undefined",void 0);case"nan":return lr("nan",NaN);case"null":return lr("null",null);case"true":return lr("boolean",!0);case"false":return lr("boolean",!1);default:if(Et=Date.parse(Et))return lr("date",new Date(Et))}return lr(!1,null)}function lr(Et,Lt){return{type:Et,value:Lt}}var fr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return lt.a.createElement("span",an,lt.a.createElement("svg",Object.assign({},cr(It),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),lt.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),Ot}(lt.a.PureComponent),Zn=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return lt.a.createElement("span",an,lt.a.createElement("svg",Object.assign({},cr(It),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),lt.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),Ot}(lt.a.PureComponent),vr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]),nn=cr(It).style;return lt.a.createElement("span",an,lt.a.createElement("svg",{fill:nn.color,width:nn.height,height:nn.width,style:nn,viewBox:"0 0 1792 1792"},lt.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),Ot}(lt.a.PureComponent),yr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]),nn=cr(It).style;return lt.a.createElement("span",an,lt.a.createElement("svg",{fill:nn.color,width:nn.height,height:nn.width,style:nn,viewBox:"0 0 1792 1792"},lt.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),Ot}(lt.a.PureComponent),Rn=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return lt.a.createElement("span",an,lt.a.createElement("svg",{style:rt(rt({},cr(It).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},lt.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),Ot}(lt.a.PureComponent),ur=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return lt.a.createElement("span",an,lt.a.createElement("svg",{style:rt(rt({},cr(It).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},lt.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),Ot}(lt.a.PureComponent),qn=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return lt.a.createElement("span",an,lt.a.createElement("svg",Object.assign({},cr(It),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),lt.a.createElement("g",null,lt.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),Ot}(lt.a.PureComponent),pr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return lt.a.createElement("span",an,lt.a.createElement("svg",Object.assign({},cr(It),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),lt.a.createElement("g",null,lt.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),Ot}(lt.a.PureComponent),Gn=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return lt.a.createElement("span",an,lt.a.createElement("svg",Object.assign({},cr(It),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),lt.a.createElement("g",null,lt.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),Ot}(lt.a.PureComponent),zn=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return lt.a.createElement("span",an,lt.a.createElement("svg",Object.assign({},cr(It),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),lt.a.createElement("g",null,lt.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),Ot}(lt.a.PureComponent),ar=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return lt.a.createElement("span",an,lt.a.createElement("svg",Object.assign({},cr(It),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),lt.a.createElement("g",null,lt.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),Ot}(lt.a.PureComponent),rr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){return nt(this,Ot),Lt.apply(this,arguments)}return at(Ot,[{key:"render",value:function(){var Bt=this.props,It=Bt.style,an=xt(Bt,["style"]);return lt.a.createElement("span",an,lt.a.createElement("svg",Object.assign({},cr(It),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),lt.a.createElement("g",null,lt.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),Ot}(lt.a.PureComponent);function cr(Et){return Et||(Et={}),{style:rt(rt({verticalAlign:"middle"},Et),{},{color:Et.color?Et.color:"#000000",height:"1em",width:"1em"})}}var xr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(Bt){var It;return nt(this,Ot),(It=Lt.call(this,Bt)).copiedTimer=null,It.handleCopy=function(){var an=document.createElement("textarea"),nn=It.props,Qt=nn.clickCallback,Ht=nn.src,gn=nn.namespace;an.innerHTML=JSON.stringify(It.clipboardValue(Ht),null," "),document.body.appendChild(an),an.select(),document.execCommand("copy"),document.body.removeChild(an),It.copiedTimer=setTimeout(function(){It.setState({copied:!1})},5500),It.setState({copied:!0},function(){typeof Qt=="function"&&Qt({src:Ht,namespace:gn,name:gn[gn.length-1]})})},It.getClippyIcon=function(){var an=It.props.theme;return It.state.copied?lt.a.createElement("span",null,lt.a.createElement(qn,Object.assign({className:"copy-icon"},Rt(an,"copy-icon"))),lt.a.createElement("span",Rt(an,"copy-icon-copied"),"✔")):lt.a.createElement(qn,Object.assign({className:"copy-icon"},Rt(an,"copy-icon")))},It.clipboardValue=function(an){switch(bt(an)){case"function":case"regexp":return an.toString();default:return an}},It.state={copied:!1},It}return at(Ot,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var Bt=this.props,It=(Bt.src,Bt.theme),an=Bt.hidden,nn=Bt.rowHovered,Qt=Rt(It,"copy-to-clipboard").style,Ht="inline";return an&&(Ht="none"),lt.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:nn?"inline-block":"none"}},lt.a.createElement("span",{style:rt(rt({},Qt),{},{display:Ht}),onClick:this.handleCopy},this.getClippyIcon()))}}]),Ot}(lt.a.PureComponent),kr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(Bt){var It;return nt(this,Ot),(It=Lt.call(this,Bt)).getEditIcon=function(){var an=It.props,nn=an.variable,Qt=an.theme;return lt.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:It.state.hovered?"inline-block":"none"}},lt.a.createElement(ar,Object.assign({className:"click-to-edit-icon"},Rt(Qt,"editVarIcon"),{onClick:function(){It.prepopInput(nn)}})))},It.prepopInput=function(an){if(It.props.onEdit!==!1){var nn=function(Ht){var gn;switch(bt(Ht)){case"undefined":gn="undefined";break;case"nan":gn="NaN";break;case"string":gn=Ht;break;case"date":case"function":case"regexp":gn=Ht.toString();break;default:try{gn=JSON.stringify(Ht,null," ")}catch{gn=""}}return gn}(an.value),Qt=Pn(nn);It.setState({editMode:!0,editValue:nn,parsedInput:{type:Qt.type,value:Qt.value}})}},It.getRemoveIcon=function(){var an=It.props,nn=an.variable,Qt=an.namespace,Ht=an.theme,gn=an.rjvId;return lt.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:It.state.hovered?"inline-block":"none"}},lt.a.createElement(pr,Object.assign({className:"click-to-remove-icon"},Rt(Ht,"removeVarIcon"),{onClick:function(){jn.dispatch({name:"VARIABLE_REMOVED",rjvId:gn,data:{name:nn.name,namespace:Qt,existing_value:nn.value,variable_removed:!0}})}})))},It.getValue=function(an,nn){var Qt=!nn&&an.type,Ht=ft(It).props;switch(Qt){case!1:return It.getEditInput();case"string":return lt.a.createElement(_n,Object.assign({value:an.value},Ht));case"integer":return lt.a.createElement(bn,Object.assign({value:an.value},Ht));case"float":return lt.a.createElement(Kt,Object.assign({value:an.value},Ht));case"boolean":return lt.a.createElement(Xt,Object.assign({value:an.value},Ht));case"function":return lt.a.createElement(xn,Object.assign({value:an.value},Ht));case"null":return lt.a.createElement(Sn,Ht);case"nan":return lt.a.createElement(fn,Ht);case"undefined":return lt.a.createElement(ln,Ht);case"date":return lt.a.createElement(Jt,Object.assign({value:an.value},Ht));case"regexp":return lt.a.createElement(hn,Object.assign({value:an.value},Ht));default:return lt.a.createElement("div",{className:"object-value"},JSON.stringify(an.value))}},It.getEditInput=function(){var an=It.props.theme,nn=It.state.editValue;return lt.a.createElement("div",null,lt.a.createElement(wn,Object.assign({type:"text",inputRef:function(Qt){return Qt&&Qt.focus()},value:nn,className:"variable-editor",onChange:function(Qt){var Ht=Qt.target.value,gn=Pn(Ht);It.setState({editValue:Ht,parsedInput:{type:gn.type,value:gn.value}})},onKeyDown:function(Qt){switch(Qt.key){case"Escape":It.setState({editMode:!1,editValue:""});break;case"Enter":(Qt.ctrlKey||Qt.metaKey)&&It.submitEdit(!0)}Qt.stopPropagation()},placeholder:"update this value",minRows:2},Rt(an,"edit-input"))),lt.a.createElement("div",Rt(an,"edit-icon-container"),lt.a.createElement(pr,Object.assign({className:"edit-cancel"},Rt(an,"cancel-icon"),{onClick:function(){It.setState({editMode:!1,editValue:""})}})),lt.a.createElement(rr,Object.assign({className:"edit-check string-value"},Rt(an,"check-icon"),{onClick:function(){It.submitEdit()}})),lt.a.createElement("div",null,It.showDetected())))},It.submitEdit=function(an){var nn=It.props,Qt=nn.variable,Ht=nn.namespace,gn=nn.rjvId,Wn=It.state,Kn=Wn.editValue,Yn=Wn.parsedInput,er=Kn;an&&Yn.type&&(er=Yn.value),It.setState({editMode:!1}),jn.dispatch({name:"VARIABLE_UPDATED",rjvId:gn,data:{name:Qt.name,namespace:Ht,existing_value:Qt.value,new_value:er,variable_removed:!1}})},It.showDetected=function(){var an=It.props,nn=an.theme,Qt=(an.variable,an.namespace,an.rjvId,It.state.parsedInput),Ht=(Qt.type,Qt.value,It.getDetectedInput());if(Ht)return lt.a.createElement("div",null,lt.a.createElement("div",Rt(nn,"detected-row"),Ht,lt.a.createElement(rr,{className:"edit-check detected",style:rt({verticalAlign:"top",paddingLeft:"3px"},Rt(nn,"check-icon").style),onClick:function(){It.submitEdit(!0)}})))},It.getDetectedInput=function(){var an=It.state.parsedInput,nn=an.type,Qt=an.value,Ht=ft(It).props,gn=Ht.theme;if(nn!==!1)switch(nn.toLowerCase()){case"object":return lt.a.createElement("span",null,lt.a.createElement("span",{style:rt(rt({},Rt(gn,"brace").style),{},{cursor:"default"})},"{"),lt.a.createElement("span",{style:rt(rt({},Rt(gn,"ellipsis").style),{},{cursor:"default"})},"..."),lt.a.createElement("span",{style:rt(rt({},Rt(gn,"brace").style),{},{cursor:"default"})},"}"));case"array":return lt.a.createElement("span",null,lt.a.createElement("span",{style:rt(rt({},Rt(gn,"brace").style),{},{cursor:"default"})},"["),lt.a.createElement("span",{style:rt(rt({},Rt(gn,"ellipsis").style),{},{cursor:"default"})},"..."),lt.a.createElement("span",{style:rt(rt({},Rt(gn,"brace").style),{},{cursor:"default"})},"]"));case"string":return lt.a.createElement(_n,Object.assign({value:Qt},Ht));case"integer":return lt.a.createElement(bn,Object.assign({value:Qt},Ht));case"float":return lt.a.createElement(Kt,Object.assign({value:Qt},Ht));case"boolean":return lt.a.createElement(Xt,Object.assign({value:Qt},Ht));case"function":return lt.a.createElement(xn,Object.assign({value:Qt},Ht));case"null":return lt.a.createElement(Sn,Ht);case"nan":return lt.a.createElement(fn,Ht);case"undefined":return lt.a.createElement(ln,Ht);case"date":return lt.a.createElement(Jt,Object.assign({value:new Date(Qt)},Ht))}},It.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},It}return at(Ot,[{key:"render",value:function(){var Bt=this,It=this.props,an=It.variable,nn=It.singleIndent,Qt=It.type,Ht=It.theme,gn=It.namespace,Wn=It.indentWidth,Kn=It.enableClipboard,Yn=It.onEdit,er=It.onDelete,Hn=It.onSelect,Jn=It.displayArrayKey,or=It.quotesOnKeys,Xn=this.state.editMode;return lt.a.createElement("div",Object.assign({},Rt(Ht,"objectKeyVal",{paddingLeft:Wn*nn}),{onMouseEnter:function(){return Bt.setState(rt(rt({},Bt.state),{},{hovered:!0}))},onMouseLeave:function(){return Bt.setState(rt(rt({},Bt.state),{},{hovered:!1}))},className:"variable-row",key:an.name}),Qt=="array"?Jn?lt.a.createElement("span",Object.assign({},Rt(Ht,"array-key"),{key:an.name+"_"+gn}),an.name,lt.a.createElement("div",Rt(Ht,"colon"),":")):null:lt.a.createElement("span",null,lt.a.createElement("span",Object.assign({},Rt(Ht,"object-name"),{className:"object-key",key:an.name+"_"+gn}),!!or&<.a.createElement("span",{style:{verticalAlign:"top"}},'"'),lt.a.createElement("span",{style:{display:"inline-block"}},an.name),!!or&<.a.createElement("span",{style:{verticalAlign:"top"}},'"')),lt.a.createElement("span",Rt(Ht,"colon"),":")),lt.a.createElement("div",Object.assign({className:"variable-value",onClick:Hn===!1&&Yn===!1?null:function(mr){var hr=En(gn);(mr.ctrlKey||mr.metaKey)&&Yn!==!1?Bt.prepopInput(an):Hn!==!1&&(hr.shift(),Hn(rt(rt({},an),{},{namespace:hr})))}},Rt(Ht,"variableValue",{cursor:Hn===!1?"default":"pointer"})),this.getValue(an,Xn)),Kn?lt.a.createElement(xr,{rowHovered:this.state.hovered,hidden:Xn,src:an.value,clickCallback:Kn,theme:Ht,namespace:[].concat(En(gn),[an.name])}):null,Yn!==!1&&Xn==0?this.getEditIcon():null,er!==!1&&Xn==0?this.getRemoveIcon():null)}}]),Ot}(lt.a.PureComponent),Tr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){var Bt;nt(this,Ot);for(var It=arguments.length,an=new Array(It),nn=0;nn0?Kn:null,namespace:Wn.splice(0,Wn.length-1),existing_value:Yn,variable_removed:!1,key_name:null};bt(Yn)==="object"?jn.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:er,data:Jn}):jn.dispatch({name:"VARIABLE_ADDED",rjvId:er,data:rt(rt({},Jn),{},{new_value:[].concat(En(Yn),[null])})})}})))},Bt.getRemoveObject=function(Qt){var Ht=Bt.props,gn=Ht.theme,Wn=(Ht.hover,Ht.namespace),Kn=Ht.name,Yn=Ht.src,er=Ht.rjvId;if(Wn.length!==1)return lt.a.createElement("span",{className:"click-to-remove",style:{display:Qt?"inline-block":"none"}},lt.a.createElement(pr,Object.assign({className:"click-to-remove-icon"},Rt(gn,"removeVarIcon"),{onClick:function(){jn.dispatch({name:"VARIABLE_REMOVED",rjvId:er,data:{name:Kn,namespace:Wn.splice(0,Wn.length-1),existing_value:Yn,variable_removed:!0}})}})))},Bt.render=function(){var Qt=Bt.props,Ht=Qt.theme,gn=Qt.onDelete,Wn=Qt.onAdd,Kn=Qt.enableClipboard,Yn=Qt.src,er=Qt.namespace,Hn=Qt.rowHovered;return lt.a.createElement("div",Object.assign({},Rt(Ht,"object-meta-data"),{className:"object-meta-data",onClick:function(Jn){Jn.stopPropagation()}}),Bt.getObjectSize(),Kn?lt.a.createElement(xr,{rowHovered:Hn,clickCallback:Kn,src:Yn,theme:Ht,namespace:er}):null,Wn!==!1?Bt.getAddAttribute(Hn):null,gn!==!1?Bt.getRemoveObject(Hn):null)},Bt}return Ot}(lt.a.PureComponent);function Pr(Et){var Lt=Et.parent_type,Ot=Et.namespace,Bt=Et.quotesOnKeys,It=Et.theme,an=Et.jsvRoot,nn=Et.name,Qt=Et.displayArrayKey,Ht=Et.name?Et.name:"";return!an||nn!==!1&&nn!==null?Lt=="array"?Qt?lt.a.createElement("span",Object.assign({},Rt(It,"array-key"),{key:Ot}),lt.a.createElement("span",{className:"array-key"},Ht),lt.a.createElement("span",Rt(It,"colon"),":")):lt.a.createElement("span",null):lt.a.createElement("span",Object.assign({},Rt(It,"object-name"),{key:Ot}),lt.a.createElement("span",{className:"object-key"},Bt&<.a.createElement("span",{style:{verticalAlign:"top"}},'"'),lt.a.createElement("span",null,Ht),Bt&<.a.createElement("span",{style:{verticalAlign:"top"}},'"')),lt.a.createElement("span",Rt(It,"colon"),":")):lt.a.createElement("span",null)}function Ir(Et){var Lt=Et.theme;switch(Et.iconStyle){case"triangle":return lt.a.createElement(ur,Object.assign({},Rt(Lt,"expanded-icon"),{className:"expanded-icon"}));case"square":return lt.a.createElement(vr,Object.assign({},Rt(Lt,"expanded-icon"),{className:"expanded-icon"}));default:return lt.a.createElement(fr,Object.assign({},Rt(Lt,"expanded-icon"),{className:"expanded-icon"}))}}function zr(Et){var Lt=Et.theme;switch(Et.iconStyle){case"triangle":return lt.a.createElement(Rn,Object.assign({},Rt(Lt,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return lt.a.createElement(yr,Object.assign({},Rt(Lt,"collapsed-icon"),{className:"collapsed-icon"}));default:return lt.a.createElement(Zn,Object.assign({},Rt(Lt,"collapsed-icon"),{className:"collapsed-icon"}))}}var Qr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(Bt){var It;return nt(this,Ot),(It=Lt.call(this,Bt)).toggleCollapsed=function(an){var nn=[];for(var Qt in It.state.expanded)nn.push(It.state.expanded[Qt]);nn[an]=!nn[an],It.setState({expanded:nn})},It.state={expanded:[]},It}return at(Ot,[{key:"getExpandedIcon",value:function(Bt){var It=this.props,an=It.theme,nn=It.iconStyle;return this.state.expanded[Bt]?lt.a.createElement(Ir,{theme:an,iconStyle:nn}):lt.a.createElement(zr,{theme:an,iconStyle:nn})}},{key:"render",value:function(){var Bt=this,It=this.props,an=It.src,nn=It.groupArraysAfterLength,Qt=(It.depth,It.name),Ht=It.theme,gn=It.jsvRoot,Wn=It.namespace,Kn=(It.parent_type,xt(It,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),Yn=0,er=5*this.props.indentWidth;gn||(Yn=5*this.props.indentWidth);var Hn=nn,Jn=Math.ceil(an.length/Hn);return lt.a.createElement("div",Object.assign({className:"object-key-val"},Rt(Ht,gn?"jsv-root":"objectKeyVal",{paddingLeft:Yn})),lt.a.createElement(Pr,this.props),lt.a.createElement("span",null,lt.a.createElement(Tr,Object.assign({size:an.length},this.props))),En(Array(Jn)).map(function(or,Xn){return lt.a.createElement("div",Object.assign({key:Xn,className:"object-key-val array-group"},Rt(Ht,"objectKeyVal",{marginLeft:6,paddingLeft:er})),lt.a.createElement("span",Rt(Ht,"brace-row"),lt.a.createElement("div",Object.assign({className:"icon-container"},Rt(Ht,"icon-container"),{onClick:function(mr){Bt.toggleCollapsed(Xn)}}),Bt.getExpandedIcon(Xn)),Bt.state.expanded[Xn]?lt.a.createElement(kt,Object.assign({key:Qt+Xn,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:Hn,index_offset:Xn*Hn,src:an.slice(Xn*Hn,Xn*Hn+Hn),namespace:Wn,type:"array",parent_type:"array_group",theme:Ht},Kn)):lt.a.createElement("span",Object.assign({},Rt(Ht,"brace"),{onClick:function(mr){Bt.toggleCollapsed(Xn)},className:"array-group-brace"}),"[",lt.a.createElement("div",Object.assign({},Rt(Ht,"array-group-meta-data"),{className:"array-group-meta-data"}),lt.a.createElement("span",Object.assign({className:"object-size"},Rt(Ht,"object-size")),Xn*Hn," - ",Xn*Hn+Hn>an.length?an.length:Xn*Hn+Hn)),"]")))}))}}]),Ot}(lt.a.PureComponent),Zr=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(Bt){var It;nt(this,Ot),(It=Lt.call(this,Bt)).toggleCollapsed=function(){It.setState({expanded:!It.state.expanded},function(){rn.set(It.props.rjvId,It.props.namespace,"expanded",It.state.expanded)})},It.getObjectContent=function(nn,Qt,Ht){return lt.a.createElement("div",{className:"pushed-content object-container"},lt.a.createElement("div",Object.assign({className:"object-content"},Rt(It.props.theme,"pushed-content")),It.renderObjectContents(Qt,Ht)))},It.getEllipsis=function(){return It.state.size===0?null:lt.a.createElement("div",Object.assign({},Rt(It.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:It.toggleCollapsed}),"...")},It.getObjectMetaData=function(nn){var Qt=It.props,Ht=(Qt.rjvId,Qt.theme,It.state),gn=Ht.size,Wn=Ht.hovered;return lt.a.createElement(Tr,Object.assign({rowHovered:Wn,size:gn},It.props))},It.renderObjectContents=function(nn,Qt){var Ht,gn=It.props,Wn=gn.depth,Kn=gn.parent_type,Yn=gn.index_offset,er=gn.groupArraysAfterLength,Hn=gn.namespace,Jn=It.state.object_type,or=[],Xn=Object.keys(nn||{});return It.props.sortKeys&&Jn!=="array"&&(Xn=Xn.sort()),Xn.forEach(function(mr){if(Ht=new mo(mr,nn[mr]),Kn==="array_group"&&Yn&&(Ht.name=parseInt(Ht.name)+Yn),nn.hasOwnProperty(mr))if(Ht.type==="object")or.push(lt.a.createElement(kt,Object.assign({key:Ht.name,depth:Wn+1,name:Ht.name,src:Ht.value,namespace:Hn.concat(Ht.name),parent_type:Jn},Qt)));else if(Ht.type==="array"){var hr=kt;er&&Ht.value.length>er&&(hr=Qr),or.push(lt.a.createElement(hr,Object.assign({key:Ht.name,depth:Wn+1,name:Ht.name,src:Ht.value,namespace:Hn.concat(Ht.name),type:"array",parent_type:Jn},Qt)))}else or.push(lt.a.createElement(kr,Object.assign({key:Ht.name+"_"+Hn,variable:Ht,singleIndent:5,namespace:Hn,type:It.props.type},Qt)))}),or};var an=Ot.getState(Bt);return It.state=rt(rt({},an),{},{prevProps:{}}),It}return at(Ot,[{key:"getBraceStart",value:function(Bt,It){var an=this,nn=this.props,Qt=nn.src,Ht=nn.theme,gn=nn.iconStyle;if(nn.parent_type==="array_group")return lt.a.createElement("span",null,lt.a.createElement("span",Rt(Ht,"brace"),Bt==="array"?"[":"{"),It?this.getObjectMetaData(Qt):null);var Wn=It?Ir:zr;return lt.a.createElement("span",null,lt.a.createElement("span",Object.assign({onClick:function(Kn){an.toggleCollapsed()}},Rt(Ht,"brace-row")),lt.a.createElement("div",Object.assign({className:"icon-container"},Rt(Ht,"icon-container")),lt.a.createElement(Wn,{theme:Ht,iconStyle:gn})),lt.a.createElement(Pr,this.props),lt.a.createElement("span",Rt(Ht,"brace"),Bt==="array"?"[":"{")),It?this.getObjectMetaData(Qt):null)}},{key:"render",value:function(){var Bt=this,It=this.props,an=It.depth,nn=It.src,Qt=(It.namespace,It.name,It.type,It.parent_type),Ht=It.theme,gn=It.jsvRoot,Wn=It.iconStyle,Kn=xt(It,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),Yn=this.state,er=Yn.object_type,Hn=Yn.expanded,Jn={};return gn||Qt==="array_group"?Qt==="array_group"&&(Jn.borderLeft=0,Jn.display="inline"):Jn.paddingLeft=5*this.props.indentWidth,lt.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return Bt.setState(rt(rt({},Bt.state),{},{hovered:!0}))},onMouseLeave:function(){return Bt.setState(rt(rt({},Bt.state),{},{hovered:!1}))}},Rt(Ht,gn?"jsv-root":"objectKeyVal",Jn)),this.getBraceStart(er,Hn),Hn?this.getObjectContent(an,nn,rt({theme:Ht,iconStyle:Wn},Kn)):this.getEllipsis(),lt.a.createElement("span",{className:"brace-row"},lt.a.createElement("span",{style:rt(rt({},Rt(Ht,"brace").style),{},{paddingLeft:Hn?"3px":"0px"})},er==="array"?"]":"}"),Hn?null:this.getObjectMetaData(nn)))}}],[{key:"getDerivedStateFromProps",value:function(Bt,It){var an=It.prevProps;return Bt.src!==an.src||Bt.collapsed!==an.collapsed||Bt.name!==an.name||Bt.namespace!==an.namespace||Bt.rjvId!==an.rjvId?rt(rt({},Ot.getState(Bt)),{},{prevProps:Bt}):null}}]),Ot}(lt.a.PureComponent);Zr.getState=function(Et){var Lt=Object.keys(Et.src).length,Ot=(Et.collapsed===!1||Et.collapsed!==!0&&Et.collapsed>Et.depth)&&(!Et.shouldCollapse||Et.shouldCollapse({name:Et.name,src:Et.src,type:bt(Et.src),namespace:Et.namespace})===!1)&&Lt!==0;return{expanded:rn.get(Et.rjvId,Et.namespace,"expanded",Ot),object_type:Et.type==="array"?"array":"object",parent_type:Et.type==="array"?"array":"object",size:Lt,hovered:!1}};var mo=function Et(Lt,Ot){nt(this,Et),this.name=Lt,this.value=Ot,this.type=bt(Ot)};St(Zr);var kt=Zr,$t=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){var Bt;nt(this,Ot);for(var It=arguments.length,an=new Array(It),nn=0;nnQt.groupArraysAfterLength&&(gn=Qr),lt.a.createElement("div",{className:"pretty-json-container object-container"},lt.a.createElement("div",{className:"object-content"},lt.a.createElement(gn,Object.assign({namespace:Ht,depth:0,jsvRoot:!0},Qt))))},Bt}return Ot}(lt.a.PureComponent),Pt=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(Bt){var It;return nt(this,Ot),(It=Lt.call(this,Bt)).closeModal=function(){jn.dispatch({rjvId:It.props.rjvId,name:"RESET"})},It.submit=function(){It.props.submit(It.state.input)},It.state={input:Bt.input?Bt.input:""},It}return at(Ot,[{key:"render",value:function(){var Bt=this,It=this.props,an=It.theme,nn=It.rjvId,Qt=It.isValid,Ht=this.state.input,gn=Qt(Ht);return lt.a.createElement("div",Object.assign({className:"key-modal-request"},Rt(an,"key-modal-request"),{onClick:this.closeModal}),lt.a.createElement("div",Object.assign({},Rt(an,"key-modal"),{onClick:function(Wn){Wn.stopPropagation()}}),lt.a.createElement("div",Rt(an,"key-modal-label"),"Key Name:"),lt.a.createElement("div",{style:{position:"relative"}},lt.a.createElement("input",Object.assign({},Rt(an,"key-modal-input"),{className:"key-modal-input",ref:function(Wn){return Wn&&Wn.focus()},spellCheck:!1,value:Ht,placeholder:"...",onChange:function(Wn){Bt.setState({input:Wn.target.value})},onKeyPress:function(Wn){gn&&Wn.key==="Enter"?Bt.submit():Wn.key==="Escape"&&Bt.closeModal()}})),gn?lt.a.createElement(rr,Object.assign({},Rt(an,"key-modal-submit"),{className:"key-modal-submit",onClick:function(Wn){return Bt.submit()}})):null),lt.a.createElement("span",Rt(an,"key-modal-cancel"),lt.a.createElement(zn,Object.assign({},Rt(an,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){jn.dispatch({rjvId:nn,name:"RESET"})}})))))}}]),Ot}(lt.a.PureComponent),gt=function(Et){dt(Ot,Et);var Lt=ct(Ot);function Ot(){var Bt;nt(this,Ot);for(var It=arguments.length,an=new Array(It),nn=0;nn_($.updated_src),[]);return jsxs("div",{className:"send-tx-form",children:[jsx$1("h3",{children:"Configure and send transaction"}),jsx$1(ReactJson,{src:defaultTx,theme:"ocean",onEdit:j,onAdd:j,onDelete:j}),d?jsx$1("button",{onClick:()=>k.sendTransaction(b),children:"Send transaction"}):jsx$1("button",{onClick:()=>k.openModal(),children:"Connect wallet to send the transaction"})]})}function App(){return jsx$1(TonConnectUIProvider$1,{manifestUrl:"https://ton-connect.github.io/demo-dapp-with-wallet/tonconnect-manifest.json",uiPreferences:{theme:THEME.DARK},walletsListConfiguration:{includeWallets:[{appName:"safepalwallet",name:"SafePal",imageUrl:"https://s.pvcliping.com/web/public_image/SafePal_x288.png",tondns:"",aboutUrl:"https://www.safepal.com",universalLink:"https://link.safepal.io/ton-connect",jsBridgeKey:"safepalwallet",bridgeUrl:"https://ton-bridge.safepal.com/tonbridge/v1/bridge",platforms:["ios","android","chrome","firefox"]},{appName:"tonwallet",name:"TON Wallet",imageUrl:"https://wallet.ton.org/assets/ui/qr-logo.png",aboutUrl:"https://chrome.google.com/webstore/detail/ton-wallet/nphplpgoakhhjchkkhmiggakijnkhfnd",universalLink:"https://wallet.ton.org/ton-connect",jsBridgeKey:"tonwallet",bridgeUrl:"https://bridge.tonapi.io/bridge",platforms:["chrome","android"]}]},actionsConfiguration:{twaReturnUrl:"https://t.me/tc_twa_demo_bot/start"},children:jsxs("div",{className:"app",children:[jsx$1(Header,{}),jsx$1(TxForm,{}),jsx$1(Footer,{})]})})}const index="";var eruda$1={exports:{}};/*! eruda v2.11.3 https://eruda.liriliri.io/ */(function(module,exports){(function(b,_){module.exports=_()})(self,function(){return function(){var __webpack_modules__={422:function(b,_,d){d.d(_,{Z:function(){return rn}});var k=d(5671),j=d(3144),$=d(9340),et=d(2963),tt=d(1120),rt=d(2461),nt=d.n(rt),ot=d(3990),at=d.n(ot),it=d(6768),dt=d.n(it),ut=d(4331),ht=d.n(ut),ft=d(5610),st=d.n(ft),ct=d(7483),pt=d.n(ct),lt=d(6341),wt=d.n(lt),yt=d(3875),vt=d.n(yt),St=d(6954),xt=d.n(St);d(9585);function bt(fn){var Sn="luna-".concat(fn,"-");function bn(hn){return nt()(ht()(hn).split(/\s+/),function(_n){return wt()(_n,Sn)?_n:_n.replace(/[\w-]+/,function(ln){return"".concat(Sn).concat(ln)})}).join(" ")}return function(hn){if(/<[^>]*>/g.test(hn))try{var _n=pt().parse(hn);return At(_n,function(ln){ln.attrs&&ln.attrs.class&&(ln.attrs.class=bn(ln.attrs.class))}),pt().stringify(_n)}catch{return bn(hn)}return bn(hn)}}function At(fn,Sn){for(var bn=0,hn=fn.length;bn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var bn,hn=(0,tt.Z)(fn);if(Sn){var _n=(0,tt.Z)(this).constructor;bn=Reflect.construct(hn,arguments,_n)}else bn=hn.apply(this,arguments);return(0,et.Z)(this,bn)}}var jn=function(fn){(0,$.Z)(bn,fn);var Sn=yn(bn);function bn(hn,_n){var ln,Tn=_n.compName,In=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Ln=In===void 0?"light":In;return(0,k.Z)(this,bn),(ln=Sn.call(this)).subComponents=[],ln.compName=Tn,ln.c=bt(Tn),ln.options={},ln.container=hn,ln.$container=Rt()(hn),ln.$container.addClass(["luna-".concat(Tn),ln.c("platform-".concat(_t()))]),ln.on("optionChange",function(kn,Fn,vn){var Bn=ln.c;kn==="theme"&&(ln.$container.rmClass(Bn("theme-".concat(vn))).addClass(Bn("theme-".concat(Fn))),Xt()(ln.subComponents,function(Nn){return Nn.setOption("theme",Fn)}))}),ln.setOption("theme",Ln),ln}return(0,j.Z)(bn,[{key:"destroy",value:function(){this.destroySubComponents();var hn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(hn("platform-".concat(_t()))).rmClass(hn("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(hn,_n){var ln=this,Tn=this.options,In={};typeof hn=="string"?In[hn]=_n:In=hn,Xt()(In,function(Ln,kn){var Fn=Tn[kn];Tn[kn]=Ln,ln.emit("optionChange",kn,Ln,Fn)})}},{key:"getOption",value:function(hn){return this.options[hn]}},{key:"addSubComponent",value:function(hn){hn.setOption("theme",this.options.theme),this.subComponents.push(hn)}},{key:"removeSubComponent",value:function(hn){En()(this.subComponents,function(_n){return _n===hn})}},{key:"destroySubComponents",value:function(){Xt()(this.subComponents,function(hn){return hn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(hn){var _n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};dn()(hn,_n),Kt()(this.options,hn)}},{key:"find",value:function(hn){return this.$container.find(this.c(hn))}}]),bn}(Mt());function Vn(fn){var Sn=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var bn,hn=(0,tt.Z)(fn);if(Sn){var _n=(0,tt.Z)(this).constructor;bn=Reflect.construct(hn,arguments,_n)}else bn=hn.apply(this,arguments);return(0,et.Z)(this,bn)}}b=d.hmd(b);var rn=function(fn){(0,$.Z)(bn,fn);var Sn=Vn(bn);function bn(hn){var _n,ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,k.Z)(this,bn),(_n=Sn.call(this,hn,{compName:"box-model"})).initOptions(ln),_n.options.element&&_n.render(),_n.bindEvent(),_n}return(0,j.Z)(bn,[{key:"bindEvent",value:function(){var hn=this;this.on("optionChange",function(_n){_n==="element"&&hn.render()})}},{key:"render",value:function(){var hn=this.c,_n=this.getBoxModelData();this.$container.html(['
'),_n.position?'
'):"",_n.position?'
position
').concat(_n.position.top,'

').concat(_n.position.left,"
"):"",'
'),'
margin
').concat(_n.margin.top,'

').concat(_n.margin.left,"
"),'
'),'
border
').concat(_n.border.top,'

').concat(_n.border.left,"
"),'
'),'
padding
').concat(_n.padding.top,'

').concat(_n.padding.left,"
"),'
'),"".concat(_n.content.width," × ").concat(_n.content.height,""),"
",'
').concat(_n.padding.right,'

').concat(_n.padding.bottom,"
"),"
",'
').concat(_n.border.right,'

').concat(_n.border.bottom,"
"),"
",'
').concat(_n.margin.right,'

').concat(_n.margin.bottom,"
"),"
",_n.position?'
').concat(_n.position.right,'

').concat(_n.position.bottom,"
"):"",_n.position?"
":"","
"].join(""))}},{key:"getBoxModelData",value:function(){var hn=this.options.element,_n=window.getComputedStyle(hn);function ln(In){var Ln=["top","left","right","bottom"];return In!=="position"&&(Ln=nt()(Ln,function(kn){return"".concat(In,"-").concat(kn)})),In==="border"&&(Ln=nt()(Ln,function(kn){return"".concat(kn,"-width")})),{top:xn(_n[Ln[0]],In),left:xn(_n[Ln[1]],In),right:xn(_n[Ln[2]],In),bottom:xn(_n[Ln[3]],In)}}var Tn={margin:ln("margin"),border:ln("border"),padding:ln("padding"),content:{width:xn(_n.width),height:xn(_n.height)}};return _n.position!=="static"&&(Tn.position=ln("position")),Tn}}]),bn}(jn);function xn(fn,Sn){if(at()(fn))return fn;if(!dt()(fn))return"‒";var bn,hn=(bn=fn,vt()(bn.replace("px","")));return isNaN(hn)?fn:Sn==="position"?hn:hn===0?"‒":hn}(function(fn,Sn){try{fn.exports=Sn,fn.exports.default=Sn}catch{}})(b,rn)},8816:function(b,_,d){d.d(_,{Z:function(){return ts}});var k=d(168),j=d(181);function $(Er,Hr){return function(Sr){if(Array.isArray(Sr))return Sr}(Er)||function(Sr,Wt){var Ut=Sr==null?null:typeof Symbol<"u"&&Sr[Symbol.iterator]||Sr["@@iterator"];if(Ut!=null){var mn,Dn,br,dr,_r=[],Cr=!0,Rr=!1;try{if(br=(Ut=Ut.call(Sr)).next,Wt===0){if(Object(Ut)!==Ut)return;Cr=!1}else for(;!(Cr=(mn=br.call(Ut)).done)&&(_r.push(mn.value),_r.length!==Wt);Cr=!0);}catch(Yr){Rr=!0,Dn=Yr}finally{try{if(!Cr&&Ut.return!=null&&(dr=Ut.return(),Object(dr)!==dr))return}finally{if(Rr)throw Dn}}return _r}}(Er,Hr)||(0,j.Z)(Er,Hr)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var et=d(5671),tt=d(3144),rt=d(1752),nt=d(9340),ot=d(2963),at=d(1120),it=d(7326),dt=d(8901),ut=d.n(dt),ht=d(3367),ft=d.n(ht),st=d(6341),ct=d.n(st),pt=d(6930),lt=d.n(pt),wt=d(4187),yt=d.n(wt),vt=d(3783),St=d.n(vt),xt=d(4858),bt=d.n(xt),At=d(8887),_t=d.n(At),Ct=d(7756),Mt=d.n(Ct),jt=d(3023),Rt=d.n(jt);function zt(Er){return Er.constructor&&Er.constructor.name?Er.constructor.name:Rt()({}.toString.call(Er).replace(/(\[object )|]/g,""))}var Xt=d(2461),Jt=d.n(Xt),Kt=d(4331),Zt=d.n(Kt),dn=d(5610),An=d.n(dn),En=d(7483),yn=d.n(En),jn=d(3990),Vn=d.n(jn),rn=d(3875),xn=d.n(rn),fn=d(6954),Sn=d.n(fn),bn=d(9585),hn=d.n(bn);function _n(Er){var Hr="luna-".concat(Er,"-");function Sr(Wt){return Jt()(Zt()(Wt).split(/\s+/),function(Ut){return ct()(Ut,Hr)?Ut:Ut.replace(/[\w-]+/,function(mn){return"".concat(Hr).concat(mn)})}).join(" ")}return function(Wt){if(/<[^>]*>/g.test(Wt))try{var Ut=yn().parse(Wt);return ln(Ut,function(mn){mn.attrs&&mn.attrs.class&&(mn.attrs.class=Sr(mn.attrs.class))}),yn().stringify(Ut)}catch{return Sr(Wt)}return Sr(Wt)}}function ln(Er,Hr){for(var Sr=0,Wt=Er.length;Sr1&&arguments[1]!==void 0?arguments[1]:{},Wt=Sr.topObj,Ut=Sr.level,mn=Ut===void 0?0:Ut,Dn=Sr.getterVal,br=Dn!==void 0&&Dn,dr=Sr.unenumerable,_r=dr===void 0||dr,Cr="",Rr="",Yr=5,Gr=[],oo=[],po="";Wt=Wt||Er;var Ur={getterVal:br,unenumerable:_r,level:mn+1},ao=mn===0,yo=''),bo=''),So=''),Io=''),vo=''),Oo=''),Eo=function(Xr){return ut()(Xr).replace(/\\n/g,"↵").replace(/\\f|\\r|\\t/g,"").replace(/\\/g,"")},wo="",Ao=function(Xr){return yo+Eo(Xr)+wo};function Co(Xr){return Xr=ft()(Xr),ct()(kn,Xr)||lt()(Xr,"Array[")?Oo+Eo(Xr)+wo:(Xr.length>100&&(Xr=Mt()(Xr,100,{separator:" ",ellipsis:"…"})),Io+Eo('"'.concat(Xr,'"'))+wo)}function Lo(Xr){if(Hr>Yr)po=", …";else{var os=Ao(vn(Xr));if(!br){var $o=Object.getOwnPropertyDescriptor(Er,Xr);if($o&&$o.get)return Gr.push("".concat(os,": ").concat(Co("(...)"))),void Hr++}Gr.push("".concat(os,": ").concat(Ln(Wt[Xr],Ur))),Hr++}}try{Rr={}.toString.call(Er)}catch{Rr="[object Object]"}var Po,No=Rr=="[object Array]",Fo=Rr=="[object Object]",Uo=Rr=="[object Number]",jo=Rr=="[object RegExp]",Ro=Rr=="[object Symbol]",Ls=Rr=="[object Function]",Ps=Rr=="[object Boolean]";if(Rr=="[object String]")Cr=Co(vn(Er));else if(jo)Po=vn(Er.toString()),Cr=Io+Po+wo;else if(Ls)Cr=Co("ƒ");else if(No)if(ao){Cr="[";var Zo=Er.length,rs="";Zo>100&&(Zo=100,rs=", …");for(var Vo=0;Vo"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Sr,Wt=(0,at.Z)(Er);if(Hr){var Ut=(0,at.Z)(this).constructor;Sr=Reflect.construct(Wt,arguments,Ut)}else Sr=Wt.apply(this,arguments);return(0,ot.Z)(this,Sr)}}var qr=/https?:\/\/([0-9.\-A-Za-z]+)(?::(\d+))?\/[A-Z.a-z0-9/]*\.js/g,eo={comment:"",string:"",number:"",keyword:"",operator:""},to=function(Er){(0,nt.Z)(Sr,Er);var Hr=ro(Sr);function Sr(Wt,Ut){var mn,Dn=Ut.type,br=Dn===void 0?"log":Dn,dr=Ut.args,_r=dr===void 0?[]:dr,Cr=Ut.id,Rr=Ut.group,Yr=Ut.targetGroup,Gr=Ut.header,oo=Ut.ignoreFilter,po=oo!==void 0&&oo,Ur=Ut.accessGetter,ao=Ut.unenumerable,yo=Ut.lazyEvaluation;(0,et.Z)(this,Sr),(mn=Hr.call(this)).container=nn()("div"),mn.count=1,mn.width=0,mn.height=0,mn.isHidden=!1,mn.columns=[],mn.elements={},mn.objects={},mn.console=Wt,mn.type=br,mn.group=Rr,mn.targetGroup=Yr,mn.args=_r,mn.id=Cr,mn.header=Gr,mn.ignoreFilter=po,mn.collapsed=!1,mn.container.log=(0,it.Z)(mn),mn.height=0,mn.width=0,mn.$container=It()(mn.container),mn.accessGetter=Ur,mn.unenumerable=ao,mn.lazyEvaluation=yo;var bo="info";switch(br){case"debug":bo="verbose";break;case"error":bo="error";break;case"warn":bo="warning"}return mn.level=bo,mn.resizeSensor=new(qt())(mn.container),mn.onResize=Wn()(function(){hn()(mn.container)?mn.isHidden=!0:(mn.isHidden||mn.updateSize(!1),mn.isHidden=!1)},16),mn.formatMsg(),mn.group&&mn.checkGroup(),mn.bindEvent(),mn}return(0,tt.Z)(Sr,[{key:"checkGroup",value:function(){for(var Wt=this.group,Ut=!1;Wt;){if(Wt.collapsed){Ut=!0;break}Wt=Wt.parent}return Ut!==this.collapsed&&(this.collapsed=Ut,!0)}},{key:"updateIcon",value:function(Wt){var Ut=this.console.c;return this.$container.find(Ut(".icon-container")).find(Ut(".icon")).rmAttr("class").addClass([Ut("icon"),Ut("icon-".concat(Wt))]),this}},{key:"addCount",value:function(){this.count++;var Wt=this.$container,Ut=this.count,mn=this.console.c,Dn=Wt.find(mn(".count-container")),br=Wt.find(mn(".icon-container")),dr=Dn.find(mn(".count"));return Ut===2&&Dn.rmClass(mn("hidden")),dr.text(ft()(Ut)),br.addClass(mn("hidden")),this}},{key:"groupEnd",value:function(){var Wt=this.$container,Ut=this.console.c;return Wt.find(".".concat(Ut("nesting-level"),":not(.").concat(Ut("group-closed"),")")).last().addClass(Ut("group-closed")),this}},{key:"updateTime",value:function(Wt){var Ut=this.$container.find(this.console.c(".time-container"));return this.header&&(Ut.find("span").eq(0).text(Wt),this.header.time=Wt),this}},{key:"isAttached",value:function(){return!!this.container.parentNode}},{key:"isSimple",value:function(){return!tr()(this.args,function(Wt){return Pn()(Wt)})}},{key:"updateSize",value:function(){var Wt=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],Ut=this.container.getBoundingClientRect(),mn=Ut.width,Dn=Ut.height-1;this.height!==Dn&&(this.height=Dn,Wt||this.emit("updateHeight")),this.width!==mn&&(this.width=mn)}},{key:"html",value:function(){return this.container.outerHTML}},{key:"text",value:function(){return this.content.textContent||""}},{key:"select",value:function(){this.$container.addClass(this.console.c("selected"))}},{key:"deselect",value:function(){this.$container.rmClass(this.console.c("selected"))}},{key:"copy",value:function(){var Wt=this.args,Ut="";St()(Wt,function(mn,Dn){Dn!==0&&(Ut+=" "),Pn()(mn)?Ut+=Yn()(mn):Ut+=ft()(mn)}),Hn()(Ut)}},{key:"bindEvent",value:function(){var Wt=this,Ut=this.console.c,mn=this;this.resizeSensor.addListener(this.onResize),this.$container.on("click",Ut(".dom-viewer"),function(Dn){return Dn.stopPropagation()}).on("click",Ut(".preview"),function(Dn){Dn.stopPropagation();var br=It()(this).find(Ut(".preview-icon-container")).find(Ut(".icon")),dr="caret-down";br.hasClass(Ut("icon-caret-down"))&&(dr="caret-right"),br.rmAttr("class").addClass([Ut("icon"),Ut("icon-".concat(dr))]),mn.renderObjectViewer(this)}).on("click",function(){return Wt.click()})}},{key:"renderEl",value:function(){var Wt=this.elements,Ut=this.console.c,mn=this;this.$container.find(Ut(".dom-viewer")).each(function(){var Dn=It()(this).data("id");new pn.Z(this,{node:Wt[Dn],theme:mn.console.getOption("theme")})})}},{key:"renderObjectViewer",value:function(Wt){var Ut=this.console,mn=this.unenumerable,Dn=this.accessGetter,br=this.lazyEvaluation,dr=Ut.c,_r=It()(Wt),Cr=_r.data("id");if(Cr){var Rr=this.objects[Cr],Yr=_r.find(dr(".json"));if(Yr.hasClass(dr("hidden"))){if(Yr.data("init")!=="true"){if(br){var Gr=new Nn.Z(Yr.get(0),{unenumerable:mn,accessGetter:Dn});Gr.setOption("theme",Ut.getOption("theme")),Gr.set(Rr)}else{var oo=new Nn.q(Yr.get(0));oo.setOption("theme",Ut.getOption("theme")),oo.set(Rr)}Yr.data("init","true")}Yr.rmClass(dr("hidden"))}else Yr.addClass(dr("hidden"))}}},{key:"renderTable",value:function(Wt){var Ut=this,mn="__LunaConsoleValue",Dn=this.columns,br=this.$container,dr=this.console,_r=dr.c,Cr=br.find(_r(".data-grid")),Rr=Wt[0],Yr=new Un.Z(Cr.get(0),{columns:cr()([{id:"(index)",title:"(index)",sortable:!0}],Jt()(Dn,function(Gr){return{id:Gr,title:Gr===mn?"Value":Gr,sortable:!0}})),theme:dr.getOption("theme")});St()(Rr,function(Gr,oo){var po={"(index)":ft()(oo)};Dn.forEach(function(Ur){Pn()(Gr)?po[Ur]=Ur===mn?"":Ut.formatTableVal(Gr[Ur]):Rn()(Gr)&&(po[Ur]=Ur===mn?Ut.formatTableVal(Gr):"")}),Yr.append(po)})}},{key:"extractObj",value:function(Wt){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},mn=arguments.length>2?arguments[2]:void 0,Dn=this.accessGetter,br=this.unenumerable;qn()(Ut,{accessGetter:Dn,unenumerable:br,symbol:br,timeout:1e3}),function(dr,_r,Cr){var Rr=or()(dr,_r);mr()(function(){return Cr(Rr)})}(Wt,Ut,function(dr){return mn(JSON.parse(dr))})}},{key:"click",value:function(){var Wt=this.type,Ut=this.$container,mn=this.console,Dn=mn.c;switch(Wt){case"log":case"warn":case"info":case"debug":case"output":case"table":case"dir":break;case"group":case"groupCollapsed":mn.toggleGroup(this);break;case"error":Ut.find(Dn(".stack")).toggleClass(Dn("hidden"))}}},{key:"formatMsg",value:function(){var Wt=this.args,Ut=this.type,mn=this.id,Dn=this.header,br=this.group,dr=this.console.c;Wt=Nt()(Wt);var _r,Cr,Rr="";switch(Ut!=="group"&&Ut!=="groupCollapsed"||Wt.length===0&&(Wt=["console.group"]),Ut){case"log":case"info":case"debug":Rr=this.formatCommon(Wt);break;case"dir":Rr=this.formatDir(Wt);break;case"warn":_r="warn",Rr=this.formatCommon(Wt);break;case"error":fr()(Wt[0])&&Wt.length!==1&&(Wt=this.substituteStr(Wt)),Cr=Wt[0],_r="error",Cr=vr()(Cr)?Cr:new Error(this.formatCommon(Wt)),Rr=this.formatErr(Cr);break;case"table":Rr=this.formatTable(Wt);break;case"html":Rr=Wt[0];break;case"input":Rr=this.formatJs(Wt[0]),_r="input";break;case"output":Rr=this.formatCommon(Wt),_r="output";break;case"groupCollapsed":Rr=this.formatCommon(Wt),_r="caret-right";break;case"group":Rr=this.formatCommon(Wt),_r="caret-down"}ct()(["log","debug","warn"],Ut)&&this.isSimple()&&(Rr=Mn()(Rr,function(Yr){return'').concat(Yr,"")})),Rr=this.render({msg:Rr,type:Ut,icon:_r,id:mn,header:Dn,group:br}),this.$container.addClass("".concat(dr("log-container"))).html(Rr),Ut==="table"&&(_t()(this.columns)||this.renderTable(Wt)),_t()(this.elements)||this.renderEl(),this.$content=this.$container.find(dr(".log-content")),this.content=this.$content.get(0)}},{key:"render",value:function(Wt){var Ut=this.console.c,mn="",Dn="";if(Wt.group)for(var br=Wt.group.indentLevel,dr=0;dr');Wt.header&&(mn+=Ar()(Bn||(Bn=(0,k.Z)([`
`,`
@@ -1126,14 +1126,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
').concat(Wt.msg,`
-
`)}},{key:"formatTable",value:function(Wt){var Ut=Wt[0],mn=Wt[1],Dn=[];return fr()(mn)&&(mn=Zr()(mn)),kt()(mn)||(mn=null),Nn()(Ut)?(St()(Ut,function(br){Rn()(br)?Dn.push("__LunaConsoleValue"):Nn()(br)&&(Dn=Dn.concat(Ot()(br)))}),(Dn=Pt()(Dn)).sort(),mn&&(Dn=Dn.filter(function(br){return ct()(mn,br)})),Dn.length>20&&(Dn=Dn.slice(0,20)),_t()(Dn)?this.formatCommon(Wt):(this.columns=Dn,this.console.c('
')+this.formatPreview(Ut))):this.formatCommon(Wt)}},{key:"formatErr",value:function(Wt){var Ut=Wt.stack?Wt.stack.split(` -`):[],mn="".concat(Wt.message||Ut[0],"
");return Ut=Ut.map(function(Dn){return ut()(Dn)}),mn+'
').concat(Ut.slice(1).join("
"),"
").replace(qr,function(Dn){return'').concat(Dn,"")})}},{key:"formatCommon",value:function(Wt){var Ut=this.console.c,mn=fr()(Wt[0])&&Wt.length!==1;mn&&(Wt=this.substituteStr(Wt));for(var Dn=0,br=Wt.length;Dn').concat(ut()(ft()(dr)),""):Nn()(dr)?Wt[Dn]=this.formatPreview(dr):Pr()(dr)?Wt[Dn]='undefined'):kr()(dr)?Wt[Dn]='null'):Vn()(dr)?Wt[Dn]='').concat(ft()(dr),""):typeof dr=="bigint"?Wt[Dn]='').concat(ft()(dr),"n"):Dr()(dr)?Wt[Dn]='').concat(ft()(dr),""):Nr()(dr)?Wt[Dn]='').concat(ut()(ft()(dr)),""):(dr=ft()(dr),Dn===0&&mn||(dr=ut()(dr)),dr.length>5e3&&(dr=Mt()(dr,5e3,{separator:" ",ellipsis:"…"})),Wt[Dn]=dr)}return Wt.join(" ")}},{key:"formatDir",value:function(Wt){return Nn()(Wt[0])?this.formatPreview(Wt[0]):this.formatCommon(Wt)}},{key:"formatTableVal",value:function(Wt){var Ut=this.console.c;return Nn()(Wt)?"{…}":Rn()(Wt)?jr()('
').concat(Ln(Wt),"
")):ft()(Wt)}},{key:"formatPreview",value:function(Wt){var Ut=this,mn=this.console.c,Dn=sn()();this.lazyEvaluation?this.objects[Dn]=Wt:this.extractObj(Wt,{},function(_r){Ut.objects[Dn]=_r});var br=ct()(["dir","table"],this.type),dr=zt(Wt);return dr==="Array"&&Wt.length>1?(dr="(".concat(Wt.length,")"),br&&(dr="Array".concat(dr))):dr==="RegExp"?dr=ft()(Wt):Gn()(Wt)&&(dr=this.formatElName(Wt)),'
')+'
')+'
')+'')+'').concat(ut()(dr)," ")+'').concat(br?"":Ln(Wt,{getterVal:this.accessGetter,unenumerable:!1}),"")+"
"+'
')}},{key:"substituteStr",value:function(Wt){var Ut=ut()(Wt[0]),mn=!1,Dn="";Wt.shift();for(var br=0,dr=Ut.length;br"),mn=!0,Dn+='');break;default:br--,Wt.unshift(Cr),Dn+=_r}}else Dn+=_r}return mn&&(Dn+=""),Wt.unshift(Dn),Wt}},{key:"formatJs",value:function(Wt){return'
').concat(this.console.c(sr()(Wt,"js",eo)),"
")}},{key:"formatFn",value:function(Wt){return'
'.concat(this.formatJs(Wt.toString()),"
")}},{key:"formatElName",value:function(Wt){var Ut=Wt.id,mn=Wt.className,Dn=Wt.tagName.toLowerCase();if(Ut!==""&&(Dn+="#".concat(Ut)),fr()(mn)){var br="";St()(mn.split(/\s+/g),function(dr){dr.trim()!==""&&(br+=".".concat(dr))}),Dn+=br}return Dn}},{key:"formatEl",value:function(Wt){var Ut=sn()();return this.elements[Ut]=Wt,this.console.c('
'))}}]),Sr}(Ht());function no(Er){var Hr=(Er=Et()(Er)).split(";"),Sr={};St()(Hr,function(Ut){if(ct()(Ut,":")){var mn=$(Ut.split(":"),2),Dn=mn[0],br=mn[1];Sr[Zt()(Dn)]=Zt()(br)}}),Sr.display="inline-block",Sr["max-width"]="100%",delete Sr.width,delete Sr.height;var Wt="";return St()(Sr,function(Ut,mn){Wt+="".concat(mn,":").concat(Ut,";")}),Wt}var io=d(1194),co=d.n(io),so=d(8847),fo=d.n(so),Ho=d(6329),Xo=d.n(Ho),vs=d(9001),_i=d.n(vs),ys=d(9702),bs=d.n(ys),Kr=d(2439),ws=d.n(Kr),ga=d(8933),xs=d.n(ga),_s=d(4407),Cs=d.n(_s),ks=d(5852),As=d.n(ks);function Ss(Er){var Hr=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Sr,Wt=(0,at.Z)(Er);if(Hr){var Ut=(0,at.Z)(this).constructor;Sr=Reflect.construct(Wt,arguments,Ut)}else Sr=Wt.apply(this,arguments);return(0,ot.Z)(this,Sr)}}var va,Es=function(Er){(0,nt.Z)(Sr,Er);var Hr=Ss(Sr);function Sr(Wt,Ut){var mn,Dn=Ut.compName,br=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,dr=br===void 0?"light":br;return(0,et.Z)(this,Sr),(mn=Hr.call(this)).subComponents=[],mn.compName=Dn,mn.c=_n(Dn),mn.options={},mn.container=Wt,mn.$container=It()(Wt),mn.$container.addClass(["luna-".concat(Dn),mn.c("platform-".concat(Tn()))]),mn.on("optionChange",function(_r,Cr,Rr){var Yr=mn.c;_r==="theme"&&(mn.$container.rmClass(Yr("theme-".concat(Rr))).addClass(Yr("theme-".concat(Cr))),St()(mn.subComponents,function(Gr){return Gr.setOption("theme",Cr)}))}),mn.setOption("theme",dr),mn}return(0,tt.Z)(Sr,[{key:"destroy",value:function(){this.destroySubComponents();var Wt=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(Wt("platform-".concat(Tn()))).rmClass(Wt("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(Wt,Ut){var mn=this,Dn=this.options,br={};typeof Wt=="string"?br[Wt]=Ut:br=Wt,St()(br,function(dr,_r){var Cr=Dn[_r];Dn[_r]=dr,mn.emit("optionChange",_r,dr,Cr)})}},{key:"getOption",value:function(Wt){return this.options[Wt]}},{key:"addSubComponent",value:function(Wt){Wt.setOption("theme",this.options.theme),this.subComponents.push(Wt)}},{key:"removeSubComponent",value:function(Wt){As()(this.subComponents,function(Ut){return Ut===Wt})}},{key:"destroySubComponents",value:function(){St()(this.subComponents,function(Wt){return Wt.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(Wt){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};qn()(Wt,Ut),Xo()(this.options,Wt)}},{key:"find",value:function(Wt){return this.$container.find(this.c(Wt))}}]),Sr}(Ht()),Ts=d(1571),Ms=d.n(Ts);function Os(Er){var Hr=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Sr,Wt=(0,at.Z)(Er);if(Hr){var Ut=(0,at.Z)(this).constructor;Sr=Reflect.construct(Wt,arguments,Ut)}else Sr=Wt.apply(this,arguments);return(0,ot.Z)(this,Sr)}}b=d.hmd(b);var es=navigator.userAgent,js=es.indexOf("Android")>-1||es.indexOf("Adr")>-1,Rs=0,ts=function(Er){(0,nt.Z)(Sr,Er);var Hr=Os(Sr);function Sr(Wt){var Ut,mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,et.Z)(this,Sr),(Ut=Hr.call(this,Wt,{compName:"console"},mn)).spaceHeight=0,Ut.topSpaceHeight=0,Ut.bottomSpaceHeight=0,Ut.lastScrollTop=0,Ut.lastTimestamp=0,Ut.speedToleranceFactor=100,Ut.maxSpeedTolerance=2e3,Ut.minSpeedTolerance=100,Ut.logs=[],Ut.displayLogs=[],Ut.timer={},Ut.counter={},Ut.asyncList=[],Ut.asyncTimer=null,Ut.isAtBottom=!0,Ut.groupStack=new(_i()),Ut.selectedLog=null,Ut.onScroll=function(){var Dn=Ut.container,br=Dn.scrollHeight,dr=Dn.offsetHeight,_r=Dn.scrollTop;if(!(_r<=0||dr+_r>br)){var Cr=!1;(br===dr||_r===br-dr)&&(Cr=!0),Ut.isAtBottom=Cr;var Rr=Ut.lastScrollTop,Yr=Ut.lastTimestamp,Gr=fo()(),oo=Gr-Yr,po=_r-Rr,Ur=Math.abs(po/oo)*Ut.speedToleranceFactor;oo>1e3&&(Ur=1e3),Ur>Ut.maxSpeedTolerance&&(Ur=Ut.maxSpeedTolerance),Ur_r+dr+yo||Ut.renderViewport({topTolerance:2*ao,bottomTolerance:2*yo})}},Ut.initTpl(),Ut.initOptions(mn,{maxNum:0,asyncRender:!0,showHeader:!1,filter:"",level:["verbose","info","warning","error"],accessGetter:!1,unenumerable:!0,lazyEvaluation:!0}),Ut.$el=Ut.find(".logs"),Ut.el=Ut.$el.get(0),Ut.$fakeEl=Ut.find(".fake-logs"),Ut.fakeEl=Ut.$fakeEl.get(0),Ut.$space=Ut.find(".logs-space"),Ut.space=Ut.$space.get(0),js&&(Ut.speedToleranceFactor=800,Ut.maxSpeedTolerance=3e3,Ut.minSpeedTolerance=800),Ut.resizeSensor=new(qt())(Wt),Ut.renderViewport=ws()(function(Dn){Ut._renderViewport(Dn)},16),Ut.global={copy:function(Dn){fr()(Dn)||(Dn=JSON.stringify(Dn,null,2)),Hn()(Dn)},$:function(Dn){return document.querySelector(Dn)},$$:function(Dn){return Zr()(document.querySelectorAll(Dn))},$x:function(Dn){return xs()(Dn)},clear:function(){Ut.clear()},dir:function(Dn){Ut.dir(Dn)},table:function(Dn,br){Ut.table(Dn,br)},keys:Ot()},Ut.bindEvent(),Ut}return(0,tt.Z)(Sr,[{key:"setGlobal",value:function(Wt,Ut){this.global[Wt]=Ut}},{key:"destroy",value:function(){this.$container.off("scroll",this.onScroll),this.resizeSensor.destroy(),(0,rt.Z)((0,at.Z)(Sr.prototype),"destroy",this).call(this)}},{key:"count",value:function(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default",Ut=this.counter;Pr()(Ut[Wt])?Ut[Wt]=1:Ut[Wt]++,this.info("".concat(Wt,": ").concat(Ut[Wt]))}},{key:"countReset",value:function(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default";this.counter[Wt]=0}},{key:"assert",value:function(){for(var Wt=arguments.length,Ut=new Array(Wt),mn=0;mn0&&arguments[0]!==void 0?arguments[0]:"default";if(this.timer[Wt])return this.insert("warn",["Timer '".concat(Wt,"' already exists")]);this.timer[Wt]=co()()}},{key:"timeLog",value:function(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default",Ut=this.timer[Wt];if(!Ut)return this.insert("warn",["Timer '".concat(Wt,"' does not exist")]);this.info("".concat(Wt,": ").concat(co()()-Ut,"ms"))}},{key:"timeEnd",value:function(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default";this.timeLog(Wt),delete this.timer[Wt]}},{key:"clear",value:function(){var Wt=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.logs=[],this.displayLogs=[],this.selectLog(null),this.lastLog=void 0,this.counter={},this.timer={},this.groupStack=new(_i()),this.asyncList=[],this.asyncTimer&&(clearTimeout(this.asyncTimer),this.asyncTimer=null),Wt?this.render():this.insert("log",["%cConsole was cleared","color:#808080;font-style:italic;"])}},{key:"info",value:function(){for(var Wt=arguments.length,Ut=new Array(Wt),mn=0;mn0&&(Dn.group=_r.peek()),Xo()(Dn,{id:++Rs,accessGetter:Yr,unenumerable:Gr,lazyEvaluation:oo}),Dn.type==="group"||Dn.type==="groupCollapsed"){var po={id:sn()("group"),collapsed:!1,parent:_r.peek(),indentLevel:_r.size+1};Dn.type==="groupCollapsed"&&(po.collapsed=!0),Dn.targetGroup=po,_r.push(po)}var Ur=new to(this,Dn);Ur.on("updateHeight",function(){br.isAtBottom=!1,br.renderViewport()});var ao=this.lastLog;if(ao&&!ct()(["html","group","groupCollapsed"],Ur.type)&&ao.type===Ur.type&&Ur.isSimple()&&ao.text()===Ur.text()?(ao.addCount(),Ur.header&&ao.updateTime(Ur.header.time),Ur=ao,this.detachLog(ao)):(dr.push(Ur),this.lastLog=Ur),Rr!==0&&dr.length>Rr){var yo=dr[0];this.detachLog(yo),dr.shift()}this.attachLog(Ur),this.emit("insert",Ur)}},{key:"updateTopSpace",value:function(Wt){this.topSpaceHeight=Wt,this.el.style.top=Wt+"px"}},{key:"updateBottomSpace",value:function(Wt){this.bottomSpaceHeight=Wt}},{key:"updateSpace",value:function(Wt){this.spaceHeight!==Wt&&(this.spaceHeight=Wt,this.space.style.height=Wt+"px")}},{key:"detachLog",value:function(Wt){var Ut=this.displayLogs,mn=Ut.indexOf(Wt);mn>-1&&(Ut.splice(mn,1),this.renderViewport())}},{key:"attachLog",value:function(Wt){if(this.filterLog(Wt)&&!Wt.collapsed){var Ut=this.displayLogs;if(Ut.length===0)return Ut.push(Wt),void this.renderViewport();var mn=bs()(Ut);if(Wt.id>mn.id)return Ut.push(Wt),void this.renderViewport();for(var Dn,br=0,dr=Ut.length-1,_r=0;br<=dr;){if((Dn=Ut[_r=br+Math.floor((dr-br)/2)]).id===Wt.id)return;Dn.id0&&arguments[0]!==void 0?arguments[0]:20,mn=this.asyncList;this.asyncTimer||(this.asyncTimer=setTimeout(function(){Wt.asyncTimer=null;var Dn,br,dr=!1,_r=mn.length;_r<1e3?(br=200,Dn=400):_r<5e3?(br=500,Dn=800):_r<1e4?(br=800,Dn=1e3):_r<25e3?(br=1e3,Dn=1200):_r<5e4?(br=1500,Dn=1500):(br=2e3,Dn=2500),br>_r&&(br=_r,dr=!0);for(var Cr=0;Cr0&&_r.length>dr&&(Wt.logs=_r.slice(_r.length-dr),Wt.render());break;case"filter":Wt.render();break;case"level":Wt.options.level=Zr()(dr),Wt.render()}}),this.$container.on("scroll",this.onScroll)}},{key:"_renderViewport",value:function(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ut=Wt.topTolerance,mn=Ut===void 0?500:Ut,Dn=Wt.bottomTolerance,br=Dn===void 0?500:Dn,dr=this.el,_r=this.container,Cr=this.space;if(!hn()(_r)){for(var Rr=_r.scrollTop,Yr=_r.offsetHeight,Gr=Cr.getBoundingClientRect().width,oo=Rr-mn,po=Rr+Yr+br,Ur=this.displayLogs,ao=0,yo=0,bo=0,So=Ur.length,Io=this.fakeEl,vo=document.createDocumentFragment(),Oo=[],Eo=0;Eo0){Io.appendChild(vo);for(var Co=0,Lo=Oo.length;Copo?yo+=jo:bo+jo>oo?Po.appendChild(Uo):bo`)}},{key:"formatTable",value:function(Wt){var Ut=Wt[0],mn=Wt[1],Dn=[];return fr()(mn)&&(mn=Zr()(mn)),kt()(mn)||(mn=null),Pn()(Ut)?(St()(Ut,function(br){Rn()(br)?Dn.push("__LunaConsoleValue"):Pn()(br)&&(Dn=Dn.concat(Ot()(br)))}),(Dn=Pt()(Dn)).sort(),mn&&(Dn=Dn.filter(function(br){return ct()(mn,br)})),Dn.length>20&&(Dn=Dn.slice(0,20)),_t()(Dn)?this.formatCommon(Wt):(this.columns=Dn,this.console.c('
')+this.formatPreview(Ut))):this.formatCommon(Wt)}},{key:"formatErr",value:function(Wt){var Ut=Wt.stack?Wt.stack.split(` +`):[],mn="".concat(Wt.message||Ut[0],"
");return Ut=Ut.map(function(Dn){return ut()(Dn)}),mn+'
').concat(Ut.slice(1).join("
"),"
").replace(qr,function(Dn){return'').concat(Dn,"")})}},{key:"formatCommon",value:function(Wt){var Ut=this.console.c,mn=fr()(Wt[0])&&Wt.length!==1;mn&&(Wt=this.substituteStr(Wt));for(var Dn=0,br=Wt.length;Dn').concat(ut()(ft()(dr)),""):Pn()(dr)?Wt[Dn]=this.formatPreview(dr):Pr()(dr)?Wt[Dn]='undefined'):kr()(dr)?Wt[Dn]='null'):Vn()(dr)?Wt[Dn]='').concat(ft()(dr),""):typeof dr=="bigint"?Wt[Dn]='').concat(ft()(dr),"n"):Dr()(dr)?Wt[Dn]='').concat(ft()(dr),""):Nr()(dr)?Wt[Dn]='').concat(ut()(ft()(dr)),""):(dr=ft()(dr),Dn===0&&mn||(dr=ut()(dr)),dr.length>5e3&&(dr=Mt()(dr,5e3,{separator:" ",ellipsis:"…"})),Wt[Dn]=dr)}return Wt.join(" ")}},{key:"formatDir",value:function(Wt){return Pn()(Wt[0])?this.formatPreview(Wt[0]):this.formatCommon(Wt)}},{key:"formatTableVal",value:function(Wt){var Ut=this.console.c;return Pn()(Wt)?"{…}":Rn()(Wt)?jr()('
').concat(Ln(Wt),"
")):ft()(Wt)}},{key:"formatPreview",value:function(Wt){var Ut=this,mn=this.console.c,Dn=sn()();this.lazyEvaluation?this.objects[Dn]=Wt:this.extractObj(Wt,{},function(_r){Ut.objects[Dn]=_r});var br=ct()(["dir","table"],this.type),dr=zt(Wt);return dr==="Array"&&Wt.length>1?(dr="(".concat(Wt.length,")"),br&&(dr="Array".concat(dr))):dr==="RegExp"?dr=ft()(Wt):Gn()(Wt)&&(dr=this.formatElName(Wt)),'
')+'
')+'
')+'')+'').concat(ut()(dr)," ")+'').concat(br?"":Ln(Wt,{getterVal:this.accessGetter,unenumerable:!1}),"")+"
"+'
')}},{key:"substituteStr",value:function(Wt){var Ut=ut()(Wt[0]),mn=!1,Dn="";Wt.shift();for(var br=0,dr=Ut.length;br"),mn=!0,Dn+='');break;default:br--,Wt.unshift(Cr),Dn+=_r}}else Dn+=_r}return mn&&(Dn+=""),Wt.unshift(Dn),Wt}},{key:"formatJs",value:function(Wt){return'
').concat(this.console.c(sr()(Wt,"js",eo)),"
")}},{key:"formatFn",value:function(Wt){return'
'.concat(this.formatJs(Wt.toString()),"
")}},{key:"formatElName",value:function(Wt){var Ut=Wt.id,mn=Wt.className,Dn=Wt.tagName.toLowerCase();if(Ut!==""&&(Dn+="#".concat(Ut)),fr()(mn)){var br="";St()(mn.split(/\s+/g),function(dr){dr.trim()!==""&&(br+=".".concat(dr))}),Dn+=br}return Dn}},{key:"formatEl",value:function(Wt){var Ut=sn()();return this.elements[Ut]=Wt,this.console.c('
'))}}]),Sr}(Ht());function no(Er){var Hr=(Er=Et()(Er)).split(";"),Sr={};St()(Hr,function(Ut){if(ct()(Ut,":")){var mn=$(Ut.split(":"),2),Dn=mn[0],br=mn[1];Sr[Zt()(Dn)]=Zt()(br)}}),Sr.display="inline-block",Sr["max-width"]="100%",delete Sr.width,delete Sr.height;var Wt="";return St()(Sr,function(Ut,mn){Wt+="".concat(mn,":").concat(Ut,";")}),Wt}var io=d(1194),co=d.n(io),so=d(8847),fo=d.n(so),Ho=d(6329),Xo=d.n(Ho),vs=d(9001),_i=d.n(vs),ys=d(9702),bs=d.n(ys),Kr=d(2439),ws=d.n(Kr),ga=d(8933),xs=d.n(ga),_s=d(4407),Cs=d.n(_s),ks=d(5852),As=d.n(ks);function Ss(Er){var Hr=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Sr,Wt=(0,at.Z)(Er);if(Hr){var Ut=(0,at.Z)(this).constructor;Sr=Reflect.construct(Wt,arguments,Ut)}else Sr=Wt.apply(this,arguments);return(0,ot.Z)(this,Sr)}}var va,Es=function(Er){(0,nt.Z)(Sr,Er);var Hr=Ss(Sr);function Sr(Wt,Ut){var mn,Dn=Ut.compName,br=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,dr=br===void 0?"light":br;return(0,et.Z)(this,Sr),(mn=Hr.call(this)).subComponents=[],mn.compName=Dn,mn.c=_n(Dn),mn.options={},mn.container=Wt,mn.$container=It()(Wt),mn.$container.addClass(["luna-".concat(Dn),mn.c("platform-".concat(Tn()))]),mn.on("optionChange",function(_r,Cr,Rr){var Yr=mn.c;_r==="theme"&&(mn.$container.rmClass(Yr("theme-".concat(Rr))).addClass(Yr("theme-".concat(Cr))),St()(mn.subComponents,function(Gr){return Gr.setOption("theme",Cr)}))}),mn.setOption("theme",dr),mn}return(0,tt.Z)(Sr,[{key:"destroy",value:function(){this.destroySubComponents();var Wt=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(Wt("platform-".concat(Tn()))).rmClass(Wt("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(Wt,Ut){var mn=this,Dn=this.options,br={};typeof Wt=="string"?br[Wt]=Ut:br=Wt,St()(br,function(dr,_r){var Cr=Dn[_r];Dn[_r]=dr,mn.emit("optionChange",_r,dr,Cr)})}},{key:"getOption",value:function(Wt){return this.options[Wt]}},{key:"addSubComponent",value:function(Wt){Wt.setOption("theme",this.options.theme),this.subComponents.push(Wt)}},{key:"removeSubComponent",value:function(Wt){As()(this.subComponents,function(Ut){return Ut===Wt})}},{key:"destroySubComponents",value:function(){St()(this.subComponents,function(Wt){return Wt.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(Wt){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};qn()(Wt,Ut),Xo()(this.options,Wt)}},{key:"find",value:function(Wt){return this.$container.find(this.c(Wt))}}]),Sr}(Ht()),Ts=d(1571),Ms=d.n(Ts);function Os(Er){var Hr=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Sr,Wt=(0,at.Z)(Er);if(Hr){var Ut=(0,at.Z)(this).constructor;Sr=Reflect.construct(Wt,arguments,Ut)}else Sr=Wt.apply(this,arguments);return(0,ot.Z)(this,Sr)}}b=d.hmd(b);var es=navigator.userAgent,js=es.indexOf("Android")>-1||es.indexOf("Adr")>-1,Rs=0,ts=function(Er){(0,nt.Z)(Sr,Er);var Hr=Os(Sr);function Sr(Wt){var Ut,mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,et.Z)(this,Sr),(Ut=Hr.call(this,Wt,{compName:"console"},mn)).spaceHeight=0,Ut.topSpaceHeight=0,Ut.bottomSpaceHeight=0,Ut.lastScrollTop=0,Ut.lastTimestamp=0,Ut.speedToleranceFactor=100,Ut.maxSpeedTolerance=2e3,Ut.minSpeedTolerance=100,Ut.logs=[],Ut.displayLogs=[],Ut.timer={},Ut.counter={},Ut.asyncList=[],Ut.asyncTimer=null,Ut.isAtBottom=!0,Ut.groupStack=new(_i()),Ut.selectedLog=null,Ut.onScroll=function(){var Dn=Ut.container,br=Dn.scrollHeight,dr=Dn.offsetHeight,_r=Dn.scrollTop;if(!(_r<=0||dr+_r>br)){var Cr=!1;(br===dr||_r===br-dr)&&(Cr=!0),Ut.isAtBottom=Cr;var Rr=Ut.lastScrollTop,Yr=Ut.lastTimestamp,Gr=fo()(),oo=Gr-Yr,po=_r-Rr,Ur=Math.abs(po/oo)*Ut.speedToleranceFactor;oo>1e3&&(Ur=1e3),Ur>Ut.maxSpeedTolerance&&(Ur=Ut.maxSpeedTolerance),Ur_r+dr+yo||Ut.renderViewport({topTolerance:2*ao,bottomTolerance:2*yo})}},Ut.initTpl(),Ut.initOptions(mn,{maxNum:0,asyncRender:!0,showHeader:!1,filter:"",level:["verbose","info","warning","error"],accessGetter:!1,unenumerable:!0,lazyEvaluation:!0}),Ut.$el=Ut.find(".logs"),Ut.el=Ut.$el.get(0),Ut.$fakeEl=Ut.find(".fake-logs"),Ut.fakeEl=Ut.$fakeEl.get(0),Ut.$space=Ut.find(".logs-space"),Ut.space=Ut.$space.get(0),js&&(Ut.speedToleranceFactor=800,Ut.maxSpeedTolerance=3e3,Ut.minSpeedTolerance=800),Ut.resizeSensor=new(qt())(Wt),Ut.renderViewport=ws()(function(Dn){Ut._renderViewport(Dn)},16),Ut.global={copy:function(Dn){fr()(Dn)||(Dn=JSON.stringify(Dn,null,2)),Hn()(Dn)},$:function(Dn){return document.querySelector(Dn)},$$:function(Dn){return Zr()(document.querySelectorAll(Dn))},$x:function(Dn){return xs()(Dn)},clear:function(){Ut.clear()},dir:function(Dn){Ut.dir(Dn)},table:function(Dn,br){Ut.table(Dn,br)},keys:Ot()},Ut.bindEvent(),Ut}return(0,tt.Z)(Sr,[{key:"setGlobal",value:function(Wt,Ut){this.global[Wt]=Ut}},{key:"destroy",value:function(){this.$container.off("scroll",this.onScroll),this.resizeSensor.destroy(),(0,rt.Z)((0,at.Z)(Sr.prototype),"destroy",this).call(this)}},{key:"count",value:function(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default",Ut=this.counter;Pr()(Ut[Wt])?Ut[Wt]=1:Ut[Wt]++,this.info("".concat(Wt,": ").concat(Ut[Wt]))}},{key:"countReset",value:function(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default";this.counter[Wt]=0}},{key:"assert",value:function(){for(var Wt=arguments.length,Ut=new Array(Wt),mn=0;mn0&&arguments[0]!==void 0?arguments[0]:"default";if(this.timer[Wt])return this.insert("warn",["Timer '".concat(Wt,"' already exists")]);this.timer[Wt]=co()()}},{key:"timeLog",value:function(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default",Ut=this.timer[Wt];if(!Ut)return this.insert("warn",["Timer '".concat(Wt,"' does not exist")]);this.info("".concat(Wt,": ").concat(co()()-Ut,"ms"))}},{key:"timeEnd",value:function(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default";this.timeLog(Wt),delete this.timer[Wt]}},{key:"clear",value:function(){var Wt=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.logs=[],this.displayLogs=[],this.selectLog(null),this.lastLog=void 0,this.counter={},this.timer={},this.groupStack=new(_i()),this.asyncList=[],this.asyncTimer&&(clearTimeout(this.asyncTimer),this.asyncTimer=null),Wt?this.render():this.insert("log",["%cConsole was cleared","color:#808080;font-style:italic;"])}},{key:"info",value:function(){for(var Wt=arguments.length,Ut=new Array(Wt),mn=0;mn0&&(Dn.group=_r.peek()),Xo()(Dn,{id:++Rs,accessGetter:Yr,unenumerable:Gr,lazyEvaluation:oo}),Dn.type==="group"||Dn.type==="groupCollapsed"){var po={id:sn()("group"),collapsed:!1,parent:_r.peek(),indentLevel:_r.size+1};Dn.type==="groupCollapsed"&&(po.collapsed=!0),Dn.targetGroup=po,_r.push(po)}var Ur=new to(this,Dn);Ur.on("updateHeight",function(){br.isAtBottom=!1,br.renderViewport()});var ao=this.lastLog;if(ao&&!ct()(["html","group","groupCollapsed"],Ur.type)&&ao.type===Ur.type&&Ur.isSimple()&&ao.text()===Ur.text()?(ao.addCount(),Ur.header&&ao.updateTime(Ur.header.time),Ur=ao,this.detachLog(ao)):(dr.push(Ur),this.lastLog=Ur),Rr!==0&&dr.length>Rr){var yo=dr[0];this.detachLog(yo),dr.shift()}this.attachLog(Ur),this.emit("insert",Ur)}},{key:"updateTopSpace",value:function(Wt){this.topSpaceHeight=Wt,this.el.style.top=Wt+"px"}},{key:"updateBottomSpace",value:function(Wt){this.bottomSpaceHeight=Wt}},{key:"updateSpace",value:function(Wt){this.spaceHeight!==Wt&&(this.spaceHeight=Wt,this.space.style.height=Wt+"px")}},{key:"detachLog",value:function(Wt){var Ut=this.displayLogs,mn=Ut.indexOf(Wt);mn>-1&&(Ut.splice(mn,1),this.renderViewport())}},{key:"attachLog",value:function(Wt){if(this.filterLog(Wt)&&!Wt.collapsed){var Ut=this.displayLogs;if(Ut.length===0)return Ut.push(Wt),void this.renderViewport();var mn=bs()(Ut);if(Wt.id>mn.id)return Ut.push(Wt),void this.renderViewport();for(var Dn,br=0,dr=Ut.length-1,_r=0;br<=dr;){if((Dn=Ut[_r=br+Math.floor((dr-br)/2)]).id===Wt.id)return;Dn.id0&&arguments[0]!==void 0?arguments[0]:20,mn=this.asyncList;this.asyncTimer||(this.asyncTimer=setTimeout(function(){Wt.asyncTimer=null;var Dn,br,dr=!1,_r=mn.length;_r<1e3?(br=200,Dn=400):_r<5e3?(br=500,Dn=800):_r<1e4?(br=800,Dn=1e3):_r<25e3?(br=1e3,Dn=1200):_r<5e4?(br=1500,Dn=1500):(br=2e3,Dn=2500),br>_r&&(br=_r,dr=!0);for(var Cr=0;Cr0&&_r.length>dr&&(Wt.logs=_r.slice(_r.length-dr),Wt.render());break;case"filter":Wt.render();break;case"level":Wt.options.level=Zr()(dr),Wt.render()}}),this.$container.on("scroll",this.onScroll)}},{key:"_renderViewport",value:function(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ut=Wt.topTolerance,mn=Ut===void 0?500:Ut,Dn=Wt.bottomTolerance,br=Dn===void 0?500:Dn,dr=this.el,_r=this.container,Cr=this.space;if(!hn()(_r)){for(var Rr=_r.scrollTop,Yr=_r.offsetHeight,Gr=Cr.getBoundingClientRect().width,oo=Rr-mn,po=Rr+Yr+br,Ur=this.displayLogs,ao=0,yo=0,bo=0,So=Ur.length,Io=this.fakeEl,vo=document.createDocumentFragment(),Oo=[],Eo=0;Eo0){Io.appendChild(vo);for(var Co=0,Lo=Oo.length;Copo?yo+=jo:bo+jo>oo?Po.appendChild(Uo):bo
`])))))}}]),Sr}(Es),ns=function(){return Cs()("HH:MM:ss ")};function Is(){for(var Er=new Error,Hr="",Sr=Er.stack?Er.stack.split(` -`):"",Wt=0,Ut=Sr.length;Wt-1&&Wt]*>/g.test(gt))try{var Nt=St().parse(gt);return Rt(Nt,function(Yt){Yt.attrs&&Yt.attrs.class&&(Yt.attrs.class=Pt(Yt.attrs.class))}),St().stringify(Nt)}catch{return Pt(gt)}return Pt(gt)}}function Rt(kt,$t){for(var Pt=0,gt=kt.length;Pt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Pt,gt=(0,ot.Z)(kt);if($t){var Nt=(0,ot.Z)(this).constructor;Pt=Reflect.construct(gt,arguments,Nt)}else Pt=gt.apply(this,arguments);return(0,nt.Z)(this,Pt)}}var hn,_n=function(kt){(0,rt.Z)(Pt,kt);var $t=bn(Pt);function Pt(gt,Nt){var Yt,Et=Nt.compName,Lt=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Ot=Lt===void 0?"light":Lt;return(0,j.Z)(this,Pt),(Yt=$t.call(this)).subComponents=[],Yt.compName=Et,Yt.c=jt(Et),Yt.options={},Yt.container=gt,Yt.$container=it()(gt),Yt.$container.addClass(["luna-".concat(Et),Yt.c("platform-".concat(An()))]),Yt.on("optionChange",function(Bt,It,an){var nn=Yt.c;Bt==="theme"&&(Yt.$container.rmClass(nn("theme-".concat(an))).addClass(nn("theme-".concat(It))),yn()(Yt.subComponents,function(Qt){return Qt.setOption("theme",It)}))}),Yt.setOption("theme",Ot),Yt}return(0,$.Z)(Pt,[{key:"destroy",value:function(){this.destroySubComponents();var gt=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(gt("platform-".concat(An()))).rmClass(gt("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(gt,Nt){var Yt=this,Et=this.options,Lt={};typeof gt=="string"?Lt[gt]=Nt:Lt=gt,yn()(Lt,function(Ot,Bt){var It=Et[Bt];Et[Bt]=Ot,Yt.emit("optionChange",Bt,Ot,It)})}},{key:"getOption",value:function(gt){return this.options[gt]}},{key:"addSubComponent",value:function(gt){gt.setOption("theme",this.options.theme),this.subComponents.push(gt)}},{key:"removeSubComponent",value:function(gt){Sn()(this.subComponents,function(Nt){return Nt===gt})}},{key:"destroySubComponents",value:function(){yn()(this.subComponents,function(gt){return gt.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(gt){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};xn()(gt,Nt),Vn()(this.options,gt)}},{key:"find",value:function(gt){return this.$container.find(this.c(gt))}}]),Pt}(ft()),ln=d(8901),Tn=d.n(ln),In=d(8613),Ln=d.n(In),kn=d(3367),Fn=d.n(kn),vn=d(9833),Bn=d.n(vn),Pn=d(1286),Un=d.n(Pn),pn=d(242),Vt=d.n(pn),qt=d(2439),wn=d.n(qt),Nn=d(6930),lr=d.n(Nn),fr=d(6156),Zn=d.n(fr),vr=d(4777),yr=d.n(vr),Rn=d(1754),ur=d.n(Rn),qn=d(6768),pr=d.n(qn),Gn=d(3063),zn=d.n(Gn),ar=d(9882),rr=d.n(ar),cr=d(9853),xr=d.n(cr),kr=d(6435),Tr=d.n(kr);function Pr(kt){var $t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Pt,gt=(0,ot.Z)(kt);if($t){var Nt=(0,ot.Z)(this).constructor;Pt=Reflect.construct(gt,arguments,Nt)}else Pt=gt.apply(this,arguments);return(0,nt.Z)(this,Pt)}}b=d.hmd(b);var Ir=it()(document),zr=24,Qr=function(kt){(0,rt.Z)(Pt,kt);var $t=Pr(Pt);function Pt(gt,Nt){var Yt;(0,j.Z)(this,Pt),(Yt=$t.call(this,gt,{compName:"data-grid"},Nt)).resizeIdx=0,Yt.resizeStartX=0,Yt.resizeStartLeft=0,Yt.resizeDeltaX=0,Yt.nodes=[],Yt.colWidthsInitialized=!1,Yt.colMap={},Yt.selectedNode=null,Yt.isAscending=!0,Yt.colWidths=[],Yt.onResizeColMove=function(It){var an=(0,et.Z)(Yt),nn=an.resizeIdx,Qt=an.$resizers,Ht=an.colWidths,gn=an.$colgroup,Wn=Zt("x",It=It.origEvent)-Yt.resizeStartX,Kn=Ht[nn],Yn=Ht[nn+1],er=Tr()(-Kn+zr,0),Hn=xr()(Yn-zr,0);Wn=rr()(Wn,er,Hn),gn.each(function(){var or=it()(this).find("col");or.eq(nn).css("width",Kn+Wn+"px"),or.eq(nn+1).css("width",Yn-Wn+"px")}),Yt.resizeDeltaX=Wn;var Jn=Yt.resizeStartLeft+Wn;Qt.eq(nn).css("left","".concat(Jn,"px"))},Yt.onResizeColEnd=function(It){Yt.onResizeColMove(It);var an=(0,et.Z)(Yt),nn=an.c,Qt=an.colWidths,Ht=an.resizeIdx,gn=an.resizeDeltaX,Wn=Yt.options.columns,Kn=Wn[Ht],Yn=Wn[Ht+1],er=Qt[Ht]+gn,Hn=er+(Qt[Ht+1]-gn),Jn=Kn.weight+Yn.weight,or=Jn*(er/Hn),Xn=Jn-or;Kn.weight=or,Yn.weight=Xn,Yt.applyColWeights(),it()(document.body).rmClass(nn("resizing")),Ir.off(Kt("move"),Yt.onResizeColMove),Ir.off(Kt("end"),Yt.onResizeColEnd)},Yt.$container.attr("tabindex","0"),Yt.resizeSensor=new(Vt())(gt),Yt.onResize=wn()(function(){Yt.updateHeight(),Yt.updateWeights()},16),Nt.height&&(Nt.maxHeight=Nt.height,Nt.minHeight=Nt.height),Yt.initOptions(Nt,{minHeight:41,maxHeight:1/0,filter:""});var Et=Yt.options,Lt=Et.columns,Ot=Et.minHeight,Bt=Et.maxHeight;return yn()(Lt,function(It){xn()(It,{sortable:!1}),Yt.colMap[It.id]=It}),Bt-1&&(gt.detach(),Nt.splice(Yt,1),gt===this.selectedNode&&this.selectNode(Nt[Yt]||Nt[Yt-1]||null),this.updateHeight())}},{key:"append",value:function(gt,Nt){var Yt=new Zr(this,gt,Nt);return this.nodes.push(Yt),this.sortId?this.sortNodes(this.sortId,this.isAscending):this.filterNode(Yt)&&(this.tableBody.insertBefore(Yt.container,this.fillerRow),this.updateHeight()),Yt}},{key:"clear",value:function(){yn()(this.nodes,function(gt){return gt.detach()}),this.nodes=[],this.selectNode(null),this.updateHeight()}},{key:"updateHeight",value:function(){var gt=this.$fillerRow,Nt=this.c,Yt=this.$container,Et=this.options,Lt=Et.maxHeight,Ot=Et.minHeight;this.$dataContainer.css({height:"auto"});var Bt=this.$headerRow.offset().height+dn(Yt.css("border-top-width"))+dn(Yt.css("border-bottom-width"));(Ot-=Bt)<0&&(Ot=0),Lt-=Bt;var It=this.$dataContainer.find(Nt(".node")),an=It.length,nn=0;an>0&&(nn=It.offset().height*an),nn>Ot?gt.hide():gt.show(),nn=Lt&&(nn=Lt),this.$dataContainer.css({height:nn})}},{key:"selectNode",value:function(gt){var Nt;(Zn()(gt)||gt!=null&>.selectable)&&(this.selectedNode&&(this.selectedNode.deselect(),this.selectedNode=null),Zn()(gt)?this.emit("deselect"):(this.selectedNode=gt,(Nt=this.selectedNode)===null||Nt===void 0||Nt.select(),this.emit("select",gt)))}},{key:"onResizeColStart",value:function(gt){var Nt=this.c,Yt=this.resizeIdx,Et=this.$resizers;gt.stopPropagation(),gt.preventDefault(),gt=gt.origEvent,this.resizeStartX=Zt("x",gt),this.resizeStartLeft=dn(Et.eq(Yt).css("left")),it()(document.body).addClass(Nt("resizing")),Ir.on(Kt("move"),this.onResizeColMove),Ir.on(Kt("end"),this.onResizeColEnd)}},{key:"bindEvent",value:function(){var gt=this,Nt=this.c,Yt=this.$headerRow,Et=this.$tableBody,Lt=this.$resizers;this.resizeSensor.addListener(this.onResize);var Ot=this;Et.on("click",Nt(".node"),function(){Ot.selectNode(this.dataGridNode)}),Yt.on("click",Nt(".sortable"),function(Bt){Bt.stopPropagation();var It=it()(this),an=It.data("id"),nn=It.data("order")!=="descending";It.data("order",nn?"descending":"ascending"),Ot.sortNodes(an,nn),Yt.find("th").each(function(){var Qt=it()(this);Qt.data("id")!==an&&Qt.rmAttr("data-order")})}),Lt.on(Kt("start"),function(Bt){var It=it()(this);Ot.resizeIdx=_t()(It.data("idx")),Ot.onResizeColStart(Bt)}),this.on("optionChange",function(Bt){switch(Bt){case"minHeight":case"maxHeight":gt.updateHeight();break;case"filter":gt.renderData()}})}},{key:"sortNodes",value:function(gt,Nt){var Yt=this.colMap[gt].comparator||mo;this.nodes.sort(function(Et,Lt){var Ot=Et.data[gt],Bt=Lt.data[gt];return Bn()(Ot)&&(Ot=Ot.innerText),Bn()(Bt)&&(Bt=Bt.innerText),Nt?Yt(Ot,Bt):Yt(Bt,Ot)}),this.renderData(),this.sortId=gt,this.isAscending=Nt}},{key:"updateWeights",value:function(){var gt=this.container,Nt=this.$headerRow,Yt=this.options.columns,Et=gt.offsetWidth;if(!this.colWidthsInitialized&&Et){for(var Lt=0,Ot=Yt.length;Lt'),this.colWidths[Qt]=gn}Nt.html(It),this.positionResizers()}}},{key:"positionResizers",value:function(){for(var gt=this.colWidths,Nt=[],Yt=gt.length-1,Et=0;Et').concat(Lt,"")):Nt+="".concat(Lt,""),Yt+=""}),this.$headerRow.html(Nt),this.$fillerRow.html(Yt)}},{key:"renderResizers",value:function(){for(var gt="",Nt=this.options.columns.length-1,Yt=0;Yt'));this.$container.append(gt),this.$resizers=this.find(".resizer")}},{key:"initTpl",value:function(){this.$container.html(this.c(ut()(hn||(hn=(0,k.Z)([` +`):"",Wt=0,Ut=Sr.length;Wt-1&&Wt]*>/g.test(gt))try{var Nt=St().parse(gt);return Rt(Nt,function(Yt){Yt.attrs&&Yt.attrs.class&&(Yt.attrs.class=Pt(Yt.attrs.class))}),St().stringify(Nt)}catch{return Pt(gt)}return Pt(gt)}}function Rt(kt,$t){for(var Pt=0,gt=kt.length;Pt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Pt,gt=(0,ot.Z)(kt);if($t){var Nt=(0,ot.Z)(this).constructor;Pt=Reflect.construct(gt,arguments,Nt)}else Pt=gt.apply(this,arguments);return(0,nt.Z)(this,Pt)}}var hn,_n=function(kt){(0,rt.Z)(Pt,kt);var $t=bn(Pt);function Pt(gt,Nt){var Yt,Et=Nt.compName,Lt=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Ot=Lt===void 0?"light":Lt;return(0,j.Z)(this,Pt),(Yt=$t.call(this)).subComponents=[],Yt.compName=Et,Yt.c=jt(Et),Yt.options={},Yt.container=gt,Yt.$container=it()(gt),Yt.$container.addClass(["luna-".concat(Et),Yt.c("platform-".concat(An()))]),Yt.on("optionChange",function(Bt,It,an){var nn=Yt.c;Bt==="theme"&&(Yt.$container.rmClass(nn("theme-".concat(an))).addClass(nn("theme-".concat(It))),yn()(Yt.subComponents,function(Qt){return Qt.setOption("theme",It)}))}),Yt.setOption("theme",Ot),Yt}return(0,$.Z)(Pt,[{key:"destroy",value:function(){this.destroySubComponents();var gt=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(gt("platform-".concat(An()))).rmClass(gt("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(gt,Nt){var Yt=this,Et=this.options,Lt={};typeof gt=="string"?Lt[gt]=Nt:Lt=gt,yn()(Lt,function(Ot,Bt){var It=Et[Bt];Et[Bt]=Ot,Yt.emit("optionChange",Bt,Ot,It)})}},{key:"getOption",value:function(gt){return this.options[gt]}},{key:"addSubComponent",value:function(gt){gt.setOption("theme",this.options.theme),this.subComponents.push(gt)}},{key:"removeSubComponent",value:function(gt){Sn()(this.subComponents,function(Nt){return Nt===gt})}},{key:"destroySubComponents",value:function(){yn()(this.subComponents,function(gt){return gt.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(gt){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};xn()(gt,Nt),Vn()(this.options,gt)}},{key:"find",value:function(gt){return this.$container.find(this.c(gt))}}]),Pt}(ft()),ln=d(8901),Tn=d.n(ln),In=d(8613),Ln=d.n(In),kn=d(3367),Fn=d.n(kn),vn=d(9833),Bn=d.n(vn),Nn=d(1286),Un=d.n(Nn),pn=d(242),Vt=d.n(pn),qt=d(2439),wn=d.n(qt),Pn=d(6930),lr=d.n(Pn),fr=d(6156),Zn=d.n(fr),vr=d(4777),yr=d.n(vr),Rn=d(1754),ur=d.n(Rn),qn=d(6768),pr=d.n(qn),Gn=d(3063),zn=d.n(Gn),ar=d(9882),rr=d.n(ar),cr=d(9853),xr=d.n(cr),kr=d(6435),Tr=d.n(kr);function Pr(kt){var $t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Pt,gt=(0,ot.Z)(kt);if($t){var Nt=(0,ot.Z)(this).constructor;Pt=Reflect.construct(gt,arguments,Nt)}else Pt=gt.apply(this,arguments);return(0,nt.Z)(this,Pt)}}b=d.hmd(b);var Ir=it()(document),zr=24,Qr=function(kt){(0,rt.Z)(Pt,kt);var $t=Pr(Pt);function Pt(gt,Nt){var Yt;(0,j.Z)(this,Pt),(Yt=$t.call(this,gt,{compName:"data-grid"},Nt)).resizeIdx=0,Yt.resizeStartX=0,Yt.resizeStartLeft=0,Yt.resizeDeltaX=0,Yt.nodes=[],Yt.colWidthsInitialized=!1,Yt.colMap={},Yt.selectedNode=null,Yt.isAscending=!0,Yt.colWidths=[],Yt.onResizeColMove=function(It){var an=(0,et.Z)(Yt),nn=an.resizeIdx,Qt=an.$resizers,Ht=an.colWidths,gn=an.$colgroup,Wn=Zt("x",It=It.origEvent)-Yt.resizeStartX,Kn=Ht[nn],Yn=Ht[nn+1],er=Tr()(-Kn+zr,0),Hn=xr()(Yn-zr,0);Wn=rr()(Wn,er,Hn),gn.each(function(){var or=it()(this).find("col");or.eq(nn).css("width",Kn+Wn+"px"),or.eq(nn+1).css("width",Yn-Wn+"px")}),Yt.resizeDeltaX=Wn;var Jn=Yt.resizeStartLeft+Wn;Qt.eq(nn).css("left","".concat(Jn,"px"))},Yt.onResizeColEnd=function(It){Yt.onResizeColMove(It);var an=(0,et.Z)(Yt),nn=an.c,Qt=an.colWidths,Ht=an.resizeIdx,gn=an.resizeDeltaX,Wn=Yt.options.columns,Kn=Wn[Ht],Yn=Wn[Ht+1],er=Qt[Ht]+gn,Hn=er+(Qt[Ht+1]-gn),Jn=Kn.weight+Yn.weight,or=Jn*(er/Hn),Xn=Jn-or;Kn.weight=or,Yn.weight=Xn,Yt.applyColWeights(),it()(document.body).rmClass(nn("resizing")),Ir.off(Kt("move"),Yt.onResizeColMove),Ir.off(Kt("end"),Yt.onResizeColEnd)},Yt.$container.attr("tabindex","0"),Yt.resizeSensor=new(Vt())(gt),Yt.onResize=wn()(function(){Yt.updateHeight(),Yt.updateWeights()},16),Nt.height&&(Nt.maxHeight=Nt.height,Nt.minHeight=Nt.height),Yt.initOptions(Nt,{minHeight:41,maxHeight:1/0,filter:""});var Et=Yt.options,Lt=Et.columns,Ot=Et.minHeight,Bt=Et.maxHeight;return yn()(Lt,function(It){xn()(It,{sortable:!1}),Yt.colMap[It.id]=It}),Bt-1&&(gt.detach(),Nt.splice(Yt,1),gt===this.selectedNode&&this.selectNode(Nt[Yt]||Nt[Yt-1]||null),this.updateHeight())}},{key:"append",value:function(gt,Nt){var Yt=new Zr(this,gt,Nt);return this.nodes.push(Yt),this.sortId?this.sortNodes(this.sortId,this.isAscending):this.filterNode(Yt)&&(this.tableBody.insertBefore(Yt.container,this.fillerRow),this.updateHeight()),Yt}},{key:"clear",value:function(){yn()(this.nodes,function(gt){return gt.detach()}),this.nodes=[],this.selectNode(null),this.updateHeight()}},{key:"updateHeight",value:function(){var gt=this.$fillerRow,Nt=this.c,Yt=this.$container,Et=this.options,Lt=Et.maxHeight,Ot=Et.minHeight;this.$dataContainer.css({height:"auto"});var Bt=this.$headerRow.offset().height+dn(Yt.css("border-top-width"))+dn(Yt.css("border-bottom-width"));(Ot-=Bt)<0&&(Ot=0),Lt-=Bt;var It=this.$dataContainer.find(Nt(".node")),an=It.length,nn=0;an>0&&(nn=It.offset().height*an),nn>Ot?gt.hide():gt.show(),nn=Lt&&(nn=Lt),this.$dataContainer.css({height:nn})}},{key:"selectNode",value:function(gt){var Nt;(Zn()(gt)||gt!=null&>.selectable)&&(this.selectedNode&&(this.selectedNode.deselect(),this.selectedNode=null),Zn()(gt)?this.emit("deselect"):(this.selectedNode=gt,(Nt=this.selectedNode)===null||Nt===void 0||Nt.select(),this.emit("select",gt)))}},{key:"onResizeColStart",value:function(gt){var Nt=this.c,Yt=this.resizeIdx,Et=this.$resizers;gt.stopPropagation(),gt.preventDefault(),gt=gt.origEvent,this.resizeStartX=Zt("x",gt),this.resizeStartLeft=dn(Et.eq(Yt).css("left")),it()(document.body).addClass(Nt("resizing")),Ir.on(Kt("move"),this.onResizeColMove),Ir.on(Kt("end"),this.onResizeColEnd)}},{key:"bindEvent",value:function(){var gt=this,Nt=this.c,Yt=this.$headerRow,Et=this.$tableBody,Lt=this.$resizers;this.resizeSensor.addListener(this.onResize);var Ot=this;Et.on("click",Nt(".node"),function(){Ot.selectNode(this.dataGridNode)}),Yt.on("click",Nt(".sortable"),function(Bt){Bt.stopPropagation();var It=it()(this),an=It.data("id"),nn=It.data("order")!=="descending";It.data("order",nn?"descending":"ascending"),Ot.sortNodes(an,nn),Yt.find("th").each(function(){var Qt=it()(this);Qt.data("id")!==an&&Qt.rmAttr("data-order")})}),Lt.on(Kt("start"),function(Bt){var It=it()(this);Ot.resizeIdx=_t()(It.data("idx")),Ot.onResizeColStart(Bt)}),this.on("optionChange",function(Bt){switch(Bt){case"minHeight":case"maxHeight":gt.updateHeight();break;case"filter":gt.renderData()}})}},{key:"sortNodes",value:function(gt,Nt){var Yt=this.colMap[gt].comparator||mo;this.nodes.sort(function(Et,Lt){var Ot=Et.data[gt],Bt=Lt.data[gt];return Bn()(Ot)&&(Ot=Ot.innerText),Bn()(Bt)&&(Bt=Bt.innerText),Nt?Yt(Ot,Bt):Yt(Bt,Ot)}),this.renderData(),this.sortId=gt,this.isAscending=Nt}},{key:"updateWeights",value:function(){var gt=this.container,Nt=this.$headerRow,Yt=this.options.columns,Et=gt.offsetWidth;if(!this.colWidthsInitialized&&Et){for(var Lt=0,Ot=Yt.length;Lt'),this.colWidths[Qt]=gn}Nt.html(It),this.positionResizers()}}},{key:"positionResizers",value:function(){for(var gt=this.colWidths,Nt=[],Yt=gt.length-1,Et=0;Et').concat(Lt,"")):Nt+="".concat(Lt,""),Yt+=""}),this.$headerRow.html(Nt),this.$fillerRow.html(Yt)}},{key:"renderResizers",value:function(){for(var gt="",Nt=this.options.columns.length-1,Yt=0;Yt'));this.$container.append(gt),this.$resizers=this.find(".resizer")}},{key:"initTpl",value:function(){this.$container.html(this.c(ut()(hn||(hn=(0,k.Z)([`
@@ -1150,19 +1150,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
- `])))))}}]),Pt}(_n),Zr=function(){function kt($t,Pt){var gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{selectable:!1};(0,j.Z)(this,kt),this.container=Ln()("tr"),this.selectable=!1,this.container.dataGridNode=this,this.$container=it()(this.container),this.$container.addClass($t.c("node")),this.dataGrid=$t,this.data=Pt,gt.selectable&&(this.selectable=gt.selectable),this.render()}return(0,$.Z)(kt,[{key:"text",value:function(){return this.$container.text()}},{key:"detach",value:function(){this.$container.remove()}},{key:"select",value:function(){this.$container.addClass(this.dataGrid.c("selected"))}},{key:"deselect",value:function(){this.$container.rmClass(this.dataGrid.c("selected"))}},{key:"render",value:function(){var $t=this.data,Pt=this.$container,gt=this.container,Nt=this.dataGrid.getOption("columns");Pt.html(""),yn()(Nt,function(Yt){var Et=Ln()("td"),Lt=$t[Yt.id];Un()(Lt)||(Bn()(Lt)?Et.appendChild(Lt):Et.innerText=Fn()(Lt)),gt.appendChild(Et)})}}]),kt}();function mo(kt,$t){if(kt=Fn()(kt),$t=Fn()($t),lr()(kt,"_")&&!lr()($t,"_"))return 1;if(lr()($t,"_")&&!lr()(kt,"_"))return-1;for(var Pt,gt,Nt,Yt,Et=/^\d+|^\D+/;;){if(!kt)return $t?-1:0;if(!$t)return 1;if(Pt=kt.match(Et)[0],gt=$t.match(Et)[0],Nt=!isNaN(Pt),Yt=!isNaN(gt),Nt&&!Yt)return-1;if(Yt&&!Nt)return 1;if(Nt&&Yt){var Lt=Pt-gt;if(Lt)return Lt;if(Pt.length!==gt.length)return+Pt||+gt?gt.length-Pt.length:Pt.length-gt.length}else if(Pt!==gt)return Pt]*>/g.test(Rn))try{var ur=vt().parse(Rn);return Ct(ur,function(qn){qn.attrs&&qn.attrs.class&&(qn.attrs.class=yr(qn.attrs.class))}),vt().stringify(ur)}catch{return yr(Rn)}return yr(Rn)}}function Ct(Zn,vr){for(var yr=0,Rn=Zn.length;yr"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var yr,Rn=(0,at.Z)(Zn);if(vr){var ur=(0,at.Z)(this).constructor;yr=Reflect.construct(Rn,arguments,ur)}else yr=Rn.apply(this,arguments);return(0,ot.Z)(this,yr)}}var yn,jn=function(Zn){(0,nt.Z)(yr,Zn);var vr=En(yr);function yr(Rn,ur){var qn,pr=ur.compName,Gn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,zn=Gn===void 0?"light":Gn;return(0,et.Z)(this,yr),(qn=vr.call(this)).subComponents=[],qn.compName=pr,qn.c=_t(pr),qn.options={},qn.container=Rn,qn.$container=ht()(Rn),qn.$container.addClass(["luna-".concat(pr),qn.c("platform-".concat(jt()))]),qn.on("optionChange",function(ar,rr,cr){var xr=qn.c;ar==="theme"&&(qn.$container.rmClass(xr("theme-".concat(cr))).addClass(xr("theme-".concat(rr))),zt()(qn.subComponents,function(kr){return kr.setOption("theme",rr)}))}),qn.setOption("theme",zn),qn}return(0,tt.Z)(yr,[{key:"destroy",value:function(){this.destroySubComponents();var Rn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(Rn("platform-".concat(jt()))).rmClass(Rn("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(Rn,ur){var qn=this,pr=this.options,Gn={};typeof Rn=="string"?Gn[Rn]=ur:Gn=Rn,zt()(Gn,function(zn,ar){var rr=pr[ar];pr[ar]=zn,qn.emit("optionChange",ar,zn,rr)})}},{key:"getOption",value:function(Rn){return this.options[Rn]}},{key:"addSubComponent",value:function(Rn){Rn.setOption("theme",this.options.theme),this.subComponents.push(Rn)}},{key:"removeSubComponent",value:function(Rn){An()(this.subComponents,function(ur){return ur===Rn})}},{key:"destroySubComponents",value:function(){zt()(this.subComponents,function(Rn){return Rn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(Rn){var ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Zt()(Rn,ur),Jt()(this.options,Rn)}},{key:"find",value:function(Rn){return this.$container.find(this.c(Rn))}}]),yr}(dt()),Vn=d(8613),rn=d.n(Vn),xn=d(5972),fn=d.n(xn),Sn=d(1907),bn=d.n(Sn),hn=d(1352),_n=d.n(hn),ln=d(2289),Tn=d.n(ln),In=d(3651),Ln=d.n(In),kn=d(7756),Fn=d.n(kn),vn=d(8901),Bn=d.n(vn),Pn=d(1672),Un=d.n(Pn);function pn(Zn,vr){var yr=Object.keys(Zn);if(Object.getOwnPropertySymbols){var Rn=Object.getOwnPropertySymbols(Zn);vr&&(Rn=Rn.filter(function(ur){return Object.getOwnPropertyDescriptor(Zn,ur).enumerable})),yr.push.apply(yr,Rn)}return yr}function Vt(Zn){for(var vr=1;vr"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var yr,Rn=(0,at.Z)(Zn);if(vr){var ur=(0,at.Z)(this).constructor;yr=Reflect.construct(Rn,arguments,ur)}else yr=Rn.apply(this,arguments);return(0,ot.Z)(this,yr)}}b=d.hmd(b);var wn={comment:"",string:"",number:"",keyword:"",operator:""},Nn=function(Zn){(0,nt.Z)(yr,Zn);var vr=qt(yr);function yr(Rn){var ur,qn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,et.Z)(this,yr),(ur=vr.call(this,Rn,{compName:"dom-viewer"},qn)).isExpanded=!1,ur.childNodes=[],ur.childNodeDomViewers=[],ur.toggle=function(){ur.isExpanded?ur.collapse():ur.expand()},ur.initOptions(qn,{node:document.documentElement,parent:null,isEndTag:!1,rootContainer:Rn,rootDomViewer:(0,rt.Z)(ur),ignore:function(){return!1}}),ur.initTpl(),ur.bindEvent(),ur.options.isEndTag||ur.initObserver(),ur}return(0,tt.Z)(yr,[{key:"select",value:function(Rn){var ur=this.c,qn=this.options;if(!Rn||Rn&&qn.node===Rn)return this.$tag.hasClass(ur("selected"))?void 0:(ht()(this.options.rootContainer).find(ur(".selected")).rmClass(ur("selected")).rmAttr("tabindex"),this.$tag.attr("tabindex","0").get(0).focus(),this.$tag.addClass(ur("selected")),void qn.rootDomViewer.emit("select",qn.node));if(Rn.nodeType===Node.ELEMENT_NODE)for(var pr=Rn,Gn=Rn.parentElement;Gn;){if(Gn===qn.node){this.expand(),this.childNodeDomViewers[this.childNodes.indexOf(pr)].select(Rn);break}pr=Gn,Gn=Gn.parentElement}}},{key:"attach",value:function(){this.container.appendChild(this.$tag.get(0)),this.$children&&this.container.appendChild(this.$children.get(0))}},{key:"isAttached",value:function(){return!!this.$tag.get(0).parentNode}},{key:"detach",value:function(){this.$tag.remove(),this.$children&&this.$children.remove()}},{key:"expand",value:function(){this.isExpandable()&&!this.isExpanded&&(this.isExpanded=!0,this.renderExpandTag(),this.renderChildNodes())}},{key:"collapse",value:function(){this.isExpandable()&&this.isExpanded&&(this.isExpanded=!1,this.renderCollapseTag())}},{key:"destroy",value:function(){var Rn=this.c;this.$tag.hasClass(Rn("selected"))&&this.options.rootDomViewer.emit("deselect"),this.detach(),this.observer&&this.observer.disconnect(),this.destroySubComponents(),this.options.rootDomViewer===this&&this.$container.rmClass("luna-dom-viewer").rmClass(Rn("platform-".concat(jt()))).rmClass(Rn("theme-".concat(this.options.theme))),this.emit("destroy"),this.removeAllListeners()}},{key:"renderExpandTag",value:function(){var Rn=this.$tag,ur=this.c,qn=this.options.node;Rn.html(this.renderHtmlTag(Vt(Vt({},lr(qn)),{},{hasTail:!1,hasToggleButton:!0}))),Rn.addClass(ur("expanded")),this.$children.rmClass(ur("hidden"))}},{key:"renderCollapseTag",value:function(){var Rn=this.$tag,ur=this.c,qn=this.options.node;this.$children.addClass(ur("hidden")),this.$tag.html(this.renderHtmlTag(Vt(Vt({},lr(qn)),{},{hasTail:!0,hasToggleButton:!0}))),Rn.rmClass(ur("expanded"))}},{key:"initObserver",value:function(){var Rn=this;this.observer=new(Tn())(function(ur){zt()(ur,function(qn){Rn.handleMutation(qn)})}),this.observer.observe(this.options.node,{attributes:!0,childList:!0,characterData:!0})}},{key:"handleMutation",value:function(Rn){var ur=this.$tag,qn=this.c,pr=this.options,Gn=pr.node,zn=pr.ignore;if(xt()(["attributes","childList"],Rn.type)){if(Rn.type==="childList"){if(Un()(Rn.addedNodes,zn)&&Un()(Rn.removedNodes,zn))return;this.renderChildNodes()}this.isExpandable()?this.isExpanded?this.renderExpandTag():this.renderCollapseTag():(this.$children.addClass(qn("hidden")),ur.html(this.renderHtmlTag(Vt(Vt({},lr(Gn)),{},{hasTail:!1}))))}else Rn.type==="characterData"&&(Gn.nodeType===Node.TEXT_NODE?ur.html(this.renderTextNode(Gn)):Gn.nodeType===Node.COMMENT_NODE&&ur.html(this.renderHtmlComment(Gn.nodeValue)))}},{key:"bindEvent",value:function(){var Rn=this,ur=this.c,qn=this.$tag;this.options.node.nodeType===Node.ELEMENT_NODE&&qn.on("click",ur(".toggle"),function(pr){pr.stopPropagation(),Rn.toggle()}),Mt?qn.on("click",function(){return Rn.select()}):qn.on("mousedown",function(){return Rn.select()})}},{key:"isExpandable",value:function(){return this.options.node.nodeType===Node.ELEMENT_NODE&&this.getChildNodes().length>0}},{key:"getChildNodes",value:function(){var Rn=this.options,ur=Rn.rootContainer,qn=Rn.ignore,pr=this.options.node,Gn=_n()(pr.childNodes);return Gn=fn()(Gn,function(zn){if(zn.nodeType===Node.TEXT_NODE||zn.nodeType===Node.COMMENT_NODE){var ar=zn.nodeValue;if(pt()(ar)==="")return!1}return zn!==ur&&!qn(zn)})}},{key:"initTpl",value:function(){var Rn=this.container,ur=this.c,qn=this.options,pr=qn.node,Gn=qn.isEndTag,zn=ht()(rn()("li"));if(zn.addClass(ur("tree-item")),this.$tag=zn,Gn)zn.html(ur('</'.concat(pr.tagName.toLocaleLowerCase(),'>')));else if(pr.nodeType===Node.ELEMENT_NODE){var ar=this.isExpandable(),rr=Vt(Vt({},lr(pr)),{},{hasTail:ar,hasToggleButton:ar});zn.html(this.renderHtmlTag(rr))}else if(pr.nodeType===Node.TEXT_NODE)zn.html(this.renderTextNode(pr));else{if(pr.nodeType!==Node.COMMENT_NODE)return;var cr=pr.nodeValue;if(cr.trim()==="")return;zn.html(this.renderHtmlComment(cr))}if(Rn.appendChild(zn.get(0)),pr.nodeType===pr.ELEMENT_NODE){var xr=ht()(rn()("ul"));xr.addClass([ur("children"),ur("hidden")]),Rn.appendChild(xr.get(0)),this.$children=xr}}},{key:"renderChildNodes",value:function(){var Rn=this,ur=this.options.node,qn=this.options,pr=qn.rootContainer,Gn=qn.ignore,zn=qn.rootDomViewer,ar=this.$children.get(0),rr=this.childNodes,cr=this.childNodeDomViewers;zt()(cr,function(Tr){Tr.detach(),Rn.removeSubComponent(Tr)}),this.endTagDomViewer&&this.endTagDomViewer.detach();var xr=this.getChildNodes();this.childNodes=xr;var kr=[];this.childNodeDomViewers=kr,zt()(xr,function(Tr,Pr){var Ir,zr=rr.indexOf(Tr);(Ir=zr>-1?cr[zr]:new yr(ar,{node:Tr,parent:Rn,rootContainer:pr,rootDomViewer:zn,ignore:Gn})).attach(),kr[Pr]=Ir,Rn.addSubComponent(Ir)}),zt()(cr,function(Tr){Tr.isAttached()||Tr.destroy()}),ur&&(this.endTagDomViewer?this.endTagDomViewer.attach():(this.endTagDomViewer=new yr(ar,{node:ur,parent:this,isEndTag:!0,rootContainer:pr,rootDomViewer:zn,ignore:Gn}),this.addSubComponent(this.endTagDomViewer)))}},{key:"renderHtmlTag",value:function(Rn){var ur=st()(Rn.attributes,function(Gn){var zn=Gn.name,ar=Gn.value,rr=Gn.isLink;return` + `])))))}}]),Pt}(_n),Zr=function(){function kt($t,Pt){var gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{selectable:!1};(0,j.Z)(this,kt),this.container=Ln()("tr"),this.selectable=!1,this.container.dataGridNode=this,this.$container=it()(this.container),this.$container.addClass($t.c("node")),this.dataGrid=$t,this.data=Pt,gt.selectable&&(this.selectable=gt.selectable),this.render()}return(0,$.Z)(kt,[{key:"text",value:function(){return this.$container.text()}},{key:"detach",value:function(){this.$container.remove()}},{key:"select",value:function(){this.$container.addClass(this.dataGrid.c("selected"))}},{key:"deselect",value:function(){this.$container.rmClass(this.dataGrid.c("selected"))}},{key:"render",value:function(){var $t=this.data,Pt=this.$container,gt=this.container,Nt=this.dataGrid.getOption("columns");Pt.html(""),yn()(Nt,function(Yt){var Et=Ln()("td"),Lt=$t[Yt.id];Un()(Lt)||(Bn()(Lt)?Et.appendChild(Lt):Et.innerText=Fn()(Lt)),gt.appendChild(Et)})}}]),kt}();function mo(kt,$t){if(kt=Fn()(kt),$t=Fn()($t),lr()(kt,"_")&&!lr()($t,"_"))return 1;if(lr()($t,"_")&&!lr()(kt,"_"))return-1;for(var Pt,gt,Nt,Yt,Et=/^\d+|^\D+/;;){if(!kt)return $t?-1:0;if(!$t)return 1;if(Pt=kt.match(Et)[0],gt=$t.match(Et)[0],Nt=!isNaN(Pt),Yt=!isNaN(gt),Nt&&!Yt)return-1;if(Yt&&!Nt)return 1;if(Nt&&Yt){var Lt=Pt-gt;if(Lt)return Lt;if(Pt.length!==gt.length)return+Pt||+gt?gt.length-Pt.length:Pt.length-gt.length}else if(Pt!==gt)return Pt]*>/g.test(Rn))try{var ur=vt().parse(Rn);return Ct(ur,function(qn){qn.attrs&&qn.attrs.class&&(qn.attrs.class=yr(qn.attrs.class))}),vt().stringify(ur)}catch{return yr(Rn)}return yr(Rn)}}function Ct(Zn,vr){for(var yr=0,Rn=Zn.length;yr"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var yr,Rn=(0,at.Z)(Zn);if(vr){var ur=(0,at.Z)(this).constructor;yr=Reflect.construct(Rn,arguments,ur)}else yr=Rn.apply(this,arguments);return(0,ot.Z)(this,yr)}}var yn,jn=function(Zn){(0,nt.Z)(yr,Zn);var vr=En(yr);function yr(Rn,ur){var qn,pr=ur.compName,Gn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,zn=Gn===void 0?"light":Gn;return(0,et.Z)(this,yr),(qn=vr.call(this)).subComponents=[],qn.compName=pr,qn.c=_t(pr),qn.options={},qn.container=Rn,qn.$container=ht()(Rn),qn.$container.addClass(["luna-".concat(pr),qn.c("platform-".concat(jt()))]),qn.on("optionChange",function(ar,rr,cr){var xr=qn.c;ar==="theme"&&(qn.$container.rmClass(xr("theme-".concat(cr))).addClass(xr("theme-".concat(rr))),zt()(qn.subComponents,function(kr){return kr.setOption("theme",rr)}))}),qn.setOption("theme",zn),qn}return(0,tt.Z)(yr,[{key:"destroy",value:function(){this.destroySubComponents();var Rn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(Rn("platform-".concat(jt()))).rmClass(Rn("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(Rn,ur){var qn=this,pr=this.options,Gn={};typeof Rn=="string"?Gn[Rn]=ur:Gn=Rn,zt()(Gn,function(zn,ar){var rr=pr[ar];pr[ar]=zn,qn.emit("optionChange",ar,zn,rr)})}},{key:"getOption",value:function(Rn){return this.options[Rn]}},{key:"addSubComponent",value:function(Rn){Rn.setOption("theme",this.options.theme),this.subComponents.push(Rn)}},{key:"removeSubComponent",value:function(Rn){An()(this.subComponents,function(ur){return ur===Rn})}},{key:"destroySubComponents",value:function(){zt()(this.subComponents,function(Rn){return Rn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(Rn){var ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Zt()(Rn,ur),Jt()(this.options,Rn)}},{key:"find",value:function(Rn){return this.$container.find(this.c(Rn))}}]),yr}(dt()),Vn=d(8613),rn=d.n(Vn),xn=d(5972),fn=d.n(xn),Sn=d(1907),bn=d.n(Sn),hn=d(1352),_n=d.n(hn),ln=d(2289),Tn=d.n(ln),In=d(3651),Ln=d.n(In),kn=d(7756),Fn=d.n(kn),vn=d(8901),Bn=d.n(vn),Nn=d(1672),Un=d.n(Nn);function pn(Zn,vr){var yr=Object.keys(Zn);if(Object.getOwnPropertySymbols){var Rn=Object.getOwnPropertySymbols(Zn);vr&&(Rn=Rn.filter(function(ur){return Object.getOwnPropertyDescriptor(Zn,ur).enumerable})),yr.push.apply(yr,Rn)}return yr}function Vt(Zn){for(var vr=1;vr"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var yr,Rn=(0,at.Z)(Zn);if(vr){var ur=(0,at.Z)(this).constructor;yr=Reflect.construct(Rn,arguments,ur)}else yr=Rn.apply(this,arguments);return(0,ot.Z)(this,yr)}}b=d.hmd(b);var wn={comment:"",string:"",number:"",keyword:"",operator:""},Pn=function(Zn){(0,nt.Z)(yr,Zn);var vr=qt(yr);function yr(Rn){var ur,qn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,et.Z)(this,yr),(ur=vr.call(this,Rn,{compName:"dom-viewer"},qn)).isExpanded=!1,ur.childNodes=[],ur.childNodeDomViewers=[],ur.toggle=function(){ur.isExpanded?ur.collapse():ur.expand()},ur.initOptions(qn,{node:document.documentElement,parent:null,isEndTag:!1,rootContainer:Rn,rootDomViewer:(0,rt.Z)(ur),ignore:function(){return!1}}),ur.initTpl(),ur.bindEvent(),ur.options.isEndTag||ur.initObserver(),ur}return(0,tt.Z)(yr,[{key:"select",value:function(Rn){var ur=this.c,qn=this.options;if(!Rn||Rn&&qn.node===Rn)return this.$tag.hasClass(ur("selected"))?void 0:(ht()(this.options.rootContainer).find(ur(".selected")).rmClass(ur("selected")).rmAttr("tabindex"),this.$tag.attr("tabindex","0").get(0).focus(),this.$tag.addClass(ur("selected")),void qn.rootDomViewer.emit("select",qn.node));if(Rn.nodeType===Node.ELEMENT_NODE)for(var pr=Rn,Gn=Rn.parentElement;Gn;){if(Gn===qn.node){this.expand(),this.childNodeDomViewers[this.childNodes.indexOf(pr)].select(Rn);break}pr=Gn,Gn=Gn.parentElement}}},{key:"attach",value:function(){this.container.appendChild(this.$tag.get(0)),this.$children&&this.container.appendChild(this.$children.get(0))}},{key:"isAttached",value:function(){return!!this.$tag.get(0).parentNode}},{key:"detach",value:function(){this.$tag.remove(),this.$children&&this.$children.remove()}},{key:"expand",value:function(){this.isExpandable()&&!this.isExpanded&&(this.isExpanded=!0,this.renderExpandTag(),this.renderChildNodes())}},{key:"collapse",value:function(){this.isExpandable()&&this.isExpanded&&(this.isExpanded=!1,this.renderCollapseTag())}},{key:"destroy",value:function(){var Rn=this.c;this.$tag.hasClass(Rn("selected"))&&this.options.rootDomViewer.emit("deselect"),this.detach(),this.observer&&this.observer.disconnect(),this.destroySubComponents(),this.options.rootDomViewer===this&&this.$container.rmClass("luna-dom-viewer").rmClass(Rn("platform-".concat(jt()))).rmClass(Rn("theme-".concat(this.options.theme))),this.emit("destroy"),this.removeAllListeners()}},{key:"renderExpandTag",value:function(){var Rn=this.$tag,ur=this.c,qn=this.options.node;Rn.html(this.renderHtmlTag(Vt(Vt({},lr(qn)),{},{hasTail:!1,hasToggleButton:!0}))),Rn.addClass(ur("expanded")),this.$children.rmClass(ur("hidden"))}},{key:"renderCollapseTag",value:function(){var Rn=this.$tag,ur=this.c,qn=this.options.node;this.$children.addClass(ur("hidden")),this.$tag.html(this.renderHtmlTag(Vt(Vt({},lr(qn)),{},{hasTail:!0,hasToggleButton:!0}))),Rn.rmClass(ur("expanded"))}},{key:"initObserver",value:function(){var Rn=this;this.observer=new(Tn())(function(ur){zt()(ur,function(qn){Rn.handleMutation(qn)})}),this.observer.observe(this.options.node,{attributes:!0,childList:!0,characterData:!0})}},{key:"handleMutation",value:function(Rn){var ur=this.$tag,qn=this.c,pr=this.options,Gn=pr.node,zn=pr.ignore;if(xt()(["attributes","childList"],Rn.type)){if(Rn.type==="childList"){if(Un()(Rn.addedNodes,zn)&&Un()(Rn.removedNodes,zn))return;this.renderChildNodes()}this.isExpandable()?this.isExpanded?this.renderExpandTag():this.renderCollapseTag():(this.$children.addClass(qn("hidden")),ur.html(this.renderHtmlTag(Vt(Vt({},lr(Gn)),{},{hasTail:!1}))))}else Rn.type==="characterData"&&(Gn.nodeType===Node.TEXT_NODE?ur.html(this.renderTextNode(Gn)):Gn.nodeType===Node.COMMENT_NODE&&ur.html(this.renderHtmlComment(Gn.nodeValue)))}},{key:"bindEvent",value:function(){var Rn=this,ur=this.c,qn=this.$tag;this.options.node.nodeType===Node.ELEMENT_NODE&&qn.on("click",ur(".toggle"),function(pr){pr.stopPropagation(),Rn.toggle()}),Mt?qn.on("click",function(){return Rn.select()}):qn.on("mousedown",function(){return Rn.select()})}},{key:"isExpandable",value:function(){return this.options.node.nodeType===Node.ELEMENT_NODE&&this.getChildNodes().length>0}},{key:"getChildNodes",value:function(){var Rn=this.options,ur=Rn.rootContainer,qn=Rn.ignore,pr=this.options.node,Gn=_n()(pr.childNodes);return Gn=fn()(Gn,function(zn){if(zn.nodeType===Node.TEXT_NODE||zn.nodeType===Node.COMMENT_NODE){var ar=zn.nodeValue;if(pt()(ar)==="")return!1}return zn!==ur&&!qn(zn)})}},{key:"initTpl",value:function(){var Rn=this.container,ur=this.c,qn=this.options,pr=qn.node,Gn=qn.isEndTag,zn=ht()(rn()("li"));if(zn.addClass(ur("tree-item")),this.$tag=zn,Gn)zn.html(ur('</'.concat(pr.tagName.toLocaleLowerCase(),'>')));else if(pr.nodeType===Node.ELEMENT_NODE){var ar=this.isExpandable(),rr=Vt(Vt({},lr(pr)),{},{hasTail:ar,hasToggleButton:ar});zn.html(this.renderHtmlTag(rr))}else if(pr.nodeType===Node.TEXT_NODE)zn.html(this.renderTextNode(pr));else{if(pr.nodeType!==Node.COMMENT_NODE)return;var cr=pr.nodeValue;if(cr.trim()==="")return;zn.html(this.renderHtmlComment(cr))}if(Rn.appendChild(zn.get(0)),pr.nodeType===pr.ELEMENT_NODE){var xr=ht()(rn()("ul"));xr.addClass([ur("children"),ur("hidden")]),Rn.appendChild(xr.get(0)),this.$children=xr}}},{key:"renderChildNodes",value:function(){var Rn=this,ur=this.options.node,qn=this.options,pr=qn.rootContainer,Gn=qn.ignore,zn=qn.rootDomViewer,ar=this.$children.get(0),rr=this.childNodes,cr=this.childNodeDomViewers;zt()(cr,function(Tr){Tr.detach(),Rn.removeSubComponent(Tr)}),this.endTagDomViewer&&this.endTagDomViewer.detach();var xr=this.getChildNodes();this.childNodes=xr;var kr=[];this.childNodeDomViewers=kr,zt()(xr,function(Tr,Pr){var Ir,zr=rr.indexOf(Tr);(Ir=zr>-1?cr[zr]:new yr(ar,{node:Tr,parent:Rn,rootContainer:pr,rootDomViewer:zn,ignore:Gn})).attach(),kr[Pr]=Ir,Rn.addSubComponent(Ir)}),zt()(cr,function(Tr){Tr.isAttached()||Tr.destroy()}),ur&&(this.endTagDomViewer?this.endTagDomViewer.attach():(this.endTagDomViewer=new yr(ar,{node:ur,parent:this,isEndTag:!0,rootContainer:pr,rootDomViewer:zn,ignore:Gn}),this.addSubComponent(this.endTagDomViewer)))}},{key:"renderHtmlTag",value:function(Rn){var ur=st()(Rn.attributes,function(Gn){var zn=Gn.name,ar=Gn.value,rr=Gn.isLink;return` `.concat(Bn()(zn),"").concat(ar?'="').concat(Bn()(ar),'"'):"","")}).join(""),qn="";Rn.hasTail?qn="".concat(Rn.hasTail?"…":"",'</').concat(Rn.tagName,">"):this.isExpandable()||(qn='</'.concat(Rn.tagName,">"));var pr="";return Rn.hasToggleButton&&(pr='
'),this.c(bn()(yn||(yn=(0,j.Z)([` `,` <`,"",">",` - `])),pr,Rn.tagName,ur,qn))}},{key:"renderTextNode",value:function(Rn){var ur=this.c,qn=Rn.nodeValue,pr=Rn.parentElement,Gn='',zn='';if(pr&&qn.length<1e4){if(pr.tagName==="STYLE")return ur("".concat(Gn).concat(Ln()(qn,"css",wn)).concat(zn));if(pr.tagName==="SCRIPT")return ur("".concat(Gn).concat(Ln()(qn,"js",wn)).concat(zn))}return ur('"'.concat(Gn).concat(Bn()(Fn()(qn,1e4,{separator:" ",ellipsis:"…"}))).concat(zn,'"'))}},{key:"renderHtmlComment",value:function(Rn){return this.c('<!-- '.concat(Bn()(Rn),' -->'))}}]),yr}(jn);function lr(Zn){var vr={tagName:"",attributes:[]};vr.tagName=Zn.tagName.toLocaleLowerCase();var yr=[];return zt()(Zn.attributes,function(Rn){var ur=Rn.name,qn=Rn.value;yr.push({name:ur,value:qn,isLink:fr(Zn,ur)})}),vr.attributes=yr,vr}function fr(Zn,vr){var yr=Zn.tagName;return(yr==="SCRIPT"||yr==="IMAGE"||yr==="VIDEO"||yr==="AUDIO")&&vr==="src"||yr==="LINK"&&vr==="href"}(0,k.Z)(b)!==void 0&&function(Zn,vr){try{Zn.exports=vr,Zn.exports.default=vr}catch{}}(b,Nn)},129:function(b,_,d){d.d(_,{Z:function(){return hn}});var k=d(907),j=d(181);function $(kn){return function(Fn){if(Array.isArray(Fn))return(0,k.Z)(Fn)}(kn)||function(Fn){if(typeof Symbol<"u"&&Fn[Symbol.iterator]!=null||Fn["@@iterator"]!=null)return Array.from(Fn)}(kn)||(0,j.Z)(kn)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var et=d(168),tt=d(5671),rt=d(3144),nt=d(7326),ot=d(1752),at=d(9340),it=d(2963),dt=d(1120),ut=d(1443),ht=d.n(ut),ft=d(1512),st=d.n(ft),ct=d(2461),pt=d.n(ct),lt=d(4331),wt=d.n(lt),yt=d(5610),vt=d.n(yt),St=d(7483),xt=d.n(St),bt=(d(3990),d(6341)),At=d.n(bt),_t=(d(3875),d(6954)),Ct=d.n(_t);d(9585);function Mt(kn){var Fn="luna-".concat(kn,"-");function vn(Bn){return pt()(wt()(Bn).split(/\s+/),function(Pn){return At()(Pn,Fn)?Pn:Pn.replace(/[\w-]+/,function(Un){return"".concat(Fn).concat(Un)})}).join(" ")}return function(Bn){if(/<[^>]*>/g.test(Bn))try{var Pn=xt().parse(Bn);return jt(Pn,function(Un){Un.attrs&&Un.attrs.class&&(Un.attrs.class=vn(Un.attrs.class))}),xt().stringify(Pn)}catch{return vn(Bn)}return vn(Bn)}}function jt(kn,Fn){for(var vn=0,Bn=kn.length;vn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var vn,Bn=(0,dt.Z)(kn);if(Fn){var Pn=(0,dt.Z)(this).constructor;vn=Reflect.construct(Bn,arguments,Pn)}else vn=Bn.apply(this,arguments);return(0,it.Z)(this,vn)}}var jn,Vn=function(kn){(0,at.Z)(vn,kn);var Fn=yn(vn);function vn(Bn,Pn){var Un,pn=Pn.compName,Vt=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,qt=Vt===void 0?"light":Vt;return(0,tt.Z)(this,vn),(Un=Fn.call(this)).subComponents=[],Un.compName=pn,Un.c=Mt(pn),Un.options={},Un.container=Bn,Un.$container=st()(Bn),Un.$container.addClass(["luna-".concat(pn),Un.c("platform-".concat(Rt()))]),Un.on("optionChange",function(wn,Nn,lr){var fr=Un.c;wn==="theme"&&(Un.$container.rmClass(fr("theme-".concat(lr))).addClass(fr("theme-".concat(Nn))),Xt()(Un.subComponents,function(Zn){return Zn.setOption("theme",Nn)}))}),Un.setOption("theme",qt),Un}return(0,rt.Z)(vn,[{key:"destroy",value:function(){this.destroySubComponents();var Bn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(Bn("platform-".concat(Rt()))).rmClass(Bn("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(Bn,Pn){var Un=this,pn=this.options,Vt={};typeof Bn=="string"?Vt[Bn]=Pn:Vt=Bn,Xt()(Vt,function(qt,wn){var Nn=pn[wn];pn[wn]=qt,Un.emit("optionChange",wn,qt,Nn)})}},{key:"getOption",value:function(Bn){return this.options[Bn]}},{key:"addSubComponent",value:function(Bn){Bn.setOption("theme",this.options.theme),this.subComponents.push(Bn)}},{key:"removeSubComponent",value:function(Bn){En()(this.subComponents,function(Pn){return Pn===Bn})}},{key:"destroySubComponents",value:function(){Xt()(this.subComponents,function(Bn){return Bn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(Bn){var Pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};dn()(Bn,Pn),Kt()(this.options,Bn)}},{key:"find",value:function(Bn){return this.$container.find(this.c(Bn))}}]),vn}(ht()),rn=d(1907),xn=d.n(rn),fn=d(8613),Sn=d.n(fn);function bn(kn){var Fn=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var vn,Bn=(0,dt.Z)(kn);if(Fn){var Pn=(0,dt.Z)(this).constructor;vn=Reflect.construct(Bn,arguments,Pn)}else vn=Bn.apply(this,arguments);return(0,it.Z)(this,vn)}}b=d.hmd(b);var hn=function(kn){(0,at.Z)(vn,kn);var Fn=bn(vn);function vn(Bn){var Pn,Un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,tt.Z)(this,vn),(Pn=Fn.call(this,Bn,{compName:"modal"},Un)).hide=function(){Pn.$container.addClass(Pn.c("hidden"))},Pn.render=function(){var pn=(0,nt.Z)(Pn),Vt=pn.options,qt=pn.c,wn=pn.$body;Vt.title?(wn.rmClass(qt("no-title")),Pn.$title.text(Vt.title)):wn.addClass(qt("no-title")),Vt.footer?(wn.rmClass(qt("no-footer")),Pn.$footer.html("").append(Vt.footer)):wn.addClass(qt("no-footer")),Vt.showClose?Pn.$close.show():Pn.$close.hide(),Pn.$body.css("width",Vt.width+"px"),Pn.$content.html("").append(Vt.content)},Pn.hide(),Pn.initOptions(Un,{title:"",content:"",footer:"",showClose:!0,width:Ln()}),Pn.initTpl(),Pn.$title=Pn.find(".title"),Pn.$content=Pn.find(".content"),Pn.$body=Pn.find(".body"),Pn.$footer=Pn.find(".footer"),Pn.$close=Pn.find(".icon-close"),Pn.bindEvent(),Pn}return(0,rt.Z)(vn,[{key:"show",value:function(){this.render(),this.$container.rmClass(this.c("hidden"))}},{key:"destroy",value:function(){(0,ot.Z)((0,dt.Z)(vn.prototype),"destroy",this).call(this),this.$container.rmClass(this.c("hidden"))}},{key:"bindEvent",value:function(){this.$body.on("click",this.c(".icon-close"),this.hide),this.on("optionChange",this.render)}},{key:"initTpl",value:function(){this.$container.html(this.c(xn()(jn||(jn=(0,et.Z)([` + `])),pr,Rn.tagName,ur,qn))}},{key:"renderTextNode",value:function(Rn){var ur=this.c,qn=Rn.nodeValue,pr=Rn.parentElement,Gn='',zn='';if(pr&&qn.length<1e4){if(pr.tagName==="STYLE")return ur("".concat(Gn).concat(Ln()(qn,"css",wn)).concat(zn));if(pr.tagName==="SCRIPT")return ur("".concat(Gn).concat(Ln()(qn,"js",wn)).concat(zn))}return ur('"'.concat(Gn).concat(Bn()(Fn()(qn,1e4,{separator:" ",ellipsis:"…"}))).concat(zn,'"'))}},{key:"renderHtmlComment",value:function(Rn){return this.c('<!-- '.concat(Bn()(Rn),' -->'))}}]),yr}(jn);function lr(Zn){var vr={tagName:"",attributes:[]};vr.tagName=Zn.tagName.toLocaleLowerCase();var yr=[];return zt()(Zn.attributes,function(Rn){var ur=Rn.name,qn=Rn.value;yr.push({name:ur,value:qn,isLink:fr(Zn,ur)})}),vr.attributes=yr,vr}function fr(Zn,vr){var yr=Zn.tagName;return(yr==="SCRIPT"||yr==="IMAGE"||yr==="VIDEO"||yr==="AUDIO")&&vr==="src"||yr==="LINK"&&vr==="href"}(0,k.Z)(b)!==void 0&&function(Zn,vr){try{Zn.exports=vr,Zn.exports.default=vr}catch{}}(b,Pn)},129:function(b,_,d){d.d(_,{Z:function(){return hn}});var k=d(907),j=d(181);function $(kn){return function(Fn){if(Array.isArray(Fn))return(0,k.Z)(Fn)}(kn)||function(Fn){if(typeof Symbol<"u"&&Fn[Symbol.iterator]!=null||Fn["@@iterator"]!=null)return Array.from(Fn)}(kn)||(0,j.Z)(kn)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var et=d(168),tt=d(5671),rt=d(3144),nt=d(7326),ot=d(1752),at=d(9340),it=d(2963),dt=d(1120),ut=d(1443),ht=d.n(ut),ft=d(1512),st=d.n(ft),ct=d(2461),pt=d.n(ct),lt=d(4331),wt=d.n(lt),yt=d(5610),vt=d.n(yt),St=d(7483),xt=d.n(St),bt=(d(3990),d(6341)),At=d.n(bt),_t=(d(3875),d(6954)),Ct=d.n(_t);d(9585);function Mt(kn){var Fn="luna-".concat(kn,"-");function vn(Bn){return pt()(wt()(Bn).split(/\s+/),function(Nn){return At()(Nn,Fn)?Nn:Nn.replace(/[\w-]+/,function(Un){return"".concat(Fn).concat(Un)})}).join(" ")}return function(Bn){if(/<[^>]*>/g.test(Bn))try{var Nn=xt().parse(Bn);return jt(Nn,function(Un){Un.attrs&&Un.attrs.class&&(Un.attrs.class=vn(Un.attrs.class))}),xt().stringify(Nn)}catch{return vn(Bn)}return vn(Bn)}}function jt(kn,Fn){for(var vn=0,Bn=kn.length;vn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var vn,Bn=(0,dt.Z)(kn);if(Fn){var Nn=(0,dt.Z)(this).constructor;vn=Reflect.construct(Bn,arguments,Nn)}else vn=Bn.apply(this,arguments);return(0,it.Z)(this,vn)}}var jn,Vn=function(kn){(0,at.Z)(vn,kn);var Fn=yn(vn);function vn(Bn,Nn){var Un,pn=Nn.compName,Vt=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,qt=Vt===void 0?"light":Vt;return(0,tt.Z)(this,vn),(Un=Fn.call(this)).subComponents=[],Un.compName=pn,Un.c=Mt(pn),Un.options={},Un.container=Bn,Un.$container=st()(Bn),Un.$container.addClass(["luna-".concat(pn),Un.c("platform-".concat(Rt()))]),Un.on("optionChange",function(wn,Pn,lr){var fr=Un.c;wn==="theme"&&(Un.$container.rmClass(fr("theme-".concat(lr))).addClass(fr("theme-".concat(Pn))),Xt()(Un.subComponents,function(Zn){return Zn.setOption("theme",Pn)}))}),Un.setOption("theme",qt),Un}return(0,rt.Z)(vn,[{key:"destroy",value:function(){this.destroySubComponents();var Bn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(Bn("platform-".concat(Rt()))).rmClass(Bn("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(Bn,Nn){var Un=this,pn=this.options,Vt={};typeof Bn=="string"?Vt[Bn]=Nn:Vt=Bn,Xt()(Vt,function(qt,wn){var Pn=pn[wn];pn[wn]=qt,Un.emit("optionChange",wn,qt,Pn)})}},{key:"getOption",value:function(Bn){return this.options[Bn]}},{key:"addSubComponent",value:function(Bn){Bn.setOption("theme",this.options.theme),this.subComponents.push(Bn)}},{key:"removeSubComponent",value:function(Bn){En()(this.subComponents,function(Nn){return Nn===Bn})}},{key:"destroySubComponents",value:function(){Xt()(this.subComponents,function(Bn){return Bn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(Bn){var Nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};dn()(Bn,Nn),Kt()(this.options,Bn)}},{key:"find",value:function(Bn){return this.$container.find(this.c(Bn))}}]),vn}(ht()),rn=d(1907),xn=d.n(rn),fn=d(8613),Sn=d.n(fn);function bn(kn){var Fn=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var vn,Bn=(0,dt.Z)(kn);if(Fn){var Nn=(0,dt.Z)(this).constructor;vn=Reflect.construct(Bn,arguments,Nn)}else vn=Bn.apply(this,arguments);return(0,it.Z)(this,vn)}}b=d.hmd(b);var hn=function(kn){(0,at.Z)(vn,kn);var Fn=bn(vn);function vn(Bn){var Nn,Un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,tt.Z)(this,vn),(Nn=Fn.call(this,Bn,{compName:"modal"},Un)).hide=function(){Nn.$container.addClass(Nn.c("hidden"))},Nn.render=function(){var pn=(0,nt.Z)(Nn),Vt=pn.options,qt=pn.c,wn=pn.$body;Vt.title?(wn.rmClass(qt("no-title")),Nn.$title.text(Vt.title)):wn.addClass(qt("no-title")),Vt.footer?(wn.rmClass(qt("no-footer")),Nn.$footer.html("").append(Vt.footer)):wn.addClass(qt("no-footer")),Vt.showClose?Nn.$close.show():Nn.$close.hide(),Nn.$body.css("width",Vt.width+"px"),Nn.$content.html("").append(Vt.content)},Nn.hide(),Nn.initOptions(Un,{title:"",content:"",footer:"",showClose:!0,width:Ln()}),Nn.initTpl(),Nn.$title=Nn.find(".title"),Nn.$content=Nn.find(".content"),Nn.$body=Nn.find(".body"),Nn.$footer=Nn.find(".footer"),Nn.$close=Nn.find(".icon-close"),Nn.bindEvent(),Nn}return(0,rt.Z)(vn,[{key:"show",value:function(){this.render(),this.$container.rmClass(this.c("hidden"))}},{key:"destroy",value:function(){(0,ot.Z)((0,dt.Z)(vn.prototype),"destroy",this).call(this),this.$container.rmClass(this.c("hidden"))}},{key:"bindEvent",value:function(){this.$body.on("click",this.c(".icon-close"),this.hide),this.on("optionChange",this.render)}},{key:"initTpl",value:function(){this.$container.html(this.c(xn()(jn||(jn=(0,et.Z)([`
- `])))))}}],[{key:"alert",value:function(Bn){var Pn=Tn(),Un=Pn.c;Pn.setOption({title:"",content:Bn,width:Ln(),footer:In({OK:{type:"primary",onclick:function(){Pn.hide()}}},Un)}),Pn.show()}},{key:"confirm",value:function(Bn){return new Promise(function(Pn){var Un=Tn(),pn=Un.c;Un.setOption({title:"",content:Bn,width:Ln(),footer:In({Cancel:{type:"secondary",onclick:function(){Un.hide(),Pn(!1)}},OK:{type:"primary",onclick:function(){Un.hide(),Pn(!0)}}},pn)}),Un.show()})}},{key:"prompt",value:function(){var Bn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return new Promise(function(Un){var pn=Tn(),Vt=pn.c,qt=Sn()("input"+Vt(".input"),{value:Pn});function wn(){pn.hide(),Un(qt.value)}st()(qt).on("keypress",function(lr){(lr=lr.origEvent).key==="Enter"&&wn()}),pn.setOption({title:Bn,content:qt,width:Ln(),footer:In({Cancel:{type:"secondary",onclick:function(){pn.hide(),Un(null)}},OK:{type:"primary",onclick:wn}},Vt)}),pn.show();var Nn=qt.value.length;qt.setSelectionRange(Nn,Nn),qt.focus()})}},{key:"setContainer",value:function(Bn){ln=Bn}}]),vn}(Vn),_n=null,ln=null;function Tn(){return ln||(ln=Sn()("div"),document.body.append(ln)),_n||(_n=new hn(ln,{showClose:!1})),_n}function In(kn,Fn){var vn=pt()(kn,function(Bn,Pn){return Sn()(Fn(".button")+Fn("."+Bn.type),{onclick:Bn.onclick},Pn)});return Sn().apply(void 0,[Fn(".button-group"),{}].concat($(vn)))}function Ln(){return window.innerWidth<500?window.innerWidth-32:500}(function(kn,Fn){try{kn.exports=Fn,kn.exports.default=Fn}catch{}})(b,hn)},8299:function(b,_,d){d.d(_,{q:function(){return Et},Z:function(){return Bt}});var k=d(1002),j=d(5671),$=d(3144),et=d(7326),tt=d(1752),rt=d(9340),nt=d(2963),ot=d(1120),at=d(415),it=d.n(at),dt=d(3990),ut=d.n(dt),ht=d(4696),ft=d.n(ht),st=d(3063),ct=d.n(st),pt=d(5166),lt=d.n(pt),wt=d(6472),yt=d.n(wt),vt=d(3023),St=d.n(vt),xt=d(2533),bt=d.n(xt),At=d(3783),_t=d.n(At),Ct=d(300),Mt=d.n(Ct),jt=d(4321),Rt=d.n(jt),zt=d(3085),Xt=d.n(zt),Jt=d(1512),Kt=d.n(Jt),Zt=d(801),dn=d.n(Zt),An=d(7756),En=d.n(An),yn=d(6768),jn=d.n(yn),Vn=d(1116),rn=d.n(Vn),xn=d(5972),fn=d.n(xn),Sn=d(996),bn=d.n(Sn),hn=d(3367),_n=d.n(hn),ln=d(1214),Tn=d.n(ln),In=d(7658),Ln=d.n(In),kn=d(6329),Fn=d.n(kn),vn=function(){function It(){(0,j.Z)(this,It),this.id=0,this.visited=[]}return(0,$.Z)(It,[{key:"set",value:function(an,nn){var Qt=this.visited,Ht=this.id,gn={id:Ht,val:an};return Fn()(gn,nn),Qt.push(gn),this.id++,Ht}},{key:"get",value:function(an){for(var nn=this.visited,Qt=0,Ht=nn.length;Qt500&&(It=It.slice(0,500)+"..."),"ƒ "+Pn()(function(an){var nn=an.match(wn);return nn?nn[0]:an}(It).replace("function",""))}var wn=/function(.*?)\((.*?)\)/,Nn=d(6930),lr=d.n(Nn),fr=d(5229),Zn=d.n(fr),vr=d(3875),yr=d.n(vr),Rn=d(9433),ur=d.n(Rn),qn=d(1443),pr=d.n(qn),Gn=d(2461),zn=d.n(Gn),ar=d(5610),rr=d.n(ar),cr=d(7483),xr=d.n(cr),kr=d(6341),Tr=d.n(kr),Pr=d(6954),Ir=d.n(Pr);d(9585);function zr(It){var an="luna-".concat(It,"-");function nn(Qt){return zn()(Pn()(Qt).split(/\s+/),function(Ht){return Tr()(Ht,an)?Ht:Ht.replace(/[\w-]+/,function(gn){return"".concat(an).concat(gn)})}).join(" ")}return function(Qt){if(/<[^>]*>/g.test(Qt))try{var Ht=xr().parse(Qt);return Qr(Ht,function(gn){gn.attrs&&gn.attrs.class&&(gn.attrs.class=nn(gn.attrs.class))}),xr().stringify(Ht)}catch{return nn(Qt)}return nn(Qt)}}function Qr(It,an){for(var nn=0,Qt=It.length;nn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var nn,Qt=(0,ot.Z)(It);if(an){var Ht=(0,ot.Z)(this).constructor;nn=Reflect.construct(Qt,arguments,Ht)}else nn=Qt.apply(this,arguments);return(0,nt.Z)(this,nn)}}var Nt=function(It){(0,rt.Z)(nn,It);var an=gt(nn);function nn(Qt,Ht){var gn,Wn=Ht.compName,Kn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Yn=Kn===void 0?"light":Kn;return(0,j.Z)(this,nn),(gn=an.call(this)).subComponents=[],gn.compName=Wn,gn.c=zr(Wn),gn.options={},gn.container=Qt,gn.$container=Kt()(Qt),gn.$container.addClass(["luna-".concat(Wn),gn.c("platform-".concat(Zr()))]),gn.on("optionChange",function(er,Hn,Jn){var or=gn.c;er==="theme"&&(gn.$container.rmClass(or("theme-".concat(Jn))).addClass(or("theme-".concat(Hn))),_t()(gn.subComponents,function(Xn){return Xn.setOption("theme",Hn)}))}),gn.setOption("theme",Yn),gn}return(0,$.Z)(nn,[{key:"destroy",value:function(){this.destroySubComponents();var Qt=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(Qt("platform-".concat(Zr()))).rmClass(Qt("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(Qt,Ht){var gn=this,Wn=this.options,Kn={};typeof Qt=="string"?Kn[Qt]=Ht:Kn=Qt,_t()(Kn,function(Yn,er){var Hn=Wn[er];Wn[er]=Yn,gn.emit("optionChange",er,Yn,Hn)})}},{key:"getOption",value:function(Qt){return this.options[Qt]}},{key:"addSubComponent",value:function(Qt){Qt.setOption("theme",this.options.theme),this.subComponents.push(Qt)}},{key:"removeSubComponent",value:function(Qt){Pt()(this.subComponents,function(Ht){return Ht===Qt})}},{key:"destroySubComponents",value:function(){_t()(this.subComponents,function(Qt){return Qt.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(Qt){var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};kt()(Qt,Ht),Fn()(this.options,Qt)}},{key:"find",value:function(Qt){return this.$container.find(this.c(Qt))}}]),nn}(pr());function Yt(It){var an=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var nn,Qt=(0,ot.Z)(It);if(an){var Ht=(0,ot.Z)(this).constructor;nn=Reflect.construct(Qt,arguments,Ht)}else nn=Qt.apply(this,arguments);return(0,nt.Z)(this,nn)}}var Et=function(It){(0,rt.Z)(nn,It);var an=Yt(nn);function nn(Qt){var Ht;return(0,j.Z)(this,nn),(Ht=an.call(this,Qt,{compName:"object-viewer"})).onItemClick=function(gn){var Wn=(0,et.Z)(Ht),Kn=Wn.map,Yn=Wn.c,er=Kt()(gn.curTarget),Hn=er.data("object-id"),Jn=er.find("span").eq(0);if(!er.data("first-level")&&(Hn&&(er.find("ul").html(Ht.objToHtml(Kn[Hn],!1)),er.rmAttr("data-object-id")),gn.stopImmediatePropagation(),Jn.hasClass(Yn("expanded")))){var or=er.find("ul").eq(0);Jn.hasClass(Yn("collapsed"))?(Jn.rmClass(Yn("collapsed")),or.show()):(Jn.addClass(Yn("collapsed")),or.hide()),Ht.emit("change")}},Ht.bindEvent(),Ht}return(0,$.Z)(nn,[{key:"set",value:function(Qt){jn()(Qt)&&(Qt=JSON.parse(Qt)),this.data={id:Zn()("json"),enumerable:{0:Qt}},this.map={},Lt(this.map,this.data),this.render()}},{key:"destroy",value:function(){(0,tt.Z)((0,ot.Z)(nn.prototype),"destroy",this).call(this),this.$container.off("click","li",this.onItemClick)}},{key:"objToHtml",value:function(Qt,Ht){var gn=this,Wn="";return _t()(["enumerable","unenumerable","symbol"],function(Kn){if(Qt[Kn]){var Yn=bt()(Qt[Kn]);Ln()(Yn);for(var er=0,Hn=Yn.length;er3&&arguments[3]!==void 0&&arguments[3],Kn=this.c,Yn=(0,k.Z)(Ht);if(Ht===null)return"
  • ".concat(mr(Qt),'null
  • ');if(ut()(Ht)||ft()(Ht))return"
  • ".concat(mr(Qt),'').concat(Vt(Ht),"
  • ");if(Ht.type==="RegExp"&&(Yn="regexp"),Ht.type==="Number"&&(Yn="number"),Ht.type==="Number"||Ht.type==="RegExp")return"
  • ".concat(mr(Qt),'').concat(Vt(Ht.value),"
  • ");if(Ht.type==="Undefined"||Ht.type==="Symbol")return"
  • ".concat(mr(Qt),'').concat(ct()(Ht.type),"
  • ");if(Ht==="(...)")return"
  • ".concat(mr(Qt),'').concat(Ht,"
  • ");if(lt()(Ht)){var er=Ht.id,Hn=Ht.reference,Jn=function(hr){var Mn=hr.type,$n=hr.value;if(Mn)return Mn==="Function"?qt($n):Mn==="Array"&&hr.unenumerable?"Array(".concat(hr.unenumerable.length,")"):hr.type}(Ht)||St()(Yn),or=Wn?"":''),Xn="
  • ").concat(or).concat(mr(Qt),'').concat(Wn?"":Jn,'
      ");return Wn&&(Xn+=this.objToHtml(this.map[er])),Xn+'
  • ')}function mr(hr){if(Wn||lt()(Ht)&&Ht.jsonSplitArr)return"";var Mn=Kn("key");return gn==="unenumerable"||gn==="symbol"?Mn=Kn("key-lighter"):gn==="proto"&&(Mn=Kn("key-special")),'').concat(Vt(hr),": ")}return jn()(Ht)&&Ht.length>1e4&&(Ht=En()(Ht,50,{separator:" ",ellipsis:"…"})),"
  • ".concat(mr(Qt),'"').concat(Vt(Ht),'"
  • ')}},{key:"render",value:function(){var Qt=this.map[this.data.id];this.$container.html(this.objToHtml(Qt,!0))}},{key:"bindEvent",value:function(){this.$container.on("click","li",this.onItemClick)}}]),nn}(Nt);function Lt(It,an){var nn=an.id;if(nn||nn===0){if(an.type&&lr()(an.type,"Array")&&an.enumerable){var Qt=function(Yn,er,Hn){var Jn=[],or={};return _t()(Yn.enumerable,function(Xn,mr){var hr=yr()(mr);ur()(hr)?or[mr]=Xn:Jn[hr]=Xn}),Jn.enumerable=or,Jn.type=Hn,Jn.id=er,Yn.unenumerable&&(Jn.unenumerable=Yn.unenumerable),Yn.symbol&&(Jn.symbol=Yn.symbol),Yn.proto&&(Jn.proto=Yn.proto),Jn}(an,nn,an.type);Qt.length>100&&(an=function(Yn){var er=0,Hn={};_t()(bn()(Yn,100),function(or){var Xn={},mr=er;Xn.type="["+mr,Xn.enumerable={},_t()(or,function(Mn){Xn.enumerable[er]=Mn,er+=1});var hr=er-1;Xn.type+=(hr-mr>0?" … "+hr:"")+"]",Xn.id=Zn()("json"),Xn.jsonSplitArr=!0,Hn[er]=Xn});var Jn={};return Jn.enumerable=Hn,Jn.id=Yn.id,Jn.type=Yn.type,Yn.unenumerable&&(Jn.unenumerable=Yn.unenumerable),Yn.symbol&&(Jn.symbol=Yn.symbol),Yn.proto&&(Jn.proto=Yn.proto),Jn}(Qt))}It[nn]=an;var Ht=[];_t()(["enumerable","unenumerable","symbol"],function(Yn){if(an[Yn])for(var er in an[Yn])Ht.push(an[Yn][er])}),an.proto&&Ht.push(an.proto);for(var gn=0,Wn=Ht.length;gn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var nn,Qt=(0,ot.Z)(It);if(an){var Ht=(0,ot.Z)(this).constructor;nn=Reflect.construct(Qt,arguments,Ht)}else nn=Qt.apply(this,arguments);return(0,nt.Z)(this,nn)}}b=d.hmd(b);var Bt=function(It){(0,rt.Z)(nn,It);var an=Ot(nn);function nn(Qt){var Ht,gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,j.Z)(this,nn),(Ht=an.call(this,Qt,{compName:"object-viewer"})).onItemClick=function(Wn){var Kn=(0,et.Z)(Ht),Yn=Kn.map,er=Kn.c,Hn=Kt()(Wn.curTarget),Jn=Hn.data("object-id"),or=Hn.find("span").eq(0);if(!Hn.data("first-level")&&(Jn&&(Hn.find("ul").html(Ht.objToHtml(Yn[Jn],!1)),Hn.rmAttr("data-object-id")),Wn.stopImmediatePropagation(),or.hasClass(er("expanded")))){var Xn=Hn.find("ul").eq(0);or.hasClass(er("collapsed"))?(or.rmClass(er("collapsed")),Xn.show()):(or.addClass(er("collapsed")),Xn.hide()),Ht.emit("change")}},Ht.initOptions(gn,{unenumerable:!1,accessGetter:!1}),Ht.bindEvent(),Ht}return(0,$.Z)(nn,[{key:"set",value:function(Qt){this.data=[Qt],this.visitor=new vn,this.map={},this.render()}},{key:"destroy",value:function(){(0,tt.Z)((0,ot.Z)(nn.prototype),"destroy",this).call(this),this.$container.off("click","li",this.onItemClick)}},{key:"objToHtml",value:function(Qt,Ht){var gn=this,Wn=this.visitor,Kn=Qt,Yn=!1,er=Wn.get(Qt);er&&er.self&&(Kn=er.self);var Hn="",Jn=["enumerable"],or=bt()(Qt),Xn=[],mr=[],hr=[],Mn={};if(this.options.unenumerable&&!Ht&&(Jn.push("unenumerable"),Jn.push("symbol"),Xn=dn()(rn()(Qt,{prototype:!1,unenumerable:!0}),or),mr=fn()(rn()(Qt,{prototype:!1,symbol:!0}),function(ir){return(0,k.Z)(ir)==="symbol"})),yt()(Qt)&&Qt.length>100){Jn.unshift("virtual"),Yn=!0;var $n=0,sr={};_t()(bn()(Qt,100),function(ir){var Ar=Object.create(null),Mr=$n,jr="["+Mr;_t()(ir,function(sn){Ar[$n]=sn,sr[$n]=!0,$n++});var Or=$n-1;Mn[jr+=(Or-Mr>0?" … "+Or:"")+"]"]=Ar}),hr=bt()(Mn),or=fn()(or,function(ir){return!sr[ir]})}_t()(Jn,function(ir){var Ar=[];Ar=ir==="symbol"?mr:ir==="unenumerable"?Xn:ir==="virtual"?hr:or,Yn||Ln()(Ar);for(var Mr=0,jr=Ar.length;Mr4&&arguments[4]!==void 0&&arguments[4],Yn=this.visitor,er=this.c,Hn=(0,k.Z)(gn),Jn=Xt()(gn,!1);if(Wn==="virtual"&&(Jn=Qt),gn===null)return"
  • ".concat(sr(Qt),'null
  • ');if(ut()(gn)||ft()(gn))return"
  • ".concat(sr(Qt),'').concat(Vt(gn),"
  • ");if(Jn==="RegExp"&&(Hn="regexp"),Jn==="Number"&&(Hn="number"),Jn==="Undefined"||Jn==="Symbol")return"
  • ".concat(sr(Qt),'').concat(ct()(Jn),"
  • ");if(gn==="(...)")return"
  • ".concat(sr(Qt),'').concat(gn,"
  • ");if(lt()(gn)){var or,Xn=Yn.get(gn);if(Xn)or=Xn.id;else{var mr={};Wn==="proto"&&(mr.self=Ht),or=Yn.set(gn,mr),this.map[or]=gn}var hr="Object";hr=Hn==="regexp"?'').concat(Vt(gn)):Vt(function(nr,tr){if(tr)return tr==="Function"?qt(Mt()(nr)):tr==="Array"?"Array(".concat(nr.length,")"):tr}(gn,Jn)||St()(Hn));var Mn=Kn?"":''),$n="
  • ").concat(Mn).concat(sr(Qt),'').concat(Kn?"":hr,'
      ");return Kn&&($n+=this.objToHtml(gn)),$n+'
  • ')}function sr(nr){if(Kn||lt()(gn)&&Wn==="virtual")return"";var tr=er("key");return Wn==="unenumerable"||Wn==="symbol"?tr=er("key-lighter"):Wn==="proto"&&(tr=er("key-special")),'').concat(Vt(nr),": ")}return jn()(gn)&&gn.length>1e4&&(gn=En()(gn,50,{separator:" ",ellipsis:"…"})),"
  • ".concat(sr(Qt),'"').concat(Vt(gn),'"
  • ')}},{key:"render",value:function(){this.$container.html(this.objToHtml(this.data,!0))}},{key:"bindEvent",value:function(){this.$container.on("click","li",this.onItemClick)}}]),nn}(Nt);Bt.Static=Et,function(It,an){try{It.exports=an,It.exports.default=an}catch{}}(b,Bt)},8692:function(b,_,d){d.d(_,{Z:function(){return qt}});var k=d(7326),j=d(5671),$=d(3144),et=d(9340),tt=d(2963),rt=d(1120),nt=d(1512),ot=d.n(nt),at=d(8613),it=d.n(at),dt=d(8901),ut=d.n(dt),ht=d(5229),ft=d.n(ht),st=d(5166),ct=d.n(st),pt=d(4193),lt=d.n(pt),wt=d(2461),yt=d.n(wt),vt=d(3875),St=d.n(vt),xt=d(3367),bt=d.n(xt),At=d(4777),_t=d.n(At),Ct=d(9702),Mt=d.n(Ct),jt=d(1754),Rt=d.n(jt),zt=d(6768),Xt=d.n(zt),Jt=d(4331),Kt=d.n(Jt),Zt=d(6341),dn=d.n(Zt),An=d(3063),En=d.n(An),yn=d(6156),jn=d.n(yn),Vn=d(3783),rn=d.n(Vn),xn=d(1443),fn=d.n(xn),Sn=d(5610),bn=d.n(Sn),hn=d(7483),_n=d.n(hn),ln=(d(3990),d(6954)),Tn=d.n(ln);d(9585);function In(qn){var pr="luna-".concat(qn,"-");function Gn(zn){return yt()(Kt()(zn).split(/\s+/),function(ar){return dn()(ar,pr)?ar:ar.replace(/[\w-]+/,function(rr){return"".concat(pr).concat(rr)})}).join(" ")}return function(zn){if(/<[^>]*>/g.test(zn))try{var ar=_n().parse(zn);return Ln(ar,function(rr){rr.attrs&&rr.attrs.class&&(rr.attrs.class=Gn(rr.attrs.class))}),_n().stringify(ar)}catch{return Gn(zn)}return Gn(zn)}}function Ln(qn,pr){for(var Gn=0,zn=qn.length;Gn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Gn,zn=(0,rt.Z)(qn);if(pr){var ar=(0,rt.Z)(this).constructor;Gn=Reflect.construct(zn,arguments,ar)}else Gn=zn.apply(this,arguments);return(0,tt.Z)(this,Gn)}}var pn=function(qn){(0,et.Z)(Gn,qn);var pr=Un(Gn);function Gn(zn,ar){var rr,cr=ar.compName,xr=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,kr=xr===void 0?"light":xr;return(0,j.Z)(this,Gn),(rr=pr.call(this)).subComponents=[],rr.compName=cr,rr.c=In(cr),rr.options={},rr.container=zn,rr.$container=ot()(zn),rr.$container.addClass(["luna-".concat(cr),rr.c("platform-".concat(kn()))]),rr.on("optionChange",function(Tr,Pr,Ir){var zr=rr.c;Tr==="theme"&&(rr.$container.rmClass(zr("theme-".concat(Ir))).addClass(zr("theme-".concat(Pr))),rn()(rr.subComponents,function(Qr){return Qr.setOption("theme",Pr)}))}),rr.setOption("theme",kr),rr}return(0,$.Z)(Gn,[{key:"destroy",value:function(){this.destroySubComponents();var zn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(zn("platform-".concat(kn()))).rmClass(zn("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(zn,ar){var rr=this,cr=this.options,xr={};typeof zn=="string"?xr[zn]=ar:xr=zn,rn()(xr,function(kr,Tr){var Pr=cr[Tr];cr[Tr]=kr,rr.emit("optionChange",Tr,kr,Pr)})}},{key:"getOption",value:function(zn){return this.options[zn]}},{key:"addSubComponent",value:function(zn){zn.setOption("theme",this.options.theme),this.subComponents.push(zn)}},{key:"removeSubComponent",value:function(zn){Pn()(this.subComponents,function(ar){return ar===zn})}},{key:"destroySubComponents",value:function(){rn()(this.subComponents,function(zn){return zn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(zn){var ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};lt()(zn,ar),vn()(this.options,zn)}},{key:"find",value:function(zn){return this.$container.find(this.c(zn))}}]),Gn}(fn());function Vt(qn){var pr=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Gn,zn=(0,rt.Z)(qn);if(pr){var ar=(0,rt.Z)(this).constructor;Gn=Reflect.construct(zn,arguments,ar)}else Gn=zn.apply(this,arguments);return(0,tt.Z)(this,Gn)}}b=d.hmd(b);var qt=function(qn){(0,et.Z)(Gn,qn);var pr=Vt(Gn);function Gn(zn){var ar,rr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,j.Z)(this,Gn),(ar=pr.call(this,zn,{compName:"setting"},rr)).items=[],ar.selectedItem=null,ar.initOptions(rr,{separatorCollapse:!0,filter:""}),ar.bindEvent(),ar}return(0,$.Z)(Gn,[{key:"appendTitle",value:function(zn){var ar=new Nn(this,zn);return this.append(ar),ar}},{key:"appendSeparator",value:function(){var zn=this.items,ar=this.options.separatorCollapse,rr=Mt()(zn);if(ar&&rr instanceof lr)return rr;var cr=new lr(this);return this.append(cr),cr}},{key:"appendNumber",value:function(zn,ar,rr,cr,xr){ct()(cr)&&(xr=cr,cr="");var kr=new Zn(this,zn,ar,rr,cr,xr);return this.append(kr),kr}},{key:"appendButton",value:function(zn,ar,rr){_t()(ar)&&(rr=ar,ar="");var cr=new ur(this,zn,ar,rr);return this.append(cr),cr}},{key:"appendInput",value:function(zn,ar,rr){var cr=new fr(this,zn,ar,rr,arguments.length>3&&arguments[3]!==void 0?arguments[3]:"");return this.append(cr),cr}},{key:"appendCheckbox",value:function(zn,ar,rr,cr){cr||(cr=rr,rr="");var xr=new yr(this,zn,ar,rr,cr);return this.append(xr),xr}},{key:"appendSelect",value:function(zn,ar,rr,cr,xr){ct()(cr)&&(xr=cr,cr="");var kr=new Rn(this,zn,ar,rr,cr,xr);return this.append(kr),kr}},{key:"remove",value:function(zn){var ar=this.items,rr=ar.indexOf(zn);rr>-1&&(zn.detach(),ar.splice(rr,1),zn===this.selectedItem&&this.selectItem(null))}},{key:"clear",value:function(){rn()(this.items,function(zn){return zn.detach()}),this.items=[],this.selectItem(null)}},{key:"selectItem",value:function(zn){var ar;this.selectedItem&&(this.selectedItem.deselect(),this.selectedItem=null),jn()(zn)||(this.selectedItem=zn,(ar=this.selectedItem)===null||ar===void 0||ar.select())}},{key:"renderSettings",value:function(){var zn=this,ar=this.items;rn()(ar,function(rr){return rr.detach()}),rn()(ar,function(rr){zn.filterItem(rr)&&zn.$container.append(rr.container)})}},{key:"bindEvent",value:function(){var zn=this,ar=this.c;this.on("optionChange",function(cr){cr==="filter"&&zn.renderSettings()});var rr=this;this.$container.on("click",ar(".item"),function(){rr.selectItem(this.settingItem)})}},{key:"filterItem",value:function(zn){var ar=this.options.filter;if(ar){if(_t()(ar))return ar(zn);if(Rt()(ar))return ar.test(zn.text());if(Xt()(ar)&&(ar=Kt()(ar)))return dn()(En()(zn.text()),En()(ar))}return!0}},{key:"append",value:function(zn){this.items.push(zn),this.filterItem(zn)&&this.$container.append(zn.container)}}]),Gn}(pn),wn=function(){function qn(pr,Gn,zn,ar){(0,j.Z)(this,qn),this.container=it()("div",{tabindex:"0"}),this.setting=pr,this.container.settingItem=this,this.$container=ot()(this.container),this.$container.addClass(pr.c("item")).addClass(pr.c("item-".concat(ar))),this.key=Gn,this.value=zn}return(0,$.Z)(qn,[{key:"select",value:function(){this.$container.addClass(this.setting.c("selected"))}},{key:"deselect",value:function(){this.$container.rmClass(this.setting.c("selected"))}},{key:"detach",value:function(){this.$container.remove()}},{key:"text",value:function(){return this.$container.text()}},{key:"onChange",value:function(pr){this.setting.emit("change",this.key,pr,this.value),this.value=pr}}]),qn}(),Nn=function(qn){(0,et.Z)(Gn,qn);var pr=Vt(Gn);function Gn(zn,ar){var rr;return(0,j.Z)(this,Gn),(rr=pr.call(this,zn,"","","title")).$container.text(ar),rr}return(0,$.Z)(Gn)}(wn),lr=function(qn){(0,et.Z)(Gn,qn);var pr=Vt(Gn);function Gn(zn){return(0,j.Z)(this,Gn),pr.call(this,zn,"","","separator")}return(0,$.Z)(Gn)}(wn),fr=function(qn){(0,et.Z)(Gn,qn);var pr=Vt(Gn);function Gn(zn,ar,rr,cr,xr){var kr;(0,j.Z)(this,Gn),kr=pr.call(this,zn,ar,rr,"input");var Tr=zn.c;kr.$container.html('
    ').concat(ut()(cr),`
    + `])))))}}],[{key:"alert",value:function(Bn){var Nn=Tn(),Un=Nn.c;Nn.setOption({title:"",content:Bn,width:Ln(),footer:In({OK:{type:"primary",onclick:function(){Nn.hide()}}},Un)}),Nn.show()}},{key:"confirm",value:function(Bn){return new Promise(function(Nn){var Un=Tn(),pn=Un.c;Un.setOption({title:"",content:Bn,width:Ln(),footer:In({Cancel:{type:"secondary",onclick:function(){Un.hide(),Nn(!1)}},OK:{type:"primary",onclick:function(){Un.hide(),Nn(!0)}}},pn)}),Un.show()})}},{key:"prompt",value:function(){var Bn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return new Promise(function(Un){var pn=Tn(),Vt=pn.c,qt=Sn()("input"+Vt(".input"),{value:Nn});function wn(){pn.hide(),Un(qt.value)}st()(qt).on("keypress",function(lr){(lr=lr.origEvent).key==="Enter"&&wn()}),pn.setOption({title:Bn,content:qt,width:Ln(),footer:In({Cancel:{type:"secondary",onclick:function(){pn.hide(),Un(null)}},OK:{type:"primary",onclick:wn}},Vt)}),pn.show();var Pn=qt.value.length;qt.setSelectionRange(Pn,Pn),qt.focus()})}},{key:"setContainer",value:function(Bn){ln=Bn}}]),vn}(Vn),_n=null,ln=null;function Tn(){return ln||(ln=Sn()("div"),document.body.append(ln)),_n||(_n=new hn(ln,{showClose:!1})),_n}function In(kn,Fn){var vn=pt()(kn,function(Bn,Nn){return Sn()(Fn(".button")+Fn("."+Bn.type),{onclick:Bn.onclick},Nn)});return Sn().apply(void 0,[Fn(".button-group"),{}].concat($(vn)))}function Ln(){return window.innerWidth<500?window.innerWidth-32:500}(function(kn,Fn){try{kn.exports=Fn,kn.exports.default=Fn}catch{}})(b,hn)},8299:function(b,_,d){d.d(_,{q:function(){return Et},Z:function(){return Bt}});var k=d(1002),j=d(5671),$=d(3144),et=d(7326),tt=d(1752),rt=d(9340),nt=d(2963),ot=d(1120),at=d(415),it=d.n(at),dt=d(3990),ut=d.n(dt),ht=d(4696),ft=d.n(ht),st=d(3063),ct=d.n(st),pt=d(5166),lt=d.n(pt),wt=d(6472),yt=d.n(wt),vt=d(3023),St=d.n(vt),xt=d(2533),bt=d.n(xt),At=d(3783),_t=d.n(At),Ct=d(300),Mt=d.n(Ct),jt=d(4321),Rt=d.n(jt),zt=d(3085),Xt=d.n(zt),Jt=d(1512),Kt=d.n(Jt),Zt=d(801),dn=d.n(Zt),An=d(7756),En=d.n(An),yn=d(6768),jn=d.n(yn),Vn=d(1116),rn=d.n(Vn),xn=d(5972),fn=d.n(xn),Sn=d(996),bn=d.n(Sn),hn=d(3367),_n=d.n(hn),ln=d(1214),Tn=d.n(ln),In=d(7658),Ln=d.n(In),kn=d(6329),Fn=d.n(kn),vn=function(){function It(){(0,j.Z)(this,It),this.id=0,this.visited=[]}return(0,$.Z)(It,[{key:"set",value:function(an,nn){var Qt=this.visited,Ht=this.id,gn={id:Ht,val:an};return Fn()(gn,nn),Qt.push(gn),this.id++,Ht}},{key:"get",value:function(an){for(var nn=this.visited,Qt=0,Ht=nn.length;Qt500&&(It=It.slice(0,500)+"..."),"ƒ "+Nn()(function(an){var nn=an.match(wn);return nn?nn[0]:an}(It).replace("function",""))}var wn=/function(.*?)\((.*?)\)/,Pn=d(6930),lr=d.n(Pn),fr=d(5229),Zn=d.n(fr),vr=d(3875),yr=d.n(vr),Rn=d(9433),ur=d.n(Rn),qn=d(1443),pr=d.n(qn),Gn=d(2461),zn=d.n(Gn),ar=d(5610),rr=d.n(ar),cr=d(7483),xr=d.n(cr),kr=d(6341),Tr=d.n(kr),Pr=d(6954),Ir=d.n(Pr);d(9585);function zr(It){var an="luna-".concat(It,"-");function nn(Qt){return zn()(Nn()(Qt).split(/\s+/),function(Ht){return Tr()(Ht,an)?Ht:Ht.replace(/[\w-]+/,function(gn){return"".concat(an).concat(gn)})}).join(" ")}return function(Qt){if(/<[^>]*>/g.test(Qt))try{var Ht=xr().parse(Qt);return Qr(Ht,function(gn){gn.attrs&&gn.attrs.class&&(gn.attrs.class=nn(gn.attrs.class))}),xr().stringify(Ht)}catch{return nn(Qt)}return nn(Qt)}}function Qr(It,an){for(var nn=0,Qt=It.length;nn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var nn,Qt=(0,ot.Z)(It);if(an){var Ht=(0,ot.Z)(this).constructor;nn=Reflect.construct(Qt,arguments,Ht)}else nn=Qt.apply(this,arguments);return(0,nt.Z)(this,nn)}}var Nt=function(It){(0,rt.Z)(nn,It);var an=gt(nn);function nn(Qt,Ht){var gn,Wn=Ht.compName,Kn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Yn=Kn===void 0?"light":Kn;return(0,j.Z)(this,nn),(gn=an.call(this)).subComponents=[],gn.compName=Wn,gn.c=zr(Wn),gn.options={},gn.container=Qt,gn.$container=Kt()(Qt),gn.$container.addClass(["luna-".concat(Wn),gn.c("platform-".concat(Zr()))]),gn.on("optionChange",function(er,Hn,Jn){var or=gn.c;er==="theme"&&(gn.$container.rmClass(or("theme-".concat(Jn))).addClass(or("theme-".concat(Hn))),_t()(gn.subComponents,function(Xn){return Xn.setOption("theme",Hn)}))}),gn.setOption("theme",Yn),gn}return(0,$.Z)(nn,[{key:"destroy",value:function(){this.destroySubComponents();var Qt=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(Qt("platform-".concat(Zr()))).rmClass(Qt("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(Qt,Ht){var gn=this,Wn=this.options,Kn={};typeof Qt=="string"?Kn[Qt]=Ht:Kn=Qt,_t()(Kn,function(Yn,er){var Hn=Wn[er];Wn[er]=Yn,gn.emit("optionChange",er,Yn,Hn)})}},{key:"getOption",value:function(Qt){return this.options[Qt]}},{key:"addSubComponent",value:function(Qt){Qt.setOption("theme",this.options.theme),this.subComponents.push(Qt)}},{key:"removeSubComponent",value:function(Qt){Pt()(this.subComponents,function(Ht){return Ht===Qt})}},{key:"destroySubComponents",value:function(){_t()(this.subComponents,function(Qt){return Qt.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(Qt){var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};kt()(Qt,Ht),Fn()(this.options,Qt)}},{key:"find",value:function(Qt){return this.$container.find(this.c(Qt))}}]),nn}(pr());function Yt(It){var an=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var nn,Qt=(0,ot.Z)(It);if(an){var Ht=(0,ot.Z)(this).constructor;nn=Reflect.construct(Qt,arguments,Ht)}else nn=Qt.apply(this,arguments);return(0,nt.Z)(this,nn)}}var Et=function(It){(0,rt.Z)(nn,It);var an=Yt(nn);function nn(Qt){var Ht;return(0,j.Z)(this,nn),(Ht=an.call(this,Qt,{compName:"object-viewer"})).onItemClick=function(gn){var Wn=(0,et.Z)(Ht),Kn=Wn.map,Yn=Wn.c,er=Kt()(gn.curTarget),Hn=er.data("object-id"),Jn=er.find("span").eq(0);if(!er.data("first-level")&&(Hn&&(er.find("ul").html(Ht.objToHtml(Kn[Hn],!1)),er.rmAttr("data-object-id")),gn.stopImmediatePropagation(),Jn.hasClass(Yn("expanded")))){var or=er.find("ul").eq(0);Jn.hasClass(Yn("collapsed"))?(Jn.rmClass(Yn("collapsed")),or.show()):(Jn.addClass(Yn("collapsed")),or.hide()),Ht.emit("change")}},Ht.bindEvent(),Ht}return(0,$.Z)(nn,[{key:"set",value:function(Qt){jn()(Qt)&&(Qt=JSON.parse(Qt)),this.data={id:Zn()("json"),enumerable:{0:Qt}},this.map={},Lt(this.map,this.data),this.render()}},{key:"destroy",value:function(){(0,tt.Z)((0,ot.Z)(nn.prototype),"destroy",this).call(this),this.$container.off("click","li",this.onItemClick)}},{key:"objToHtml",value:function(Qt,Ht){var gn=this,Wn="";return _t()(["enumerable","unenumerable","symbol"],function(Kn){if(Qt[Kn]){var Yn=bt()(Qt[Kn]);Ln()(Yn);for(var er=0,Hn=Yn.length;er3&&arguments[3]!==void 0&&arguments[3],Kn=this.c,Yn=(0,k.Z)(Ht);if(Ht===null)return"
  • ".concat(mr(Qt),'null
  • ');if(ut()(Ht)||ft()(Ht))return"
  • ".concat(mr(Qt),'').concat(Vt(Ht),"
  • ");if(Ht.type==="RegExp"&&(Yn="regexp"),Ht.type==="Number"&&(Yn="number"),Ht.type==="Number"||Ht.type==="RegExp")return"
  • ".concat(mr(Qt),'').concat(Vt(Ht.value),"
  • ");if(Ht.type==="Undefined"||Ht.type==="Symbol")return"
  • ".concat(mr(Qt),'').concat(ct()(Ht.type),"
  • ");if(Ht==="(...)")return"
  • ".concat(mr(Qt),'').concat(Ht,"
  • ");if(lt()(Ht)){var er=Ht.id,Hn=Ht.reference,Jn=function(hr){var Mn=hr.type,$n=hr.value;if(Mn)return Mn==="Function"?qt($n):Mn==="Array"&&hr.unenumerable?"Array(".concat(hr.unenumerable.length,")"):hr.type}(Ht)||St()(Yn),or=Wn?"":''),Xn="
  • ").concat(or).concat(mr(Qt),'').concat(Wn?"":Jn,'
      ");return Wn&&(Xn+=this.objToHtml(this.map[er])),Xn+'
  • ')}function mr(hr){if(Wn||lt()(Ht)&&Ht.jsonSplitArr)return"";var Mn=Kn("key");return gn==="unenumerable"||gn==="symbol"?Mn=Kn("key-lighter"):gn==="proto"&&(Mn=Kn("key-special")),'').concat(Vt(hr),": ")}return jn()(Ht)&&Ht.length>1e4&&(Ht=En()(Ht,50,{separator:" ",ellipsis:"…"})),"
  • ".concat(mr(Qt),'"').concat(Vt(Ht),'"
  • ')}},{key:"render",value:function(){var Qt=this.map[this.data.id];this.$container.html(this.objToHtml(Qt,!0))}},{key:"bindEvent",value:function(){this.$container.on("click","li",this.onItemClick)}}]),nn}(Nt);function Lt(It,an){var nn=an.id;if(nn||nn===0){if(an.type&&lr()(an.type,"Array")&&an.enumerable){var Qt=function(Yn,er,Hn){var Jn=[],or={};return _t()(Yn.enumerable,function(Xn,mr){var hr=yr()(mr);ur()(hr)?or[mr]=Xn:Jn[hr]=Xn}),Jn.enumerable=or,Jn.type=Hn,Jn.id=er,Yn.unenumerable&&(Jn.unenumerable=Yn.unenumerable),Yn.symbol&&(Jn.symbol=Yn.symbol),Yn.proto&&(Jn.proto=Yn.proto),Jn}(an,nn,an.type);Qt.length>100&&(an=function(Yn){var er=0,Hn={};_t()(bn()(Yn,100),function(or){var Xn={},mr=er;Xn.type="["+mr,Xn.enumerable={},_t()(or,function(Mn){Xn.enumerable[er]=Mn,er+=1});var hr=er-1;Xn.type+=(hr-mr>0?" … "+hr:"")+"]",Xn.id=Zn()("json"),Xn.jsonSplitArr=!0,Hn[er]=Xn});var Jn={};return Jn.enumerable=Hn,Jn.id=Yn.id,Jn.type=Yn.type,Yn.unenumerable&&(Jn.unenumerable=Yn.unenumerable),Yn.symbol&&(Jn.symbol=Yn.symbol),Yn.proto&&(Jn.proto=Yn.proto),Jn}(Qt))}It[nn]=an;var Ht=[];_t()(["enumerable","unenumerable","symbol"],function(Yn){if(an[Yn])for(var er in an[Yn])Ht.push(an[Yn][er])}),an.proto&&Ht.push(an.proto);for(var gn=0,Wn=Ht.length;gn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var nn,Qt=(0,ot.Z)(It);if(an){var Ht=(0,ot.Z)(this).constructor;nn=Reflect.construct(Qt,arguments,Ht)}else nn=Qt.apply(this,arguments);return(0,nt.Z)(this,nn)}}b=d.hmd(b);var Bt=function(It){(0,rt.Z)(nn,It);var an=Ot(nn);function nn(Qt){var Ht,gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,j.Z)(this,nn),(Ht=an.call(this,Qt,{compName:"object-viewer"})).onItemClick=function(Wn){var Kn=(0,et.Z)(Ht),Yn=Kn.map,er=Kn.c,Hn=Kt()(Wn.curTarget),Jn=Hn.data("object-id"),or=Hn.find("span").eq(0);if(!Hn.data("first-level")&&(Jn&&(Hn.find("ul").html(Ht.objToHtml(Yn[Jn],!1)),Hn.rmAttr("data-object-id")),Wn.stopImmediatePropagation(),or.hasClass(er("expanded")))){var Xn=Hn.find("ul").eq(0);or.hasClass(er("collapsed"))?(or.rmClass(er("collapsed")),Xn.show()):(or.addClass(er("collapsed")),Xn.hide()),Ht.emit("change")}},Ht.initOptions(gn,{unenumerable:!1,accessGetter:!1}),Ht.bindEvent(),Ht}return(0,$.Z)(nn,[{key:"set",value:function(Qt){this.data=[Qt],this.visitor=new vn,this.map={},this.render()}},{key:"destroy",value:function(){(0,tt.Z)((0,ot.Z)(nn.prototype),"destroy",this).call(this),this.$container.off("click","li",this.onItemClick)}},{key:"objToHtml",value:function(Qt,Ht){var gn=this,Wn=this.visitor,Kn=Qt,Yn=!1,er=Wn.get(Qt);er&&er.self&&(Kn=er.self);var Hn="",Jn=["enumerable"],or=bt()(Qt),Xn=[],mr=[],hr=[],Mn={};if(this.options.unenumerable&&!Ht&&(Jn.push("unenumerable"),Jn.push("symbol"),Xn=dn()(rn()(Qt,{prototype:!1,unenumerable:!0}),or),mr=fn()(rn()(Qt,{prototype:!1,symbol:!0}),function(ir){return(0,k.Z)(ir)==="symbol"})),yt()(Qt)&&Qt.length>100){Jn.unshift("virtual"),Yn=!0;var $n=0,sr={};_t()(bn()(Qt,100),function(ir){var Ar=Object.create(null),Mr=$n,jr="["+Mr;_t()(ir,function(sn){Ar[$n]=sn,sr[$n]=!0,$n++});var Or=$n-1;Mn[jr+=(Or-Mr>0?" … "+Or:"")+"]"]=Ar}),hr=bt()(Mn),or=fn()(or,function(ir){return!sr[ir]})}_t()(Jn,function(ir){var Ar=[];Ar=ir==="symbol"?mr:ir==="unenumerable"?Xn:ir==="virtual"?hr:or,Yn||Ln()(Ar);for(var Mr=0,jr=Ar.length;Mr4&&arguments[4]!==void 0&&arguments[4],Yn=this.visitor,er=this.c,Hn=(0,k.Z)(gn),Jn=Xt()(gn,!1);if(Wn==="virtual"&&(Jn=Qt),gn===null)return"
  • ".concat(sr(Qt),'null
  • ');if(ut()(gn)||ft()(gn))return"
  • ".concat(sr(Qt),'').concat(Vt(gn),"
  • ");if(Jn==="RegExp"&&(Hn="regexp"),Jn==="Number"&&(Hn="number"),Jn==="Undefined"||Jn==="Symbol")return"
  • ".concat(sr(Qt),'').concat(ct()(Jn),"
  • ");if(gn==="(...)")return"
  • ".concat(sr(Qt),'').concat(gn,"
  • ");if(lt()(gn)){var or,Xn=Yn.get(gn);if(Xn)or=Xn.id;else{var mr={};Wn==="proto"&&(mr.self=Ht),or=Yn.set(gn,mr),this.map[or]=gn}var hr="Object";hr=Hn==="regexp"?'').concat(Vt(gn)):Vt(function(nr,tr){if(tr)return tr==="Function"?qt(Mt()(nr)):tr==="Array"?"Array(".concat(nr.length,")"):tr}(gn,Jn)||St()(Hn));var Mn=Kn?"":''),$n="
  • ").concat(Mn).concat(sr(Qt),'').concat(Kn?"":hr,'
      ");return Kn&&($n+=this.objToHtml(gn)),$n+'
  • ')}function sr(nr){if(Kn||lt()(gn)&&Wn==="virtual")return"";var tr=er("key");return Wn==="unenumerable"||Wn==="symbol"?tr=er("key-lighter"):Wn==="proto"&&(tr=er("key-special")),'').concat(Vt(nr),": ")}return jn()(gn)&&gn.length>1e4&&(gn=En()(gn,50,{separator:" ",ellipsis:"…"})),"
  • ".concat(sr(Qt),'"').concat(Vt(gn),'"
  • ')}},{key:"render",value:function(){this.$container.html(this.objToHtml(this.data,!0))}},{key:"bindEvent",value:function(){this.$container.on("click","li",this.onItemClick)}}]),nn}(Nt);Bt.Static=Et,function(It,an){try{It.exports=an,It.exports.default=an}catch{}}(b,Bt)},8692:function(b,_,d){d.d(_,{Z:function(){return qt}});var k=d(7326),j=d(5671),$=d(3144),et=d(9340),tt=d(2963),rt=d(1120),nt=d(1512),ot=d.n(nt),at=d(8613),it=d.n(at),dt=d(8901),ut=d.n(dt),ht=d(5229),ft=d.n(ht),st=d(5166),ct=d.n(st),pt=d(4193),lt=d.n(pt),wt=d(2461),yt=d.n(wt),vt=d(3875),St=d.n(vt),xt=d(3367),bt=d.n(xt),At=d(4777),_t=d.n(At),Ct=d(9702),Mt=d.n(Ct),jt=d(1754),Rt=d.n(jt),zt=d(6768),Xt=d.n(zt),Jt=d(4331),Kt=d.n(Jt),Zt=d(6341),dn=d.n(Zt),An=d(3063),En=d.n(An),yn=d(6156),jn=d.n(yn),Vn=d(3783),rn=d.n(Vn),xn=d(1443),fn=d.n(xn),Sn=d(5610),bn=d.n(Sn),hn=d(7483),_n=d.n(hn),ln=(d(3990),d(6954)),Tn=d.n(ln);d(9585);function In(qn){var pr="luna-".concat(qn,"-");function Gn(zn){return yt()(Kt()(zn).split(/\s+/),function(ar){return dn()(ar,pr)?ar:ar.replace(/[\w-]+/,function(rr){return"".concat(pr).concat(rr)})}).join(" ")}return function(zn){if(/<[^>]*>/g.test(zn))try{var ar=_n().parse(zn);return Ln(ar,function(rr){rr.attrs&&rr.attrs.class&&(rr.attrs.class=Gn(rr.attrs.class))}),_n().stringify(ar)}catch{return Gn(zn)}return Gn(zn)}}function Ln(qn,pr){for(var Gn=0,zn=qn.length;Gn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Gn,zn=(0,rt.Z)(qn);if(pr){var ar=(0,rt.Z)(this).constructor;Gn=Reflect.construct(zn,arguments,ar)}else Gn=zn.apply(this,arguments);return(0,tt.Z)(this,Gn)}}var pn=function(qn){(0,et.Z)(Gn,qn);var pr=Un(Gn);function Gn(zn,ar){var rr,cr=ar.compName,xr=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,kr=xr===void 0?"light":xr;return(0,j.Z)(this,Gn),(rr=pr.call(this)).subComponents=[],rr.compName=cr,rr.c=In(cr),rr.options={},rr.container=zn,rr.$container=ot()(zn),rr.$container.addClass(["luna-".concat(cr),rr.c("platform-".concat(kn()))]),rr.on("optionChange",function(Tr,Pr,Ir){var zr=rr.c;Tr==="theme"&&(rr.$container.rmClass(zr("theme-".concat(Ir))).addClass(zr("theme-".concat(Pr))),rn()(rr.subComponents,function(Qr){return Qr.setOption("theme",Pr)}))}),rr.setOption("theme",kr),rr}return(0,$.Z)(Gn,[{key:"destroy",value:function(){this.destroySubComponents();var zn=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(zn("platform-".concat(kn()))).rmClass(zn("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(zn,ar){var rr=this,cr=this.options,xr={};typeof zn=="string"?xr[zn]=ar:xr=zn,rn()(xr,function(kr,Tr){var Pr=cr[Tr];cr[Tr]=kr,rr.emit("optionChange",Tr,kr,Pr)})}},{key:"getOption",value:function(zn){return this.options[zn]}},{key:"addSubComponent",value:function(zn){zn.setOption("theme",this.options.theme),this.subComponents.push(zn)}},{key:"removeSubComponent",value:function(zn){Nn()(this.subComponents,function(ar){return ar===zn})}},{key:"destroySubComponents",value:function(){rn()(this.subComponents,function(zn){return zn.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(zn){var ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};lt()(zn,ar),vn()(this.options,zn)}},{key:"find",value:function(zn){return this.$container.find(this.c(zn))}}]),Gn}(fn());function Vt(qn){var pr=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Gn,zn=(0,rt.Z)(qn);if(pr){var ar=(0,rt.Z)(this).constructor;Gn=Reflect.construct(zn,arguments,ar)}else Gn=zn.apply(this,arguments);return(0,tt.Z)(this,Gn)}}b=d.hmd(b);var qt=function(qn){(0,et.Z)(Gn,qn);var pr=Vt(Gn);function Gn(zn){var ar,rr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,j.Z)(this,Gn),(ar=pr.call(this,zn,{compName:"setting"},rr)).items=[],ar.selectedItem=null,ar.initOptions(rr,{separatorCollapse:!0,filter:""}),ar.bindEvent(),ar}return(0,$.Z)(Gn,[{key:"appendTitle",value:function(zn){var ar=new Pn(this,zn);return this.append(ar),ar}},{key:"appendSeparator",value:function(){var zn=this.items,ar=this.options.separatorCollapse,rr=Mt()(zn);if(ar&&rr instanceof lr)return rr;var cr=new lr(this);return this.append(cr),cr}},{key:"appendNumber",value:function(zn,ar,rr,cr,xr){ct()(cr)&&(xr=cr,cr="");var kr=new Zn(this,zn,ar,rr,cr,xr);return this.append(kr),kr}},{key:"appendButton",value:function(zn,ar,rr){_t()(ar)&&(rr=ar,ar="");var cr=new ur(this,zn,ar,rr);return this.append(cr),cr}},{key:"appendInput",value:function(zn,ar,rr){var cr=new fr(this,zn,ar,rr,arguments.length>3&&arguments[3]!==void 0?arguments[3]:"");return this.append(cr),cr}},{key:"appendCheckbox",value:function(zn,ar,rr,cr){cr||(cr=rr,rr="");var xr=new yr(this,zn,ar,rr,cr);return this.append(xr),xr}},{key:"appendSelect",value:function(zn,ar,rr,cr,xr){ct()(cr)&&(xr=cr,cr="");var kr=new Rn(this,zn,ar,rr,cr,xr);return this.append(kr),kr}},{key:"remove",value:function(zn){var ar=this.items,rr=ar.indexOf(zn);rr>-1&&(zn.detach(),ar.splice(rr,1),zn===this.selectedItem&&this.selectItem(null))}},{key:"clear",value:function(){rn()(this.items,function(zn){return zn.detach()}),this.items=[],this.selectItem(null)}},{key:"selectItem",value:function(zn){var ar;this.selectedItem&&(this.selectedItem.deselect(),this.selectedItem=null),jn()(zn)||(this.selectedItem=zn,(ar=this.selectedItem)===null||ar===void 0||ar.select())}},{key:"renderSettings",value:function(){var zn=this,ar=this.items;rn()(ar,function(rr){return rr.detach()}),rn()(ar,function(rr){zn.filterItem(rr)&&zn.$container.append(rr.container)})}},{key:"bindEvent",value:function(){var zn=this,ar=this.c;this.on("optionChange",function(cr){cr==="filter"&&zn.renderSettings()});var rr=this;this.$container.on("click",ar(".item"),function(){rr.selectItem(this.settingItem)})}},{key:"filterItem",value:function(zn){var ar=this.options.filter;if(ar){if(_t()(ar))return ar(zn);if(Rt()(ar))return ar.test(zn.text());if(Xt()(ar)&&(ar=Kt()(ar)))return dn()(En()(zn.text()),En()(ar))}return!0}},{key:"append",value:function(zn){this.items.push(zn),this.filterItem(zn)&&this.$container.append(zn.container)}}]),Gn}(pn),wn=function(){function qn(pr,Gn,zn,ar){(0,j.Z)(this,qn),this.container=it()("div",{tabindex:"0"}),this.setting=pr,this.container.settingItem=this,this.$container=ot()(this.container),this.$container.addClass(pr.c("item")).addClass(pr.c("item-".concat(ar))),this.key=Gn,this.value=zn}return(0,$.Z)(qn,[{key:"select",value:function(){this.$container.addClass(this.setting.c("selected"))}},{key:"deselect",value:function(){this.$container.rmClass(this.setting.c("selected"))}},{key:"detach",value:function(){this.$container.remove()}},{key:"text",value:function(){return this.$container.text()}},{key:"onChange",value:function(pr){this.setting.emit("change",this.key,pr,this.value),this.value=pr}}]),qn}(),Pn=function(qn){(0,et.Z)(Gn,qn);var pr=Vt(Gn);function Gn(zn,ar){var rr;return(0,j.Z)(this,Gn),(rr=pr.call(this,zn,"","","title")).$container.text(ar),rr}return(0,$.Z)(Gn)}(wn),lr=function(qn){(0,et.Z)(Gn,qn);var pr=Vt(Gn);function Gn(zn){return(0,j.Z)(this,Gn),pr.call(this,zn,"","","separator")}return(0,$.Z)(Gn)}(wn),fr=function(qn){(0,et.Z)(Gn,qn);var pr=Vt(Gn);function Gn(zn,ar,rr,cr,xr){var kr;(0,j.Z)(this,Gn),kr=pr.call(this,zn,ar,rr,"input");var Tr=zn.c;kr.$container.html('
    ').concat(ut()(cr),`
    ').concat(xr,`
    @@ -1190,12 +1190,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
    `));var Ir=Tr.$container.find("select");return Ir.on("change",function(){return Tr.onChange(Ir.val())}),Tr}return(0,$.Z)(Gn)}(wn),ur=function(qn){(0,et.Z)(Gn,qn);var pr=Vt(Gn);function Gn(zn,ar,rr,cr){var xr;return(0,j.Z)(this,Gn),rr||(rr=ar,ar=""),(xr=pr.call(this,zn,"","","button")).$container.html(zn.c('
    '.concat(ut()(ar),`
    -
    `))),xr.$container.find("button").on("click",cr),xr}return(0,$.Z)(Gn)}(wn);(function(qn,pr){try{qn.exports=pr,qn.exports.default=pr}catch{}})(b,qt)},7638:function(b,_,d){d.d(_,{Z:function(){return Sn}});var k=d(168),j=d(5671),$=d(3144),et=d(9340),tt=d(2963),rt=d(1120),nt=d(1443),ot=d.n(nt),at=d(1512),it=d.n(at),dt=d(2461),ut=d.n(dt),ht=d(4331),ft=d.n(ht),st=d(5610),ct=d.n(st),pt=d(7483),lt=d.n(pt),wt=d(3990),yt=d.n(wt),vt=d(6341),St=d.n(vt),xt=(d(3875),d(6954)),bt=d.n(xt);d(9585);function At(bn){var hn="luna-".concat(bn,"-");function _n(ln){return ut()(ft()(ln).split(/\s+/),function(Tn){return St()(Tn,hn)?Tn:Tn.replace(/[\w-]+/,function(In){return"".concat(hn).concat(In)})}).join(" ")}return function(ln){if(/<[^>]*>/g.test(ln))try{var Tn=lt().parse(ln);return _t(Tn,function(In){In.attrs&&In.attrs.class&&(In.attrs.class=_n(In.attrs.class))}),lt().stringify(Tn)}catch{return _n(ln)}return _n(ln)}}function _t(bn,hn){for(var _n=0,ln=bn.length;_n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var _n,ln=(0,rt.Z)(bn);if(hn){var Tn=(0,rt.Z)(this).constructor;_n=Reflect.construct(ln,arguments,Tn)}else _n=ln.apply(this,arguments);return(0,tt.Z)(this,_n)}}var En,yn=function(bn){(0,et.Z)(_n,bn);var hn=An(_n);function _n(ln,Tn){var In,Ln=Tn.compName,kn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Fn=kn===void 0?"light":kn;return(0,j.Z)(this,_n),(In=hn.call(this)).subComponents=[],In.compName=Ln,In.c=At(Ln),In.options={},In.container=ln,In.$container=it()(ln),In.$container.addClass(["luna-".concat(Ln),In.c("platform-".concat(Mt()))]),In.on("optionChange",function(vn,Bn,Pn){var Un=In.c;vn==="theme"&&(In.$container.rmClass(Un("theme-".concat(Pn))).addClass(Un("theme-".concat(Bn))),Rt()(In.subComponents,function(pn){return pn.setOption("theme",Bn)}))}),In.setOption("theme",Fn),In}return(0,$.Z)(_n,[{key:"destroy",value:function(){this.destroySubComponents();var ln=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(ln("platform-".concat(Mt()))).rmClass(ln("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(ln,Tn){var In=this,Ln=this.options,kn={};typeof ln=="string"?kn[ln]=Tn:kn=ln,Rt()(kn,function(Fn,vn){var Bn=Ln[vn];Ln[vn]=Fn,In.emit("optionChange",vn,Fn,Bn)})}},{key:"getOption",value:function(ln){return this.options[ln]}},{key:"addSubComponent",value:function(ln){ln.setOption("theme",this.options.theme),this.subComponents.push(ln)}},{key:"removeSubComponent",value:function(ln){dn()(this.subComponents,function(Tn){return Tn===ln})}},{key:"destroySubComponents",value:function(){Rt()(this.subComponents,function(ln){return ln.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(ln){var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Kt()(ln,Tn),Xt()(this.options,ln)}},{key:"find",value:function(ln){return this.$container.find(this.c(ln))}}]),_n}(ot()),jn=d(1907),Vn=d.n(jn),rn=d(8901),xn=d.n(rn);function fn(bn){var hn=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var _n,ln=(0,rt.Z)(bn);if(hn){var Tn=(0,rt.Z)(this).constructor;_n=Reflect.construct(ln,arguments,Tn)}else _n=ln.apply(this,arguments);return(0,tt.Z)(this,_n)}}b=d.hmd(b);var Sn=function(bn){(0,et.Z)(_n,bn);var hn=fn(_n);function _n(ln){var Tn,In=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,j.Z)(this,_n),(Tn=hn.call(this,ln,{compName:"tab"},In)).initOptions(In,{height:30}),Tn.initTpl(),Tn.$tabs=Tn.find(".tabs"),Tn.tabs=Tn.$tabs.get(0),Tn.$slider=Tn.find(".slider"),Tn.bindEvent(),Tn.updateHeight(),Tn}return(0,$.Z)(_n,[{key:"length",get:function(){return this.$tabs.find(this.c(".item")).length}},{key:"insert",value:function(ln,Tn){var In=this.c,Ln=this.$tabs,kn=this.options.height-1,Fn=Ln.find(In(".item")),vn=Fn.length,Bn='
    ').concat(xn()(Tn.title),"
    ");ln>vn-1?Ln.append(Bn):Fn.eq(ln).before(Bn),this.updateSlider()}},{key:"append",value:function(ln){this.insert(this.length,ln)}},{key:"remove",value:function(ln){var Tn=this.c,In=this;this.$tabs.find(Tn(".item")).each(function(){var Ln=it()(this);if(Ln.data("id")===ln){if(Ln.hasClass(Tn("selected")))if(In.length>0){var kn=In.$tabs.find(Tn(".item")).eq(0).data("id");In.select(kn)}else In.emit("deselect");Ln.remove()}}),this.updateSlider()}},{key:"select",value:function(ln){var Tn=this.c,In=this;this.$tabs.find(Tn(".item")).each(function(){var Ln=it()(this);Ln.data("id")===ln?(Ln.addClass(Tn("selected")),In.updateSlider(),In.scrollToSelected(),In.emit("select",ln)):Ln.rmClass(Tn("selected"))})}},{key:"scrollToSelected",value:function(){var ln,Tn=this.$tabs,In=this.tabs,Ln=this.c,kn=Tn.find(Ln(".selected")).get(0),Fn=kn.offsetLeft,vn=kn.offsetWidth,Bn=In.offsetWidth,Pn=In.scrollLeft;FnBn+Pn&&(ln=Fn+vn-Bn),yt()(ln)&&(In.scrollLeft=ln)}},{key:"hideScrollbar",value:function(){var ln=this.$tabs;if(getComputedStyle(this.tabs,"::-webkit-scrollbar").display!=="none"){var Tn=function(){if(yt()(Ct))return Ct;if(!document)return 16;var In=document.createElement("div"),Ln=document.createElement("div");In.setAttribute("style","display: block; width: 100px; height: 100px; overflow: scroll;"),Ln.setAttribute("style","height: 200px"),In.appendChild(Ln);var kn=document.body||document.documentElement;return kn.appendChild(In),Ct=In.offsetWidth-In.clientWidth,kn.removeChild(In),Ct}();ln.css("height",this.options.height-1+Tn+"px")}}},{key:"updateSlider",value:function(){var ln=this.$slider,Tn=this.$tabs,In=this.c,Ln=Tn.find(In(".selected")).get(0);Ln?ln.css({width:Ln.offsetWidth,left:Ln.offsetLeft-Tn.get(0).scrollLeft}):ln.css({width:0})}},{key:"updateHeight",value:function(){var ln=this.options.height,Tn=ln-1;this.find(".tabs-container").css("height",ln+"px"),this.find(".item").css({height:Tn,lineHeight:Tn}),this.hideScrollbar()}},{key:"bindEvent",value:function(){var ln=this,Tn=this.tabs,In=this.c;this.on("optionChange",function(kn){kn==="height"&&ln.updateHeight()});var Ln=this;this.$tabs.on("wheel",function(kn){kn.preventDefault(),Tn.scrollLeft+=kn.origEvent.deltaY}).on("click",In(".item"),function(){var kn=it()(this);Ln.select(kn.data("id"))}).on("scroll",function(){ln.updateSlider()})}},{key:"initTpl",value:function(){this.$container.html(this.c(Vn()(En||(En=(0,k.Z)([` + `))),xr.$container.find("button").on("click",cr),xr}return(0,$.Z)(Gn)}(wn);(function(qn,pr){try{qn.exports=pr,qn.exports.default=pr}catch{}})(b,qt)},7638:function(b,_,d){d.d(_,{Z:function(){return Sn}});var k=d(168),j=d(5671),$=d(3144),et=d(9340),tt=d(2963),rt=d(1120),nt=d(1443),ot=d.n(nt),at=d(1512),it=d.n(at),dt=d(2461),ut=d.n(dt),ht=d(4331),ft=d.n(ht),st=d(5610),ct=d.n(st),pt=d(7483),lt=d.n(pt),wt=d(3990),yt=d.n(wt),vt=d(6341),St=d.n(vt),xt=(d(3875),d(6954)),bt=d.n(xt);d(9585);function At(bn){var hn="luna-".concat(bn,"-");function _n(ln){return ut()(ft()(ln).split(/\s+/),function(Tn){return St()(Tn,hn)?Tn:Tn.replace(/[\w-]+/,function(In){return"".concat(hn).concat(In)})}).join(" ")}return function(ln){if(/<[^>]*>/g.test(ln))try{var Tn=lt().parse(ln);return _t(Tn,function(In){In.attrs&&In.attrs.class&&(In.attrs.class=_n(In.attrs.class))}),lt().stringify(Tn)}catch{return _n(ln)}return _n(ln)}}function _t(bn,hn){for(var _n=0,ln=bn.length;_n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var _n,ln=(0,rt.Z)(bn);if(hn){var Tn=(0,rt.Z)(this).constructor;_n=Reflect.construct(ln,arguments,Tn)}else _n=ln.apply(this,arguments);return(0,tt.Z)(this,_n)}}var En,yn=function(bn){(0,et.Z)(_n,bn);var hn=An(_n);function _n(ln,Tn){var In,Ln=Tn.compName,kn=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Fn=kn===void 0?"light":kn;return(0,j.Z)(this,_n),(In=hn.call(this)).subComponents=[],In.compName=Ln,In.c=At(Ln),In.options={},In.container=ln,In.$container=it()(ln),In.$container.addClass(["luna-".concat(Ln),In.c("platform-".concat(Mt()))]),In.on("optionChange",function(vn,Bn,Nn){var Un=In.c;vn==="theme"&&(In.$container.rmClass(Un("theme-".concat(Nn))).addClass(Un("theme-".concat(Bn))),Rt()(In.subComponents,function(pn){return pn.setOption("theme",Bn)}))}),In.setOption("theme",Fn),In}return(0,$.Z)(_n,[{key:"destroy",value:function(){this.destroySubComponents();var ln=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(ln("platform-".concat(Mt()))).rmClass(ln("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(ln,Tn){var In=this,Ln=this.options,kn={};typeof ln=="string"?kn[ln]=Tn:kn=ln,Rt()(kn,function(Fn,vn){var Bn=Ln[vn];Ln[vn]=Fn,In.emit("optionChange",vn,Fn,Bn)})}},{key:"getOption",value:function(ln){return this.options[ln]}},{key:"addSubComponent",value:function(ln){ln.setOption("theme",this.options.theme),this.subComponents.push(ln)}},{key:"removeSubComponent",value:function(ln){dn()(this.subComponents,function(Tn){return Tn===ln})}},{key:"destroySubComponents",value:function(){Rt()(this.subComponents,function(ln){return ln.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(ln){var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Kt()(ln,Tn),Xt()(this.options,ln)}},{key:"find",value:function(ln){return this.$container.find(this.c(ln))}}]),_n}(ot()),jn=d(1907),Vn=d.n(jn),rn=d(8901),xn=d.n(rn);function fn(bn){var hn=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var _n,ln=(0,rt.Z)(bn);if(hn){var Tn=(0,rt.Z)(this).constructor;_n=Reflect.construct(ln,arguments,Tn)}else _n=ln.apply(this,arguments);return(0,tt.Z)(this,_n)}}b=d.hmd(b);var Sn=function(bn){(0,et.Z)(_n,bn);var hn=fn(_n);function _n(ln){var Tn,In=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,j.Z)(this,_n),(Tn=hn.call(this,ln,{compName:"tab"},In)).initOptions(In,{height:30}),Tn.initTpl(),Tn.$tabs=Tn.find(".tabs"),Tn.tabs=Tn.$tabs.get(0),Tn.$slider=Tn.find(".slider"),Tn.bindEvent(),Tn.updateHeight(),Tn}return(0,$.Z)(_n,[{key:"length",get:function(){return this.$tabs.find(this.c(".item")).length}},{key:"insert",value:function(ln,Tn){var In=this.c,Ln=this.$tabs,kn=this.options.height-1,Fn=Ln.find(In(".item")),vn=Fn.length,Bn='
    ').concat(xn()(Tn.title),"
    ");ln>vn-1?Ln.append(Bn):Fn.eq(ln).before(Bn),this.updateSlider()}},{key:"append",value:function(ln){this.insert(this.length,ln)}},{key:"remove",value:function(ln){var Tn=this.c,In=this;this.$tabs.find(Tn(".item")).each(function(){var Ln=it()(this);if(Ln.data("id")===ln){if(Ln.hasClass(Tn("selected")))if(In.length>0){var kn=In.$tabs.find(Tn(".item")).eq(0).data("id");In.select(kn)}else In.emit("deselect");Ln.remove()}}),this.updateSlider()}},{key:"select",value:function(ln){var Tn=this.c,In=this;this.$tabs.find(Tn(".item")).each(function(){var Ln=it()(this);Ln.data("id")===ln?(Ln.addClass(Tn("selected")),In.updateSlider(),In.scrollToSelected(),In.emit("select",ln)):Ln.rmClass(Tn("selected"))})}},{key:"scrollToSelected",value:function(){var ln,Tn=this.$tabs,In=this.tabs,Ln=this.c,kn=Tn.find(Ln(".selected")).get(0),Fn=kn.offsetLeft,vn=kn.offsetWidth,Bn=In.offsetWidth,Nn=In.scrollLeft;FnBn+Nn&&(ln=Fn+vn-Bn),yt()(ln)&&(In.scrollLeft=ln)}},{key:"hideScrollbar",value:function(){var ln=this.$tabs;if(getComputedStyle(this.tabs,"::-webkit-scrollbar").display!=="none"){var Tn=function(){if(yt()(Ct))return Ct;if(!document)return 16;var In=document.createElement("div"),Ln=document.createElement("div");In.setAttribute("style","display: block; width: 100px; height: 100px; overflow: scroll;"),Ln.setAttribute("style","height: 200px"),In.appendChild(Ln);var kn=document.body||document.documentElement;return kn.appendChild(In),Ct=In.offsetWidth-In.clientWidth,kn.removeChild(In),Ct}();ln.css("height",this.options.height-1+Tn+"px")}}},{key:"updateSlider",value:function(){var ln=this.$slider,Tn=this.$tabs,In=this.c,Ln=Tn.find(In(".selected")).get(0);Ln?ln.css({width:Ln.offsetWidth,left:Ln.offsetLeft-Tn.get(0).scrollLeft}):ln.css({width:0})}},{key:"updateHeight",value:function(){var ln=this.options.height,Tn=ln-1;this.find(".tabs-container").css("height",ln+"px"),this.find(".item").css({height:Tn,lineHeight:Tn}),this.hideScrollbar()}},{key:"bindEvent",value:function(){var ln=this,Tn=this.tabs,In=this.c;this.on("optionChange",function(kn){kn==="height"&&ln.updateHeight()});var Ln=this;this.$tabs.on("wheel",function(kn){kn.preventDefault(),Tn.scrollLeft+=kn.origEvent.deltaY}).on("click",In(".item"),function(){var kn=it()(this);Ln.select(kn.data("id"))}).on("scroll",function(){ln.updateSlider()})}},{key:"initTpl",value:function(){this.$container.html(this.c(Vn()(En||(En=(0,k.Z)([`
    - `])))))}}]),_n}(yn);(function(bn,hn){try{bn.exports=hn,bn.exports.default=hn}catch{}})(b,Sn)},7049:function(b,_,d){d.d(_,{Z:function(){return vn}});var k=d(5671),j=d(3144),$=d(7326),et=d(1752),tt=d(9340),rt=d(2963),nt=d(1120),ot=d(1443),at=d.n(ot),it=d(1512),dt=d.n(it),ut=d(2461),ht=d.n(ut),ft=d(4331),st=d.n(ft),ct=d(5610),pt=d.n(ct),lt=d(7483),wt=d.n(lt),yt=(d(3990),d(6341)),vt=d.n(yt),St=(d(3875),d(6954)),xt=d.n(St);d(9585);function bt(Pn){var Un="luna-".concat(Pn,"-");function pn(Vt){return ht()(st()(Vt).split(/\s+/),function(qt){return vt()(qt,Un)?qt:qt.replace(/[\w-]+/,function(wn){return"".concat(Un).concat(wn)})}).join(" ")}return function(Vt){if(/<[^>]*>/g.test(Vt))try{var qt=wt().parse(Vt);return At(qt,function(wn){wn.attrs&&wn.attrs.class&&(wn.attrs.class=pn(wn.attrs.class))}),wt().stringify(qt)}catch{return pn(Vt)}return pn(Vt)}}function At(Pn,Un){for(var pn=0,Vt=Pn.length;pn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pn,Vt=(0,nt.Z)(Pn);if(Un){var qt=(0,nt.Z)(this).constructor;pn=Reflect.construct(Vt,arguments,qt)}else pn=Vt.apply(this,arguments);return(0,rt.Z)(this,pn)}}var An=function(Pn){(0,tt.Z)(pn,Pn);var Un=dn(pn);function pn(Vt,qt){var wn,Nn=qt.compName,lr=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,fr=lr===void 0?"light":lr;return(0,k.Z)(this,pn),(wn=Un.call(this)).subComponents=[],wn.compName=Nn,wn.c=bt(Nn),wn.options={},wn.container=Vt,wn.$container=dt()(Vt),wn.$container.addClass(["luna-".concat(Nn),wn.c("platform-".concat(Ct()))]),wn.on("optionChange",function(Zn,vr,yr){var Rn=wn.c;Zn==="theme"&&(wn.$container.rmClass(Rn("theme-".concat(yr))).addClass(Rn("theme-".concat(vr))),jt()(wn.subComponents,function(ur){return ur.setOption("theme",vr)}))}),wn.setOption("theme",fr),wn}return(0,j.Z)(pn,[{key:"destroy",value:function(){this.destroySubComponents();var Vt=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(Vt("platform-".concat(Ct()))).rmClass(Vt("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(Vt,qt){var wn=this,Nn=this.options,lr={};typeof Vt=="string"?lr[Vt]=qt:lr=Vt,jt()(lr,function(fr,Zn){var vr=Nn[Zn];Nn[Zn]=fr,wn.emit("optionChange",Zn,fr,vr)})}},{key:"getOption",value:function(Vt){return this.options[Vt]}},{key:"addSubComponent",value:function(Vt){Vt.setOption("theme",this.options.theme),this.subComponents.push(Vt)}},{key:"removeSubComponent",value:function(Vt){Zt()(this.subComponents,function(qt){return qt===Vt})}},{key:"destroySubComponents",value:function(){jt()(this.subComponents,function(Vt){return Vt.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(Vt){var qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Jt()(Vt,qt),zt()(this.options,Vt)}},{key:"find",value:function(Vt){return this.$container.find(this.c(Vt))}}]),pn}(at()),En=d(9702),yn=d.n(En),jn=d(8887),Vn=d.n(jn),rn=d(2439),xn=d.n(rn),fn=d(6049),Sn=d.n(fn),bn=d(2327),hn=d.n(bn),_n=d(8901),ln=d.n(_n),Tn=d(7387),In=d.n(Tn),Ln=d(8648),kn=d.n(Ln);function Fn(Pn){var Un=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pn,Vt=(0,nt.Z)(Pn);if(Un){var qt=(0,nt.Z)(this).constructor;pn=Reflect.construct(Vt,arguments,qt)}else pn=Vt.apply(this,arguments);return(0,rt.Z)(this,pn)}}b=d.hmd(b);var vn=function(Pn){(0,tt.Z)(pn,Pn);var Un=Fn(pn);function pn(Vt){var qt,wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,k.Z)(this,pn),(qt=Un.call(this,Vt,{compName:"text-viewer"},wn)).lineNum=0,qt.copy=function(){var Nn=(0,$.Z)(qt).c,lr=qt.options,fr=lr.text,Zn=lr.escape;hn()(Zn?fr:In()(kn()(fr)));var vr=qt.$copy.find(Nn(".icon"));vr.addClass(Nn("icon-check")).rmClass(Nn("icon-copy")),setTimeout(function(){vr.rmClass(Nn("icon-check")).addClass(Nn("icon-copy"))},1e3)},qt._updateCopyPos=function(){var Nn=(0,$.Z)(qt).container;qt.$copy.css({top:Nn.scrollTop+5,right:5-Nn.scrollLeft})},qt.initOptions(wn,{text:"",escape:!0,showLineNumbers:!0,wrapLongLines:!0,maxHeight:1/0}),qt.render=xn()(function(){return qt._render()},16),qt.updateCopyPos=Sn()(function(){return qt._updateCopyPos()},300),qt.initTpl(),qt.$text=qt.find(".text"),qt.$copy=qt.find(".copy"),_t&&qt.$copy.css("opacity","1"),qt.options.text&&qt.render(),qt.bindEvent(),qt.updateHeight(),qt}return(0,j.Z)(pn,[{key:"append",value:function(Vt){var qt=this,wn=this.options,Nn=this.$copy,lr=this.c,fr=this.$text,Zn=wn.showLineNumbers;if(this.options.text+=Vt,!Zn)return this.$text.append(wn.escape?ln()(Vt):Vt);var vr=function(Rn){return Rn.length===0?[]:Rn.split(Bn)}(Vt);Vn()(vr)&&(vr=[" "]),st()(yn()(vr))||vr.pop();var yr="";jt()(vr,function(Rn,ur){qt.lineNum+=1,yr+='
    ').concat(qt.lineNum,'
    ').concat(wn.escape?ln()(Rn):Rn||" ","
    ")}),fr.find(lr(".table")).append(yr),Nn.hide(),fr.offset().height>40&&Nn.show(),this.updateCopyPos()}},{key:"destroy",value:function(){this.$container.off("scroll",this.updateCopyPos),(0,et.Z)((0,nt.Z)(pn.prototype),"destroy",this).call(this)}},{key:"updateHeight",value:function(){var Vt=this.options.maxHeight;Vt>0&&Vt!==1/0?this.$text.css("max-height",Vt):this.$text.css("max-height","none")}},{key:"initTpl",value:function(){this.$container.html(this.c('
    '))}},{key:"bindEvent",value:function(){var Vt=this;this.on("optionChange",function(qt){qt==="maxHeight"?Vt.updateHeight():Vt.render()}),this.$container.on("scroll",this.updateCopyPos),this.$copy.on("click",this.copy)}},{key:"_render",value:function(){var Vt=this.c,qt=this.$text,wn=this.options,Nn=wn.text,lr=wn.wrapLongLines,fr=wn.showLineNumbers;lr?qt.addClass(Vt("wrap-long-lines")):qt.rmClass(Vt("wrap-long-lines")),fr?qt.addClass(Vt("line-numbers")):qt.rmClass(Vt("line-numbers")),qt.html('
    ')),this.lineNum=0,this.options.text="",this.append(Nn)}}]),pn}(An),Bn=/\r\n|\r|\n/g;(function(Pn,Un){try{Pn.exports=Un,Pn.exports.default=Un}catch{}})(b,vn)},6672:function(b,_,d){d.d(_,{Z:function(){return Np}});var k={};d.r(k),d.d(k,{$:function(){return lt()},$attr:function(){return vr()},$class:function(){return Rn()},$css:function(){return qn()},$data:function(){return Gn()},$event:function(){return ar()},$insert:function(){return cr()},$offset:function(){return kr()},$property:function(){return Pr()},$remove:function(){return zr()},$safeEls:function(){return Zr()},$show:function(){return kt()},Class:function(){return st()},Emitter:function(){return it()},Enum:function(){return Pt()},LocalStore:function(){return yt()},Logger:function(){return Nt()},MediaQuery:function(){return Et()},MutationObserver:function(){return Ot()},Select:function(){return It()},SingleEmitter:function(){return nn()},Stack:function(){return Ht()},Store:function(){return Wn()},Url:function(){return Yn()},ajax:function(){return Hn()},allKeys:function(){return or()},before:function(){return mr()},camelCase:function(){return Mn()},castPath:function(){return sr()},clamp:function(){return tr()},classPrefix:function(){return Cn},clone:function(){return Xt()},cloneDeep:function(){return Ar()},concat:function(){return jr()},contain:function(){return Rt()},copy:function(){return sn()},create:function(){return Dr()},createAssigner:function(){return Nr()},dateFormat:function(){return Wr()},debounce:function(){return qr()},defaults:function(){return jn()},defineProp:function(){return to()},delegate:function(){return io()},detectBrowser:function(){return so()},detectOs:function(){return Ho()},difference:function(){return vs()},drag:function(){return ko},each:function(){return bt()},endWith:function(){return ys()},escape:function(){return Kr()},escapeJsStr:function(){return ga()},escapeJsonStr:function(){return C0},escapeRegExp:function(){return _s()},evalCss:function(){return k0},eventClient:function(){return Bo},eventPage:function(){return T0},extend:function(){return rn()},extendOwn:function(){return ks()},extractUrls:function(){return Ss()},filter:function(){return _t()},flatten:function(){return Es()},freeze:function(){return Ms()},getFileName:function(){return sl},getProto:function(){return es()},has:function(){return Rs()},hasSafeArea:function(){return al},highlight:function(){return ns()},identity:function(){return Er()},idxOf:function(){return Sr()},inherits:function(){return Ut()},isArgs:function(){return Dn()},isArr:function(){return fn()},isArrLike:function(){return dr()},isBool:function(){return Cr()},isBrowser:function(){return Yr()},isBuffer:function(){return oo()},isChobitsuEl:function(){return ll},isDarkMode:function(){return Ur()},isDate:function(){return yo()},isEl:function(){return So()},isEmpty:function(){return vo()},isErr:function(){return Eo()},isErudaEl:function(){return Yo},isFn:function(){return Ao()},isHidden:function(){return Lo()},isMatch:function(){return No()},isMiniProgram:function(){return Uo()},isMobile:function(){return Ro()},isNaN:function(){return Ps()},isNil:function(){return rs()},isNull:function(){return Xr()},isNum:function(){return $o()},isObj:function(){return Us()},isPrimitive:function(){return Ol()},isPromise:function(){return Rl()},isRegExp:function(){return Zs()},isSorted:function(){return Pl()},isStr:function(){return Mt()},isUndef:function(){return Ns()},kebabCase:function(){return En()},keys:function(){return dn()},last:function(){return is()},linkify:function(){return Dl()},loadJs:function(){return Vs()},lowerCase:function(){return qs()},lpad:function(){return Hl()},ltrim:function(){return Zl()},map:function(){return ho()},mapObj:function(){return Gl()},matcher:function(){return Yl()},memStorage:function(){return Gs()},memoize:function(){return Xl()},mergeArr:function(){return tu()},meta:function(){return ou()},ms:function(){return Ks()},nextTick:function(){return Nn()},noop:function(){return Ys()},now:function(){return Qs()},objToStr:function(){return cu()},once:function(){return du()},optimizeCb:function(){return hu()},orientation:function(){return fr()},partial:function(){return gu()},perfNow:function(){return vu()},pick:function(){return Js()},prefix:function(){return wu()},property:function(){return _u()},pxToNum:function(){return Ko},query:function(){return ku()},raf:function(){return Su()},repeat:function(){return Tu()},restArgs:function(){return Ou()},reverse:function(){return Ru()},root:function(){return Xs()},rtrim:function(){return Pu()},safeCb:function(){return $u()},safeGet:function(){return el()},safeSet:function(){return Fu()},safeStorage:function(){return $s},sameOrigin:function(){return tl()},slice:function(){return Hu()},some:function(){return Zu()},sortKeys:function(){return nl()},splitCase:function(){return Gu()},startWith:function(){return qo()},stringify:function(){return Qu()},stringifyAll:function(){return Xu()},throttle:function(){return rl()},toArr:function(){return as()},toInt:function(){return r0()},toNum:function(){return ss()},toSrc:function(){return a0()},toStr:function(){return Kt()},trim:function(){return To()},type:function(){return c0()},types:function(){return d0()},uncaught:function(){return ls()},uniqId:function(){return St()},unique:function(){return zo()},upperFirst:function(){return Go()},values:function(){return m0()},viewportScale:function(){return ol()},wrap:function(){return b0()},xpath:function(){return x0()}}),d(1532),d(1150);var j=d(5671),$=d(3144),et=d(7326),tt=d(9340),rt=d(2963),nt=d(1120),ot=d(4942),at=d(1443),it=d.n(at),dt=new(it());dt.ADD="ADD",dt.SHOW="SHOW",dt.SCALE="SCALE";var ut=dt,ht=d(1752),ft=d(7496),st=d.n(ft),ct=st()({init:function(tn){this._$el=tn},show:function(){return this._$el.show(),this},hide:function(){return this._$el.hide(),this},destroy:function(){this._$el.remove()}}),pt=d(1512),lt=d.n(pt),wt=d(125),yt=d.n(wt),vt=d(5229),St=d.n(vt),xt=d(3783),bt=d.n(xt),At=d(5972),_t=d.n(At),Ct=d(6768),Mt=d.n(Ct),jt=d(6341),Rt=d.n(jt),zt=d(4675),Xt=d.n(zt),Jt=d(3367),Kt=d.n(Jt),Zt=d(2533),dn=d.n(Zt),An=d(7622),En=d.n(An),yn=d(4193),jn=d.n(yn),Vn=d(6329),rn=d.n(Vn),xn=d(6472),fn=d.n(xn),Sn=["background","foreground","selectForeground","accent","highlight","border","primary","contrast","varColor","stringColor","keywordColor","numberColor","operatorColor","linkColor","textColor","tagNameColor","functionColor","attributeNameColor","commentColor"],bn=Sn.length;function hn(tn){for(var Gt={},Ft=0;Ft"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ft,mt=(0,nt.Z)(tn);if(Gt){var Tt=(0,nt.Z)(this).constructor;Ft=Reflect.construct(mt,arguments,Tt)}else Ft=mt.apply(this,arguments);return(0,rt.Z)(this,Ft)}}var qt=function(tn){(0,tt.Z)(Ft,tn);var Gt=Vt(Ft);function Ft(){var mt;return(0,j.Z)(this,Ft),(mt=Gt.call(this))._style=Un(d(8011)),mt.name="settings",mt._settings=[],mt}return(0,$.Z)(Ft,[{key:"init",value:function(mt){(0,ht.Z)((0,nt.Z)(Ft.prototype),"init",this).call(this,mt),this._setting=new pn.Z(mt.get(0)),this._bindEvent()}},{key:"remove",value:function(mt,Tt){var Dt=this;if(Mt()(mt)){var un=this;this._$el.find(".luna-setting-item-title").each(function(){lt()(this).text()===mt&&un._setting.remove(this.settingItem)})}else this._settings=_t()(this._settings,function(On){return On.config!==mt||On.key!==Tt||(Dt._setting.remove(On.item),!1)});return this._cleanSeparator(),this}},{key:"destroy",value:function(){this._setting.destroy(),(0,ht.Z)((0,nt.Z)(Ft.prototype),"destroy",this).call(this),Un.remove(this._style)}},{key:"clear",value:function(){this._settings=[],this._setting.clear()}},{key:"switch",value:function(mt,Tt,Dt){var un=this._genId("settings"),On=this._setting.appendCheckbox(un,!!mt.get(Tt),Dt);return this._settings.push({config:mt,key:Tt,id:un,item:On}),this}},{key:"select",value:function(mt,Tt,Dt,un){var On=this._genId("settings"),Qn={};bt()(un,function(wr){return Qn[wr]=wr});var gr=this._setting.appendSelect(On,mt.get(Tt),"",Dt,Qn);return this._settings.push({config:mt,key:Tt,id:On,item:gr}),this}},{key:"range",value:function(mt,Tt,Dt,un){var On=un.min,Qn=On===void 0?0:On,gr=un.max,wr=gr===void 0?1:gr,$r=un.step,Vr=$r===void 0?.1:$r,Jr=this._genId("settings"),lo=this._setting.appendNumber(Jr,mt.get(Tt),Dt,{max:wr,min:Qn,step:Vr,range:!0});return this._settings.push({config:mt,key:Tt,min:Qn,max:wr,step:Vr,id:Jr,item:lo}),this}},{key:"button",value:function(mt,Tt){return this._setting.appendButton(mt,Tt),this}},{key:"separator",value:function(){return this._setting.appendSeparator(),this}},{key:"text",value:function(mt){return this._setting.appendTitle(mt),this}},{key:"_cleanSeparator",value:function(){var mt=Xt()(this._$el.get(0).children);function Tt(On){return Rt()(On.getAttribute("class"),"luna-setting-item-separator")}for(var Dt=0,un=mt.length;Dt0)return!0}return!1}function C0(tn){return ga()(tn).replace(/\\'/g,"'").replace(/\t/g,"\\t")}function $s(tn,Gt){var Ft;switch(Ns()(Gt)&&(Gt=!0),tn){case"local":Ft=window.localStorage;break;case"session":Ft=window.sessionStorage}try{var mt="test-localStorage-"+Date.now();Ft.setItem(mt,mt);var Tt=Ft.getItem(mt);if(Ft.removeItem(mt),Tt!==mt)throw new Error}catch{return Gt?Gs():void 0}return Ft}function sl(tn){var Gt=is()(tn.split("/"));return Gt===""&&(Gt=(tn=new(Yn())(tn)).hostname),Gt}function Ko(tn){return ss()(tn.replace("px",""))}function Yo(tn){for(;tn;){if(tn.id==="eruda")return!0;tn=tn.parentNode}return!1}function ll(tn){for(;tn;){var Gt="";if(tn.getAttribute&&(Gt=tn.getAttribute("class")||""),Rt()(Gt,"__chobitsu-hide__"))return!0;tn=tn.parentNode}return!1}var k0=Un;function Cn(tn){if(/<[^>]*>/g.test(tn))try{var Gt=il().parse(tn);return cl(Gt,function(Ft){Ft.attrs&&Ft.attrs.class&&(Ft.attrs.class=Bs(Ft.attrs.class))}),il().stringify(Gt)}catch{return Bs(tn)}return Bs(tn)}function cl(tn,Gt){for(var Ft=0,mt=tn.length;Ft"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ft,mt=(0,nt.Z)(tn);if(Gt){var Tt=(0,nt.Z)(this).constructor;Ft=Reflect.construct(mt,arguments,Tt)}else Ft=mt.apply(this,arguments);return(0,rt.Z)(this,Ft)}}var ul,cs=lt()(document),O0=function(tn){(0,tt.Z)(Ft,tn);var Gt=M0(Ft);function Ft(mt){var Tt;return(0,j.Z)(this,Ft),Tt=Gt.call(this),(0,ot.Z)((0,et.Z)(Tt),"_onDragStart",function(Dt){var un=Tt._$el;un.addClass(Cn("active")),Tt._isClick=!0,Dt=Dt.origEvent,Tt._startX=Bo("x",Dt),Tt._oldX=Ko(un.css("left")),Tt._oldY=Ko(un.css("top")),Tt._startY=Bo("y",Dt),cs.on(ko("move"),Tt._onDragMove),cs.on(ko("end"),Tt._onDragEnd)}),(0,ot.Z)((0,et.Z)(Tt),"_onDragMove",function(Dt){var un=Tt._$el.get(0).offsetWidth,On=Tt._$container.get(0).offsetWidth,Qn=Tt._$container.get(0).offsetHeight,gr=Bo("x",Dt=Dt.origEvent)-Tt._startX,wr=Bo("y",Dt)-Tt._startY;(Math.abs(gr)>3||Math.abs(wr)>3)&&(Tt._isClick=!1);var $r=Tt._oldX+gr,Vr=Tt._oldY+wr;$r<0?$r=0:$r>On-un&&($r=On-un),Vr<0?Vr=0:Vr>Qn-un&&(Vr=Qn-un),Tt._$el.css({left:$r,top:Vr})}),(0,ot.Z)((0,et.Z)(Tt),"_onDragEnd",function(Dt){var un=Tt._$el;Tt._isClick&&Tt.emit("click"),Tt._onDragMove(Dt),cs.off(ko("move"),Tt._onDragMove),cs.off(ko("end"),Tt._onDragEnd);var On=Tt.config;On.get("rememberPos")&&On.set("pos",{x:Ko(un.css("left")),y:Ko(un.css("top"))}),un.rmClass("eruda-active")}),Tt._style=Un(d(9195)),Tt._$container=mt,Tt._initTpl(),Tt._bindEvent(),Tt._registerListener(),Tt}return(0,$.Z)(Ft,[{key:"hide",value:function(){this._$el.hide()}},{key:"show",value:function(){this._$el.show()}},{key:"setPos",value:function(mt){this._isOutOfRange(mt)&&(mt=this._getDefPos()),this._$el.css({left:mt.x,top:mt.y}),this.config.set("pos",mt)}},{key:"getPos",value:function(){return this.config.get("pos")}},{key:"destroy",value:function(){Un.remove(this._style),this._unregisterListener(),this._$el.remove()}},{key:"_isOutOfRange",value:function(mt){mt=mt||this.config.get("pos");var Tt=this._getDefPos();return mt.x>Tt.x+10||mt.x<0||mt.y<0||mt.y>Tt.y+10}},{key:"_registerListener",value:function(){var mt=this;this._scaleListener=function(){return Nn()(function(){mt._isOutOfRange()&&mt._resetPos()})},ut.on(ut.SCALE,this._scaleListener)}},{key:"_unregisterListener",value:function(){ut.off(ut.SCALE,this._scaleListener)}},{key:"_initTpl",value:function(){var mt=this._$container;mt.append(Cn('
    ')),this._$el=mt.find(".eruda-entry-btn")}},{key:"_resetPos",value:function(mt){var Tt=this.config,Dt=Tt.get("pos"),un=this._getDefPos();Tt.get("rememberPos")&&!mt||(Dt=un),this.setPos(Dt)}},{key:"_bindEvent",value:function(){var mt=this;this._$el.on(ko("start"),this._onDragStart),fr().on("change",function(){return mt._resetPos(!0)}),window.addEventListener("resize",function(){return mt._resetPos()})}},{key:"initCfg",value:function(mt){var Tt=this.config=qt.createCfg("entry-button",{rememberPos:!0,pos:this._getDefPos()});mt.switch(Tt,"rememberPos","Remember Entry Button Position"),this._resetPos()}},{key:"_getDefPos",value:function(){var mt=this._$el.get(0).offsetWidth+10;return{x:window.innerWidth-mt,y:window.innerHeight-mt}}}]),Ft}(it()),Wo=ul=new(Nt())("[Eruda]","warn");ul.formatter=function(tn,Gt){return Gt.unshift(this.name),Gt};var j0=d(4270),R0=d.n(j0),I0=d(6093),L0=d.n(I0),Do=d(129),P0=d(7638);function N0(tn){var Gt=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ft,mt=(0,nt.Z)(tn);if(Gt){var Tt=(0,nt.Z)(this).constructor;Ft=Reflect.construct(mt,arguments,Tt)}else Ft=mt.apply(this,arguments);return(0,rt.Z)(this,Ft)}}var $0=function(tn){(0,tt.Z)(Ft,tn);var Gt=N0(Ft);function Ft(mt){var Tt,Dt=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).defaults,un=Dt===void 0?{}:Dt;return(0,j.Z)(this,Ft),Tt=Gt.call(this),(0,ot.Z)((0,et.Z)(Tt),"_checkSafeArea",function(){var On=(0,et.Z)(Tt).$container;al()?On.addClass(Cn("safe-area")):On.rmClass(Cn("safe-area"))}),(0,ot.Z)((0,et.Z)(Tt),"_updateTabHeight",function(On){Tt._tab.setOption("height",40*On),Nn()(function(){Tt._tab.updateSlider()})}),Tt._defCfg=rn()({transparency:1,displaySize:80,theme:Ur()()?"Dark":"Light"},un),Tt._style=Un(d(13)),Tt.$container=mt,Tt._isShow=!1,Tt._opacity=1,Tt._tools={},Tt._isResizing=!1,Tt._resizeTimer=null,Tt._resizeStartY=0,Tt._resizeStartSize=0,Tt._initTpl(),Tt._initTab(),Tt._initNotification(),Tt._initModal(),R0()(function(){return Tt._checkSafeArea()}),Tt._bindEvent(),Tt}return(0,$.Z)(Ft,[{key:"show",value:function(){var mt=this;return this._isShow=!0,this._$el.show(),this._tab.updateSlider(),setTimeout(function(){mt._$el.css("opacity",mt._opacity)},50),this.emit("show"),this}},{key:"hide",value:function(){var mt=this;return this._isShow=!1,this.emit("hide"),this._$el.css({opacity:0}),setTimeout(function(){return mt._$el.hide()},300),this}},{key:"toggle",value:function(){return this._isShow?this.hide():this.show()}},{key:"add",value:function(mt){var Tt=this._tab;if(!(mt instanceof ct)){var Dt=new ct,un=Dt.init,On=Dt.show,Qn=Dt.hide,gr=Dt.destroy;jn()(mt,{init:un,show:On,hide:Qn,destroy:gr})}var wr=mt.name;return wr?(wr=wr.toLowerCase(),this._tools[wr]?Wo.warn("Tool ".concat(wr," already exists")):(this._$tools.prepend('
    ')),mt.init(this._$tools.find(".".concat(Cn(wr),".").concat(Cn("tool"))),this),mt.active=!1,this._tools[wr]=mt,wr==="settings"?Tt.append({id:wr,title:wr}):Tt.insert(Tt.length-1,{id:wr,title:wr}),this)):Wo.error("You must specify a name for a tool")}},{key:"remove",value:function(mt){var Tt=this._tools;if(!Tt[mt])return Wo.warn("Tool ".concat(mt," doesn't exist"));this._tab.remove(mt);var Dt=Tt[mt];if(delete Tt[mt],Dt.active){var un=dn()(Tt);un.length>0&&this.showTool(Tt[is()(un)].name)}return Dt.destroy(),this}},{key:"removeAll",value:function(){var mt=this;return bt()(this._tools,function(Tt){return mt.remove(Tt.name)}),this}},{key:"get",value:function(mt){var Tt=this._tools[mt];if(Tt)return Tt}},{key:"showTool",value:function(mt){if(this._curTool===mt)return this;this._curTool=mt;var Tt=this._tools,Dt=Tt[mt];if(Dt){var un={};return bt()(Tt,function(On){On.active&&(un=On,On.active=!1,On.hide())}),Dt.active=!0,Dt.show(),this._tab.select(mt),this.emit("showTool",mt,un),this}}},{key:"initCfg",value:function(mt){var Tt=this,Dt=this.config=qt.createCfg("dev-tools",this._defCfg);this._setTransparency(Dt.get("transparency")),this._setDisplaySize(Dt.get("displaySize")),this._setTheme(Dt.get("theme")),Dt.on("change",function(un,On){switch(un){case"transparency":return Tt._setTransparency(On);case"displaySize":return Tt._setDisplaySize(On);case"theme":return Tt._setTheme(On)}}),mt.separator().select(Dt,"theme","Theme",dn()(Un.getThemes())).range(Dt,"transparency","Transparency",{min:.2,max:1,step:.01}).range(Dt,"displaySize","Display Size",{min:40,max:100,step:1}).button("Restore defaults and reload",function(){var un=$s("local"),On=JSON.parse(JSON.stringify(un));bt()(On,function(Qn,gr){Mt()(Qn)&&qo()(gr,"eruda")&&un.removeItem(gr)}),window.location.reload()}).separator()}},{key:"notify",value:function(mt,Tt){this._notification.notify(mt,Tt)}},{key:"destroy",value:function(){Un.remove(this._style),this.removeAll(),this._tab.destroy(),this._$el.remove(),window.removeEventListener("resize",this._checkSafeArea),ut.off(ut.SCALE,this._updateTabHeight)}},{key:"_setTheme",value:function(mt){var Tt=this.$container;(function(Dt){return Rt()(Tn,Dt)})(mt)?Tt.addClass(Cn("dark")):Tt.rmClass(Cn("dark")),Un.setTheme(mt)}},{key:"_setTransparency",value:function(mt){$o()(mt)&&(this._opacity=mt,this._isShow&&this._$el.css({opacity:mt}))}},{key:"_setDisplaySize",value:function(mt){$o()(mt)&&this._$el.css({height:mt+"%"})}},{key:"_initTpl",value:function(){var mt=this.$container;mt.append(Cn(` + `])))))}}]),_n}(yn);(function(bn,hn){try{bn.exports=hn,bn.exports.default=hn}catch{}})(b,Sn)},7049:function(b,_,d){d.d(_,{Z:function(){return vn}});var k=d(5671),j=d(3144),$=d(7326),et=d(1752),tt=d(9340),rt=d(2963),nt=d(1120),ot=d(1443),at=d.n(ot),it=d(1512),dt=d.n(it),ut=d(2461),ht=d.n(ut),ft=d(4331),st=d.n(ft),ct=d(5610),pt=d.n(ct),lt=d(7483),wt=d.n(lt),yt=(d(3990),d(6341)),vt=d.n(yt),St=(d(3875),d(6954)),xt=d.n(St);d(9585);function bt(Nn){var Un="luna-".concat(Nn,"-");function pn(Vt){return ht()(st()(Vt).split(/\s+/),function(qt){return vt()(qt,Un)?qt:qt.replace(/[\w-]+/,function(wn){return"".concat(Un).concat(wn)})}).join(" ")}return function(Vt){if(/<[^>]*>/g.test(Vt))try{var qt=wt().parse(Vt);return At(qt,function(wn){wn.attrs&&wn.attrs.class&&(wn.attrs.class=pn(wn.attrs.class))}),wt().stringify(qt)}catch{return pn(Vt)}return pn(Vt)}}function At(Nn,Un){for(var pn=0,Vt=Nn.length;pn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pn,Vt=(0,nt.Z)(Nn);if(Un){var qt=(0,nt.Z)(this).constructor;pn=Reflect.construct(Vt,arguments,qt)}else pn=Vt.apply(this,arguments);return(0,rt.Z)(this,pn)}}var An=function(Nn){(0,tt.Z)(pn,Nn);var Un=dn(pn);function pn(Vt,qt){var wn,Pn=qt.compName,lr=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,fr=lr===void 0?"light":lr;return(0,k.Z)(this,pn),(wn=Un.call(this)).subComponents=[],wn.compName=Pn,wn.c=bt(Pn),wn.options={},wn.container=Vt,wn.$container=dt()(Vt),wn.$container.addClass(["luna-".concat(Pn),wn.c("platform-".concat(Ct()))]),wn.on("optionChange",function(Zn,vr,yr){var Rn=wn.c;Zn==="theme"&&(wn.$container.rmClass(Rn("theme-".concat(yr))).addClass(Rn("theme-".concat(vr))),jt()(wn.subComponents,function(ur){return ur.setOption("theme",vr)}))}),wn.setOption("theme",fr),wn}return(0,j.Z)(pn,[{key:"destroy",value:function(){this.destroySubComponents();var Vt=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(Vt("platform-".concat(Ct()))).rmClass(Vt("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(Vt,qt){var wn=this,Pn=this.options,lr={};typeof Vt=="string"?lr[Vt]=qt:lr=Vt,jt()(lr,function(fr,Zn){var vr=Pn[Zn];Pn[Zn]=fr,wn.emit("optionChange",Zn,fr,vr)})}},{key:"getOption",value:function(Vt){return this.options[Vt]}},{key:"addSubComponent",value:function(Vt){Vt.setOption("theme",this.options.theme),this.subComponents.push(Vt)}},{key:"removeSubComponent",value:function(Vt){Zt()(this.subComponents,function(qt){return qt===Vt})}},{key:"destroySubComponents",value:function(){jt()(this.subComponents,function(Vt){return Vt.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(Vt){var qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Jt()(Vt,qt),zt()(this.options,Vt)}},{key:"find",value:function(Vt){return this.$container.find(this.c(Vt))}}]),pn}(at()),En=d(9702),yn=d.n(En),jn=d(8887),Vn=d.n(jn),rn=d(2439),xn=d.n(rn),fn=d(6049),Sn=d.n(fn),bn=d(2327),hn=d.n(bn),_n=d(8901),ln=d.n(_n),Tn=d(7387),In=d.n(Tn),Ln=d(8648),kn=d.n(Ln);function Fn(Nn){var Un=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pn,Vt=(0,nt.Z)(Nn);if(Un){var qt=(0,nt.Z)(this).constructor;pn=Reflect.construct(Vt,arguments,qt)}else pn=Vt.apply(this,arguments);return(0,rt.Z)(this,pn)}}b=d.hmd(b);var vn=function(Nn){(0,tt.Z)(pn,Nn);var Un=Fn(pn);function pn(Vt){var qt,wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,k.Z)(this,pn),(qt=Un.call(this,Vt,{compName:"text-viewer"},wn)).lineNum=0,qt.copy=function(){var Pn=(0,$.Z)(qt).c,lr=qt.options,fr=lr.text,Zn=lr.escape;hn()(Zn?fr:In()(kn()(fr)));var vr=qt.$copy.find(Pn(".icon"));vr.addClass(Pn("icon-check")).rmClass(Pn("icon-copy")),setTimeout(function(){vr.rmClass(Pn("icon-check")).addClass(Pn("icon-copy"))},1e3)},qt._updateCopyPos=function(){var Pn=(0,$.Z)(qt).container;qt.$copy.css({top:Pn.scrollTop+5,right:5-Pn.scrollLeft})},qt.initOptions(wn,{text:"",escape:!0,showLineNumbers:!0,wrapLongLines:!0,maxHeight:1/0}),qt.render=xn()(function(){return qt._render()},16),qt.updateCopyPos=Sn()(function(){return qt._updateCopyPos()},300),qt.initTpl(),qt.$text=qt.find(".text"),qt.$copy=qt.find(".copy"),_t&&qt.$copy.css("opacity","1"),qt.options.text&&qt.render(),qt.bindEvent(),qt.updateHeight(),qt}return(0,j.Z)(pn,[{key:"append",value:function(Vt){var qt=this,wn=this.options,Pn=this.$copy,lr=this.c,fr=this.$text,Zn=wn.showLineNumbers;if(this.options.text+=Vt,!Zn)return this.$text.append(wn.escape?ln()(Vt):Vt);var vr=function(Rn){return Rn.length===0?[]:Rn.split(Bn)}(Vt);Vn()(vr)&&(vr=[" "]),st()(yn()(vr))||vr.pop();var yr="";jt()(vr,function(Rn,ur){qt.lineNum+=1,yr+='
    ').concat(qt.lineNum,'
    ').concat(wn.escape?ln()(Rn):Rn||" ","
    ")}),fr.find(lr(".table")).append(yr),Pn.hide(),fr.offset().height>40&&Pn.show(),this.updateCopyPos()}},{key:"destroy",value:function(){this.$container.off("scroll",this.updateCopyPos),(0,et.Z)((0,nt.Z)(pn.prototype),"destroy",this).call(this)}},{key:"updateHeight",value:function(){var Vt=this.options.maxHeight;Vt>0&&Vt!==1/0?this.$text.css("max-height",Vt):this.$text.css("max-height","none")}},{key:"initTpl",value:function(){this.$container.html(this.c('
    '))}},{key:"bindEvent",value:function(){var Vt=this;this.on("optionChange",function(qt){qt==="maxHeight"?Vt.updateHeight():Vt.render()}),this.$container.on("scroll",this.updateCopyPos),this.$copy.on("click",this.copy)}},{key:"_render",value:function(){var Vt=this.c,qt=this.$text,wn=this.options,Pn=wn.text,lr=wn.wrapLongLines,fr=wn.showLineNumbers;lr?qt.addClass(Vt("wrap-long-lines")):qt.rmClass(Vt("wrap-long-lines")),fr?qt.addClass(Vt("line-numbers")):qt.rmClass(Vt("line-numbers")),qt.html('
    ')),this.lineNum=0,this.options.text="",this.append(Pn)}}]),pn}(An),Bn=/\r\n|\r|\n/g;(function(Nn,Un){try{Nn.exports=Un,Nn.exports.default=Un}catch{}})(b,vn)},6672:function(b,_,d){d.d(_,{Z:function(){return Np}});var k={};d.r(k),d.d(k,{$:function(){return lt()},$attr:function(){return vr()},$class:function(){return Rn()},$css:function(){return qn()},$data:function(){return Gn()},$event:function(){return ar()},$insert:function(){return cr()},$offset:function(){return kr()},$property:function(){return Pr()},$remove:function(){return zr()},$safeEls:function(){return Zr()},$show:function(){return kt()},Class:function(){return st()},Emitter:function(){return it()},Enum:function(){return Pt()},LocalStore:function(){return yt()},Logger:function(){return Nt()},MediaQuery:function(){return Et()},MutationObserver:function(){return Ot()},Select:function(){return It()},SingleEmitter:function(){return nn()},Stack:function(){return Ht()},Store:function(){return Wn()},Url:function(){return Yn()},ajax:function(){return Hn()},allKeys:function(){return or()},before:function(){return mr()},camelCase:function(){return Mn()},castPath:function(){return sr()},clamp:function(){return tr()},classPrefix:function(){return Cn},clone:function(){return Xt()},cloneDeep:function(){return Ar()},concat:function(){return jr()},contain:function(){return Rt()},copy:function(){return sn()},create:function(){return Dr()},createAssigner:function(){return Nr()},dateFormat:function(){return Wr()},debounce:function(){return qr()},defaults:function(){return jn()},defineProp:function(){return to()},delegate:function(){return io()},detectBrowser:function(){return so()},detectOs:function(){return Ho()},difference:function(){return vs()},drag:function(){return ko},each:function(){return bt()},endWith:function(){return ys()},escape:function(){return Kr()},escapeJsStr:function(){return ga()},escapeJsonStr:function(){return C0},escapeRegExp:function(){return _s()},evalCss:function(){return k0},eventClient:function(){return Bo},eventPage:function(){return T0},extend:function(){return rn()},extendOwn:function(){return ks()},extractUrls:function(){return Ss()},filter:function(){return _t()},flatten:function(){return Es()},freeze:function(){return Ms()},getFileName:function(){return sl},getProto:function(){return es()},has:function(){return Rs()},hasSafeArea:function(){return al},highlight:function(){return ns()},identity:function(){return Er()},idxOf:function(){return Sr()},inherits:function(){return Ut()},isArgs:function(){return Dn()},isArr:function(){return fn()},isArrLike:function(){return dr()},isBool:function(){return Cr()},isBrowser:function(){return Yr()},isBuffer:function(){return oo()},isChobitsuEl:function(){return ll},isDarkMode:function(){return Ur()},isDate:function(){return yo()},isEl:function(){return So()},isEmpty:function(){return vo()},isErr:function(){return Eo()},isErudaEl:function(){return Yo},isFn:function(){return Ao()},isHidden:function(){return Lo()},isMatch:function(){return No()},isMiniProgram:function(){return Uo()},isMobile:function(){return Ro()},isNaN:function(){return Ps()},isNil:function(){return rs()},isNull:function(){return Xr()},isNum:function(){return $o()},isObj:function(){return Us()},isPrimitive:function(){return Ol()},isPromise:function(){return Rl()},isRegExp:function(){return Zs()},isSorted:function(){return Pl()},isStr:function(){return Mt()},isUndef:function(){return Ns()},kebabCase:function(){return En()},keys:function(){return dn()},last:function(){return is()},linkify:function(){return Dl()},loadJs:function(){return Vs()},lowerCase:function(){return qs()},lpad:function(){return Hl()},ltrim:function(){return Zl()},map:function(){return ho()},mapObj:function(){return Gl()},matcher:function(){return Yl()},memStorage:function(){return Gs()},memoize:function(){return Xl()},mergeArr:function(){return tu()},meta:function(){return ou()},ms:function(){return Ks()},nextTick:function(){return Pn()},noop:function(){return Ys()},now:function(){return Qs()},objToStr:function(){return cu()},once:function(){return du()},optimizeCb:function(){return hu()},orientation:function(){return fr()},partial:function(){return gu()},perfNow:function(){return vu()},pick:function(){return Js()},prefix:function(){return wu()},property:function(){return _u()},pxToNum:function(){return Ko},query:function(){return ku()},raf:function(){return Su()},repeat:function(){return Tu()},restArgs:function(){return Ou()},reverse:function(){return Ru()},root:function(){return Xs()},rtrim:function(){return Pu()},safeCb:function(){return $u()},safeGet:function(){return el()},safeSet:function(){return Fu()},safeStorage:function(){return $s},sameOrigin:function(){return tl()},slice:function(){return Hu()},some:function(){return Zu()},sortKeys:function(){return nl()},splitCase:function(){return Gu()},startWith:function(){return qo()},stringify:function(){return Qu()},stringifyAll:function(){return Xu()},throttle:function(){return rl()},toArr:function(){return as()},toInt:function(){return r0()},toNum:function(){return ss()},toSrc:function(){return a0()},toStr:function(){return Kt()},trim:function(){return To()},type:function(){return c0()},types:function(){return d0()},uncaught:function(){return ls()},uniqId:function(){return St()},unique:function(){return zo()},upperFirst:function(){return Go()},values:function(){return m0()},viewportScale:function(){return ol()},wrap:function(){return b0()},xpath:function(){return x0()}}),d(1532),d(1150);var j=d(5671),$=d(3144),et=d(7326),tt=d(9340),rt=d(2963),nt=d(1120),ot=d(4942),at=d(1443),it=d.n(at),dt=new(it());dt.ADD="ADD",dt.SHOW="SHOW",dt.SCALE="SCALE";var ut=dt,ht=d(1752),ft=d(7496),st=d.n(ft),ct=st()({init:function(tn){this._$el=tn},show:function(){return this._$el.show(),this},hide:function(){return this._$el.hide(),this},destroy:function(){this._$el.remove()}}),pt=d(1512),lt=d.n(pt),wt=d(125),yt=d.n(wt),vt=d(5229),St=d.n(vt),xt=d(3783),bt=d.n(xt),At=d(5972),_t=d.n(At),Ct=d(6768),Mt=d.n(Ct),jt=d(6341),Rt=d.n(jt),zt=d(4675),Xt=d.n(zt),Jt=d(3367),Kt=d.n(Jt),Zt=d(2533),dn=d.n(Zt),An=d(7622),En=d.n(An),yn=d(4193),jn=d.n(yn),Vn=d(6329),rn=d.n(Vn),xn=d(6472),fn=d.n(xn),Sn=["background","foreground","selectForeground","accent","highlight","border","primary","contrast","varColor","stringColor","keywordColor","numberColor","operatorColor","linkColor","textColor","tagNameColor","functionColor","attributeNameColor","commentColor"],bn=Sn.length;function hn(tn){for(var Gt={},Ft=0;Ft"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ft,mt=(0,nt.Z)(tn);if(Gt){var Tt=(0,nt.Z)(this).constructor;Ft=Reflect.construct(mt,arguments,Tt)}else Ft=mt.apply(this,arguments);return(0,rt.Z)(this,Ft)}}var qt=function(tn){(0,tt.Z)(Ft,tn);var Gt=Vt(Ft);function Ft(){var mt;return(0,j.Z)(this,Ft),(mt=Gt.call(this))._style=Un(d(8011)),mt.name="settings",mt._settings=[],mt}return(0,$.Z)(Ft,[{key:"init",value:function(mt){(0,ht.Z)((0,nt.Z)(Ft.prototype),"init",this).call(this,mt),this._setting=new pn.Z(mt.get(0)),this._bindEvent()}},{key:"remove",value:function(mt,Tt){var Dt=this;if(Mt()(mt)){var un=this;this._$el.find(".luna-setting-item-title").each(function(){lt()(this).text()===mt&&un._setting.remove(this.settingItem)})}else this._settings=_t()(this._settings,function(On){return On.config!==mt||On.key!==Tt||(Dt._setting.remove(On.item),!1)});return this._cleanSeparator(),this}},{key:"destroy",value:function(){this._setting.destroy(),(0,ht.Z)((0,nt.Z)(Ft.prototype),"destroy",this).call(this),Un.remove(this._style)}},{key:"clear",value:function(){this._settings=[],this._setting.clear()}},{key:"switch",value:function(mt,Tt,Dt){var un=this._genId("settings"),On=this._setting.appendCheckbox(un,!!mt.get(Tt),Dt);return this._settings.push({config:mt,key:Tt,id:un,item:On}),this}},{key:"select",value:function(mt,Tt,Dt,un){var On=this._genId("settings"),Qn={};bt()(un,function(wr){return Qn[wr]=wr});var gr=this._setting.appendSelect(On,mt.get(Tt),"",Dt,Qn);return this._settings.push({config:mt,key:Tt,id:On,item:gr}),this}},{key:"range",value:function(mt,Tt,Dt,un){var On=un.min,Qn=On===void 0?0:On,gr=un.max,wr=gr===void 0?1:gr,$r=un.step,Vr=$r===void 0?.1:$r,Jr=this._genId("settings"),lo=this._setting.appendNumber(Jr,mt.get(Tt),Dt,{max:wr,min:Qn,step:Vr,range:!0});return this._settings.push({config:mt,key:Tt,min:Qn,max:wr,step:Vr,id:Jr,item:lo}),this}},{key:"button",value:function(mt,Tt){return this._setting.appendButton(mt,Tt),this}},{key:"separator",value:function(){return this._setting.appendSeparator(),this}},{key:"text",value:function(mt){return this._setting.appendTitle(mt),this}},{key:"_cleanSeparator",value:function(){var mt=Xt()(this._$el.get(0).children);function Tt(On){return Rt()(On.getAttribute("class"),"luna-setting-item-separator")}for(var Dt=0,un=mt.length;Dt0)return!0}return!1}function C0(tn){return ga()(tn).replace(/\\'/g,"'").replace(/\t/g,"\\t")}function $s(tn,Gt){var Ft;switch(Ns()(Gt)&&(Gt=!0),tn){case"local":Ft=window.localStorage;break;case"session":Ft=window.sessionStorage}try{var mt="test-localStorage-"+Date.now();Ft.setItem(mt,mt);var Tt=Ft.getItem(mt);if(Ft.removeItem(mt),Tt!==mt)throw new Error}catch{return Gt?Gs():void 0}return Ft}function sl(tn){var Gt=is()(tn.split("/"));return Gt===""&&(Gt=(tn=new(Yn())(tn)).hostname),Gt}function Ko(tn){return ss()(tn.replace("px",""))}function Yo(tn){for(;tn;){if(tn.id==="eruda")return!0;tn=tn.parentNode}return!1}function ll(tn){for(;tn;){var Gt="";if(tn.getAttribute&&(Gt=tn.getAttribute("class")||""),Rt()(Gt,"__chobitsu-hide__"))return!0;tn=tn.parentNode}return!1}var k0=Un;function Cn(tn){if(/<[^>]*>/g.test(tn))try{var Gt=il().parse(tn);return cl(Gt,function(Ft){Ft.attrs&&Ft.attrs.class&&(Ft.attrs.class=Bs(Ft.attrs.class))}),il().stringify(Gt)}catch{return Bs(tn)}return Bs(tn)}function cl(tn,Gt){for(var Ft=0,mt=tn.length;Ft"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ft,mt=(0,nt.Z)(tn);if(Gt){var Tt=(0,nt.Z)(this).constructor;Ft=Reflect.construct(mt,arguments,Tt)}else Ft=mt.apply(this,arguments);return(0,rt.Z)(this,Ft)}}var ul,cs=lt()(document),O0=function(tn){(0,tt.Z)(Ft,tn);var Gt=M0(Ft);function Ft(mt){var Tt;return(0,j.Z)(this,Ft),Tt=Gt.call(this),(0,ot.Z)((0,et.Z)(Tt),"_onDragStart",function(Dt){var un=Tt._$el;un.addClass(Cn("active")),Tt._isClick=!0,Dt=Dt.origEvent,Tt._startX=Bo("x",Dt),Tt._oldX=Ko(un.css("left")),Tt._oldY=Ko(un.css("top")),Tt._startY=Bo("y",Dt),cs.on(ko("move"),Tt._onDragMove),cs.on(ko("end"),Tt._onDragEnd)}),(0,ot.Z)((0,et.Z)(Tt),"_onDragMove",function(Dt){var un=Tt._$el.get(0).offsetWidth,On=Tt._$container.get(0).offsetWidth,Qn=Tt._$container.get(0).offsetHeight,gr=Bo("x",Dt=Dt.origEvent)-Tt._startX,wr=Bo("y",Dt)-Tt._startY;(Math.abs(gr)>3||Math.abs(wr)>3)&&(Tt._isClick=!1);var $r=Tt._oldX+gr,Vr=Tt._oldY+wr;$r<0?$r=0:$r>On-un&&($r=On-un),Vr<0?Vr=0:Vr>Qn-un&&(Vr=Qn-un),Tt._$el.css({left:$r,top:Vr})}),(0,ot.Z)((0,et.Z)(Tt),"_onDragEnd",function(Dt){var un=Tt._$el;Tt._isClick&&Tt.emit("click"),Tt._onDragMove(Dt),cs.off(ko("move"),Tt._onDragMove),cs.off(ko("end"),Tt._onDragEnd);var On=Tt.config;On.get("rememberPos")&&On.set("pos",{x:Ko(un.css("left")),y:Ko(un.css("top"))}),un.rmClass("eruda-active")}),Tt._style=Un(d(9195)),Tt._$container=mt,Tt._initTpl(),Tt._bindEvent(),Tt._registerListener(),Tt}return(0,$.Z)(Ft,[{key:"hide",value:function(){this._$el.hide()}},{key:"show",value:function(){this._$el.show()}},{key:"setPos",value:function(mt){this._isOutOfRange(mt)&&(mt=this._getDefPos()),this._$el.css({left:mt.x,top:mt.y}),this.config.set("pos",mt)}},{key:"getPos",value:function(){return this.config.get("pos")}},{key:"destroy",value:function(){Un.remove(this._style),this._unregisterListener(),this._$el.remove()}},{key:"_isOutOfRange",value:function(mt){mt=mt||this.config.get("pos");var Tt=this._getDefPos();return mt.x>Tt.x+10||mt.x<0||mt.y<0||mt.y>Tt.y+10}},{key:"_registerListener",value:function(){var mt=this;this._scaleListener=function(){return Pn()(function(){mt._isOutOfRange()&&mt._resetPos()})},ut.on(ut.SCALE,this._scaleListener)}},{key:"_unregisterListener",value:function(){ut.off(ut.SCALE,this._scaleListener)}},{key:"_initTpl",value:function(){var mt=this._$container;mt.append(Cn('
    ')),this._$el=mt.find(".eruda-entry-btn")}},{key:"_resetPos",value:function(mt){var Tt=this.config,Dt=Tt.get("pos"),un=this._getDefPos();Tt.get("rememberPos")&&!mt||(Dt=un),this.setPos(Dt)}},{key:"_bindEvent",value:function(){var mt=this;this._$el.on(ko("start"),this._onDragStart),fr().on("change",function(){return mt._resetPos(!0)}),window.addEventListener("resize",function(){return mt._resetPos()})}},{key:"initCfg",value:function(mt){var Tt=this.config=qt.createCfg("entry-button",{rememberPos:!0,pos:this._getDefPos()});mt.switch(Tt,"rememberPos","Remember Entry Button Position"),this._resetPos()}},{key:"_getDefPos",value:function(){var mt=this._$el.get(0).offsetWidth+10;return{x:window.innerWidth-mt,y:window.innerHeight-mt}}}]),Ft}(it()),Wo=ul=new(Nt())("[Eruda]","warn");ul.formatter=function(tn,Gt){return Gt.unshift(this.name),Gt};var j0=d(4270),R0=d.n(j0),I0=d(6093),L0=d.n(I0),Do=d(129),P0=d(7638);function N0(tn){var Gt=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ft,mt=(0,nt.Z)(tn);if(Gt){var Tt=(0,nt.Z)(this).constructor;Ft=Reflect.construct(mt,arguments,Tt)}else Ft=mt.apply(this,arguments);return(0,rt.Z)(this,Ft)}}var $0=function(tn){(0,tt.Z)(Ft,tn);var Gt=N0(Ft);function Ft(mt){var Tt,Dt=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).defaults,un=Dt===void 0?{}:Dt;return(0,j.Z)(this,Ft),Tt=Gt.call(this),(0,ot.Z)((0,et.Z)(Tt),"_checkSafeArea",function(){var On=(0,et.Z)(Tt).$container;al()?On.addClass(Cn("safe-area")):On.rmClass(Cn("safe-area"))}),(0,ot.Z)((0,et.Z)(Tt),"_updateTabHeight",function(On){Tt._tab.setOption("height",40*On),Pn()(function(){Tt._tab.updateSlider()})}),Tt._defCfg=rn()({transparency:1,displaySize:80,theme:Ur()()?"Dark":"Light"},un),Tt._style=Un(d(13)),Tt.$container=mt,Tt._isShow=!1,Tt._opacity=1,Tt._tools={},Tt._isResizing=!1,Tt._resizeTimer=null,Tt._resizeStartY=0,Tt._resizeStartSize=0,Tt._initTpl(),Tt._initTab(),Tt._initNotification(),Tt._initModal(),R0()(function(){return Tt._checkSafeArea()}),Tt._bindEvent(),Tt}return(0,$.Z)(Ft,[{key:"show",value:function(){var mt=this;return this._isShow=!0,this._$el.show(),this._tab.updateSlider(),setTimeout(function(){mt._$el.css("opacity",mt._opacity)},50),this.emit("show"),this}},{key:"hide",value:function(){var mt=this;return this._isShow=!1,this.emit("hide"),this._$el.css({opacity:0}),setTimeout(function(){return mt._$el.hide()},300),this}},{key:"toggle",value:function(){return this._isShow?this.hide():this.show()}},{key:"add",value:function(mt){var Tt=this._tab;if(!(mt instanceof ct)){var Dt=new ct,un=Dt.init,On=Dt.show,Qn=Dt.hide,gr=Dt.destroy;jn()(mt,{init:un,show:On,hide:Qn,destroy:gr})}var wr=mt.name;return wr?(wr=wr.toLowerCase(),this._tools[wr]?Wo.warn("Tool ".concat(wr," already exists")):(this._$tools.prepend('
    ')),mt.init(this._$tools.find(".".concat(Cn(wr),".").concat(Cn("tool"))),this),mt.active=!1,this._tools[wr]=mt,wr==="settings"?Tt.append({id:wr,title:wr}):Tt.insert(Tt.length-1,{id:wr,title:wr}),this)):Wo.error("You must specify a name for a tool")}},{key:"remove",value:function(mt){var Tt=this._tools;if(!Tt[mt])return Wo.warn("Tool ".concat(mt," doesn't exist"));this._tab.remove(mt);var Dt=Tt[mt];if(delete Tt[mt],Dt.active){var un=dn()(Tt);un.length>0&&this.showTool(Tt[is()(un)].name)}return Dt.destroy(),this}},{key:"removeAll",value:function(){var mt=this;return bt()(this._tools,function(Tt){return mt.remove(Tt.name)}),this}},{key:"get",value:function(mt){var Tt=this._tools[mt];if(Tt)return Tt}},{key:"showTool",value:function(mt){if(this._curTool===mt)return this;this._curTool=mt;var Tt=this._tools,Dt=Tt[mt];if(Dt){var un={};return bt()(Tt,function(On){On.active&&(un=On,On.active=!1,On.hide())}),Dt.active=!0,Dt.show(),this._tab.select(mt),this.emit("showTool",mt,un),this}}},{key:"initCfg",value:function(mt){var Tt=this,Dt=this.config=qt.createCfg("dev-tools",this._defCfg);this._setTransparency(Dt.get("transparency")),this._setDisplaySize(Dt.get("displaySize")),this._setTheme(Dt.get("theme")),Dt.on("change",function(un,On){switch(un){case"transparency":return Tt._setTransparency(On);case"displaySize":return Tt._setDisplaySize(On);case"theme":return Tt._setTheme(On)}}),mt.separator().select(Dt,"theme","Theme",dn()(Un.getThemes())).range(Dt,"transparency","Transparency",{min:.2,max:1,step:.01}).range(Dt,"displaySize","Display Size",{min:40,max:100,step:1}).button("Restore defaults and reload",function(){var un=$s("local"),On=JSON.parse(JSON.stringify(un));bt()(On,function(Qn,gr){Mt()(Qn)&&qo()(gr,"eruda")&&un.removeItem(gr)}),window.location.reload()}).separator()}},{key:"notify",value:function(mt,Tt){this._notification.notify(mt,Tt)}},{key:"destroy",value:function(){Un.remove(this._style),this.removeAll(),this._tab.destroy(),this._$el.remove(),window.removeEventListener("resize",this._checkSafeArea),ut.off(ut.SCALE,this._updateTabHeight)}},{key:"_setTheme",value:function(mt){var Tt=this.$container;(function(Dt){return Rt()(Tn,Dt)})(mt)?Tt.addClass(Cn("dark")):Tt.rmClass(Cn("dark")),Un.setTheme(mt)}},{key:"_setTransparency",value:function(mt){$o()(mt)&&(this._opacity=mt,this._isShow&&this._$el.css({opacity:mt}))}},{key:"_setDisplaySize",value:function(mt){$o()(mt)&&this._$el.css({height:mt+"%"})}},{key:"_initTpl",value:function(){var mt=this.$container;mt.append(Cn(`
    @@ -1337,7 +1337,7 @@ Response Headers
    `)}).join(""),Vr=`

    Event Listeners

    `).concat(Vr,` -
    `),un.html(Vr).show()):un.hide(),this._$container.show()}},{key:"_getData",value:function(Gt){var Ft={},mt=new ap(Gt),Tt=Gt.className,Dt=Gt.id,un=Gt.attributes,On=Gt.tagName;Ft.computedStyleSearchKeyword=this._computedStyleSearchKeyword,Ft.attributes=up(un),Ft.name=vl({tagName:On,id:Dt,className:Tt,attributes:un});var Qn=Gt.erudaEvents;if(Qn&&dn()(Qn).length!==0&&(Ft.listeners=Qn),pp(On))return Ft;var gr=mt.getComputedStyle(),wr=mt.getMatchedCSSRules();wr.unshift(function(Vr){for(var Jr={selectorText:"element.style",style:{}},lo=0,go=Vr.length;lo
    $&').replace(fp,function(Gt,Ft){return'url("'.concat(wl(Ft),'")')})}var hp=["script","style","meta","title","link","head"],pp=function(tn){return hp.indexOf(tn.toLowerCase())>-1},wl=function(tn){return'').concat(tn,"")},xl=function(){return el()(window,"EventTarget.prototype")||window.Node.prototype};function gp(tn){var Gt=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ft,mt=(0,nt.Z)(tn);if(Gt){var Tt=(0,nt.Z)(this).constructor;Ft=Reflect.construct(mt,arguments,Tt)}else Ft=mt.apply(this,arguments);return(0,rt.Z)(this,Ft)}}var mp=function(tn){(0,tt.Z)(Ft,tn);var Gt=gp(Ft);function Ft(){var mt;return(0,j.Z)(this,Ft),mt=Gt.call(this),(0,ot.Z)((0,et.Z)(mt),"_showDetail",function(){mt._isShow&&mt._curNode&&(mt._curNode.nodeType===Node.ELEMENT_NODE?mt._detail.show(mt._curNode):mt._detail.show(mt._curNode.parentNode))}),(0,ot.Z)((0,et.Z)(mt),"_back",function(){if(mt._curNode!==mt._htmlEl){for(var Tt=mt._curParentQueue,Dt=Tt.shift();!_l(Dt);)Dt=Tt.shift();mt.set(Dt)}}),(0,ot.Z)((0,et.Z)(mt),"_updateScale",function(Tt){mt._splitMediaQuery.setQuery("screen and (min-width: ".concat(680*Tt,"px)"))}),(0,ot.Z)((0,et.Z)(mt),"_deleteNode",function(){var Tt=mt._curNode;Tt.parentNode&&Tt.parentNode.removeChild(Tt)}),(0,ot.Z)((0,et.Z)(mt),"_copyNode",function(){var Tt=mt._curNode;Tt.nodeType===Node.ELEMENT_NODE?sn()(Tt.outerHTML):sn()(Tt.nodeValue),mt._container.notify("Copied")}),(0,ot.Z)((0,et.Z)(mt),"_toggleSelect",function(){mt._$el.find(Cn(".select")).toggleClass(Cn("active")),mt._selectElement=!mt._selectElement,mt._selectElement?(uo.domain("Overlay").setInspectMode({mode:"searchForNode",highlightConfig:{showInfo:!Ro()(),showRulers:!1,showAccessibilityInfo:!Ro()(),showExtensionLines:!1,contrastAlgorithm:"aa",contentColor:"rgba(111, 168, 220, .66)",paddingColor:"rgba(147, 196, 125, .55)",borderColor:"rgba(255, 229, 153, .66)",marginColor:"rgba(246, 178, 107, .66)"}}),mt._container.hide()):(uo.domain("Overlay").setInspectMode({mode:"none"}),uo.domain("Overlay").hideHighlight())}),(0,ot.Z)((0,et.Z)(mt),"_inspectNodeRequested",function(Tt){var Dt=Tt.backendNodeId;mt._container.show(),mt._toggleSelect();var un=uo.domain("DOM").getNode({nodeId:Dt}).node;mt.select(un)}),(0,ot.Z)((0,et.Z)(mt),"_setNode",function(Tt){if(Tt!==mt._curNode){mt._curNode=Tt,mt._renderCrumbs();for(var Dt=[],un=Tt.parentNode;un;)Dt.push(un),un=un.parentNode;mt._curParentQueue=Dt,mt._splitMode&&mt._showDetail(),mt._updateButtons(),mt._updateHistory()}}),mt._style=Un(d(5896)),mt.name="elements",mt._selectElement=!1,mt._observeElement=!0,mt._history=[],it().mixin((0,et.Z)(mt)),mt}return(0,$.Z)(Ft,[{key:"init",value:function(mt,Tt){var Dt=this;(0,ht.Z)((0,nt.Z)(Ft.prototype),"init",this).call(this,mt),this._container=Tt,this._initTpl(),this._htmlEl=document.documentElement,this._detail=new cp(this._$detail,Tt),this.config=this._detail.config,this._splitMediaQuery=new(Et())("screen and (min-width: 680px)"),this._splitMode=this._splitMediaQuery.isMatch(),this._domViewer=new rp.Z(this._$domViewer.get(0),{node:this._htmlEl,ignore:function(un){return Yo(un)||ll(un)}}),this._domViewer.expand(),this._bindEvent(),uo.domain("Overlay").enable(),Nn()(function(){return Dt._updateHistory()})}},{key:"show",value:function(){(0,ht.Z)((0,nt.Z)(Ft.prototype),"show",this).call(this),this._isShow=!0,this._curNode?this._splitMode&&this._showDetail():this.select(document.body)}},{key:"hide",value:function(){(0,ht.Z)((0,nt.Z)(Ft.prototype),"hide",this).call(this),this._isShow=!1,uo.domain("Overlay").hideHighlight()}},{key:"set",value:function(mt){return this.select(mt)}},{key:"select",value:function(mt){return this._domViewer.select(mt),this._setNode(mt),this.emit("change",mt),this}},{key:"destroy",value:function(){(0,ht.Z)((0,nt.Z)(Ft.prototype),"destroy",this).call(this),ut.off(ut.SCALE,this._updateScale),Un.remove(this._style),this._detail.destroy(),uo.domain("Overlay").off("inspectNodeRequested",this._inspectNodeRequested),uo.domain("Overlay").disable(),this._splitMediaQuery.removeAllListeners()}},{key:"_updateButtons",value:function(){var mt=this._$control,Tt=mt.find(Cn(".show-detail")),Dt=mt.find(Cn(".copy-node")),un=mt.find(Cn(".delete-node")),On=Cn("icon-disabled");Tt.addClass(On),Dt.addClass(On),un.addClass(On);var Qn=this._curNode;Qn&&(Qn!==document.documentElement&&Qn!==document.body&&un.rmClass(On),Dt.rmClass(On),Qn.nodeType===Node.ELEMENT_NODE&&Tt.rmClass(On))}},{key:"_initTpl",value:function(){var mt=this._$el;mt.html(Cn(`
    +
    `),un.html(Vr).show()):un.hide(),this._$container.show()}},{key:"_getData",value:function(Gt){var Ft={},mt=new ap(Gt),Tt=Gt.className,Dt=Gt.id,un=Gt.attributes,On=Gt.tagName;Ft.computedStyleSearchKeyword=this._computedStyleSearchKeyword,Ft.attributes=up(un),Ft.name=vl({tagName:On,id:Dt,className:Tt,attributes:un});var Qn=Gt.erudaEvents;if(Qn&&dn()(Qn).length!==0&&(Ft.listeners=Qn),pp(On))return Ft;var gr=mt.getComputedStyle(),wr=mt.getMatchedCSSRules();wr.unshift(function(Vr){for(var Jr={selectorText:"element.style",style:{}},lo=0,go=Vr.length;lo
    $&').replace(fp,function(Gt,Ft){return'url("'.concat(wl(Ft),'")')})}var hp=["script","style","meta","title","link","head"],pp=function(tn){return hp.indexOf(tn.toLowerCase())>-1},wl=function(tn){return'').concat(tn,"")},xl=function(){return el()(window,"EventTarget.prototype")||window.Node.prototype};function gp(tn){var Gt=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ft,mt=(0,nt.Z)(tn);if(Gt){var Tt=(0,nt.Z)(this).constructor;Ft=Reflect.construct(mt,arguments,Tt)}else Ft=mt.apply(this,arguments);return(0,rt.Z)(this,Ft)}}var mp=function(tn){(0,tt.Z)(Ft,tn);var Gt=gp(Ft);function Ft(){var mt;return(0,j.Z)(this,Ft),mt=Gt.call(this),(0,ot.Z)((0,et.Z)(mt),"_showDetail",function(){mt._isShow&&mt._curNode&&(mt._curNode.nodeType===Node.ELEMENT_NODE?mt._detail.show(mt._curNode):mt._detail.show(mt._curNode.parentNode))}),(0,ot.Z)((0,et.Z)(mt),"_back",function(){if(mt._curNode!==mt._htmlEl){for(var Tt=mt._curParentQueue,Dt=Tt.shift();!_l(Dt);)Dt=Tt.shift();mt.set(Dt)}}),(0,ot.Z)((0,et.Z)(mt),"_updateScale",function(Tt){mt._splitMediaQuery.setQuery("screen and (min-width: ".concat(680*Tt,"px)"))}),(0,ot.Z)((0,et.Z)(mt),"_deleteNode",function(){var Tt=mt._curNode;Tt.parentNode&&Tt.parentNode.removeChild(Tt)}),(0,ot.Z)((0,et.Z)(mt),"_copyNode",function(){var Tt=mt._curNode;Tt.nodeType===Node.ELEMENT_NODE?sn()(Tt.outerHTML):sn()(Tt.nodeValue),mt._container.notify("Copied")}),(0,ot.Z)((0,et.Z)(mt),"_toggleSelect",function(){mt._$el.find(Cn(".select")).toggleClass(Cn("active")),mt._selectElement=!mt._selectElement,mt._selectElement?(uo.domain("Overlay").setInspectMode({mode:"searchForNode",highlightConfig:{showInfo:!Ro()(),showRulers:!1,showAccessibilityInfo:!Ro()(),showExtensionLines:!1,contrastAlgorithm:"aa",contentColor:"rgba(111, 168, 220, .66)",paddingColor:"rgba(147, 196, 125, .55)",borderColor:"rgba(255, 229, 153, .66)",marginColor:"rgba(246, 178, 107, .66)"}}),mt._container.hide()):(uo.domain("Overlay").setInspectMode({mode:"none"}),uo.domain("Overlay").hideHighlight())}),(0,ot.Z)((0,et.Z)(mt),"_inspectNodeRequested",function(Tt){var Dt=Tt.backendNodeId;mt._container.show(),mt._toggleSelect();var un=uo.domain("DOM").getNode({nodeId:Dt}).node;mt.select(un)}),(0,ot.Z)((0,et.Z)(mt),"_setNode",function(Tt){if(Tt!==mt._curNode){mt._curNode=Tt,mt._renderCrumbs();for(var Dt=[],un=Tt.parentNode;un;)Dt.push(un),un=un.parentNode;mt._curParentQueue=Dt,mt._splitMode&&mt._showDetail(),mt._updateButtons(),mt._updateHistory()}}),mt._style=Un(d(5896)),mt.name="elements",mt._selectElement=!1,mt._observeElement=!0,mt._history=[],it().mixin((0,et.Z)(mt)),mt}return(0,$.Z)(Ft,[{key:"init",value:function(mt,Tt){var Dt=this;(0,ht.Z)((0,nt.Z)(Ft.prototype),"init",this).call(this,mt),this._container=Tt,this._initTpl(),this._htmlEl=document.documentElement,this._detail=new cp(this._$detail,Tt),this.config=this._detail.config,this._splitMediaQuery=new(Et())("screen and (min-width: 680px)"),this._splitMode=this._splitMediaQuery.isMatch(),this._domViewer=new rp.Z(this._$domViewer.get(0),{node:this._htmlEl,ignore:function(un){return Yo(un)||ll(un)}}),this._domViewer.expand(),this._bindEvent(),uo.domain("Overlay").enable(),Pn()(function(){return Dt._updateHistory()})}},{key:"show",value:function(){(0,ht.Z)((0,nt.Z)(Ft.prototype),"show",this).call(this),this._isShow=!0,this._curNode?this._splitMode&&this._showDetail():this.select(document.body)}},{key:"hide",value:function(){(0,ht.Z)((0,nt.Z)(Ft.prototype),"hide",this).call(this),this._isShow=!1,uo.domain("Overlay").hideHighlight()}},{key:"set",value:function(mt){return this.select(mt)}},{key:"select",value:function(mt){return this._domViewer.select(mt),this._setNode(mt),this.emit("change",mt),this}},{key:"destroy",value:function(){(0,ht.Z)((0,nt.Z)(Ft.prototype),"destroy",this).call(this),ut.off(ut.SCALE,this._updateScale),Un.remove(this._style),this._detail.destroy(),uo.domain("Overlay").off("inspectNodeRequested",this._inspectNodeRequested),uo.domain("Overlay").disable(),this._splitMediaQuery.removeAllListeners()}},{key:"_updateButtons",value:function(){var mt=this._$control,Tt=mt.find(Cn(".show-detail")),Dt=mt.find(Cn(".copy-node")),un=mt.find(Cn(".delete-node")),On=Cn("icon-disabled");Tt.addClass(On),Dt.addClass(On),un.addClass(On);var Qn=this._curNode;Qn&&(Qn!==document.documentElement&&Qn!==document.body&&un.rmClass(On),Dt.rmClass(On),Qn.nodeType===Node.ELEMENT_NODE&&Tt.rmClass(On))}},{key:"_initTpl",value:function(){var mt=this._$el;mt.html(Cn(`
    @@ -1451,15 +1451,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
    ').concat(Kr()(Tt)," × ").concat(Kr()(Dt),`
    `))}},{key:"_renderCode",value:function(){var mt=this._data;this._renderHtml('
    '),!1);var Tt=mt.val,Dt=mt.val.length;Dt>ps&&(Tt=us()(Tt,ps)),Dt'),!1);var mt=this._data.val;try{Mt()(mt)&&(mt=JSON.parse(mt))}catch{}new Op.Z(this._$el.find(".eruda-json").get(0),{unenumerable:!0,accessGetter:!0}).set(mt)}},{key:"_renderRaw",value:function(){var mt=this._data;this._renderHtml('
    -
    `));var Tt=mt.val,Dt=this._$el.find(Cn(".raw")).get(0);Tt.length>ps&&(Tt=us()(Tt,ps)),new Sl.Z(Dt,{text:Tt,wrapLongLines:!0,showLineNumbers:Tt.length'))}},{key:"_renderHtml",value:function(mt){var Tt=this;(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&mt===this._lastHtml||(this._lastHtml=mt,this._$el.html(mt),setTimeout(function(){return Tt._$el.get(0).scrollTop=0},0))}}]),Ft}(ct),Pp=3e4,El=8e4,ps=1e5,Np={init:function(){var tn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Gt=tn.container,Ft=tn.tool,mt=tn.autoScale,Tt=mt===void 0||mt,Dt=tn.useShadowDom,un=Dt===void 0||Dt,On=tn.defaults,Qn=On===void 0?{}:On;this._isInit||(this._isInit=!0,this._scale=1,this._initContainer(Gt,un),this._initStyle(),this._initDevTools(Qn),this._initEntryBtn(),this._initSettings(),this._initTools(Ft),this._registerListener(),Tt&&this._autoScale())},_isInit:!1,version:"2.11.3",util:k,chobitsu:uo,Tool:ct,Console:F0,Elements:mp,Network:np,Sources:Lp,Resources:kp,Info:Mp,Snippets:wp,Settings:qt,get:function(tn){if(this._checkInit()){if(tn==="entryBtn")return this._entryBtn;var Gt=this._devTools;return tn?Gt.get(tn):Gt}},add:function(tn){if(this._checkInit())return Ao()(tn)&&(tn=tn(this)),this._devTools.add(tn),this},remove:function(tn){return this._devTools.remove(tn),this},show:function(tn){if(this._checkInit()){var Gt=this._devTools;return tn?Gt.showTool(tn):Gt.show(),this}},hide:function(){if(this._checkInit())return this._devTools.hide(),this},destroy:function(){this._devTools.destroy(),delete this._devTools,this._entryBtn.destroy(),delete this._entryBtn,this._unregisterListener(),lt()(this._container).remove(),Un.clear(),this._isInit=!1,this._container=null,this._shadowRoot=null},scale:function(tn){return $o()(tn)?(this._scale=tn,ut.emit(ut.SCALE,tn),this):this._scale},position:function(tn){var Gt=this._entryBtn;return Us()(tn)?(Gt.setPos(tn),this):Gt.getPos()},_autoScale:function(){Ro()()&&this.scale(1/ol()())},_registerListener:function(){var tn=this;this._addListener=function(){return tn.add.apply(tn,arguments)},this._showListener=function(){return tn.show.apply(tn,arguments)},ut.on(ut.ADD,this._addListener),ut.on(ut.SHOW,this._showListener),ut.on(ut.SCALE,Un.setScale)},_unregisterListener:function(){ut.off(ut.ADD,this._addListener),ut.off(ut.SHOW,this._showListener),ut.off(ut.SCALE,Un.setScale)},_checkInit:function(){return this._isInit||Wo.error('Please call "eruda.init()" first'),this._isInit},_initContainer:function(tn,Gt){var Ft,mt;tn||(tn=document.createElement("div"),document.documentElement.appendChild(tn)),tn.id="eruda",tn.style.all="initial",this._container=tn,Gt&&(tn.attachShadow?Ft=tn.attachShadow({mode:"open"}):tn.createShadowRoot&&(Ft=tn.createShadowRoot()),Ft&&(Un.container=document.head,Un(d(5357)+d(9327)+d(4821)+d(8903)+d(5777)),mt=document.createElement("div"),Ft.appendChild(mt),this._shadowRoot=Ft)),this._shadowRoot||(mt=document.createElement("div"),tn.appendChild(mt)),rn()(mt,{className:"eruda-container __chobitsu-hide__",contentEditable:!1}),so()().name==="ios"&&mt.setAttribute("ontouchstart",""),this._$el=lt()(mt)},_initDevTools:function(tn){this._devTools=new $0(this._$el,{defaults:tn})},_initStyle:function(){var tn="eruda-style-container",Gt=this._$el;this._shadowRoot?(Un.container=this._shadowRoot,Un(":host { all: initial }")):(Gt.append('
    ')),Un.container=Gt.find(".".concat(tn)).get(0)),Un(d(8020)+d(4821)+d(9327)+d(7591)+d(4987)+d(8903)+d(5512)+d(2156)+d(5777)+d(9819)+d(8094)+d(8516)+d(5357))},_initEntryBtn:function(){var tn=this;this._entryBtn=new O0(this._$el),this._entryBtn.on("click",function(){return tn._devTools.toggle()})},_initSettings:function(){var tn=this._devTools,Gt=new qt;tn.add(Gt),this._entryBtn.initCfg(Gt),tn.initCfg(Gt)},_initTools:function(){var tn=this,Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["console","elements","network","resources","sources","info","snippets"];Gt=as()(Gt);var Ft=this._devTools;Gt.forEach(function(mt){var Tt=tn[Go()(mt)];try{Tt&&Ft.add(new Tt)}catch(Dt){Nn()(function(){Wo.error("Something wrong when initializing tool ".concat(mt,":"),Dt.message)})}}),Ft.showTool(Gt[0]||"settings")}}},2027:function(b,_,d){var k=d(6672).Z;b.exports=k,b.exports.default=k},6610:function(b,_,d){d.r(_),_.default={}},9143:function(b,_,d){var k=this&&this.__awaiter||function(dt,ut,ht,ft){return new(ht||(ht=Promise))(function(st,ct){function pt(yt){try{wt(ft.next(yt))}catch(vt){ct(vt)}}function lt(yt){try{wt(ft.throw(yt))}catch(vt){ct(vt)}}function wt(yt){var vt;yt.done?st(yt.value):(vt=yt.value,vt instanceof ht?vt:new ht(function(St){St(vt)})).then(pt,lt)}wt((ft=ft.apply(dt,ut||[])).next())})},j=this&&this.__generator||function(dt,ut){var ht,ft,st,ct,pt={label:0,sent:function(){if(1&st[0])throw st[1];return st[1]},trys:[],ops:[]};return ct={next:lt(0),throw:lt(1),return:lt(2)},typeof Symbol=="function"&&(ct[Symbol.iterator]=function(){return this}),ct;function lt(wt){return function(yt){return function(vt){if(ht)throw new TypeError("Generator is already executing.");for(;pt;)try{if(ht=1,ft&&(st=2&vt[0]?ft.return:vt[0]?ft.throw||((st=ft.return)&&st.call(ft),0):ft.next)&&!(st=st.call(ft,vt[1])).done)return st;switch(ft=0,st&&(vt=[2&vt[0],st.value]),vt[0]){case 0:case 1:st=vt;break;case 4:return pt.label++,{value:vt[1],done:!1};case 5:pt.label++,ft=vt[1],vt=[0];continue;case 7:vt=pt.ops.pop(),pt.trys.pop();continue;default:if(st=pt.trys,!((st=st.length>0&&st[st.length-1])||vt[0]!==6&&vt[0]!==2)){pt=0;continue}if(vt[0]===3&&(!st||vt[1]>st[0]&&vt[1]",jt))return void Rt.push(Xt);var Zt=[];lt.default(Xt.attributes,function(En){var yn=En.name,jn=En.value;return Zt.push(yn,jn)});for(var dn=0,An=Zt.length;dn
    ",ht.default.parse(jt)[0].attrs))},_.setAttributeValue=function(Mt){var jt=Mt.nodeId,Rt=Mt.name,zt=Mt.value;nt.getNode(jt).setAttribute(Rt,zt)};var _t=[];function Ct(Mt,jt){for(var Rt=rt.filterNodes(Mt.childNodes),zt=0,Xt=Rt.length;zt5&&_t.pop();for(var Rt=0;Rt<5;Rt++)St.setGlobal("$"+Rt,_t[Rt])},_.setNodeValue=function(Mt){var jt=Mt.nodeId,Rt=Mt.value;nt.getNode(jt).nodeValue=Rt},_.setOuterHTML=function(Mt){var jt=Mt.nodeId,Rt=Mt.outerHTML;nt.getNode(jt).outerHTML=Rt},_.getDOMNodeId=function(Mt){var jt=Mt.node;return{nodeId:rt.getOrCreateNodeId(jt)}},_.getDOMNode=function(Mt){var jt=Mt.nodeId;return{node:nt.getNode(jt)}},at.default.on("attributes",function(Mt,jt){var Rt=nt.getNodeId(Mt);if(Rt){var zt=Mt.getAttribute(jt);dt.default(zt)?tt.default.trigger("DOM.attributeRemoved",{nodeId:Rt,name:jt}):tt.default.trigger("DOM.attributeModified",{nodeId:Rt,name:jt,value:zt})}}),at.default.on("childList",function(Mt,jt,Rt){var zt=nt.getNodeId(Mt);if(zt){if(jt=rt.filterNodes(jt),Rt=rt.filterNodes(Rt),!ut.default(jt)){En();for(var Xt=0,Jt=jt.length;Xt0||At)&&(St.children=ft(pt,yt)),St}function ft(pt,lt){var wt=st(pt.childNodes);return j.default(wt,function(yt){return ht(yt,{depth:lt-1})})}function st(pt){return $.default(pt,function(lt){return ct(lt)})}function ct(pt){if(pt.nodeType===1){var lt=pt.getAttribute("class")||"";if(rt.default(lt,"__chobitsu-hide__")||rt.default(lt,"html2canvas-container"))return!1}var wt=!(pt.nodeType===3&&tt.default(pt.nodeValue||"")==="");return wt&&pt.parentNode?ct(pt.parentNode):wt}_.getOrCreateNodeId=ut,_.clear=function(){at.clear(),it.clear()},_.getNodeId=function(pt){return it.get(pt)},_.wrap=ht,_.getChildNodes=ft,_.getPreviousNode=function(pt){var lt=pt.previousSibling;if(lt){for(;!ct(lt)&<.previousSibling;)lt=lt.previousSibling;return lt&&ct(lt)?lt:void 0}},_.filterNodes=st,_.isValidNode=ct,_.getNode=function(pt){var lt=at.get(pt);if(!lt||lt.nodeType===10)throw ot.createErr(-32e3,"Could not find node with given id");return lt}},7923:function(b,_,d){var k=this&&this.__importDefault||function(Kt){return Kt&&Kt.__esModule?Kt:{default:Kt}};Object.defineProperty(_,"__esModule",{value:!0}),_.getProperties=_.releaseObj=_.getObj=_.wrap=_.clear=void 0;var j=k(d(3367)),$=k(d(6156)),et=k(d(6472)),tt=k(d(4777)),rt=k(d(9833)),nt=k(d(2749)),ot=k(d(3708)),at=k(d(7470)),it=k(d(1754)),dt=k(d(3085)),ut=k(d(2533)),ht=k(d(300)),ft=k(d(1116)),st=k(d(8740)),ct=k(d(415)),pt=k(d(9804)),lt=k(d(6257)),wt=new Map,yt=new Map,vt=new Map,St=new Map,xt=1;function bt(Kt,Zt){var dn=yt.get(Kt);return dn||(dn=JSON.stringify({injectedScriptId:0,id:xt++}),yt.set(Kt,dn),wt.set(dn,Kt),vt.set(dn,Zt),dn)}function At(Kt,Zt){var dn=Zt===void 0?{}:Zt,An=dn.generatePreview,En=An!==void 0&&An,yn=dn.self,jn=yn===void 0?Kt:yn,Vn=zt(Kt),rn=Vn.type,xn=Vn.subtype;return rn==="undefined"?Vn:rn==="string"||rn==="boolean"||xn==="null"?(Vn.value=Kt,Vn):(Vn.description=Rt(Kt,jn),rn==="number"?(Vn.value=Kt,Vn):rn==="symbol"?(Vn.objectId=bt(Kt,jn),Vn):(Vn.className=rn==="function"?"Function":xn==="array"?"Array":xn==="map"?"Map":xn==="set"?"Set":xn==="regexp"?"RegExp":xn==="error"?Kt.name:dt.default(Kt,!1),En&&(Vn.preview=Mt(Kt,jn)),Vn.objectId=bt(Kt,jn),Vn))}function _t(Kt){return wt.get(Kt)}_.clear=function(){wt.clear(),yt.clear(),vt.clear()},_.wrap=At,_.getObj=_t,_.releaseObj=function(Kt){var Zt=_t(Kt);yt.delete(Zt),vt.delete(Kt),wt.delete(Kt)},_.getProperties=function(Kt){for(var Zt=Kt.accessorPropertiesOnly,dn=Kt.objectId,An=Kt.ownProperties,En=Kt.generatePreview,yn=[],jn={prototype:!An,unenumerable:!0,symbol:!Zt},Vn=wt.get(dn),rn=vt.get(dn),xn=ft.default(Vn,jn),fn=ct.default(Vn),Sn=0,bn=xn.length;SnCt&&(jn=Ct,An=!0);for(var Vn=0;VnCt){An=!0;break}xn.push({key:Mt(Sn),value:Mt(Kt.get(Sn))}),Vn++,Sn=fn.next().value}dn.entries=xn}else if(at.default(Kt)){var bn=[],hn=(Vn=0,Kt.keys());for(Sn=hn.next().value;Sn;){if(Vn>Ct){An=!0;break}bn.push({value:Mt(Sn)}),Vn++,Sn=hn.next().value}dn.entries=bn}return dn.overflow=An,dn}function jt(Kt,Zt){var dn=zt(Zt);dn.name=Kt;var An,En=dn.subtype;return An=dn.type==="object"?En==="null"?"null":En==="array"?"Array("+Zt.length+")":En==="map"?"Map("+Zt.size+")":En==="set"?"Set("+Zt.size+")":dt.default(Zt,!1):j.default(Zt),dn.value=An,dn}function Rt(Kt,Zt){Zt===void 0&&(Zt=Kt);var dn=zt(Kt),An=dn.type,En=dn.subtype;return An==="string"?Kt:An==="number"||An==="symbol"?j.default(Kt):An==="function"?ht.default(Kt):En==="array"?"Array("+Kt.length+")":En==="map"?"Map("+Zt.size+")":En==="set"?"Set("+Zt.size+")":En==="regexp"?j.default(Kt):En==="error"?Kt.stack:En==="internal#entry"?Kt.name?'{"'+j.default(Kt.name)+'" => "'+j.default(Kt.value)+'"}':'"'+j.default(Kt.value)+'"':dt.default(Kt,!1)}function zt(Kt){var Zt=typeof Kt,dn="object";if(Kt instanceof Xt)dn="internal#entry";else if($.default(Kt))dn="null";else if(et.default(Kt))dn="array";else if(it.default(Kt))dn="regexp";else if(nt.default(Kt))dn="error";else if(ot.default(Kt))dn="map";else if(at.default(Kt))dn="set";else try{rt.default(Kt)&&(dn="node")}catch{}return{type:Zt,subtype:dn}}var Xt=function(Kt,Zt){Zt&&(this.name=Zt),this.value=Kt};function Jt(Kt){return Kt instanceof Xt||!!(Kt[0]&&Kt[0]instanceof Xt)}},2636:function(b,_,d){var k,j=this&&this.__extends||(k=function(Ct,Mt){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(jt,Rt){jt.__proto__=Rt}||function(jt,Rt){for(var zt in Rt)Rt.hasOwnProperty(zt)&&(jt[zt]=Rt[zt])},k(Ct,Mt)},function(Ct,Mt){function jt(){this.constructor=Ct}k(Ct,Mt),Ct.prototype=Mt===null?Object.create(Mt):(jt.prototype=Mt.prototype,new jt)}),$=this&&this.__importDefault||function(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}};Object.defineProperty(_,"__esModule",{value:!0}),_.fullUrl=_.FetchRequest=_.XhrRequest=void 0;var et=$(d(1443)),tt=$(d(6768)),rt=$(d(9702)),nt=$(d(6334)),ot=$(d(8887)),at=$(d(4331)),it=$(d(8847)),dt=$(d(3783)),ut=$(d(6930)),ht=$(d(3875)),ft=d(316),st=function(Ct){function Mt(jt,Rt,zt){var Xt=Ct.call(this)||this;return Xt.xhr=jt,Xt.reqHeaders={},Xt.method=Rt,Xt.url=St(zt),Xt.id=ft.createId(),Xt}return j(Mt,Ct),Mt.prototype.toJSON=function(){return{method:this.method,url:this.url,id:this.id}},Mt.prototype.handleSend=function(jt){tt.default(jt)||(jt=""),jt={name:xt(this.url),url:this.url,data:jt,time:it.default(),reqHeaders:this.reqHeaders,method:this.method},ot.default(this.reqHeaders)||(jt.reqHeaders=this.reqHeaders),this.emit("send",this.id,jt)},Mt.prototype.handleReqHeadersSet=function(jt,Rt){jt&&Rt&&(this.reqHeaders[jt]=Rt)},Mt.prototype.handleHeadersReceived=function(){var jt=this.xhr,Rt=bt(jt.getResponseHeader("Content-Type")||"");this.emit("headersReceived",this.id,{type:Rt.type,subType:Rt.subType,size:yt(jt,!0,this.url),time:it.default(),resHeaders:wt(jt)})},Mt.prototype.handleDone=function(){var jt,Rt,zt,Xt=this,Jt=this.xhr,Kt=Jt.responseType,Zt="",dn=function(){Xt.emit("done",Xt.id,{status:Jt.status,size:yt(Jt,!1,Xt.url),time:it.default(),resTxt:Zt})},An=bt(Jt.getResponseHeader("Content-Type")||"");Kt!=="blob"||An.type!=="text"&&An.subType!=="javascript"&&An.subType!=="json"?(Kt!==""&&Kt!=="text"||(Zt=Jt.responseText),Kt==="json"&&(Zt=JSON.stringify(Jt.response)),dn()):(jt=Jt.response,Rt=function(En,yn){yn&&(Zt=yn),dn()},(zt=new FileReader).onload=function(){Rt(null,zt.result)},zt.onerror=function(En){Rt(En)},zt.readAsText(jt))},Mt}(et.default);_.XhrRequest=st;var ct=function(Ct){function Mt(jt,Rt){Rt===void 0&&(Rt={});var zt=Ct.call(this)||this;return jt instanceof window.Request&&(jt=jt.url),zt.url=St(jt),zt.id=ft.createId(),zt.options=Rt,zt.reqHeaders=Rt.headers||{},zt.method=Rt.method||"GET",zt}return j(Mt,Ct),Mt.prototype.send=function(jt){var Rt=this,zt=this.options,Xt=tt.default(zt.body)?zt.body:"";this.emit("send",this.id,{name:xt(this.url),url:this.url,data:Xt,reqHeaders:this.reqHeaders,time:it.default(),method:this.method}),jt.then(function(Jt){var Kt=bt((Jt=Jt.clone()).headers.get("Content-Type"));return Jt.text().then(function(Zt){var dn={type:Kt.type,subType:Kt.subType,time:it.default(),size:pt(Jt,Zt),resTxt:Zt,resHeaders:lt(Jt),status:Jt.status};ot.default(Rt.reqHeaders)||(dn.reqHeaders=Rt.reqHeaders),Rt.emit("done",Rt.id,dn)}),Jt})},Mt}(et.default);function pt(Ct,Mt){var jt=Ct.headers.get("Content-length");return jt?ht.default(jt):_t(Mt)}function lt(Ct){var Mt={};return Ct.headers.forEach(function(jt,Rt){return Mt[Rt]=jt}),Mt}function wt(Ct){var Mt=Ct.getAllResponseHeaders().split(` -`),jt={};return dt.default(Mt,function(Rt){if((Rt=at.default(Rt))!==""){var zt=Rt.split(":",2),Xt=zt[0],Jt=zt[1];jt[Xt]=at.default(Jt)}}),jt}function yt(Ct,Mt,jt){var Rt=0;function zt(){if(!Mt){var Xt=Ct.responseType,Jt="";Xt!==""&&Xt!=="text"||(Jt=Ct.responseText),Jt&&(Rt=_t(Jt))}}if(function(Xt){return!ut.default(Xt,At)}(jt))zt();else try{Rt=ht.default(Ct.getResponseHeader("Content-Length"))}catch{zt()}return Rt===0&&zt(),Rt}_.FetchRequest=ct;var vt=document.createElement("a");function St(Ct){return vt.href=Ct,vt.protocol+"//"+vt.host+vt.pathname+vt.search+vt.hash}function xt(Ct){var Mt=rt.default(Ct.split("/"));return Mt.indexOf("?")>-1&&(Mt=at.default(Mt.split("?")[0])),Mt===""&&(Mt=new nt.default(Ct).hostname),Mt}function bt(Ct){if(!Ct)return{type:"unknown",subType:"unknown"};var Mt=Ct.split(";")[0].split("/");return{type:Mt[0],subType:rt.default(Mt)}}_.fullUrl=St;var At=window.location.origin;function _t(Ct){var Mt=encodeURIComponent(Ct).match(/%[89ABab]/g);return Ct.length+(Mt?Mt.length:0)}},316:function(b,_,d){var k,j=this&&this.__extends||(k=function(ct,pt){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(lt,wt){lt.__proto__=wt}||function(lt,wt){for(var yt in wt)wt.hasOwnProperty(yt)&&(lt[yt]=wt[yt])},k(ct,pt)},function(ct,pt){function lt(){this.constructor=ct}k(ct,pt),ct.prototype=pt===null?Object.create(pt):(lt.prototype=pt.prototype,new lt)}),$=this&&this.__awaiter||function(ct,pt,lt,wt){return new(lt||(lt=Promise))(function(yt,vt){function St(At){try{bt(wt.next(At))}catch(_t){vt(_t)}}function xt(At){try{bt(wt.throw(At))}catch(_t){vt(_t)}}function bt(At){var _t;At.done?yt(At.value):(_t=At.value,_t instanceof lt?_t:new lt(function(Ct){Ct(_t)})).then(St,xt)}bt((wt=wt.apply(ct,pt||[])).next())})},et=this&&this.__generator||function(ct,pt){var lt,wt,yt,vt,St={label:0,sent:function(){if(1&yt[0])throw yt[1];return yt[1]},trys:[],ops:[]};return vt={next:xt(0),throw:xt(1),return:xt(2)},typeof Symbol=="function"&&(vt[Symbol.iterator]=function(){return this}),vt;function xt(bt){return function(At){return function(_t){if(lt)throw new TypeError("Generator is already executing.");for(;St;)try{if(lt=1,wt&&(yt=2&_t[0]?wt.return:_t[0]?wt.throw||((yt=wt.return)&&yt.call(wt),0):wt.next)&&!(yt=yt.call(wt,_t[1])).done)return yt;switch(wt=0,yt&&(_t=[2&_t[0],yt.value]),_t[0]){case 0:case 1:yt=_t;break;case 4:return St.label++,{value:_t[1],done:!1};case 5:St.label++,wt=_t[1],_t=[0];continue;case 7:_t=St.ops.pop(),St.trys.pop();continue;default:if(yt=St.trys,!((yt=yt.length>0&&yt[yt.length-1])||_t[0]!==6&&_t[0]!==2)){St=0;continue}if(_t[0]===3&&(!yt||_t[1]>yt[0]&&_t[1]ut;)if((at=it[ut++])!=at)return!0}else for(;dt>ut;ut++)if((tt||ut in it)&&it[ut]===nt)return tt||ut||0;return!tt&&-1}};b.exports={includes:et(!0),indexOf:et(!1)}},1589:function(b,_,d){var k=d(1400),j=d(6244),$=d(6135),et=Array,tt=Math.max;b.exports=function(rt,nt,ot){for(var at=j(rt),it=k(nt,at),dt=k(ot===void 0?at:ot,at),ut=et(tt(dt-it,0)),ht=0;it1?arguments[1]:void 0);_t=_t?_t.next:Ct.first;)for(Mt(_t.value,_t.key,this);_t&&_t.removed;)_t=_t.previous},has:function(At){return!!bt(this,At)}}),$(vt,lt?{get:function(At){var _t=bt(this,At);return _t&&_t.value},set:function(At,_t){return xt(this,At===0?0:At,_t)}}:{add:function(At){return xt(this,At=At===0?0:At,At)}}),dt&&j(vt,"size",{configurable:!0,get:function(){return St(this).size}}),yt},setStrong:function(ct,pt,lt){var wt=pt+" Iterator",yt=st(pt),vt=st(wt);ot(ct,pt,function(St,xt){ft(this,{type:wt,target:St,state:yt(St),kind:xt,last:void 0})},function(){for(var St=vt(this),xt=St.kind,bt=St.last;bt&&bt.removed;)bt=bt.previous;return St.target&&(St.last=bt=bt?bt.next:St.state.first)?at(xt=="keys"?bt.key:xt=="values"?bt.value:[bt.key,bt.value],!1):(St.target=void 0,at(void 0,!0))},lt?"entries":"values",!lt,!0),it(pt)}}},7710:function(b,_,d){var k=d(2109),j=d(7854),$=d(1702),et=d(4705),tt=d(8052),rt=d(2423),nt=d(408),ot=d(5787),at=d(614),it=d(8554),dt=d(111),ut=d(7293),ht=d(7072),ft=d(8003),st=d(9587);b.exports=function(ct,pt,lt){var wt=ct.indexOf("Map")!==-1,yt=ct.indexOf("Weak")!==-1,vt=wt?"set":"add",St=j[ct],xt=St&&St.prototype,bt=St,At={},_t=function(Xt){var Jt=$(xt[Xt]);tt(xt,Xt,Xt=="add"?function(Kt){return Jt(this,Kt===0?0:Kt),this}:Xt=="delete"?function(Kt){return!(yt&&!dt(Kt))&&Jt(this,Kt===0?0:Kt)}:Xt=="get"?function(Kt){return yt&&!dt(Kt)?void 0:Jt(this,Kt===0?0:Kt)}:Xt=="has"?function(Kt){return!(yt&&!dt(Kt))&&Jt(this,Kt===0?0:Kt)}:function(Kt,Zt){return Jt(this,Kt===0?0:Kt,Zt),this})};if(et(ct,!at(St)||!(yt||xt.forEach&&!ut(function(){new St().entries().next()}))))bt=lt.getConstructor(pt,ct,wt,vt),rt.enable();else if(et(ct,!0)){var Ct=new bt,Mt=Ct[vt](yt?{}:-0,1)!=Ct,jt=ut(function(){Ct.has(1)}),Rt=ht(function(Xt){new St(Xt)}),zt=!yt&&ut(function(){for(var Xt=new St,Jt=5;Jt--;)Xt[vt](Jt,Jt);return!Xt.has(-0)});Rt||((bt=pt(function(Xt,Jt){ot(Xt,xt);var Kt=st(new St,Xt,bt);return it(Jt)||nt(Jt,Kt[vt],{that:Kt,AS_ENTRIES:wt}),Kt})).prototype=xt,xt.constructor=bt),(jt||zt)&&(_t("delete"),_t("has"),wt&&_t("get")),(zt||Mt)&&_t(vt),yt&&xt.clear&&delete xt.clear}return At[ct]=bt,k({global:!0,constructor:!0,forced:bt!=St},At),ft(bt,ct),yt||lt.setStrong(bt,ct,wt),bt}},9920:function(b,_,d){var k=d(2597),j=d(3887),$=d(1236),et=d(3070);b.exports=function(tt,rt,nt){for(var ot=j(rt),at=et.f,it=$.f,dt=0;dt0&&k[0]<4?1:+(k[0]+k[1])),!j&&et&&(!(k=et.match(/Edge\/(\d+)/))||k[1]>=74)&&(k=et.match(/Chrome\/(\d+)/))&&(j=+k[1]),b.exports=j},748:function(b){b.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1060:function(b,_,d){var k=d(1702),j=Error,$=k("".replace),et=String(j("zxcasd").stack),tt=/\n\s*at [^:]*:[^\n]*/,rt=tt.test(et);b.exports=function(nt,ot){if(rt&&typeof nt=="string"&&!j.prepareStackTrace)for(;ot--;)nt=$(nt,tt,"");return nt}},5392:function(b,_,d){var k=d(8880),j=d(1060),$=d(2914),et=Error.captureStackTrace;b.exports=function(tt,rt,nt,ot){$&&(et?et(tt,rt):k(tt,"stack",j(nt,ot)))}},2914:function(b,_,d){var k=d(7293),j=d(9114);b.exports=!k(function(){var $=Error("a");return!("stack"in $)||(Object.defineProperty($,"stack",j(1,7)),$.stack!==7)})},2109:function(b,_,d){var k=d(7854),j=d(1236).f,$=d(8880),et=d(8052),tt=d(3072),rt=d(9920),nt=d(4705);b.exports=function(ot,at){var it,dt,ut,ht,ft,st=ot.target,ct=ot.global,pt=ot.stat;if(it=ct?k:pt?k[st]||tt(st,{}):(k[st]||{}).prototype)for(dt in at){if(ht=at[dt],ut=ot.dontCallGetSet?(ft=j(it,dt))&&ft.value:it[dt],!nt(ct?dt:st+(pt?".":"#")+dt,ot.forced)&&ut!==void 0){if(typeof ht==typeof ut)continue;rt(ht,ut)}(ot.sham||ut&&ut.sham)&&$(ht,"sham",!0),et(it,dt,ht,ot)}}},7293:function(b){b.exports=function(_){try{return!!_()}catch{return!0}}},6677:function(b,_,d){var k=d(7293);b.exports=!k(function(){return Object.isExtensible(Object.preventExtensions({}))})},2104:function(b,_,d){var k=d(4374),j=Function.prototype,$=j.apply,et=j.call;b.exports=typeof Reflect=="object"&&Reflect.apply||(k?et.bind($):function(){return et.apply($,arguments)})},9974:function(b,_,d){var k=d(1470),j=d(9662),$=d(4374),et=k(k.bind);b.exports=function(tt,rt){return j(tt),rt===void 0?tt:$?et(tt,rt):function(){return tt.apply(rt,arguments)}}},4374:function(b,_,d){var k=d(7293);b.exports=!k(function(){var j=(function(){}).bind();return typeof j!="function"||j.hasOwnProperty("prototype")})},6916:function(b,_,d){var k=d(4374),j=Function.prototype.call;b.exports=k?j.bind(j):function(){return j.apply(j,arguments)}},6530:function(b,_,d){var k=d(9781),j=d(2597),$=Function.prototype,et=k&&Object.getOwnPropertyDescriptor,tt=j($,"name"),rt=tt&&(function(){}).name==="something",nt=tt&&(!k||k&&et($,"name").configurable);b.exports={EXISTS:tt,PROPER:rt,CONFIGURABLE:nt}},5668:function(b,_,d){var k=d(1702),j=d(9662);b.exports=function($,et,tt){try{return k(j(Object.getOwnPropertyDescriptor($,et)[tt]))}catch{}}},1470:function(b,_,d){var k=d(4326),j=d(1702);b.exports=function($){if(k($)==="Function")return j($)}},1702:function(b,_,d){var k=d(4374),j=Function.prototype,$=j.call,et=k&&j.bind.bind($,$);b.exports=k?et:function(tt){return function(){return $.apply(tt,arguments)}}},5005:function(b,_,d){var k=d(7854),j=d(614),$=function(et){return j(et)?et:void 0};b.exports=function(et,tt){return arguments.length<2?$(k[et]):k[et]&&k[et][tt]}},1246:function(b,_,d){var k=d(648),j=d(8173),$=d(8554),et=d(7497),tt=d(5112)("iterator");b.exports=function(rt){if(!$(rt))return j(rt,tt)||j(rt,"@@iterator")||et[k(rt)]}},4121:function(b,_,d){var k=d(6916),j=d(9662),$=d(9670),et=d(6330),tt=d(1246),rt=TypeError;b.exports=function(nt,ot){var at=arguments.length<2?tt(nt):ot;if(j(at))return $(k(at,nt));throw rt(et(nt)+" is not iterable")}},8173:function(b,_,d){var k=d(9662),j=d(8554);b.exports=function($,et){var tt=$[et];return j(tt)?void 0:k(tt)}},7854:function(b,_,d){var k=function(j){return j&&j.Math==Math&&j};b.exports=k(typeof globalThis=="object"&&globalThis)||k(typeof window=="object"&&window)||k(typeof self=="object"&&self)||k(typeof d.g=="object"&&d.g)||function(){return this}()||Function("return this")()},2597:function(b,_,d){var k=d(1702),j=d(7908),$=k({}.hasOwnProperty);b.exports=Object.hasOwn||function(et,tt){return $(j(et),tt)}},3501:function(b){b.exports={}},842:function(b){b.exports=function(_,d){try{arguments.length==1?console.error(_):console.error(_,d)}catch{}}},490:function(b,_,d){var k=d(5005);b.exports=k("document","documentElement")},4664:function(b,_,d){var k=d(9781),j=d(7293),$=d(317);b.exports=!k&&!j(function(){return Object.defineProperty($("div"),"a",{get:function(){return 7}}).a!=7})},8361:function(b,_,d){var k=d(1702),j=d(7293),$=d(4326),et=Object,tt=k("".split);b.exports=j(function(){return!et("z").propertyIsEnumerable(0)})?function(rt){return $(rt)=="String"?tt(rt,""):et(rt)}:et},9587:function(b,_,d){var k=d(614),j=d(111),$=d(7674);b.exports=function(et,tt,rt){var nt,ot;return $&&k(nt=tt.constructor)&&nt!==rt&&j(ot=nt.prototype)&&ot!==rt.prototype&&$(et,ot),et}},2788:function(b,_,d){var k=d(1702),j=d(614),$=d(5465),et=k(Function.toString);j($.inspectSource)||($.inspectSource=function(tt){return et(tt)}),b.exports=$.inspectSource},8340:function(b,_,d){var k=d(111),j=d(8880);b.exports=function($,et){k(et)&&"cause"in et&&j($,"cause",et.cause)}},2423:function(b,_,d){var k=d(2109),j=d(1702),$=d(3501),et=d(111),tt=d(2597),rt=d(3070).f,nt=d(8006),ot=d(1156),at=d(2050),it=d(9711),dt=d(6677),ut=!1,ht=it("meta"),ft=0,st=function(pt){rt(pt,ht,{value:{objectID:"O"+ft++,weakData:{}}})},ct=b.exports={enable:function(){ct.enable=function(){},ut=!0;var pt=nt.f,lt=j([].splice),wt={};wt[ht]=1,pt(wt).length&&(nt.f=function(yt){for(var vt=pt(yt),St=0,xt=vt.length;Stwt;wt++)if((vt=zt(ft[wt]))&&nt(ht,vt))return vt;return new ut(!1)}pt=ot(ft,lt)}for(St=_t?ft.next:pt.next;!(xt=j(St,pt)).done;){try{vt=zt(xt.value)}catch(Xt){it(pt,"throw",Xt)}if(typeof vt=="object"&&vt&&nt(ht,vt))return vt}return new ut(!1)}},9212:function(b,_,d){var k=d(6916),j=d(9670),$=d(8173);b.exports=function(et,tt,rt){var nt,ot;j(et);try{if(!(nt=$(et,"return"))){if(tt==="throw")throw rt;return rt}nt=k(nt,et)}catch(at){ot=!0,nt=at}if(tt==="throw")throw rt;if(ot)throw nt;return j(nt),rt}},3061:function(b,_,d){var k=d(3383).IteratorPrototype,j=d(30),$=d(9114),et=d(8003),tt=d(7497),rt=function(){return this};b.exports=function(nt,ot,at,it){var dt=ot+" Iterator";return nt.prototype=j(k,{next:$(+!it,at)}),et(nt,dt,!1,!0),tt[dt]=rt,nt}},1656:function(b,_,d){var k=d(2109),j=d(6916),$=d(1913),et=d(6530),tt=d(614),rt=d(3061),nt=d(9518),ot=d(7674),at=d(8003),it=d(8880),dt=d(8052),ut=d(5112),ht=d(7497),ft=d(3383),st=et.PROPER,ct=et.CONFIGURABLE,pt=ft.IteratorPrototype,lt=ft.BUGGY_SAFARI_ITERATORS,wt=ut("iterator"),yt="keys",vt="values",St="entries",xt=function(){return this};b.exports=function(bt,At,_t,Ct,Mt,jt,Rt){rt(_t,At,Ct);var zt,Xt,Jt,Kt=function(Vn){if(Vn===Mt&&yn)return yn;if(!lt&&Vn in An)return An[Vn];switch(Vn){case yt:case vt:case St:return function(){return new _t(this,Vn)}}return function(){return new _t(this)}},Zt=At+" Iterator",dn=!1,An=bt.prototype,En=An[wt]||An["@@iterator"]||Mt&&An[Mt],yn=!lt&&En||Kt(Mt),jn=At=="Array"&&An.entries||En;if(jn&&(zt=nt(jn.call(new bt)))!==Object.prototype&&zt.next&&($||nt(zt)===pt||(ot?ot(zt,pt):tt(zt[wt])||dt(zt,wt,xt)),at(zt,Zt,!0,!0),$&&(ht[Zt]=xt)),st&&Mt==vt&&En&&En.name!==vt&&(!$&&ct?it(An,"name",vt):(dn=!0,yn=function(){return j(En,this)})),Mt)if(Xt={values:Kt(vt),keys:jt?yn:Kt(yt),entries:Kt(St)},Rt)for(Jt in Xt)(lt||dn||!(Jt in An))&&dt(An,Jt,Xt[Jt]);else k({target:At,proto:!0,forced:lt||dn},Xt);return $&&!Rt||An[wt]===yn||dt(An,wt,yn,{name:Mt}),ht[At]=yn,Xt}},3383:function(b,_,d){var k,j,$,et=d(7293),tt=d(614),rt=d(111),nt=d(30),ot=d(9518),at=d(8052),it=d(5112),dt=d(1913),ut=it("iterator"),ht=!1;[].keys&&("next"in($=[].keys())?(j=ot(ot($)))!==Object.prototype&&(k=j):ht=!0),!rt(k)||et(function(){var ft={};return k[ut].call(ft)!==ft})?k={}:dt&&(k=nt(k)),tt(k[ut])||at(k,ut,function(){return this}),b.exports={IteratorPrototype:k,BUGGY_SAFARI_ITERATORS:ht}},7497:function(b){b.exports={}},6244:function(b,_,d){var k=d(7466);b.exports=function(j){return k(j.length)}},6339:function(b,_,d){var k=d(1702),j=d(7293),$=d(614),et=d(2597),tt=d(9781),rt=d(6530).CONFIGURABLE,nt=d(2788),ot=d(9909),at=ot.enforce,it=ot.get,dt=String,ut=Object.defineProperty,ht=k("".slice),ft=k("".replace),st=k([].join),ct=tt&&!j(function(){return ut(function(){},"length",{value:8}).length!==8}),pt=String(String).split("String"),lt=b.exports=function(wt,yt,vt){ht(dt(yt),0,7)==="Symbol("&&(yt="["+ft(dt(yt),/^Symbol\(([^)]*)\)/,"$1")+"]"),vt&&vt.getter&&(yt="get "+yt),vt&&vt.setter&&(yt="set "+yt),(!et(wt,"name")||rt&&wt.name!==yt)&&(tt?ut(wt,"name",{value:yt,configurable:!0}):wt.name=yt),ct&&vt&&et(vt,"arity")&&wt.length!==vt.arity&&ut(wt,"length",{value:vt.arity});try{vt&&et(vt,"constructor")&&vt.constructor?tt&&ut(wt,"prototype",{writable:!1}):wt.prototype&&(wt.prototype=void 0)}catch{}var St=at(wt);return et(St,"source")||(St.source=st(pt,typeof yt=="string"?yt:"")),wt};Function.prototype.toString=lt(function(){return $(this)&&it(this).source||nt(this)},"toString")},4758:function(b){var _=Math.ceil,d=Math.floor;b.exports=Math.trunc||function(k){var j=+k;return(j>0?d:_)(j)}},5948:function(b,_,d){var k,j,$,et,tt,rt=d(7854),nt=d(9974),ot=d(1236).f,at=d(261).set,it=d(8572),dt=d(6833),ut=d(1528),ht=d(1036),ft=d(5268),st=rt.MutationObserver||rt.WebKitMutationObserver,ct=rt.document,pt=rt.process,lt=rt.Promise,wt=ot(rt,"queueMicrotask"),yt=wt&&wt.value;if(!yt){var vt=new it,St=function(){var xt,bt;for(ft&&(xt=pt.domain)&&xt.exit();bt=vt.get();)try{bt()}catch(At){throw vt.head&&k(),At}xt&&xt.enter()};dt||ft||ht||!st||!ct?!ut&<&<.resolve?((et=lt.resolve(void 0)).constructor=lt,tt=nt(et.then,et),k=function(){tt(St)}):ft?k=function(){pt.nextTick(St)}:(at=nt(at,rt),k=function(){at(St)}):(j=!0,$=ct.createTextNode(""),new st(St).observe($,{characterData:!0}),k=function(){$.data=j=!j}),yt=function(xt){vt.head||k(),vt.add(xt)}}b.exports=yt},8523:function(b,_,d){var k=d(9662),j=TypeError,$=function(et){var tt,rt;this.promise=new et(function(nt,ot){if(tt!==void 0||rt!==void 0)throw j("Bad Promise constructor");tt=nt,rt=ot}),this.resolve=k(tt),this.reject=k(rt)};b.exports.f=function(et){return new $(et)}},6277:function(b,_,d){var k=d(1340);b.exports=function(j,$){return j===void 0?arguments.length<2?"":$:k(j)}},30:function(b,_,d){var k,j=d(9670),$=d(6048),et=d(748),tt=d(3501),rt=d(490),nt=d(317),ot=d(6200),at="prototype",it="script",dt=ot("IE_PROTO"),ut=function(){},ht=function(ct){return"<"+it+">"+ct+""},ft=function(ct){ct.write(ht("")),ct.close();var pt=ct.parentWindow.Object;return ct=null,pt},st=function(){try{k=new ActiveXObject("htmlfile")}catch{}var ct,pt,lt;st=typeof document<"u"?document.domain&&k?ft(k):(pt=nt("iframe"),lt="java"+it+":",pt.style.display="none",rt.appendChild(pt),pt.src=String(lt),(ct=pt.contentWindow.document).open(),ct.write(ht("document.F=Object")),ct.close(),ct.F):ft(k);for(var wt=et.length;wt--;)delete st[at][et[wt]];return st()};tt[dt]=!0,b.exports=Object.create||function(ct,pt){var lt;return ct!==null?(ut[at]=j(ct),lt=new ut,ut[at]=null,lt[dt]=ct):lt=st(),pt===void 0?lt:$.f(lt,pt)}},6048:function(b,_,d){var k=d(9781),j=d(3353),$=d(3070),et=d(9670),tt=d(5656),rt=d(1956);_.f=k&&!j?Object.defineProperties:function(nt,ot){et(nt);for(var at,it=tt(ot),dt=rt(ot),ut=dt.length,ht=0;ut>ht;)$.f(nt,at=dt[ht++],it[at]);return nt}},3070:function(b,_,d){var k=d(9781),j=d(4664),$=d(3353),et=d(9670),tt=d(4948),rt=TypeError,nt=Object.defineProperty,ot=Object.getOwnPropertyDescriptor,at="enumerable",it="configurable",dt="writable";_.f=k?$?function(ut,ht,ft){if(et(ut),ht=tt(ht),et(ft),typeof ut=="function"&&ht==="prototype"&&"value"in ft&&dt in ft&&!ft[dt]){var st=ot(ut,ht);st&&st[dt]&&(ut[ht]=ft.value,ft={configurable:it in ft?ft[it]:st[it],enumerable:at in ft?ft[at]:st[at],writable:!1})}return nt(ut,ht,ft)}:nt:function(ut,ht,ft){if(et(ut),ht=tt(ht),et(ft),j)try{return nt(ut,ht,ft)}catch{}if("get"in ft||"set"in ft)throw rt("Accessors not supported");return"value"in ft&&(ut[ht]=ft.value),ut}},1236:function(b,_,d){var k=d(9781),j=d(6916),$=d(5296),et=d(9114),tt=d(5656),rt=d(4948),nt=d(2597),ot=d(4664),at=Object.getOwnPropertyDescriptor;_.f=k?at:function(it,dt){if(it=tt(it),dt=rt(dt),ot)try{return at(it,dt)}catch{}if(nt(it,dt))return et(!j($.f,it,dt),it[dt])}},1156:function(b,_,d){var k=d(4326),j=d(5656),$=d(8006).f,et=d(1589),tt=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];b.exports.f=function(rt){return tt&&k(rt)=="Window"?function(nt){try{return $(nt)}catch{return et(tt)}}(rt):$(j(rt))}},8006:function(b,_,d){var k=d(6324),j=d(748).concat("length","prototype");_.f=Object.getOwnPropertyNames||function($){return k($,j)}},5181:function(b,_){_.f=Object.getOwnPropertySymbols},9518:function(b,_,d){var k=d(2597),j=d(614),$=d(7908),et=d(6200),tt=d(8544),rt=et("IE_PROTO"),nt=Object,ot=nt.prototype;b.exports=tt?nt.getPrototypeOf:function(at){var it=$(at);if(k(it,rt))return it[rt];var dt=it.constructor;return j(dt)&&it instanceof dt?dt.prototype:it instanceof nt?ot:null}},2050:function(b,_,d){var k=d(7293),j=d(111),$=d(4326),et=d(7556),tt=Object.isExtensible,rt=k(function(){});b.exports=rt||et?function(nt){return!!j(nt)&&(!et||$(nt)!="ArrayBuffer")&&(!tt||tt(nt))}:tt},7976:function(b,_,d){var k=d(1702);b.exports=k({}.isPrototypeOf)},6324:function(b,_,d){var k=d(1702),j=d(2597),$=d(5656),et=d(1318).indexOf,tt=d(3501),rt=k([].push);b.exports=function(nt,ot){var at,it=$(nt),dt=0,ut=[];for(at in it)!j(tt,at)&&j(it,at)&&rt(ut,at);for(;ot.length>dt;)j(it,at=ot[dt++])&&(~et(ut,at)||rt(ut,at));return ut}},1956:function(b,_,d){var k=d(6324),j=d(748);b.exports=Object.keys||function($){return k($,j)}},5296:function(b,_){var d={}.propertyIsEnumerable,k=Object.getOwnPropertyDescriptor,j=k&&!d.call({1:2},1);_.f=j?function($){var et=k(this,$);return!!et&&et.enumerable}:d},7674:function(b,_,d){var k=d(5668),j=d(9670),$=d(6077);b.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var et,tt=!1,rt={};try{(et=k(Object.prototype,"__proto__","set"))(rt,[]),tt=rt instanceof Array}catch{}return function(nt,ot){return j(nt),$(ot),tt?et(nt,ot):nt.__proto__=ot,nt}}():void 0)},288:function(b,_,d){var k=d(1694),j=d(648);b.exports=k?{}.toString:function(){return"[object "+j(this)+"]"}},2140:function(b,_,d){var k=d(6916),j=d(614),$=d(111),et=TypeError;b.exports=function(tt,rt){var nt,ot;if(rt==="string"&&j(nt=tt.toString)&&!$(ot=k(nt,tt))||j(nt=tt.valueOf)&&!$(ot=k(nt,tt))||rt!=="string"&&j(nt=tt.toString)&&!$(ot=k(nt,tt)))return ot;throw et("Can't convert object to primitive value")}},3887:function(b,_,d){var k=d(5005),j=d(1702),$=d(8006),et=d(5181),tt=d(9670),rt=j([].concat);b.exports=k("Reflect","ownKeys")||function(nt){var ot=$.f(tt(nt)),at=et.f;return at?rt(ot,at(nt)):ot}},857:function(b,_,d){var k=d(7854);b.exports=k},2534:function(b){b.exports=function(_){try{return{error:!1,value:_()}}catch(d){return{error:!0,value:d}}}},3702:function(b,_,d){var k=d(7854),j=d(2492),$=d(614),et=d(4705),tt=d(2788),rt=d(5112),nt=d(7871),ot=d(3823),at=d(1913),it=d(7392),dt=j&&j.prototype,ut=rt("species"),ht=!1,ft=$(k.PromiseRejectionEvent),st=et("Promise",function(){var ct=tt(j),pt=ct!==String(j);if(!pt&&it===66||at&&(!dt.catch||!dt.finally))return!0;if(!it||it<51||!/native code/.test(ct)){var lt=new j(function(yt){yt(1)}),wt=function(yt){yt(function(){},function(){})};if((lt.constructor={})[ut]=wt,!(ht=lt.then(function(){})instanceof wt))return!0}return!pt&&(nt||ot)&&!ft});b.exports={CONSTRUCTOR:st,REJECTION_EVENT:ft,SUBCLASSING:ht}},2492:function(b,_,d){var k=d(7854);b.exports=k.Promise},9478:function(b,_,d){var k=d(9670),j=d(111),$=d(8523);b.exports=function(et,tt){if(k(et),j(tt)&&tt.constructor===et)return tt;var rt=$.f(et);return(0,rt.resolve)(tt),rt.promise}},612:function(b,_,d){var k=d(2492),j=d(7072),$=d(3702).CONSTRUCTOR;b.exports=$||!j(function(et){k.all(et).then(void 0,function(){})})},8572:function(b){var _=function(){this.head=null,this.tail=null};_.prototype={add:function(d){var k={item:d,next:null},j=this.tail;j?j.next=k:this.head=k,this.tail=k},get:function(){var d=this.head;if(d)return(this.head=d.next)===null&&(this.tail=null),d.item}},b.exports=_},4488:function(b,_,d){var k=d(8554),j=TypeError;b.exports=function($){if(k($))throw j("Can't call method on "+$);return $}},6340:function(b,_,d){var k=d(5005),j=d(7045),$=d(5112),et=d(9781),tt=$("species");b.exports=function(rt){var nt=k(rt);et&&nt&&!nt[tt]&&j(nt,tt,{configurable:!0,get:function(){return this}})}},8003:function(b,_,d){var k=d(3070).f,j=d(2597),$=d(5112)("toStringTag");b.exports=function(et,tt,rt){et&&!rt&&(et=et.prototype),et&&!j(et,$)&&k(et,$,{configurable:!0,value:tt})}},6200:function(b,_,d){var k=d(2309),j=d(9711),$=k("keys");b.exports=function(et){return $[et]||($[et]=j(et))}},5465:function(b,_,d){var k=d(7854),j=d(3072),$="__core-js_shared__",et=k[$]||j($,{});b.exports=et},2309:function(b,_,d){var k=d(1913),j=d(5465);(b.exports=function($,et){return j[$]||(j[$]=et!==void 0?et:{})})("versions",[]).push({version:"3.29.0",mode:k?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6707:function(b,_,d){var k=d(9670),j=d(9483),$=d(8554),et=d(5112)("species");b.exports=function(tt,rt){var nt,ot=k(tt).constructor;return ot===void 0||$(nt=k(ot)[et])?rt:j(nt)}},8710:function(b,_,d){var k=d(1702),j=d(9303),$=d(1340),et=d(4488),tt=k("".charAt),rt=k("".charCodeAt),nt=k("".slice),ot=function(at){return function(it,dt){var ut,ht,ft=$(et(it)),st=j(dt),ct=ft.length;return st<0||st>=ct?at?"":void 0:(ut=rt(ft,st))<55296||ut>56319||st+1===ct||(ht=rt(ft,st+1))<56320||ht>57343?at?tt(ft,st):ut:at?nt(ft,st,st+2):ht-56320+(ut-55296<<10)+65536}};b.exports={codeAt:ot(!1),charAt:ot(!0)}},6293:function(b,_,d){var k=d(7392),j=d(7293);b.exports=!!Object.getOwnPropertySymbols&&!j(function(){var $=Symbol();return!String($)||!(Object($)instanceof Symbol)||!Symbol.sham&&k&&k<41})},261:function(b,_,d){var k,j,$,et,tt=d(7854),rt=d(2104),nt=d(9974),ot=d(614),at=d(2597),it=d(7293),dt=d(490),ut=d(206),ht=d(317),ft=d(8053),st=d(6833),ct=d(5268),pt=tt.setImmediate,lt=tt.clearImmediate,wt=tt.process,yt=tt.Dispatch,vt=tt.Function,St=tt.MessageChannel,xt=tt.String,bt=0,At={},_t="onreadystatechange";it(function(){k=tt.location});var Ct=function(zt){if(at(At,zt)){var Xt=At[zt];delete At[zt],Xt()}},Mt=function(zt){return function(){Ct(zt)}},jt=function(zt){Ct(zt.data)},Rt=function(zt){tt.postMessage(xt(zt),k.protocol+"//"+k.host)};pt&<||(pt=function(zt){ft(arguments.length,1);var Xt=ot(zt)?zt:vt(zt),Jt=ut(arguments,1);return At[++bt]=function(){rt(Xt,void 0,Jt)},j(bt),bt},lt=function(zt){delete At[zt]},ct?j=function(zt){wt.nextTick(Mt(zt))}:yt&&yt.now?j=function(zt){yt.now(Mt(zt))}:St&&!st?(et=($=new St).port2,$.port1.onmessage=jt,j=nt(et.postMessage,et)):tt.addEventListener&&ot(tt.postMessage)&&!tt.importScripts&&k&&k.protocol!=="file:"&&!it(Rt)?(j=Rt,tt.addEventListener("message",jt,!1)):j=_t in ht("script")?function(zt){dt.appendChild(ht("script"))[_t]=function(){dt.removeChild(this),Ct(zt)}}:function(zt){setTimeout(Mt(zt),0)}),b.exports={set:pt,clear:lt}},1400:function(b,_,d){var k=d(9303),j=Math.max,$=Math.min;b.exports=function(et,tt){var rt=k(et);return rt<0?j(rt+tt,0):$(rt,tt)}},5656:function(b,_,d){var k=d(8361),j=d(4488);b.exports=function($){return k(j($))}},9303:function(b,_,d){var k=d(4758);b.exports=function(j){var $=+j;return $!=$||$===0?0:k($)}},7466:function(b,_,d){var k=d(9303),j=Math.min;b.exports=function($){return $>0?j(k($),9007199254740991):0}},7908:function(b,_,d){var k=d(4488),j=Object;b.exports=function($){return j(k($))}},7593:function(b,_,d){var k=d(6916),j=d(111),$=d(2190),et=d(8173),tt=d(2140),rt=d(5112),nt=TypeError,ot=rt("toPrimitive");b.exports=function(at,it){if(!j(at)||$(at))return at;var dt,ut=et(at,ot);if(ut){if(it===void 0&&(it="default"),dt=k(ut,at,it),!j(dt)||$(dt))return dt;throw nt("Can't convert object to primitive value")}return it===void 0&&(it="number"),tt(at,it)}},4948:function(b,_,d){var k=d(7593),j=d(2190);b.exports=function($){var et=k($,"string");return j(et)?et:et+""}},1694:function(b,_,d){var k={};k[d(5112)("toStringTag")]="z",b.exports=String(k)==="[object z]"},1340:function(b,_,d){var k=d(648),j=String;b.exports=function($){if(k($)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return j($)}},6330:function(b){var _=String;b.exports=function(d){try{return _(d)}catch{return"Object"}}},9711:function(b,_,d){var k=d(1702),j=0,$=Math.random(),et=k(1 .toString);b.exports=function(tt){return"Symbol("+(tt===void 0?"":tt)+")_"+et(++j+$,36)}},3307:function(b,_,d){var k=d(6293);b.exports=k&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},3353:function(b,_,d){var k=d(9781),j=d(7293);b.exports=k&&j(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},8053:function(b){var _=TypeError;b.exports=function(d,k){if(d2&&at(yt,arguments[2]);var St=[];return dt(lt,st,{that:St}),nt(yt,"errors",St),yt};et?et(ct,ft):tt(ct,ft,{name:!0});var pt=ct.prototype=rt(ft.prototype,{constructor:ot(1,ct),message:ot(1,""),name:ot(1,"AggregateError")});k({global:!0,constructor:!0,arity:2},{AggregateError:ct})},9170:function(b,_,d){d(6967)},6992:function(b,_,d){var k=d(5656),j=d(1223),$=d(7497),et=d(9909),tt=d(3070).f,rt=d(1656),nt=d(6178),ot=d(1913),at=d(9781),it="Array Iterator",dt=et.set,ut=et.getterFor(it);b.exports=rt(Array,"Array",function(ft,st){dt(this,{type:it,target:k(ft),index:0,kind:st})},function(){var ft=ut(this),st=ft.target,ct=ft.kind,pt=ft.index++;return!st||pt>=st.length?(ft.target=void 0,nt(void 0,!0)):nt(ct=="keys"?pt:ct=="values"?st[pt]:[pt,st[pt]],!1)},"values");var ht=$.Arguments=$.Array;if(j("keys"),j("values"),j("entries"),!ot&&at&&ht.name!=="values")try{tt(ht,"name",{value:"values"})}catch{}},9098:function(b,_,d){d(7710)("Map",function(k){return function(){return k(this,arguments.length?arguments[0]:void 0)}},d(5631))},1532:function(b,_,d){d(9098)},1539:function(b,_,d){var k=d(1694),j=d(8052),$=d(288);k||j(Object.prototype,"toString",$,{unsafe:!0})},7922:function(b,_,d){var k=d(2109),j=d(6916),$=d(9662),et=d(8523),tt=d(2534),rt=d(408);k({target:"Promise",stat:!0,forced:d(612)},{allSettled:function(nt){var ot=this,at=et.f(ot),it=at.resolve,dt=at.reject,ut=tt(function(){var ht=$(ot.resolve),ft=[],st=0,ct=1;rt(nt,function(pt){var lt=st++,wt=!1;ct++,j(ht,ot,pt).then(function(yt){wt||(wt=!0,ft[lt]={status:"fulfilled",value:yt},--ct||it(ft))},function(yt){wt||(wt=!0,ft[lt]={status:"rejected",reason:yt},--ct||it(ft))})}),--ct||it(ft)});return ut.error&&dt(ut.value),at.promise}})},821:function(b,_,d){var k=d(2109),j=d(6916),$=d(9662),et=d(8523),tt=d(2534),rt=d(408);k({target:"Promise",stat:!0,forced:d(612)},{all:function(nt){var ot=this,at=et.f(ot),it=at.resolve,dt=at.reject,ut=tt(function(){var ht=$(ot.resolve),ft=[],st=0,ct=1;rt(nt,function(pt){var lt=st++,wt=!1;ct++,j(ht,ot,pt).then(function(yt){wt||(wt=!0,ft[lt]=yt,--ct||it(ft))},dt)}),--ct||it(ft)});return ut.error&&dt(ut.value),at.promise}})},4668:function(b,_,d){var k=d(2109),j=d(6916),$=d(9662),et=d(5005),tt=d(8523),rt=d(2534),nt=d(408),ot=d(612),at="No one promise resolved";k({target:"Promise",stat:!0,forced:ot},{any:function(it){var dt=this,ut=et("AggregateError"),ht=tt.f(dt),ft=ht.resolve,st=ht.reject,ct=rt(function(){var pt=$(dt.resolve),lt=[],wt=0,yt=1,vt=!1;nt(it,function(St){var xt=wt++,bt=!1;yt++,j(pt,dt,St).then(function(At){bt||vt||(vt=!0,ft(At))},function(At){bt||vt||(bt=!0,lt[xt]=At,--yt||st(new ut(lt,at)))})}),--yt||st(new ut(lt,at))});return ct.error&&st(ct.value),ht.promise}})},4164:function(b,_,d){var k=d(2109),j=d(1913),$=d(3702).CONSTRUCTOR,et=d(2492),tt=d(5005),rt=d(614),nt=d(8052),ot=et&&et.prototype;if(k({target:"Promise",proto:!0,forced:$,real:!0},{catch:function(it){return this.then(void 0,it)}}),!j&&rt(et)){var at=tt("Promise").prototype.catch;ot.catch!==at&&nt(ot,"catch",at,{unsafe:!0})}},3401:function(b,_,d){var k,j,$,et=d(2109),tt=d(1913),rt=d(5268),nt=d(7854),ot=d(6916),at=d(8052),it=d(7674),dt=d(8003),ut=d(6340),ht=d(9662),ft=d(614),st=d(111),ct=d(5787),pt=d(6707),lt=d(261).set,wt=d(5948),yt=d(842),vt=d(2534),St=d(8572),xt=d(9909),bt=d(2492),At=d(3702),_t=d(8523),Ct="Promise",Mt=At.CONSTRUCTOR,jt=At.REJECTION_EVENT,Rt=At.SUBCLASSING,zt=xt.getterFor(Ct),Xt=xt.set,Jt=bt&&bt.prototype,Kt=bt,Zt=Jt,dn=nt.TypeError,An=nt.document,En=nt.process,yn=_t.f,jn=yn,Vn=!!(An&&An.createEvent&&nt.dispatchEvent),rn="unhandledrejection",xn=function(kn){var Fn;return!(!st(kn)||!ft(Fn=kn.then))&&Fn},fn=function(kn,Fn){var vn,Bn,Pn,Un=Fn.value,pn=Fn.state==1,Vt=pn?kn.ok:kn.fail,qt=kn.resolve,wn=kn.reject,Nn=kn.domain;try{Vt?(pn||(Fn.rejection===2&&ln(Fn),Fn.rejection=1),Vt===!0?vn=Un:(Nn&&Nn.enter(),vn=Vt(Un),Nn&&(Nn.exit(),Pn=!0)),vn===kn.promise?wn(dn("Promise-chain cycle")):(Bn=xn(vn))?ot(Bn,vn,qt,wn):qt(vn)):wn(Un)}catch(lr){Nn&&!Pn&&Nn.exit(),wn(lr)}},Sn=function(kn,Fn){kn.notified||(kn.notified=!0,wt(function(){for(var vn,Bn=kn.reactions;vn=Bn.get();)fn(vn,kn);kn.notified=!1,Fn&&!kn.rejection&&hn(kn)}))},bn=function(kn,Fn,vn){var Bn,Pn;Vn?((Bn=An.createEvent("Event")).promise=Fn,Bn.reason=vn,Bn.initEvent(kn,!1,!0),nt.dispatchEvent(Bn)):Bn={promise:Fn,reason:vn},!jt&&(Pn=nt["on"+kn])?Pn(Bn):kn===rn&&yt("Unhandled promise rejection",vn)},hn=function(kn){ot(lt,nt,function(){var Fn,vn=kn.facade,Bn=kn.value;if(_n(kn)&&(Fn=vt(function(){rt?En.emit("unhandledRejection",Bn,vn):bn(rn,vn,Bn)}),kn.rejection=rt||_n(kn)?2:1,Fn.error))throw Fn.value})},_n=function(kn){return kn.rejection!==1&&!kn.parent},ln=function(kn){ot(lt,nt,function(){var Fn=kn.facade;rt?En.emit("rejectionHandled",Fn):bn("rejectionhandled",Fn,kn.value)})},Tn=function(kn,Fn,vn){return function(Bn){kn(Fn,Bn,vn)}},In=function(kn,Fn,vn){kn.done||(kn.done=!0,vn&&(kn=vn),kn.value=Fn,kn.state=2,Sn(kn,!0))},Ln=function(kn,Fn,vn){if(!kn.done){kn.done=!0,vn&&(kn=vn);try{if(kn.facade===Fn)throw dn("Promise can't be resolved itself");var Bn=xn(Fn);Bn?wt(function(){var Pn={done:!1};try{ot(Bn,Fn,Tn(Ln,Pn,kn),Tn(In,Pn,kn))}catch(Un){In(Pn,Un,kn)}}):(kn.value=Fn,kn.state=1,Sn(kn,!1))}catch(Pn){In({done:!1},Pn,kn)}}};if(Mt&&(Zt=(Kt=function(kn){ct(this,Zt),ht(kn),ot(k,this);var Fn=zt(this);try{kn(Tn(Ln,Fn),Tn(In,Fn))}catch(vn){In(Fn,vn)}}).prototype,(k=function(kn){Xt(this,{type:Ct,done:!1,notified:!1,parent:!1,reactions:new St,rejection:!1,state:0,value:void 0})}).prototype=at(Zt,"then",function(kn,Fn){var vn=zt(this),Bn=yn(pt(this,Kt));return vn.parent=!0,Bn.ok=!ft(kn)||kn,Bn.fail=ft(Fn)&&Fn,Bn.domain=rt?En.domain:void 0,vn.state==0?vn.reactions.add(Bn):wt(function(){fn(Bn,vn)}),Bn.promise}),j=function(){var kn=new k,Fn=zt(kn);this.promise=kn,this.resolve=Tn(Ln,Fn),this.reject=Tn(In,Fn)},_t.f=yn=function(kn){return kn===Kt||kn===void 0?new j(kn):jn(kn)},!tt&&ft(bt)&&Jt!==Object.prototype)){$=Jt.then,Rt||at(Jt,"then",function(kn,Fn){var vn=this;return new Kt(function(Bn,Pn){ot($,vn,Bn,Pn)}).then(kn,Fn)},{unsafe:!0});try{delete Jt.constructor}catch{}it&&it(Jt,Zt)}et({global:!0,constructor:!0,wrap:!0,forced:Mt},{Promise:Kt}),dt(Kt,Ct,!1,!0),ut(Ct)},7727:function(b,_,d){var k=d(2109),j=d(1913),$=d(2492),et=d(7293),tt=d(5005),rt=d(614),nt=d(6707),ot=d(9478),at=d(8052),it=$&&$.prototype;if(k({target:"Promise",proto:!0,real:!0,forced:!!$&&et(function(){it.finally.call({then:function(){}},function(){})})},{finally:function(ut){var ht=nt(this,tt("Promise")),ft=rt(ut);return this.then(ft?function(st){return ot(ht,ut()).then(function(){return st})}:ut,ft?function(st){return ot(ht,ut()).then(function(){throw st})}:ut)}}),!j&&rt($)){var dt=tt("Promise").prototype.finally;it.finally!==dt&&at(it,"finally",dt,{unsafe:!0})}},8674:function(b,_,d){d(3401),d(821),d(4164),d(6027),d(683),d(6294)},6027:function(b,_,d){var k=d(2109),j=d(6916),$=d(9662),et=d(8523),tt=d(2534),rt=d(408);k({target:"Promise",stat:!0,forced:d(612)},{race:function(nt){var ot=this,at=et.f(ot),it=at.reject,dt=tt(function(){var ut=$(ot.resolve);rt(nt,function(ht){j(ut,ot,ht).then(at.resolve,it)})});return dt.error&&it(dt.value),at.promise}})},683:function(b,_,d){var k=d(2109),j=d(6916),$=d(8523);k({target:"Promise",stat:!0,forced:d(3702).CONSTRUCTOR},{reject:function(et){var tt=$.f(this);return j(tt.reject,void 0,et),tt.promise}})},6294:function(b,_,d){var k=d(2109),j=d(5005),$=d(1913),et=d(2492),tt=d(3702).CONSTRUCTOR,rt=d(9478),nt=j("Promise"),ot=$&&!tt;k({target:"Promise",stat:!0,forced:$||tt},{resolve:function(at){return rt(ot&&this===nt?et:this,at)}})},8783:function(b,_,d){var k=d(8710).charAt,j=d(1340),$=d(9909),et=d(1656),tt=d(6178),rt="String Iterator",nt=$.set,ot=$.getterFor(rt);et(String,"String",function(at){nt(this,{type:rt,string:j(at),index:0})},function(){var at,it=ot(this),dt=it.string,ut=it.index;return ut>=dt.length?tt(void 0,!0):(at=k(dt,ut),it.index+=at.length,tt(at,!1))})},3948:function(b,_,d){var k=d(7854),j=d(8324),$=d(8509),et=d(6992),tt=d(8880),rt=d(5112),nt=rt("iterator"),ot=rt("toStringTag"),at=et.values,it=function(ut,ht){if(ut){if(ut[nt]!==at)try{tt(ut,nt,at)}catch{ut[nt]=at}if(ut[ot]||tt(ut,ot,ht),j[ht]){for(var ft in et)if(ut[ft]!==et[ft])try{tt(ut,ft,et[ft])}catch{ut[ft]=et[ft]}}}};for(var dt in j)it(k[dt]&&k[dt].prototype,dt);it($,"DOMTokenList")},1150:function(b,_,d){var k=d(7633);d(3948),b.exports=k},3191:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_console{padding-top:40px;padding-bottom:24px;width:100%;height:100%}#_console._js-input-hidden{padding-bottom:0}#_console ._control{position:absolute;width:100%;height:40px;left:0;top:0;cursor:default;font-size:0;background:var(--darker-background);color:var(--primary);line-height:20px;border-bottom:1px solid var(--border);padding:10px 10px 10px 35px}#_console ._control [class*=' _icon-'],#_console ._control [class^='_icon-']{display:inline-block;padding:10px;font-size:16px;position:absolute;top:0;cursor:pointer;transition:color .3s}#_console ._control [class*=' _icon-']._active,#_console ._control [class*=' _icon-']:active,#_console ._control [class^='_icon-']._active,#_console ._control [class^='_icon-']:active{color:var(--accent)}#_console ._control ._icon-clear{padding-right:0;left:0}#_console ._control ._icon-copy{right:0}#_console ._control ._icon-filter{right:23px}#_console ._control ._level{cursor:pointer;font-size:12px;height:20px;display:inline-block;margin:0 2px;padding:0 4px;line-height:20px;transition:background-color .3s,color .3s}#_console ._control ._level._active{background:var(--highlight);color:var(--select-foreground)}#_console ._control ._filter-text{white-space:nowrap;position:absolute;line-height:20px;max-width:80px;overflow:hidden;right:55px;font-size:14px;text-overflow:ellipsis}#_console ._js-input{pointer-events:none;position:absolute;z-index:100;left:0;bottom:0;width:100%;border-top:1px solid var(--border);height:24px}#_console ._js-input ._icon-arrow-right{line-height:23px;color:var(--accent);position:absolute;left:10px;top:0;z-index:10}#_console ._js-input._active{height:100%;padding-top:40px;padding-bottom:40px;border-top:none}#_console ._js-input._active ._icon-arrow-right{display:none}#_console ._js-input._active textarea{overflow:auto;padding-left:10px}#_console ._js-input ._buttons{display:none;position:absolute;left:0;bottom:0;width:100%;height:40px;color:var(--primary);background:var(--darker-background);font-size:12px;border-top:1px solid var(--border)}#_console ._js-input ._buttons ._button{pointer-events:all;cursor:pointer;flex:1;text-align:center;border-right:1px solid var(--border);height:40px;line-height:40px;transition:background-color .3s,color .3s}#_console ._js-input ._buttons ._button:last-child{border-right:none}#_console ._js-input ._buttons ._button:active{color:var(--select-foreground);background:var(--highlight)}#_console ._js-input textarea{overflow:hidden;pointer-events:all;padding:3px 10px;padding-left:25px;outline:0;border:none;font-size:14px;width:100%;height:100%;-webkit-user-select:text;user-select:text;resize:none;color:var(--primary);background:var(--background)}._safe-area #_console{padding-bottom:calc(24px + env(safe-area-inset-bottom))}._safe-area #_console._js-input-hidden{padding-bottom:0}._safe-area #_console ._js-input{height:calc(24px + env(safe-area-inset-bottom))}._safe-area #_console ._js-input._active{height:100%;padding-bottom:calc(40px + env(safe-area-inset-bottom))}._safe-area #_console ._js-input ._buttons{height:calc(40px + env(safe-area-inset-bottom))}._safe-area #_console ._js-input ._buttons ._button{height:calc(40px + env(safe-area-inset-bottom))}",""]),b.exports=_},13:function(b,_,d){(_=d(3645)(!1)).push([b.id,"._dev-tools{position:absolute;width:100%;height:100%;left:0;bottom:0;background:var(--background);z-index:500;display:none;padding-top:40px!important;opacity:0;transition:opacity .3s;border-top:1px solid var(--border)}._dev-tools ._resizer{position:absolute;width:100%;left:0;top:-8px;cursor:row-resize;z-index:120}._dev-tools ._tools{overflow:auto;-webkit-overflow-scrolling:touch;height:100%;width:100%;position:relative}._dev-tools ._tools ._tool{position:absolute;width:100%;height:100%;left:0;top:0;overflow:hidden;display:none}",""]),b.exports=_},5896:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_elements ._elements{position:absolute;width:100%;height:100%;left:0;top:0;padding-top:40px;padding-bottom:24px;font-size:14px}#_elements ._control{position:absolute;width:100%;height:40px;left:0;top:0;cursor:default;font-size:0;background:var(--darker-background);color:var(--primary);line-height:20px;border-bottom:1px solid var(--border);padding:10px 0}#_elements ._control [class*=' _icon-'],#_elements ._control [class^='_icon-']{display:inline-block;padding:10px;font-size:16px;position:absolute;top:0;cursor:pointer;transition:color .3s}#_elements ._control [class*=' _icon-']._active,#_elements ._control [class*=' _icon-']:active,#_elements ._control [class^='_icon-']._active,#_elements ._control [class^='_icon-']:active{color:var(--accent)}#_elements ._control ._icon-eye{right:0}#_elements ._control ._icon-copy{right:23px}#_elements ._control ._icon-delete{right:46px}#_elements ._dom-viewer-container{overflow-y:auto;-webkit-overflow-scrolling:touch;height:100%;padding:5px 0}#_elements ._crumbs{position:absolute;width:100%;height:24px;left:0;top:0;top:initial;line-height:24px;bottom:0;border-top:1px solid var(--border);background:var(--darker-background);color:var(--primary);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#_elements ._crumbs li{cursor:pointer;padding:0 7px;display:inline-block}#_elements ._crumbs li:hover,#_elements ._crumbs li:last-child{background:var(--highlight)}#_elements ._crumbs ._icon-arrow-right{font-size:12px;position:relative;top:1px}#_elements ._detail{position:absolute;width:100%;height:100%;left:0;top:0;z-index:10;padding-top:40px;display:none;background:var(--background)}#_elements ._detail ._control{padding:10px 35px}#_elements ._detail ._control ._element-name{font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%;display:inline-block}#_elements ._detail ._control ._icon-arrow-left{left:0}#_elements ._detail ._control ._icon-refresh{right:0}#_elements ._detail ._element{overflow-y:auto;-webkit-overflow-scrolling:touch;height:100%}#_elements ._section{border-bottom:1px solid var(--border);color:var(--foreground);margin:10px 0}#_elements ._section h2{color:var(--primary);background:var(--darker-background);border-top:1px solid var(--border);padding:10px;line-height:18px;font-size:14px;transition:background-color .3s}#_elements ._section h2 ._btn{margin-left:5px;float:right;color:var(--primary);width:18px;height:18px;font-size:16px;cursor:pointer;transition:color .3s}#_elements ._section h2 ._btn._filter-text{width:auto;max-width:80px;font-size:14px;overflow:hidden;font-weight:400;text-overflow:ellipsis;display:inline-block}#_elements ._section h2 ._btn:active{color:var(--accent)}#_elements ._section h2 ._btn._btn-disabled{color:inherit!important;cursor:default!important;pointer-events:none;opacity:.5}#_elements ._section h2 ._btn._btn-disabled *{pointer-events:none}#_elements ._section h2._active-effect{cursor:pointer}#_elements ._section h2._active-effect:active{background:var(--highlight);color:var(--select-foreground)}#_elements ._attributes{font-size:12px}#_elements ._attributes a{color:var(--link-color)}#_elements ._attributes ._table-wrapper{overflow-x:auto;-webkit-overflow-scrolling:touch}#_elements ._attributes table td{padding:5px 10px}#_elements ._text-content{background:#fff}#_elements ._text-content ._content{overflow-x:auto;-webkit-overflow-scrolling:touch;padding:10px}#_elements ._style-color{position:relative;top:1px;width:10px;height:10px;border-radius:50%;margin-right:2px;border:1px solid var(--border);display:inline-block}#_elements ._box-model{overflow-x:auto;-webkit-overflow-scrolling:touch;padding:10px;text-align:center;border-bottom:1px solid var(--color)}#_elements ._computed-style{font-size:12px}#_elements ._computed-style a{color:var(--link-color)}#_elements ._computed-style ._table-wrapper{overflow-y:auto;-webkit-overflow-scrolling:touch;max-height:200px;border-top:1px solid var(--border)}#_elements ._computed-style table td{padding:5px 10px}#_elements ._computed-style table td._key{white-space:nowrap;color:var(--var-color)}#_elements ._styles{font-size:12px}#_elements ._styles ._style-wrapper{padding:10px}#_elements ._styles ._style-wrapper ._style-rules{border:1px solid var(--border);padding:10px;margin-bottom:10px}#_elements ._styles ._style-wrapper ._style-rules ._rule{padding-left:2em;word-break:break-all}#_elements ._styles ._style-wrapper ._style-rules ._rule a{color:var(--link-color)}#_elements ._styles ._style-wrapper ._style-rules ._rule span{color:var(--var-color)}#_elements ._styles ._style-wrapper ._style-rules:last-child{margin-bottom:0}#_elements ._listeners{font-size:12px}#_elements ._listeners ._listener-wrapper{padding:10px}#_elements ._listeners ._listener-wrapper ._listener{margin-bottom:10px;overflow:hidden;border:1px solid var(--border)}#_elements ._listeners ._listener-wrapper ._listener ._listener-type{padding:10px;background:var(--darker-background);color:var(--primary)}#_elements ._listeners ._listener-wrapper ._listener ._listener-content li{overflow-x:auto;-webkit-overflow-scrolling:touch;padding:10px;border-top:none}._safe-area #_elements ._elements{padding-bottom:calc(24px + env(safe-area-inset-bottom))}._safe-area #_elements ._crumbs{height:calc(24px + env(safe-area-inset-bottom))}._safe-area #_elements ._element{padding-bottom:calc(0px + env(safe-area-inset-bottom))}@media screen and (min-width:680px){#_elements ._elements{width:50%}#_elements ._elements ._control ._icon-eye{display:none}#_elements ._elements ._control ._icon-copy{right:0}#_elements ._elements ._control ._icon-delete{right:23px}#_elements ._detail{width:50%;left:initial;right:0;border-left:1px solid var(--border)}#_elements ._detail ._control{padding-left:10px}#_elements ._detail ._control ._icon-arrow-left{display:none}}",""]),b.exports=_},9195:function(b,_,d){(_=d(3645)(!1)).push([b.id,"._container ._entry-btn{touch-action:none;width:40px;height:40px;display:flex;background:#000;opacity:.3;border-radius:10px;position:relative;z-index:1000;transition:opacity .3s;color:#fff;font-size:25px;align-items:center;justify-content:center}._container ._entry-btn._active,._container ._entry-btn:active{opacity:.8}",""]),b.exports=_},879:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_info{overflow-y:auto;-webkit-overflow-scrolling:touch}#_info li{margin:10px;border:1px solid var(--border)}#_info li ._content,#_info li ._title{padding:10px}#_info li ._title{position:relative;padding-bottom:0;color:var(--accent)}#_info li ._title ._icon-copy{position:absolute;right:10px;top:14px;color:var(--primary);cursor:pointer;transition:color .3s}#_info li ._title ._icon-copy:active{color:var(--accent)}#_info li ._content{margin:0;-webkit-user-select:text;user-select:text;color:var(--foreground);font-size:12px;word-break:break-all}#_info li ._content table{width:100%;border-collapse:collapse}#_info li ._content table td,#_info li ._content table th{border:1px solid var(--border);padding:10px}#_info li ._content *{-webkit-user-select:text;user-select:text}#_info li ._content a{color:var(--link-color)}#_info li ._device-key,#_info li ._system-key{width:100px}._safe-area #_info{padding-bottom:calc(10px + env(safe-area-inset-bottom))}",""]),b.exports=_},3180:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_network ._network{position:absolute;width:100%;height:100%;left:0;top:0;padding-top:39px}#_network ._control{position:absolute;width:100%;height:40px;left:0;top:0;cursor:default;font-size:0;background:var(--darker-background);color:var(--primary);line-height:20px;border-bottom:1px solid var(--border);padding:10px;border-bottom:none}#_network ._control [class*=' _icon-'],#_network ._control [class^='_icon-']{display:inline-block;padding:10px;font-size:16px;position:absolute;top:0;cursor:pointer;transition:color .3s}#_network ._control [class*=' _icon-']._active,#_network ._control [class*=' _icon-']:active,#_network ._control [class^='_icon-']._active,#_network ._control [class^='_icon-']:active{color:var(--accent)}#_network ._control ._title{font-size:14px}#_network ._control ._icon-clear{left:23px}#_network ._control ._icon-eye{right:0}#_network ._control ._icon-copy{right:23px}#_network ._control ._icon-filter{right:46px}#_network ._control ._filter-text{white-space:nowrap;position:absolute;line-height:20px;max-width:80px;overflow:hidden;right:88px;font-size:14px;text-overflow:ellipsis}#_network ._control ._icon-record{left:0}#_network ._control ._icon-record._recording{color:var(--console-error-foreground);text-shadow:0 0 4px var(--console-error-foreground)}#_network ._request-error{color:var(--console-error-foreground)}#_network .luna-data-grid:focus .luna-data-grid-data-container ._request-error.luna-data-grid-selected{background:var(--console-error-background)}#_network .luna-data-grid{border-left:none;border-right:none}#_network ._detail{position:absolute;width:100%;height:100%;left:0;top:0;z-index:10;display:none;padding-top:40px;background:var(--background)}#_network ._detail ._control{padding:10px 35px;border-bottom:1px solid var(--border)}#_network ._detail ._control ._url{font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%;display:inline-block}#_network ._detail ._control ._icon-arrow-left{left:0}#_network ._detail ._control ._icon-delete{left:0;display:none}#_network ._detail ._control ._icon-copy{right:0}#_network ._detail ._http{overflow-y:auto;-webkit-overflow-scrolling:touch;height:100%}#_network ._detail ._http ._section{border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin-top:10px;margin-bottom:10px}#_network ._detail ._http ._section h2{background:var(--darker-background);color:var(--primary);padding:10px;line-height:18px;font-size:14px}#_network ._detail ._http ._section table{color:var(--foreground)}#_network ._detail ._http ._section table *{-webkit-user-select:text;user-select:text}#_network ._detail ._http ._section table td{font-size:12px;padding:5px 10px;word-break:break-all}#_network ._detail ._http ._section table ._key{white-space:nowrap;font-weight:700;color:var(--accent)}#_network ._detail ._http ._data,#_network ._detail ._http ._response{-webkit-user-select:text;user-select:text;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:10px;font-size:12px;margin:10px 0;white-space:pre-wrap;border-top:1px solid var(--border);color:var(--foreground);border-bottom:1px solid var(--border)}._safe-area #_network ._http{padding-bottom:calc(0px + env(safe-area-inset-bottom))}@media screen and (min-width:680px){#_network ._network ._control ._icon-eye{display:none}#_network ._network ._control ._icon-copy{right:0}#_network ._network ._control ._icon-filter{right:23px}#_network ._network ._control ._filter-text{right:55px}#_network ._detail{width:50%;left:initial;right:0;border-left:1px solid var(--border)}#_network ._detail ._control ._icon-arrow-left{display:none}#_network ._detail ._control ._icon-delete{display:block}}",""]),b.exports=_},2488:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_resources{overflow-y:auto;-webkit-overflow-scrolling:touch;padding:10px;font-size:14px}#_resources ._section{margin-bottom:10px;overflow:hidden;border:1px solid var(--border)}#_resources ._section._warn{border:1px solid var(--console-warn-border)}#_resources ._section._warn ._title{background:var(--console-warn-background);color:var(--console-warn-foreground)}#_resources ._section._danger{border:1px solid var(--console-error-border)}#_resources ._section._danger ._title{background:var(--console-error-background);color:var(--console-error-foreground)}#_resources ._section._cookie,#_resources ._section._local-storage,#_resources ._section._session-storage{border:none}#_resources ._section._cookie ._title,#_resources ._section._local-storage ._title,#_resources ._section._session-storage ._title{border:1px solid var(--border);border-bottom:none}#_resources ._title{padding:10px;line-height:18px;color:var(--primary);background:var(--darker-background)}#_resources ._title ._btn{margin-left:5px;float:right;color:var(--primary);width:18px;height:18px;font-size:16px;cursor:pointer;transition:color .3s}#_resources ._title ._btn._filter-text{width:auto;max-width:80px;font-size:14px;overflow:hidden;font-weight:400;text-overflow:ellipsis;display:inline-block}#_resources ._title ._btn:active{color:var(--accent)}#_resources ._title ._btn._btn-disabled{color:inherit!important;cursor:default!important;pointer-events:none;opacity:.5}#_resources ._title ._btn._btn-disabled *{pointer-events:none}#_resources ._link-list{font-size:12px;color:var(--foreground)}#_resources ._link-list li{padding:10px;word-break:break-all}#_resources ._link-list li a{color:var(--link-color)!important}#_resources ._image-list{color:var(--foreground);font-size:12px;display:flex;flex-wrap:wrap;padding:10px!important}#_resources ._image-list:after{content:'';display:block;clear:both}#_resources ._image-list li{flex-grow:1;cursor:pointer;overflow-y:hidden}#_resources ._image-list li._image{height:100px;font-size:0}#_resources ._image-list li img{height:100px;min-width:100%;-o-object-fit:cover;object-fit:cover}._safe-area #_resources{padding-bottom:calc(10px + env(safe-area-inset-bottom))}",""]),b.exports=_},8011:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_settings{overflow-y:auto;-webkit-overflow-scrolling:touch}._safe-area #_settings{padding-bottom:calc(0px + env(safe-area-inset-bottom))}",""]),b.exports=_},5571:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_snippets{overflow-y:auto;-webkit-overflow-scrolling:touch;padding:10px}#_snippets ._section{margin-bottom:10px;border:1px solid var(--border);overflow:hidden;cursor:pointer}#_snippets ._section:active ._name{background:var(--highlight);color:var(--select-foreground)}#_snippets ._section ._name{padding:10px;line-height:18px;color:var(--primary);background:var(--darker-background);transition:background-color .3s}#_snippets ._section ._name ._btn{margin-left:10px;float:right;text-align:center;width:18px;height:18px;font-size:12px}#_snippets ._section ._description{font-size:12px;color:var(--foreground);padding:10px;transition:background-color .3s}._safe-area #_snippets{padding-bottom:calc(10px + env(safe-area-inset-bottom))}",""]),b.exports=_},7346:function(b,_,d){(_=d(3645)(!1)).push([b.id,"._search-highlight-block{display:inline}._search-highlight-block ._keyword{background:var(--console-warn-background);color:var(--console-warn-foreground)}",""]),b.exports=_},1344:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_sources{font-size:0;overflow-y:auto;-webkit-overflow-scrolling:touch;color:var(--foreground)}#_sources ._code-wrapper,#_sources ._raw-wrapper{overflow-x:auto;-webkit-overflow-scrolling:touch;width:100%;min-height:100%}#_sources ._code,#_sources ._raw{height:100%}#_sources ._code ._keyword,#_sources ._raw ._keyword{color:var(--keyword-color)}#_sources ._code ._comment,#_sources ._raw ._comment{color:var(--comment-color)}#_sources ._code ._number,#_sources ._raw ._number{color:var(--number-color)}#_sources ._code ._string,#_sources ._raw ._string{color:var(--string-color)}#_sources ._code ._operator,#_sources ._raw ._operator{color:var(--operator-color)}#_sources ._code[data-type=html] ._keyword,#_sources ._raw[data-type=html] ._keyword{color:var(--tag-name-color)}#_sources ._image{font-size:12px}#_sources ._image ._breadcrumb{background:var(--darker-background);color:var(--primary);-webkit-user-select:text;user-select:text;margin-bottom:10px;word-break:break-all;padding:10px;font-size:16px;min-height:40px;border-bottom:1px solid var(--border)}#_sources ._image ._img-container{text-align:center}#_sources ._image ._img-container img{max-width:100%}#_sources ._image ._img-info{text-align:center;margin:20px 0;color:var(--foreground)}#_sources ._json{padding:0 10px}#_sources ._json *{-webkit-user-select:text;user-select:text}#_sources iframe{width:100%;height:100%}",""]),b.exports=_},8020:function(b,_,d){(_=d(3645)(!1)).push([b.id,"._container a,._container abbr,._container acronym,._container address,._container applet,._container article,._container aside,._container audio,._container b,._container big,._container blockquote,._container canvas,._container caption,._container center,._container cite,._container code,._container dd,._container del,._container details,._container dfn,._container dl,._container dt,._container em,._container embed,._container fieldset,._container figcaption,._container figure,._container footer,._container form,._container h1,._container h2,._container h3,._container h4,._container h5,._container h6,._container header,._container hgroup,._container i,._container iframe,._container img,._container ins,._container kbd,._container label,._container legend,._container li,._container mark,._container menu,._container nav,._container object,._container ol,._container output,._container p,._container pre,._container q,._container ruby,._container s,._container samp,._container section,._container small,._container span,._container strike,._container strong,._container sub,._container summary,._container sup,._container table,._container tbody,._container td,._container tfoot,._container th,._container thead,._container time,._container tr,._container tt,._container u,._container ul,._container var,._container video{margin:0;padding:0;border:0;font-size:100%}._container article,._container aside,._container details,._container figcaption,._container figure,._container footer,._container header,._container hgroup,._container menu,._container nav,._container section{display:block}._container body{line-height:1}._container ol,._container ul{list-style:none}._container blockquote,._container q{quotes:none}._container blockquote:after,._container blockquote:before,._container q:after,._container q:before{content:'';content:none}._container table{border-collapse:collapse;border-spacing:0}",""]),b.exports=_},8516:function(b,_,d){(_=d(3645)(!1)).push([b.id,`.luna-console{background:var(--background)}.luna-console-header{color:var(--link-color);border-bottom-color:var(--border)}.luna-console-nesting-level{border-right-color:var(--border)}.luna-console-nesting-level::before{border-bottom-color:var(--border)}.luna-console-log-container.luna-console-selected .luna-console-log-item{background:var(--contrast)}.luna-console-log-container.luna-console-selected .luna-console-log-item:not(.luna-console-error):not(.luna-console-warn){border-color:var(--border)}.luna-console-log-item{border-bottom-color:var(--border);color:var(--foreground)}.luna-console-log-item a{color:var(--link-color)!important}.luna-console-log-item .luna-console-icon-container .luna-console-icon{color:var(--foreground)}.luna-console-log-item .luna-console-icon-container .luna-console-icon-error{color:#ef3842}.luna-console-log-item .luna-console-icon-container .luna-console-icon-warn{color:#e8a400}.luna-console-log-item .luna-console-count{color:var(--select-foreground);background:var(--highlight)}.luna-console-log-item.luna-console-warn{color:var(--console-warn-foreground);background:var(--console-warn-background);border-color:var(--console-warn-border)}.luna-console-log-item.luna-console-error{background:var(--console-error-background);color:var(--console-error-foreground);border-color:var(--console-error-border)}.luna-console-log-item.luna-console-error .luna-console-count{background:var(--console-error-foreground)}.luna-console-log-item .luna-console-code .luna-console-key{color:var(--var-color)}.luna-console-log-item .luna-console-code .luna-console-number{color:var(--number-color)}.luna-console-log-item .luna-console-code .luna-console-null{color:var(--operator-color)}.luna-console-log-item .luna-console-code .luna-console-string{color:var(--string-color)}.luna-console-log-item .luna-console-code .luna-console-boolean{color:var(--keyword-color)}.luna-console-log-item .luna-console-code .luna-console-special{color:var(--operator-color)}.luna-console-log-item .luna-console-code .luna-console-keyword{color:var(--keyword-color)}.luna-console-log-item .luna-console-code .luna-console-operator{color:var(--operator-color)}.luna-console-log-item .luna-console-code .luna-console-comment{color:var(--comment-color)}.luna-console-log-item .luna-console-log-content .luna-console-null,.luna-console-log-item .luna-console-log-content .luna-console-undefined{color:var(--operator-color)}.luna-console-log-item .luna-console-log-content .luna-console-number{color:var(--number-color)}.luna-console-log-item .luna-console-log-content .luna-console-boolean{color:var(--keyword-color)}.luna-console-log-item .luna-console-log-content .luna-console-regexp,.luna-console-log-item .luna-console-log-content .luna-console-symbol{color:var(--var-color)}.luna-console-preview .luna-console-key{color:var(--var-color)}.luna-console-preview .luna-console-number{color:var(--number-color)}.luna-console-preview .luna-console-null{color:var(--operator-color)}.luna-console-preview .luna-console-string{color:var(--string-color)}.luna-console-preview .luna-console-boolean{color:var(--keyword-color)}.luna-console-preview .luna-console-special{color:var(--operator-color)}.luna-console-preview .luna-console-keyword{color:var(--keyword-color)}.luna-console-preview .luna-console-operator{color:var(--operator-color)}.luna-console-preview .luna-console-comment{color:var(--comment-color)}.luna-object-viewer{color:var(--primary);font-size:12px!important}.luna-object-viewer-null{color:var(--operator-color)}.luna-object-viewer-regexp,.luna-object-viewer-string{color:var(--string-color)}.luna-object-viewer-number{color:var(--number-color)}.luna-object-viewer-boolean{color:var(--keyword-color)}.luna-object-viewer-special{color:var(--operator-color)}.luna-object-viewer-key,.luna-object-viewer-key-lighter{color:var(--var-color)}.luna-object-viewer-expanded:before{border-color:transparent;border-top-color:var(--foreground)}.luna-object-viewer-collapsed:before{border-top-color:transparent;border-left-color:var(--foreground)}.luna-notification{pointer-events:none!important;padding:10px;z-index:1000}.luna-notification-item{z-index:500;color:var(--foreground);background:var(--background);box-shadow:none;padding:5px 10px;border:1px solid var(--border)}.luna-notification-upper{margin-bottom:10px}.luna-notification-lower{margin-top:10px}.luna-data-grid{color:var(--foreground);background:var(--background);border-color:var(--border)}.luna-data-grid:focus .luna-data-grid-data-container .luna-data-grid-node.luna-data-grid-selected{background:var(--accent)}.luna-data-grid td,.luna-data-grid th{border-color:var(--border)}.luna-data-grid th{background:var(--darker-background)}.luna-data-grid th.luna-data-grid-sortable:active,.luna-data-grid th.luna-data-grid-sortable:hover{color:var(--select-foreground);background:var(--highlight)}.luna-data-grid .luna-data-grid-data-container .luna-data-grid-node.luna-data-grid-selected{background:var(--highlight)}.luna-data-grid .luna-data-grid-data-container tr:nth-child(even){background:var(--contrast)}.luna-dom-viewer{color:var(--foreground)}.luna-dom-viewer .luna-dom-viewer-html-tag,.luna-dom-viewer .luna-dom-viewer-tag-name{color:var(--tag-name-color)}.luna-dom-viewer .luna-dom-viewer-attribute-name{color:var(--attribute-name-color)}.luna-dom-viewer .luna-dom-viewer-attribute-value{color:var(--string-color)}.luna-dom-viewer .luna-dom-viewer-html-comment{color:var(--comment-color)}.luna-dom-viewer .luna-dom-viewer-tree-item:hover .luna-dom-viewer-selection{background:var(--contrast)}.luna-dom-viewer .luna-dom-viewer-tree-item.luna-dom-viewer-selected .luna-dom-viewer-selection{background:var(--highlight)}.luna-dom-viewer .luna-dom-viewer-tree-item.luna-dom-viewer-selected:focus .luna-dom-viewer-selection{background:var(--accent);opacity:.2}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-key{color:var(--var-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-number{color:var(--number-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-null{color:var(--operator-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-string{color:var(--string-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-boolean{color:var(--keyword-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-special{color:var(--operator-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-keyword{color:var(--keyword-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-operator{color:var(--operator-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-comment{color:var(--comment-color)}.luna-dom-viewer-children{margin:0;padding-left:15px!important}.luna-modal{z-index:9999999}.luna-modal-body,.luna-modal-input{color:var(--foreground);background:var(--background)}.luna-modal-input{-webkit-user-select:text!important;user-select:text!important;border-color:var(--border)}.luna-modal-button-group .luna-modal-secondary{border-color:var(--border);color:var(--foreground);background:var(--background)}.luna-modal-button-group .luna-modal-primary{background:var(--accent)}.luna-modal-button-group .luna-modal-button:active::before{background:var(--accent)}.luna-tab{position:absolute;left:0;top:0;color:var(--foreground);background:var(--darker-background)}.luna-tab-tabs-container{border-color:var(--border)}.luna-tab-item.luna-tab-selected,.luna-tab-item:hover{background:var(--highlight);color:var(--select-foreground)}.luna-tab-slider{background:var(--accent)}.luna-text-viewer{color:var(--foreground);border:none;border-bottom:1px solid var(--border);background:var(--background);font-size:12px}.luna-text-viewer .luna-text-viewer-line-text{-webkit-user-select:text;user-select:text}.luna-text-viewer .luna-text-viewer-line-text *{-webkit-user-select:text;user-select:text}.luna-text-viewer .luna-text-viewer-copy,.luna-text-viewer .luna-text-viewer-line-number{border-color:var(--border)}.luna-text-viewer .luna-text-viewer-copy .luna-text-viewer-icon-check{color:var(--accent)}.luna-text-viewer .luna-text-viewer-copy{background-color:var(--background)}.luna-setting{color:var(--foreground);background:var(--background)}.luna-setting-item.luna-setting-selected,.luna-setting-item:hover{background:var(--darker-background)}.luna-setting-item.luna-setting-selected:focus{outline:0}.luna-setting-item-title{font-size:14px}.luna-setting-item-separator{border-color:var(--border)}.luna-setting-item-checkbox input{border-color:var(--border)}.luna-setting-item-checkbox input:checked{background-color:var(--accent);border-color:var(--accent)}.luna-setting-item-select .luna-setting-select select{color:var(--foreground);border-color:var(--border);background:var(--background)}.luna-setting-item-select .luna-setting-select:after{border-top-color:var(--foreground)}.luna-setting-item-button button{color:var(--accent);background:var(--background);border-color:var(--border)}.luna-setting-item-button button:active,.luna-setting-item-button button:hover{background:var(--darker-background)}.luna-setting-item-button button:active{border:1px solid var(--accent)}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar{background:var(--border)}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar .luna-setting-range-track-progress{background:var(--accent)}.luna-setting-item-number .luna-setting-range-container input::-webkit-slider-thumb{border-color:var(--border);background:radial-gradient(circle at center,var(--dark) 0,var(--dark) 15%,var(--light) 22%,var(--light) 100%)}.luna-box-model{background:0 0}.luna-box-model-position{color:var(--foreground)}._container{min-width:320px;pointer-events:none;position:fixed;left:0;top:0;width:100%;height:100%;z-index:9999999;color:var(--foreground);font-family:".SFNSDisplay-Regular","Helvetica Neue","Lucida Grande","Segoe UI",Tahoma,sans-serif;font-size:14px;direction:ltr}._container._dark{color-scheme:dark}._container *{box-sizing:border-box;pointer-events:all;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:none}._container ul{list-style:none;padding:0;margin:0}._container h1,._container h2,._container h3,._container h4{margin:0}._container h2{font-size:14px}._container h2 [class*=' _icon-'],._container h2 [class^='_icon-']{font-weight:400}._hidden{display:none}._icon-disabled{opacity:.5;pointer-events:none;cursor:default!important}._icon-disabled:active{color:inherit!important}._tag-name-color{color:var(--tag-name-color)}._function-color{color:var(--function-color)}._attribute-name-color{color:var(--attribute-name-color)}._operator-color{color:var(--operator-color)}._string-color{color:var(--string-color)}`,""]),b.exports=_},8094:function(b,_,d){(_=d(3645)(!1)).push([b.id,".luna-box-model{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;display:inline-block;color:#222;font-size:12px;text-align:center;white-space:nowrap}.luna-box-model.luna-box-model-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-box-model.luna-box-model-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-box-model .luna-box-model-hidden,.luna-box-model.luna-box-model-hidden{display:none}.luna-box-model .luna-box-model-invisible,.luna-box-model.luna-box-model-invisible{visibility:hidden}.luna-box-model *{box-sizing:border-box}.luna-box-model.luna-box-model-theme-dark{color:#a5a5a5;background-color:#242424}.luna-box-model-label{position:absolute;margin-left:3px;padding:0 2px}.luna-box-model-bottom,.luna-box-model-left,.luna-box-model-right,.luna-box-model-top{display:inline-block}.luna-box-model-left,.luna-box-model-right{vertical-align:middle}.luna-box-model-border,.luna-box-model-content,.luna-box-model-margin,.luna-box-model-padding,.luna-box-model-position{position:relative;display:inline-block;text-align:center;vertical-align:middle;padding:3px;margin:3px}.luna-box-model-position{border:1px grey dotted}.luna-box-model-margin{color:#333;border:1px dashed;background:rgba(246,178,107,.66)}.luna-box-model-border{color:#333;border:1px #000 solid;background:rgba(255,229,153,.66)}.luna-box-model-padding{color:#333;border:1px grey dashed;background:rgba(147,196,125,.55)}.luna-box-model-content{color:#333;border:1px grey solid;min-width:100px;background:rgba(111,168,220,.66)}",""]),b.exports=_},9327:function(b,_,d){(_=d(3645)(!1)).push([b.id,"@font-face{font-family:luna-console-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAasAAsAAAAACnAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAI4AAADcIsYnIk9TLzIAAAGYAAAAPgAAAFZWmlGRY21hcAAAAdgAAAD2AAACyDioZ9NnbHlmAAAC0AAAAZgAAAH8Lq6nDGhlYWQAAARoAAAAMQAAADZ25cSzaGhlYQAABJwAAAAdAAAAJAgCBBRobXR4AAAEvAAAABkAAABYGAH//GxvY2EAAATYAAAAGAAAAC4J8glUbWF4cAAABPAAAAAfAAAAIAEjAFBuYW1lAAAFEAAAASkAAAIWm5e+CnBvc3QAAAY8AAAAcAAAAJ7qA/7MeJxNjTsOwjAQRJ8TJzE2hPBrKBBHQByAAiGqFBRcIBVCiqhyBA7O2AgRr9Y7M2+lxQCeAyeyy7W9U/fd8GKL5fsiH2vTPx8d7ufEbJpO/aagYc+RM7fEjBKnmiRuySmZUTNNf0wybYSRj9VoO4iU7NQh+Up8qelZs5EupP75Shfm2oz3Kmkvt/gARcgJKwAAeJxjYGQUZ5zAwMrAwNTJdIaBgaEfQjO+ZjBi5ACKMrAyM2AFAWmuKQwHGHQ/srGAuDEsTGBhRhABALQ1CMwAAHiczdJNbsIwEIbh1+QHQsJviNRFF1XX7aEQRZQNRQjEHXqgrnopn4B+E8+qqip117GeRB4nk4lloAAyeZIcwicBiw9lQ5/PGPf5nHfNV8yVyXlmzZY9R05cuMbydtOqZTfsOCh7Vjb02e8RVMXGHfc8aDxqwFKVF7QMtdLpmzUVDSOmTJjpnUH/3YJSBcofqv4Wyz8+b6FuWvXSjW1SV30r1sl/icYuofFZh+1+Yn+7dnPZuIW8uFa2big7t5JXZzX3znbh4Gp5c5UcnfVyciM5u6lc3ESuTnsZQ2JnLQ4S7J4ldjZjntj5jEVi5zaWCeUXWN4q9AAAeJxdUMFOU0EUnTMzb2o1FB5O5wENg31k5mExVEo7jSGBEuO6CStDmtbIBuiKBYg/gRu/ABO3/ocscOEXsHBpogtWvFfnvQgxJnduztx7zknuIXQyIYSDE9IgLwmBmIZI1pDYbTSxBqeW4KvrVKSmaaRKFZREE7YJIyONSLW6W37bLiRxscXNTH1zbnFqlnJ5Eu+G9MnT8JBy9l69ELx69Ohd9JCryrwcU07TbCU5H4y+jQbnyco/EF+8x1/eaX03bCzR8IgGwVn0WC/I8YOzaLGS+4+p4K8O/lcXkPhj/CP0ig1JQIhJyugCxz3o7LqH4YUH0L3swlMK3q+CV/HMbhkJAqlarm1jgd+97DpnfsKPeH15eT2+l9L5OJ/kcjZJfY6MU++wQPzI+PRECUJjo97aAtqupaqhFLHtRLHNf1Kwn9lAOid9L7tV9nzVldNL3dC+NmrGOGM+sme2VrO335Mda3foXlXravY57zemY23HkLs72RsW5JegDjZK99FnPPtwl8FX1i92IfAax6yfvkWf/AHb1F1JeJxjYGRgYABi3/mPYuP5bb4ycLOABKI4H+9rgNH//zIwsDCzMAElOBhAJAMAQ2IK+QAAAHicY2BkYGBhAAEWhv9///9lYWZgZEAFYgBbLQQgAAAAeJxjYGBgYGH4/58FTIPZf2FsSgAAM58EEwAAAHicY2AAgjyGJoYlDI8YPjD8ww8BeTMTR3icY2BkYGAQY3BhYGYAASYg5gJCBob/YD4DABGFAXQAeJxlkD1uwkAUhMdgSAJSghQpKbNVCiKZn5IDQE9Bl8KYtTGyvdZ6QaLLCXKEHCGniHKCHChj82hgLT9/M2/e7soABviFh3p5uG1qvVq4oTpxm/Qg7JOfhTvo40W4S38o3MMbpsJ9POKdO3j+HZ0BSuEW7vEh3Kb/KeyTv4Q7eMK3cJf+j3APK/wJ9/HqDdPIFLEp3FIn+yy0Z3n+rrStUlOoSTA+WwtdaBs6vVHro6oOydS5WMXW5GrOrs4yo0prdjpywda5cjYaxeIHkcmRIoJBgbipDktoJNgjQwh71b3UK6YtKvq1VpggwPgqtWCqaJIhlcaGyTWOrBUOPG1K1zGt+FrO5KS5zGreJCMr/u+6t6MT0Q+wbaZKzDDiE1/kg+YO+T89EV6oAAAAeJxtxksOgjAUQNF3kaIW/x9cBYtqgEAnLXlp0+1rwtQzuVcq2Vj5r6NiR42hYc+BI5aWE2cuXLlx58GTF286PmIm1ajGhzWnJub0S12cBjs4nVI/xhLabdXPS2JCiXgCK5lEwTHQMzKziHwBqnYYpg==') format('woff')}[class*=' luna-console-icon-'],[class^=luna-console-icon-]{display:inline-block;font-family:luna-console-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-console-icon-error:before{content:'\\f101'}.luna-console-icon-input:before{content:'\\f102'}.luna-console-icon-output:before{content:'\\f103'}.luna-console-icon-warn:before{content:'\\f104'}.luna-console-icon-caret-down:before{content:'\\f105'}.luna-console-icon-caret-right:before{content:'\\f106'}.luna-console{background:#fff;overflow-y:auto;-webkit-overflow-scrolling:touch;height:100%;position:relative;will-change:scroll-position;cursor:default;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.luna-console.luna-console-theme-dark{background-color:#242424}.luna-console-hidden{display:none}.luna-console-fake-logs{position:absolute;left:0;top:0;pointer-events:none;visibility:hidden;width:100%}.luna-console-logs{padding-top:1px;position:absolute;width:100%}.luna-console-log-container{box-sizing:content-box}.luna-console-log-container.luna-console-selected .luna-console-log-item{background:#ecf1f8}.luna-console-log-container.luna-console-selected .luna-console-log-item:not(.luna-console-error):not(.luna-console-warn){border-color:#ccdef5}.luna-console-header{white-space:nowrap;display:flex;font-size:11px;color:#545454;border-top:1px solid transparent;border-bottom:1px solid #ccc}.luna-console-header .luna-console-time-from-container{overflow-x:auto;-webkit-overflow-scrolling:touch;padding:3px 10px}.luna-console-nesting-level{width:14px;flex-shrink:0;margin-top:-1px;margin-bottom:-1px;position:relative;border-right:1px solid #ccc}.luna-console-nesting-level.luna-console-group-closed::before{content:''}.luna-console-nesting-level::before{border-bottom:1px solid #ccc;position:absolute;top:0;left:0;margin-left:100%;width:5px;height:100%;box-sizing:border-box}.luna-console-log-item{position:relative;display:flex;border-top:1px solid transparent;border-bottom:1px solid #ccc;margin-top:-1px;color:#333}.luna-console-log-item:after{content:'';display:block;clear:both}.luna-console-log-item .luna-console-code{display:inline;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.luna-console-log-item .luna-console-code .luna-console-keyword{color:#881280}.luna-console-log-item .luna-console-code .luna-console-number{color:#1c00cf}.luna-console-log-item .luna-console-code .luna-console-operator{color:grey}.luna-console-log-item .luna-console-code .luna-console-comment{color:#236e25}.luna-console-log-item .luna-console-code .luna-console-string{color:#1a1aa6}.luna-console-log-item a{color:#15c!important}.luna-console-log-item .luna-console-icon-container{margin:0 -6px 0 10px}.luna-console-log-item .luna-console-icon-container .luna-console-icon{line-height:20px;font-size:12px;color:#333;position:relative}.luna-console-log-item .luna-console-icon-container .luna-console-icon-caret-down,.luna-console-log-item .luna-console-icon-container .luna-console-icon-caret-right{top:0;left:-2px}.luna-console-log-item .luna-console-icon-container .luna-console-icon-error{top:0;color:#ef3842}.luna-console-log-item .luna-console-icon-container .luna-console-icon-warn{top:0;color:#e8a400}.luna-console-log-item .luna-console-count{background:#8097bd;color:#fff;padding:2px 4px;border-radius:10px;font-size:12px;float:left;margin:1px -6px 0 10px}.luna-console-log-item .luna-console-log-content-wrapper{flex:1;overflow:hidden}.luna-console-log-item .luna-console-log-content{padding:3px 0;margin:0 10px;overflow-x:auto;-webkit-overflow-scrolling:touch;white-space:pre-wrap;-webkit-user-select:text;user-select:text}.luna-console-log-item .luna-console-log-content *{-webkit-user-select:text;user-select:text}.luna-console-log-item .luna-console-log-content>*{vertical-align:top}.luna-console-log-item .luna-console-log-content .luna-console-null,.luna-console-log-item .luna-console-log-content .luna-console-undefined{color:#5e5e5e}.luna-console-log-item .luna-console-log-content .luna-console-number{color:#1c00cf}.luna-console-log-item .luna-console-log-content .luna-console-boolean{color:#0d22aa}.luna-console-log-item .luna-console-log-content .luna-console-regexp,.luna-console-log-item .luna-console-log-content .luna-console-symbol{color:#881391}.luna-console-log-item .luna-console-data-grid,.luna-console-log-item .luna-console-dom-viewer{white-space:initial}.luna-console-log-item.luna-console-error{z-index:50;background:#fff0f0;color:red;border-top:1px solid #ffd6d6;border-bottom:1px solid #ffd6d6}.luna-console-log-item.luna-console-error .luna-console-stack{padding-left:1.2em;white-space:nowrap}.luna-console-log-item.luna-console-error .luna-console-count{background:red}.luna-console-log-item.luna-console-debug{z-index:20}.luna-console-log-item.luna-console-input{border-bottom-color:transparent}.luna-console-log-item.luna-console-warn{z-index:40;color:#5c5c00;background:#fffbe5;border-top:1px solid #fff5c2;border-bottom:1px solid #fff5c2}.luna-console-log-item.luna-console-warn .luna-console-count{background:#e8a400}.luna-console-log-item.luna-console-info{z-index:30}.luna-console-log-item.luna-console-group,.luna-console-log-item.luna-console-groupCollapsed{font-weight:700}.luna-console-preview{display:inline-block}.luna-console-preview .luna-console-preview-container{display:flex;align-items:center}.luna-console-preview .luna-console-json{overflow-x:auto;-webkit-overflow-scrolling:touch;padding-left:12px}.luna-console-preview .luna-console-preview-icon-container{display:block}.luna-console-preview .luna-console-preview-icon-container .luna-console-icon{position:relative;font-size:12px}.luna-console-preview .luna-console-preview-icon-container .luna-console-icon-caret-down{top:2px}.luna-console-preview .luna-console-preview-icon-container .luna-console-icon-caret-right{top:1px}.luna-console-preview .luna-console-preview-content-container{word-break:break-all}.luna-console-preview .luna-console-descriptor,.luna-console-preview .luna-console-object-preview{font-style:italic}.luna-console-preview .luna-console-key{color:#881391}.luna-console-preview .luna-console-number{color:#1c00cf}.luna-console-preview .luna-console-null{color:#5e5e5e}.luna-console-preview .luna-console-string{color:#c41a16}.luna-console-preview .luna-console-boolean{color:#0d22aa}.luna-console-preview .luna-console-special{color:#5e5e5e}.luna-console-theme-dark{color-scheme:dark}.luna-console-theme-dark .luna-console-log-container.luna-console-selected .luna-console-log-item{background:#29323d}.luna-console-theme-dark .luna-console-log-container.luna-console-selected .luna-console-log-item:not(.luna-console-error):not(.luna-console-warn){border-color:#4173b4}.luna-console-theme-dark .luna-console-log-item{color:#a5a5a5;border-bottom-color:#3d3d3d}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-keyword{color:#e36eec}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-number{color:#9980ff}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-operator{color:#7f7f7f}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-comment{color:#747474}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-string{color:#f29766}.luna-console-theme-dark .luna-console-log-item.luna-console-error{background:#290000;color:#ff8080;border-top-color:#5c0000;border-bottom-color:#5c0000}.luna-console-theme-dark .luna-console-log-item.luna-console-error .luna-console-count{background:#ff8080}.luna-console-theme-dark .luna-console-log-item.luna-console-warn{color:#ffcb6b;background:#332a00;border-top-color:#650;border-bottom-color:#650}.luna-console-theme-dark .luna-console-log-item .luna-console-count{background:#42597f;color:#949494}.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-null,.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-undefined{color:#7f7f7f}.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-boolean,.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-number{color:#9980ff}.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-regexp,.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-symbol{color:#e36eec}.luna-console-theme-dark .luna-console-icon-container .luna-console-icon-caret-down,.luna-console-theme-dark .luna-console-icon-container .luna-console-icon-caret-right{color:#9aa0a6}.luna-console-theme-dark .luna-console-header{border-bottom-color:#3d3d3d}.luna-console-theme-dark .luna-console-nesting-level{border-right-color:#3d3d3d}.luna-console-theme-dark .luna-console-nesting-level::before{border-bottom-color:#3d3d3d}.luna-console-theme-dark .luna-console-preview .luna-console-key{color:#e36eec}.luna-console-theme-dark .luna-console-preview .luna-console-number{color:#9980ff}.luna-console-theme-dark .luna-console-preview .luna-console-null{color:#7f7f7f}.luna-console-theme-dark .luna-console-preview .luna-console-string{color:#f29766}.luna-console-theme-dark .luna-console-preview .luna-console-boolean{color:#9980ff}.luna-console-theme-dark .luna-console-preview .luna-console-special{color:#7f7f7f}",""]),b.exports=_},4987:function(b,_,d){(_=d(3645)(!1)).push([b.id,".luna-data-grid{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;position:relative;font-size:12px;border:1px solid #ccc;overflow:hidden;outline:0}.luna-data-grid.luna-data-grid-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-data-grid.luna-data-grid-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-data-grid .luna-data-grid-hidden,.luna-data-grid.luna-data-grid-hidden{display:none}.luna-data-grid .luna-data-grid-invisible,.luna-data-grid.luna-data-grid-invisible{visibility:hidden}.luna-data-grid *{box-sizing:border-box}.luna-data-grid.luna-data-grid-theme-dark{color:#a5a5a5;background-color:#242424}.luna-data-grid.luna-data-grid-theme-dark{color:#a5a5a5;background:#242424;border-color:#3d3d3d}.luna-data-grid table{width:100%;height:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.luna-data-grid td,.luna-data-grid th{padding:1px 4px;border-left:1px solid #ccc;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.luna-data-grid td:first-child,.luna-data-grid th:first-child{border-left:none}.luna-data-grid th{font-weight:400;border-bottom:1px solid #ccc;text-align:left;background:#f3f3f3}.luna-data-grid th.luna-data-grid-sortable:active,.luna-data-grid th.luna-data-grid-sortable:hover{background:#e6e6e6}.luna-data-grid td{height:20px;cursor:default;-webkit-user-select:text;user-select:text}.luna-data-grid:focus .luna-data-grid-node.luna-data-grid-selected{color:#fff;background:#1a73e8}.luna-data-grid:focus.luna-data-grid-theme-dark .luna-data-grid-node.luna-data-grid-selected{background:#0e639c}.luna-data-grid-data-container,.luna-data-grid-header-container{overflow:hidden}.luna-data-grid-header-container{height:21px}.luna-data-grid-data-container{overflow-y:auto}.luna-data-grid-data-container .luna-data-grid-node.luna-data-grid-selected{background:#ddd}.luna-data-grid-data-container tr:nth-child(even){background:#f2f7fd}.luna-data-grid-filler-row td{height:auto}.luna-data-grid-resizer{position:absolute;top:0;bottom:0;width:5px;z-index:500;cursor:col-resize}.luna-data-grid-resizing{cursor:col-resize!important}.luna-data-grid-resizing .luna-data-grid *{cursor:col-resize!important}.luna-data-grid-theme-dark{color-scheme:dark}.luna-data-grid-theme-dark td,.luna-data-grid-theme-dark th{border-color:#3d3d3d}.luna-data-grid-theme-dark th{background:#292a2d}.luna-data-grid-theme-dark th.luna-data-grid-sortable:hover{background:#303030}.luna-data-grid-theme-dark .luna-data-grid-data-container .luna-data-grid-node.luna-data-grid-selected{background:#393939}.luna-data-grid-theme-dark .luna-data-grid-data-container tr:nth-child(even){background:#0b2544}",""]),b.exports=_},8903:function(b,_,d){(_=d(3645)(!1)).push([b.id,"@font-face{font-family:luna-dom-viewer-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAASgAAsAAAAAB4QAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAFwAAACMIRYl8k9TLzIAAAFkAAAAPQAAAFZLxUkaY21hcAAAAaQAAADHAAACWBcU1KRnbHlmAAACbAAAAC4AAAAwabU7V2hlYWQAAAKcAAAALwAAADZzjr4faGhlYQAAAswAAAAYAAAAJAFyANdobXR4AAAC5AAAABAAAAA4AZAAAGxvY2EAAAL0AAAAEAAAAB4AnACQbWF4cAAAAwQAAAAfAAAAIAEZAA9uYW1lAAADJAAAASkAAAIWm5e+CnBvc3QAAARQAAAATgAAAG5m1cqleJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiC2AdNMDGwMckCSGyzHCuSxA2kuIJ+HgReoggtJnANMcwJFGRmYAXZLBkt4nGNgZJBlnMDAysDAUMfQAyRloHQCAyeDMQMDEwMrMwNWEJDmmsJwgEH3IxPDCSBXCEwyMDCCCABbzwhtAAAAeJy1kksKwjAQhr/0oX0JLlyIZ9BDCQXtRkEEwQO56uV6Av0nmZWI4MIJX2H+JvNIBiiBXGxFAWEkYPaQGqKe00S94C5/xVJKwY49PQNnLly5Tdnzqb9JPXByNUT13YKipLVm4wvmilvR0ilfrboKFsy0N9OB2Yco32z+437SLVTQdo05dUksgF8z/8+6+B3dU2m67YR1u3fsLXtH7egtEq04OhZpcKzbk1OLs2NzcXE0F3rNhOW9ObqbKSRsVqYsQfYC6fYeiQB4nGNgZACBlQzTGZgYGMyVxVc2O073AIpAxHsYloHFRc2dPZY2OTIwAACmEQesAAB4nGNgZGBgAOLeSTNM4/ltvjJwM5wACkRxPt7XgKCBYCXDMiDJwcAE4gAAQEgKxAB4nGNgZGBgOMHAACdXMjAyoAI+ADixAkp4nGNgAIITUEwCAABMyAGReJxjYAACHgYJ7BAADsoBLXicY2BkYGDgY2BmANEMDExAzAWEDAz/wXwGAAomASkAeJxlkD1uwkAUhMdgSAJSghQpKbNVCiKZn5IDQE9Bl8KYtTGyvdZ6QaLLCXKEHCGniHKCHChj82hgLT9/M2/e7soABviFh3p5uG1qvVq4oTpxm/Qg7JOfhTvo40W4S38o3MMbpsJ9POKdO3j+HZ0BSuEW7vEh3Kb/KeyTv4Q7eMK3cJf+j3APK/wJ9/HqDdPIFLEp3FIn+yy0Z3n+rrStUlOoSTA+WwtdaBs6vVHro6oOydS5WMXW5GrOrs4yo0prdjpywda5cjYaxeIHkcmRIoJBgbipDktoJNgjQwh71b3UK6YtKvq1VpggwPgqtWCqaJIhlcaGyTWOrBUOPG1K1zGt+FrO5KS5zGreJCMr/u+6t6MT0Q+wbaZKzDDiE1/kg+YO+T89EV6oAAAAeJxdxk0KgCAUAOE3/adlJ/FQgqBuFETw+i2kTd9mRiYZvv4ZJmYWVjZ2Dk4UmosbwyPK1Vq69aVnPbamEBuOSqFj8WQSgUgTeQGPtA2iAAA=') format('woff')}[class*=' luna-dom-viewer-icon-'],[class^=luna-dom-viewer-icon-]{display:inline-block;font-family:luna-dom-viewer-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-dom-viewer-icon-arrow-down:before{content:'\\f101'}.luna-dom-viewer-icon-arrow-right:before{content:'\\f102'}.luna-dom-viewer{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;overflow-y:auto;-webkit-overflow-scrolling:touch;background:0 0;overflow-x:hidden;word-wrap:break-word;padding:0 0 0 12px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;cursor:default;list-style:none}.luna-dom-viewer.luna-dom-viewer-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-dom-viewer.luna-dom-viewer-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-dom-viewer .luna-dom-viewer-hidden,.luna-dom-viewer.luna-dom-viewer-hidden{display:none}.luna-dom-viewer .luna-dom-viewer-invisible,.luna-dom-viewer.luna-dom-viewer-invisible{visibility:hidden}.luna-dom-viewer *{box-sizing:border-box}.luna-dom-viewer ul{list-style:none}.luna-dom-viewer.luna-dom-viewer-theme-dark{color:#e8eaed}.luna-dom-viewer-toggle{min-width:12px;margin-left:-12px}.luna-dom-viewer-icon-arrow-down,.luna-dom-viewer-icon-arrow-right{position:absolute!important;font-size:12px!important}.luna-dom-viewer-tree-item{line-height:16px;min-height:16px;position:relative;z-index:10;outline:0}.luna-dom-viewer-tree-item.luna-dom-viewer-selected .luna-dom-viewer-selection,.luna-dom-viewer-tree-item:hover .luna-dom-viewer-selection{display:block}.luna-dom-viewer-tree-item:hover .luna-dom-viewer-selection{background:#f2f7fd}.luna-dom-viewer-tree-item.luna-dom-viewer-selected .luna-dom-viewer-selection{background:#e0e0e0}.luna-dom-viewer-tree-item.luna-dom-viewer-selected:focus .luna-dom-viewer-selection{background:#cfe8fc}.luna-dom-viewer-tree-item .luna-dom-viewer-icon-arrow-down{display:none}.luna-dom-viewer-tree-item.luna-dom-viewer-expanded .luna-dom-viewer-icon-arrow-down{display:inline-block}.luna-dom-viewer-tree-item.luna-dom-viewer-expanded .luna-dom-viewer-icon-arrow-right{display:none}.luna-dom-viewer-html-tag{color:#881280}.luna-dom-viewer-tag-name{color:#881280}.luna-dom-viewer-attribute-name{color:#994500}.luna-dom-viewer-attribute-value{color:#1a1aa6}.luna-dom-viewer-attribute-value.luna-dom-viewer-attribute-underline{text-decoration:underline}.luna-dom-viewer-html-comment{color:#236e25}.luna-dom-viewer-selection{position:absolute;display:none;left:-10000px;right:-10000px;top:0;bottom:0;z-index:-1}.luna-dom-viewer-children{margin:0;overflow-x:visible;overflow-y:visible;padding-left:15px}.luna-dom-viewer-text-node .luna-dom-viewer-keyword{color:#881280}.luna-dom-viewer-text-node .luna-dom-viewer-number{color:#1c00cf}.luna-dom-viewer-text-node .luna-dom-viewer-operator{color:grey}.luna-dom-viewer-text-node .luna-dom-viewer-comment{color:#236e25}.luna-dom-viewer-text-node .luna-dom-viewer-string{color:#1a1aa6}.luna-dom-viewer-theme-dark .luna-dom-viewer-icon-arrow-down,.luna-dom-viewer-theme-dark .luna-dom-viewer-icon-arrow-right{color:#9aa0a6}.luna-dom-viewer-theme-dark .luna-dom-viewer-html-tag,.luna-dom-viewer-theme-dark .luna-dom-viewer-tag-name{color:#5db0d7}.luna-dom-viewer-theme-dark .luna-dom-viewer-attribute-name{color:#9bbbdc}.luna-dom-viewer-theme-dark .luna-dom-viewer-attribute-value{color:#f29766}.luna-dom-viewer-theme-dark .luna-dom-viewer-html-comment{color:#898989}.luna-dom-viewer-theme-dark .luna-dom-viewer-tree-item:hover .luna-dom-viewer-selection{background:#083c69}.luna-dom-viewer-theme-dark .luna-dom-viewer-tree-item.luna-dom-viewer-selected .luna-dom-viewer-selection{background:#454545}.luna-dom-viewer-theme-dark .luna-dom-viewer-tree-item.luna-dom-viewer-selected:focus .luna-dom-viewer-selection{background:#073d69}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-keyword{color:#e36eec}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-number{color:#9980ff}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-operator{color:#7f7f7f}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-comment{color:#747474}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-string{color:#f29766}",""]),b.exports=_},5512:function(b,_,d){(_=d(3645)(!1)).push([b.id,"@font-face{font-family:luna-modal-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAQwAAsAAAAABpQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAEkAAABoILgliE9TLzIAAAFUAAAAPQAAAFZL+0kZY21hcAAAAZQAAACBAAAB3sqmCy5nbHlmAAACGAAAAC0AAAA0Ftcaz2hlYWQAAAJIAAAALgAAADZzhL4YaGhlYQAAAngAAAAYAAAAJAFoANBobXR4AAACkAAAAA8AAAAcAMgAAGxvY2EAAAKgAAAADgAAABAATgBObWF4cAAAArAAAAAfAAAAIAESABhuYW1lAAAC0AAAASkAAAIWm5e+CnBvc3QAAAP8AAAAMQAAAEOplauDeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiCWgNIsQMzKwAykWRnYgGxGBiYAk+wFgwAAAHicY2BkkGWcwMDKwMBQx9ADJGWgdAIDJ4MxAwMTAyszA1YQkOaawnCAIfkjI8MJIFcITDIwMIIIAGAqCKIAAAB4nM2RQQqDQAxFXxyVUsST9DhduBd3ggsv0JX39QT6kwYED1D6hzeQD0nmM0ADFPESNdiG4frItfALz/Br3qp7HlS0jEzMLKy7HYf8e33J1HMdortoWuPzreUX8p2hEikj9f+oi3vIyl86JpWYEvfnxH9sSTzPmijXbl+wE7urE5sAAAB4nGNgZACB+UDIzcBgrs6uzi7OLm4ubq4+j1tfn1tPD0xOhjGAJAMDAKekBtMAAAB4nGNgZGBgAGLPuE0l8fw2Xxm4GU4ABaI4H+9rQNBAMB8IGRg4GJhAHAA5KgqUAAB4nGNgZGBgOMHAACfnMzAyoAJ2ADfsAjl4nGNgAIITDFgBABIUAMkAeJxjYAACKQQEAAO4AJ0AAHicY2BkYGBgZ+BhANEMDExAzAWEDAz/wXwGAApKASsAeJxlkD1uwkAUhMdgSAJSghQpKbNVCiKZn5IDQE9Bl8KYtTGyvdZ6QaLLCXKEHCGniHKCHChj82hgLT9/M2/e7soABviFh3p5uG1qvVq4oTpxm/Qg7JOfhTvo40W4S38o3MMbpsJ9POKdO3j+HZ0BSuEW7vEh3Kb/KeyTv4Q7eMK3cJf+j3APK/wJ9/HqDdPIFLEp3FIn+yy0Z3n+rrStUlOoSTA+WwtdaBs6vVHro6oOydS5WMXW5GrOrs4yo0prdjpywda5cjYaxeIHkcmRIoJBgbipDktoJNgjQwh71b3UK6YtKvq1VpggwPgqtWCqaJIhlcaGyTWOrBUOPG1K1zGt+FrO5KS5zGreJCMr/u+6t6MT0Q+wbaZKzDDiE1/kg+YO+T89EV6oAAAAeJxjYGKAABiNDtgZmRiZGVkYWRnZGNkZORhYk3Pyi1MZkxlzGPMZixlTGRgANIEEbAAAAA==') format('woff')}[class*=' luna-modal-icon-'],[class^=luna-modal-icon-]{display:inline-block;font-family:luna-modal-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-modal-icon-close:before{content:'\\f101'}.luna-modal{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;justify-content:center;align-items:center}.luna-modal.luna-modal-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-modal.luna-modal-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-modal .luna-modal-hidden,.luna-modal.luna-modal-hidden{display:none}.luna-modal .luna-modal-invisible,.luna-modal.luna-modal-invisible{visibility:hidden}.luna-modal *{box-sizing:border-box}.luna-modal-icon-close{position:absolute;right:16px;top:18px;cursor:pointer;font-size:20px}.luna-modal-body{position:relative;background:#fff;max-height:100%;display:flex;flex-direction:column;border-radius:4px}.luna-modal-body.luna-modal-no-title{position:static}.luna-modal-body.luna-modal-no-title .luna-modal-title{display:none}.luna-modal-body.luna-modal-no-title .luna-modal-icon-close{color:#fff}.luna-modal-body.luna-modal-no-footer .luna-modal-footer{display:none}.luna-modal-hidden{display:none}.luna-modal-title{padding:16px;padding-right:36px;padding-bottom:0;font-size:18px;height:46px;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.luna-modal-content{padding:16px;overflow-y:auto}.luna-modal-footer{padding:12px}.luna-modal-button-group{display:flex;justify-content:flex-end}.luna-modal-button{padding:0 12px;background:#e9ecef;cursor:default;position:relative;-webkit-user-select:none;user-select:none;margin:0 4px;font-size:12px;border-radius:4px;overflow:hidden;height:28px;line-height:28px}.luna-modal-button:active::before{background:#1a73e8;content:'';opacity:.4;position:absolute;top:0;left:0;width:100%;height:100%;z-index:2}.luna-modal-button.luna-modal-secondary{color:#1a73e8;border:1px solid #ccc;background:#fff}.luna-modal-button.luna-modal-primary{color:#fff;background:#1a73e8}.luna-modal-input{box-sizing:border-box;outline:0;width:100%;font-size:16px;padding:6px 12px;border:1px solid #ccc;-webkit-appearance:none;-moz-appearance:none}.luna-modal-theme-dark{color:#a5a5a5}.luna-modal-theme-dark .luna-modal-body{background:#242424}",""]),b.exports=_},7591:function(b,_,d){(_=d(3645)(!1)).push([b.id,".luna-notification{position:fixed;top:0;left:0;width:100%;height:100%;padding:20px;box-sizing:border-box;pointer-events:none;display:flex;flex-direction:column;font-size:14px;font-family:Arial,Helvetica,sans-serif}.luna-notification-item{display:flex;box-shadow:0 2px 2px 0 rgba(0,0,0,.07),0 1px 5px 0 rgba(0,0,0,.1);padding:10px 16px;color:#333;background:#fff}.luna-notification-lower{margin-top:16px}.luna-notification-upper{margin-bottom:16px}.luna-notification-theme-dark .luna-notification-item{box-shadow:0 2px 2px 0 rgba(255,255,255,.07),0 1px 5px 0 rgba(255,255,255,.1);color:#a5a5a5;background:#242424}",""]),b.exports=_},4821:function(b,_,d){(_=d(3645)(!1)).push([b.id,"@font-face{font-family:luna-object-viewer-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAS8AAsAAAAAB7QAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAGEAAACMISgl+k9TLzIAAAFsAAAAPQAAAFZLxUkWY21hcAAAAawAAADWAAACdBU42qdnbHlmAAAChAAAAC4AAAAwabU7V2hlYWQAAAK0AAAALwAAADZzjr4faGhlYQAAAuQAAAAYAAAAJAFyANlobXR4AAAC/AAAABAAAABAAZAAAGxvY2EAAAMMAAAAEAAAACIAtACobWF4cAAAAxwAAAAfAAAAIAEbAA9uYW1lAAADPAAAASkAAAIWm5e+CnBvc3QAAARoAAAAUwAAAHZW8MNZeJxNjTsOQFAQRc/z/+sV1mABohKV0gZeJRJR2X9cT4RJZu7nFIMBMjoGvHGaF6rdngcNAc/c/O/Nvq2W5E1igdNE2zv1iGh1c5FQPlYXUlJRyxt9+/pUKadQa/AveGEGZQAAAHicY2BkkGScwMDKwMBQx9ADJGWgdAIDJ4MxAwMTAyszA1YQkOaawnCAQfcjE8MJIFcITDIwMIIIAFqDCGkAAAB4nM2STQ4BQRCFv54ZP8MwFhYW4gQcShBsSERi50BWDuFCcwJedddKRGKnOt8k9aanqudVAy0gF3NRQLgTsLhJDVHP6UW94Kp8zEhKwYIlG/YcOXHm0mTPp96aumLLwdUQ1fcIqmJrwpSZL+iqak5JmyE1Ayr1bdGhr/2ZPmp/qPQtuj/uJzqQl+pfDyypesQD6AT/ElV8PjyrMccT9rdLR3PUFBI227VTio1jbm6dodg5VnPvmAsHxzofHfmi+Sbs/pwdWcXFkWdNSNg9arIE2QufuSCyAAB4nGNgZACBlQzTGZgYGMyVxVc2O073AIpAxHsYloHFRc2dPZY2OTIwAACmEQesAAB4nGNgZGBgAOINe2b6x/PbfGXgZjgBFIjifLyvAUEDwUqGZUCSg4EJxAEAUn4LLAB4nGNgZGBgOMHAACdXMjAyoAIBADizAkx4nGNgAIITUEwGAABZUAGReJxjYAACHgYJ3BAAE94BXXicY2BkYGAQYGBmANEMDExAzAWEDAz/wXwGAApcASsAeJxlkD1uwkAUhMdgSAJSghQpKbNVCiKZn5IDQE9Bl8KYtTGyvdZ6QaLLCXKEHCGniHKCHChj82hgLT9/M2/e7soABviFh3p5uG1qvVq4oTpxm/Qg7JOfhTvo40W4S38o3MMbpsJ9POKdO3j+HZ0BSuEW7vEh3Kb/KeyTv4Q7eMK3cJf+j3APK/wJ9/HqDdPIFLEp3FIn+yy0Z3n+rrStUlOoSTA+WwtdaBs6vVHro6oOydS5WMXW5GrOrs4yo0prdjpywda5cjYaxeIHkcmRIoJBgbipDktoJNgjQwh71b3UK6YtKvq1VpggwPgqtWCqaJIhlcaGyTWOrBUOPG1K1zGt+FrO5KS5zGreJCMr/u+6t6MT0Q+wbaZKzDDiE1/kg+YO+T89EV6oAAAAeJxdxjkOgCAUANE/uOOGB+FQBIjaaEJIuL6FsfE1M6Lk9fXPoKioaWjp6BnQjEzMLKwYNtHepZhtuMs1vpvO/ch4HIlIxhK4KVyc7BwiD8nvDlkA') format('woff')}[class*=' luna-object-viewer-icon-'],[class^=luna-object-viewer-icon-]{display:inline-block;font-family:luna-object-viewer-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-object-viewer-icon-caret-down:before{content:'\\f101'}.luna-object-viewer-icon-caret-right:before{content:'\\f102'}.luna-object-viewer{overflow-x:auto;-webkit-overflow-scrolling:touch;overflow-y:hidden;cursor:default;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;line-height:1.2;min-height:100%;color:#333;list-style:none!important}.luna-object-viewer ul{list-style:none!important;padding:0!important;padding-left:12px!important;margin:0!important}.luna-object-viewer li{position:relative;white-space:nowrap;line-height:16px;min-height:16px}.luna-object-viewer>li>.luna-object-viewer-key{display:none}.luna-object-viewer span{position:static!important}.luna-object-viewer li .luna-object-viewer-collapsed~.luna-object-viewer-close:before{color:#999}.luna-object-viewer-array .luna-object-viewer-object .luna-object-viewer-key{display:inline}.luna-object-viewer-null{color:#5e5e5e}.luna-object-viewer-regexp,.luna-object-viewer-string{color:#c41a16}.luna-object-viewer-number{color:#1c00cf}.luna-object-viewer-boolean{color:#0d22aa}.luna-object-viewer-special{color:#5e5e5e}.luna-object-viewer-key,.luna-object-viewer-key-lighter{color:#881391}.luna-object-viewer-key-lighter{opacity:.6}.luna-object-viewer-key-special{color:#5e5e5e}.luna-object-viewer-collapsed .luna-object-viewer-icon,.luna-object-viewer-expanded .luna-object-viewer-icon{position:absolute!important;left:-12px;color:#727272;font-size:12px}.luna-object-viewer-icon-caret-right{top:0}.luna-object-viewer-icon-caret-down{top:1px}.luna-object-viewer-expanded>.luna-object-viewer-icon-caret-down{display:inline}.luna-object-viewer-expanded>.luna-object-viewer-icon-caret-right{display:none}.luna-object-viewer-collapsed>.luna-object-viewer-icon-caret-down{display:none}.luna-object-viewer-collapsed>.luna-object-viewer-icon-caret-right{display:inline}.luna-object-viewer-hidden~ul{display:none}.luna-object-viewer-theme-dark{color:#fff}.luna-object-viewer-theme-dark .luna-object-viewer-null,.luna-object-viewer-theme-dark .luna-object-viewer-special{color:#a1a1a1}.luna-object-viewer-theme-dark .luna-object-viewer-regexp,.luna-object-viewer-theme-dark .luna-object-viewer-string{color:#f28b54}.luna-object-viewer-theme-dark .luna-object-viewer-boolean,.luna-object-viewer-theme-dark .luna-object-viewer-number{color:#9980ff}.luna-object-viewer-theme-dark .luna-object-viewer-key,.luna-object-viewer-theme-dark .luna-object-viewer-key-lighter{color:#5db0d7}",""]),b.exports=_},9819:function(b,_,d){(_=d(3645)(!1)).push([b.id,`.luna-setting{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;min-width:320px}.luna-setting.luna-setting-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-setting.luna-setting-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-setting .luna-setting-hidden,.luna-setting.luna-setting-hidden{display:none}.luna-setting .luna-setting-invisible,.luna-setting.luna-setting-invisible{visibility:hidden}.luna-setting *{box-sizing:border-box}.luna-setting-item.luna-setting-selected,.luna-setting-item:hover{background:#f3f3f3}.luna-setting-item.luna-setting-selected:focus{outline:1px solid #1a73e8}.luna-setting-item .luna-setting-title{line-height:1.4em;font-weight:600}.luna-setting-item .luna-setting-description{line-height:1.4em}.luna-setting-item .luna-setting-description *{margin:0}.luna-setting-item .luna-setting-description strong{font-weight:600}.luna-setting-item .luna-setting-description a{background-color:transparent;color:#0969da;text-decoration:none}.luna-setting-item .luna-setting-control,.luna-setting-item .luna-setting-description{font-size:12px}.luna-setting-item .luna-setting-description{margin-bottom:8px}.luna-setting-item .luna-setting-control{display:flex;align-items:center}.luna-setting-item-button,.luna-setting-item-checkbox,.luna-setting-item-input,.luna-setting-item-number,.luna-setting-item-select,.luna-setting-item-title{padding:10px}.luna-setting-item-title{font-size:18px;font-weight:600}.luna-setting-item-input input{-webkit-tap-highlight-color:transparent;color:#333;-webkit-appearance:none;appearance:none;border:1px solid #ccc;outline:0;padding:2px 8px;border-radius:0;font-size:14px;background:#fff;width:100%}.luna-setting-item-number input[type=number]{-webkit-tap-highlight-color:transparent;color:#333;-webkit-appearance:none;appearance:none;border:1px solid #ccc;outline:0;padding:2px 8px;border-radius:0;font-size:14px;background:#fff;width:200px;padding:2px}.luna-setting-item-number .luna-setting-range-container{flex:2;position:relative;top:1px}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track{height:4px;width:100%;padding:0 10px;position:absolute;left:0;top:4px}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar{background:#ccc;border-radius:2px;overflow:hidden;width:100%;height:4px}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar .luna-setting-range-track-progress{height:100%;background:#1a73e8;width:50%}.luna-setting-item-number .luna-setting-range-container input{-webkit-appearance:none;background:0 0;height:4px;width:100%;position:relative;top:-3px;margin:0 auto;outline:0;border-radius:2px}.luna-setting-item-number .luna-setting-range-container input::-webkit-slider-thumb{-webkit-appearance:none;position:relative;top:0;z-index:1;width:16px;border:none;height:16px;border-radius:10px;border:1px solid #ccc;background:radial-gradient(circle at center,#eee 0,#eee 15%,#fff 22%,#fff 100%)}.luna-setting-item-checkbox input{-webkit-appearance:none;appearance:none;width:14px;height:14px;border:1px solid #ccc;border-radius:0;position:relative;outline:0;margin-left:0;margin-right:8px;transition:background-color .1s;align-self:flex-start;flex-shrink:0}.luna-setting-item-checkbox input:checked{background-color:#1a73e8;border-color:#1a73e8}.luna-setting-item-checkbox input:checked:after{content:"";width:100%;height:100%;position:absolute;left:0;top:0;background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMwMHB4JyB3aWR0aD0nMzAwcHgnICBmaWxsPSIjZmZmZmZmIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgdmVyc2lvbj0iMS4xIiB4PSIwcHgiIHk9IjBweCI+PHRpdGxlPmljb25fYnlfUG9zaGx5YWtvdjEwPC90aXRsZT48ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz48ZyBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyBmaWxsPSIjZmZmZmZmIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNi4wMDAwMDAsIDI2LjAwMDAwMCkiPjxwYXRoIGQ9Ik0xNy45OTk5ODc4LDMyLjQgTDEwLjk5OTk4NzgsMjUuNCBDMTAuMjI2Nzg5MSwyNC42MjY4MDE0IDguOTczMTg2NDQsMjQuNjI2ODAxNCA4LjE5OTk4Nzc5LDI1LjQgTDguMTk5OTg3NzksMjUuNCBDNy40MjY3ODkxNCwyNi4xNzMxOTg2IDcuNDI2Nzg5MTQsMjcuNDI2ODAxNCA4LjE5OTk4Nzc5LDI4LjIgTDE2LjU4NTc3NDIsMzYuNTg1Nzg2NCBDMTcuMzY2ODIyOCwzNy4zNjY4MzUgMTguNjMzMTUyOCwzNy4zNjY4MzUgMTkuNDE0MjAxNCwzNi41ODU3ODY0IEw0MC41OTk5ODc4LDE1LjQgQzQxLjM3MzE4NjQsMTQuNjI2ODAxNCA0MS4zNzMxODY0LDEzLjM3MzE5ODYgNDAuNTk5OTg3OCwxMi42IEw0MC41OTk5ODc4LDEyLjYgQzM5LjgyNjc4OTEsMTEuODI2ODAxNCAzOC41NzMxODY0LDExLjgyNjgwMTQgMzcuNzk5OTg3OCwxMi42IEwxNy45OTk5ODc4LDMyLjQgWiI+PC9wYXRoPjwvZz48L2c+PC9nPjwvc3ZnPg==);background-size:30px;background-repeat:no-repeat;background-position:center}.luna-setting-item-checkbox label{-webkit-tap-highlight-color:transparent}.luna-setting-item-checkbox label *{margin:0}.luna-setting-item-select .luna-setting-select{position:relative}.luna-setting-item-select .luna-setting-select select{margin:0;font-size:14px;background:#fff;-webkit-appearance:none;appearance:none;border:1px solid #ccc;padding:2px 8px;padding-right:18px;outline:0;color:#333;border-radius:0;-webkit-tap-highlight-color:transparent}.luna-setting-item-select .luna-setting-select:after{content:'';width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #333;position:absolute;top:0;bottom:0;right:6px;margin:auto;pointer-events:none}.luna-setting-item-select .luna-setting-select select{width:300px}.luna-setting-item-button button{-webkit-tap-highlight-color:transparent;background:#fff;border:1px solid #ccc;padding:2px 8px;color:#1a73e8;font-size:14px;border-radius:2px}.luna-setting-item-button button:active,.luna-setting-item-button button:hover{background:#f3f3f3}.luna-setting-item-button button:active{border:1px solid #1a73e8}.luna-setting-item-separator{border-bottom:1px solid #ccc}.luna-setting-theme-dark{color-scheme:dark;color:#a5a5a5;background:#242424}.luna-setting-theme-dark .luna-setting-item.luna-setting-selected,.luna-setting-theme-dark .luna-setting-item:hover{background:#292a2d}.luna-setting-theme-dark .luna-setting-item .luna-setting-description a{background-color:transparent;color:#58a6ff}.luna-setting-theme-dark .luna-setting-item-separator{border-color:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-input input{background:#3d3d3d;border-color:#3d3d3d;color:#a5a5a5}.luna-setting-theme-dark .luna-setting-item-checkbox input{border-color:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-select .luna-setting-select select{color:#a5a5a5;border-color:#3d3d3d;background:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-select .luna-setting-select:after{border-top-color:#a5a5a5}.luna-setting-theme-dark .luna-setting-item-button button{background:#242424;border-color:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-button button:active,.luna-setting-theme-dark .luna-setting-item-button button:hover{background:#292a2d}.luna-setting-theme-dark .luna-setting-item-button button:active{border:1px solid #1a73e8}.luna-setting-theme-dark .luna-setting-item-number input[type=number]{background:#3d3d3d;border-color:#3d3d3d;color:#a5a5a5}.luna-setting-theme-dark .luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar{background:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-number .luna-setting-range-container input::-webkit-slider-thumb{border-color:#3d3d3d;background:radial-gradient(circle at center,#aaa 0,#aaa 15%,#ccc 22%,#ccc 100%)}`,""]),b.exports=_},2156:function(b,_,d){(_=d(3645)(!1)).push([b.id,".luna-tab{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;position:relative;overflow:hidden;width:100%}.luna-tab.luna-tab-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-tab.luna-tab-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-tab .luna-tab-hidden,.luna-tab.luna-tab-hidden{display:none}.luna-tab .luna-tab-invisible,.luna-tab.luna-tab-invisible{visibility:hidden}.luna-tab *{box-sizing:border-box}.luna-tab.luna-tab-theme-dark{color:#a5a5a5;background-color:#242424}.luna-tab-tabs-container{border-bottom:1px solid #ccc}.luna-tab-tabs{overflow-x:auto;-webkit-overflow-scrolling:touch;overflow-y:hidden;width:100%;height:100%;font-size:0;white-space:nowrap}.luna-tab-tabs::-webkit-scrollbar{display:none;width:0;height:0}.luna-tab-item{cursor:pointer;display:inline-block;padding:0 10px;font-size:12px;text-align:center;text-transform:capitalize}.luna-tab-item:hover{background:#f3f3f3}.luna-tab-slider{transition:left .3s,width .3s;height:1px;background:#1a73e8;position:absolute;bottom:0;left:0}",""]),b.exports=_},5777:function(b,_,d){(_=d(3645)(!1)).push([b.id,"@font-face{font-family:luna-text-viewer-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAS0AAsAAAAAB2QAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAFQAAAB0INElr09TLzIAAAFcAAAAPQAAAFZL+0klY21hcAAAAZwAAACfAAACEAEewxRnbHlmAAACPAAAAIYAAACkNSDggmhlYWQAAALEAAAALgAAADZzrb4oaGhlYQAAAvQAAAAWAAAAJAGRANNobXR4AAADDAAAABAAAAAoAZAAAGxvY2EAAAMcAAAAEAAAABYBWgFIbWF4cAAAAywAAAAdAAAAIAEXADtuYW1lAAADTAAAASkAAAIWm5e+CnBvc3QAAAR4AAAAOwAAAFJIWdOleJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBWAdNMDGwMQkAWK1CGlYEZyGMCstiBMpxAUUYGZgDbGgXDeJxjYGTQYJzAwMrAwFDH0AMkZaB0AgMngzEDAxMDKzMDVhCQ5prCcIAh+SMTwwkgVwhMMjAwgggAY84IrgAAAHicvZFLCsMwDERHzsdJ6aL0HD1VQiDQRbIN9Axd9aI+QTpjq5Bdd5F4Bo1lybIBNAAq8iA1YB8YZG+qlvUKl6zXGBjf6MofMWHGEyu2FPb9oCxULCtHs3yy+J2urg1rtojo0HM/MKnFGabOGlbdYvdT+1N6/7drXl8e6Vajo3efHP3b7HAUvntBMy1OJKujMTeHNZMV9McpFBC+tLgY4QB4nGNgZACBEwzrGdgZGOwZxdnVDdXNPfKEGlhchO0KhZtZ3IQYmMFq1jCsZpBi0GLQY2AwNzGzZjQSk2UUYdNmVFID8UyVRUXYlNRMlVGlTM1FjU3tmZkTmVhYmFRBhHwoCyuzKgtTIjMzWJg3ZClIGMRlZQmVB7GhMixM0aGhQIsB52sTqgAAeJxjYGRgYADi2JNxkvH8Nl8ZuBlOAAWiOB/va0DQQHCCYT2Q5GBgAnEANJ0KnQAAeJxjYGRgYDjBwIBEMjKgAi4AOvoCZQAAeJxjYACCE1CMBwAAM7gBkXicY2AAAiGGIFQIABXIAqN4nGNgZGBg4GLQZ2BmAAEmMI8LSP4H8xkADjQBUwAAAHicZZA9bsJAFITHYEgCUoIUKSmzVQoimZ+SA0BPQZfCmLUxsr3WekGiywlyhBwhp4hyghwoY/NoYC0/fzNv3u7KAAb4hYd6ebhtar1auKE6cZv0IOyTn4U76ONFuEt/KNzDG6bCfTzinTt4/h2dAUrhFu7xIdym/ynsk7+EO3jCt3CX/o9wDyv8Cffx6g3TyBSxKdxSJ/sstGd5/q60rVJTqEkwPlsLXWgbOr1R66OqDsnUuVjF1uRqzq7OMqNKa3Y6csHWuXI2GsXiB5HJkSKCQYG4qQ5LaCTYI0MIe9W91CumLSr6tVaYIMD4KrVgqmiSIZXGhsk1jqwVDjxtStcxrfhazuSkucxq3iQjK/7vurejE9EPsG2mSsww4hNf5IPmDvk/PRFeqAAAAHicXcU7CsAgFEXBe4x/l/kQBAtt3X0KSZNpRk7X91/F8eAJRBKZQqUp2Og2va19MAadyWJzpBd4kgcWAA==') format('woff')}[class*=' luna-text-viewer-icon-'],[class^=luna-text-viewer-icon-]{display:inline-block;font-family:luna-text-viewer-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-text-viewer-icon-check:before{content:'\\f101'}.luna-text-viewer-icon-copy:before{content:'\\f102'}.luna-text-viewer{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;padding:0;unicode-bidi:embed;position:relative;overflow:auto;border:1px solid #ccc}.luna-text-viewer.luna-text-viewer-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-text-viewer.luna-text-viewer-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-text-viewer .luna-text-viewer-hidden,.luna-text-viewer.luna-text-viewer-hidden{display:none}.luna-text-viewer .luna-text-viewer-invisible,.luna-text-viewer.luna-text-viewer-invisible{visibility:hidden}.luna-text-viewer *{box-sizing:border-box}.luna-text-viewer.luna-text-viewer-theme-dark{color:#d9d9d9;border-color:#3d3d3d;background:#242424}.luna-text-viewer:hover .luna-text-viewer-copy{opacity:1}.luna-text-viewer-table{display:table}.luna-text-viewer-table .luna-text-viewer-line-number,.luna-text-viewer-table .luna-text-viewer-line-text{padding:0}.luna-text-viewer-table-row{display:table-row}.luna-text-viewer-line-number{display:table-cell;padding:0 3px 0 8px!important;text-align:right;vertical-align:top;-webkit-user-select:none;user-select:none;border-right:1px solid #ccc}.luna-text-viewer-line-text{display:table-cell;padding-left:4px!important;-webkit-user-select:text;user-select:text}.luna-text-viewer-copy{background:#fff;opacity:0;position:absolute;right:5px;top:5px;border:1px solid #ccc;border-radius:4px;width:25px;height:25px;text-align:center;line-height:25px;cursor:pointer;transition:opacity .3s,top .3s}.luna-text-viewer-copy .luna-text-viewer-icon-check{color:#188037}.luna-text-viewer-text{padding:4px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;box-sizing:border-box;white-space:pre;display:block}.luna-text-viewer-text.luna-text-viewer-line-numbers{padding:0}.luna-text-viewer-text.luna-text-viewer-wrap-long-lines{white-space:pre-wrap}.luna-text-viewer-text.luna-text-viewer-wrap-long-lines .luna-text-viewer-line-text{word-break:break-all}.luna-text-viewer-theme-dark{color-scheme:dark}.luna-text-viewer-theme-dark .luna-text-viewer-copy,.luna-text-viewer-theme-dark .luna-text-viewer-line-number{border-color:#3d3d3d}.luna-text-viewer-theme-dark .luna-text-viewer-copy .luna-text-viewer-icon-check{color:#81c995}.luna-text-viewer-theme-dark .luna-text-viewer-copy{background-color:#242424}",""]),b.exports=_},5357:function(b,_,d){(_=d(3645)(!1)).push([b.id,"@font-face{font-family:eruda-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAA6UAAsAAAAAGvAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAARoAAAHeLjoycE9TLzIAAAIkAAAAPwAAAFZWm1KoY21hcAAAAmQAAAFdAAADwhPu1O9nbHlmAAADxAAAB+wAAA9I7RPQpGhlYWQAAAuwAAAAMQAAADZ26MSyaGhlYQAAC+QAAAAdAAAAJAgEBC9obXR4AAAMBAAAAB0AAACwXAv//GxvY2EAAAwkAAAAOwAAAFpuVmoybWF4cAAADGAAAAAfAAAAIAE9AQ1uYW1lAAAMgAAAASkAAAIWm5e+CnBvc3QAAA2sAAAA5QAAAU4VMmUJeJxNkD1Ow0AQhb9NHGISCH9RiB0cErCNHRrqFFSIyqKiQHSpEFJERUnBCTgPZ+AEHIe34wDe1f69efPezOKAHldc07q5re4ZrFevL8QE1MPHm3e3fn5aEf6+FAvsDHHuTUoxd7zzwSdffLulq9wjLbaYau8TacZMONE554xzZsrtNfBEzFOhbSmOyTmga0ikvRR/37RSsSMyDukYPjWdgGOtsSK55Y/k0Bf/ksK0MrbFr70idsVZKNPnDcSay3umd2TISCvWTJSxI78lFQ/C+qbv/Zo9tNXDP55ZL7k0Q90u5F5XX0qrYx16btccCtXg/ULrKzGFuqY9rUTMhf3fkCNj+MxUnsM/frr5Qx+ZbH4vVQ0F5Q/ZQBvxAAB4nGNgZJJgnMDAysDA1Mt0hoGBoR9CM75mMGLkAIoysDIzYAUBaa4pDAcYdD+KsIC4MSxMDIxAGoQZALgnCOUAeJy1011SGlEQhuF3BFHxD5UUyr8gIJIsiiKJsSqJlrHKsJssKFeuxF6Bfj3dF96aqhzqoZnDzJyG8w2wCVTko1SheKLAx1/NFuV8hXo5X+WPjht6+fmfWHLDHQ+srfnykjMrvnPPoxXlzNtRlFc26HLBZblal1N9ntBnwIgx5/SYMaWt78+YM6TDgitduaEVq+q0xhbb7KifPQ441N2OOOaEJh9oaYka7xvdd57vQz1P+oPR+Bx6s2lbrc6H0Flc/cO9/sfY87fiOY8u8X0J/muX6VRW6UI+p4l8SX35mgZynUbyLY3lJukf0e6HnvxIM/mZpnKb2nKXvM/7dCa/0lwe0lAeU0d+p4Wsk3bBiuDptY2A10rw9Fo1eOJtM/iTYLWA162A1+2A152A13rwJ8R2g++AJaUU2w/KK3YQlFzsMCjDWCMozdhRUK6x46CEYydBWceagdYraihRngAAAHic7RdbbBxX9Z57Z2d2d2ZndryzM7ve9ax3NztjO/bann0lTuW16zoBJSWJ7Zg83NiUJCQ1Ik2ikKQJNC9FFQqVEG0RVLQoSpEKH2klqgpEIyWAUMRTNBJC/PUDhETgiwhQd8y5s1s7oqr624/srO6ce89zzjn3nHsJEPwxyn5GVEJKBTcCdc80pAiYhkjfNWL+NnhLdTKqfxVOqJlxFX6E84wb86/6X4+5GRLw0/vsOgkREoFGBFx62P/uFviBP78FWrC02d/r79vcpmMl+k2uBwwJxIILTrVeyXsmK8krRLb5YGqUaCb9ksYnMuBqMtnRcY6V1nidml6texaY9CxSRm3TtKNIjcxrUjhEWKD3OnuNJEgPKSG/I6nUpo06fxwXH8lmEoyDFQIVyrROs7254z990rj0u2PLez47WqG1yu69V7ZdfDxU9He4C6P+v+HN+vlnD9Uou0Zp+NnfvveT/XL0kbGFxT/u37tx7CTdeuGlKfiibcMr/gt9qfyu05e4+YEdb7A3iEVG0ArdEAvDIPHBqTbB7bgCDA0sdH0x3/nEHDT4YFJi9siz74iaOBkK3ZyRTRXwE+FGG15BeA0Pf14hqinP3AyFJnHhnVm5xzThmNSBNFjDdvwzw75GFJIlvWhZ1UHlYlI3zIputa3CSduiRF7P09e9on+jODpanPOKsJMDOPV2wU7/BqsVPcQ2ix41X/8ARKpbfhPVtHNgik1hXAhIlmQ1rIbbcCVIzN/7+65794KRTc13IBwJXVkhRACBkAEyhVyiBqJbRn81YRjKUDfRN9xHpoVBt0xJRZ+iS4ehZFg2utJrjCO2GrAUAizcj+c3pXpiXVQwThZmdNrbrx+hAjtjbhSF5FPyKSsqmGraWKYCbfl97vMLi79fXHje7XsAhBsoo0P35fyMPpCj+lM0FDptJexuYzl82upRufxlKgrTh/+fOwBXc+Jt9jZJBTnxUbH/yGT5j4jRT2pB9O1oO/oi3FyD2/ggU14LY/j5RuHTJIZf5LR/WVmbaB2CT6xdQa4KwJZIHPfyMFoWRNSmQZDLlJVpdRw8GwwVWEGlScOGijdOq2VKyfHDB7/d1/+d37zXeT/dXG42l7/Kh2a20pd0JpxsxTVNt8KWyuu/94Ujr+7uvFpvQXP5PCfEAU4l+6pZZ9Ix3eqGqmsGrvok28V+zi6TKEYyi/Udt0MNavkkJC1e+vQA1tGqil6EV93j/UBbY0AXm/2Vku+z53x/8MDT5879U9Nb4Cqq/yf/WEjReiECfS9+C2f/6umFS/77q3t7kp0nGu8DTrFTQrwG1KtsoHVXlnXL0qMKHTRpGbaJlt7aoVsSbO3aQFb5L7MTJElIwrBMvnWxQteCEl2QREn8Ci/Ef9i7u1IT6tX5Pb/ePV+rUXKEL3DMkUPzc6OeNzo3/6C8K2QdrzVlKAYyHhBcxGgUyoCRqXimJZXYwYO1y1tWxQWKLkyfunpqevrU5vJs4SQ02JUDw94qMlC6maORJpc9AR/Sm7C4cK7S4MoL/FNqFYy+Nw5VbpIoWaWXP0atf+fj1Lb36w12h6SxShIouuNQw+TCVDNsWvHqDStpNUoFnobUs6mhUvpmn+r2VxaeuXjmCc974vSjm44OxfytrXeH5iaKxYm5fXMThcLEHLwcGzq66dHTnObMxWcWKv2u2tfa1ipMzu7rEM5OFshqLfsFu4R9thszrVjAUoHFgH98DxRreb3CK74rMTh/bWmJTq9Pd0nCZOvsbfrYrVsTty9cOPc5Or2U6spq8rXbrbNAL9yeuHWLYuEnEiErK0JIAPIN8kNyl9wn/yUt7mioN6GGTi1jDQrypNPRxQ+8zREatnUsVtgbcDHAaZA0rc6TxOIWLPFVXLDbvYRT45CDSnBOqFhee4aTcWw8gapGnS+Z+EYrOuqh825jrY5WSVwPDSewh/OWqYueCJQFEjhELTdgcdEODjUCo5yge7lcAlJxRSgceyZyu5LFfqnaeldKlsyunnK6N6LEaUSqTSndgpZK7jC7NZaR7LGcGhXwgMNC+WFt0MxEomZcECQ9EY4JkgAQDilSNKnGuxXJ0u2hdG9YUZkiZcfWpaOWkUv0G6IaCseVVH81o0dEEClKGokassX0hKSk44PxBGOS4E8cmNk+OMSY5+2cXfz8zI4hrG4jI9tnFpW/hqKx7PCnH1O7wpFkqeANT4IUVhopPTUwnNJxzSlUzLASV+4YfUIkpoQFTYvoMUFkJgtJ/Z6VEIyymx4usdCW5CuDc9s+dZDm6GeiejTl1jN6VFKUdMHMlUIWzaQEOdyrKHIsL0VZJB0TE1rUlLvCo71yPKya3dW+ONBQRBajUdPuKoXFsBAOiYoUdx7JtSXlU3ZJNAW1O+4ktBCFqBjLJhMW97JgyonISE5kVIJQJJ6tO6nueCJj1TV/D6uMzu06tH/H44NlRr3RnbNPLu7cXh75sWOklURzi5ZI9dgqG6tuEAf0bkWX0/0j6S6+RjfaYiQsbkKHhuNdms6kUExWZNGSlJgzkjIGjPK61KjLxOvGc/1/27r9KOQe7omHe+LhnvjQnmArLTyHMYHiPbGbFLEL4Q1BxOsiHrfy2HIBz67BXQbPsVbB4TNDZP/wF4x63cAxUl/PRtbXI61f2QM2/iuZUqleKr3ABp1Mxnn/rjvpOJN0b9K2k/73+Xi/VHOcGl4qyf8AzjWNo3icY2BkYGAA4uhnXafj+W2+MnCzgASiOB/va4DR///+/8/CysIElOBgAJEMAHS2DWQAAAB4nGNgZGBgYQABFtb/f///ZWFlYGRABToAW+YEPQAAAHicY2BgYGAhiP//J6wGCbNCMcP/vwxUBgDl4QRhAAAAeJxjYAACBQYThiCGAoYtjAyMZowBjPuYuJjCmBYxvWNWYXZhzmFewfyIRYUliPUOexr7EmIhAF3rF0sAeJxjYGRgYNBhZGRgZwABJiDmAkIGhv9gPgMADcIBTAB4nGWQPW7CQBSEx2BIAlKCFCkps1UKIpmfkgNAT0GXwpi1MbK91npBossJcoQcIaeIcoIcKGPzaGAtP38zb97uygAG+IWHenm4bWq9WrihOnGb9CDsk5+FO+jjRbhLfyjcwxumwn084p07eP4dnQFK4Rbu8SHcpv8p7JO/hDt4wrdwl/6PcA8r/An38eoN08gUsSncUif7LLRnef6utK1SU6hJMD5bC11oGzq9Ueujqg7J1LlYxdbkas6uzjKjSmt2OnLB1rlyNhrF4geRyZEigkGBuKkOS2gk2CNDCHvVvdQrpi0q+rVWmCDA+Cq1YKpokiGVxobJNY6sFQ48bUrXMa34Ws7kpLnMat4kIyv+77q3oxPRD7BtpkrMMOITX+SD5g75Pz0RXqgAAAB4nG2MyW6DQBiD+RKYpKT7vqf7Gg55pNHwEyJNGDSMRHj70nKtD7Zly45G0YA0+h8LRoyJSVBMmLJDyoxd9tjngEOOOOaEU84454JLrrjmhlvuuGfOA4888cwLr7zxzgeffPHNgixKtfeuzawUYTZYv16VITXaS8hy11azwf7FibGi/dS4Te2laWLj6k7lYiVIIv3aK9nWusqng2TLsXR900m2VMXaBvFxbXWnvBjn84mXor8pk54kqKa/NmUvVkyIg3NW/VK2jFvtKzQeR0uGRSgIrFlRYsip2FDT0LGNoh/MCkh9AAAA') format('woff')}[class*=' _icon-'],[class^='_icon-']{display:inline-block;font-family:eruda-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}._icon-arrow-left:before{content:'\\f101'}._icon-arrow-right:before{content:'\\f102'}._icon-caret-down:before{content:'\\f103'}._icon-caret-right:before{content:'\\f104'}._icon-clear:before{content:'\\f105'}._icon-compress:before{content:'\\f106'}._icon-copy:before{content:'\\f107'}._icon-delete:before{content:'\\f108'}._icon-error:before{content:'\\f109'}._icon-expand:before{content:'\\f10a'}._icon-eye:before{content:'\\f10b'}._icon-filter:before{content:'\\f10c'}._icon-play:before{content:'\\f10d'}._icon-record:before{content:'\\f10e'}._icon-refresh:before{content:'\\f10f'}._icon-reset:before{content:'\\f110'}._icon-search:before{content:'\\f111'}._icon-select:before{content:'\\f112'}._icon-tool:before{content:'\\f113'}._icon-warn:before{content:'\\f114'}",""]),b.exports=_},3645:function(b){b.exports=function(_){var d=[];return d.toString=function(){return this.map(function(k){var j=function($,et){var tt=$[1]||"",rt=$[3];if(!rt)return tt;if(et&&typeof btoa=="function"){var nt=(at=rt,it=btoa(unescape(encodeURIComponent(JSON.stringify(at)))),dt="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(it),"/*# ".concat(dt," */")),ot=rt.sources.map(function(ut){return"/*# sourceURL=".concat(rt.sourceRoot||"").concat(ut," */")});return[tt].concat(ot).concat([nt]).join(` + `));var Tt=mt.val,Dt=this._$el.find(Cn(".raw")).get(0);Tt.length>ps&&(Tt=us()(Tt,ps)),new Sl.Z(Dt,{text:Tt,wrapLongLines:!0,showLineNumbers:Tt.length'))}},{key:"_renderHtml",value:function(mt){var Tt=this;(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&mt===this._lastHtml||(this._lastHtml=mt,this._$el.html(mt),setTimeout(function(){return Tt._$el.get(0).scrollTop=0},0))}}]),Ft}(ct),Pp=3e4,El=8e4,ps=1e5,Np={init:function(){var tn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Gt=tn.container,Ft=tn.tool,mt=tn.autoScale,Tt=mt===void 0||mt,Dt=tn.useShadowDom,un=Dt===void 0||Dt,On=tn.defaults,Qn=On===void 0?{}:On;this._isInit||(this._isInit=!0,this._scale=1,this._initContainer(Gt,un),this._initStyle(),this._initDevTools(Qn),this._initEntryBtn(),this._initSettings(),this._initTools(Ft),this._registerListener(),Tt&&this._autoScale())},_isInit:!1,version:"2.11.3",util:k,chobitsu:uo,Tool:ct,Console:F0,Elements:mp,Network:np,Sources:Lp,Resources:kp,Info:Mp,Snippets:wp,Settings:qt,get:function(tn){if(this._checkInit()){if(tn==="entryBtn")return this._entryBtn;var Gt=this._devTools;return tn?Gt.get(tn):Gt}},add:function(tn){if(this._checkInit())return Ao()(tn)&&(tn=tn(this)),this._devTools.add(tn),this},remove:function(tn){return this._devTools.remove(tn),this},show:function(tn){if(this._checkInit()){var Gt=this._devTools;return tn?Gt.showTool(tn):Gt.show(),this}},hide:function(){if(this._checkInit())return this._devTools.hide(),this},destroy:function(){this._devTools.destroy(),delete this._devTools,this._entryBtn.destroy(),delete this._entryBtn,this._unregisterListener(),lt()(this._container).remove(),Un.clear(),this._isInit=!1,this._container=null,this._shadowRoot=null},scale:function(tn){return $o()(tn)?(this._scale=tn,ut.emit(ut.SCALE,tn),this):this._scale},position:function(tn){var Gt=this._entryBtn;return Us()(tn)?(Gt.setPos(tn),this):Gt.getPos()},_autoScale:function(){Ro()()&&this.scale(1/ol()())},_registerListener:function(){var tn=this;this._addListener=function(){return tn.add.apply(tn,arguments)},this._showListener=function(){return tn.show.apply(tn,arguments)},ut.on(ut.ADD,this._addListener),ut.on(ut.SHOW,this._showListener),ut.on(ut.SCALE,Un.setScale)},_unregisterListener:function(){ut.off(ut.ADD,this._addListener),ut.off(ut.SHOW,this._showListener),ut.off(ut.SCALE,Un.setScale)},_checkInit:function(){return this._isInit||Wo.error('Please call "eruda.init()" first'),this._isInit},_initContainer:function(tn,Gt){var Ft,mt;tn||(tn=document.createElement("div"),document.documentElement.appendChild(tn)),tn.id="eruda",tn.style.all="initial",this._container=tn,Gt&&(tn.attachShadow?Ft=tn.attachShadow({mode:"open"}):tn.createShadowRoot&&(Ft=tn.createShadowRoot()),Ft&&(Un.container=document.head,Un(d(5357)+d(9327)+d(4821)+d(8903)+d(5777)),mt=document.createElement("div"),Ft.appendChild(mt),this._shadowRoot=Ft)),this._shadowRoot||(mt=document.createElement("div"),tn.appendChild(mt)),rn()(mt,{className:"eruda-container __chobitsu-hide__",contentEditable:!1}),so()().name==="ios"&&mt.setAttribute("ontouchstart",""),this._$el=lt()(mt)},_initDevTools:function(tn){this._devTools=new $0(this._$el,{defaults:tn})},_initStyle:function(){var tn="eruda-style-container",Gt=this._$el;this._shadowRoot?(Un.container=this._shadowRoot,Un(":host { all: initial }")):(Gt.append('
    ')),Un.container=Gt.find(".".concat(tn)).get(0)),Un(d(8020)+d(4821)+d(9327)+d(7591)+d(4987)+d(8903)+d(5512)+d(2156)+d(5777)+d(9819)+d(8094)+d(8516)+d(5357))},_initEntryBtn:function(){var tn=this;this._entryBtn=new O0(this._$el),this._entryBtn.on("click",function(){return tn._devTools.toggle()})},_initSettings:function(){var tn=this._devTools,Gt=new qt;tn.add(Gt),this._entryBtn.initCfg(Gt),tn.initCfg(Gt)},_initTools:function(){var tn=this,Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["console","elements","network","resources","sources","info","snippets"];Gt=as()(Gt);var Ft=this._devTools;Gt.forEach(function(mt){var Tt=tn[Go()(mt)];try{Tt&&Ft.add(new Tt)}catch(Dt){Pn()(function(){Wo.error("Something wrong when initializing tool ".concat(mt,":"),Dt.message)})}}),Ft.showTool(Gt[0]||"settings")}}},2027:function(b,_,d){var k=d(6672).Z;b.exports=k,b.exports.default=k},6610:function(b,_,d){d.r(_),_.default={}},9143:function(b,_,d){var k=this&&this.__awaiter||function(dt,ut,ht,ft){return new(ht||(ht=Promise))(function(st,ct){function pt(yt){try{wt(ft.next(yt))}catch(vt){ct(vt)}}function lt(yt){try{wt(ft.throw(yt))}catch(vt){ct(vt)}}function wt(yt){var vt;yt.done?st(yt.value):(vt=yt.value,vt instanceof ht?vt:new ht(function(St){St(vt)})).then(pt,lt)}wt((ft=ft.apply(dt,ut||[])).next())})},j=this&&this.__generator||function(dt,ut){var ht,ft,st,ct,pt={label:0,sent:function(){if(1&st[0])throw st[1];return st[1]},trys:[],ops:[]};return ct={next:lt(0),throw:lt(1),return:lt(2)},typeof Symbol=="function"&&(ct[Symbol.iterator]=function(){return this}),ct;function lt(wt){return function(yt){return function(vt){if(ht)throw new TypeError("Generator is already executing.");for(;pt;)try{if(ht=1,ft&&(st=2&vt[0]?ft.return:vt[0]?ft.throw||((st=ft.return)&&st.call(ft),0):ft.next)&&!(st=st.call(ft,vt[1])).done)return st;switch(ft=0,st&&(vt=[2&vt[0],st.value]),vt[0]){case 0:case 1:st=vt;break;case 4:return pt.label++,{value:vt[1],done:!1};case 5:pt.label++,ft=vt[1],vt=[0];continue;case 7:vt=pt.ops.pop(),pt.trys.pop();continue;default:if(st=pt.trys,!((st=st.length>0&&st[st.length-1])||vt[0]!==6&&vt[0]!==2)){pt=0;continue}if(vt[0]===3&&(!st||vt[1]>st[0]&&vt[1]",jt))return void Rt.push(Xt);var Zt=[];lt.default(Xt.attributes,function(En){var yn=En.name,jn=En.value;return Zt.push(yn,jn)});for(var dn=0,An=Zt.length;dn",ht.default.parse(jt)[0].attrs))},_.setAttributeValue=function(Mt){var jt=Mt.nodeId,Rt=Mt.name,zt=Mt.value;nt.getNode(jt).setAttribute(Rt,zt)};var _t=[];function Ct(Mt,jt){for(var Rt=rt.filterNodes(Mt.childNodes),zt=0,Xt=Rt.length;zt5&&_t.pop();for(var Rt=0;Rt<5;Rt++)St.setGlobal("$"+Rt,_t[Rt])},_.setNodeValue=function(Mt){var jt=Mt.nodeId,Rt=Mt.value;nt.getNode(jt).nodeValue=Rt},_.setOuterHTML=function(Mt){var jt=Mt.nodeId,Rt=Mt.outerHTML;nt.getNode(jt).outerHTML=Rt},_.getDOMNodeId=function(Mt){var jt=Mt.node;return{nodeId:rt.getOrCreateNodeId(jt)}},_.getDOMNode=function(Mt){var jt=Mt.nodeId;return{node:nt.getNode(jt)}},at.default.on("attributes",function(Mt,jt){var Rt=nt.getNodeId(Mt);if(Rt){var zt=Mt.getAttribute(jt);dt.default(zt)?tt.default.trigger("DOM.attributeRemoved",{nodeId:Rt,name:jt}):tt.default.trigger("DOM.attributeModified",{nodeId:Rt,name:jt,value:zt})}}),at.default.on("childList",function(Mt,jt,Rt){var zt=nt.getNodeId(Mt);if(zt){if(jt=rt.filterNodes(jt),Rt=rt.filterNodes(Rt),!ut.default(jt)){En();for(var Xt=0,Jt=jt.length;Xt0||At)&&(St.children=ft(pt,yt)),St}function ft(pt,lt){var wt=st(pt.childNodes);return j.default(wt,function(yt){return ht(yt,{depth:lt-1})})}function st(pt){return $.default(pt,function(lt){return ct(lt)})}function ct(pt){if(pt.nodeType===1){var lt=pt.getAttribute("class")||"";if(rt.default(lt,"__chobitsu-hide__")||rt.default(lt,"html2canvas-container"))return!1}var wt=!(pt.nodeType===3&&tt.default(pt.nodeValue||"")==="");return wt&&pt.parentNode?ct(pt.parentNode):wt}_.getOrCreateNodeId=ut,_.clear=function(){at.clear(),it.clear()},_.getNodeId=function(pt){return it.get(pt)},_.wrap=ht,_.getChildNodes=ft,_.getPreviousNode=function(pt){var lt=pt.previousSibling;if(lt){for(;!ct(lt)&<.previousSibling;)lt=lt.previousSibling;return lt&&ct(lt)?lt:void 0}},_.filterNodes=st,_.isValidNode=ct,_.getNode=function(pt){var lt=at.get(pt);if(!lt||lt.nodeType===10)throw ot.createErr(-32e3,"Could not find node with given id");return lt}},7923:function(b,_,d){var k=this&&this.__importDefault||function(Kt){return Kt&&Kt.__esModule?Kt:{default:Kt}};Object.defineProperty(_,"__esModule",{value:!0}),_.getProperties=_.releaseObj=_.getObj=_.wrap=_.clear=void 0;var j=k(d(3367)),$=k(d(6156)),et=k(d(6472)),tt=k(d(4777)),rt=k(d(9833)),nt=k(d(2749)),ot=k(d(3708)),at=k(d(7470)),it=k(d(1754)),dt=k(d(3085)),ut=k(d(2533)),ht=k(d(300)),ft=k(d(1116)),st=k(d(8740)),ct=k(d(415)),pt=k(d(9804)),lt=k(d(6257)),wt=new Map,yt=new Map,vt=new Map,St=new Map,xt=1;function bt(Kt,Zt){var dn=yt.get(Kt);return dn||(dn=JSON.stringify({injectedScriptId:0,id:xt++}),yt.set(Kt,dn),wt.set(dn,Kt),vt.set(dn,Zt),dn)}function At(Kt,Zt){var dn=Zt===void 0?{}:Zt,An=dn.generatePreview,En=An!==void 0&&An,yn=dn.self,jn=yn===void 0?Kt:yn,Vn=zt(Kt),rn=Vn.type,xn=Vn.subtype;return rn==="undefined"?Vn:rn==="string"||rn==="boolean"||xn==="null"?(Vn.value=Kt,Vn):(Vn.description=Rt(Kt,jn),rn==="number"?(Vn.value=Kt,Vn):rn==="symbol"?(Vn.objectId=bt(Kt,jn),Vn):(Vn.className=rn==="function"?"Function":xn==="array"?"Array":xn==="map"?"Map":xn==="set"?"Set":xn==="regexp"?"RegExp":xn==="error"?Kt.name:dt.default(Kt,!1),En&&(Vn.preview=Mt(Kt,jn)),Vn.objectId=bt(Kt,jn),Vn))}function _t(Kt){return wt.get(Kt)}_.clear=function(){wt.clear(),yt.clear(),vt.clear()},_.wrap=At,_.getObj=_t,_.releaseObj=function(Kt){var Zt=_t(Kt);yt.delete(Zt),vt.delete(Kt),wt.delete(Kt)},_.getProperties=function(Kt){for(var Zt=Kt.accessorPropertiesOnly,dn=Kt.objectId,An=Kt.ownProperties,En=Kt.generatePreview,yn=[],jn={prototype:!An,unenumerable:!0,symbol:!Zt},Vn=wt.get(dn),rn=vt.get(dn),xn=ft.default(Vn,jn),fn=ct.default(Vn),Sn=0,bn=xn.length;SnCt&&(jn=Ct,An=!0);for(var Vn=0;VnCt){An=!0;break}xn.push({key:Mt(Sn),value:Mt(Kt.get(Sn))}),Vn++,Sn=fn.next().value}dn.entries=xn}else if(at.default(Kt)){var bn=[],hn=(Vn=0,Kt.keys());for(Sn=hn.next().value;Sn;){if(Vn>Ct){An=!0;break}bn.push({value:Mt(Sn)}),Vn++,Sn=hn.next().value}dn.entries=bn}return dn.overflow=An,dn}function jt(Kt,Zt){var dn=zt(Zt);dn.name=Kt;var An,En=dn.subtype;return An=dn.type==="object"?En==="null"?"null":En==="array"?"Array("+Zt.length+")":En==="map"?"Map("+Zt.size+")":En==="set"?"Set("+Zt.size+")":dt.default(Zt,!1):j.default(Zt),dn.value=An,dn}function Rt(Kt,Zt){Zt===void 0&&(Zt=Kt);var dn=zt(Kt),An=dn.type,En=dn.subtype;return An==="string"?Kt:An==="number"||An==="symbol"?j.default(Kt):An==="function"?ht.default(Kt):En==="array"?"Array("+Kt.length+")":En==="map"?"Map("+Zt.size+")":En==="set"?"Set("+Zt.size+")":En==="regexp"?j.default(Kt):En==="error"?Kt.stack:En==="internal#entry"?Kt.name?'{"'+j.default(Kt.name)+'" => "'+j.default(Kt.value)+'"}':'"'+j.default(Kt.value)+'"':dt.default(Kt,!1)}function zt(Kt){var Zt=typeof Kt,dn="object";if(Kt instanceof Xt)dn="internal#entry";else if($.default(Kt))dn="null";else if(et.default(Kt))dn="array";else if(it.default(Kt))dn="regexp";else if(nt.default(Kt))dn="error";else if(ot.default(Kt))dn="map";else if(at.default(Kt))dn="set";else try{rt.default(Kt)&&(dn="node")}catch{}return{type:Zt,subtype:dn}}var Xt=function(Kt,Zt){Zt&&(this.name=Zt),this.value=Kt};function Jt(Kt){return Kt instanceof Xt||!!(Kt[0]&&Kt[0]instanceof Xt)}},2636:function(b,_,d){var k,j=this&&this.__extends||(k=function(Ct,Mt){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(jt,Rt){jt.__proto__=Rt}||function(jt,Rt){for(var zt in Rt)Rt.hasOwnProperty(zt)&&(jt[zt]=Rt[zt])},k(Ct,Mt)},function(Ct,Mt){function jt(){this.constructor=Ct}k(Ct,Mt),Ct.prototype=Mt===null?Object.create(Mt):(jt.prototype=Mt.prototype,new jt)}),$=this&&this.__importDefault||function(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}};Object.defineProperty(_,"__esModule",{value:!0}),_.fullUrl=_.FetchRequest=_.XhrRequest=void 0;var et=$(d(1443)),tt=$(d(6768)),rt=$(d(9702)),nt=$(d(6334)),ot=$(d(8887)),at=$(d(4331)),it=$(d(8847)),dt=$(d(3783)),ut=$(d(6930)),ht=$(d(3875)),ft=d(316),st=function(Ct){function Mt(jt,Rt,zt){var Xt=Ct.call(this)||this;return Xt.xhr=jt,Xt.reqHeaders={},Xt.method=Rt,Xt.url=St(zt),Xt.id=ft.createId(),Xt}return j(Mt,Ct),Mt.prototype.toJSON=function(){return{method:this.method,url:this.url,id:this.id}},Mt.prototype.handleSend=function(jt){tt.default(jt)||(jt=""),jt={name:xt(this.url),url:this.url,data:jt,time:it.default(),reqHeaders:this.reqHeaders,method:this.method},ot.default(this.reqHeaders)||(jt.reqHeaders=this.reqHeaders),this.emit("send",this.id,jt)},Mt.prototype.handleReqHeadersSet=function(jt,Rt){jt&&Rt&&(this.reqHeaders[jt]=Rt)},Mt.prototype.handleHeadersReceived=function(){var jt=this.xhr,Rt=bt(jt.getResponseHeader("Content-Type")||"");this.emit("headersReceived",this.id,{type:Rt.type,subType:Rt.subType,size:yt(jt,!0,this.url),time:it.default(),resHeaders:wt(jt)})},Mt.prototype.handleDone=function(){var jt,Rt,zt,Xt=this,Jt=this.xhr,Kt=Jt.responseType,Zt="",dn=function(){Xt.emit("done",Xt.id,{status:Jt.status,size:yt(Jt,!1,Xt.url),time:it.default(),resTxt:Zt})},An=bt(Jt.getResponseHeader("Content-Type")||"");Kt!=="blob"||An.type!=="text"&&An.subType!=="javascript"&&An.subType!=="json"?(Kt!==""&&Kt!=="text"||(Zt=Jt.responseText),Kt==="json"&&(Zt=JSON.stringify(Jt.response)),dn()):(jt=Jt.response,Rt=function(En,yn){yn&&(Zt=yn),dn()},(zt=new FileReader).onload=function(){Rt(null,zt.result)},zt.onerror=function(En){Rt(En)},zt.readAsText(jt))},Mt}(et.default);_.XhrRequest=st;var ct=function(Ct){function Mt(jt,Rt){Rt===void 0&&(Rt={});var zt=Ct.call(this)||this;return jt instanceof window.Request&&(jt=jt.url),zt.url=St(jt),zt.id=ft.createId(),zt.options=Rt,zt.reqHeaders=Rt.headers||{},zt.method=Rt.method||"GET",zt}return j(Mt,Ct),Mt.prototype.send=function(jt){var Rt=this,zt=this.options,Xt=tt.default(zt.body)?zt.body:"";this.emit("send",this.id,{name:xt(this.url),url:this.url,data:Xt,reqHeaders:this.reqHeaders,time:it.default(),method:this.method}),jt.then(function(Jt){var Kt=bt((Jt=Jt.clone()).headers.get("Content-Type"));return Jt.text().then(function(Zt){var dn={type:Kt.type,subType:Kt.subType,time:it.default(),size:pt(Jt,Zt),resTxt:Zt,resHeaders:lt(Jt),status:Jt.status};ot.default(Rt.reqHeaders)||(dn.reqHeaders=Rt.reqHeaders),Rt.emit("done",Rt.id,dn)}),Jt})},Mt}(et.default);function pt(Ct,Mt){var jt=Ct.headers.get("Content-length");return jt?ht.default(jt):_t(Mt)}function lt(Ct){var Mt={};return Ct.headers.forEach(function(jt,Rt){return Mt[Rt]=jt}),Mt}function wt(Ct){var Mt=Ct.getAllResponseHeaders().split(` +`),jt={};return dt.default(Mt,function(Rt){if((Rt=at.default(Rt))!==""){var zt=Rt.split(":",2),Xt=zt[0],Jt=zt[1];jt[Xt]=at.default(Jt)}}),jt}function yt(Ct,Mt,jt){var Rt=0;function zt(){if(!Mt){var Xt=Ct.responseType,Jt="";Xt!==""&&Xt!=="text"||(Jt=Ct.responseText),Jt&&(Rt=_t(Jt))}}if(function(Xt){return!ut.default(Xt,At)}(jt))zt();else try{Rt=ht.default(Ct.getResponseHeader("Content-Length"))}catch{zt()}return Rt===0&&zt(),Rt}_.FetchRequest=ct;var vt=document.createElement("a");function St(Ct){return vt.href=Ct,vt.protocol+"//"+vt.host+vt.pathname+vt.search+vt.hash}function xt(Ct){var Mt=rt.default(Ct.split("/"));return Mt.indexOf("?")>-1&&(Mt=at.default(Mt.split("?")[0])),Mt===""&&(Mt=new nt.default(Ct).hostname),Mt}function bt(Ct){if(!Ct)return{type:"unknown",subType:"unknown"};var Mt=Ct.split(";")[0].split("/");return{type:Mt[0],subType:rt.default(Mt)}}_.fullUrl=St;var At=window.location.origin;function _t(Ct){var Mt=encodeURIComponent(Ct).match(/%[89ABab]/g);return Ct.length+(Mt?Mt.length:0)}},316:function(b,_,d){var k,j=this&&this.__extends||(k=function(ct,pt){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(lt,wt){lt.__proto__=wt}||function(lt,wt){for(var yt in wt)wt.hasOwnProperty(yt)&&(lt[yt]=wt[yt])},k(ct,pt)},function(ct,pt){function lt(){this.constructor=ct}k(ct,pt),ct.prototype=pt===null?Object.create(pt):(lt.prototype=pt.prototype,new lt)}),$=this&&this.__awaiter||function(ct,pt,lt,wt){return new(lt||(lt=Promise))(function(yt,vt){function St(At){try{bt(wt.next(At))}catch(_t){vt(_t)}}function xt(At){try{bt(wt.throw(At))}catch(_t){vt(_t)}}function bt(At){var _t;At.done?yt(At.value):(_t=At.value,_t instanceof lt?_t:new lt(function(Ct){Ct(_t)})).then(St,xt)}bt((wt=wt.apply(ct,pt||[])).next())})},et=this&&this.__generator||function(ct,pt){var lt,wt,yt,vt,St={label:0,sent:function(){if(1&yt[0])throw yt[1];return yt[1]},trys:[],ops:[]};return vt={next:xt(0),throw:xt(1),return:xt(2)},typeof Symbol=="function"&&(vt[Symbol.iterator]=function(){return this}),vt;function xt(bt){return function(At){return function(_t){if(lt)throw new TypeError("Generator is already executing.");for(;St;)try{if(lt=1,wt&&(yt=2&_t[0]?wt.return:_t[0]?wt.throw||((yt=wt.return)&&yt.call(wt),0):wt.next)&&!(yt=yt.call(wt,_t[1])).done)return yt;switch(wt=0,yt&&(_t=[2&_t[0],yt.value]),_t[0]){case 0:case 1:yt=_t;break;case 4:return St.label++,{value:_t[1],done:!1};case 5:St.label++,wt=_t[1],_t=[0];continue;case 7:_t=St.ops.pop(),St.trys.pop();continue;default:if(yt=St.trys,!((yt=yt.length>0&&yt[yt.length-1])||_t[0]!==6&&_t[0]!==2)){St=0;continue}if(_t[0]===3&&(!yt||_t[1]>yt[0]&&_t[1]ut;)if((at=it[ut++])!=at)return!0}else for(;dt>ut;ut++)if((tt||ut in it)&&it[ut]===nt)return tt||ut||0;return!tt&&-1}};b.exports={includes:et(!0),indexOf:et(!1)}},1589:function(b,_,d){var k=d(1400),j=d(6244),$=d(6135),et=Array,tt=Math.max;b.exports=function(rt,nt,ot){for(var at=j(rt),it=k(nt,at),dt=k(ot===void 0?at:ot,at),ut=et(tt(dt-it,0)),ht=0;it1?arguments[1]:void 0);_t=_t?_t.next:Ct.first;)for(Mt(_t.value,_t.key,this);_t&&_t.removed;)_t=_t.previous},has:function(At){return!!bt(this,At)}}),$(vt,lt?{get:function(At){var _t=bt(this,At);return _t&&_t.value},set:function(At,_t){return xt(this,At===0?0:At,_t)}}:{add:function(At){return xt(this,At=At===0?0:At,At)}}),dt&&j(vt,"size",{configurable:!0,get:function(){return St(this).size}}),yt},setStrong:function(ct,pt,lt){var wt=pt+" Iterator",yt=st(pt),vt=st(wt);ot(ct,pt,function(St,xt){ft(this,{type:wt,target:St,state:yt(St),kind:xt,last:void 0})},function(){for(var St=vt(this),xt=St.kind,bt=St.last;bt&&bt.removed;)bt=bt.previous;return St.target&&(St.last=bt=bt?bt.next:St.state.first)?at(xt=="keys"?bt.key:xt=="values"?bt.value:[bt.key,bt.value],!1):(St.target=void 0,at(void 0,!0))},lt?"entries":"values",!lt,!0),it(pt)}}},7710:function(b,_,d){var k=d(2109),j=d(7854),$=d(1702),et=d(4705),tt=d(8052),rt=d(2423),nt=d(408),ot=d(5787),at=d(614),it=d(8554),dt=d(111),ut=d(7293),ht=d(7072),ft=d(8003),st=d(9587);b.exports=function(ct,pt,lt){var wt=ct.indexOf("Map")!==-1,yt=ct.indexOf("Weak")!==-1,vt=wt?"set":"add",St=j[ct],xt=St&&St.prototype,bt=St,At={},_t=function(Xt){var Jt=$(xt[Xt]);tt(xt,Xt,Xt=="add"?function(Kt){return Jt(this,Kt===0?0:Kt),this}:Xt=="delete"?function(Kt){return!(yt&&!dt(Kt))&&Jt(this,Kt===0?0:Kt)}:Xt=="get"?function(Kt){return yt&&!dt(Kt)?void 0:Jt(this,Kt===0?0:Kt)}:Xt=="has"?function(Kt){return!(yt&&!dt(Kt))&&Jt(this,Kt===0?0:Kt)}:function(Kt,Zt){return Jt(this,Kt===0?0:Kt,Zt),this})};if(et(ct,!at(St)||!(yt||xt.forEach&&!ut(function(){new St().entries().next()}))))bt=lt.getConstructor(pt,ct,wt,vt),rt.enable();else if(et(ct,!0)){var Ct=new bt,Mt=Ct[vt](yt?{}:-0,1)!=Ct,jt=ut(function(){Ct.has(1)}),Rt=ht(function(Xt){new St(Xt)}),zt=!yt&&ut(function(){for(var Xt=new St,Jt=5;Jt--;)Xt[vt](Jt,Jt);return!Xt.has(-0)});Rt||((bt=pt(function(Xt,Jt){ot(Xt,xt);var Kt=st(new St,Xt,bt);return it(Jt)||nt(Jt,Kt[vt],{that:Kt,AS_ENTRIES:wt}),Kt})).prototype=xt,xt.constructor=bt),(jt||zt)&&(_t("delete"),_t("has"),wt&&_t("get")),(zt||Mt)&&_t(vt),yt&&xt.clear&&delete xt.clear}return At[ct]=bt,k({global:!0,constructor:!0,forced:bt!=St},At),ft(bt,ct),yt||lt.setStrong(bt,ct,wt),bt}},9920:function(b,_,d){var k=d(2597),j=d(3887),$=d(1236),et=d(3070);b.exports=function(tt,rt,nt){for(var ot=j(rt),at=et.f,it=$.f,dt=0;dt0&&k[0]<4?1:+(k[0]+k[1])),!j&&et&&(!(k=et.match(/Edge\/(\d+)/))||k[1]>=74)&&(k=et.match(/Chrome\/(\d+)/))&&(j=+k[1]),b.exports=j},748:function(b){b.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1060:function(b,_,d){var k=d(1702),j=Error,$=k("".replace),et=String(j("zxcasd").stack),tt=/\n\s*at [^:]*:[^\n]*/,rt=tt.test(et);b.exports=function(nt,ot){if(rt&&typeof nt=="string"&&!j.prepareStackTrace)for(;ot--;)nt=$(nt,tt,"");return nt}},5392:function(b,_,d){var k=d(8880),j=d(1060),$=d(2914),et=Error.captureStackTrace;b.exports=function(tt,rt,nt,ot){$&&(et?et(tt,rt):k(tt,"stack",j(nt,ot)))}},2914:function(b,_,d){var k=d(7293),j=d(9114);b.exports=!k(function(){var $=Error("a");return!("stack"in $)||(Object.defineProperty($,"stack",j(1,7)),$.stack!==7)})},2109:function(b,_,d){var k=d(7854),j=d(1236).f,$=d(8880),et=d(8052),tt=d(3072),rt=d(9920),nt=d(4705);b.exports=function(ot,at){var it,dt,ut,ht,ft,st=ot.target,ct=ot.global,pt=ot.stat;if(it=ct?k:pt?k[st]||tt(st,{}):(k[st]||{}).prototype)for(dt in at){if(ht=at[dt],ut=ot.dontCallGetSet?(ft=j(it,dt))&&ft.value:it[dt],!nt(ct?dt:st+(pt?".":"#")+dt,ot.forced)&&ut!==void 0){if(typeof ht==typeof ut)continue;rt(ht,ut)}(ot.sham||ut&&ut.sham)&&$(ht,"sham",!0),et(it,dt,ht,ot)}}},7293:function(b){b.exports=function(_){try{return!!_()}catch{return!0}}},6677:function(b,_,d){var k=d(7293);b.exports=!k(function(){return Object.isExtensible(Object.preventExtensions({}))})},2104:function(b,_,d){var k=d(4374),j=Function.prototype,$=j.apply,et=j.call;b.exports=typeof Reflect=="object"&&Reflect.apply||(k?et.bind($):function(){return et.apply($,arguments)})},9974:function(b,_,d){var k=d(1470),j=d(9662),$=d(4374),et=k(k.bind);b.exports=function(tt,rt){return j(tt),rt===void 0?tt:$?et(tt,rt):function(){return tt.apply(rt,arguments)}}},4374:function(b,_,d){var k=d(7293);b.exports=!k(function(){var j=(function(){}).bind();return typeof j!="function"||j.hasOwnProperty("prototype")})},6916:function(b,_,d){var k=d(4374),j=Function.prototype.call;b.exports=k?j.bind(j):function(){return j.apply(j,arguments)}},6530:function(b,_,d){var k=d(9781),j=d(2597),$=Function.prototype,et=k&&Object.getOwnPropertyDescriptor,tt=j($,"name"),rt=tt&&(function(){}).name==="something",nt=tt&&(!k||k&&et($,"name").configurable);b.exports={EXISTS:tt,PROPER:rt,CONFIGURABLE:nt}},5668:function(b,_,d){var k=d(1702),j=d(9662);b.exports=function($,et,tt){try{return k(j(Object.getOwnPropertyDescriptor($,et)[tt]))}catch{}}},1470:function(b,_,d){var k=d(4326),j=d(1702);b.exports=function($){if(k($)==="Function")return j($)}},1702:function(b,_,d){var k=d(4374),j=Function.prototype,$=j.call,et=k&&j.bind.bind($,$);b.exports=k?et:function(tt){return function(){return $.apply(tt,arguments)}}},5005:function(b,_,d){var k=d(7854),j=d(614),$=function(et){return j(et)?et:void 0};b.exports=function(et,tt){return arguments.length<2?$(k[et]):k[et]&&k[et][tt]}},1246:function(b,_,d){var k=d(648),j=d(8173),$=d(8554),et=d(7497),tt=d(5112)("iterator");b.exports=function(rt){if(!$(rt))return j(rt,tt)||j(rt,"@@iterator")||et[k(rt)]}},4121:function(b,_,d){var k=d(6916),j=d(9662),$=d(9670),et=d(6330),tt=d(1246),rt=TypeError;b.exports=function(nt,ot){var at=arguments.length<2?tt(nt):ot;if(j(at))return $(k(at,nt));throw rt(et(nt)+" is not iterable")}},8173:function(b,_,d){var k=d(9662),j=d(8554);b.exports=function($,et){var tt=$[et];return j(tt)?void 0:k(tt)}},7854:function(b,_,d){var k=function(j){return j&&j.Math==Math&&j};b.exports=k(typeof globalThis=="object"&&globalThis)||k(typeof window=="object"&&window)||k(typeof self=="object"&&self)||k(typeof d.g=="object"&&d.g)||function(){return this}()||Function("return this")()},2597:function(b,_,d){var k=d(1702),j=d(7908),$=k({}.hasOwnProperty);b.exports=Object.hasOwn||function(et,tt){return $(j(et),tt)}},3501:function(b){b.exports={}},842:function(b){b.exports=function(_,d){try{arguments.length==1?console.error(_):console.error(_,d)}catch{}}},490:function(b,_,d){var k=d(5005);b.exports=k("document","documentElement")},4664:function(b,_,d){var k=d(9781),j=d(7293),$=d(317);b.exports=!k&&!j(function(){return Object.defineProperty($("div"),"a",{get:function(){return 7}}).a!=7})},8361:function(b,_,d){var k=d(1702),j=d(7293),$=d(4326),et=Object,tt=k("".split);b.exports=j(function(){return!et("z").propertyIsEnumerable(0)})?function(rt){return $(rt)=="String"?tt(rt,""):et(rt)}:et},9587:function(b,_,d){var k=d(614),j=d(111),$=d(7674);b.exports=function(et,tt,rt){var nt,ot;return $&&k(nt=tt.constructor)&&nt!==rt&&j(ot=nt.prototype)&&ot!==rt.prototype&&$(et,ot),et}},2788:function(b,_,d){var k=d(1702),j=d(614),$=d(5465),et=k(Function.toString);j($.inspectSource)||($.inspectSource=function(tt){return et(tt)}),b.exports=$.inspectSource},8340:function(b,_,d){var k=d(111),j=d(8880);b.exports=function($,et){k(et)&&"cause"in et&&j($,"cause",et.cause)}},2423:function(b,_,d){var k=d(2109),j=d(1702),$=d(3501),et=d(111),tt=d(2597),rt=d(3070).f,nt=d(8006),ot=d(1156),at=d(2050),it=d(9711),dt=d(6677),ut=!1,ht=it("meta"),ft=0,st=function(pt){rt(pt,ht,{value:{objectID:"O"+ft++,weakData:{}}})},ct=b.exports={enable:function(){ct.enable=function(){},ut=!0;var pt=nt.f,lt=j([].splice),wt={};wt[ht]=1,pt(wt).length&&(nt.f=function(yt){for(var vt=pt(yt),St=0,xt=vt.length;Stwt;wt++)if((vt=zt(ft[wt]))&&nt(ht,vt))return vt;return new ut(!1)}pt=ot(ft,lt)}for(St=_t?ft.next:pt.next;!(xt=j(St,pt)).done;){try{vt=zt(xt.value)}catch(Xt){it(pt,"throw",Xt)}if(typeof vt=="object"&&vt&&nt(ht,vt))return vt}return new ut(!1)}},9212:function(b,_,d){var k=d(6916),j=d(9670),$=d(8173);b.exports=function(et,tt,rt){var nt,ot;j(et);try{if(!(nt=$(et,"return"))){if(tt==="throw")throw rt;return rt}nt=k(nt,et)}catch(at){ot=!0,nt=at}if(tt==="throw")throw rt;if(ot)throw nt;return j(nt),rt}},3061:function(b,_,d){var k=d(3383).IteratorPrototype,j=d(30),$=d(9114),et=d(8003),tt=d(7497),rt=function(){return this};b.exports=function(nt,ot,at,it){var dt=ot+" Iterator";return nt.prototype=j(k,{next:$(+!it,at)}),et(nt,dt,!1,!0),tt[dt]=rt,nt}},1656:function(b,_,d){var k=d(2109),j=d(6916),$=d(1913),et=d(6530),tt=d(614),rt=d(3061),nt=d(9518),ot=d(7674),at=d(8003),it=d(8880),dt=d(8052),ut=d(5112),ht=d(7497),ft=d(3383),st=et.PROPER,ct=et.CONFIGURABLE,pt=ft.IteratorPrototype,lt=ft.BUGGY_SAFARI_ITERATORS,wt=ut("iterator"),yt="keys",vt="values",St="entries",xt=function(){return this};b.exports=function(bt,At,_t,Ct,Mt,jt,Rt){rt(_t,At,Ct);var zt,Xt,Jt,Kt=function(Vn){if(Vn===Mt&&yn)return yn;if(!lt&&Vn in An)return An[Vn];switch(Vn){case yt:case vt:case St:return function(){return new _t(this,Vn)}}return function(){return new _t(this)}},Zt=At+" Iterator",dn=!1,An=bt.prototype,En=An[wt]||An["@@iterator"]||Mt&&An[Mt],yn=!lt&&En||Kt(Mt),jn=At=="Array"&&An.entries||En;if(jn&&(zt=nt(jn.call(new bt)))!==Object.prototype&&zt.next&&($||nt(zt)===pt||(ot?ot(zt,pt):tt(zt[wt])||dt(zt,wt,xt)),at(zt,Zt,!0,!0),$&&(ht[Zt]=xt)),st&&Mt==vt&&En&&En.name!==vt&&(!$&&ct?it(An,"name",vt):(dn=!0,yn=function(){return j(En,this)})),Mt)if(Xt={values:Kt(vt),keys:jt?yn:Kt(yt),entries:Kt(St)},Rt)for(Jt in Xt)(lt||dn||!(Jt in An))&&dt(An,Jt,Xt[Jt]);else k({target:At,proto:!0,forced:lt||dn},Xt);return $&&!Rt||An[wt]===yn||dt(An,wt,yn,{name:Mt}),ht[At]=yn,Xt}},3383:function(b,_,d){var k,j,$,et=d(7293),tt=d(614),rt=d(111),nt=d(30),ot=d(9518),at=d(8052),it=d(5112),dt=d(1913),ut=it("iterator"),ht=!1;[].keys&&("next"in($=[].keys())?(j=ot(ot($)))!==Object.prototype&&(k=j):ht=!0),!rt(k)||et(function(){var ft={};return k[ut].call(ft)!==ft})?k={}:dt&&(k=nt(k)),tt(k[ut])||at(k,ut,function(){return this}),b.exports={IteratorPrototype:k,BUGGY_SAFARI_ITERATORS:ht}},7497:function(b){b.exports={}},6244:function(b,_,d){var k=d(7466);b.exports=function(j){return k(j.length)}},6339:function(b,_,d){var k=d(1702),j=d(7293),$=d(614),et=d(2597),tt=d(9781),rt=d(6530).CONFIGURABLE,nt=d(2788),ot=d(9909),at=ot.enforce,it=ot.get,dt=String,ut=Object.defineProperty,ht=k("".slice),ft=k("".replace),st=k([].join),ct=tt&&!j(function(){return ut(function(){},"length",{value:8}).length!==8}),pt=String(String).split("String"),lt=b.exports=function(wt,yt,vt){ht(dt(yt),0,7)==="Symbol("&&(yt="["+ft(dt(yt),/^Symbol\(([^)]*)\)/,"$1")+"]"),vt&&vt.getter&&(yt="get "+yt),vt&&vt.setter&&(yt="set "+yt),(!et(wt,"name")||rt&&wt.name!==yt)&&(tt?ut(wt,"name",{value:yt,configurable:!0}):wt.name=yt),ct&&vt&&et(vt,"arity")&&wt.length!==vt.arity&&ut(wt,"length",{value:vt.arity});try{vt&&et(vt,"constructor")&&vt.constructor?tt&&ut(wt,"prototype",{writable:!1}):wt.prototype&&(wt.prototype=void 0)}catch{}var St=at(wt);return et(St,"source")||(St.source=st(pt,typeof yt=="string"?yt:"")),wt};Function.prototype.toString=lt(function(){return $(this)&&it(this).source||nt(this)},"toString")},4758:function(b){var _=Math.ceil,d=Math.floor;b.exports=Math.trunc||function(k){var j=+k;return(j>0?d:_)(j)}},5948:function(b,_,d){var k,j,$,et,tt,rt=d(7854),nt=d(9974),ot=d(1236).f,at=d(261).set,it=d(8572),dt=d(6833),ut=d(1528),ht=d(1036),ft=d(5268),st=rt.MutationObserver||rt.WebKitMutationObserver,ct=rt.document,pt=rt.process,lt=rt.Promise,wt=ot(rt,"queueMicrotask"),yt=wt&&wt.value;if(!yt){var vt=new it,St=function(){var xt,bt;for(ft&&(xt=pt.domain)&&xt.exit();bt=vt.get();)try{bt()}catch(At){throw vt.head&&k(),At}xt&&xt.enter()};dt||ft||ht||!st||!ct?!ut&<&<.resolve?((et=lt.resolve(void 0)).constructor=lt,tt=nt(et.then,et),k=function(){tt(St)}):ft?k=function(){pt.nextTick(St)}:(at=nt(at,rt),k=function(){at(St)}):(j=!0,$=ct.createTextNode(""),new st(St).observe($,{characterData:!0}),k=function(){$.data=j=!j}),yt=function(xt){vt.head||k(),vt.add(xt)}}b.exports=yt},8523:function(b,_,d){var k=d(9662),j=TypeError,$=function(et){var tt,rt;this.promise=new et(function(nt,ot){if(tt!==void 0||rt!==void 0)throw j("Bad Promise constructor");tt=nt,rt=ot}),this.resolve=k(tt),this.reject=k(rt)};b.exports.f=function(et){return new $(et)}},6277:function(b,_,d){var k=d(1340);b.exports=function(j,$){return j===void 0?arguments.length<2?"":$:k(j)}},30:function(b,_,d){var k,j=d(9670),$=d(6048),et=d(748),tt=d(3501),rt=d(490),nt=d(317),ot=d(6200),at="prototype",it="script",dt=ot("IE_PROTO"),ut=function(){},ht=function(ct){return"<"+it+">"+ct+""},ft=function(ct){ct.write(ht("")),ct.close();var pt=ct.parentWindow.Object;return ct=null,pt},st=function(){try{k=new ActiveXObject("htmlfile")}catch{}var ct,pt,lt;st=typeof document<"u"?document.domain&&k?ft(k):(pt=nt("iframe"),lt="java"+it+":",pt.style.display="none",rt.appendChild(pt),pt.src=String(lt),(ct=pt.contentWindow.document).open(),ct.write(ht("document.F=Object")),ct.close(),ct.F):ft(k);for(var wt=et.length;wt--;)delete st[at][et[wt]];return st()};tt[dt]=!0,b.exports=Object.create||function(ct,pt){var lt;return ct!==null?(ut[at]=j(ct),lt=new ut,ut[at]=null,lt[dt]=ct):lt=st(),pt===void 0?lt:$.f(lt,pt)}},6048:function(b,_,d){var k=d(9781),j=d(3353),$=d(3070),et=d(9670),tt=d(5656),rt=d(1956);_.f=k&&!j?Object.defineProperties:function(nt,ot){et(nt);for(var at,it=tt(ot),dt=rt(ot),ut=dt.length,ht=0;ut>ht;)$.f(nt,at=dt[ht++],it[at]);return nt}},3070:function(b,_,d){var k=d(9781),j=d(4664),$=d(3353),et=d(9670),tt=d(4948),rt=TypeError,nt=Object.defineProperty,ot=Object.getOwnPropertyDescriptor,at="enumerable",it="configurable",dt="writable";_.f=k?$?function(ut,ht,ft){if(et(ut),ht=tt(ht),et(ft),typeof ut=="function"&&ht==="prototype"&&"value"in ft&&dt in ft&&!ft[dt]){var st=ot(ut,ht);st&&st[dt]&&(ut[ht]=ft.value,ft={configurable:it in ft?ft[it]:st[it],enumerable:at in ft?ft[at]:st[at],writable:!1})}return nt(ut,ht,ft)}:nt:function(ut,ht,ft){if(et(ut),ht=tt(ht),et(ft),j)try{return nt(ut,ht,ft)}catch{}if("get"in ft||"set"in ft)throw rt("Accessors not supported");return"value"in ft&&(ut[ht]=ft.value),ut}},1236:function(b,_,d){var k=d(9781),j=d(6916),$=d(5296),et=d(9114),tt=d(5656),rt=d(4948),nt=d(2597),ot=d(4664),at=Object.getOwnPropertyDescriptor;_.f=k?at:function(it,dt){if(it=tt(it),dt=rt(dt),ot)try{return at(it,dt)}catch{}if(nt(it,dt))return et(!j($.f,it,dt),it[dt])}},1156:function(b,_,d){var k=d(4326),j=d(5656),$=d(8006).f,et=d(1589),tt=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];b.exports.f=function(rt){return tt&&k(rt)=="Window"?function(nt){try{return $(nt)}catch{return et(tt)}}(rt):$(j(rt))}},8006:function(b,_,d){var k=d(6324),j=d(748).concat("length","prototype");_.f=Object.getOwnPropertyNames||function($){return k($,j)}},5181:function(b,_){_.f=Object.getOwnPropertySymbols},9518:function(b,_,d){var k=d(2597),j=d(614),$=d(7908),et=d(6200),tt=d(8544),rt=et("IE_PROTO"),nt=Object,ot=nt.prototype;b.exports=tt?nt.getPrototypeOf:function(at){var it=$(at);if(k(it,rt))return it[rt];var dt=it.constructor;return j(dt)&&it instanceof dt?dt.prototype:it instanceof nt?ot:null}},2050:function(b,_,d){var k=d(7293),j=d(111),$=d(4326),et=d(7556),tt=Object.isExtensible,rt=k(function(){});b.exports=rt||et?function(nt){return!!j(nt)&&(!et||$(nt)!="ArrayBuffer")&&(!tt||tt(nt))}:tt},7976:function(b,_,d){var k=d(1702);b.exports=k({}.isPrototypeOf)},6324:function(b,_,d){var k=d(1702),j=d(2597),$=d(5656),et=d(1318).indexOf,tt=d(3501),rt=k([].push);b.exports=function(nt,ot){var at,it=$(nt),dt=0,ut=[];for(at in it)!j(tt,at)&&j(it,at)&&rt(ut,at);for(;ot.length>dt;)j(it,at=ot[dt++])&&(~et(ut,at)||rt(ut,at));return ut}},1956:function(b,_,d){var k=d(6324),j=d(748);b.exports=Object.keys||function($){return k($,j)}},5296:function(b,_){var d={}.propertyIsEnumerable,k=Object.getOwnPropertyDescriptor,j=k&&!d.call({1:2},1);_.f=j?function($){var et=k(this,$);return!!et&&et.enumerable}:d},7674:function(b,_,d){var k=d(5668),j=d(9670),$=d(6077);b.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var et,tt=!1,rt={};try{(et=k(Object.prototype,"__proto__","set"))(rt,[]),tt=rt instanceof Array}catch{}return function(nt,ot){return j(nt),$(ot),tt?et(nt,ot):nt.__proto__=ot,nt}}():void 0)},288:function(b,_,d){var k=d(1694),j=d(648);b.exports=k?{}.toString:function(){return"[object "+j(this)+"]"}},2140:function(b,_,d){var k=d(6916),j=d(614),$=d(111),et=TypeError;b.exports=function(tt,rt){var nt,ot;if(rt==="string"&&j(nt=tt.toString)&&!$(ot=k(nt,tt))||j(nt=tt.valueOf)&&!$(ot=k(nt,tt))||rt!=="string"&&j(nt=tt.toString)&&!$(ot=k(nt,tt)))return ot;throw et("Can't convert object to primitive value")}},3887:function(b,_,d){var k=d(5005),j=d(1702),$=d(8006),et=d(5181),tt=d(9670),rt=j([].concat);b.exports=k("Reflect","ownKeys")||function(nt){var ot=$.f(tt(nt)),at=et.f;return at?rt(ot,at(nt)):ot}},857:function(b,_,d){var k=d(7854);b.exports=k},2534:function(b){b.exports=function(_){try{return{error:!1,value:_()}}catch(d){return{error:!0,value:d}}}},3702:function(b,_,d){var k=d(7854),j=d(2492),$=d(614),et=d(4705),tt=d(2788),rt=d(5112),nt=d(7871),ot=d(3823),at=d(1913),it=d(7392),dt=j&&j.prototype,ut=rt("species"),ht=!1,ft=$(k.PromiseRejectionEvent),st=et("Promise",function(){var ct=tt(j),pt=ct!==String(j);if(!pt&&it===66||at&&(!dt.catch||!dt.finally))return!0;if(!it||it<51||!/native code/.test(ct)){var lt=new j(function(yt){yt(1)}),wt=function(yt){yt(function(){},function(){})};if((lt.constructor={})[ut]=wt,!(ht=lt.then(function(){})instanceof wt))return!0}return!pt&&(nt||ot)&&!ft});b.exports={CONSTRUCTOR:st,REJECTION_EVENT:ft,SUBCLASSING:ht}},2492:function(b,_,d){var k=d(7854);b.exports=k.Promise},9478:function(b,_,d){var k=d(9670),j=d(111),$=d(8523);b.exports=function(et,tt){if(k(et),j(tt)&&tt.constructor===et)return tt;var rt=$.f(et);return(0,rt.resolve)(tt),rt.promise}},612:function(b,_,d){var k=d(2492),j=d(7072),$=d(3702).CONSTRUCTOR;b.exports=$||!j(function(et){k.all(et).then(void 0,function(){})})},8572:function(b){var _=function(){this.head=null,this.tail=null};_.prototype={add:function(d){var k={item:d,next:null},j=this.tail;j?j.next=k:this.head=k,this.tail=k},get:function(){var d=this.head;if(d)return(this.head=d.next)===null&&(this.tail=null),d.item}},b.exports=_},4488:function(b,_,d){var k=d(8554),j=TypeError;b.exports=function($){if(k($))throw j("Can't call method on "+$);return $}},6340:function(b,_,d){var k=d(5005),j=d(7045),$=d(5112),et=d(9781),tt=$("species");b.exports=function(rt){var nt=k(rt);et&&nt&&!nt[tt]&&j(nt,tt,{configurable:!0,get:function(){return this}})}},8003:function(b,_,d){var k=d(3070).f,j=d(2597),$=d(5112)("toStringTag");b.exports=function(et,tt,rt){et&&!rt&&(et=et.prototype),et&&!j(et,$)&&k(et,$,{configurable:!0,value:tt})}},6200:function(b,_,d){var k=d(2309),j=d(9711),$=k("keys");b.exports=function(et){return $[et]||($[et]=j(et))}},5465:function(b,_,d){var k=d(7854),j=d(3072),$="__core-js_shared__",et=k[$]||j($,{});b.exports=et},2309:function(b,_,d){var k=d(1913),j=d(5465);(b.exports=function($,et){return j[$]||(j[$]=et!==void 0?et:{})})("versions",[]).push({version:"3.29.0",mode:k?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6707:function(b,_,d){var k=d(9670),j=d(9483),$=d(8554),et=d(5112)("species");b.exports=function(tt,rt){var nt,ot=k(tt).constructor;return ot===void 0||$(nt=k(ot)[et])?rt:j(nt)}},8710:function(b,_,d){var k=d(1702),j=d(9303),$=d(1340),et=d(4488),tt=k("".charAt),rt=k("".charCodeAt),nt=k("".slice),ot=function(at){return function(it,dt){var ut,ht,ft=$(et(it)),st=j(dt),ct=ft.length;return st<0||st>=ct?at?"":void 0:(ut=rt(ft,st))<55296||ut>56319||st+1===ct||(ht=rt(ft,st+1))<56320||ht>57343?at?tt(ft,st):ut:at?nt(ft,st,st+2):ht-56320+(ut-55296<<10)+65536}};b.exports={codeAt:ot(!1),charAt:ot(!0)}},6293:function(b,_,d){var k=d(7392),j=d(7293);b.exports=!!Object.getOwnPropertySymbols&&!j(function(){var $=Symbol();return!String($)||!(Object($)instanceof Symbol)||!Symbol.sham&&k&&k<41})},261:function(b,_,d){var k,j,$,et,tt=d(7854),rt=d(2104),nt=d(9974),ot=d(614),at=d(2597),it=d(7293),dt=d(490),ut=d(206),ht=d(317),ft=d(8053),st=d(6833),ct=d(5268),pt=tt.setImmediate,lt=tt.clearImmediate,wt=tt.process,yt=tt.Dispatch,vt=tt.Function,St=tt.MessageChannel,xt=tt.String,bt=0,At={},_t="onreadystatechange";it(function(){k=tt.location});var Ct=function(zt){if(at(At,zt)){var Xt=At[zt];delete At[zt],Xt()}},Mt=function(zt){return function(){Ct(zt)}},jt=function(zt){Ct(zt.data)},Rt=function(zt){tt.postMessage(xt(zt),k.protocol+"//"+k.host)};pt&<||(pt=function(zt){ft(arguments.length,1);var Xt=ot(zt)?zt:vt(zt),Jt=ut(arguments,1);return At[++bt]=function(){rt(Xt,void 0,Jt)},j(bt),bt},lt=function(zt){delete At[zt]},ct?j=function(zt){wt.nextTick(Mt(zt))}:yt&&yt.now?j=function(zt){yt.now(Mt(zt))}:St&&!st?(et=($=new St).port2,$.port1.onmessage=jt,j=nt(et.postMessage,et)):tt.addEventListener&&ot(tt.postMessage)&&!tt.importScripts&&k&&k.protocol!=="file:"&&!it(Rt)?(j=Rt,tt.addEventListener("message",jt,!1)):j=_t in ht("script")?function(zt){dt.appendChild(ht("script"))[_t]=function(){dt.removeChild(this),Ct(zt)}}:function(zt){setTimeout(Mt(zt),0)}),b.exports={set:pt,clear:lt}},1400:function(b,_,d){var k=d(9303),j=Math.max,$=Math.min;b.exports=function(et,tt){var rt=k(et);return rt<0?j(rt+tt,0):$(rt,tt)}},5656:function(b,_,d){var k=d(8361),j=d(4488);b.exports=function($){return k(j($))}},9303:function(b,_,d){var k=d(4758);b.exports=function(j){var $=+j;return $!=$||$===0?0:k($)}},7466:function(b,_,d){var k=d(9303),j=Math.min;b.exports=function($){return $>0?j(k($),9007199254740991):0}},7908:function(b,_,d){var k=d(4488),j=Object;b.exports=function($){return j(k($))}},7593:function(b,_,d){var k=d(6916),j=d(111),$=d(2190),et=d(8173),tt=d(2140),rt=d(5112),nt=TypeError,ot=rt("toPrimitive");b.exports=function(at,it){if(!j(at)||$(at))return at;var dt,ut=et(at,ot);if(ut){if(it===void 0&&(it="default"),dt=k(ut,at,it),!j(dt)||$(dt))return dt;throw nt("Can't convert object to primitive value")}return it===void 0&&(it="number"),tt(at,it)}},4948:function(b,_,d){var k=d(7593),j=d(2190);b.exports=function($){var et=k($,"string");return j(et)?et:et+""}},1694:function(b,_,d){var k={};k[d(5112)("toStringTag")]="z",b.exports=String(k)==="[object z]"},1340:function(b,_,d){var k=d(648),j=String;b.exports=function($){if(k($)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return j($)}},6330:function(b){var _=String;b.exports=function(d){try{return _(d)}catch{return"Object"}}},9711:function(b,_,d){var k=d(1702),j=0,$=Math.random(),et=k(1 .toString);b.exports=function(tt){return"Symbol("+(tt===void 0?"":tt)+")_"+et(++j+$,36)}},3307:function(b,_,d){var k=d(6293);b.exports=k&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},3353:function(b,_,d){var k=d(9781),j=d(7293);b.exports=k&&j(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},8053:function(b){var _=TypeError;b.exports=function(d,k){if(d2&&at(yt,arguments[2]);var St=[];return dt(lt,st,{that:St}),nt(yt,"errors",St),yt};et?et(ct,ft):tt(ct,ft,{name:!0});var pt=ct.prototype=rt(ft.prototype,{constructor:ot(1,ct),message:ot(1,""),name:ot(1,"AggregateError")});k({global:!0,constructor:!0,arity:2},{AggregateError:ct})},9170:function(b,_,d){d(6967)},6992:function(b,_,d){var k=d(5656),j=d(1223),$=d(7497),et=d(9909),tt=d(3070).f,rt=d(1656),nt=d(6178),ot=d(1913),at=d(9781),it="Array Iterator",dt=et.set,ut=et.getterFor(it);b.exports=rt(Array,"Array",function(ft,st){dt(this,{type:it,target:k(ft),index:0,kind:st})},function(){var ft=ut(this),st=ft.target,ct=ft.kind,pt=ft.index++;return!st||pt>=st.length?(ft.target=void 0,nt(void 0,!0)):nt(ct=="keys"?pt:ct=="values"?st[pt]:[pt,st[pt]],!1)},"values");var ht=$.Arguments=$.Array;if(j("keys"),j("values"),j("entries"),!ot&&at&&ht.name!=="values")try{tt(ht,"name",{value:"values"})}catch{}},9098:function(b,_,d){d(7710)("Map",function(k){return function(){return k(this,arguments.length?arguments[0]:void 0)}},d(5631))},1532:function(b,_,d){d(9098)},1539:function(b,_,d){var k=d(1694),j=d(8052),$=d(288);k||j(Object.prototype,"toString",$,{unsafe:!0})},7922:function(b,_,d){var k=d(2109),j=d(6916),$=d(9662),et=d(8523),tt=d(2534),rt=d(408);k({target:"Promise",stat:!0,forced:d(612)},{allSettled:function(nt){var ot=this,at=et.f(ot),it=at.resolve,dt=at.reject,ut=tt(function(){var ht=$(ot.resolve),ft=[],st=0,ct=1;rt(nt,function(pt){var lt=st++,wt=!1;ct++,j(ht,ot,pt).then(function(yt){wt||(wt=!0,ft[lt]={status:"fulfilled",value:yt},--ct||it(ft))},function(yt){wt||(wt=!0,ft[lt]={status:"rejected",reason:yt},--ct||it(ft))})}),--ct||it(ft)});return ut.error&&dt(ut.value),at.promise}})},821:function(b,_,d){var k=d(2109),j=d(6916),$=d(9662),et=d(8523),tt=d(2534),rt=d(408);k({target:"Promise",stat:!0,forced:d(612)},{all:function(nt){var ot=this,at=et.f(ot),it=at.resolve,dt=at.reject,ut=tt(function(){var ht=$(ot.resolve),ft=[],st=0,ct=1;rt(nt,function(pt){var lt=st++,wt=!1;ct++,j(ht,ot,pt).then(function(yt){wt||(wt=!0,ft[lt]=yt,--ct||it(ft))},dt)}),--ct||it(ft)});return ut.error&&dt(ut.value),at.promise}})},4668:function(b,_,d){var k=d(2109),j=d(6916),$=d(9662),et=d(5005),tt=d(8523),rt=d(2534),nt=d(408),ot=d(612),at="No one promise resolved";k({target:"Promise",stat:!0,forced:ot},{any:function(it){var dt=this,ut=et("AggregateError"),ht=tt.f(dt),ft=ht.resolve,st=ht.reject,ct=rt(function(){var pt=$(dt.resolve),lt=[],wt=0,yt=1,vt=!1;nt(it,function(St){var xt=wt++,bt=!1;yt++,j(pt,dt,St).then(function(At){bt||vt||(vt=!0,ft(At))},function(At){bt||vt||(bt=!0,lt[xt]=At,--yt||st(new ut(lt,at)))})}),--yt||st(new ut(lt,at))});return ct.error&&st(ct.value),ht.promise}})},4164:function(b,_,d){var k=d(2109),j=d(1913),$=d(3702).CONSTRUCTOR,et=d(2492),tt=d(5005),rt=d(614),nt=d(8052),ot=et&&et.prototype;if(k({target:"Promise",proto:!0,forced:$,real:!0},{catch:function(it){return this.then(void 0,it)}}),!j&&rt(et)){var at=tt("Promise").prototype.catch;ot.catch!==at&&nt(ot,"catch",at,{unsafe:!0})}},3401:function(b,_,d){var k,j,$,et=d(2109),tt=d(1913),rt=d(5268),nt=d(7854),ot=d(6916),at=d(8052),it=d(7674),dt=d(8003),ut=d(6340),ht=d(9662),ft=d(614),st=d(111),ct=d(5787),pt=d(6707),lt=d(261).set,wt=d(5948),yt=d(842),vt=d(2534),St=d(8572),xt=d(9909),bt=d(2492),At=d(3702),_t=d(8523),Ct="Promise",Mt=At.CONSTRUCTOR,jt=At.REJECTION_EVENT,Rt=At.SUBCLASSING,zt=xt.getterFor(Ct),Xt=xt.set,Jt=bt&&bt.prototype,Kt=bt,Zt=Jt,dn=nt.TypeError,An=nt.document,En=nt.process,yn=_t.f,jn=yn,Vn=!!(An&&An.createEvent&&nt.dispatchEvent),rn="unhandledrejection",xn=function(kn){var Fn;return!(!st(kn)||!ft(Fn=kn.then))&&Fn},fn=function(kn,Fn){var vn,Bn,Nn,Un=Fn.value,pn=Fn.state==1,Vt=pn?kn.ok:kn.fail,qt=kn.resolve,wn=kn.reject,Pn=kn.domain;try{Vt?(pn||(Fn.rejection===2&&ln(Fn),Fn.rejection=1),Vt===!0?vn=Un:(Pn&&Pn.enter(),vn=Vt(Un),Pn&&(Pn.exit(),Nn=!0)),vn===kn.promise?wn(dn("Promise-chain cycle")):(Bn=xn(vn))?ot(Bn,vn,qt,wn):qt(vn)):wn(Un)}catch(lr){Pn&&!Nn&&Pn.exit(),wn(lr)}},Sn=function(kn,Fn){kn.notified||(kn.notified=!0,wt(function(){for(var vn,Bn=kn.reactions;vn=Bn.get();)fn(vn,kn);kn.notified=!1,Fn&&!kn.rejection&&hn(kn)}))},bn=function(kn,Fn,vn){var Bn,Nn;Vn?((Bn=An.createEvent("Event")).promise=Fn,Bn.reason=vn,Bn.initEvent(kn,!1,!0),nt.dispatchEvent(Bn)):Bn={promise:Fn,reason:vn},!jt&&(Nn=nt["on"+kn])?Nn(Bn):kn===rn&&yt("Unhandled promise rejection",vn)},hn=function(kn){ot(lt,nt,function(){var Fn,vn=kn.facade,Bn=kn.value;if(_n(kn)&&(Fn=vt(function(){rt?En.emit("unhandledRejection",Bn,vn):bn(rn,vn,Bn)}),kn.rejection=rt||_n(kn)?2:1,Fn.error))throw Fn.value})},_n=function(kn){return kn.rejection!==1&&!kn.parent},ln=function(kn){ot(lt,nt,function(){var Fn=kn.facade;rt?En.emit("rejectionHandled",Fn):bn("rejectionhandled",Fn,kn.value)})},Tn=function(kn,Fn,vn){return function(Bn){kn(Fn,Bn,vn)}},In=function(kn,Fn,vn){kn.done||(kn.done=!0,vn&&(kn=vn),kn.value=Fn,kn.state=2,Sn(kn,!0))},Ln=function(kn,Fn,vn){if(!kn.done){kn.done=!0,vn&&(kn=vn);try{if(kn.facade===Fn)throw dn("Promise can't be resolved itself");var Bn=xn(Fn);Bn?wt(function(){var Nn={done:!1};try{ot(Bn,Fn,Tn(Ln,Nn,kn),Tn(In,Nn,kn))}catch(Un){In(Nn,Un,kn)}}):(kn.value=Fn,kn.state=1,Sn(kn,!1))}catch(Nn){In({done:!1},Nn,kn)}}};if(Mt&&(Zt=(Kt=function(kn){ct(this,Zt),ht(kn),ot(k,this);var Fn=zt(this);try{kn(Tn(Ln,Fn),Tn(In,Fn))}catch(vn){In(Fn,vn)}}).prototype,(k=function(kn){Xt(this,{type:Ct,done:!1,notified:!1,parent:!1,reactions:new St,rejection:!1,state:0,value:void 0})}).prototype=at(Zt,"then",function(kn,Fn){var vn=zt(this),Bn=yn(pt(this,Kt));return vn.parent=!0,Bn.ok=!ft(kn)||kn,Bn.fail=ft(Fn)&&Fn,Bn.domain=rt?En.domain:void 0,vn.state==0?vn.reactions.add(Bn):wt(function(){fn(Bn,vn)}),Bn.promise}),j=function(){var kn=new k,Fn=zt(kn);this.promise=kn,this.resolve=Tn(Ln,Fn),this.reject=Tn(In,Fn)},_t.f=yn=function(kn){return kn===Kt||kn===void 0?new j(kn):jn(kn)},!tt&&ft(bt)&&Jt!==Object.prototype)){$=Jt.then,Rt||at(Jt,"then",function(kn,Fn){var vn=this;return new Kt(function(Bn,Nn){ot($,vn,Bn,Nn)}).then(kn,Fn)},{unsafe:!0});try{delete Jt.constructor}catch{}it&&it(Jt,Zt)}et({global:!0,constructor:!0,wrap:!0,forced:Mt},{Promise:Kt}),dt(Kt,Ct,!1,!0),ut(Ct)},7727:function(b,_,d){var k=d(2109),j=d(1913),$=d(2492),et=d(7293),tt=d(5005),rt=d(614),nt=d(6707),ot=d(9478),at=d(8052),it=$&&$.prototype;if(k({target:"Promise",proto:!0,real:!0,forced:!!$&&et(function(){it.finally.call({then:function(){}},function(){})})},{finally:function(ut){var ht=nt(this,tt("Promise")),ft=rt(ut);return this.then(ft?function(st){return ot(ht,ut()).then(function(){return st})}:ut,ft?function(st){return ot(ht,ut()).then(function(){throw st})}:ut)}}),!j&&rt($)){var dt=tt("Promise").prototype.finally;it.finally!==dt&&at(it,"finally",dt,{unsafe:!0})}},8674:function(b,_,d){d(3401),d(821),d(4164),d(6027),d(683),d(6294)},6027:function(b,_,d){var k=d(2109),j=d(6916),$=d(9662),et=d(8523),tt=d(2534),rt=d(408);k({target:"Promise",stat:!0,forced:d(612)},{race:function(nt){var ot=this,at=et.f(ot),it=at.reject,dt=tt(function(){var ut=$(ot.resolve);rt(nt,function(ht){j(ut,ot,ht).then(at.resolve,it)})});return dt.error&&it(dt.value),at.promise}})},683:function(b,_,d){var k=d(2109),j=d(6916),$=d(8523);k({target:"Promise",stat:!0,forced:d(3702).CONSTRUCTOR},{reject:function(et){var tt=$.f(this);return j(tt.reject,void 0,et),tt.promise}})},6294:function(b,_,d){var k=d(2109),j=d(5005),$=d(1913),et=d(2492),tt=d(3702).CONSTRUCTOR,rt=d(9478),nt=j("Promise"),ot=$&&!tt;k({target:"Promise",stat:!0,forced:$||tt},{resolve:function(at){return rt(ot&&this===nt?et:this,at)}})},8783:function(b,_,d){var k=d(8710).charAt,j=d(1340),$=d(9909),et=d(1656),tt=d(6178),rt="String Iterator",nt=$.set,ot=$.getterFor(rt);et(String,"String",function(at){nt(this,{type:rt,string:j(at),index:0})},function(){var at,it=ot(this),dt=it.string,ut=it.index;return ut>=dt.length?tt(void 0,!0):(at=k(dt,ut),it.index+=at.length,tt(at,!1))})},3948:function(b,_,d){var k=d(7854),j=d(8324),$=d(8509),et=d(6992),tt=d(8880),rt=d(5112),nt=rt("iterator"),ot=rt("toStringTag"),at=et.values,it=function(ut,ht){if(ut){if(ut[nt]!==at)try{tt(ut,nt,at)}catch{ut[nt]=at}if(ut[ot]||tt(ut,ot,ht),j[ht]){for(var ft in et)if(ut[ft]!==et[ft])try{tt(ut,ft,et[ft])}catch{ut[ft]=et[ft]}}}};for(var dt in j)it(k[dt]&&k[dt].prototype,dt);it($,"DOMTokenList")},1150:function(b,_,d){var k=d(7633);d(3948),b.exports=k},3191:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_console{padding-top:40px;padding-bottom:24px;width:100%;height:100%}#_console._js-input-hidden{padding-bottom:0}#_console ._control{position:absolute;width:100%;height:40px;left:0;top:0;cursor:default;font-size:0;background:var(--darker-background);color:var(--primary);line-height:20px;border-bottom:1px solid var(--border);padding:10px 10px 10px 35px}#_console ._control [class*=' _icon-'],#_console ._control [class^='_icon-']{display:inline-block;padding:10px;font-size:16px;position:absolute;top:0;cursor:pointer;transition:color .3s}#_console ._control [class*=' _icon-']._active,#_console ._control [class*=' _icon-']:active,#_console ._control [class^='_icon-']._active,#_console ._control [class^='_icon-']:active{color:var(--accent)}#_console ._control ._icon-clear{padding-right:0;left:0}#_console ._control ._icon-copy{right:0}#_console ._control ._icon-filter{right:23px}#_console ._control ._level{cursor:pointer;font-size:12px;height:20px;display:inline-block;margin:0 2px;padding:0 4px;line-height:20px;transition:background-color .3s,color .3s}#_console ._control ._level._active{background:var(--highlight);color:var(--select-foreground)}#_console ._control ._filter-text{white-space:nowrap;position:absolute;line-height:20px;max-width:80px;overflow:hidden;right:55px;font-size:14px;text-overflow:ellipsis}#_console ._js-input{pointer-events:none;position:absolute;z-index:100;left:0;bottom:0;width:100%;border-top:1px solid var(--border);height:24px}#_console ._js-input ._icon-arrow-right{line-height:23px;color:var(--accent);position:absolute;left:10px;top:0;z-index:10}#_console ._js-input._active{height:100%;padding-top:40px;padding-bottom:40px;border-top:none}#_console ._js-input._active ._icon-arrow-right{display:none}#_console ._js-input._active textarea{overflow:auto;padding-left:10px}#_console ._js-input ._buttons{display:none;position:absolute;left:0;bottom:0;width:100%;height:40px;color:var(--primary);background:var(--darker-background);font-size:12px;border-top:1px solid var(--border)}#_console ._js-input ._buttons ._button{pointer-events:all;cursor:pointer;flex:1;text-align:center;border-right:1px solid var(--border);height:40px;line-height:40px;transition:background-color .3s,color .3s}#_console ._js-input ._buttons ._button:last-child{border-right:none}#_console ._js-input ._buttons ._button:active{color:var(--select-foreground);background:var(--highlight)}#_console ._js-input textarea{overflow:hidden;pointer-events:all;padding:3px 10px;padding-left:25px;outline:0;border:none;font-size:14px;width:100%;height:100%;-webkit-user-select:text;user-select:text;resize:none;color:var(--primary);background:var(--background)}._safe-area #_console{padding-bottom:calc(24px + env(safe-area-inset-bottom))}._safe-area #_console._js-input-hidden{padding-bottom:0}._safe-area #_console ._js-input{height:calc(24px + env(safe-area-inset-bottom))}._safe-area #_console ._js-input._active{height:100%;padding-bottom:calc(40px + env(safe-area-inset-bottom))}._safe-area #_console ._js-input ._buttons{height:calc(40px + env(safe-area-inset-bottom))}._safe-area #_console ._js-input ._buttons ._button{height:calc(40px + env(safe-area-inset-bottom))}",""]),b.exports=_},13:function(b,_,d){(_=d(3645)(!1)).push([b.id,"._dev-tools{position:absolute;width:100%;height:100%;left:0;bottom:0;background:var(--background);z-index:500;display:none;padding-top:40px!important;opacity:0;transition:opacity .3s;border-top:1px solid var(--border)}._dev-tools ._resizer{position:absolute;width:100%;left:0;top:-8px;cursor:row-resize;z-index:120}._dev-tools ._tools{overflow:auto;-webkit-overflow-scrolling:touch;height:100%;width:100%;position:relative}._dev-tools ._tools ._tool{position:absolute;width:100%;height:100%;left:0;top:0;overflow:hidden;display:none}",""]),b.exports=_},5896:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_elements ._elements{position:absolute;width:100%;height:100%;left:0;top:0;padding-top:40px;padding-bottom:24px;font-size:14px}#_elements ._control{position:absolute;width:100%;height:40px;left:0;top:0;cursor:default;font-size:0;background:var(--darker-background);color:var(--primary);line-height:20px;border-bottom:1px solid var(--border);padding:10px 0}#_elements ._control [class*=' _icon-'],#_elements ._control [class^='_icon-']{display:inline-block;padding:10px;font-size:16px;position:absolute;top:0;cursor:pointer;transition:color .3s}#_elements ._control [class*=' _icon-']._active,#_elements ._control [class*=' _icon-']:active,#_elements ._control [class^='_icon-']._active,#_elements ._control [class^='_icon-']:active{color:var(--accent)}#_elements ._control ._icon-eye{right:0}#_elements ._control ._icon-copy{right:23px}#_elements ._control ._icon-delete{right:46px}#_elements ._dom-viewer-container{overflow-y:auto;-webkit-overflow-scrolling:touch;height:100%;padding:5px 0}#_elements ._crumbs{position:absolute;width:100%;height:24px;left:0;top:0;top:initial;line-height:24px;bottom:0;border-top:1px solid var(--border);background:var(--darker-background);color:var(--primary);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#_elements ._crumbs li{cursor:pointer;padding:0 7px;display:inline-block}#_elements ._crumbs li:hover,#_elements ._crumbs li:last-child{background:var(--highlight)}#_elements ._crumbs ._icon-arrow-right{font-size:12px;position:relative;top:1px}#_elements ._detail{position:absolute;width:100%;height:100%;left:0;top:0;z-index:10;padding-top:40px;display:none;background:var(--background)}#_elements ._detail ._control{padding:10px 35px}#_elements ._detail ._control ._element-name{font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%;display:inline-block}#_elements ._detail ._control ._icon-arrow-left{left:0}#_elements ._detail ._control ._icon-refresh{right:0}#_elements ._detail ._element{overflow-y:auto;-webkit-overflow-scrolling:touch;height:100%}#_elements ._section{border-bottom:1px solid var(--border);color:var(--foreground);margin:10px 0}#_elements ._section h2{color:var(--primary);background:var(--darker-background);border-top:1px solid var(--border);padding:10px;line-height:18px;font-size:14px;transition:background-color .3s}#_elements ._section h2 ._btn{margin-left:5px;float:right;color:var(--primary);width:18px;height:18px;font-size:16px;cursor:pointer;transition:color .3s}#_elements ._section h2 ._btn._filter-text{width:auto;max-width:80px;font-size:14px;overflow:hidden;font-weight:400;text-overflow:ellipsis;display:inline-block}#_elements ._section h2 ._btn:active{color:var(--accent)}#_elements ._section h2 ._btn._btn-disabled{color:inherit!important;cursor:default!important;pointer-events:none;opacity:.5}#_elements ._section h2 ._btn._btn-disabled *{pointer-events:none}#_elements ._section h2._active-effect{cursor:pointer}#_elements ._section h2._active-effect:active{background:var(--highlight);color:var(--select-foreground)}#_elements ._attributes{font-size:12px}#_elements ._attributes a{color:var(--link-color)}#_elements ._attributes ._table-wrapper{overflow-x:auto;-webkit-overflow-scrolling:touch}#_elements ._attributes table td{padding:5px 10px}#_elements ._text-content{background:#fff}#_elements ._text-content ._content{overflow-x:auto;-webkit-overflow-scrolling:touch;padding:10px}#_elements ._style-color{position:relative;top:1px;width:10px;height:10px;border-radius:50%;margin-right:2px;border:1px solid var(--border);display:inline-block}#_elements ._box-model{overflow-x:auto;-webkit-overflow-scrolling:touch;padding:10px;text-align:center;border-bottom:1px solid var(--color)}#_elements ._computed-style{font-size:12px}#_elements ._computed-style a{color:var(--link-color)}#_elements ._computed-style ._table-wrapper{overflow-y:auto;-webkit-overflow-scrolling:touch;max-height:200px;border-top:1px solid var(--border)}#_elements ._computed-style table td{padding:5px 10px}#_elements ._computed-style table td._key{white-space:nowrap;color:var(--var-color)}#_elements ._styles{font-size:12px}#_elements ._styles ._style-wrapper{padding:10px}#_elements ._styles ._style-wrapper ._style-rules{border:1px solid var(--border);padding:10px;margin-bottom:10px}#_elements ._styles ._style-wrapper ._style-rules ._rule{padding-left:2em;word-break:break-all}#_elements ._styles ._style-wrapper ._style-rules ._rule a{color:var(--link-color)}#_elements ._styles ._style-wrapper ._style-rules ._rule span{color:var(--var-color)}#_elements ._styles ._style-wrapper ._style-rules:last-child{margin-bottom:0}#_elements ._listeners{font-size:12px}#_elements ._listeners ._listener-wrapper{padding:10px}#_elements ._listeners ._listener-wrapper ._listener{margin-bottom:10px;overflow:hidden;border:1px solid var(--border)}#_elements ._listeners ._listener-wrapper ._listener ._listener-type{padding:10px;background:var(--darker-background);color:var(--primary)}#_elements ._listeners ._listener-wrapper ._listener ._listener-content li{overflow-x:auto;-webkit-overflow-scrolling:touch;padding:10px;border-top:none}._safe-area #_elements ._elements{padding-bottom:calc(24px + env(safe-area-inset-bottom))}._safe-area #_elements ._crumbs{height:calc(24px + env(safe-area-inset-bottom))}._safe-area #_elements ._element{padding-bottom:calc(0px + env(safe-area-inset-bottom))}@media screen and (min-width:680px){#_elements ._elements{width:50%}#_elements ._elements ._control ._icon-eye{display:none}#_elements ._elements ._control ._icon-copy{right:0}#_elements ._elements ._control ._icon-delete{right:23px}#_elements ._detail{width:50%;left:initial;right:0;border-left:1px solid var(--border)}#_elements ._detail ._control{padding-left:10px}#_elements ._detail ._control ._icon-arrow-left{display:none}}",""]),b.exports=_},9195:function(b,_,d){(_=d(3645)(!1)).push([b.id,"._container ._entry-btn{touch-action:none;width:40px;height:40px;display:flex;background:#000;opacity:.3;border-radius:10px;position:relative;z-index:1000;transition:opacity .3s;color:#fff;font-size:25px;align-items:center;justify-content:center}._container ._entry-btn._active,._container ._entry-btn:active{opacity:.8}",""]),b.exports=_},879:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_info{overflow-y:auto;-webkit-overflow-scrolling:touch}#_info li{margin:10px;border:1px solid var(--border)}#_info li ._content,#_info li ._title{padding:10px}#_info li ._title{position:relative;padding-bottom:0;color:var(--accent)}#_info li ._title ._icon-copy{position:absolute;right:10px;top:14px;color:var(--primary);cursor:pointer;transition:color .3s}#_info li ._title ._icon-copy:active{color:var(--accent)}#_info li ._content{margin:0;-webkit-user-select:text;user-select:text;color:var(--foreground);font-size:12px;word-break:break-all}#_info li ._content table{width:100%;border-collapse:collapse}#_info li ._content table td,#_info li ._content table th{border:1px solid var(--border);padding:10px}#_info li ._content *{-webkit-user-select:text;user-select:text}#_info li ._content a{color:var(--link-color)}#_info li ._device-key,#_info li ._system-key{width:100px}._safe-area #_info{padding-bottom:calc(10px + env(safe-area-inset-bottom))}",""]),b.exports=_},3180:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_network ._network{position:absolute;width:100%;height:100%;left:0;top:0;padding-top:39px}#_network ._control{position:absolute;width:100%;height:40px;left:0;top:0;cursor:default;font-size:0;background:var(--darker-background);color:var(--primary);line-height:20px;border-bottom:1px solid var(--border);padding:10px;border-bottom:none}#_network ._control [class*=' _icon-'],#_network ._control [class^='_icon-']{display:inline-block;padding:10px;font-size:16px;position:absolute;top:0;cursor:pointer;transition:color .3s}#_network ._control [class*=' _icon-']._active,#_network ._control [class*=' _icon-']:active,#_network ._control [class^='_icon-']._active,#_network ._control [class^='_icon-']:active{color:var(--accent)}#_network ._control ._title{font-size:14px}#_network ._control ._icon-clear{left:23px}#_network ._control ._icon-eye{right:0}#_network ._control ._icon-copy{right:23px}#_network ._control ._icon-filter{right:46px}#_network ._control ._filter-text{white-space:nowrap;position:absolute;line-height:20px;max-width:80px;overflow:hidden;right:88px;font-size:14px;text-overflow:ellipsis}#_network ._control ._icon-record{left:0}#_network ._control ._icon-record._recording{color:var(--console-error-foreground);text-shadow:0 0 4px var(--console-error-foreground)}#_network ._request-error{color:var(--console-error-foreground)}#_network .luna-data-grid:focus .luna-data-grid-data-container ._request-error.luna-data-grid-selected{background:var(--console-error-background)}#_network .luna-data-grid{border-left:none;border-right:none}#_network ._detail{position:absolute;width:100%;height:100%;left:0;top:0;z-index:10;display:none;padding-top:40px;background:var(--background)}#_network ._detail ._control{padding:10px 35px;border-bottom:1px solid var(--border)}#_network ._detail ._control ._url{font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%;display:inline-block}#_network ._detail ._control ._icon-arrow-left{left:0}#_network ._detail ._control ._icon-delete{left:0;display:none}#_network ._detail ._control ._icon-copy{right:0}#_network ._detail ._http{overflow-y:auto;-webkit-overflow-scrolling:touch;height:100%}#_network ._detail ._http ._section{border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin-top:10px;margin-bottom:10px}#_network ._detail ._http ._section h2{background:var(--darker-background);color:var(--primary);padding:10px;line-height:18px;font-size:14px}#_network ._detail ._http ._section table{color:var(--foreground)}#_network ._detail ._http ._section table *{-webkit-user-select:text;user-select:text}#_network ._detail ._http ._section table td{font-size:12px;padding:5px 10px;word-break:break-all}#_network ._detail ._http ._section table ._key{white-space:nowrap;font-weight:700;color:var(--accent)}#_network ._detail ._http ._data,#_network ._detail ._http ._response{-webkit-user-select:text;user-select:text;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:10px;font-size:12px;margin:10px 0;white-space:pre-wrap;border-top:1px solid var(--border);color:var(--foreground);border-bottom:1px solid var(--border)}._safe-area #_network ._http{padding-bottom:calc(0px + env(safe-area-inset-bottom))}@media screen and (min-width:680px){#_network ._network ._control ._icon-eye{display:none}#_network ._network ._control ._icon-copy{right:0}#_network ._network ._control ._icon-filter{right:23px}#_network ._network ._control ._filter-text{right:55px}#_network ._detail{width:50%;left:initial;right:0;border-left:1px solid var(--border)}#_network ._detail ._control ._icon-arrow-left{display:none}#_network ._detail ._control ._icon-delete{display:block}}",""]),b.exports=_},2488:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_resources{overflow-y:auto;-webkit-overflow-scrolling:touch;padding:10px;font-size:14px}#_resources ._section{margin-bottom:10px;overflow:hidden;border:1px solid var(--border)}#_resources ._section._warn{border:1px solid var(--console-warn-border)}#_resources ._section._warn ._title{background:var(--console-warn-background);color:var(--console-warn-foreground)}#_resources ._section._danger{border:1px solid var(--console-error-border)}#_resources ._section._danger ._title{background:var(--console-error-background);color:var(--console-error-foreground)}#_resources ._section._cookie,#_resources ._section._local-storage,#_resources ._section._session-storage{border:none}#_resources ._section._cookie ._title,#_resources ._section._local-storage ._title,#_resources ._section._session-storage ._title{border:1px solid var(--border);border-bottom:none}#_resources ._title{padding:10px;line-height:18px;color:var(--primary);background:var(--darker-background)}#_resources ._title ._btn{margin-left:5px;float:right;color:var(--primary);width:18px;height:18px;font-size:16px;cursor:pointer;transition:color .3s}#_resources ._title ._btn._filter-text{width:auto;max-width:80px;font-size:14px;overflow:hidden;font-weight:400;text-overflow:ellipsis;display:inline-block}#_resources ._title ._btn:active{color:var(--accent)}#_resources ._title ._btn._btn-disabled{color:inherit!important;cursor:default!important;pointer-events:none;opacity:.5}#_resources ._title ._btn._btn-disabled *{pointer-events:none}#_resources ._link-list{font-size:12px;color:var(--foreground)}#_resources ._link-list li{padding:10px;word-break:break-all}#_resources ._link-list li a{color:var(--link-color)!important}#_resources ._image-list{color:var(--foreground);font-size:12px;display:flex;flex-wrap:wrap;padding:10px!important}#_resources ._image-list:after{content:'';display:block;clear:both}#_resources ._image-list li{flex-grow:1;cursor:pointer;overflow-y:hidden}#_resources ._image-list li._image{height:100px;font-size:0}#_resources ._image-list li img{height:100px;min-width:100%;-o-object-fit:cover;object-fit:cover}._safe-area #_resources{padding-bottom:calc(10px + env(safe-area-inset-bottom))}",""]),b.exports=_},8011:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_settings{overflow-y:auto;-webkit-overflow-scrolling:touch}._safe-area #_settings{padding-bottom:calc(0px + env(safe-area-inset-bottom))}",""]),b.exports=_},5571:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_snippets{overflow-y:auto;-webkit-overflow-scrolling:touch;padding:10px}#_snippets ._section{margin-bottom:10px;border:1px solid var(--border);overflow:hidden;cursor:pointer}#_snippets ._section:active ._name{background:var(--highlight);color:var(--select-foreground)}#_snippets ._section ._name{padding:10px;line-height:18px;color:var(--primary);background:var(--darker-background);transition:background-color .3s}#_snippets ._section ._name ._btn{margin-left:10px;float:right;text-align:center;width:18px;height:18px;font-size:12px}#_snippets ._section ._description{font-size:12px;color:var(--foreground);padding:10px;transition:background-color .3s}._safe-area #_snippets{padding-bottom:calc(10px + env(safe-area-inset-bottom))}",""]),b.exports=_},7346:function(b,_,d){(_=d(3645)(!1)).push([b.id,"._search-highlight-block{display:inline}._search-highlight-block ._keyword{background:var(--console-warn-background);color:var(--console-warn-foreground)}",""]),b.exports=_},1344:function(b,_,d){(_=d(3645)(!1)).push([b.id,"#_sources{font-size:0;overflow-y:auto;-webkit-overflow-scrolling:touch;color:var(--foreground)}#_sources ._code-wrapper,#_sources ._raw-wrapper{overflow-x:auto;-webkit-overflow-scrolling:touch;width:100%;min-height:100%}#_sources ._code,#_sources ._raw{height:100%}#_sources ._code ._keyword,#_sources ._raw ._keyword{color:var(--keyword-color)}#_sources ._code ._comment,#_sources ._raw ._comment{color:var(--comment-color)}#_sources ._code ._number,#_sources ._raw ._number{color:var(--number-color)}#_sources ._code ._string,#_sources ._raw ._string{color:var(--string-color)}#_sources ._code ._operator,#_sources ._raw ._operator{color:var(--operator-color)}#_sources ._code[data-type=html] ._keyword,#_sources ._raw[data-type=html] ._keyword{color:var(--tag-name-color)}#_sources ._image{font-size:12px}#_sources ._image ._breadcrumb{background:var(--darker-background);color:var(--primary);-webkit-user-select:text;user-select:text;margin-bottom:10px;word-break:break-all;padding:10px;font-size:16px;min-height:40px;border-bottom:1px solid var(--border)}#_sources ._image ._img-container{text-align:center}#_sources ._image ._img-container img{max-width:100%}#_sources ._image ._img-info{text-align:center;margin:20px 0;color:var(--foreground)}#_sources ._json{padding:0 10px}#_sources ._json *{-webkit-user-select:text;user-select:text}#_sources iframe{width:100%;height:100%}",""]),b.exports=_},8020:function(b,_,d){(_=d(3645)(!1)).push([b.id,"._container a,._container abbr,._container acronym,._container address,._container applet,._container article,._container aside,._container audio,._container b,._container big,._container blockquote,._container canvas,._container caption,._container center,._container cite,._container code,._container dd,._container del,._container details,._container dfn,._container dl,._container dt,._container em,._container embed,._container fieldset,._container figcaption,._container figure,._container footer,._container form,._container h1,._container h2,._container h3,._container h4,._container h5,._container h6,._container header,._container hgroup,._container i,._container iframe,._container img,._container ins,._container kbd,._container label,._container legend,._container li,._container mark,._container menu,._container nav,._container object,._container ol,._container output,._container p,._container pre,._container q,._container ruby,._container s,._container samp,._container section,._container small,._container span,._container strike,._container strong,._container sub,._container summary,._container sup,._container table,._container tbody,._container td,._container tfoot,._container th,._container thead,._container time,._container tr,._container tt,._container u,._container ul,._container var,._container video{margin:0;padding:0;border:0;font-size:100%}._container article,._container aside,._container details,._container figcaption,._container figure,._container footer,._container header,._container hgroup,._container menu,._container nav,._container section{display:block}._container body{line-height:1}._container ol,._container ul{list-style:none}._container blockquote,._container q{quotes:none}._container blockquote:after,._container blockquote:before,._container q:after,._container q:before{content:'';content:none}._container table{border-collapse:collapse;border-spacing:0}",""]),b.exports=_},8516:function(b,_,d){(_=d(3645)(!1)).push([b.id,`.luna-console{background:var(--background)}.luna-console-header{color:var(--link-color);border-bottom-color:var(--border)}.luna-console-nesting-level{border-right-color:var(--border)}.luna-console-nesting-level::before{border-bottom-color:var(--border)}.luna-console-log-container.luna-console-selected .luna-console-log-item{background:var(--contrast)}.luna-console-log-container.luna-console-selected .luna-console-log-item:not(.luna-console-error):not(.luna-console-warn){border-color:var(--border)}.luna-console-log-item{border-bottom-color:var(--border);color:var(--foreground)}.luna-console-log-item a{color:var(--link-color)!important}.luna-console-log-item .luna-console-icon-container .luna-console-icon{color:var(--foreground)}.luna-console-log-item .luna-console-icon-container .luna-console-icon-error{color:#ef3842}.luna-console-log-item .luna-console-icon-container .luna-console-icon-warn{color:#e8a400}.luna-console-log-item .luna-console-count{color:var(--select-foreground);background:var(--highlight)}.luna-console-log-item.luna-console-warn{color:var(--console-warn-foreground);background:var(--console-warn-background);border-color:var(--console-warn-border)}.luna-console-log-item.luna-console-error{background:var(--console-error-background);color:var(--console-error-foreground);border-color:var(--console-error-border)}.luna-console-log-item.luna-console-error .luna-console-count{background:var(--console-error-foreground)}.luna-console-log-item .luna-console-code .luna-console-key{color:var(--var-color)}.luna-console-log-item .luna-console-code .luna-console-number{color:var(--number-color)}.luna-console-log-item .luna-console-code .luna-console-null{color:var(--operator-color)}.luna-console-log-item .luna-console-code .luna-console-string{color:var(--string-color)}.luna-console-log-item .luna-console-code .luna-console-boolean{color:var(--keyword-color)}.luna-console-log-item .luna-console-code .luna-console-special{color:var(--operator-color)}.luna-console-log-item .luna-console-code .luna-console-keyword{color:var(--keyword-color)}.luna-console-log-item .luna-console-code .luna-console-operator{color:var(--operator-color)}.luna-console-log-item .luna-console-code .luna-console-comment{color:var(--comment-color)}.luna-console-log-item .luna-console-log-content .luna-console-null,.luna-console-log-item .luna-console-log-content .luna-console-undefined{color:var(--operator-color)}.luna-console-log-item .luna-console-log-content .luna-console-number{color:var(--number-color)}.luna-console-log-item .luna-console-log-content .luna-console-boolean{color:var(--keyword-color)}.luna-console-log-item .luna-console-log-content .luna-console-regexp,.luna-console-log-item .luna-console-log-content .luna-console-symbol{color:var(--var-color)}.luna-console-preview .luna-console-key{color:var(--var-color)}.luna-console-preview .luna-console-number{color:var(--number-color)}.luna-console-preview .luna-console-null{color:var(--operator-color)}.luna-console-preview .luna-console-string{color:var(--string-color)}.luna-console-preview .luna-console-boolean{color:var(--keyword-color)}.luna-console-preview .luna-console-special{color:var(--operator-color)}.luna-console-preview .luna-console-keyword{color:var(--keyword-color)}.luna-console-preview .luna-console-operator{color:var(--operator-color)}.luna-console-preview .luna-console-comment{color:var(--comment-color)}.luna-object-viewer{color:var(--primary);font-size:12px!important}.luna-object-viewer-null{color:var(--operator-color)}.luna-object-viewer-regexp,.luna-object-viewer-string{color:var(--string-color)}.luna-object-viewer-number{color:var(--number-color)}.luna-object-viewer-boolean{color:var(--keyword-color)}.luna-object-viewer-special{color:var(--operator-color)}.luna-object-viewer-key,.luna-object-viewer-key-lighter{color:var(--var-color)}.luna-object-viewer-expanded:before{border-color:transparent;border-top-color:var(--foreground)}.luna-object-viewer-collapsed:before{border-top-color:transparent;border-left-color:var(--foreground)}.luna-notification{pointer-events:none!important;padding:10px;z-index:1000}.luna-notification-item{z-index:500;color:var(--foreground);background:var(--background);box-shadow:none;padding:5px 10px;border:1px solid var(--border)}.luna-notification-upper{margin-bottom:10px}.luna-notification-lower{margin-top:10px}.luna-data-grid{color:var(--foreground);background:var(--background);border-color:var(--border)}.luna-data-grid:focus .luna-data-grid-data-container .luna-data-grid-node.luna-data-grid-selected{background:var(--accent)}.luna-data-grid td,.luna-data-grid th{border-color:var(--border)}.luna-data-grid th{background:var(--darker-background)}.luna-data-grid th.luna-data-grid-sortable:active,.luna-data-grid th.luna-data-grid-sortable:hover{color:var(--select-foreground);background:var(--highlight)}.luna-data-grid .luna-data-grid-data-container .luna-data-grid-node.luna-data-grid-selected{background:var(--highlight)}.luna-data-grid .luna-data-grid-data-container tr:nth-child(even){background:var(--contrast)}.luna-dom-viewer{color:var(--foreground)}.luna-dom-viewer .luna-dom-viewer-html-tag,.luna-dom-viewer .luna-dom-viewer-tag-name{color:var(--tag-name-color)}.luna-dom-viewer .luna-dom-viewer-attribute-name{color:var(--attribute-name-color)}.luna-dom-viewer .luna-dom-viewer-attribute-value{color:var(--string-color)}.luna-dom-viewer .luna-dom-viewer-html-comment{color:var(--comment-color)}.luna-dom-viewer .luna-dom-viewer-tree-item:hover .luna-dom-viewer-selection{background:var(--contrast)}.luna-dom-viewer .luna-dom-viewer-tree-item.luna-dom-viewer-selected .luna-dom-viewer-selection{background:var(--highlight)}.luna-dom-viewer .luna-dom-viewer-tree-item.luna-dom-viewer-selected:focus .luna-dom-viewer-selection{background:var(--accent);opacity:.2}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-key{color:var(--var-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-number{color:var(--number-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-null{color:var(--operator-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-string{color:var(--string-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-boolean{color:var(--keyword-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-special{color:var(--operator-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-keyword{color:var(--keyword-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-operator{color:var(--operator-color)}.luna-dom-viewer .luna-dom-viewer-text-node .luna-dom-viewer-comment{color:var(--comment-color)}.luna-dom-viewer-children{margin:0;padding-left:15px!important}.luna-modal{z-index:9999999}.luna-modal-body,.luna-modal-input{color:var(--foreground);background:var(--background)}.luna-modal-input{-webkit-user-select:text!important;user-select:text!important;border-color:var(--border)}.luna-modal-button-group .luna-modal-secondary{border-color:var(--border);color:var(--foreground);background:var(--background)}.luna-modal-button-group .luna-modal-primary{background:var(--accent)}.luna-modal-button-group .luna-modal-button:active::before{background:var(--accent)}.luna-tab{position:absolute;left:0;top:0;color:var(--foreground);background:var(--darker-background)}.luna-tab-tabs-container{border-color:var(--border)}.luna-tab-item.luna-tab-selected,.luna-tab-item:hover{background:var(--highlight);color:var(--select-foreground)}.luna-tab-slider{background:var(--accent)}.luna-text-viewer{color:var(--foreground);border:none;border-bottom:1px solid var(--border);background:var(--background);font-size:12px}.luna-text-viewer .luna-text-viewer-line-text{-webkit-user-select:text;user-select:text}.luna-text-viewer .luna-text-viewer-line-text *{-webkit-user-select:text;user-select:text}.luna-text-viewer .luna-text-viewer-copy,.luna-text-viewer .luna-text-viewer-line-number{border-color:var(--border)}.luna-text-viewer .luna-text-viewer-copy .luna-text-viewer-icon-check{color:var(--accent)}.luna-text-viewer .luna-text-viewer-copy{background-color:var(--background)}.luna-setting{color:var(--foreground);background:var(--background)}.luna-setting-item.luna-setting-selected,.luna-setting-item:hover{background:var(--darker-background)}.luna-setting-item.luna-setting-selected:focus{outline:0}.luna-setting-item-title{font-size:14px}.luna-setting-item-separator{border-color:var(--border)}.luna-setting-item-checkbox input{border-color:var(--border)}.luna-setting-item-checkbox input:checked{background-color:var(--accent);border-color:var(--accent)}.luna-setting-item-select .luna-setting-select select{color:var(--foreground);border-color:var(--border);background:var(--background)}.luna-setting-item-select .luna-setting-select:after{border-top-color:var(--foreground)}.luna-setting-item-button button{color:var(--accent);background:var(--background);border-color:var(--border)}.luna-setting-item-button button:active,.luna-setting-item-button button:hover{background:var(--darker-background)}.luna-setting-item-button button:active{border:1px solid var(--accent)}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar{background:var(--border)}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar .luna-setting-range-track-progress{background:var(--accent)}.luna-setting-item-number .luna-setting-range-container input::-webkit-slider-thumb{border-color:var(--border);background:radial-gradient(circle at center,var(--dark) 0,var(--dark) 15%,var(--light) 22%,var(--light) 100%)}.luna-box-model{background:0 0}.luna-box-model-position{color:var(--foreground)}._container{min-width:320px;pointer-events:none;position:fixed;left:0;top:0;width:100%;height:100%;z-index:9999999;color:var(--foreground);font-family:".SFNSDisplay-Regular","Helvetica Neue","Lucida Grande","Segoe UI",Tahoma,sans-serif;font-size:14px;direction:ltr}._container._dark{color-scheme:dark}._container *{box-sizing:border-box;pointer-events:all;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:none}._container ul{list-style:none;padding:0;margin:0}._container h1,._container h2,._container h3,._container h4{margin:0}._container h2{font-size:14px}._container h2 [class*=' _icon-'],._container h2 [class^='_icon-']{font-weight:400}._hidden{display:none}._icon-disabled{opacity:.5;pointer-events:none;cursor:default!important}._icon-disabled:active{color:inherit!important}._tag-name-color{color:var(--tag-name-color)}._function-color{color:var(--function-color)}._attribute-name-color{color:var(--attribute-name-color)}._operator-color{color:var(--operator-color)}._string-color{color:var(--string-color)}`,""]),b.exports=_},8094:function(b,_,d){(_=d(3645)(!1)).push([b.id,".luna-box-model{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;display:inline-block;color:#222;font-size:12px;text-align:center;white-space:nowrap}.luna-box-model.luna-box-model-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-box-model.luna-box-model-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-box-model .luna-box-model-hidden,.luna-box-model.luna-box-model-hidden{display:none}.luna-box-model .luna-box-model-invisible,.luna-box-model.luna-box-model-invisible{visibility:hidden}.luna-box-model *{box-sizing:border-box}.luna-box-model.luna-box-model-theme-dark{color:#a5a5a5;background-color:#242424}.luna-box-model-label{position:absolute;margin-left:3px;padding:0 2px}.luna-box-model-bottom,.luna-box-model-left,.luna-box-model-right,.luna-box-model-top{display:inline-block}.luna-box-model-left,.luna-box-model-right{vertical-align:middle}.luna-box-model-border,.luna-box-model-content,.luna-box-model-margin,.luna-box-model-padding,.luna-box-model-position{position:relative;display:inline-block;text-align:center;vertical-align:middle;padding:3px;margin:3px}.luna-box-model-position{border:1px grey dotted}.luna-box-model-margin{color:#333;border:1px dashed;background:rgba(246,178,107,.66)}.luna-box-model-border{color:#333;border:1px #000 solid;background:rgba(255,229,153,.66)}.luna-box-model-padding{color:#333;border:1px grey dashed;background:rgba(147,196,125,.55)}.luna-box-model-content{color:#333;border:1px grey solid;min-width:100px;background:rgba(111,168,220,.66)}",""]),b.exports=_},9327:function(b,_,d){(_=d(3645)(!1)).push([b.id,"@font-face{font-family:luna-console-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAasAAsAAAAACnAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAI4AAADcIsYnIk9TLzIAAAGYAAAAPgAAAFZWmlGRY21hcAAAAdgAAAD2AAACyDioZ9NnbHlmAAAC0AAAAZgAAAH8Lq6nDGhlYWQAAARoAAAAMQAAADZ25cSzaGhlYQAABJwAAAAdAAAAJAgCBBRobXR4AAAEvAAAABkAAABYGAH//GxvY2EAAATYAAAAGAAAAC4J8glUbWF4cAAABPAAAAAfAAAAIAEjAFBuYW1lAAAFEAAAASkAAAIWm5e+CnBvc3QAAAY8AAAAcAAAAJ7qA/7MeJxNjTsOwjAQRJ8TJzE2hPBrKBBHQByAAiGqFBRcIBVCiqhyBA7O2AgRr9Y7M2+lxQCeAyeyy7W9U/fd8GKL5fsiH2vTPx8d7ufEbJpO/aagYc+RM7fEjBKnmiRuySmZUTNNf0wybYSRj9VoO4iU7NQh+Up8qelZs5EupP75Shfm2oz3Kmkvt/gARcgJKwAAeJxjYGQUZ5zAwMrAwNTJdIaBgaEfQjO+ZjBi5ACKMrAyM2AFAWmuKQwHGHQ/srGAuDEsTGBhRhABALQ1CMwAAHiczdJNbsIwEIbh1+QHQsJviNRFF1XX7aEQRZQNRQjEHXqgrnopn4B+E8+qqip117GeRB4nk4lloAAyeZIcwicBiw9lQ5/PGPf5nHfNV8yVyXlmzZY9R05cuMbydtOqZTfsOCh7Vjb02e8RVMXGHfc8aDxqwFKVF7QMtdLpmzUVDSOmTJjpnUH/3YJSBcofqv4Wyz8+b6FuWvXSjW1SV30r1sl/icYuofFZh+1+Yn+7dnPZuIW8uFa2big7t5JXZzX3znbh4Gp5c5UcnfVyciM5u6lc3ESuTnsZQ2JnLQ4S7J4ldjZjntj5jEVi5zaWCeUXWN4q9AAAeJxdUMFOU0EUnTMzb2o1FB5O5wENg31k5mExVEo7jSGBEuO6CStDmtbIBuiKBYg/gRu/ABO3/ocscOEXsHBpogtWvFfnvQgxJnduztx7zknuIXQyIYSDE9IgLwmBmIZI1pDYbTSxBqeW4KvrVKSmaaRKFZREE7YJIyONSLW6W37bLiRxscXNTH1zbnFqlnJ5Eu+G9MnT8JBy9l69ELx69Ohd9JCryrwcU07TbCU5H4y+jQbnyco/EF+8x1/eaX03bCzR8IgGwVn0WC/I8YOzaLGS+4+p4K8O/lcXkPhj/CP0ig1JQIhJyugCxz3o7LqH4YUH0L3swlMK3q+CV/HMbhkJAqlarm1jgd+97DpnfsKPeH15eT2+l9L5OJ/kcjZJfY6MU++wQPzI+PRECUJjo97aAtqupaqhFLHtRLHNf1Kwn9lAOid9L7tV9nzVldNL3dC+NmrGOGM+sme2VrO335Mda3foXlXravY57zemY23HkLs72RsW5JegDjZK99FnPPtwl8FX1i92IfAax6yfvkWf/AHb1F1JeJxjYGRgYABi3/mPYuP5bb4ycLOABKI4H+9rgNH//zIwsDCzMAElOBhAJAMAQ2IK+QAAAHicY2BkYGBhAAEWhv9///9lYWZgZEAFYgBbLQQgAAAAeJxjYGBgYGH4/58FTIPZf2FsSgAAM58EEwAAAHicY2AAgjyGJoYlDI8YPjD8ww8BeTMTR3icY2BkYGAQY3BhYGYAASYg5gJCBob/YD4DABGFAXQAeJxlkD1uwkAUhMdgSAJSghQpKbNVCiKZn5IDQE9Bl8KYtTGyvdZ6QaLLCXKEHCGniHKCHChj82hgLT9/M2/e7soABviFh3p5uG1qvVq4oTpxm/Qg7JOfhTvo40W4S38o3MMbpsJ9POKdO3j+HZ0BSuEW7vEh3Kb/KeyTv4Q7eMK3cJf+j3APK/wJ9/HqDdPIFLEp3FIn+yy0Z3n+rrStUlOoSTA+WwtdaBs6vVHro6oOydS5WMXW5GrOrs4yo0prdjpywda5cjYaxeIHkcmRIoJBgbipDktoJNgjQwh71b3UK6YtKvq1VpggwPgqtWCqaJIhlcaGyTWOrBUOPG1K1zGt+FrO5KS5zGreJCMr/u+6t6MT0Q+wbaZKzDDiE1/kg+YO+T89EV6oAAAAeJxtxksOgjAUQNF3kaIW/x9cBYtqgEAnLXlp0+1rwtQzuVcq2Vj5r6NiR42hYc+BI5aWE2cuXLlx58GTF286PmIm1ajGhzWnJub0S12cBjs4nVI/xhLabdXPS2JCiXgCK5lEwTHQMzKziHwBqnYYpg==') format('woff')}[class*=' luna-console-icon-'],[class^=luna-console-icon-]{display:inline-block;font-family:luna-console-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-console-icon-error:before{content:'\\f101'}.luna-console-icon-input:before{content:'\\f102'}.luna-console-icon-output:before{content:'\\f103'}.luna-console-icon-warn:before{content:'\\f104'}.luna-console-icon-caret-down:before{content:'\\f105'}.luna-console-icon-caret-right:before{content:'\\f106'}.luna-console{background:#fff;overflow-y:auto;-webkit-overflow-scrolling:touch;height:100%;position:relative;will-change:scroll-position;cursor:default;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.luna-console.luna-console-theme-dark{background-color:#242424}.luna-console-hidden{display:none}.luna-console-fake-logs{position:absolute;left:0;top:0;pointer-events:none;visibility:hidden;width:100%}.luna-console-logs{padding-top:1px;position:absolute;width:100%}.luna-console-log-container{box-sizing:content-box}.luna-console-log-container.luna-console-selected .luna-console-log-item{background:#ecf1f8}.luna-console-log-container.luna-console-selected .luna-console-log-item:not(.luna-console-error):not(.luna-console-warn){border-color:#ccdef5}.luna-console-header{white-space:nowrap;display:flex;font-size:11px;color:#545454;border-top:1px solid transparent;border-bottom:1px solid #ccc}.luna-console-header .luna-console-time-from-container{overflow-x:auto;-webkit-overflow-scrolling:touch;padding:3px 10px}.luna-console-nesting-level{width:14px;flex-shrink:0;margin-top:-1px;margin-bottom:-1px;position:relative;border-right:1px solid #ccc}.luna-console-nesting-level.luna-console-group-closed::before{content:''}.luna-console-nesting-level::before{border-bottom:1px solid #ccc;position:absolute;top:0;left:0;margin-left:100%;width:5px;height:100%;box-sizing:border-box}.luna-console-log-item{position:relative;display:flex;border-top:1px solid transparent;border-bottom:1px solid #ccc;margin-top:-1px;color:#333}.luna-console-log-item:after{content:'';display:block;clear:both}.luna-console-log-item .luna-console-code{display:inline;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.luna-console-log-item .luna-console-code .luna-console-keyword{color:#881280}.luna-console-log-item .luna-console-code .luna-console-number{color:#1c00cf}.luna-console-log-item .luna-console-code .luna-console-operator{color:grey}.luna-console-log-item .luna-console-code .luna-console-comment{color:#236e25}.luna-console-log-item .luna-console-code .luna-console-string{color:#1a1aa6}.luna-console-log-item a{color:#15c!important}.luna-console-log-item .luna-console-icon-container{margin:0 -6px 0 10px}.luna-console-log-item .luna-console-icon-container .luna-console-icon{line-height:20px;font-size:12px;color:#333;position:relative}.luna-console-log-item .luna-console-icon-container .luna-console-icon-caret-down,.luna-console-log-item .luna-console-icon-container .luna-console-icon-caret-right{top:0;left:-2px}.luna-console-log-item .luna-console-icon-container .luna-console-icon-error{top:0;color:#ef3842}.luna-console-log-item .luna-console-icon-container .luna-console-icon-warn{top:0;color:#e8a400}.luna-console-log-item .luna-console-count{background:#8097bd;color:#fff;padding:2px 4px;border-radius:10px;font-size:12px;float:left;margin:1px -6px 0 10px}.luna-console-log-item .luna-console-log-content-wrapper{flex:1;overflow:hidden}.luna-console-log-item .luna-console-log-content{padding:3px 0;margin:0 10px;overflow-x:auto;-webkit-overflow-scrolling:touch;white-space:pre-wrap;-webkit-user-select:text;user-select:text}.luna-console-log-item .luna-console-log-content *{-webkit-user-select:text;user-select:text}.luna-console-log-item .luna-console-log-content>*{vertical-align:top}.luna-console-log-item .luna-console-log-content .luna-console-null,.luna-console-log-item .luna-console-log-content .luna-console-undefined{color:#5e5e5e}.luna-console-log-item .luna-console-log-content .luna-console-number{color:#1c00cf}.luna-console-log-item .luna-console-log-content .luna-console-boolean{color:#0d22aa}.luna-console-log-item .luna-console-log-content .luna-console-regexp,.luna-console-log-item .luna-console-log-content .luna-console-symbol{color:#881391}.luna-console-log-item .luna-console-data-grid,.luna-console-log-item .luna-console-dom-viewer{white-space:initial}.luna-console-log-item.luna-console-error{z-index:50;background:#fff0f0;color:red;border-top:1px solid #ffd6d6;border-bottom:1px solid #ffd6d6}.luna-console-log-item.luna-console-error .luna-console-stack{padding-left:1.2em;white-space:nowrap}.luna-console-log-item.luna-console-error .luna-console-count{background:red}.luna-console-log-item.luna-console-debug{z-index:20}.luna-console-log-item.luna-console-input{border-bottom-color:transparent}.luna-console-log-item.luna-console-warn{z-index:40;color:#5c5c00;background:#fffbe5;border-top:1px solid #fff5c2;border-bottom:1px solid #fff5c2}.luna-console-log-item.luna-console-warn .luna-console-count{background:#e8a400}.luna-console-log-item.luna-console-info{z-index:30}.luna-console-log-item.luna-console-group,.luna-console-log-item.luna-console-groupCollapsed{font-weight:700}.luna-console-preview{display:inline-block}.luna-console-preview .luna-console-preview-container{display:flex;align-items:center}.luna-console-preview .luna-console-json{overflow-x:auto;-webkit-overflow-scrolling:touch;padding-left:12px}.luna-console-preview .luna-console-preview-icon-container{display:block}.luna-console-preview .luna-console-preview-icon-container .luna-console-icon{position:relative;font-size:12px}.luna-console-preview .luna-console-preview-icon-container .luna-console-icon-caret-down{top:2px}.luna-console-preview .luna-console-preview-icon-container .luna-console-icon-caret-right{top:1px}.luna-console-preview .luna-console-preview-content-container{word-break:break-all}.luna-console-preview .luna-console-descriptor,.luna-console-preview .luna-console-object-preview{font-style:italic}.luna-console-preview .luna-console-key{color:#881391}.luna-console-preview .luna-console-number{color:#1c00cf}.luna-console-preview .luna-console-null{color:#5e5e5e}.luna-console-preview .luna-console-string{color:#c41a16}.luna-console-preview .luna-console-boolean{color:#0d22aa}.luna-console-preview .luna-console-special{color:#5e5e5e}.luna-console-theme-dark{color-scheme:dark}.luna-console-theme-dark .luna-console-log-container.luna-console-selected .luna-console-log-item{background:#29323d}.luna-console-theme-dark .luna-console-log-container.luna-console-selected .luna-console-log-item:not(.luna-console-error):not(.luna-console-warn){border-color:#4173b4}.luna-console-theme-dark .luna-console-log-item{color:#a5a5a5;border-bottom-color:#3d3d3d}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-keyword{color:#e36eec}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-number{color:#9980ff}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-operator{color:#7f7f7f}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-comment{color:#747474}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-string{color:#f29766}.luna-console-theme-dark .luna-console-log-item.luna-console-error{background:#290000;color:#ff8080;border-top-color:#5c0000;border-bottom-color:#5c0000}.luna-console-theme-dark .luna-console-log-item.luna-console-error .luna-console-count{background:#ff8080}.luna-console-theme-dark .luna-console-log-item.luna-console-warn{color:#ffcb6b;background:#332a00;border-top-color:#650;border-bottom-color:#650}.luna-console-theme-dark .luna-console-log-item .luna-console-count{background:#42597f;color:#949494}.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-null,.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-undefined{color:#7f7f7f}.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-boolean,.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-number{color:#9980ff}.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-regexp,.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-symbol{color:#e36eec}.luna-console-theme-dark .luna-console-icon-container .luna-console-icon-caret-down,.luna-console-theme-dark .luna-console-icon-container .luna-console-icon-caret-right{color:#9aa0a6}.luna-console-theme-dark .luna-console-header{border-bottom-color:#3d3d3d}.luna-console-theme-dark .luna-console-nesting-level{border-right-color:#3d3d3d}.luna-console-theme-dark .luna-console-nesting-level::before{border-bottom-color:#3d3d3d}.luna-console-theme-dark .luna-console-preview .luna-console-key{color:#e36eec}.luna-console-theme-dark .luna-console-preview .luna-console-number{color:#9980ff}.luna-console-theme-dark .luna-console-preview .luna-console-null{color:#7f7f7f}.luna-console-theme-dark .luna-console-preview .luna-console-string{color:#f29766}.luna-console-theme-dark .luna-console-preview .luna-console-boolean{color:#9980ff}.luna-console-theme-dark .luna-console-preview .luna-console-special{color:#7f7f7f}",""]),b.exports=_},4987:function(b,_,d){(_=d(3645)(!1)).push([b.id,".luna-data-grid{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;position:relative;font-size:12px;border:1px solid #ccc;overflow:hidden;outline:0}.luna-data-grid.luna-data-grid-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-data-grid.luna-data-grid-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-data-grid .luna-data-grid-hidden,.luna-data-grid.luna-data-grid-hidden{display:none}.luna-data-grid .luna-data-grid-invisible,.luna-data-grid.luna-data-grid-invisible{visibility:hidden}.luna-data-grid *{box-sizing:border-box}.luna-data-grid.luna-data-grid-theme-dark{color:#a5a5a5;background-color:#242424}.luna-data-grid.luna-data-grid-theme-dark{color:#a5a5a5;background:#242424;border-color:#3d3d3d}.luna-data-grid table{width:100%;height:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.luna-data-grid td,.luna-data-grid th{padding:1px 4px;border-left:1px solid #ccc;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.luna-data-grid td:first-child,.luna-data-grid th:first-child{border-left:none}.luna-data-grid th{font-weight:400;border-bottom:1px solid #ccc;text-align:left;background:#f3f3f3}.luna-data-grid th.luna-data-grid-sortable:active,.luna-data-grid th.luna-data-grid-sortable:hover{background:#e6e6e6}.luna-data-grid td{height:20px;cursor:default;-webkit-user-select:text;user-select:text}.luna-data-grid:focus .luna-data-grid-node.luna-data-grid-selected{color:#fff;background:#1a73e8}.luna-data-grid:focus.luna-data-grid-theme-dark .luna-data-grid-node.luna-data-grid-selected{background:#0e639c}.luna-data-grid-data-container,.luna-data-grid-header-container{overflow:hidden}.luna-data-grid-header-container{height:21px}.luna-data-grid-data-container{overflow-y:auto}.luna-data-grid-data-container .luna-data-grid-node.luna-data-grid-selected{background:#ddd}.luna-data-grid-data-container tr:nth-child(even){background:#f2f7fd}.luna-data-grid-filler-row td{height:auto}.luna-data-grid-resizer{position:absolute;top:0;bottom:0;width:5px;z-index:500;cursor:col-resize}.luna-data-grid-resizing{cursor:col-resize!important}.luna-data-grid-resizing .luna-data-grid *{cursor:col-resize!important}.luna-data-grid-theme-dark{color-scheme:dark}.luna-data-grid-theme-dark td,.luna-data-grid-theme-dark th{border-color:#3d3d3d}.luna-data-grid-theme-dark th{background:#292a2d}.luna-data-grid-theme-dark th.luna-data-grid-sortable:hover{background:#303030}.luna-data-grid-theme-dark .luna-data-grid-data-container .luna-data-grid-node.luna-data-grid-selected{background:#393939}.luna-data-grid-theme-dark .luna-data-grid-data-container tr:nth-child(even){background:#0b2544}",""]),b.exports=_},8903:function(b,_,d){(_=d(3645)(!1)).push([b.id,"@font-face{font-family:luna-dom-viewer-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAASgAAsAAAAAB4QAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAFwAAACMIRYl8k9TLzIAAAFkAAAAPQAAAFZLxUkaY21hcAAAAaQAAADHAAACWBcU1KRnbHlmAAACbAAAAC4AAAAwabU7V2hlYWQAAAKcAAAALwAAADZzjr4faGhlYQAAAswAAAAYAAAAJAFyANdobXR4AAAC5AAAABAAAAA4AZAAAGxvY2EAAAL0AAAAEAAAAB4AnACQbWF4cAAAAwQAAAAfAAAAIAEZAA9uYW1lAAADJAAAASkAAAIWm5e+CnBvc3QAAARQAAAATgAAAG5m1cqleJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiC2AdNMDGwMckCSGyzHCuSxA2kuIJ+HgReoggtJnANMcwJFGRmYAXZLBkt4nGNgZJBlnMDAysDAUMfQAyRloHQCAyeDMQMDEwMrMwNWEJDmmsJwgEH3IxPDCSBXCEwyMDCCCABbzwhtAAAAeJy1kksKwjAQhr/0oX0JLlyIZ9BDCQXtRkEEwQO56uV6Av0nmZWI4MIJX2H+JvNIBiiBXGxFAWEkYPaQGqKe00S94C5/xVJKwY49PQNnLly5Tdnzqb9JPXByNUT13YKipLVm4wvmilvR0ilfrboKFsy0N9OB2Yco32z+437SLVTQdo05dUksgF8z/8+6+B3dU2m67YR1u3fsLXtH7egtEq04OhZpcKzbk1OLs2NzcXE0F3rNhOW9ObqbKSRsVqYsQfYC6fYeiQB4nGNgZACBlQzTGZgYGMyVxVc2O073AIpAxHsYloHFRc2dPZY2OTIwAACmEQesAAB4nGNgZGBgAOLeSTNM4/ltvjJwM5wACkRxPt7XgKCBYCXDMiDJwcAE4gAAQEgKxAB4nGNgZGBgOMHAACdXMjAyoAI+ADixAkp4nGNgAIITUEwCAABMyAGReJxjYAACHgYJ7BAADsoBLXicY2BkYGDgY2BmANEMDExAzAWEDAz/wXwGAAomASkAeJxlkD1uwkAUhMdgSAJSghQpKbNVCiKZn5IDQE9Bl8KYtTGyvdZ6QaLLCXKEHCGniHKCHChj82hgLT9/M2/e7soABviFh3p5uG1qvVq4oTpxm/Qg7JOfhTvo40W4S38o3MMbpsJ9POKdO3j+HZ0BSuEW7vEh3Kb/KeyTv4Q7eMK3cJf+j3APK/wJ9/HqDdPIFLEp3FIn+yy0Z3n+rrStUlOoSTA+WwtdaBs6vVHro6oOydS5WMXW5GrOrs4yo0prdjpywda5cjYaxeIHkcmRIoJBgbipDktoJNgjQwh71b3UK6YtKvq1VpggwPgqtWCqaJIhlcaGyTWOrBUOPG1K1zGt+FrO5KS5zGreJCMr/u+6t6MT0Q+wbaZKzDDiE1/kg+YO+T89EV6oAAAAeJxdxk0KgCAUAOE3/adlJ/FQgqBuFETw+i2kTd9mRiYZvv4ZJmYWVjZ2Dk4UmosbwyPK1Vq69aVnPbamEBuOSqFj8WQSgUgTeQGPtA2iAAA=') format('woff')}[class*=' luna-dom-viewer-icon-'],[class^=luna-dom-viewer-icon-]{display:inline-block;font-family:luna-dom-viewer-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-dom-viewer-icon-arrow-down:before{content:'\\f101'}.luna-dom-viewer-icon-arrow-right:before{content:'\\f102'}.luna-dom-viewer{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;overflow-y:auto;-webkit-overflow-scrolling:touch;background:0 0;overflow-x:hidden;word-wrap:break-word;padding:0 0 0 12px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;cursor:default;list-style:none}.luna-dom-viewer.luna-dom-viewer-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-dom-viewer.luna-dom-viewer-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-dom-viewer .luna-dom-viewer-hidden,.luna-dom-viewer.luna-dom-viewer-hidden{display:none}.luna-dom-viewer .luna-dom-viewer-invisible,.luna-dom-viewer.luna-dom-viewer-invisible{visibility:hidden}.luna-dom-viewer *{box-sizing:border-box}.luna-dom-viewer ul{list-style:none}.luna-dom-viewer.luna-dom-viewer-theme-dark{color:#e8eaed}.luna-dom-viewer-toggle{min-width:12px;margin-left:-12px}.luna-dom-viewer-icon-arrow-down,.luna-dom-viewer-icon-arrow-right{position:absolute!important;font-size:12px!important}.luna-dom-viewer-tree-item{line-height:16px;min-height:16px;position:relative;z-index:10;outline:0}.luna-dom-viewer-tree-item.luna-dom-viewer-selected .luna-dom-viewer-selection,.luna-dom-viewer-tree-item:hover .luna-dom-viewer-selection{display:block}.luna-dom-viewer-tree-item:hover .luna-dom-viewer-selection{background:#f2f7fd}.luna-dom-viewer-tree-item.luna-dom-viewer-selected .luna-dom-viewer-selection{background:#e0e0e0}.luna-dom-viewer-tree-item.luna-dom-viewer-selected:focus .luna-dom-viewer-selection{background:#cfe8fc}.luna-dom-viewer-tree-item .luna-dom-viewer-icon-arrow-down{display:none}.luna-dom-viewer-tree-item.luna-dom-viewer-expanded .luna-dom-viewer-icon-arrow-down{display:inline-block}.luna-dom-viewer-tree-item.luna-dom-viewer-expanded .luna-dom-viewer-icon-arrow-right{display:none}.luna-dom-viewer-html-tag{color:#881280}.luna-dom-viewer-tag-name{color:#881280}.luna-dom-viewer-attribute-name{color:#994500}.luna-dom-viewer-attribute-value{color:#1a1aa6}.luna-dom-viewer-attribute-value.luna-dom-viewer-attribute-underline{text-decoration:underline}.luna-dom-viewer-html-comment{color:#236e25}.luna-dom-viewer-selection{position:absolute;display:none;left:-10000px;right:-10000px;top:0;bottom:0;z-index:-1}.luna-dom-viewer-children{margin:0;overflow-x:visible;overflow-y:visible;padding-left:15px}.luna-dom-viewer-text-node .luna-dom-viewer-keyword{color:#881280}.luna-dom-viewer-text-node .luna-dom-viewer-number{color:#1c00cf}.luna-dom-viewer-text-node .luna-dom-viewer-operator{color:grey}.luna-dom-viewer-text-node .luna-dom-viewer-comment{color:#236e25}.luna-dom-viewer-text-node .luna-dom-viewer-string{color:#1a1aa6}.luna-dom-viewer-theme-dark .luna-dom-viewer-icon-arrow-down,.luna-dom-viewer-theme-dark .luna-dom-viewer-icon-arrow-right{color:#9aa0a6}.luna-dom-viewer-theme-dark .luna-dom-viewer-html-tag,.luna-dom-viewer-theme-dark .luna-dom-viewer-tag-name{color:#5db0d7}.luna-dom-viewer-theme-dark .luna-dom-viewer-attribute-name{color:#9bbbdc}.luna-dom-viewer-theme-dark .luna-dom-viewer-attribute-value{color:#f29766}.luna-dom-viewer-theme-dark .luna-dom-viewer-html-comment{color:#898989}.luna-dom-viewer-theme-dark .luna-dom-viewer-tree-item:hover .luna-dom-viewer-selection{background:#083c69}.luna-dom-viewer-theme-dark .luna-dom-viewer-tree-item.luna-dom-viewer-selected .luna-dom-viewer-selection{background:#454545}.luna-dom-viewer-theme-dark .luna-dom-viewer-tree-item.luna-dom-viewer-selected:focus .luna-dom-viewer-selection{background:#073d69}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-keyword{color:#e36eec}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-number{color:#9980ff}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-operator{color:#7f7f7f}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-comment{color:#747474}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-string{color:#f29766}",""]),b.exports=_},5512:function(b,_,d){(_=d(3645)(!1)).push([b.id,"@font-face{font-family:luna-modal-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAQwAAsAAAAABpQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAEkAAABoILgliE9TLzIAAAFUAAAAPQAAAFZL+0kZY21hcAAAAZQAAACBAAAB3sqmCy5nbHlmAAACGAAAAC0AAAA0Ftcaz2hlYWQAAAJIAAAALgAAADZzhL4YaGhlYQAAAngAAAAYAAAAJAFoANBobXR4AAACkAAAAA8AAAAcAMgAAGxvY2EAAAKgAAAADgAAABAATgBObWF4cAAAArAAAAAfAAAAIAESABhuYW1lAAAC0AAAASkAAAIWm5e+CnBvc3QAAAP8AAAAMQAAAEOplauDeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiCWgNIsQMzKwAykWRnYgGxGBiYAk+wFgwAAAHicY2BkkGWcwMDKwMBQx9ADJGWgdAIDJ4MxAwMTAyszA1YQkOaawnCAIfkjI8MJIFcITDIwMIIIAGAqCKIAAAB4nM2RQQqDQAxFXxyVUsST9DhduBd3ggsv0JX39QT6kwYED1D6hzeQD0nmM0ADFPESNdiG4frItfALz/Br3qp7HlS0jEzMLKy7HYf8e33J1HMdortoWuPzreUX8p2hEikj9f+oi3vIyl86JpWYEvfnxH9sSTzPmijXbl+wE7urE5sAAAB4nGNgZACB+UDIzcBgrs6uzi7OLm4ubq4+j1tfn1tPD0xOhjGAJAMDAKekBtMAAAB4nGNgZGBgAGLPuE0l8fw2Xxm4GU4ABaI4H+9rQNBAMB8IGRg4GJhAHAA5KgqUAAB4nGNgZGBgOMHAACfnMzAyoAJ2ADfsAjl4nGNgAIITDFgBABIUAMkAeJxjYAACKQQEAAO4AJ0AAHicY2BkYGBgZ+BhANEMDExAzAWEDAz/wXwGAApKASsAeJxlkD1uwkAUhMdgSAJSghQpKbNVCiKZn5IDQE9Bl8KYtTGyvdZ6QaLLCXKEHCGniHKCHChj82hgLT9/M2/e7soABviFh3p5uG1qvVq4oTpxm/Qg7JOfhTvo40W4S38o3MMbpsJ9POKdO3j+HZ0BSuEW7vEh3Kb/KeyTv4Q7eMK3cJf+j3APK/wJ9/HqDdPIFLEp3FIn+yy0Z3n+rrStUlOoSTA+WwtdaBs6vVHro6oOydS5WMXW5GrOrs4yo0prdjpywda5cjYaxeIHkcmRIoJBgbipDktoJNgjQwh71b3UK6YtKvq1VpggwPgqtWCqaJIhlcaGyTWOrBUOPG1K1zGt+FrO5KS5zGreJCMr/u+6t6MT0Q+wbaZKzDDiE1/kg+YO+T89EV6oAAAAeJxjYGKAABiNDtgZmRiZGVkYWRnZGNkZORhYk3Pyi1MZkxlzGPMZixlTGRgANIEEbAAAAA==') format('woff')}[class*=' luna-modal-icon-'],[class^=luna-modal-icon-]{display:inline-block;font-family:luna-modal-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-modal-icon-close:before{content:'\\f101'}.luna-modal{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;justify-content:center;align-items:center}.luna-modal.luna-modal-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-modal.luna-modal-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-modal .luna-modal-hidden,.luna-modal.luna-modal-hidden{display:none}.luna-modal .luna-modal-invisible,.luna-modal.luna-modal-invisible{visibility:hidden}.luna-modal *{box-sizing:border-box}.luna-modal-icon-close{position:absolute;right:16px;top:18px;cursor:pointer;font-size:20px}.luna-modal-body{position:relative;background:#fff;max-height:100%;display:flex;flex-direction:column;border-radius:4px}.luna-modal-body.luna-modal-no-title{position:static}.luna-modal-body.luna-modal-no-title .luna-modal-title{display:none}.luna-modal-body.luna-modal-no-title .luna-modal-icon-close{color:#fff}.luna-modal-body.luna-modal-no-footer .luna-modal-footer{display:none}.luna-modal-hidden{display:none}.luna-modal-title{padding:16px;padding-right:36px;padding-bottom:0;font-size:18px;height:46px;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.luna-modal-content{padding:16px;overflow-y:auto}.luna-modal-footer{padding:12px}.luna-modal-button-group{display:flex;justify-content:flex-end}.luna-modal-button{padding:0 12px;background:#e9ecef;cursor:default;position:relative;-webkit-user-select:none;user-select:none;margin:0 4px;font-size:12px;border-radius:4px;overflow:hidden;height:28px;line-height:28px}.luna-modal-button:active::before{background:#1a73e8;content:'';opacity:.4;position:absolute;top:0;left:0;width:100%;height:100%;z-index:2}.luna-modal-button.luna-modal-secondary{color:#1a73e8;border:1px solid #ccc;background:#fff}.luna-modal-button.luna-modal-primary{color:#fff;background:#1a73e8}.luna-modal-input{box-sizing:border-box;outline:0;width:100%;font-size:16px;padding:6px 12px;border:1px solid #ccc;-webkit-appearance:none;-moz-appearance:none}.luna-modal-theme-dark{color:#a5a5a5}.luna-modal-theme-dark .luna-modal-body{background:#242424}",""]),b.exports=_},7591:function(b,_,d){(_=d(3645)(!1)).push([b.id,".luna-notification{position:fixed;top:0;left:0;width:100%;height:100%;padding:20px;box-sizing:border-box;pointer-events:none;display:flex;flex-direction:column;font-size:14px;font-family:Arial,Helvetica,sans-serif}.luna-notification-item{display:flex;box-shadow:0 2px 2px 0 rgba(0,0,0,.07),0 1px 5px 0 rgba(0,0,0,.1);padding:10px 16px;color:#333;background:#fff}.luna-notification-lower{margin-top:16px}.luna-notification-upper{margin-bottom:16px}.luna-notification-theme-dark .luna-notification-item{box-shadow:0 2px 2px 0 rgba(255,255,255,.07),0 1px 5px 0 rgba(255,255,255,.1);color:#a5a5a5;background:#242424}",""]),b.exports=_},4821:function(b,_,d){(_=d(3645)(!1)).push([b.id,"@font-face{font-family:luna-object-viewer-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAS8AAsAAAAAB7QAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAGEAAACMISgl+k9TLzIAAAFsAAAAPQAAAFZLxUkWY21hcAAAAawAAADWAAACdBU42qdnbHlmAAAChAAAAC4AAAAwabU7V2hlYWQAAAK0AAAALwAAADZzjr4faGhlYQAAAuQAAAAYAAAAJAFyANlobXR4AAAC/AAAABAAAABAAZAAAGxvY2EAAAMMAAAAEAAAACIAtACobWF4cAAAAxwAAAAfAAAAIAEbAA9uYW1lAAADPAAAASkAAAIWm5e+CnBvc3QAAARoAAAAUwAAAHZW8MNZeJxNjTsOQFAQRc/z/+sV1mABohKV0gZeJRJR2X9cT4RJZu7nFIMBMjoGvHGaF6rdngcNAc/c/O/Nvq2W5E1igdNE2zv1iGh1c5FQPlYXUlJRyxt9+/pUKadQa/AveGEGZQAAAHicY2BkkGScwMDKwMBQx9ADJGWgdAIDJ4MxAwMTAyszA1YQkOaawnCAQfcjE8MJIFcITDIwMIIIAFqDCGkAAAB4nM2STQ4BQRCFv54ZP8MwFhYW4gQcShBsSERi50BWDuFCcwJedddKRGKnOt8k9aanqudVAy0gF3NRQLgTsLhJDVHP6UW94Kp8zEhKwYIlG/YcOXHm0mTPp96aumLLwdUQ1fcIqmJrwpSZL+iqak5JmyE1Ayr1bdGhr/2ZPmp/qPQtuj/uJzqQl+pfDyypesQD6AT/ElV8PjyrMccT9rdLR3PUFBI227VTio1jbm6dodg5VnPvmAsHxzofHfmi+Sbs/pwdWcXFkWdNSNg9arIE2QufuSCyAAB4nGNgZACBlQzTGZgYGMyVxVc2O073AIpAxHsYloHFRc2dPZY2OTIwAACmEQesAAB4nGNgZGBgAOINe2b6x/PbfGXgZjgBFIjifLyvAUEDwUqGZUCSg4EJxAEAUn4LLAB4nGNgZGBgOMHAACdXMjAyoAIBADizAkx4nGNgAIITUEwGAABZUAGReJxjYAACHgYJ3BAAE94BXXicY2BkYGAQYGBmANEMDExAzAWEDAz/wXwGAApcASsAeJxlkD1uwkAUhMdgSAJSghQpKbNVCiKZn5IDQE9Bl8KYtTGyvdZ6QaLLCXKEHCGniHKCHChj82hgLT9/M2/e7soABviFh3p5uG1qvVq4oTpxm/Qg7JOfhTvo40W4S38o3MMbpsJ9POKdO3j+HZ0BSuEW7vEh3Kb/KeyTv4Q7eMK3cJf+j3APK/wJ9/HqDdPIFLEp3FIn+yy0Z3n+rrStUlOoSTA+WwtdaBs6vVHro6oOydS5WMXW5GrOrs4yo0prdjpywda5cjYaxeIHkcmRIoJBgbipDktoJNgjQwh71b3UK6YtKvq1VpggwPgqtWCqaJIhlcaGyTWOrBUOPG1K1zGt+FrO5KS5zGreJCMr/u+6t6MT0Q+wbaZKzDDiE1/kg+YO+T89EV6oAAAAeJxdxjkOgCAUANE/uOOGB+FQBIjaaEJIuL6FsfE1M6Lk9fXPoKioaWjp6BnQjEzMLKwYNtHepZhtuMs1vpvO/ch4HIlIxhK4KVyc7BwiD8nvDlkA') format('woff')}[class*=' luna-object-viewer-icon-'],[class^=luna-object-viewer-icon-]{display:inline-block;font-family:luna-object-viewer-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-object-viewer-icon-caret-down:before{content:'\\f101'}.luna-object-viewer-icon-caret-right:before{content:'\\f102'}.luna-object-viewer{overflow-x:auto;-webkit-overflow-scrolling:touch;overflow-y:hidden;cursor:default;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;line-height:1.2;min-height:100%;color:#333;list-style:none!important}.luna-object-viewer ul{list-style:none!important;padding:0!important;padding-left:12px!important;margin:0!important}.luna-object-viewer li{position:relative;white-space:nowrap;line-height:16px;min-height:16px}.luna-object-viewer>li>.luna-object-viewer-key{display:none}.luna-object-viewer span{position:static!important}.luna-object-viewer li .luna-object-viewer-collapsed~.luna-object-viewer-close:before{color:#999}.luna-object-viewer-array .luna-object-viewer-object .luna-object-viewer-key{display:inline}.luna-object-viewer-null{color:#5e5e5e}.luna-object-viewer-regexp,.luna-object-viewer-string{color:#c41a16}.luna-object-viewer-number{color:#1c00cf}.luna-object-viewer-boolean{color:#0d22aa}.luna-object-viewer-special{color:#5e5e5e}.luna-object-viewer-key,.luna-object-viewer-key-lighter{color:#881391}.luna-object-viewer-key-lighter{opacity:.6}.luna-object-viewer-key-special{color:#5e5e5e}.luna-object-viewer-collapsed .luna-object-viewer-icon,.luna-object-viewer-expanded .luna-object-viewer-icon{position:absolute!important;left:-12px;color:#727272;font-size:12px}.luna-object-viewer-icon-caret-right{top:0}.luna-object-viewer-icon-caret-down{top:1px}.luna-object-viewer-expanded>.luna-object-viewer-icon-caret-down{display:inline}.luna-object-viewer-expanded>.luna-object-viewer-icon-caret-right{display:none}.luna-object-viewer-collapsed>.luna-object-viewer-icon-caret-down{display:none}.luna-object-viewer-collapsed>.luna-object-viewer-icon-caret-right{display:inline}.luna-object-viewer-hidden~ul{display:none}.luna-object-viewer-theme-dark{color:#fff}.luna-object-viewer-theme-dark .luna-object-viewer-null,.luna-object-viewer-theme-dark .luna-object-viewer-special{color:#a1a1a1}.luna-object-viewer-theme-dark .luna-object-viewer-regexp,.luna-object-viewer-theme-dark .luna-object-viewer-string{color:#f28b54}.luna-object-viewer-theme-dark .luna-object-viewer-boolean,.luna-object-viewer-theme-dark .luna-object-viewer-number{color:#9980ff}.luna-object-viewer-theme-dark .luna-object-viewer-key,.luna-object-viewer-theme-dark .luna-object-viewer-key-lighter{color:#5db0d7}",""]),b.exports=_},9819:function(b,_,d){(_=d(3645)(!1)).push([b.id,`.luna-setting{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;min-width:320px}.luna-setting.luna-setting-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-setting.luna-setting-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-setting .luna-setting-hidden,.luna-setting.luna-setting-hidden{display:none}.luna-setting .luna-setting-invisible,.luna-setting.luna-setting-invisible{visibility:hidden}.luna-setting *{box-sizing:border-box}.luna-setting-item.luna-setting-selected,.luna-setting-item:hover{background:#f3f3f3}.luna-setting-item.luna-setting-selected:focus{outline:1px solid #1a73e8}.luna-setting-item .luna-setting-title{line-height:1.4em;font-weight:600}.luna-setting-item .luna-setting-description{line-height:1.4em}.luna-setting-item .luna-setting-description *{margin:0}.luna-setting-item .luna-setting-description strong{font-weight:600}.luna-setting-item .luna-setting-description a{background-color:transparent;color:#0969da;text-decoration:none}.luna-setting-item .luna-setting-control,.luna-setting-item .luna-setting-description{font-size:12px}.luna-setting-item .luna-setting-description{margin-bottom:8px}.luna-setting-item .luna-setting-control{display:flex;align-items:center}.luna-setting-item-button,.luna-setting-item-checkbox,.luna-setting-item-input,.luna-setting-item-number,.luna-setting-item-select,.luna-setting-item-title{padding:10px}.luna-setting-item-title{font-size:18px;font-weight:600}.luna-setting-item-input input{-webkit-tap-highlight-color:transparent;color:#333;-webkit-appearance:none;appearance:none;border:1px solid #ccc;outline:0;padding:2px 8px;border-radius:0;font-size:14px;background:#fff;width:100%}.luna-setting-item-number input[type=number]{-webkit-tap-highlight-color:transparent;color:#333;-webkit-appearance:none;appearance:none;border:1px solid #ccc;outline:0;padding:2px 8px;border-radius:0;font-size:14px;background:#fff;width:200px;padding:2px}.luna-setting-item-number .luna-setting-range-container{flex:2;position:relative;top:1px}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track{height:4px;width:100%;padding:0 10px;position:absolute;left:0;top:4px}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar{background:#ccc;border-radius:2px;overflow:hidden;width:100%;height:4px}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar .luna-setting-range-track-progress{height:100%;background:#1a73e8;width:50%}.luna-setting-item-number .luna-setting-range-container input{-webkit-appearance:none;background:0 0;height:4px;width:100%;position:relative;top:-3px;margin:0 auto;outline:0;border-radius:2px}.luna-setting-item-number .luna-setting-range-container input::-webkit-slider-thumb{-webkit-appearance:none;position:relative;top:0;z-index:1;width:16px;border:none;height:16px;border-radius:10px;border:1px solid #ccc;background:radial-gradient(circle at center,#eee 0,#eee 15%,#fff 22%,#fff 100%)}.luna-setting-item-checkbox input{-webkit-appearance:none;appearance:none;width:14px;height:14px;border:1px solid #ccc;border-radius:0;position:relative;outline:0;margin-left:0;margin-right:8px;transition:background-color .1s;align-self:flex-start;flex-shrink:0}.luna-setting-item-checkbox input:checked{background-color:#1a73e8;border-color:#1a73e8}.luna-setting-item-checkbox input:checked:after{content:"";width:100%;height:100%;position:absolute;left:0;top:0;background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMwMHB4JyB3aWR0aD0nMzAwcHgnICBmaWxsPSIjZmZmZmZmIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgdmVyc2lvbj0iMS4xIiB4PSIwcHgiIHk9IjBweCI+PHRpdGxlPmljb25fYnlfUG9zaGx5YWtvdjEwPC90aXRsZT48ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz48ZyBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyBmaWxsPSIjZmZmZmZmIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNi4wMDAwMDAsIDI2LjAwMDAwMCkiPjxwYXRoIGQ9Ik0xNy45OTk5ODc4LDMyLjQgTDEwLjk5OTk4NzgsMjUuNCBDMTAuMjI2Nzg5MSwyNC42MjY4MDE0IDguOTczMTg2NDQsMjQuNjI2ODAxNCA4LjE5OTk4Nzc5LDI1LjQgTDguMTk5OTg3NzksMjUuNCBDNy40MjY3ODkxNCwyNi4xNzMxOTg2IDcuNDI2Nzg5MTQsMjcuNDI2ODAxNCA4LjE5OTk4Nzc5LDI4LjIgTDE2LjU4NTc3NDIsMzYuNTg1Nzg2NCBDMTcuMzY2ODIyOCwzNy4zNjY4MzUgMTguNjMzMTUyOCwzNy4zNjY4MzUgMTkuNDE0MjAxNCwzNi41ODU3ODY0IEw0MC41OTk5ODc4LDE1LjQgQzQxLjM3MzE4NjQsMTQuNjI2ODAxNCA0MS4zNzMxODY0LDEzLjM3MzE5ODYgNDAuNTk5OTg3OCwxMi42IEw0MC41OTk5ODc4LDEyLjYgQzM5LjgyNjc4OTEsMTEuODI2ODAxNCAzOC41NzMxODY0LDExLjgyNjgwMTQgMzcuNzk5OTg3OCwxMi42IEwxNy45OTk5ODc4LDMyLjQgWiI+PC9wYXRoPjwvZz48L2c+PC9nPjwvc3ZnPg==);background-size:30px;background-repeat:no-repeat;background-position:center}.luna-setting-item-checkbox label{-webkit-tap-highlight-color:transparent}.luna-setting-item-checkbox label *{margin:0}.luna-setting-item-select .luna-setting-select{position:relative}.luna-setting-item-select .luna-setting-select select{margin:0;font-size:14px;background:#fff;-webkit-appearance:none;appearance:none;border:1px solid #ccc;padding:2px 8px;padding-right:18px;outline:0;color:#333;border-radius:0;-webkit-tap-highlight-color:transparent}.luna-setting-item-select .luna-setting-select:after{content:'';width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #333;position:absolute;top:0;bottom:0;right:6px;margin:auto;pointer-events:none}.luna-setting-item-select .luna-setting-select select{width:300px}.luna-setting-item-button button{-webkit-tap-highlight-color:transparent;background:#fff;border:1px solid #ccc;padding:2px 8px;color:#1a73e8;font-size:14px;border-radius:2px}.luna-setting-item-button button:active,.luna-setting-item-button button:hover{background:#f3f3f3}.luna-setting-item-button button:active{border:1px solid #1a73e8}.luna-setting-item-separator{border-bottom:1px solid #ccc}.luna-setting-theme-dark{color-scheme:dark;color:#a5a5a5;background:#242424}.luna-setting-theme-dark .luna-setting-item.luna-setting-selected,.luna-setting-theme-dark .luna-setting-item:hover{background:#292a2d}.luna-setting-theme-dark .luna-setting-item .luna-setting-description a{background-color:transparent;color:#58a6ff}.luna-setting-theme-dark .luna-setting-item-separator{border-color:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-input input{background:#3d3d3d;border-color:#3d3d3d;color:#a5a5a5}.luna-setting-theme-dark .luna-setting-item-checkbox input{border-color:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-select .luna-setting-select select{color:#a5a5a5;border-color:#3d3d3d;background:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-select .luna-setting-select:after{border-top-color:#a5a5a5}.luna-setting-theme-dark .luna-setting-item-button button{background:#242424;border-color:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-button button:active,.luna-setting-theme-dark .luna-setting-item-button button:hover{background:#292a2d}.luna-setting-theme-dark .luna-setting-item-button button:active{border:1px solid #1a73e8}.luna-setting-theme-dark .luna-setting-item-number input[type=number]{background:#3d3d3d;border-color:#3d3d3d;color:#a5a5a5}.luna-setting-theme-dark .luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar{background:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-number .luna-setting-range-container input::-webkit-slider-thumb{border-color:#3d3d3d;background:radial-gradient(circle at center,#aaa 0,#aaa 15%,#ccc 22%,#ccc 100%)}`,""]),b.exports=_},2156:function(b,_,d){(_=d(3645)(!1)).push([b.id,".luna-tab{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;position:relative;overflow:hidden;width:100%}.luna-tab.luna-tab-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-tab.luna-tab-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-tab .luna-tab-hidden,.luna-tab.luna-tab-hidden{display:none}.luna-tab .luna-tab-invisible,.luna-tab.luna-tab-invisible{visibility:hidden}.luna-tab *{box-sizing:border-box}.luna-tab.luna-tab-theme-dark{color:#a5a5a5;background-color:#242424}.luna-tab-tabs-container{border-bottom:1px solid #ccc}.luna-tab-tabs{overflow-x:auto;-webkit-overflow-scrolling:touch;overflow-y:hidden;width:100%;height:100%;font-size:0;white-space:nowrap}.luna-tab-tabs::-webkit-scrollbar{display:none;width:0;height:0}.luna-tab-item{cursor:pointer;display:inline-block;padding:0 10px;font-size:12px;text-align:center;text-transform:capitalize}.luna-tab-item:hover{background:#f3f3f3}.luna-tab-slider{transition:left .3s,width .3s;height:1px;background:#1a73e8;position:absolute;bottom:0;left:0}",""]),b.exports=_},5777:function(b,_,d){(_=d(3645)(!1)).push([b.id,"@font-face{font-family:luna-text-viewer-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAS0AAsAAAAAB2QAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAFQAAAB0INElr09TLzIAAAFcAAAAPQAAAFZL+0klY21hcAAAAZwAAACfAAACEAEewxRnbHlmAAACPAAAAIYAAACkNSDggmhlYWQAAALEAAAALgAAADZzrb4oaGhlYQAAAvQAAAAWAAAAJAGRANNobXR4AAADDAAAABAAAAAoAZAAAGxvY2EAAAMcAAAAEAAAABYBWgFIbWF4cAAAAywAAAAdAAAAIAEXADtuYW1lAAADTAAAASkAAAIWm5e+CnBvc3QAAAR4AAAAOwAAAFJIWdOleJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBWAdNMDGwMQkAWK1CGlYEZyGMCstiBMpxAUUYGZgDbGgXDeJxjYGTQYJzAwMrAwFDH0AMkZaB0AgMngzEDAxMDKzMDVhCQ5prCcIAh+SMTwwkgVwhMMjAwgggAY84IrgAAAHicvZFLCsMwDERHzsdJ6aL0HD1VQiDQRbIN9Axd9aI+QTpjq5Bdd5F4Bo1lybIBNAAq8iA1YB8YZG+qlvUKl6zXGBjf6MofMWHGEyu2FPb9oCxULCtHs3yy+J2urg1rtojo0HM/MKnFGabOGlbdYvdT+1N6/7drXl8e6Vajo3efHP3b7HAUvntBMy1OJKujMTeHNZMV9McpFBC+tLgY4QB4nGNgZACBEwzrGdgZGOwZxdnVDdXNPfKEGlhchO0KhZtZ3IQYmMFq1jCsZpBi0GLQY2AwNzGzZjQSk2UUYdNmVFID8UyVRUXYlNRMlVGlTM1FjU3tmZkTmVhYmFRBhHwoCyuzKgtTIjMzWJg3ZClIGMRlZQmVB7GhMixM0aGhQIsB52sTqgAAeJxjYGRgYADi2JNxkvH8Nl8ZuBlOAAWiOB/va0DQQHCCYT2Q5GBgAnEANJ0KnQAAeJxjYGRgYDjBwIBEMjKgAi4AOvoCZQAAeJxjYACCE1CMBwAAM7gBkXicY2AAAiGGIFQIABXIAqN4nGNgZGBg4GLQZ2BmAAEmMI8LSP4H8xkADjQBUwAAAHicZZA9bsJAFITHYEgCUoIUKSmzVQoimZ+SA0BPQZfCmLUxsr3WekGiywlyhBwhp4hyghwoY/NoYC0/fzNv3u7KAAb4hYd6ebhtar1auKE6cZv0IOyTn4U76ONFuEt/KNzDG6bCfTzinTt4/h2dAUrhFu7xIdym/ynsk7+EO3jCt3CX/o9wDyv8Cffx6g3TyBSxKdxSJ/sstGd5/q60rVJTqEkwPlsLXWgbOr1R66OqDsnUuVjF1uRqzq7OMqNKa3Y6csHWuXI2GsXiB5HJkSKCQYG4qQ5LaCTYI0MIe9W91CumLSr6tVaYIMD4KrVgqmiSIZXGhsk1jqwVDjxtStcxrfhazuSkucxq3iQjK/7vurejE9EPsG2mSsww4hNf5IPmDvk/PRFeqAAAAHicXcU7CsAgFEXBe4x/l/kQBAtt3X0KSZNpRk7X91/F8eAJRBKZQqUp2Og2va19MAadyWJzpBd4kgcWAA==') format('woff')}[class*=' luna-text-viewer-icon-'],[class^=luna-text-viewer-icon-]{display:inline-block;font-family:luna-text-viewer-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-text-viewer-icon-check:before{content:'\\f101'}.luna-text-viewer-icon-copy:before{content:'\\f102'}.luna-text-viewer{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;user-select:none;font-size:14px;padding:0;unicode-bidi:embed;position:relative;overflow:auto;border:1px solid #ccc}.luna-text-viewer.luna-text-viewer-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-text-viewer.luna-text-viewer-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-text-viewer .luna-text-viewer-hidden,.luna-text-viewer.luna-text-viewer-hidden{display:none}.luna-text-viewer .luna-text-viewer-invisible,.luna-text-viewer.luna-text-viewer-invisible{visibility:hidden}.luna-text-viewer *{box-sizing:border-box}.luna-text-viewer.luna-text-viewer-theme-dark{color:#d9d9d9;border-color:#3d3d3d;background:#242424}.luna-text-viewer:hover .luna-text-viewer-copy{opacity:1}.luna-text-viewer-table{display:table}.luna-text-viewer-table .luna-text-viewer-line-number,.luna-text-viewer-table .luna-text-viewer-line-text{padding:0}.luna-text-viewer-table-row{display:table-row}.luna-text-viewer-line-number{display:table-cell;padding:0 3px 0 8px!important;text-align:right;vertical-align:top;-webkit-user-select:none;user-select:none;border-right:1px solid #ccc}.luna-text-viewer-line-text{display:table-cell;padding-left:4px!important;-webkit-user-select:text;user-select:text}.luna-text-viewer-copy{background:#fff;opacity:0;position:absolute;right:5px;top:5px;border:1px solid #ccc;border-radius:4px;width:25px;height:25px;text-align:center;line-height:25px;cursor:pointer;transition:opacity .3s,top .3s}.luna-text-viewer-copy .luna-text-viewer-icon-check{color:#188037}.luna-text-viewer-text{padding:4px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;box-sizing:border-box;white-space:pre;display:block}.luna-text-viewer-text.luna-text-viewer-line-numbers{padding:0}.luna-text-viewer-text.luna-text-viewer-wrap-long-lines{white-space:pre-wrap}.luna-text-viewer-text.luna-text-viewer-wrap-long-lines .luna-text-viewer-line-text{word-break:break-all}.luna-text-viewer-theme-dark{color-scheme:dark}.luna-text-viewer-theme-dark .luna-text-viewer-copy,.luna-text-viewer-theme-dark .luna-text-viewer-line-number{border-color:#3d3d3d}.luna-text-viewer-theme-dark .luna-text-viewer-copy .luna-text-viewer-icon-check{color:#81c995}.luna-text-viewer-theme-dark .luna-text-viewer-copy{background-color:#242424}",""]),b.exports=_},5357:function(b,_,d){(_=d(3645)(!1)).push([b.id,"@font-face{font-family:eruda-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAA6UAAsAAAAAGvAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAARoAAAHeLjoycE9TLzIAAAIkAAAAPwAAAFZWm1KoY21hcAAAAmQAAAFdAAADwhPu1O9nbHlmAAADxAAAB+wAAA9I7RPQpGhlYWQAAAuwAAAAMQAAADZ26MSyaGhlYQAAC+QAAAAdAAAAJAgEBC9obXR4AAAMBAAAAB0AAACwXAv//GxvY2EAAAwkAAAAOwAAAFpuVmoybWF4cAAADGAAAAAfAAAAIAE9AQ1uYW1lAAAMgAAAASkAAAIWm5e+CnBvc3QAAA2sAAAA5QAAAU4VMmUJeJxNkD1Ow0AQhb9NHGISCH9RiB0cErCNHRrqFFSIyqKiQHSpEFJERUnBCTgPZ+AEHIe34wDe1f69efPezOKAHldc07q5re4ZrFevL8QE1MPHm3e3fn5aEf6+FAvsDHHuTUoxd7zzwSdffLulq9wjLbaYau8TacZMONE554xzZsrtNfBEzFOhbSmOyTmga0ikvRR/37RSsSMyDukYPjWdgGOtsSK55Y/k0Bf/ksK0MrbFr70idsVZKNPnDcSay3umd2TISCvWTJSxI78lFQ/C+qbv/Zo9tNXDP55ZL7k0Q90u5F5XX0qrYx16btccCtXg/ULrKzGFuqY9rUTMhf3fkCNj+MxUnsM/frr5Qx+ZbH4vVQ0F5Q/ZQBvxAAB4nGNgZJJgnMDAysDA1Mt0hoGBoR9CM75mMGLkAIoysDIzYAUBaa4pDAcYdD+KsIC4MSxMDIxAGoQZALgnCOUAeJy1011SGlEQhuF3BFHxD5UUyr8gIJIsiiKJsSqJlrHKsJssKFeuxF6Bfj3dF96aqhzqoZnDzJyG8w2wCVTko1SheKLAx1/NFuV8hXo5X+WPjht6+fmfWHLDHQ+srfnykjMrvnPPoxXlzNtRlFc26HLBZblal1N9ntBnwIgx5/SYMaWt78+YM6TDgitduaEVq+q0xhbb7KifPQ441N2OOOaEJh9oaYka7xvdd57vQz1P+oPR+Bx6s2lbrc6H0Flc/cO9/sfY87fiOY8u8X0J/muX6VRW6UI+p4l8SX35mgZynUbyLY3lJukf0e6HnvxIM/mZpnKb2nKXvM/7dCa/0lwe0lAeU0d+p4Wsk3bBiuDptY2A10rw9Fo1eOJtM/iTYLWA162A1+2A152A13rwJ8R2g++AJaUU2w/KK3YQlFzsMCjDWCMozdhRUK6x46CEYydBWceagdYraihRngAAAHic7RdbbBxX9Z57Z2d2d2ZndryzM7ve9ax3NztjO/bann0lTuW16zoBJSWJ7Zg83NiUJCQ1Ik2ikKQJNC9FFQqVEG0RVLQoSpEKH2klqgpEIyWAUMRTNBJC/PUDhETgiwhQd8y5s1s7oqr624/srO6ce89zzjn3nHsJEPwxyn5GVEJKBTcCdc80pAiYhkjfNWL+NnhLdTKqfxVOqJlxFX6E84wb86/6X4+5GRLw0/vsOgkREoFGBFx62P/uFviBP78FWrC02d/r79vcpmMl+k2uBwwJxIILTrVeyXsmK8krRLb5YGqUaCb9ksYnMuBqMtnRcY6V1nidml6texaY9CxSRm3TtKNIjcxrUjhEWKD3OnuNJEgPKSG/I6nUpo06fxwXH8lmEoyDFQIVyrROs7254z990rj0u2PLez47WqG1yu69V7ZdfDxU9He4C6P+v+HN+vlnD9Uou0Zp+NnfvveT/XL0kbGFxT/u37tx7CTdeuGlKfiibcMr/gt9qfyu05e4+YEdb7A3iEVG0ArdEAvDIPHBqTbB7bgCDA0sdH0x3/nEHDT4YFJi9siz74iaOBkK3ZyRTRXwE+FGG15BeA0Pf14hqinP3AyFJnHhnVm5xzThmNSBNFjDdvwzw75GFJIlvWhZ1UHlYlI3zIputa3CSduiRF7P09e9on+jODpanPOKsJMDOPV2wU7/BqsVPcQ2ix41X/8ARKpbfhPVtHNgik1hXAhIlmQ1rIbbcCVIzN/7+65794KRTc13IBwJXVkhRACBkAEyhVyiBqJbRn81YRjKUDfRN9xHpoVBt0xJRZ+iS4ehZFg2utJrjCO2GrAUAizcj+c3pXpiXVQwThZmdNrbrx+hAjtjbhSF5FPyKSsqmGraWKYCbfl97vMLi79fXHje7XsAhBsoo0P35fyMPpCj+lM0FDptJexuYzl82upRufxlKgrTh/+fOwBXc+Jt9jZJBTnxUbH/yGT5j4jRT2pB9O1oO/oi3FyD2/ggU14LY/j5RuHTJIZf5LR/WVmbaB2CT6xdQa4KwJZIHPfyMFoWRNSmQZDLlJVpdRw8GwwVWEGlScOGijdOq2VKyfHDB7/d1/+d37zXeT/dXG42l7/Kh2a20pd0JpxsxTVNt8KWyuu/94Ujr+7uvFpvQXP5PCfEAU4l+6pZZ9Ix3eqGqmsGrvok28V+zi6TKEYyi/Udt0MNavkkJC1e+vQA1tGqil6EV93j/UBbY0AXm/2Vku+z53x/8MDT5879U9Nb4Cqq/yf/WEjReiECfS9+C2f/6umFS/77q3t7kp0nGu8DTrFTQrwG1KtsoHVXlnXL0qMKHTRpGbaJlt7aoVsSbO3aQFb5L7MTJElIwrBMvnWxQteCEl2QREn8Ci/Ef9i7u1IT6tX5Pb/ePV+rUXKEL3DMkUPzc6OeNzo3/6C8K2QdrzVlKAYyHhBcxGgUyoCRqXimJZXYwYO1y1tWxQWKLkyfunpqevrU5vJs4SQ02JUDw94qMlC6maORJpc9AR/Sm7C4cK7S4MoL/FNqFYy+Nw5VbpIoWaWXP0atf+fj1Lb36w12h6SxShIouuNQw+TCVDNsWvHqDStpNUoFnobUs6mhUvpmn+r2VxaeuXjmCc974vSjm44OxfytrXeH5iaKxYm5fXMThcLEHLwcGzq66dHTnObMxWcWKv2u2tfa1ipMzu7rEM5OFshqLfsFu4R9thszrVjAUoHFgH98DxRreb3CK74rMTh/bWmJTq9Pd0nCZOvsbfrYrVsTty9cOPc5Or2U6spq8rXbrbNAL9yeuHWLYuEnEiErK0JIAPIN8kNyl9wn/yUt7mioN6GGTi1jDQrypNPRxQ+8zREatnUsVtgbcDHAaZA0rc6TxOIWLPFVXLDbvYRT45CDSnBOqFhee4aTcWw8gapGnS+Z+EYrOuqh825jrY5WSVwPDSewh/OWqYueCJQFEjhELTdgcdEODjUCo5yge7lcAlJxRSgceyZyu5LFfqnaeldKlsyunnK6N6LEaUSqTSndgpZK7jC7NZaR7LGcGhXwgMNC+WFt0MxEomZcECQ9EY4JkgAQDilSNKnGuxXJ0u2hdG9YUZkiZcfWpaOWkUv0G6IaCseVVH81o0dEEClKGokassX0hKSk44PxBGOS4E8cmNk+OMSY5+2cXfz8zI4hrG4jI9tnFpW/hqKx7PCnH1O7wpFkqeANT4IUVhopPTUwnNJxzSlUzLASV+4YfUIkpoQFTYvoMUFkJgtJ/Z6VEIyymx4usdCW5CuDc9s+dZDm6GeiejTl1jN6VFKUdMHMlUIWzaQEOdyrKHIsL0VZJB0TE1rUlLvCo71yPKya3dW+ONBQRBajUdPuKoXFsBAOiYoUdx7JtSXlU3ZJNAW1O+4ktBCFqBjLJhMW97JgyonISE5kVIJQJJ6tO6nueCJj1TV/D6uMzu06tH/H44NlRr3RnbNPLu7cXh75sWOklURzi5ZI9dgqG6tuEAf0bkWX0/0j6S6+RjfaYiQsbkKHhuNdms6kUExWZNGSlJgzkjIGjPK61KjLxOvGc/1/27r9KOQe7omHe+LhnvjQnmArLTyHMYHiPbGbFLEL4Q1BxOsiHrfy2HIBz67BXQbPsVbB4TNDZP/wF4x63cAxUl/PRtbXI61f2QM2/iuZUqleKr3ABp1Mxnn/rjvpOJN0b9K2k/73+Xi/VHOcGl4qyf8AzjWNo3icY2BkYGAA4uhnXafj+W2+MnCzgASiOB/va4DR///+/8/CysIElOBgAJEMAHS2DWQAAAB4nGNgZGBgYQABFtb/f///ZWFlYGRABToAW+YEPQAAAHicY2BgYGAhiP//J6wGCbNCMcP/vwxUBgDl4QRhAAAAeJxjYAACBQYThiCGAoYtjAyMZowBjPuYuJjCmBYxvWNWYXZhzmFewfyIRYUliPUOexr7EmIhAF3rF0sAeJxjYGRgYNBhZGRgZwABJiDmAkIGhv9gPgMADcIBTAB4nGWQPW7CQBSEx2BIAlKCFCkps1UKIpmfkgNAT0GXwpi1MbK91npBossJcoQcIaeIcoIcKGPzaGAtP38zb97uygAG+IWHenm4bWq9WrihOnGb9CDsk5+FO+jjRbhLfyjcwxumwn084p07eP4dnQFK4Rbu8SHcpv8p7JO/hDt4wrdwl/6PcA8r/An38eoN08gUsSncUif7LLRnef6utK1SU6hJMD5bC11oGzq9Ueujqg7J1LlYxdbkas6uzjKjSmt2OnLB1rlyNhrF4geRyZEigkGBuKkOS2gk2CNDCHvVvdQrpi0q+rVWmCDA+Cq1YKpokiGVxobJNY6sFQ48bUrXMa34Ws7kpLnMat4kIyv+77q3oxPRD7BtpkrMMOITX+SD5g75Pz0RXqgAAAB4nG2MyW6DQBiD+RKYpKT7vqf7Gg55pNHwEyJNGDSMRHj70nKtD7Zly45G0YA0+h8LRoyJSVBMmLJDyoxd9tjngEOOOOaEU84454JLrrjmhlvuuGfOA4888cwLr7zxzgeffPHNgixKtfeuzawUYTZYv16VITXaS8hy11azwf7FibGi/dS4Te2laWLj6k7lYiVIIv3aK9nWusqng2TLsXR900m2VMXaBvFxbXWnvBjn84mXor8pk54kqKa/NmUvVkyIg3NW/VK2jFvtKzQeR0uGRSgIrFlRYsip2FDT0LGNoh/MCkh9AAAA') format('woff')}[class*=' _icon-'],[class^='_icon-']{display:inline-block;font-family:eruda-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}._icon-arrow-left:before{content:'\\f101'}._icon-arrow-right:before{content:'\\f102'}._icon-caret-down:before{content:'\\f103'}._icon-caret-right:before{content:'\\f104'}._icon-clear:before{content:'\\f105'}._icon-compress:before{content:'\\f106'}._icon-copy:before{content:'\\f107'}._icon-delete:before{content:'\\f108'}._icon-error:before{content:'\\f109'}._icon-expand:before{content:'\\f10a'}._icon-eye:before{content:'\\f10b'}._icon-filter:before{content:'\\f10c'}._icon-play:before{content:'\\f10d'}._icon-record:before{content:'\\f10e'}._icon-refresh:before{content:'\\f10f'}._icon-reset:before{content:'\\f110'}._icon-search:before{content:'\\f111'}._icon-select:before{content:'\\f112'}._icon-tool:before{content:'\\f113'}._icon-warn:before{content:'\\f114'}",""]),b.exports=_},3645:function(b){b.exports=function(_){var d=[];return d.toString=function(){return this.map(function(k){var j=function($,et){var tt=$[1]||"",rt=$[3];if(!rt)return tt;if(et&&typeof btoa=="function"){var nt=(at=rt,it=btoa(unescape(encodeURIComponent(JSON.stringify(at)))),dt="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(it),"/*# ".concat(dt," */")),ot=rt.sources.map(function(ut){return"/*# sourceURL=".concat(rt.sourceRoot||"").concat(ut," */")});return[tt].concat(ot).concat([nt]).join(` `)}var at,it,dt;return[tt].join(` `)}(k,_);return k[2]?"@media ".concat(k[2]," {").concat(j,"}"):j}).join("")},d.i=function(k,j,$){typeof k=="string"&&(k=[[null,k,""]]);var et={};if($)for(var tt=0;tt-1&&at[nt].splice(it,1),this}},once:function(nt,ot){return this.on(nt,tt(ot)),this},emit:function(nt){var ot=this;if(j(this._events,nt)){var at=et(arguments,1),it=rt(this._events[nt]);return $(it,function(dt){return dt.apply(ot,at)},this),this}},removeAllListeners:function(nt){return nt?delete this._events[nt]:this._events={},this}},{mixin:function(nt){$(["on","off","once","emit","removeAllListeners"],function(ot){nt[ot]=_.prototype[ot]}),nt._events=nt._events||{}}}),b.exports=_},9640:function(b,_,d){var k=d(7496),j=d(4454),$=d(6472),et=d(3783),tt=d(2533);_=k({initialize:function(rt){$(rt)?(this.size=rt.length,et(rt,function(nt,ot){this[nt]=ot},this)):(this.size=tt(rt).length,et(rt,function(nt,ot){this[ot]=nt},this)),j(this)}}),b.exports=_},125:function(b,_,d){var k=d(5128),j=d(615),$=d(8887),et=d(4400),tt=d(4193),rt=d(5166),nt=j("local");_=k.extend({initialize:function(ot,at){this._name=ot,at=at||{};var it=nt.getItem(ot);try{it=JSON.parse(it)}catch{it={}}rt(it)||(it={}),at=tt(it,at),this.callSuper(k,"initialize",[at])},save:function(ot){if($(ot))return nt.removeItem(this._name);nt.setItem(this._name,et(ot))}}),b.exports=_},4989:function(b,_,d){var k=d(1443),j=d(9640),$=d(1352),et=d(1286),tt=d(4675),rt=d(6768),nt=d(3990);_=k.extend({initialize:function(ot,at){this.name=ot,this.setLevel(et(at)?_.level.DEBUG:at),this.callSuper(k,"initialize",arguments)},setLevel:function(ot){return rt(ot)?((ot=_.level[ot.toUpperCase()])&&(this._level=ot),this):(nt(ot)&&(this._level=ot),this)},getLevel:function(){return this._level},formatter:function(ot,at){return at},trace:function(){return this._log("trace",arguments)},debug:function(){return this._log("debug",arguments)},info:function(){return this._log("info",arguments)},warn:function(){return this._log("warn",arguments)},error:function(){return this._log("error",arguments)},_log:function(ot,at){return(at=$(at)).length===0?this:(this.emit("all",ot,tt(at)),_.level[ot.toUpperCase()]-1&&this._listeners.splice(rt,1)},rmAllListeners:function(){this._listeners=[]},emit:function(){var tt=this,rt=et(arguments),nt=j(this._listeners);$(nt,function(ot){return ot.apply(tt,rt)},this)}},{mixin:function(tt){$(["addListener","rmListener","emit","rmAllListeners"],function(rt){tt[rt]=_.prototype[rt]}),tt._listeners=tt._listeners||[]}}),b.exports=_},9001:function(b,_,d){var k=d(7496),j=d(1527);_=k({initialize:function(){this.clear()},clear:function(){this._items=[],this.size=0},push:function($){return this._items.push($),++this.size},pop:function(){if(this.size)return this.size--,this._items.pop()},peek:function(){return this._items[this.size-1]},forEach:function($,et){et=arguments.length>1?et:this;for(var tt=this._items,rt=this.size-1,nt=0;rt>=0;rt--,nt++)$.call(et,tt[rt],nt,this)},toArr:function(){return j(this._items)}}),b.exports=_},5128:function(b,_,d){var k=d(1443),j=d(6768),$=d(5166),et=d(3783),tt=d(1352);_=k.extend({initialize:function(rt){this.callSuper(k,"initialize",arguments),this._data=rt||{},this.save(this._data)},set:function(rt,nt){var ot;j(rt)?(ot={})[rt]=nt:$(rt)&&(ot=rt);var at=this;et(ot,function(it,dt){var ut=at._data[dt];at._data[dt]=it,at.emit("change",dt,it,ut)}),this.save(this._data)},get:function(rt){var nt=this._data;if(j(rt))return nt[rt];var ot={};return et(rt,function(at){ot[at]=nt[at]}),ot},remove:function(rt){rt=tt(rt);var nt=this._data;et(rt,function(ot){delete nt[ot]}),this.save(nt)},clear:function(){this._data={},this.save(this._data)},each:function(rt){et(this._data,rt)},save:function(rt){this._data=rt}}),b.exports=_},6334:function(b,_,d){var k=d(7496),j=d(6329),$=d(4331),et=d(1745),tt=d(8887),rt=d(3783),nt=d(6472),ot=d(1352),at=d(2727),it=d(5166),dt=d(3367);_=k({className:"Url",initialize:function(st){!st&&at&&(st=window.location.href),j(this,_.parse(st||""))},setQuery:function(st,ct){var pt=this.query;return it(st)?rt(st,function(lt,wt){pt[wt]=dt(lt)}):pt[st]=dt(ct),this},rmQuery:function(st){var ct=this.query;return nt(st)||(st=ot(st)),rt(st,function(pt){delete ct[pt]}),this},toString:function(){return _.stringify(this)}},{parse:function(st){var ct={protocol:"",auth:"",hostname:"",hash:"",query:{},port:"",pathname:"",slashes:!1},pt=$(st),lt=!1,wt=pt.match(ut);if(wt&&(wt=wt[0],ct.protocol=wt.toLowerCase(),pt=pt.substr(wt.length)),wt&&(lt=pt.substr(0,2)==="//")&&(pt=pt.slice(2),ct.slashes=!0),lt){for(var yt=pt,vt=-1,St=0,xt=ft.length;St-1&&(yt=pt.slice(0,vt),pt=pt.slice(vt));var At=yt.lastIndexOf("@");At!==-1&&(ct.auth=decodeURIComponent(yt.slice(0,At)),yt=yt.slice(At+1)),ct.hostname=yt;var _t=yt.match(ht);_t&&((_t=_t[0])!==":"&&(ct.port=_t.substr(1)),ct.hostname=yt.substr(0,yt.length-_t.length))}var Ct=pt.indexOf("#");Ct!==-1&&(ct.hash=pt.substr(Ct),pt=pt.slice(0,Ct));var Mt=pt.indexOf("?");return Mt!==-1&&(ct.query=et.parse(pt.substr(Mt+1)),pt=pt.slice(0,Mt)),ct.pathname=pt||"/",ct},stringify:function(st){var ct=st.protocol+(st.slashes?"//":"")+(st.auth?encodeURIComponent(st.auth)+"@":"")+st.hostname+(st.port?":"+st.port:"")+st.pathname;return tt(st.query)||(ct+="?"+et.stringify(st.query)),st.hash&&(ct+=st.hash),ct}});var ut=/^([a-z0-9.+-]+:)/i,ht=/:[0-9]*$/,ft=["/","?","#"];b.exports=_},8991:function(b,_,d){var k=d(4777),j=d(1214),$=d(4193),et=d(5166),tt=d(1745);function rt(nt,ot,at,it){return k(ot)&&(it=at,at=ot,ot={}),{url:nt,data:ot,success:at,dataType:it}}(_=function(nt){$(nt,_.setting);var ot,at=nt.type,it=nt.url,dt=nt.data,ut=nt.dataType,ht=nt.success,ft=nt.error,st=nt.timeout,ct=nt.complete,pt=nt.xhr();return pt.onreadystatechange=function(){if(pt.readyState===4){var lt;clearTimeout(ot);var wt=pt.status;if(wt>=200&&wt<300||wt===304){lt=pt.responseText,ut==="xml"&&(lt=pt.responseXML);try{ut==="json"&&(lt=JSON.parse(lt))}catch{}ht(lt,pt)}else ft(pt);ct(pt)}},at==="GET"?(dt=tt.stringify(dt))&&(it+=it.indexOf("?")>-1?"&"+dt:"?"+dt):nt.contentType==="application/x-www-form-urlencoded"?et(dt)&&(dt=tt.stringify(dt)):nt.contentType==="application/json"&&et(dt)&&(dt=JSON.stringify(dt)),pt.open(at,it,!0),pt.setRequestHeader("Content-Type",nt.contentType),st>0&&(ot=setTimeout(function(){pt.onreadystatechange=j,pt.abort(),ft(pt,"timeout"),ct(pt)},st)),pt.send(at==="GET"?null:dt),pt}).setting={type:"GET",success:j,error:j,complete:j,dataType:"json",contentType:"application/x-www-form-urlencoded",data:{},xhr:function(){return new XMLHttpRequest},timeout:0},_.get=function(){return _(rt.apply(null,arguments))},_.post=function(){var nt=rt.apply(null,arguments);return nt.type="POST",_(nt)},b.exports=_},1116:function(b,_,d){var k=d(2533),j=d(415),$=d(42),et=Object.getOwnPropertyNames,tt=Object.getOwnPropertySymbols;_=function(rt){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ot=nt.prototype,at=ot===void 0||ot,it=nt.unenumerable,dt=it!==void 0&&it,ut=nt.symbol,ht=ut!==void 0&&ut,ft=[];if((dt||ht)&&et){var st=k;dt&&et&&(st=et);do ft=ft.concat(st(rt)),ht&&tt&&(ft=ft.concat(tt(rt)));while(at&&(rt=j(rt))&&rt!==Object.prototype);ft=$(ft)}else if(at)for(var ct in rt)ft.push(ct);else ft=k(rt);return ft},b.exports=_},7913:function(b,_,d){var k=d(3783),j=d(1286),$=d(4777);_=function(et,tt){j(tt)&&(tt=!0);var rt=$(tt),nt={};return k(et,function(ot){nt[ot]=rt?tt(ot):tt}),nt},b.exports=_},3901:function(b,_){_={encode:function(et){var tt,rt,nt=[],ot=et.length,at=ot%3;ot-=at;for(var it=0;it>18&63]+k[tt>>12&63]+k[tt>>6&63]+k[63&tt]));return ot=et.length,at===1?(rt=et[ot-1],nt.push(k[rt>>2]),nt.push(k[rt<<4&63]),nt.push("==")):at===2&&(rt=(et[ot-2]<<8)+et[ot-1],nt.push(k[rt>>10]),nt.push(k[rt>>4&63]),nt.push(k[rt<<2&63]),nt.push("=")),nt.join("")},decode:function(et){var tt=et.length,rt=0;et[tt-2]==="="?rt=2:et[tt-1]==="="&&(rt=1);var nt,ot,at,it,dt,ut,ht,ft=new Array(3*tt/4-rt);for(tt=rt>0?tt-4:tt,nt=0,ot=0;nt>16&255,ft[ot++]=st>>8&255,ft[ot++]=255&st}return rt===2?(ht=d[et.charCodeAt(nt)]<<2|d[et.charCodeAt(nt+1)]>>4,ft[ot++]=255&ht):rt===1&&(ht=d[et.charCodeAt(nt)]<<10|d[et.charCodeAt(nt+1)]<<4|d[et.charCodeAt(nt+2)]>>2,ft[ot++]=ht>>8&255,ft[ot++]=255&ht),ft}};for(var d=[],k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",j=0,$=k.length;j<$;j++)d[k.charCodeAt(j)]=j;b.exports=_},5637:function(b,_){_=function(d,k){var j;return function(){return--d>0&&(j=k.apply(this,arguments)),d<=1&&(k=null),j}},b.exports=_},7494:function(b,_,d){var k=d(8935);function j($,et){this[et]=$.replace(/\w/,function(tt){return tt.toUpperCase()})}_=function($){var et=k($),tt=et[0];return et.shift(),et.forEach(j,et),tt+=et.join("")},b.exports=_},2848:function(b,_,d){var k=d(6257),j=d(6472);_=function(tt,rt){if(j(tt))return tt;if(rt&&k(rt,tt))return[tt];var nt=[];return tt.replace($,function(ot,at,it,dt){nt.push(it?dt.replace(et,"$1"):at||ot)}),nt};var $=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/\\(\\)?/g;b.exports=_},996:function(b,_){_=function(d,k){var j=[];k=k||1;for(var $=0,et=Math.ceil(d.length/k);$et?et:j},b.exports=_},4675:function(b,_,d){var k=d(5166),j=d(6472),$=d(6329);_=function(et){return k(et)?j(et)?et.slice():$({},et):et},b.exports=_},550:function(b,_,d){var k=d(5166),j=d(4777),$=d(6472),et=d(8820);_=function(tt){return $(tt)?tt.map(function(rt){return _(rt)}):k(tt)&&!j(tt)?et(tt,function(rt){return _(rt)}):tt},b.exports=_},8099:function(b,_,d){var k=d(1352);_=function(){for(var j=k(arguments),$=[],et=0,tt=j.length;et-1:($(tt)||(tt=et(tt)),k(tt,rt)>=0)},b.exports=_},1792:function(b,_,d){var k=d(6768),j=d(3901),$=d(385),et=d(6472),tt=d(2349),rt=d(3085),nt=d(3063);(_=function(ot,at){var it;if(at=nt(at),k(ot))it=new Uint8Array(j.decode(ot));else if($(ot))ot=ot.slice(0),it=new Uint8Array(ot);else if(et(ot))it=new Uint8Array(ot);else if(rt(ot)==="uint8array")it=ot.slice(0);else if(tt(ot)){it=new Uint8Array(ot.length);for(var dt=0;dt0?"-":"+")+tt(100*Math.floor(Math.abs(bt)/60)+Math.abs(bt)%60,4),S:["th","st","nd","rd"][ct%10>3?0:(ct%100-ct%10!=10)*ct%10]};return dt.replace(rt,function(_t){return _t in At?At[_t]:_t.slice(1,_t.length-1)})};var tt=function(it){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return et($(it),dt,"0")},rt=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|"[^"]*"|'[^']*'/g,nt=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,ot=/\d/,at=/[^-+\dA-Z]/g;_.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},_.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},b.exports=_},6049:function(b,_){_=function(d,k,j){var $;return function(){var et=this,tt=arguments;j||clearTimeout($),j&&$||($=setTimeout(function(){$=null,d.apply(et,tt)},k))}},b.exports=_},1420:function(b,_,d){var k=d(3783),j=d(8166),$=d(2461),et=d(5742);function tt(nt){return+("0x"+nt)}_=function(nt){try{return decodeURIComponent(nt)}catch{var ot=nt.match(rt);return ot&&k(ot,function(it){nt=nt.replace(it,function(dt){dt=dt.split("%").slice(1);var ut=$(dt,tt);return dt=j.encode(ut),dt=et.decode(dt,!0),dt}(it))}),nt}};var rt=/(%[a-f0-9]{2})+/gi;b.exports=_},4193:function(b,_,d){_=d(4427)(d(1116),!0),b.exports=_},9803:function(b,_,d){var k=d(2848),j=d(6768),$=d(5166),et=d(3783);function tt(rt,nt,ot){for(var at=k(nt,rt),it=at.pop();nt=at.shift();)rt[nt]||(rt[nt]={}),rt=rt[nt];Object.defineProperty(rt,it,ot)}_=function(rt,nt,ot){return j(nt)?tt(rt,nt,ot):$(nt)&&et(nt,function(at,it){tt(rt,it,at)}),rt},b.exports=_},2443:function(b,_,d){var k=d(7496),j=d(6341);function $(){return!0}function et(){return!1}function tt(nt){var ot,at=this.events[nt.type],it=rt.call(this,nt,at);nt=new _.Event(nt);for(var dt,ut,ht=0;(ut=it[ht++])&&!nt.isPropagationStopped();)for(nt.curTarget=ut.el,dt=0;(ot=ut.handlers[dt++])&&!nt.isImmediatePropagationStopped();)ot.handler.apply(ut.el,[nt])===!1&&(nt.preventDefault(),nt.stopPropagation())}function rt(nt,ot){var at,it,dt,ut,ht=nt.target,ft=[],st=ot.delegateCount;if(ht.nodeType)for(;ht!==this;ht=ht.parentNode||this){for(it=[],ut=0;ut-1)return j(ot.substring(it+at.length,ot.indexOf(".",it)))}b.exports=_},6954:function(b,_,d){var k=d(2727);_=function(j){if(j=(j=j||(k?navigator.userAgent:"")).toLowerCase(),$("windows phone"))return"windows phone";if($("win"))return"windows";if($("android"))return"android";if($("ipad")||$("iphone")||$("ipod"))return"ios";if($("mac"))return"os x";if($("linux"))return"linux";function $(et){return j.indexOf(et)>-1}return"unknown"},b.exports=_},801:function(b,_,d){var k=d(1137),j=d(1225),$=d(5972),et=d(6341);_=k(function(tt,rt){return rt=j(rt),$(tt,function(nt){return!et(rt,nt)})}),b.exports=_},3783:function(b,_,d){var k=d(1369),j=d(2533),$=d(3955);_=function(et,tt,rt){var nt,ot;if(tt=$(tt,rt),k(et))for(nt=0,ot=et.length;nt=0&&d.indexOf(k,j)===j},b.exports=_},8901:function(b,_,d){var k=d(2533),j=(_=function(nt){return et.test(nt)?nt.replace(tt,rt):nt}).map={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},$="(?:"+k(j).join("|")+")",et=new RegExp($),tt=new RegExp($,"g"),rt=function(nt){return j[nt]};b.exports=_},4187:function(b,_,d){var k=d(3367);_=function($){return k($).replace(j,function(et){switch(et){case'"':case"'":case"\\":return"\\"+et;case` `:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029"}})};var j=/["'\\\n\r\u2028\u2029]/g;b.exports=_},2337:function(b,_){_=function(d){return d.replace(/\W/g,"\\$&")},b.exports=_},642:function(b,_){_=function(d){var k=document.createElement("style");return k.textContent=d,k.type="text/css",document.head.appendChild(k),k},b.exports=_},1672:function(b,_,d){var k=d(2838),j=d(1369),$=d(2533);_=function(et,tt,rt){tt=k(tt,rt);for(var nt=!j(et)&&$(et),ot=(nt||et).length,at=0;at[\]\u2100-\uFFFF(),]*/gi;b.exports=_},5972:function(b,_,d){var k=d(2838),j=d(3783);_=function($,et,tt){var rt=[];return et=k(et,tt),j($,function(nt,ot,at){et(nt,ot,at)&&rt.push(nt)}),rt},b.exports=_},2244:function(b,_,d){var k=d(2267),j=d(4072),$=d(1369),et=d(1286);_=function(tt,rt,nt){var ot=($(tt)?j:k)(tt,rt,nt);if(!et(ot)&&ot!==-1)return tt[ot]},b.exports=_},4072:function(b,_,d){var k=d(2838);_=function(j,$,et,tt){tt=tt||1,$=k($,et);for(var rt=j.length,nt=tt>0?0:rt-1;nt>=0&&nt2?it-2:0),ut=2;ut>>4).toString(16)),$.push((15&rt).toString(16))}return $.join("")},decode:function(j){var $=[],et=j.length;k(et)&&et--;for(var tt=0;tt1&&arguments[1]!==void 0?arguments[1]:"js",nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};j(nt,$),tt=tt.replace(//g,">"),rt=et[rt];var ot=0,at=[];k(rt,function(dt){dt.language&&(tt=tt.replace(dt.re,function(ut,ht){return ht?(at[ot++]=_(ht,dt.language,nt),ut.replace(ht,"___subtmpl"+(ot-1)+"___")):ut}))}),k(rt,function(dt,ut){et[dt.language]||(tt=tt.replace(dt.re,"___"+ut+"___$1___end"+ut+"___"))});var it=[];return tt=tt.replace(/___(?!subtmpl)\w+?___/g,function(dt){var ut=dt.substr(3,3)==="end",ht=(ut?dt.substr(6):dt.substr(3)).replace(/_/g,""),ft=it.length>0?it[it.length-1]:null;return!ut&&(ft==null||ht==ft||ft!=null&&rt[ft]&&rt[ft].embed!=null&&rt[ft].embed.indexOf(ht)>-1)?(it.push(ht),dt):ut&&ht==ft?(it.pop(),dt):""}),k(rt,function(dt,ut){var ht=nt[dt.style]?' style="'.concat(nt[dt.style],'"'):"";tt=tt.replace(new RegExp("___end"+ut+"___","g"),"
    ").replace(new RegExp("___"+ut+"___","g"),'"))}),k(rt,function(dt){dt.language&&(tt=tt.replace(/___subtmpl\d+___/g,function(ut){var ht=parseInt(ut.replace(/___subtmpl(\d+)___/,"$1"),10);return at[ht]}))}),tt};var $={comment:"color:#63a35c;",string:"color:#183691;",number:"color:#0086b3;",keyword:"color:#a71d5d;",operator:"color:#994500;"},et={js:{comment:{re:/(\/\/.*|\/\*([\s\S]*?)\*\/)/g,style:"comment"},string:{re:/(('.*?')|(".*?"))/g,style:"string"},numbers:{re:/(-?(\d+|\d+\.\d+|\.\d+))/g,style:"number"},keywords:{re:/(?:\b)(function|for|foreach|while|if|else|elseif|switch|break|as|return|this|class|self|default|var|const|let|false|true|null|undefined)(?:\b)/gi,style:"keyword"},operator:{re:/(\+|-|\/|\*|%|=|<|>|\||\?|\.)/g,style:"operator"}}};et.html={comment:{re:/(<!--([\s\S]*?)-->)/g,style:"comment"},tag:{re:/(<\/?\w(.|\n)*?\/?>)/g,style:"keyword",embed:["string"]},string:et.js.string,css:{re:/(?:<style.*?>)([\s\S]*)?(?:<\/style>)/gi,language:"css"},script:{re:/(?:<script.*?>)([\s\S]*?)(?:<\/script>)/gi,language:"js"}},et.css={comment:et.js.comment,string:et.js.string,numbers:{re:/((-?(\d+|\d+\.\d+|\.\d+)(%|px|em|pt|in)?)|#[0-9a-fA-F]{3}[0-9a-fA-F]{3})/g,style:"number"},keywords:{re:/(@\w+|:?:\w+|[a-z-]+:)/g,style:"keyword"}},b.exports=_},5925:function(b,_){_=function(k){var j,$,et,tt=k[0]/360,rt=k[1]/100,nt=k[2]/100,ot=[];if(k[3]&&(ot[3]=k[3]),rt===0)return et=d(255*nt),ot[0]=ot[1]=ot[2]=et,ot;for(var at=2*nt-(j=nt<.5?nt*(1+rt):nt+rt-nt*rt),it=0;it<3;it++)($=tt+.3333333333333333*-(it-1))<0&&$++,$>1&&$--,et=6*$<1?at+6*(j-at)*$:2*$<1?j:3*$<2?at+(j-at)*(.6666666666666666-$)*6:at,ot[it]=d(255*et);return ot};var d=Math.round;b.exports=_},7483:function(b,_,d){var k=d(8702),j=d(9001),$=d(6472),et=d(3783),tt=d(6768),rt=d(8820),nt=function(at){return at.replace(/"/g,'"')},ot=function(at){return at.replace(/"/g,""")};_={parse:function(at){var it=[],dt=new j;return k(at,{start:function(ut,ht){ht=rt(ht,function(ft){return nt(ft)}),dt.push({tag:ut,attrs:ht})},end:function(){var ut=dt.pop();if(dt.size){var ht=dt.peek();$(ht.content)||(ht.content=[]),ht.content.push(ut)}else it.push(ut)},comment:function(ut){var ht=""),ft=dt.peek();ft?(ft.content||(ft.content=[]),ft.content.push(ht)):it.push(ht)},text:function(ut){var ht=dt.peek();ht?(ht.content||(ht.content=[]),ht.content.push(ut)):it.push(ut)}}),it},stringify:function at(it){var dt="";return $(it)?et(it,function(ut){return dt+=at(ut)}):tt(it)?dt=it:(dt+="<".concat(it.tag),et(it.attrs,function(ut,ht){return dt+=" ".concat(ht,'="').concat(ot(ut),'"')}),dt+=">",it.content&&(dt+=at(it.content)),dt+="")),dt}},b.exports=_},6362:function(b,_){_=function(d){return d},b.exports=_},496:function(b,_){_=function(d,k,j){return Array.prototype.indexOf.call(d,k,j)},b.exports=_},5022:function(b,_,d){var k=d(1662);_=function(j,$){j.prototype=k($.prototype)},b.exports=_},7190:function(b,_,d){var k=d(3783);_=function(j){var $={};return k(j,function(et,tt){$[et]=tt}),$},b.exports=_},7403:function(b,_,d){var k=d(106);_=function(j){return k(j)==="[object Arguments]"},b.exports=_},6472:function(b,_,d){var k=d(106);_=Array.isArray?Array.isArray:function(j){return k(j)==="[object Array]"},b.exports=_},385:function(b,_,d){var k=d(106);_=function(j){return k(j)==="[object ArrayBuffer]"},b.exports=_},1369:function(b,_,d){var k=d(3990),j=d(4777),$=Math.pow(2,53)-1;_=function(et){if(!et)return!1;var tt=et.length;return k(tt)&&tt>=0&&tt<=$&&!j(et)},b.exports=_},4696:function(b,_){_=function(d){return d===!0||d===!1},b.exports=_},2727:function(b,_){_=typeof window=="object"&&typeof document=="object"&&document.nodeType===9,b.exports=_},2349:function(b,_,d){var k=d(4777);_=function(j){return j!=null&&(!!j._isBuffer||j.constructor&&k(j.constructor.isBuffer)&&j.constructor.isBuffer(j))},b.exports=_},2520:function(b,_,d){var k=new(d(2765))("(prefers-color-scheme: dark)");_=function(){return k.isMatch()},b.exports=_},2106:function(b,_,d){var k=d(106);_=function(j){return k(j)==="[object Date]"},b.exports=_},9833:function(b,_){_=function(d){return!(!d||d.nodeType!==1)},b.exports=_},8887:function(b,_,d){var k=d(1369),j=d(6472),$=d(6768),et=d(7403),tt=d(2533);_=function(rt){return rt==null||(k(rt)&&(j(rt)||$(rt)||et(rt))?rt.length===0:tt(rt).length===0)},b.exports=_},2749:function(b,_,d){var k=d(106);_=function(j){return k(j)==="[object Error]"},b.exports=_},4777:function(b,_,d){var k=d(106);_=function(j){var $=k(j);return $==="[object Function]"||$==="[object GeneratorFunction]"||$==="[object AsyncFunction]"},b.exports=_},9585:function(b,_,d){var k=d(5610),j=k.getComputedStyle,$=k.document;function et(tt,rt){return tt.rightrt.right||tt.bottomrt.bottom}_=function(tt){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},nt=rt.display,ot=nt===void 0||nt,at=rt.visibility,it=at!==void 0&&at,dt=rt.opacity,ut=dt!==void 0&&dt,ht=rt.size,ft=ht!==void 0&&ht,st=rt.viewport,ct=st!==void 0&&st,pt=rt.overflow,lt=pt!==void 0&&pt;if(ot)return tt.offsetParent===null;var wt=j(tt);if(it&&wt.visibility==="hidden")return!0;if(ut){if(wt.opacity==="0")return!0;for(var yt=tt;yt=yt.parentElement;)if(j(yt).opacity==="0")return!0}var vt=tt.getBoundingClientRect();if(ft&&(vt.width===0||vt.height===0))return!0;if(ct)return et(vt,{top:0,left:0,right:$.documentElement.clientWidth,bottom:$.documentElement.clientHeight});if(lt)for(var St=tt;St=St.parentElement;){var xt=j(St).overflow;if((xt==="scroll"||xt==="hidden")&&et(vt,St.getBoundingClientRect()))return!0}return!1},b.exports=_},2246:function(b,_,d){var k=d(3990);_=function(j){return k(j)&&j%1==0},b.exports=_},4219:function(b,_){_=function(d){try{return JSON.parse(d),!0}catch{return!1}},b.exports=_},3708:function(b,_,d){var k=d(106);_=function(j){return k(j)==="[object Map]"},b.exports=_},7949:function(b,_,d){var k=d(2533);_=function(j,$){var et=k($),tt=et.length;if(j==null)return!tt;j=Object(j);for(var rt=0;rt1&&arguments[1]!==void 0?arguments[1]:_.defComparator,j=0,$=d.length;j<$-1;j++)if(k(d[j],d[j+1])>0)return!1;return!0},_.defComparator=function(d,k){return dk?1:0},b.exports=_},6768:function(b,_,d){var k=d(106);_=function(j){return k(j)==="[object String]"},b.exports=_},9804:function(b,_){_=function(d){return typeof d=="symbol"},b.exports=_},1286:function(b,_){_=function(d){return d===void 0},b.exports=_},7622:function(b,_,d){var k=d(8935);_=function(j){return k(j).join("-")},b.exports=_},2533:function(b,_,d){var k=d(6257);_=Object.keys?Object.keys:function(j){var $=[];for(var et in j)k(j,et)&&$.push(et);return $},b.exports=_},9702:function(b,_){_=function(d){var k=d?d.length:0;if(k)return d[k-1]},b.exports=_},3988:function(b,_,d){var k=d(2581),j=d(3783),$=d(2337);function et(tt){return''+tt+""}_=function(tt,rt){rt=rt||et;var nt=k(tt);return j(nt,function(ot){tt=tt.replace(new RegExp($(ot),"g"),rt)}),tt},b.exports=_},9622:function(b,_){_=function(d,k){var j=document.createElement("script");j.src=d,j.onload=function(){var $=j.readyState&&j.readyState!="complete"&&j.readyState!="loaded";k&&k(!$)},j.onerror=function(){k(!1)},document.body.appendChild(j)},b.exports=_},3063:function(b,_,d){var k=d(3367);_=function(j){return k(j).toLocaleLowerCase()},b.exports=_},5351:function(b,_,d){var k=d(4552),j=d(3367);_=function($,et,tt){var rt=($=j($)).length;return tt=tt||" ",rt=rt?"":k.substr(tt,rt)},b.exports=_},2461:function(b,_,d){var k=d(2838),j=d(2533),$=d(1369);_=function(et,tt,rt){tt=k(tt,rt);for(var nt=!$(et)&&j(et),ot=(nt||et).length,at=Array(ot),it=0;itk&&(k=d[j]);return k},b.exports=_},5026:function(b,_,d){var k=d(2533);_={getItem:function(nt){return($[nt]?j[nt]:this[nt])||null},setItem:function(nt,ot){$[nt]?j[nt]=ot:this[nt]=ot},removeItem:function(nt){$[nt]?delete j[nt]:delete this[nt]},key:function(nt){var ot=et();return nt>=0&&nt=$[et[it]]){at=et[it];break}return+(ot/$[at]).toFixed(2)+at};var $={ms:1,s:1e3};$.m=60*$.s,$.h=60*$.m,$.d=24*$.h,$.y=365.25*$.d;var et=["y","d","h","m","s"],tt=/^((?:\d+)?\.?\d+) *(s|m|h|d|y)?$/;b.exports=_},7658:function(b,_,d){var k=d(6930),j=d(5610),$=d(3367);function et(tt,rt){if(tt=$(tt),rt=$(rt),k(tt,"_")&&!k(rt,"_"))return 1;if(k(rt,"_")&&!k(tt,"_"))return-1;for(var nt,ot,at,it,dt=/^\d+|^\D+/;;){if(!tt)return rt?-1:0;if(!rt)return 1;if(nt=tt.match(dt)[0],ot=rt.match(dt)[0],at=!j.isNaN(nt),it=!j.isNaN(ot),at&&!it)return-1;if(it&&!at)return 1;if(at&&it){var ut=nt-ot;if(ut)return ut;if(nt.length!==ot.length)return+nt||+ot?ot.length-nt.length:nt.length-ot.length}else if(nt!==ot)return ntwindow.innerHeight?"landscape":"portrait"}},k.mixin(_),window.addEventListener("orientationchange",function(){setTimeout(function(){_.emit("change",_.get())},200)},!1),b.exports=_},8702:function(b,_,d){var k=d(9702),j=d(7913),$=d(6930),et=d(3063);_=function(it,dt){for(var ut,ht=[],ft=it;it;){if(ut=!0,k(ht)&&at[k(ht)]){var st=new RegExp("]*>")).exec(it);if(st){var ct=it.substring(0,st.index);it=it.substring(st.index+st[0].length),ct&&dt.text&&dt.text(ct)}bt("",k(ht))}else{if($(it,"");pt>=0&&(dt.comment&&dt.comment(it.substring(4,pt)),it=it.substring(pt+3),ut=!1)}else if($(it,"=0&&ht[Ct]!==_t;Ct--);else Ct=0;if(Ct>=0){for(var Mt=ht.length-1;Mt>=Ct;Mt--)dt.end&&dt.end(ht[Mt]);ht.length=Ct}}bt()};var tt=/^\s]+))?)*)\s*(\/?)>/i,rt=/^<\/([-A-Za-z0-9_]+)[^>]*>/,nt=/^<([-A-Za-z0-9_]+)((?:\s+[-A-Za-z0-9_:@.]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/i,ot=/([-A-Za-z0-9_:@.]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,at=j("script,style".split(","));b.exports=_},4198:function(b,_,d){var k=d(1137),j=d(1352);_=k(function($,et){return function(){var tt=[];return tt=(tt=tt.concat(et)).concat(j(arguments)),$.apply(this,tt)}}),b.exports=_},1194:function(b,_,d){var k,j=d(8847),$=d(5610),et=$.performance,tt=$.process;if(et&&et.now)_=function(){return et.now()};else if(tt&&tt.hrtime){var rt=function(){var nt=tt.hrtime();return 1e9*nt[0]+nt[1]};k=rt()-1e9*tt.uptime(),_=function(){return(rt()-k)/1e6}}else k=j(),_=function(){return j()-k};b.exports=_},3487:function(b,_,d){var k=d(6768),j=d(6472),$=d(6341),et=d(3783);_=function(tt,rt,nt){if(k(rt)&&(rt=[rt]),j(rt)){var ot=rt;rt=function(dt,ut){return $(ot,ut)}}var at={},it=function(dt,ut){rt(dt,ut)&&(at[ut]=dt)};return nt&&(it=function(dt,ut){rt(dt,ut)||(at[ut]=dt)}),et(tt,it),at},b.exports=_},747:function(b,_,d){var k=d(1475),j=d(7494),$=d(3023),et=d(6257),tt=d(7622);(_=k(function(at){if(at=at.replace(nt,""),at=j(at),et(ot,at))return at;for(var it=rt.length;it--;){var dt=rt[it]+$(at);if(et(ot,dt))return dt}return at})).dash=k(function(at){var it=_(at);return(nt.test(it)?"-":"")+tt(it)});var rt=["O","ms","Moz","Webkit"],nt=/^(O)|(ms)|(Moz)|(Webkit)|(-o-)|(-ms-)|(-moz-)|(-webkit-)/g,ot=document.createElement("p").style;b.exports=_},2994:function(b,_,d){var k=d(6472),j=d(7653);_=function($){return k($)?function(tt){return j(tt,$)}:(et=$,function(tt){return tt==null?void 0:tt[et]});var et},b.exports=_},1745:function(b,_,d){var k=d(4331),j=d(3783),$=d(1286),et=d(6472),tt=d(2461),rt=d(8887),nt=d(5972),ot=d(5166);_={parse:function(it){var dt={};return it=k(it).replace(at,""),j(it.split("&"),function(ut){var ht=ut.split("="),ft=ht.shift(),st=ht.length>0?ht.join("="):null;ft=decodeURIComponent(ft),st=decodeURIComponent(st),$(dt[ft])?dt[ft]=st:et(dt[ft])?dt[ft].push(st):dt[ft]=[dt[ft],st]}),dt},stringify:function(it,dt){return nt(tt(it,function(ut,ht){return ot(ut)&&rt(ut)?"":et(ut)?_.stringify(ut,ht):encodeURIComponent(dt||ht)+"="+encodeURIComponent(ut)}),function(ut){return ut.length>0}).join("&")}};var at=/^(\?|#|&)/g;b.exports=_},1571:function(b,_,d){var k,j,$=d(8847),et=d(2727),tt=0;if(et){k=window.requestAnimationFrame,j=window.cancelAnimationFrame;for(var rt=["ms","moz","webkit","o"],nt=0,ot=rt.length;nt0;)1&k&&(j+=d),k>>=1,d+=d;return j},b.exports=_},8368:function(b,_,d){var k=d(2337);_=function(j,$,et){return j.replace(new RegExp(k($),"g"),et)},b.exports=_},1137:function(b,_){_=function(d,k){return k=k==null?d.length-1:+k,function(){var j,$=Math.max(arguments.length-k,0),et=new Array($);for(j=0;j<$;j++)et[j]=arguments[j+k];switch(k){case 0:return d.call(this,et);case 1:return d.call(this,arguments[0],et);case 2:return d.call(this,arguments[0],arguments[1],et)}var tt=new Array(k+1);for(j=0;j=0;dt--){var ut=nt[dt];if(ut!==""){if(st({domain:at=at===""?ut:ut+"."+at,path:$="/"})||st({domain:at}))return;for(var ht=0;ht=0;)for(rt=!1,j=-1,$=d.charAt(et);++j=0?d.substring(0,et+1):""},b.exports=_},2838:function(b,_,d){var k=d(4777),j=d(5166),$=d(6472),et=d(3955),tt=d(4491),rt=d(6362),nt=d(2994);_=function(ot,at,it){return ot==null?rt:k(ot)?et(ot,at,it):j(ot)&&!$(ot)?tt(ot):nt(ot)},b.exports=_},7653:function(b,_,d){var k=d(1286),j=d(2848);_=function($,et){var tt;for(tt=(et=j(et,$)).shift();!k(tt);){if(($=$[tt])==null)return;tt=et.shift()}return $},b.exports=_},8079:function(b,_,d){var k=d(2848),j=d(1286),$=d(3367),et=d(9804),tt=d(6768);_=function(rt,nt,ot){var at,it=(nt=k(nt,rt)).pop();for(at=nt.shift();!j(at);){if(tt(at)||et(at)||(at=$(at)),at==="__proto__"||at==="constructor"||at==="prototype")return;rt[at]||(rt[at]={}),rt=rt[at],at=nt.shift()}rt[it]=ot},b.exports=_},615:function(b,_,d){var k=d(5026);_=function(j){var $;switch(j=j||"local"){case"local":$=window.localStorage;break;case"session":$=window.sessionStorage}try{var et="test-localStorage-"+Date.now();$.setItem(et,et);var tt=$.getItem(et);if($.removeItem(et),tt!==et)throw new Error}catch{return k}return $},b.exports=_},4224:function(b,_,d){var k=d(6334);_=function(j,$){return j=new k(j),$=new k($),j.port=0|j.port||(j.protocol==="https"?443:80),$.port=0|$.port||($.protocol==="https"?443:80),j.protocol===$.protocol&&j.hostname===$.hostname&&j.port===$.port},b.exports=_},9677:function(b,_){_=function(d,k,j){var $=d.length;k=k==null?0:k<0?Math.max($+k,0):Math.min(k,$),j=j==null?$:j<0?Math.max($+j,0):Math.min(j,$);for(var et=[];k1&&arguments[1]!==void 0?arguments[1]:{};j(ot,rt);var at=ot.deep,it=ot.comparator,dt=[],ut=[];return function ht(ft){var st,ct=dt.indexOf(ft);if(ct>-1)return ut[ct];if(et(ft)){st=[],dt.push(ft),ut.push(st);for(var pt=0,lt=ft.length;pt0){var ht=at.indexOf(this);ht>-1?(at.splice(ht+1),it.splice(ht,1/0,dt)):(at.push(this),it.push(dt));var ft=at.indexOf(ut);ft>-1&&(ut=at[0]===ut?"[Circular ~]":"[Circular ~."+it.slice(0,ft).join(".")+"]")}else at.push(ut);return rt(ut)||tt(ut)?ut="["+j(k(ut))+" "+$(ut)+"]":et(ut)&&(ut=null),ut}),ot);var at,it},b.exports=_},9963:function(b,_,d){var k=d(4187),j=d(3085),$=d(3367),et=d(4858),tt=d(300),rt=d(2533),nt=d(3783),ot=d(7496),at=d(415),it=d(801),dt=d(6329),ut=d(4321),ht=d(5972),ft=d(8847),st=d(1116),ct=d(6341),pt=d(5166),lt=d(9537),wt=d(1662),yt=d(6930),vt=d(8079),St=d(9803),xt=d(3487),bt=d(1369);function At(Xt,Jt,Kt,Zt){var dn=[];return nt(Jt,function(An){var En,yn=Object.getOwnPropertyDescriptor(Kt,An),jn=yn&&yn.get,Vn=yn&&yn.set;if(!Zt.accessGetter&&jn)En="(...)";else try{if(En=Kt[An],ct(Zt.ignore,En))return;ut(En)&&En.catch(function(){})}catch(rn){En=rn.message}dn.push("".concat(_t(An),":").concat(_(En,Zt))),jn&&dn.push("".concat(_t("get "+$(An)),":").concat(_(yn.get,Zt))),Vn&&dn.push("".concat(_t("set "+$(An)),":").concat(_(yn.set,Zt)))}),'"'.concat(Xt,'":{')+dn.join(",")+"}"}function _t(Xt){return'"'.concat(Mt(Xt),'"')}function Ct(Xt){return'"'.concat(Mt($(Xt)),'"')}function Mt(Xt){return k(Xt).replace(/\\'/g,"'").replace(/\t/g,"\\t")}_=function(Xt){var Jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Kt=Jt.self,Zt=Jt.startTime,dn=Zt===void 0?ft():Zt,An=Jt.timeout,En=An===void 0?0:An,yn=Jt.depth,jn=yn===void 0?0:yn,Vn=Jt.curDepth,rn=Vn===void 0?1:Vn,xn=Jt.visitor,fn=xn===void 0?new jt:xn,Sn=Jt.unenumerable,bn=Sn!==void 0&&Sn,hn=Jt.symbol,_n=hn!==void 0&&hn,ln=Jt.accessGetter,Tn=ln!==void 0&&ln,In=Jt.ignore,Ln=In===void 0?[]:In,kn="",Fn={visitor:fn,unenumerable:bn,symbol:_n,accessGetter:Tn,depth:jn,curDepth:rn+1,timeout:En,startTime:dn,ignore:Ln},vn=j(Xt,!1);if(vn==="String")kn=Ct(Xt);else if(vn==="Number")kn=$(Xt),et(kn,"Infinity")&&(kn='{"value":"'.concat(kn,'","type":"Number"}'));else if(vn==="NaN")kn='{"value":"NaN","type":"Number"}';else if(vn==="Boolean")kn=Xt?"true":"false";else if(vn==="Null")kn="null";else if(vn==="Undefined")kn='{"type":"Undefined"}';else if(vn==="Symbol"){var Bn="Symbol";try{Bn=$(Xt)}catch{}kn='{"value":'.concat(Ct(Bn),',"type":"Symbol"}')}else{if(En&&ft()-dn>En)return Ct("Timeout");if(jn&&rn>jn)return Ct("{...}");kn="{";var Pn,Un=[],pn=fn.get(Xt);if(pn?(Pn=pn.id,Un.push('"reference":'.concat(Pn))):(Pn=fn.set(Xt),Un.push('"id":'.concat(Pn))),Un.push('"type":"'.concat(vn,'"')),et(vn,"Function")?Un.push('"value":'.concat(Ct(tt(Xt)))):vn==="RegExp"&&Un.push('"value":'.concat(Ct(Xt))),!pn){var Vt=rt(Xt);if(Vt.length&&Un.push(At("enumerable",Vt,Kt||Xt,Fn)),bn){var qt=it(st(Xt,{prototype:!1,unenumerable:!0}),Vt);qt.length&&Un.push(At("unenumerable",qt,Kt||Xt,Fn))}if(_n){var wn=ht(st(Xt,{prototype:!1,symbol:!0}),function(fr){return typeof fr=="symbol"});wn.length&&Un.push(At("symbol",wn,Kt||Xt,Fn))}var Nn=at(Xt);if(Nn&&!ct(Ln,Nn)){var lr='"proto":'.concat(_(Nn,dt(Fn,{self:Kt||Xt})));Un.push(lr)}}kn+=Un.join(",")+"}"}return kn};var jt=ot({initialize:function(){this.id=1,this.visited=[]},set:function(Xt){var Jt=this.visited,Kt=this.id,Zt={id:Kt,val:Xt};return Jt.push(Zt),this.id++,Kt},get:function(Xt){for(var Jt=this.visited,Kt=0,Zt=Jt.length;Kt]*>/g;_=function(k){return k.replace(d,"")},b.exports=_},1907:function(b,_,d){var k=d(6768),j=d(1352),$=d(6435),et=d(2461),tt=d(4331);_=function(nt){k(nt)&&(nt=j(nt));for(var ot="",at=arguments.length,it=new Array(at>1?at-1:0),dt=1;dt=0;)for(rt=!1,j=-1,$=d.charAt(et);++j=0?d.substring(0,et+1):""},b.exports=_},2838:function(b,_,d){var k=d(4777),j=d(5166),$=d(6472),et=d(3955),tt=d(4491),rt=d(6362),nt=d(2994);_=function(ot,at,it){return ot==null?rt:k(ot)?et(ot,at,it):j(ot)&&!$(ot)?tt(ot):nt(ot)},b.exports=_},7653:function(b,_,d){var k=d(1286),j=d(2848);_=function($,et){var tt;for(tt=(et=j(et,$)).shift();!k(tt);){if(($=$[tt])==null)return;tt=et.shift()}return $},b.exports=_},8079:function(b,_,d){var k=d(2848),j=d(1286),$=d(3367),et=d(9804),tt=d(6768);_=function(rt,nt,ot){var at,it=(nt=k(nt,rt)).pop();for(at=nt.shift();!j(at);){if(tt(at)||et(at)||(at=$(at)),at==="__proto__"||at==="constructor"||at==="prototype")return;rt[at]||(rt[at]={}),rt=rt[at],at=nt.shift()}rt[it]=ot},b.exports=_},615:function(b,_,d){var k=d(5026);_=function(j){var $;switch(j=j||"local"){case"local":$=window.localStorage;break;case"session":$=window.sessionStorage}try{var et="test-localStorage-"+Date.now();$.setItem(et,et);var tt=$.getItem(et);if($.removeItem(et),tt!==et)throw new Error}catch{return k}return $},b.exports=_},4224:function(b,_,d){var k=d(6334);_=function(j,$){return j=new k(j),$=new k($),j.port=0|j.port||(j.protocol==="https"?443:80),$.port=0|$.port||($.protocol==="https"?443:80),j.protocol===$.protocol&&j.hostname===$.hostname&&j.port===$.port},b.exports=_},9677:function(b,_){_=function(d,k,j){var $=d.length;k=k==null?0:k<0?Math.max($+k,0):Math.min(k,$),j=j==null?$:j<0?Math.max($+j,0):Math.min(j,$);for(var et=[];k1&&arguments[1]!==void 0?arguments[1]:{};j(ot,rt);var at=ot.deep,it=ot.comparator,dt=[],ut=[];return function ht(ft){var st,ct=dt.indexOf(ft);if(ct>-1)return ut[ct];if(et(ft)){st=[],dt.push(ft),ut.push(st);for(var pt=0,lt=ft.length;pt0){var ht=at.indexOf(this);ht>-1?(at.splice(ht+1),it.splice(ht,1/0,dt)):(at.push(this),it.push(dt));var ft=at.indexOf(ut);ft>-1&&(ut=at[0]===ut?"[Circular ~]":"[Circular ~."+it.slice(0,ft).join(".")+"]")}else at.push(ut);return rt(ut)||tt(ut)?ut="["+j(k(ut))+" "+$(ut)+"]":et(ut)&&(ut=null),ut}),ot);var at,it},b.exports=_},9963:function(b,_,d){var k=d(4187),j=d(3085),$=d(3367),et=d(4858),tt=d(300),rt=d(2533),nt=d(3783),ot=d(7496),at=d(415),it=d(801),dt=d(6329),ut=d(4321),ht=d(5972),ft=d(8847),st=d(1116),ct=d(6341),pt=d(5166),lt=d(9537),wt=d(1662),yt=d(6930),vt=d(8079),St=d(9803),xt=d(3487),bt=d(1369);function At(Xt,Jt,Kt,Zt){var dn=[];return nt(Jt,function(An){var En,yn=Object.getOwnPropertyDescriptor(Kt,An),jn=yn&&yn.get,Vn=yn&&yn.set;if(!Zt.accessGetter&&jn)En="(...)";else try{if(En=Kt[An],ct(Zt.ignore,En))return;ut(En)&&En.catch(function(){})}catch(rn){En=rn.message}dn.push("".concat(_t(An),":").concat(_(En,Zt))),jn&&dn.push("".concat(_t("get "+$(An)),":").concat(_(yn.get,Zt))),Vn&&dn.push("".concat(_t("set "+$(An)),":").concat(_(yn.set,Zt)))}),'"'.concat(Xt,'":{')+dn.join(",")+"}"}function _t(Xt){return'"'.concat(Mt(Xt),'"')}function Ct(Xt){return'"'.concat(Mt($(Xt)),'"')}function Mt(Xt){return k(Xt).replace(/\\'/g,"'").replace(/\t/g,"\\t")}_=function(Xt){var Jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Kt=Jt.self,Zt=Jt.startTime,dn=Zt===void 0?ft():Zt,An=Jt.timeout,En=An===void 0?0:An,yn=Jt.depth,jn=yn===void 0?0:yn,Vn=Jt.curDepth,rn=Vn===void 0?1:Vn,xn=Jt.visitor,fn=xn===void 0?new jt:xn,Sn=Jt.unenumerable,bn=Sn!==void 0&&Sn,hn=Jt.symbol,_n=hn!==void 0&&hn,ln=Jt.accessGetter,Tn=ln!==void 0&&ln,In=Jt.ignore,Ln=In===void 0?[]:In,kn="",Fn={visitor:fn,unenumerable:bn,symbol:_n,accessGetter:Tn,depth:jn,curDepth:rn+1,timeout:En,startTime:dn,ignore:Ln},vn=j(Xt,!1);if(vn==="String")kn=Ct(Xt);else if(vn==="Number")kn=$(Xt),et(kn,"Infinity")&&(kn='{"value":"'.concat(kn,'","type":"Number"}'));else if(vn==="NaN")kn='{"value":"NaN","type":"Number"}';else if(vn==="Boolean")kn=Xt?"true":"false";else if(vn==="Null")kn="null";else if(vn==="Undefined")kn='{"type":"Undefined"}';else if(vn==="Symbol"){var Bn="Symbol";try{Bn=$(Xt)}catch{}kn='{"value":'.concat(Ct(Bn),',"type":"Symbol"}')}else{if(En&&ft()-dn>En)return Ct("Timeout");if(jn&&rn>jn)return Ct("{...}");kn="{";var Nn,Un=[],pn=fn.get(Xt);if(pn?(Nn=pn.id,Un.push('"reference":'.concat(Nn))):(Nn=fn.set(Xt),Un.push('"id":'.concat(Nn))),Un.push('"type":"'.concat(vn,'"')),et(vn,"Function")?Un.push('"value":'.concat(Ct(tt(Xt)))):vn==="RegExp"&&Un.push('"value":'.concat(Ct(Xt))),!pn){var Vt=rt(Xt);if(Vt.length&&Un.push(At("enumerable",Vt,Kt||Xt,Fn)),bn){var qt=it(st(Xt,{prototype:!1,unenumerable:!0}),Vt);qt.length&&Un.push(At("unenumerable",qt,Kt||Xt,Fn))}if(_n){var wn=ht(st(Xt,{prototype:!1,symbol:!0}),function(fr){return typeof fr=="symbol"});wn.length&&Un.push(At("symbol",wn,Kt||Xt,Fn))}var Pn=at(Xt);if(Pn&&!ct(Ln,Pn)){var lr='"proto":'.concat(_(Pn,dt(Fn,{self:Kt||Xt})));Un.push(lr)}}kn+=Un.join(",")+"}"}return kn};var jt=ot({initialize:function(){this.id=1,this.visited=[]},set:function(Xt){var Jt=this.visited,Kt=this.id,Zt={id:Kt,val:Xt};return Jt.push(Zt),this.id++,Kt},get:function(Xt){for(var Jt=this.visited,Kt=0,Zt=Jt.length;Kt]*>/g;_=function(k){return k.replace(d,"")},b.exports=_},1907:function(b,_,d){var k=d(6768),j=d(1352),$=d(6435),et=d(2461),tt=d(4331);_=function(nt){k(nt)&&(nt=j(nt));for(var ot="",at=arguments.length,it=new Array(at>1?at-1:0),dt=1;dt0?$.apply(null,st):0;return tt(et(ft,function(yt){return yt[0]===" "?yt.slice(wt):yt}).join(` `))};var rt=/^(\s+)\S+/;b.exports=_},2439:function(b,_,d){var k=d(6049);_=function(j,$){return k(j,$,!0)},b.exports=_},1352:function(b,_,d){var k=d(1369),j=d(2461),$=d(6472),et=d(6768);_=function(tt){return tt?$(tt)?tt:k(tt)&&!et(tt)?j(tt):[tt]:[]},b.exports=_},3474:function(b,_,d){var k=d(6768);_=function(j){return k(j)?(j=j.toLowerCase())!=="0"&&j!==""&&j!=="false":!!j},b.exports=_},4891:function(b,_){var d=document;if(_=function(j){var $=d.createElement("body");return $.innerHTML=j,$.childNodes[0]},d.createRange&&d.body){var k=d.createRange();k.selectNode(d.body),k.createContextualFragment&&(_=function(j){return k.createContextualFragment(j).childNodes[0]})}b.exports=_},9296:function(b,_,d){var k=d(3875);_=function(j){return j?(j=k(j))-j%1:j===0?j:0},b.exports=_},3875:function(b,_,d){var k=d(3990),j=d(5166),$=d(4777),et=d(6768);_=function(tt){if(k(tt))return tt;if(j(tt)){var rt=$(tt.valueOf)?tt.valueOf():tt;tt=j(rt)?rt+"":rt}return et(tt)?+tt:tt===0?tt:+tt},b.exports=_},300:function(b,_,d){var k=d(2763);_=function($){if(k($))return"";try{return j.call($)}catch{}try{return $+""}catch{}return""};var j=Function.prototype.toString;b.exports=_},3367:function(b,_){_=function(d){return d==null?"":d.toString()},b.exports=_},4331:function(b,_,d){var k=d(7767),j=d(3597);_=function($,et){return et==null&&$.trim?$.trim():k(j($,et),et)},b.exports=_},7756:function(b,_,d){var k=d(4193),j=d(1286);_=function(et,tt){var rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};k(rt,$);var nt=rt.ellipsis,ot=rt.separator;if(tt>et.length)return et;var at=tt-nt.length;if(at<1)return nt;var it=et.slice(0,at);if(j(ot))return it+nt;if(et.indexOf(ot,at)!==at){var dt=it.lastIndexOf(ot);dt>-1&&(it=it.slice(0,dt))}return it+nt};var $={ellipsis:"..."};b.exports=_},3085:function(b,_,d){var k=d(106),j=d(9433),$=d(3063),et=d(2349);_=function(rt){var nt,ot=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return rt===null&&(nt="Null"),rt===void 0&&(nt="Undefined"),j(rt)&&(nt="NaN"),et(rt)&&(nt="Buffer"),nt||(nt=k(rt).match(tt))&&(nt=nt[1]),nt?ot?$(nt):nt:""};var tt=/^\[object\s+(.*?)]$/;b.exports=_},9016:function(b,_){_={},b.exports=_},8166:function(b,_,d){var k=d(996),j=d(2461);_={encode:function($){return $.length<32768?String.fromCodePoint.apply(String,$):j(k($,32767),function(et){return String.fromCodePoint.apply(String,et)}).join("")},decode:function($){for(var et=[],tt=0,rt=$.length;tt=55296&&nt<=56319&&tt>6*st)+ct);st>0;)pt+=it(128|63&ft>>6*(st-1)),st--;return pt}function ut(ft){for(;;){if($>=et&&nt){if(ft)return ht();throw new Error("Invalid byte index")}if($===et)return!1;var st=j[$];if($++,nt){if(stat){if(ft)return $--,ht();throw new Error("Invalid continuation byte")}if(ot=128,at=191,tt=tt<<6|63&st,++rt===nt){var ct=tt;return tt=0,nt=0,rt=0,ct}}else{if(!(128&st))return st;if((224&st)==192)nt=1,tt=31&st;else if((240&st)==224)st===224&&(ot=160),st===237&&(at=159),nt=2,tt=15&st;else{if((248&st)!=240){if(ft)return ht();throw new Error("Invalid UTF-8 detected")}st===240&&(ot=144),st===244&&(at=143),nt=3,tt=7&st}}}}function ht(){var ft=$-rt-1;return $=ft+1,tt=0,nt=0,rt=0,ot=128,at=191,j[ft]}b.exports=_},5936:function(b,_,d){var k=d(3366);_=function(){var et=k(16);return et[6]=15&et[6]|64,et[8]=63&et[8]|128,j[et[0]]+j[et[1]]+j[et[2]]+j[et[3]]+"-"+j[et[4]]+j[et[5]]+"-"+j[et[6]]+j[et[7]]+"-"+j[et[8]]+j[et[9]]+"-"+j[et[10]]+j[et[11]]+j[et[12]]+j[et[13]]+j[et[14]]+j[et[15]]};for(var j=[],$=0;$<256;$++)j[$]=($+256).toString(16).substr(1);b.exports=_},2578:function(b,_,d){var k=d(3783);_=function(j){var $=[];return k(j,function(et){$.push(et)}),$},b.exports=_},3514:function(b,_,d){var k=d(8573),j=d(9882),$=d(4331),et=d(3783),tt=d(2461),rt=d(9433);_=function(){var nt=k("viewport");if(!nt)return 1;nt=tt(nt.split(","),function(ut){return $(ut)});var ot=.25,at=5,it=1;et(nt,function(ut){var ht=(ut=ut.split("="))[0];ut=ut[1],ht==="initial-scale"&&(it=+ut),ht==="maximum-scale"&&(at=+ut),ht==="minimum-scale"&&(ot=+ut)});var dt=j(it,ot,at);return rt(dt)?1:dt},b.exports=_},5491:function(b,_,d){var k=d(4198);_=function(j,$){return k($,j)},b.exports=_},8933:function(b,_){_=function(d){for(var k=[],j=document.evaluate(d,document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),$=0;$=Ct.length&&(Ct=void 0),{value:Ct&&Ct[Rt++],done:!Ct}}};throw new TypeError(Mt?"Object is not iterable.":"Symbol.iterator is not defined.")},tt=this&&this.__importDefault||function(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}};Object.defineProperty(_,"__esModule",{value:!0});var rt=tt(d(1160)),nt=d(7669),ot=d(2062),at=tt(d(242)),it=tt(d(2439)),dt=tt(d(3063)),ut=tt(d(3783)),ht=tt(d(3009)),ft=tt(d(5044)),st=tt(d(4502)),ct=tt(d(6329)),pt=tt(d(7494)),lt=tt(d(6341)),wt=tt(d(3875)),yt=tt(d(3577)),vt=tt(d(6768));d(8169);var St=function(Ct){function Mt(jt,Rt){Rt===void 0&&(Rt={});var zt=Ct.call(this,jt,{compName:"dom-highlighter"},Rt)||this;return zt.overlay=new nt.HighlightOverlay(window),zt.reset=function(){var Xt=document.documentElement.clientWidth,Jt=document.documentElement.clientHeight;zt.overlay.reset({viewportSize:{width:Xt,height:Jt},deviceScaleFactor:1,pageScaleFactor:1,pageZoomFactor:1,emulationScaleFactor:1,scrollX:window.scrollX,scrollY:window.scrollY})},zt.initOptions(Rt,{showRulers:!1,showExtensionLines:!1,showInfo:!0,showStyles:!0,showAccessibilityInfo:!0,colorFormat:"hex",contentColor:"rgba(111, 168, 220, .66)",paddingColor:"rgba(147, 196, 125, .55)",borderColor:"rgba(255, 229, 153, .66)",marginColor:"rgba(246, 178, 107, .66)",monitorResize:!0}),zt.overlay.setContainer(jt),zt.overlay.setPlatform("mac"),zt.redraw=(0,it.default)(function(){zt.reset(),zt.draw()},16),zt.redraw(),zt.bindEvent(),zt}return j(Mt,Ct),Mt.prototype.highlight=function(jt,Rt){Rt&&(0,ct.default)(this.options,Rt),this.target=jt,jt instanceof HTMLElement&&this.options.monitorResize&&(this.resizeSensor&&this.resizeSensor.destroy(),this.resizeSensor=new at.default(jt),this.resizeSensor.addListener(this.redraw)),this.redraw()},Mt.prototype.hide=function(){this.target=null,this.redraw()},Mt.prototype.intercept=function(jt){this.interceptor=jt},Mt.prototype.destroy=function(){window.removeEventListener("resize",this.redraw),window.removeEventListener("scroll",this.redraw),this.resizeSensor&&this.resizeSensor.destroy(),Ct.prototype.destroy.call(this)},Mt.prototype.draw=function(){var jt=this.target;jt&&(jt instanceof Text?this.drawText(jt):this.drawElement(jt))},Mt.prototype.drawText=function(jt){var Rt=this.options,zt=document.createRange();zt.selectNode(jt);var Xt=zt.getBoundingClientRect(),Jt=Xt.left,Kt=Xt.top,Zt=Xt.width,dn=Xt.height;zt.detach();var An={paths:[{path:this.rectToPath({left:Jt,top:Kt,width:Zt,height:dn}),fillColor:At(Rt.contentColor),name:"content"}],showExtensionLines:Rt.showExtensionLines,showRulers:Rt.showRulers};Rt.showInfo&&(An.elementInfo={tagName:"#text",nodeWidth:Zt,nodeHeight:dn}),this.overlay.drawHighlight(An)},Mt.prototype.drawElement=function(jt){var Rt={paths:this.getPaths(jt),showExtensionLines:this.options.showExtensionLines,showRulers:this.options.showRulers,colorFormat:this.options.colorFormat};if(this.options.showInfo&&(Rt.elementInfo=this.getElementInfo(jt)),this.interceptor){var zt=this.interceptor(Rt);zt&&(Rt=zt)}this.overlay.drawHighlight(Rt)},Mt.prototype.getPaths=function(jt){var Rt=this.options,zt=window.getComputedStyle(jt),Xt=jt.getBoundingClientRect(),Jt=Xt.left,Kt=Xt.top,Zt=Xt.width,dn=Xt.height,An=function(Tn){return(0,ot.pxToNum)(zt.getPropertyValue(Tn))},En=An("margin-left"),yn=An("margin-right"),jn=An("margin-top"),Vn=An("margin-bottom"),rn=An("border-left-width"),xn=An("border-right-width"),fn=An("border-top-width"),Sn=An("border-bottom-width"),bn=An("padding-left"),hn=An("padding-right"),_n=An("padding-top"),ln=An("padding-bottom");return[{path:this.rectToPath({left:Jt+rn+bn,top:Kt+fn+_n,width:Zt-rn-bn-xn-hn,height:dn-fn-_n-Sn-ln}),fillColor:At(Rt.contentColor),name:"content"},{path:this.rectToPath({left:Jt+rn,top:Kt+fn,width:Zt-rn-xn,height:dn-fn-Sn}),fillColor:At(Rt.paddingColor),name:"padding"},{path:this.rectToPath({left:Jt,top:Kt,width:Zt,height:dn}),fillColor:At(Rt.borderColor),name:"border"},{path:this.rectToPath({left:Jt-En,top:Kt-jn,width:Zt+En+yn,height:dn+jn+Vn}),fillColor:At(Rt.marginColor),name:"margin"}]},Mt.prototype.getElementInfo=function(jt){var Rt=jt.getBoundingClientRect(),zt=Rt.width,Xt=Rt.height,Jt=jt.getAttribute("class")||"";Jt=Jt.split(/\s+/).map(function(Zt){return"."+Zt}).join("");var Kt={tagName:(0,dt.default)(jt.tagName),className:Jt,idValue:jt.id,nodeWidth:zt,nodeHeight:Xt};return this.options.showStyles&&(Kt.style=this.getStyles(jt)),this.options.showAccessibilityInfo&&(0,ct.default)(Kt,this.getAccessibilityInfo(jt)),Kt},Mt.prototype.getStyles=function(jt){for(var Rt=window.getComputedStyle(jt),zt=!1,Xt=jt.childNodes,Jt=0,Kt=Xt.length;Jt-1)},Mt.prototype.getAccessibleNameAndRole=function(jt){var Rt=jt.getAttribute("labelledby")||jt.getAttribute("aria-label"),zt=jt.getAttribute("role"),Xt=(0,dt.default)(jt.tagName);return yt.default.forEach(function(Jt){var Kt,Zt;if(!zt){var dn=Jt[0],An=Jt[2];if(dn===Xt){if(An)try{for(var En=et(An),yn=En.next();!yn.done;yn=En.next()){var jn=yn.value;if(jt.getAttribute(jn[0])!==jn[1])return}}catch(Vn){Kt={error:Vn}}finally{try{yn&&!yn.done&&(Zt=En.return)&&Zt.call(En)}finally{if(Kt)throw Kt.error}}zt=Jt[1]}}}),{accessibleName:Rt||jt.getAttribute("title")||"",accessibleRole:zt||"generic"}},Mt.prototype.bindEvent=function(){var jt=this;window.addEventListener("resize",this.redraw),window.addEventListener("scroll",this.redraw),this.on("optionChange",function(){return jt.redraw()})},Mt.prototype.rectToPath=function(jt){var Rt=jt.left,zt=jt.top,Xt=jt.width,Jt=jt.height,Kt=[];return Kt.push("M",Rt,zt),Kt.push("L",Rt+Xt,zt),Kt.push("L",Rt+Xt,zt+Jt),Kt.push("L",Rt,zt+Jt),Kt.push("Z"),Kt},Mt}(rt.default);_.default=St,b.exports=St,b.exports.default=St;var xt=/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,bt=/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*(?:\.\d+)?)\)$/;function At(Ct){return(0,vt.default)(Ct)?Ct:Ct.a?"rgba(".concat(Ct.r,", ").concat(Ct.g,", ").concat(Ct.b,", ").concat(Ct.a,")"):"rgb(".concat(Ct.r,", ").concat(Ct.g,", ").concat(Ct.b,")")}function _t(Ct,Mt,jt){jt===void 0&&(jt=!1);var Rt={};return(0,ut.default)(Mt,function(zt){var Xt,Jt=Ct[zt==="text-opacity"?"color":zt];Jt&&(Xt=Jt,(xt.test(Xt)||bt.test(Xt))&&(Jt=function(Kt){var Zt=ht.default.parse(Kt),dn=Zt.val[3]||1;return Zt.val=Zt.val.slice(0,3),Zt.val.push(Math.round(255*dn)),"#"+(0,st.default)(ft.default.encode(Zt.val))}(Jt),zt==="text-opacity"&&(Jt=Jt.slice(7),Jt=ft.default.decode(Jt)[0]/255)),jt&&(zt=(0,pt.default)(zt)),Rt[zt]=Jt)}),Rt}},9706:function(b,_){var d=this&&this.__read||function(bt,At){var _t=typeof Symbol=="function"&&bt[Symbol.iterator];if(!_t)return bt;var Ct,Mt,jt=_t.call(bt),Rt=[];try{for(;(At===void 0||At-- >0)&&!(Ct=jt.next()).done;)Rt.push(Ct.value)}catch(zt){Mt={error:zt}}finally{try{Ct&&!Ct.done&&(_t=jt.return)&&_t.call(jt)}finally{if(Mt)throw Mt.error}}return Rt},k=this&&this.__values||function(bt){var At=typeof Symbol=="function"&&Symbol.iterator,_t=At&&bt[At],Ct=0;if(_t)return _t.call(bt);if(bt&&typeof bt.length=="number")return{next:function(){return bt&&Ct>=bt.length&&(bt=void 0),{value:bt&&bt[Ct++],done:!bt}}};throw new TypeError(At?"Object is not iterable.":"Symbol.iterator is not defined.")};function j(bt,At){var _t=bt[3];return[(1-_t)*At[0]+_t*bt[0],(1-_t)*At[1]+_t*bt[1],(1-_t)*At[2]+_t*bt[2],_t+At[3]*(1-_t)]}function $(bt){var At=d(bt,3),_t=At[0],Ct=At[1],Mt=At[2];return .2126*(_t<=.03928?_t/12.92:Math.pow((_t+.055)/1.055,2.4))+.7152*(Ct<=.03928?Ct/12.92:Math.pow((Ct+.055)/1.055,2.4))+.0722*(Mt<=.03928?Mt/12.92:Math.pow((Mt+.055)/1.055,2.4))}Object.defineProperty(_,"__esModule",{value:!0}),_.getContrastThreshold=_.isLargeFont=_.getAPCAThreshold=_.desiredLuminanceAPCA=_.contrastRatioByLuminanceAPCA=_.contrastRatioAPCA=_.luminanceAPCA=_.contrastRatio=_.luminance=_.rgbaToHsla=_.blendColors=void 0,_.blendColors=j,_.rgbaToHsla=function(bt){var At=d(bt,4),_t=At[0],Ct=At[1],Mt=At[2],jt=At[3],Rt=Math.max(_t,Ct,Mt),zt=Math.min(_t,Ct,Mt),Xt=Rt-zt,Jt=Rt+zt,Kt=.5*Jt;return[zt===Rt?0:_t===Rt?(.16666666666666666*(Ct-Mt)/Xt+1)%1:Ct===Rt?.16666666666666666*(Mt-_t)/Xt+.3333333333333333:.16666666666666666*(_t-Ct)/Xt+.6666666666666666,Kt===0||Kt===1?0:Kt<=.5?Xt/Jt:Xt/(2-Jt),Kt,jt]},_.luminance=$,_.contrastRatio=function(bt,At){var _t=$(j(bt,At)),Ct=$(At);return(Math.max(_t,Ct)+.05)/(Math.min(_t,Ct)+.05)};var et=2.4,tt=.55,rt=.58,nt=.62,ot=.57,at=.03,it=1.45,dt=1.25,ut=1.25,ht=5e-4,ft=.078,st=12.82051282051282,ct=.06,pt=.001;function lt(bt){var At=d(bt,3),_t=At[0],Ct=At[1],Mt=At[2];return .2126729*Math.pow(_t,et)+.7151522*Math.pow(Ct,et)+.072175*Math.pow(Mt,et)}function wt(bt){return bt>at?bt:bt+Math.pow(at-bt,it)}function yt(bt,At){if(bt=wt(bt),At=wt(At),Math.abs(bt-At)=bt?(_t=(Math.pow(At,tt)-Math.pow(bt,rt))*dt)-pt?0:_t>-ft?_t-_t*st*ct:_t+ct)}_.luminanceAPCA=lt,_.contrastRatioAPCA=function(bt,At){return yt(lt(bt),lt(At))},_.contrastRatioByLuminanceAPCA=yt,_.desiredLuminanceAPCA=function(bt,At,_t){function Ct(){return _t?Math.pow(Math.abs(Math.pow(bt,nt)-(-At-ct)/ut),1/ot):Math.pow(Math.abs(Math.pow(bt,tt)-(At+ct)/dt),1/rt)}bt=wt(bt),At/=100;var Mt=Ct();return(Mt<0||Mt>1)&&(_t=!_t,Mt=Ct()),Mt};var vt=[[12,-1,-1,-1,-1,100,90,80,-1,-1],[14,-1,-1,-1,100,90,80,60,60,-1],[16,-1,-1,100,90,80,60,55,50,50],[18,-1,-1,90,80,60,55,50,40,40],[24,-1,100,80,60,55,50,40,38,35],[30,-1,90,70,55,50,40,38,35,40],[36,-1,80,60,50,40,38,35,30,25],[48,100,70,55,40,38,35,30,25,20],[60,90,60,50,38,35,30,25,20,20],[72,80,55,40,35,30,25,20,20,20],[96,70,50,35,30,25,20,20,20,20],[120,60,40,30,25,20,20,20,20,20]];function St(bt,At){var _t=72*parseFloat(bt.replace("px",""))/96;return["bold","bolder","600","700","800","900"].indexOf(At)!==-1?_t>=14:_t>=18}vt.reverse(),_.getAPCAThreshold=function(bt,At){var _t,Ct,Mt,jt,Rt=parseFloat(bt.replace("px","")),zt=parseFloat(At);try{for(var Xt=k(vt),Jt=Xt.next();!Jt.done;Jt=Xt.next()){var Kt=d(Jt.value),Zt=Kt[0],dn=Kt.slice(1);if(Rt>=Zt)try{for(var An=(Mt=void 0,k([900,800,700,600,500,400,300,200,100].entries())),En=An.next();!En.done;En=An.next()){var yn=d(En.value,2),jn=yn[0];if(zt>=yn[1]){var Vn=dn[dn.length-1-jn];return Vn===-1?null:Vn}}}catch(rn){Mt={error:rn}}finally{try{En&&!En.done&&(jt=An.return)&&jt.call(An)}finally{if(Mt)throw Mt.error}}}}catch(rn){_t={error:rn}}finally{try{Jt&&!Jt.done&&(Ct=Xt.return)&&Ct.call(Xt)}finally{if(_t)throw _t.error}}return null},_.isLargeFont=St;var xt={largeFont:{aa:3,aaa:4.5},normalFont:{aa:4.5,aaa:7}};_.getContrastThreshold=function(bt,At){return St(bt,At)?xt.largeFont:xt.normalFont}},9434:function(b,_){var d=this&&this.__values||function(nt){var ot=typeof Symbol=="function"&&Symbol.iterator,at=ot&&nt[ot],it=0;if(at)return at.call(nt);if(nt&&typeof nt.length=="number")return{next:function(){return nt&&it>=nt.length&&(nt=void 0),{value:nt&&nt[it++],done:!nt}}};throw new TypeError(ot?"Object is not iterable.":"Symbol.iterator is not defined.")},k=this&&this.__read||function(nt,ot){var at=typeof Symbol=="function"&&nt[Symbol.iterator];if(!at)return nt;var it,dt,ut=at.call(nt),ht=[];try{for(;(ot===void 0||ot-- >0)&&!(it=ut.next()).done;)ht.push(it.value)}catch(ft){dt={error:ft}}finally{try{it&&!it.done&&(at=ut.return)&&at.call(ut)}finally{if(dt)throw dt.error}}return ht},j=this&&this.__spreadArray||function(nt,ot,at){if(at||arguments.length===2)for(var it,dt=0,ut=ot.length;dtat&&(nt=at),nt},_.adoptStyleSheet=rt},1521:function(b,_,d){var k=this&&this.__values||function(st){var ct=typeof Symbol=="function"&&Symbol.iterator,pt=ct&&st[ct],lt=0;if(pt)return pt.call(st);if(st&&typeof st.length=="number")return{next:function(){return st&<>=st.length&&(st=void 0),{value:st&&st[lt++],done:!st}}};throw new TypeError(ct?"Object is not iterable.":"Symbol.iterator is not defined.")},j=this&&this.__read||function(st,ct){var pt=typeof Symbol=="function"&&st[Symbol.iterator];if(!pt)return st;var lt,wt,yt=pt.call(st),vt=[];try{for(;(ct===void 0||ct-- >0)&&!(lt=yt.next()).done;)vt.push(lt.value)}catch(St){wt={error:St}}finally{try{lt&&!lt.done&&(pt=yt.return)&&pt.call(yt)}finally{if(wt)throw wt.error}}return vt},$=this&&this.__spreadArray||function(st,ct,pt){if(pt||arguments.length===2)for(var lt,wt=0,yt=ct.length;wtAn&&jnEn,xn=Rt-dn;xn=(0,rt.constrainNumber)(xn,Kt,At-zt-Kt);var fn=bt.minY-Jt-Xt,Sn=!0;fn<0?(fn=Math.min(_t-Xt,bt.maxY+Jt),Sn=!1):bt.minY>_t&&(fn=_t-Jt-Xt);var bn=xn>=bt.minX&&xn+zt<=bt.maxX&&fn>=bt.minY&&fn+Xt<=bt.maxY,hn=xnbt.minX&&fnbt.minY;if(hn&&!bn)return void(Mt.style.display="none");if(Mt.style.top=fn+"px",Mt.style.left=xn+"px",!rn){var _n=(0,rt.createChild)(Mt,"div","tooltip-arrow");_n.style.clipPath=Sn?"polygon(0 0, 100% 0, 50% 100%)":"polygon(50% 0, 0 100%, 100% 100%)",_n.style.top=(Sn?Xt-1:-Jt)+"px",_n.style.left=Rt-xn+"px"}}(this.tooltip,st.elementInfo,st.colorFormat,ct,this.canvasWidth,this.canvasHeight)),this.context.restore(),{bounds:ct}},ft.prototype.drawAxis=function(st,ct,pt){st.save();var lt=this.pageZoomFactor*this.pageScaleFactor*this.emulationScaleFactor,wt=this.scrollX*this.pageScaleFactor,yt=this.scrollY*this.pageScaleFactor;function vt(zt){return Math.round(zt*lt)}function St(zt){return Math.round(zt/lt)}var xt=this.canvasWidth/lt,bt=this.canvasHeight/lt,At=50;st.save(),st.fillStyle=dt,pt?st.fillRect(0,vt(bt)-15,vt(xt),vt(bt)):st.fillRect(0,0,vt(xt),15),st.globalCompositeOperation="destination-out",st.fillStyle="red",ct?st.fillRect(vt(xt)-15,0,vt(xt),vt(bt)):st.fillRect(0,0,15,vt(bt)),st.restore(),st.fillStyle=dt,ct?st.fillRect(vt(xt)-15,0,vt(xt),vt(bt)):st.fillRect(0,0,15,vt(bt)),st.lineWidth=1,st.strokeStyle=it,st.fillStyle=it,st.save(),st.translate(-wt,.5-yt);for(var _t=bt+St(yt),Ct=100;Ct<_t;Ct+=100)st.save(),st.translate(wt,vt(Ct)),st.rotate(-Math.PI/2),st.fillText(String(Ct),2,ct?vt(xt)-7:13),st.restore();st.translate(.5,-.5);for(var Mt=xt+St(wt),jt=100;jt]*>/g.test(wt))try{var yt=tt.default.parse(wt);return dt(yt,function(vt){vt.attrs&&vt.attrs.class&&(vt.attrs.class=lt(vt.attrs.class))}),tt.default.stringify(yt)}catch{return lt(wt)}return lt(wt)}};var ut,ht="ontouchstart"in et.default,ft={start:"touchstart",move:"touchmove",end:"touchend"},st={start:"mousedown",move:"mousemove",end:"mouseup"};_.drag=function(ct){return ht?ft[ct]:st[ct]},_.eventClient=function(ct,pt){var lt=ct==="x"?"clientX":"clientY";return pt[lt]?pt[lt]:pt.changedTouches?pt.changedTouches[0][lt]:0},_.eventPage=function(ct,pt){var lt=ct==="x"?"pageX":"pageY";return pt[lt]?pt[lt]:pt.changedTouches?pt.changedTouches[0][lt]:0},_.measuredScrollbarWidth=function(){if((0,rt.default)(ut))return ut;if(!document)return 16;var ct=document.createElement("div"),pt=document.createElement("div");return ct.setAttribute("style","display: block; width: 100px; height: 100px; overflow: scroll;"),pt.setAttribute("style","height: 200px"),ct.appendChild(pt),document.body.appendChild(ct),ut=ct.offsetWidth-ct.clientWidth,document.body.removeChild(ct),ut},_.hasVerticalScrollbar=function(ct){return ct.scrollHeight>ct.offsetHeight},_.executeAfterTransition=function(ct,pt){if((0,it.default)(ct))return pt();var lt=function(wt){wt.target===ct&&(ct.removeEventListener("transitionend",lt),pt())};ct.addEventListener("transitionend",lt)},_.pxToNum=function(ct){return(0,ot.default)(ct.replace("px",""))},_.getPlatform=function(){var ct=(0,at.default)();return ct==="os x"?"mac":ct},_.resetCanvasSize=function(ct){ct.width=Math.round(ct.offsetWidth*window.devicePixelRatio),ct.height=Math.round(ct.offsetHeight*window.devicePixelRatio)}},6093:function(b,_,d){var k,j=this&&this.__extends||(k=function(it,dt){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ut,ht){ut.__proto__=ht}||function(ut,ht){for(var ft in ht)Object.prototype.hasOwnProperty.call(ht,ft)&&(ut[ft]=ht[ft])},k(it,dt)},function(it,dt){if(typeof dt!="function"&&dt!==null)throw new TypeError("Class extends value "+String(dt)+" is not a constructor or null");function ut(){this.constructor=it}k(it,dt),it.prototype=dt===null?Object.create(dt):(ut.prototype=dt.prototype,new ut)}),$=this&&this.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(_,"__esModule",{value:!0});var et=$(d(1512)),tt=$(d(5229)),rt=$(d(2244)),nt=$(d(8613)),ot=function(it){function dt(ut,ht){ht===void 0&&(ht={});var ft=it.call(this,ut,{compName:"notification"},ht)||this;return ft.notifications=[],ft.initOptions(ht,{position:{x:"right",y:"bottom"},duration:2e3}),ft.initTpl(),ft}return j(dt,it),dt.prototype.notify=function(ut,ht){var ft=this;ht===void 0&&(ht={duration:this.options.duration});var st=new at(this,ut);this.notifications.push(st),this.add(st),setTimeout(function(){return ft.remove(st.id)},ht.duration)},dt.prototype.dismissAll=function(){for(var ut=this.notifications,ht=ut[0];ht;)this.remove(ht.id),ht=ut[0]},dt.prototype.add=function(ut){this.container.appendChild(ut.container)},dt.prototype.remove=function(ut){var ht=this.notifications,ft=(0,rt.default)(ht,function(ct){return ct.id===ut});if(ft){ft.destroy();var st=ht.indexOf(ft);ht.splice(st,1)}},dt.prototype.initTpl=function(){var ut=this.$container,ht=this.options.position,ft=ht.x,st=ht.y,ct="flex-end",pt="flex-end";switch(ft){case"center":pt="center";break;case"left":pt="flex-start"}st==="top"&&(ct="flex-start"),ut.attr("style","justify-content: ".concat(ct,"; align-items: ").concat(pt))},dt}($(d(5404)).default);_.default=ot;var at=function(){function it(dt,ut){this.container=(0,nt.default)("div"),this.$container=(0,et.default)(this.container),this.notification=dt,this.content=ut,this.id=(0,tt.default)("luna-notification-"),this.$container.attr({id:this.id,class:dt.c("item ".concat(dt.getOption("position").y==="bottom"?"lower":"upper"))}),this.initTpl()}return it.prototype.destroy=function(){this.$container.remove()},it.prototype.initTpl=function(){this.$container.html(this.notification.c('
    '.concat(this.content,"
    ")))},it}();b.exports=ot,b.exports.default=ot},5404:function(b,_,d){var k,j=this&&this.__extends||(k=function(ut,ht){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ft,st){ft.__proto__=st}||function(ft,st){for(var ct in st)Object.prototype.hasOwnProperty.call(st,ct)&&(ft[ct]=st[ct])},k(ut,ht)},function(ut,ht){if(typeof ht!="function"&&ht!==null)throw new TypeError("Class extends value "+String(ht)+" is not a constructor or null");function ft(){this.constructor=ut}k(ut,ht),ut.prototype=ht===null?Object.create(ht):(ft.prototype=ht.prototype,new ft)}),$=this&&this.__importDefault||function(ut){return ut&&ut.__esModule?ut:{default:ut}};Object.defineProperty(_,"__esModule",{value:!0});var et=$(d(1443)),tt=$(d(1512)),rt=d(164),nt=$(d(3783)),ot=$(d(6329)),at=$(d(4193)),it=$(d(5852)),dt=function(ut){function ht(ft,st,ct){var pt=st.compName,lt=(ct===void 0?{}:ct).theme,wt=lt===void 0?"light":lt,yt=ut.call(this)||this;return yt.subComponents=[],yt.compName=pt,yt.c=(0,rt.classPrefix)(pt),yt.options={},yt.container=ft,yt.$container=(0,tt.default)(ft),yt.$container.addClass(["luna-".concat(pt),yt.c("platform-".concat((0,rt.getPlatform)()))]),yt.on("optionChange",function(vt,St,xt){var bt=yt.c;vt==="theme"&&(yt.$container.rmClass(bt("theme-".concat(xt))).addClass(bt("theme-".concat(St))),(0,nt.default)(yt.subComponents,function(At){return At.setOption("theme",St)}))}),yt.setOption("theme",wt),yt}return j(ht,ut),ht.prototype.destroy=function(){this.destroySubComponents();var ft=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(ft("platform-".concat((0,rt.getPlatform)()))).rmClass(ft("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()},ht.prototype.setOption=function(ft,st){var ct=this,pt=this.options,lt={};typeof ft=="string"?lt[ft]=st:lt=ft,(0,nt.default)(lt,function(wt,yt){var vt=pt[yt];pt[yt]=wt,ct.emit("optionChange",yt,wt,vt)})},ht.prototype.getOption=function(ft){return this.options[ft]},ht.prototype.addSubComponent=function(ft){ft.setOption("theme",this.options.theme),this.subComponents.push(ft)},ht.prototype.removeSubComponent=function(ft){(0,it.default)(this.subComponents,function(st){return st===ft})},ht.prototype.destroySubComponents=function(){(0,nt.default)(this.subComponents,function(ft){return ft.destroy()}),this.subComponents=[]},ht.prototype.initOptions=function(ft,st){st===void 0&&(st={}),(0,at.default)(ft,st),(0,ot.default)(this.options,ft)},ht.prototype.find=function(ft){return this.$container.find(this.c(ft))},ht}(et.default);_.default=dt},164:function(b,_,d){var k=this&&this.__importDefault||function(ct){return ct&&ct.__esModule?ct:{default:ct}};Object.defineProperty(_,"__esModule",{value:!0}),_.resetCanvasSize=_.getPlatform=_.pxToNum=_.executeAfterTransition=_.hasVerticalScrollbar=_.measuredScrollbarWidth=_.eventClient=_.drag=_.classPrefix=void 0;var j=k(d(2461)),$=k(d(4331)),et=k(d(5610)),tt=k(d(7483)),rt=k(d(3990)),nt=k(d(6341)),ot=k(d(3875)),at=k(d(6954)),it=k(d(9585));function dt(ct,pt){for(var lt=0,wt=ct.length;lt]*>/g.test(wt))try{var yt=tt.default.parse(wt);return dt(yt,function(vt){vt.attrs&&vt.attrs.class&&(vt.attrs.class=lt(vt.attrs.class))}),tt.default.stringify(yt)}catch{return lt(wt)}return lt(wt)}};var ut,ht="ontouchstart"in et.default,ft={start:"touchstart",move:"touchmove",end:"touchend"},st={start:"mousedown",move:"mousemove",end:"mouseup"};_.drag=function(ct){return ht?ft[ct]:st[ct]},_.eventClient=function(ct,pt){var lt=ct==="x"?"clientX":"clientY";return pt[lt]?pt[lt]:pt.changedTouches?pt.changedTouches[0][lt]:0},_.measuredScrollbarWidth=function(){if((0,rt.default)(ut))return ut;if(!document)return 16;var ct=document.createElement("div"),pt=document.createElement("div");return ct.setAttribute("style","display: block; width: 100px; height: 100px; overflow: scroll;"),pt.setAttribute("style","height: 200px"),ct.appendChild(pt),document.body.appendChild(ct),ut=ct.offsetWidth-ct.clientWidth,document.body.removeChild(ct),ut},_.hasVerticalScrollbar=function(ct){return ct.scrollHeight>ct.offsetHeight},_.executeAfterTransition=function(ct,pt){if((0,it.default)(ct))return pt();var lt=function(wt){wt.target===ct&&(ct.removeEventListener("transitionend",lt),pt())};ct.addEventListener("transitionend",lt)},_.pxToNum=function(ct){return(0,ot.default)(ct.replace("px",""))},_.getPlatform=function(){var ct=(0,at.default)();return ct==="os x"?"mac":ct},_.resetCanvasSize=function(ct){ct.width=Math.round(ct.offsetWidth*window.devicePixelRatio),ct.height=Math.round(ct.offsetHeight*window.devicePixelRatio)}},8169:function(b,_,d){d.r(_),d.d(_,{default:function(){return ft}});var k={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},j=/([astvzqmhlc])([^astvzqmhlc]*)/gi,$=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi,et=function(st){var ct=[],pt=String(st).trim();return pt[0]!=="M"&&pt[0]!=="m"||pt.replace(j,function(lt,wt,yt){var vt=wt.toLowerCase(),St=function(bt){var At=bt.match($);return At?At.map(Number):[]}(yt),xt=wt;if(vt==="m"&&St.length>2&&(ct.push([xt].concat(St.splice(0,2))),vt="l",xt=xt==="m"?"l":"L"),St.length=k[vt]&&St.length&&k[vt];)ct.push([xt].concat(St.splice(0,k[vt])));return""}),ct};function tt(st,ct){for(var pt=0;pt>6*st)+ct);st>0;)pt+=it(128|63&ft>>6*(st-1)),st--;return pt}function ut(ft){for(;;){if($>=et&&nt){if(ft)return ht();throw new Error("Invalid byte index")}if($===et)return!1;var st=j[$];if($++,nt){if(stat){if(ft)return $--,ht();throw new Error("Invalid continuation byte")}if(ot=128,at=191,tt=tt<<6|63&st,++rt===nt){var ct=tt;return tt=0,nt=0,rt=0,ct}}else{if(!(128&st))return st;if((224&st)==192)nt=1,tt=31&st;else if((240&st)==224)st===224&&(ot=160),st===237&&(at=159),nt=2,tt=15&st;else{if((248&st)!=240){if(ft)return ht();throw new Error("Invalid UTF-8 detected")}st===240&&(ot=144),st===244&&(at=143),nt=3,tt=7&st}}}}function ht(){var ft=$-rt-1;return $=ft+1,tt=0,nt=0,rt=0,ot=128,at=191,j[ft]}b.exports=_},5936:function(b,_,d){var k=d(3366);_=function(){var et=k(16);return et[6]=15&et[6]|64,et[8]=63&et[8]|128,j[et[0]]+j[et[1]]+j[et[2]]+j[et[3]]+"-"+j[et[4]]+j[et[5]]+"-"+j[et[6]]+j[et[7]]+"-"+j[et[8]]+j[et[9]]+"-"+j[et[10]]+j[et[11]]+j[et[12]]+j[et[13]]+j[et[14]]+j[et[15]]};for(var j=[],$=0;$<256;$++)j[$]=($+256).toString(16).substr(1);b.exports=_},2578:function(b,_,d){var k=d(3783);_=function(j){var $=[];return k(j,function(et){$.push(et)}),$},b.exports=_},3514:function(b,_,d){var k=d(8573),j=d(9882),$=d(4331),et=d(3783),tt=d(2461),rt=d(9433);_=function(){var nt=k("viewport");if(!nt)return 1;nt=tt(nt.split(","),function(ut){return $(ut)});var ot=.25,at=5,it=1;et(nt,function(ut){var ht=(ut=ut.split("="))[0];ut=ut[1],ht==="initial-scale"&&(it=+ut),ht==="maximum-scale"&&(at=+ut),ht==="minimum-scale"&&(ot=+ut)});var dt=j(it,ot,at);return rt(dt)?1:dt},b.exports=_},5491:function(b,_,d){var k=d(4198);_=function(j,$){return k($,j)},b.exports=_},8933:function(b,_){_=function(d){for(var k=[],j=document.evaluate(d,document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),$=0;$=Ct.length&&(Ct=void 0),{value:Ct&&Ct[Rt++],done:!Ct}}};throw new TypeError(Mt?"Object is not iterable.":"Symbol.iterator is not defined.")},tt=this&&this.__importDefault||function(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}};Object.defineProperty(_,"__esModule",{value:!0});var rt=tt(d(1160)),nt=d(7669),ot=d(2062),at=tt(d(242)),it=tt(d(2439)),dt=tt(d(3063)),ut=tt(d(3783)),ht=tt(d(3009)),ft=tt(d(5044)),st=tt(d(4502)),ct=tt(d(6329)),pt=tt(d(7494)),lt=tt(d(6341)),wt=tt(d(3875)),yt=tt(d(3577)),vt=tt(d(6768));d(8169);var St=function(Ct){function Mt(jt,Rt){Rt===void 0&&(Rt={});var zt=Ct.call(this,jt,{compName:"dom-highlighter"},Rt)||this;return zt.overlay=new nt.HighlightOverlay(window),zt.reset=function(){var Xt=document.documentElement.clientWidth,Jt=document.documentElement.clientHeight;zt.overlay.reset({viewportSize:{width:Xt,height:Jt},deviceScaleFactor:1,pageScaleFactor:1,pageZoomFactor:1,emulationScaleFactor:1,scrollX:window.scrollX,scrollY:window.scrollY})},zt.initOptions(Rt,{showRulers:!1,showExtensionLines:!1,showInfo:!0,showStyles:!0,showAccessibilityInfo:!0,colorFormat:"hex",contentColor:"rgba(111, 168, 220, .66)",paddingColor:"rgba(147, 196, 125, .55)",borderColor:"rgba(255, 229, 153, .66)",marginColor:"rgba(246, 178, 107, .66)",monitorResize:!0}),zt.overlay.setContainer(jt),zt.overlay.setPlatform("mac"),zt.redraw=(0,it.default)(function(){zt.reset(),zt.draw()},16),zt.redraw(),zt.bindEvent(),zt}return j(Mt,Ct),Mt.prototype.highlight=function(jt,Rt){Rt&&(0,ct.default)(this.options,Rt),this.target=jt,jt instanceof HTMLElement&&this.options.monitorResize&&(this.resizeSensor&&this.resizeSensor.destroy(),this.resizeSensor=new at.default(jt),this.resizeSensor.addListener(this.redraw)),this.redraw()},Mt.prototype.hide=function(){this.target=null,this.redraw()},Mt.prototype.intercept=function(jt){this.interceptor=jt},Mt.prototype.destroy=function(){window.removeEventListener("resize",this.redraw),window.removeEventListener("scroll",this.redraw),this.resizeSensor&&this.resizeSensor.destroy(),Ct.prototype.destroy.call(this)},Mt.prototype.draw=function(){var jt=this.target;jt&&(jt instanceof Text?this.drawText(jt):this.drawElement(jt))},Mt.prototype.drawText=function(jt){var Rt=this.options,zt=document.createRange();zt.selectNode(jt);var Xt=zt.getBoundingClientRect(),Jt=Xt.left,Kt=Xt.top,Zt=Xt.width,dn=Xt.height;zt.detach();var An={paths:[{path:this.rectToPath({left:Jt,top:Kt,width:Zt,height:dn}),fillColor:At(Rt.contentColor),name:"content"}],showExtensionLines:Rt.showExtensionLines,showRulers:Rt.showRulers};Rt.showInfo&&(An.elementInfo={tagName:"#text",nodeWidth:Zt,nodeHeight:dn}),this.overlay.drawHighlight(An)},Mt.prototype.drawElement=function(jt){var Rt={paths:this.getPaths(jt),showExtensionLines:this.options.showExtensionLines,showRulers:this.options.showRulers,colorFormat:this.options.colorFormat};if(this.options.showInfo&&(Rt.elementInfo=this.getElementInfo(jt)),this.interceptor){var zt=this.interceptor(Rt);zt&&(Rt=zt)}this.overlay.drawHighlight(Rt)},Mt.prototype.getPaths=function(jt){var Rt=this.options,zt=window.getComputedStyle(jt),Xt=jt.getBoundingClientRect(),Jt=Xt.left,Kt=Xt.top,Zt=Xt.width,dn=Xt.height,An=function(Tn){return(0,ot.pxToNum)(zt.getPropertyValue(Tn))},En=An("margin-left"),yn=An("margin-right"),jn=An("margin-top"),Vn=An("margin-bottom"),rn=An("border-left-width"),xn=An("border-right-width"),fn=An("border-top-width"),Sn=An("border-bottom-width"),bn=An("padding-left"),hn=An("padding-right"),_n=An("padding-top"),ln=An("padding-bottom");return[{path:this.rectToPath({left:Jt+rn+bn,top:Kt+fn+_n,width:Zt-rn-bn-xn-hn,height:dn-fn-_n-Sn-ln}),fillColor:At(Rt.contentColor),name:"content"},{path:this.rectToPath({left:Jt+rn,top:Kt+fn,width:Zt-rn-xn,height:dn-fn-Sn}),fillColor:At(Rt.paddingColor),name:"padding"},{path:this.rectToPath({left:Jt,top:Kt,width:Zt,height:dn}),fillColor:At(Rt.borderColor),name:"border"},{path:this.rectToPath({left:Jt-En,top:Kt-jn,width:Zt+En+yn,height:dn+jn+Vn}),fillColor:At(Rt.marginColor),name:"margin"}]},Mt.prototype.getElementInfo=function(jt){var Rt=jt.getBoundingClientRect(),zt=Rt.width,Xt=Rt.height,Jt=jt.getAttribute("class")||"";Jt=Jt.split(/\s+/).map(function(Zt){return"."+Zt}).join("");var Kt={tagName:(0,dt.default)(jt.tagName),className:Jt,idValue:jt.id,nodeWidth:zt,nodeHeight:Xt};return this.options.showStyles&&(Kt.style=this.getStyles(jt)),this.options.showAccessibilityInfo&&(0,ct.default)(Kt,this.getAccessibilityInfo(jt)),Kt},Mt.prototype.getStyles=function(jt){for(var Rt=window.getComputedStyle(jt),zt=!1,Xt=jt.childNodes,Jt=0,Kt=Xt.length;Jt-1)},Mt.prototype.getAccessibleNameAndRole=function(jt){var Rt=jt.getAttribute("labelledby")||jt.getAttribute("aria-label"),zt=jt.getAttribute("role"),Xt=(0,dt.default)(jt.tagName);return yt.default.forEach(function(Jt){var Kt,Zt;if(!zt){var dn=Jt[0],An=Jt[2];if(dn===Xt){if(An)try{for(var En=et(An),yn=En.next();!yn.done;yn=En.next()){var jn=yn.value;if(jt.getAttribute(jn[0])!==jn[1])return}}catch(Vn){Kt={error:Vn}}finally{try{yn&&!yn.done&&(Zt=En.return)&&Zt.call(En)}finally{if(Kt)throw Kt.error}}zt=Jt[1]}}}),{accessibleName:Rt||jt.getAttribute("title")||"",accessibleRole:zt||"generic"}},Mt.prototype.bindEvent=function(){var jt=this;window.addEventListener("resize",this.redraw),window.addEventListener("scroll",this.redraw),this.on("optionChange",function(){return jt.redraw()})},Mt.prototype.rectToPath=function(jt){var Rt=jt.left,zt=jt.top,Xt=jt.width,Jt=jt.height,Kt=[];return Kt.push("M",Rt,zt),Kt.push("L",Rt+Xt,zt),Kt.push("L",Rt+Xt,zt+Jt),Kt.push("L",Rt,zt+Jt),Kt.push("Z"),Kt},Mt}(rt.default);_.default=St,b.exports=St,b.exports.default=St;var xt=/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,bt=/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*(?:\.\d+)?)\)$/;function At(Ct){return(0,vt.default)(Ct)?Ct:Ct.a?"rgba(".concat(Ct.r,", ").concat(Ct.g,", ").concat(Ct.b,", ").concat(Ct.a,")"):"rgb(".concat(Ct.r,", ").concat(Ct.g,", ").concat(Ct.b,")")}function _t(Ct,Mt,jt){jt===void 0&&(jt=!1);var Rt={};return(0,ut.default)(Mt,function(zt){var Xt,Jt=Ct[zt==="text-opacity"?"color":zt];Jt&&(Xt=Jt,(xt.test(Xt)||bt.test(Xt))&&(Jt=function(Kt){var Zt=ht.default.parse(Kt),dn=Zt.val[3]||1;return Zt.val=Zt.val.slice(0,3),Zt.val.push(Math.round(255*dn)),"#"+(0,st.default)(ft.default.encode(Zt.val))}(Jt),zt==="text-opacity"&&(Jt=Jt.slice(7),Jt=ft.default.decode(Jt)[0]/255)),jt&&(zt=(0,pt.default)(zt)),Rt[zt]=Jt)}),Rt}},9706:function(b,_){var d=this&&this.__read||function(bt,At){var _t=typeof Symbol=="function"&&bt[Symbol.iterator];if(!_t)return bt;var Ct,Mt,jt=_t.call(bt),Rt=[];try{for(;(At===void 0||At-- >0)&&!(Ct=jt.next()).done;)Rt.push(Ct.value)}catch(zt){Mt={error:zt}}finally{try{Ct&&!Ct.done&&(_t=jt.return)&&_t.call(jt)}finally{if(Mt)throw Mt.error}}return Rt},k=this&&this.__values||function(bt){var At=typeof Symbol=="function"&&Symbol.iterator,_t=At&&bt[At],Ct=0;if(_t)return _t.call(bt);if(bt&&typeof bt.length=="number")return{next:function(){return bt&&Ct>=bt.length&&(bt=void 0),{value:bt&&bt[Ct++],done:!bt}}};throw new TypeError(At?"Object is not iterable.":"Symbol.iterator is not defined.")};function j(bt,At){var _t=bt[3];return[(1-_t)*At[0]+_t*bt[0],(1-_t)*At[1]+_t*bt[1],(1-_t)*At[2]+_t*bt[2],_t+At[3]*(1-_t)]}function $(bt){var At=d(bt,3),_t=At[0],Ct=At[1],Mt=At[2];return .2126*(_t<=.03928?_t/12.92:Math.pow((_t+.055)/1.055,2.4))+.7152*(Ct<=.03928?Ct/12.92:Math.pow((Ct+.055)/1.055,2.4))+.0722*(Mt<=.03928?Mt/12.92:Math.pow((Mt+.055)/1.055,2.4))}Object.defineProperty(_,"__esModule",{value:!0}),_.getContrastThreshold=_.isLargeFont=_.getAPCAThreshold=_.desiredLuminanceAPCA=_.contrastRatioByLuminanceAPCA=_.contrastRatioAPCA=_.luminanceAPCA=_.contrastRatio=_.luminance=_.rgbaToHsla=_.blendColors=void 0,_.blendColors=j,_.rgbaToHsla=function(bt){var At=d(bt,4),_t=At[0],Ct=At[1],Mt=At[2],jt=At[3],Rt=Math.max(_t,Ct,Mt),zt=Math.min(_t,Ct,Mt),Xt=Rt-zt,Jt=Rt+zt,Kt=.5*Jt;return[zt===Rt?0:_t===Rt?(.16666666666666666*(Ct-Mt)/Xt+1)%1:Ct===Rt?.16666666666666666*(Mt-_t)/Xt+.3333333333333333:.16666666666666666*(_t-Ct)/Xt+.6666666666666666,Kt===0||Kt===1?0:Kt<=.5?Xt/Jt:Xt/(2-Jt),Kt,jt]},_.luminance=$,_.contrastRatio=function(bt,At){var _t=$(j(bt,At)),Ct=$(At);return(Math.max(_t,Ct)+.05)/(Math.min(_t,Ct)+.05)};var et=2.4,tt=.55,rt=.58,nt=.62,ot=.57,at=.03,it=1.45,dt=1.25,ut=1.25,ht=5e-4,ft=.078,st=12.82051282051282,ct=.06,pt=.001;function lt(bt){var At=d(bt,3),_t=At[0],Ct=At[1],Mt=At[2];return .2126729*Math.pow(_t,et)+.7151522*Math.pow(Ct,et)+.072175*Math.pow(Mt,et)}function wt(bt){return bt>at?bt:bt+Math.pow(at-bt,it)}function yt(bt,At){if(bt=wt(bt),At=wt(At),Math.abs(bt-At)=bt?(_t=(Math.pow(At,tt)-Math.pow(bt,rt))*dt)-pt?0:_t>-ft?_t-_t*st*ct:_t+ct)}_.luminanceAPCA=lt,_.contrastRatioAPCA=function(bt,At){return yt(lt(bt),lt(At))},_.contrastRatioByLuminanceAPCA=yt,_.desiredLuminanceAPCA=function(bt,At,_t){function Ct(){return _t?Math.pow(Math.abs(Math.pow(bt,nt)-(-At-ct)/ut),1/ot):Math.pow(Math.abs(Math.pow(bt,tt)-(At+ct)/dt),1/rt)}bt=wt(bt),At/=100;var Mt=Ct();return(Mt<0||Mt>1)&&(_t=!_t,Mt=Ct()),Mt};var vt=[[12,-1,-1,-1,-1,100,90,80,-1,-1],[14,-1,-1,-1,100,90,80,60,60,-1],[16,-1,-1,100,90,80,60,55,50,50],[18,-1,-1,90,80,60,55,50,40,40],[24,-1,100,80,60,55,50,40,38,35],[30,-1,90,70,55,50,40,38,35,40],[36,-1,80,60,50,40,38,35,30,25],[48,100,70,55,40,38,35,30,25,20],[60,90,60,50,38,35,30,25,20,20],[72,80,55,40,35,30,25,20,20,20],[96,70,50,35,30,25,20,20,20,20],[120,60,40,30,25,20,20,20,20,20]];function St(bt,At){var _t=72*parseFloat(bt.replace("px",""))/96;return["bold","bolder","600","700","800","900"].indexOf(At)!==-1?_t>=14:_t>=18}vt.reverse(),_.getAPCAThreshold=function(bt,At){var _t,Ct,Mt,jt,Rt=parseFloat(bt.replace("px","")),zt=parseFloat(At);try{for(var Xt=k(vt),Jt=Xt.next();!Jt.done;Jt=Xt.next()){var Kt=d(Jt.value),Zt=Kt[0],dn=Kt.slice(1);if(Rt>=Zt)try{for(var An=(Mt=void 0,k([900,800,700,600,500,400,300,200,100].entries())),En=An.next();!En.done;En=An.next()){var yn=d(En.value,2),jn=yn[0];if(zt>=yn[1]){var Vn=dn[dn.length-1-jn];return Vn===-1?null:Vn}}}catch(rn){Mt={error:rn}}finally{try{En&&!En.done&&(jt=An.return)&&jt.call(An)}finally{if(Mt)throw Mt.error}}}}catch(rn){_t={error:rn}}finally{try{Jt&&!Jt.done&&(Ct=Xt.return)&&Ct.call(Xt)}finally{if(_t)throw _t.error}}return null},_.isLargeFont=St;var xt={largeFont:{aa:3,aaa:4.5},normalFont:{aa:4.5,aaa:7}};_.getContrastThreshold=function(bt,At){return St(bt,At)?xt.largeFont:xt.normalFont}},9434:function(b,_){var d=this&&this.__values||function(nt){var ot=typeof Symbol=="function"&&Symbol.iterator,at=ot&&nt[ot],it=0;if(at)return at.call(nt);if(nt&&typeof nt.length=="number")return{next:function(){return nt&&it>=nt.length&&(nt=void 0),{value:nt&&nt[it++],done:!nt}}};throw new TypeError(ot?"Object is not iterable.":"Symbol.iterator is not defined.")},k=this&&this.__read||function(nt,ot){var at=typeof Symbol=="function"&&nt[Symbol.iterator];if(!at)return nt;var it,dt,ut=at.call(nt),ht=[];try{for(;(ot===void 0||ot-- >0)&&!(it=ut.next()).done;)ht.push(it.value)}catch(ft){dt={error:ft}}finally{try{it&&!it.done&&(at=ut.return)&&at.call(ut)}finally{if(dt)throw dt.error}}return ht},j=this&&this.__spreadArray||function(nt,ot,at){if(at||arguments.length===2)for(var it,dt=0,ut=ot.length;dtat&&(nt=at),nt},_.adoptStyleSheet=rt},1521:function(b,_,d){var k=this&&this.__values||function(st){var ct=typeof Symbol=="function"&&Symbol.iterator,pt=ct&&st[ct],lt=0;if(pt)return pt.call(st);if(st&&typeof st.length=="number")return{next:function(){return st&<>=st.length&&(st=void 0),{value:st&&st[lt++],done:!st}}};throw new TypeError(ct?"Object is not iterable.":"Symbol.iterator is not defined.")},j=this&&this.__read||function(st,ct){var pt=typeof Symbol=="function"&&st[Symbol.iterator];if(!pt)return st;var lt,wt,yt=pt.call(st),vt=[];try{for(;(ct===void 0||ct-- >0)&&!(lt=yt.next()).done;)vt.push(lt.value)}catch(St){wt={error:St}}finally{try{lt&&!lt.done&&(pt=yt.return)&&pt.call(yt)}finally{if(wt)throw wt.error}}return vt},$=this&&this.__spreadArray||function(st,ct,pt){if(pt||arguments.length===2)for(var lt,wt=0,yt=ct.length;wtAn&&jnEn,xn=Rt-dn;xn=(0,rt.constrainNumber)(xn,Kt,At-zt-Kt);var fn=bt.minY-Jt-Xt,Sn=!0;fn<0?(fn=Math.min(_t-Xt,bt.maxY+Jt),Sn=!1):bt.minY>_t&&(fn=_t-Jt-Xt);var bn=xn>=bt.minX&&xn+zt<=bt.maxX&&fn>=bt.minY&&fn+Xt<=bt.maxY,hn=xnbt.minX&&fnbt.minY;if(hn&&!bn)return void(Mt.style.display="none");if(Mt.style.top=fn+"px",Mt.style.left=xn+"px",!rn){var _n=(0,rt.createChild)(Mt,"div","tooltip-arrow");_n.style.clipPath=Sn?"polygon(0 0, 100% 0, 50% 100%)":"polygon(50% 0, 0 100%, 100% 100%)",_n.style.top=(Sn?Xt-1:-Jt)+"px",_n.style.left=Rt-xn+"px"}}(this.tooltip,st.elementInfo,st.colorFormat,ct,this.canvasWidth,this.canvasHeight)),this.context.restore(),{bounds:ct}},ft.prototype.drawAxis=function(st,ct,pt){st.save();var lt=this.pageZoomFactor*this.pageScaleFactor*this.emulationScaleFactor,wt=this.scrollX*this.pageScaleFactor,yt=this.scrollY*this.pageScaleFactor;function vt(zt){return Math.round(zt*lt)}function St(zt){return Math.round(zt/lt)}var xt=this.canvasWidth/lt,bt=this.canvasHeight/lt,At=50;st.save(),st.fillStyle=dt,pt?st.fillRect(0,vt(bt)-15,vt(xt),vt(bt)):st.fillRect(0,0,vt(xt),15),st.globalCompositeOperation="destination-out",st.fillStyle="red",ct?st.fillRect(vt(xt)-15,0,vt(xt),vt(bt)):st.fillRect(0,0,15,vt(bt)),st.restore(),st.fillStyle=dt,ct?st.fillRect(vt(xt)-15,0,vt(xt),vt(bt)):st.fillRect(0,0,15,vt(bt)),st.lineWidth=1,st.strokeStyle=it,st.fillStyle=it,st.save(),st.translate(-wt,.5-yt);for(var _t=bt+St(yt),Ct=100;Ct<_t;Ct+=100)st.save(),st.translate(wt,vt(Ct)),st.rotate(-Math.PI/2),st.fillText(String(Ct),2,ct?vt(xt)-7:13),st.restore();st.translate(.5,-.5);for(var Mt=xt+St(wt),jt=100;jt]*>/g.test(wt))try{var yt=tt.default.parse(wt);return dt(yt,function(vt){vt.attrs&&vt.attrs.class&&(vt.attrs.class=lt(vt.attrs.class))}),tt.default.stringify(yt)}catch{return lt(wt)}return lt(wt)}};var ut,ht="ontouchstart"in et.default,ft={start:"touchstart",move:"touchmove",end:"touchend"},st={start:"mousedown",move:"mousemove",end:"mouseup"};_.drag=function(ct){return ht?ft[ct]:st[ct]},_.eventClient=function(ct,pt){var lt=ct==="x"?"clientX":"clientY";return pt[lt]?pt[lt]:pt.changedTouches?pt.changedTouches[0][lt]:0},_.eventPage=function(ct,pt){var lt=ct==="x"?"pageX":"pageY";return pt[lt]?pt[lt]:pt.changedTouches?pt.changedTouches[0][lt]:0},_.measuredScrollbarWidth=function(){if((0,rt.default)(ut))return ut;if(!document)return 16;var ct=document.createElement("div"),pt=document.createElement("div");return ct.setAttribute("style","display: block; width: 100px; height: 100px; overflow: scroll;"),pt.setAttribute("style","height: 200px"),ct.appendChild(pt),document.body.appendChild(ct),ut=ct.offsetWidth-ct.clientWidth,document.body.removeChild(ct),ut},_.hasVerticalScrollbar=function(ct){return ct.scrollHeight>ct.offsetHeight},_.executeAfterTransition=function(ct,pt){if((0,it.default)(ct))return pt();var lt=function(wt){wt.target===ct&&(ct.removeEventListener("transitionend",lt),pt())};ct.addEventListener("transitionend",lt)},_.pxToNum=function(ct){return(0,ot.default)(ct.replace("px",""))},_.getPlatform=function(){var ct=(0,at.default)();return ct==="os x"?"mac":ct},_.resetCanvasSize=function(ct){ct.width=Math.round(ct.offsetWidth*window.devicePixelRatio),ct.height=Math.round(ct.offsetHeight*window.devicePixelRatio)}},6093:function(b,_,d){var k,j=this&&this.__extends||(k=function(it,dt){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ut,ht){ut.__proto__=ht}||function(ut,ht){for(var ft in ht)Object.prototype.hasOwnProperty.call(ht,ft)&&(ut[ft]=ht[ft])},k(it,dt)},function(it,dt){if(typeof dt!="function"&&dt!==null)throw new TypeError("Class extends value "+String(dt)+" is not a constructor or null");function ut(){this.constructor=it}k(it,dt),it.prototype=dt===null?Object.create(dt):(ut.prototype=dt.prototype,new ut)}),$=this&&this.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(_,"__esModule",{value:!0});var et=$(d(1512)),tt=$(d(5229)),rt=$(d(2244)),nt=$(d(8613)),ot=function(it){function dt(ut,ht){ht===void 0&&(ht={});var ft=it.call(this,ut,{compName:"notification"},ht)||this;return ft.notifications=[],ft.initOptions(ht,{position:{x:"right",y:"bottom"},duration:2e3}),ft.initTpl(),ft}return j(dt,it),dt.prototype.notify=function(ut,ht){var ft=this;ht===void 0&&(ht={duration:this.options.duration});var st=new at(this,ut);this.notifications.push(st),this.add(st),setTimeout(function(){return ft.remove(st.id)},ht.duration)},dt.prototype.dismissAll=function(){for(var ut=this.notifications,ht=ut[0];ht;)this.remove(ht.id),ht=ut[0]},dt.prototype.add=function(ut){this.container.appendChild(ut.container)},dt.prototype.remove=function(ut){var ht=this.notifications,ft=(0,rt.default)(ht,function(ct){return ct.id===ut});if(ft){ft.destroy();var st=ht.indexOf(ft);ht.splice(st,1)}},dt.prototype.initTpl=function(){var ut=this.$container,ht=this.options.position,ft=ht.x,st=ht.y,ct="flex-end",pt="flex-end";switch(ft){case"center":pt="center";break;case"left":pt="flex-start"}st==="top"&&(ct="flex-start"),ut.attr("style","justify-content: ".concat(ct,"; align-items: ").concat(pt))},dt}($(d(5404)).default);_.default=ot;var at=function(){function it(dt,ut){this.container=(0,nt.default)("div"),this.$container=(0,et.default)(this.container),this.notification=dt,this.content=ut,this.id=(0,tt.default)("luna-notification-"),this.$container.attr({id:this.id,class:dt.c("item ".concat(dt.getOption("position").y==="bottom"?"lower":"upper"))}),this.initTpl()}return it.prototype.destroy=function(){this.$container.remove()},it.prototype.initTpl=function(){this.$container.html(this.notification.c('
    '.concat(this.content,"
    ")))},it}();b.exports=ot,b.exports.default=ot},5404:function(b,_,d){var k,j=this&&this.__extends||(k=function(ut,ht){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ft,st){ft.__proto__=st}||function(ft,st){for(var ct in st)Object.prototype.hasOwnProperty.call(st,ct)&&(ft[ct]=st[ct])},k(ut,ht)},function(ut,ht){if(typeof ht!="function"&&ht!==null)throw new TypeError("Class extends value "+String(ht)+" is not a constructor or null");function ft(){this.constructor=ut}k(ut,ht),ut.prototype=ht===null?Object.create(ht):(ft.prototype=ht.prototype,new ft)}),$=this&&this.__importDefault||function(ut){return ut&&ut.__esModule?ut:{default:ut}};Object.defineProperty(_,"__esModule",{value:!0});var et=$(d(1443)),tt=$(d(1512)),rt=d(164),nt=$(d(3783)),ot=$(d(6329)),at=$(d(4193)),it=$(d(5852)),dt=function(ut){function ht(ft,st,ct){var pt=st.compName,lt=(ct===void 0?{}:ct).theme,wt=lt===void 0?"light":lt,yt=ut.call(this)||this;return yt.subComponents=[],yt.compName=pt,yt.c=(0,rt.classPrefix)(pt),yt.options={},yt.container=ft,yt.$container=(0,tt.default)(ft),yt.$container.addClass(["luna-".concat(pt),yt.c("platform-".concat((0,rt.getPlatform)()))]),yt.on("optionChange",function(vt,St,xt){var bt=yt.c;vt==="theme"&&(yt.$container.rmClass(bt("theme-".concat(xt))).addClass(bt("theme-".concat(St))),(0,nt.default)(yt.subComponents,function(At){return At.setOption("theme",St)}))}),yt.setOption("theme",wt),yt}return j(ht,ut),ht.prototype.destroy=function(){this.destroySubComponents();var ft=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(ft("platform-".concat((0,rt.getPlatform)()))).rmClass(ft("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()},ht.prototype.setOption=function(ft,st){var ct=this,pt=this.options,lt={};typeof ft=="string"?lt[ft]=st:lt=ft,(0,nt.default)(lt,function(wt,yt){var vt=pt[yt];pt[yt]=wt,ct.emit("optionChange",yt,wt,vt)})},ht.prototype.getOption=function(ft){return this.options[ft]},ht.prototype.addSubComponent=function(ft){ft.setOption("theme",this.options.theme),this.subComponents.push(ft)},ht.prototype.removeSubComponent=function(ft){(0,it.default)(this.subComponents,function(st){return st===ft})},ht.prototype.destroySubComponents=function(){(0,nt.default)(this.subComponents,function(ft){return ft.destroy()}),this.subComponents=[]},ht.prototype.initOptions=function(ft,st){st===void 0&&(st={}),(0,at.default)(ft,st),(0,ot.default)(this.options,ft)},ht.prototype.find=function(ft){return this.$container.find(this.c(ft))},ht}(et.default);_.default=dt},164:function(b,_,d){var k=this&&this.__importDefault||function(ct){return ct&&ct.__esModule?ct:{default:ct}};Object.defineProperty(_,"__esModule",{value:!0}),_.resetCanvasSize=_.getPlatform=_.pxToNum=_.executeAfterTransition=_.hasVerticalScrollbar=_.measuredScrollbarWidth=_.eventClient=_.drag=_.classPrefix=void 0;var j=k(d(2461)),$=k(d(4331)),et=k(d(5610)),tt=k(d(7483)),rt=k(d(3990)),nt=k(d(6341)),ot=k(d(3875)),at=k(d(6954)),it=k(d(9585));function dt(ct,pt){for(var lt=0,wt=ct.length;lt]*>/g.test(wt))try{var yt=tt.default.parse(wt);return dt(yt,function(vt){vt.attrs&&vt.attrs.class&&(vt.attrs.class=lt(vt.attrs.class))}),tt.default.stringify(yt)}catch{return lt(wt)}return lt(wt)}};var ut,ht="ontouchstart"in et.default,ft={start:"touchstart",move:"touchmove",end:"touchend"},st={start:"mousedown",move:"mousemove",end:"mouseup"};_.drag=function(ct){return ht?ft[ct]:st[ct]},_.eventClient=function(ct,pt){var lt=ct==="x"?"clientX":"clientY";return pt[lt]?pt[lt]:pt.changedTouches?pt.changedTouches[0][lt]:0},_.measuredScrollbarWidth=function(){if((0,rt.default)(ut))return ut;if(!document)return 16;var ct=document.createElement("div"),pt=document.createElement("div");return ct.setAttribute("style","display: block; width: 100px; height: 100px; overflow: scroll;"),pt.setAttribute("style","height: 200px"),ct.appendChild(pt),document.body.appendChild(ct),ut=ct.offsetWidth-ct.clientWidth,document.body.removeChild(ct),ut},_.hasVerticalScrollbar=function(ct){return ct.scrollHeight>ct.offsetHeight},_.executeAfterTransition=function(ct,pt){if((0,it.default)(ct))return pt();var lt=function(wt){wt.target===ct&&(ct.removeEventListener("transitionend",lt),pt())};ct.addEventListener("transitionend",lt)},_.pxToNum=function(ct){return(0,ot.default)(ct.replace("px",""))},_.getPlatform=function(){var ct=(0,at.default)();return ct==="os x"?"mac":ct},_.resetCanvasSize=function(ct){ct.width=Math.round(ct.offsetWidth*window.devicePixelRatio),ct.height=Math.round(ct.offsetHeight*window.devicePixelRatio)}},8169:function(b,_,d){d.r(_),d.d(_,{default:function(){return ft}});var k={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},j=/([astvzqmhlc])([^astvzqmhlc]*)/gi,$=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi,et=function(st){var ct=[],pt=String(st).trim();return pt[0]!=="M"&&pt[0]!=="m"||pt.replace(j,function(lt,wt,yt){var vt=wt.toLowerCase(),St=function(bt){var At=bt.match($);return At?At.map(Number):[]}(yt),xt=wt;if(vt==="m"&&St.length>2&&(ct.push([xt].concat(St.splice(0,2))),vt="l",xt=xt==="m"?"l":"L"),St.length=k[vt]&&St.length&&k[vt];)ct.push([xt].concat(St.splice(0,k[vt])));return""}),ct};function tt(st,ct){for(var pt=0;ptst.length)&&(ct=st.length);for(var pt=0,lt=new Array(ct);pt1&&(En*=Rt=Math.sqrt(Rt),yn*=Rt),zt=En*En*yn*yn,Xt=En*En*Mt.y*Mt.y+yn*yn*Mt.x*Mt.x,it(xn={x:En*Mt.y/yn,y:-yn*Mt.x/En},_t!==At?Math.sqrt((zt-Xt)/Xt)||0:-Math.sqrt((zt-Xt)/Xt)||0),bt=Math.atan2((Mt.y-xn.y)/yn,(Mt.x-xn.x)/En),xt=Math.atan2(-(Mt.y+xn.y)/yn,-(Mt.x+xn.x)/En),at(xn,jt),ln=xn,Tn=(Ct.x+kn.x)/2,In=(Ct.y+kn.y)/2,ln.x+=Tn,ln.y+=In,vt.save(),vt.translate(xn.x,xn.y),vt.rotate(jt),vt.scale(En,yn),vt.arc(0,0,1,bt,xt,!_t),vt.restore();break;case"C":fn=vn[3],Sn=vn[4],Jt=vn[5],Zt=vn[6],vt.bezierCurveTo(vn[1],vn[2],fn,Sn,Jt,Zt);break;case"c":vt.bezierCurveTo(vn[1]+Jt,vn[2]+Zt,vn[3]+Jt,vn[4]+Zt,vn[5]+Jt,vn[6]+Zt),fn=vn[3]+Jt,Sn=vn[4]+Zt,Jt+=vn[5],Zt+=vn[6];break;case"S":fn!==null&&Sn!==null||(fn=Jt,Sn=Zt),vt.bezierCurveTo(2*Jt-fn,2*Zt-Sn,vn[1],vn[2],vn[3],vn[4]),fn=vn[1],Sn=vn[2],Jt=vn[3],Zt=vn[4];break;case"s":fn!==null&&Sn!==null||(fn=Jt,Sn=Zt),vt.bezierCurveTo(2*Jt-fn,2*Zt-Sn,vn[1]+Jt,vn[2]+Zt,vn[3]+Jt,vn[4]+Zt),fn=vn[1]+Jt,Sn=vn[2]+Zt,Jt+=vn[3],Zt+=vn[4];break;case"Q":bn=vn[1],hn=vn[2],Jt=vn[3],Zt=vn[4],vt.quadraticCurveTo(bn,hn,Jt,Zt);break;case"q":bn=vn[1]+Jt,hn=vn[2]+Zt,Jt+=vn[3],Zt+=vn[4],vt.quadraticCurveTo(bn,hn,Jt,Zt);break;case"T":bn!==null&&hn!==null||(bn=Jt,hn=Zt),bn=2*Jt-bn,hn=2*Zt-hn,Jt=vn[1],Zt=vn[2],vt.quadraticCurveTo(bn,hn,Jt,Zt);break;case"t":bn!==null&&hn!==null||(bn=Jt,hn=Zt),bn=2*Jt-bn,hn=2*Zt-hn,Jt+=vn[1],Zt+=vn[2],vt.quadraticCurveTo(bn,hn,Jt,Zt);break;case"z":case"Z":Jt=Ln.x,Zt=Ln.y,Ln=void 0,vt.closePath();break;case"AC":Jt=vn[1],Zt=vn[2],An=vn[3],bt=vn[4],xt=vn[5],_n=vn[6],vt.arc(Jt,Zt,An,bt,xt,_n);break;case"AT":Kt=vn[1],dn=vn[2],Jt=vn[3],Zt=vn[4],An=vn[5],vt.arcTo(Kt,dn,Jt,Zt,An);break;case"E":Jt=vn[1],Zt=vn[2],En=vn[3],yn=vn[4],jt=vn[5],bt=vn[6],xt=vn[7],_n=vn[8],vt.save(),vt.translate(Jt,Zt),vt.rotate(jt),vt.scale(En,yn),vt.arc(0,0,1,bt,xt,_n),vt.restore();break;case"R":Jt=vn[1],Zt=vn[2],jn=vn[3],Vn=vn[4],Ln={x:Jt,y:Zt},vt.rect(Jt,Zt,jn,Vn)}kn.x=Jt,kn.y=Zt}}},ut=et,ht=dt;typeof window<"u"&&ht(window);var ft={path2dPolyfill:ht,parsePath:ut}},2777:function(b){b.exports=`.luna-dom-highlighter{position:fixed;left:0;top:0;width:100%;height:100%;z-index:100000;pointer-events:none;font-size:13px}.luna-dom-highlighter-fill{position:absolute;top:0;right:0;bottom:0;left:0}.luna-dom-highlighter-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-dom-highlighter-platform-mac{color:#303942;font-family:'.SFNSDisplay-Regular','Helvetica Neue','Lucida Grande',sans-serif}.luna-dom-highlighter-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-dom-highlighter-px{color:gray}#luna-dom-highlighter-element-title{position:absolute;z-index:10}.luna-dom-highlighter-tooltip-content{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:#fff;padding:5px 8px;border:1px solid #fff;border-radius:3px;box-sizing:border-box;min-width:100px;max-width:min(300px,100% - 4px);z-index:2;background-clip:padding-box;will-change:transform;text-rendering:optimizeLegibility;pointer-events:none;filter:drop-shadow(0 2px 4px rgba(0,0,0,.35))}.luna-dom-highlighter-tooltip-content .luna-dom-highlighter-tooltip-arrow{background:#fff;width:15px;height:8px;position:absolute}.luna-dom-highlighter-element-info-section{margin-top:12px;margin-bottom:6px}.luna-dom-highlighter-section-name{color:#333;font-weight:500;font-size:10px;text-transform:uppercase;letter-spacing:.05em;line-height:12px}.luna-dom-highlighter-element-info{display:flex;flex-direction:column}.luna-dom-highlighter-element-info-header{display:flex;align-items:center}.luna-dom-highlighter-element-info-body{display:flex;flex-direction:column;padding-top:2px;margin-top:2px}.luna-dom-highlighter-element-info-row{display:flex;line-height:19px}.luna-dom-highlighter-separator-container{display:flex;align-items:center;flex:auto;margin-left:7px}.luna-dom-highlighter-separator{border-top:1px solid #ddd;width:100%}.luna-dom-highlighter-element-info-name{flex-shrink:0;color:#666}.luna-dom-highlighter-element-info-gap{flex:auto}.luna-dom-highlighter-element-info-value-color{display:flex;color:#303942;margin-left:10px;align-items:baseline}.luna-dom-highlighter-a11y-icon{width:16px;height:16px;background-repeat:no-repeat;display:inline-block}.luna-dom-highlighter-element-info-value-contrast{display:flex;align-items:center;text-align:right;color:#303942;margin-left:10px}.luna-dom-highlighter-element-info-value-contrast .luna-dom-highlighter-a11y-icon{margin-left:8px}.luna-dom-highlighter-element-info-value-icon{display:flex;align-items:center}.luna-dom-highlighter-element-info-value-text{text-align:right;color:#303942;margin-left:10px;align-items:baseline;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.luna-dom-highlighter-color-swatch{display:flex;margin-right:2px;width:10px;height:10px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);line-height:10px}.luna-dom-highlighter-color-swatch-inner{flex:auto;border:1px solid #808002}.luna-dom-highlighter-element-layout-type{margin-right:10px;width:16px;height:16px}.luna-dom-highlighter-element-layout-type.luna-dom-highlighter-grid{background-image:url('data:image/svg+xml,')}.luna-dom-highlighter-element-layout-type.luna-dom-highlighter-flex{background-image:url('data:image/svg+xml,')}.luna-dom-highlighter-element-description{flex:1 1;font-weight:700;word-wrap:break-word;word-break:break-all}.luna-dom-highlighter-dimensions{color:#737373;text-align:right;margin-left:10px}.luna-dom-highlighter-material-node-width{margin-right:2px}.luna-dom-highlighter-material-node-height{margin-left:2px}.luna-dom-highlighter-material-tag-name{color:#881280}.luna-dom-highlighter-material-class-name,.luna-dom-highlighter-material-node-id{color:#1a1aa6}.luna-dom-highlighter-contrast-text{width:16px;height:16px;text-align:center;line-height:16px;margin-right:8px;border:1px solid #000;padding:0 1px}.luna-dom-highlighter-a11y-icon-not-ok{background-image:url('data:image/svg+xml,')}.luna-dom-highlighter-a11y-icon-warning{background-image:url('data:image/svg+xml,')}.luna-dom-highlighter-a11y-icon-ok{background-image:url('data:image/svg+xml,')}@media (forced-colors:active){:root,body{background-color:transparent;forced-color-adjust:none}.luna-dom-highlighter-tooltip-content{border-color:Highlight;background-color:canvas;color:text;forced-color-adjust:none}.luna-dom-highlighter-tooltip-content::after{background-color:Highlight}.luna-dom-highlighter-color-swatch-inner,.luna-dom-highlighter-contrast-text,.luna-dom-highlighter-separator{border-color:Highlight}.luna-dom-highlighter-section-name{color:Highlight}.luna-dom-highlighter-dimensions,.luna-dom-highlighter-element-info-name,.luna-dom-highlighter-element-info-value-color,.luna-dom-highlighter-element-info-value-contrast,.luna-dom-highlighter-element-info-value-icon,.luna-dom-highlighter-element-info-value-text,.luna-dom-highlighter-material-class-name,.luna-dom-highlighter-material-node-id,.luna-dom-highlighter-material-tag-name{color:canvastext}} /*# sourceMappingURL=luna-dom-highlighter.css.map*/`},907:function(b,_,d){function k(j,$){($==null||$>j.length)&&($=j.length);for(var et=0,tt=new Array($);et<$;et++)tt[et]=j[et];return tt}d.d(_,{Z:function(){return k}})},7326:function(b,_,d){function k(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}d.d(_,{Z:function(){return k}})},5671:function(b,_,d){function k(j,$){if(!(j instanceof $))throw new TypeError("Cannot call a class as a function")}d.d(_,{Z:function(){return k}})},3144:function(b,_,d){d.d(_,{Z:function(){return $}});var k=d(9142);function j(et,tt){for(var rt=0;rtDemo Dapp React UI - +