diff --git a/assets/index-cLU3zIbq.js b/assets/index-CCN2EzLo.js similarity index 99% rename from assets/index-cLU3zIbq.js rename to assets/index-CCN2EzLo.js index fe3a125..e5f085e 100644 --- a/assets/index-cLU3zIbq.js +++ b/assets/index-CCN2EzLo.js @@ -37,7 +37,7 @@ var wu=Object.defineProperty;var du=e=>{throw TypeError(e)};var $u=(e,a,o)=>a in `+h[_].replace(" at new "," at ");return e.displayName&&tt.includes("")&&(tt=tt.replace("",e.displayName)),tt}while(1<=_&&0<=_e);break}}}finally{Na=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?Ma(e):""}function Pa(e){switch(e.tag){case 5:return Ma(e.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return e=Oa(e.type,!1),e;case 11:return e=Oa(e.type.render,!1),e;case 1:return e=Oa(e.type,!0),e;default:return""}}function Qa(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ca:return(e.displayName||"Context")+".Consumer";case Ba:return(e._context.displayName||"Context")+".Provider";case Da:var a=e.render;return e=e.displayName,e||(e=a.displayName||a.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ga:return a=e.displayName||null,a!==null?a:Qa(e.type)||"Memo";case Ha:a=e._payload,e=e._init;try{return Qa(e(a))}catch{}}return null}function Ra(e){var a=e.type;switch(e.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=a.render,e=e.displayName||e.name||"",a.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(a);case 8:return a===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function Sa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ta(e){var a=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Ua(e){var a=Ta(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,a),c=""+e[a];if(!e.hasOwnProperty(a)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var h=o.get,d=o.set;return Object.defineProperty(e,a,{configurable:!0,get:function(){return h.call(this)},set:function(_){c=""+_,d.call(this,_)}}),Object.defineProperty(e,a,{enumerable:o.enumerable}),{getValue:function(){return c},setValue:function(_){c=""+_},stopTracking:function(){e._valueTracker=null,delete e[a]}}}}function Va(e){e._valueTracker||(e._valueTracker=Ua(e))}function Wa(e){if(!e)return!1;var a=e._valueTracker;if(!a)return!0;var o=a.getValue(),c="";return e&&(c=Ta(e)?e.checked?"true":"false":e.value),e=c,e!==o?(a.setValue(e),!0):!1}function Xa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ya(e,a){var o=a.checked;return A$1({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function Za(e,a){var o=a.defaultValue==null?"":a.defaultValue,c=a.checked!=null?a.checked:a.defaultChecked;o=Sa(a.value!=null?a.value:o),e._wrapperState={initialChecked:c,initialValue:o,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function ab(e,a){a=a.checked,a!=null&&ta(e,"checked",a,!1)}function bb(e,a){ab(e,a);var o=Sa(a.value),c=a.type;if(o!=null)c==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(c==="submit"||c==="reset"){e.removeAttribute("value");return}a.hasOwnProperty("value")?cb(e,a.type,o):a.hasOwnProperty("defaultValue")&&cb(e,a.type,Sa(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(e.defaultChecked=!!a.defaultChecked)}function db(e,a,o){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var c=a.type;if(!(c!=="submit"&&c!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+e._wrapperState.initialValue,o||a===e.value||(e.value=a),e.defaultValue=a}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function cb(e,a,o){(a!=="number"||Xa(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var eb=Array.isArray;function fb(e,a,o,c){if(e=e.options,a){a={};for(var h=0;h"+a.valueOf().toString()+"",a=mb.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;a.firstChild;)e.appendChild(a.firstChild)}});function ob(e,a){if(a){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=a;return}}e.textContent=a}var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(e){qb.forEach(function(a){a=a+e.charAt(0).toUpperCase()+e.substring(1),pb[a]=pb[e]})});function rb(e,a,o){return a==null||typeof a=="boolean"||a===""?"":o||typeof a!="number"||a===0||pb.hasOwnProperty(e)&&pb[e]?(""+a).trim():a+"px"}function sb(e,a){e=e.style;for(var o in a)if(a.hasOwnProperty(o)){var c=o.indexOf("--")===0,h=rb(o,a[o],c);o==="float"&&(o="cssFloat"),c?e.setProperty(o,h):e[o]=h}}var tb=A$1({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub(e,a){if(a){if(tb[e]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(p(137,e));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(p(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(p(61))}if(a.style!=null&&typeof a.style!="object")throw Error(p(62))}}function vb(e,a){if(e.indexOf("-")===-1)return typeof a.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function xb(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yb=null,zb=null,Ab=null;function Bb(e){if(e=Cb(e)){if(typeof yb!="function")throw Error(p(280));var a=e.stateNode;a&&(a=Db(a),yb(e.stateNode,e.type,a))}}function Eb(e){zb?Ab?Ab.push(e):Ab=[e]:zb=e}function Fb(){if(zb){var e=zb,a=Ab;if(Ab=zb=null,Bb(e),a)for(e=0;e>>=0,e===0?32:31-(pc(e)/qc|0)|0}var rc=64,sc=4194304;function tc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function uc(e,a){var o=e.pendingLanes;if(o===0)return 0;var c=0,h=e.suspendedLanes,d=e.pingedLanes,_=o&268435455;if(_!==0){var _e=_&~h;_e!==0?c=tc(_e):(d&=_,d!==0&&(c=tc(d)))}else _=o&~h,_!==0?c=tc(_):d!==0&&(c=tc(d));if(c===0)return 0;if(a!==0&&a!==c&&!(a&h)&&(h=c&-c,d=a&-a,h>=d||h===16&&(d&4194240)!==0))return a;if(c&4&&(c|=o&16),a=e.entangledLanes,a!==0)for(e=e.entanglements,a&=c;0o;o++)a.push(e);return a}function Ac(e,a,o){e.pendingLanes|=a,a!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,a=31-oc(a),e[a]=o}function Bc(e,a){var o=e.pendingLanes&~a;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=a,e.mutableReadLanes&=a,e.entangledLanes&=a,a=e.entanglements;var c=e.eventTimes;for(e=e.expirationTimes;0=be),ee=" ",fe=!1;function ge(e,a){switch(e){case"keyup":return $d.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ie=!1;function je(e,a){switch(e){case"compositionend":return he(a);case"keypress":return a.which!==32?null:(fe=!0,ee);case"textInput":return e=a.data,e===ee&&fe?null:e;default:return null}}function ke(e,a){if(ie)return e==="compositionend"||!ae&&ge(e,a)?(e=nd(),md=ld=kd=null,ie=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1=a)return{node:o,offset:a-e};e=c}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Je(o)}}function Le(e,a){return e&&a?e===a?!0:e&&e.nodeType===3?!1:a&&a.nodeType===3?Le(e,a.parentNode):"contains"in e?e.contains(a):e.compareDocumentPosition?!!(e.compareDocumentPosition(a)&16):!1:!1}function Me(){for(var e=window,a=Xa();a instanceof e.HTMLIFrameElement;){try{var o=typeof a.contentWindow.location.href=="string"}catch{o=!1}if(o)e=a.contentWindow;else break;a=Xa(e.document)}return a}function Ne(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a&&(a==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||a==="textarea"||e.contentEditable==="true")}function Oe(e){var a=Me(),o=e.focusedElem,c=e.selectionRange;if(a!==o&&o&&o.ownerDocument&&Le(o.ownerDocument.documentElement,o)){if(c!==null&&Ne(o)){if(a=c.start,e=c.end,e===void 0&&(e=a),"selectionStart"in o)o.selectionStart=a,o.selectionEnd=Math.min(e,o.value.length);else if(e=(a=o.ownerDocument||document)&&a.defaultView||window,e.getSelection){e=e.getSelection();var h=o.textContent.length,d=Math.min(c.start,h);c=c.end===void 0?d:Math.min(c.end,h),!e.extend&&d>c&&(h=c,c=d,d=h),h=Ke(o,d);var _=Ke(o,c);h&&_&&(e.rangeCount!==1||e.anchorNode!==h.node||e.anchorOffset!==h.offset||e.focusNode!==_.node||e.focusOffset!==_.offset)&&(a=a.createRange(),a.setStart(h.node,h.offset),e.removeAllRanges(),d>c?(e.addRange(a),e.extend(_.node,_.offset)):(a.setEnd(_.node,_.offset),e.addRange(a)))}}for(a=[],e=o;e=e.parentNode;)e.nodeType===1&&a.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;function Ue(e,a,o){var c=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Te||Qe==null||Qe!==Xa(c)||(c=Qe,"selectionStart"in c&&Ne(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Se&&Ie(Se,c)||(Se=c,c=oe(Re,"onSelect"),0Tf||(e.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$1(e,a){Tf++,Sf[Tf]=e.current,e.current=a}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(e,a){var o=e.type.contextTypes;if(!o)return Vf;var c=e.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===a)return c.__reactInternalMemoizedMaskedChildContext;var h={},d;for(d in o)h[d]=a[d];return c&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=h),h}function Zf(e){return e=e.childContextTypes,e!=null}function $f(){E(Wf),E(H)}function ag(e,a,o){if(H.current!==Vf)throw Error(p(168));G$1(H,a),G$1(Wf,o)}function bg(e,a,o){var c=e.stateNode;if(a=a.childContextTypes,typeof c.getChildContext!="function")return o;c=c.getChildContext();for(var h in c)if(!(h in a))throw Error(p(108,Ra(e)||"Unknown",h));return A$1({},o,c)}function cg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vf,Xf=H.current,G$1(H,e),G$1(Wf,Wf.current),!0}function dg(e,a,o){var c=e.stateNode;if(!c)throw Error(p(169));o?(e=bg(e,a,Xf),c.__reactInternalMemoizedMergedChildContext=e,E(Wf),E(H),G$1(H,e)):E(Wf),G$1(Wf,o)}var eg=null,fg=!1,gg=!1;function hg(e){eg===null?eg=[e]:eg.push(e)}function ig(e){fg=!0,hg(e)}function jg(){if(!gg&&eg!==null){gg=!0;var e=0,a=C;try{var o=eg;for(C=1;e>=_,h-=_,rg=1<<32-oc(a)+h|o<Wt?(Ft=Vt,Vt=null):Ft=Vt.sibling;var Zt=ht($t,Vt,xt[Wt],St);if(Zt===null){Vt===null&&(Vt=Ft);break}e&&Vt&&Zt.alternate===null&&a($t,Vt),bt=d(Zt,bt,Wt),Ot===null?Rt=Zt:Ot.sibling=Zt,Ot=Zt,Vt=Ft}if(Wt===xt.length)return o($t,Vt),I$1&&tg($t,Wt),Rt;if(Vt===null){for(;WtWt?(Ft=Vt,Vt=null):Ft=Vt.sibling;var pt=ht($t,Vt,Zt.value,St);if(pt===null){Vt===null&&(Vt=Ft);break}e&&Vt&&pt.alternate===null&&a($t,Vt),bt=d(pt,bt,Wt),Ot===null?Rt=pt:Ot.sibling=pt,Ot=pt,Vt=Ft}if(Zt.done)return o($t,Vt),I$1&&tg($t,Wt),Rt;if(Vt===null){for(;!Zt.done;Wt++,Zt=xt.next())Zt=st($t,Zt.value,St),Zt!==null&&(bt=d(Zt,bt,Wt),Ot===null?Rt=Zt:Ot.sibling=Zt,Ot=Zt);return I$1&&tg($t,Wt),Rt}for(Vt=c($t,Vt);!Zt.done;Wt++,Zt=xt.next())Zt=mt(Vt,$t,Wt,Zt.value,St),Zt!==null&&(e&&Zt.alternate!==null&&Vt.delete(Zt.key===null?Wt:Zt.key),bt=d(Zt,bt,Wt),Ot===null?Rt=Zt:Ot.sibling=Zt,Ot=Zt);return e&&Vt.forEach(function($){return a($t,$)}),I$1&&tg($t,Wt),Rt}function _t($t,bt,xt,St){if(typeof xt=="object"&&xt!==null&&xt.type===ya&&xt.key===null&&(xt=xt.props.children),typeof xt=="object"&&xt!==null){switch(xt.$$typeof){case va:e:{for(var Rt=xt.key,Ot=bt;Ot!==null;){if(Ot.key===Rt){if(Rt=xt.type,Rt===ya){if(Ot.tag===7){o($t,Ot.sibling),bt=h(Ot,xt.props.children),bt.return=$t,$t=bt;break e}}else if(Ot.elementType===Rt||typeof Rt=="object"&&Rt!==null&&Rt.$$typeof===Ha&&Ng(Rt)===Ot.type){o($t,Ot.sibling),bt=h(Ot,xt.props),bt.ref=Lg($t,Ot,xt),bt.return=$t,$t=bt;break e}o($t,Ot);break}else a($t,Ot);Ot=Ot.sibling}xt.type===ya?(bt=Tg(xt.props.children,$t.mode,St,xt.key),bt.return=$t,$t=bt):(St=Rg(xt.type,xt.key,xt.props,null,$t.mode,St),St.ref=Lg($t,bt,xt),St.return=$t,$t=St)}return _($t);case wa:e:{for(Ot=xt.key;bt!==null;){if(bt.key===Ot)if(bt.tag===4&&bt.stateNode.containerInfo===xt.containerInfo&&bt.stateNode.implementation===xt.implementation){o($t,bt.sibling),bt=h(bt,xt.children||[]),bt.return=$t,$t=bt;break e}else{o($t,bt);break}else a($t,bt);bt=bt.sibling}bt=Sg(xt,$t.mode,St),bt.return=$t,$t=bt}return _($t);case Ha:return Ot=xt._init,_t($t,bt,Ot(xt._payload),St)}if(eb(xt))return vt($t,bt,xt,St);if(Ka(xt))return yt($t,bt,xt,St);Mg($t,xt)}return typeof xt=="string"&&xt!==""||typeof xt=="number"?(xt=""+xt,bt!==null&&bt.tag===6?(o($t,bt.sibling),bt=h(bt,xt),bt.return=$t,$t=bt):(o($t,bt),bt=Qg(xt,$t.mode,St),bt.return=$t,$t=bt),_($t)):o($t,bt)}return _t}var Ug=Og(!0),Vg=Og(!1),Wg=Uf(null),Xg=null,Yg=null,Zg=null;function $g(){Zg=Yg=Xg=null}function ah(e){var a=Wg.current;E(Wg),e._currentValue=a}function bh(e,a,o){for(;e!==null;){var c=e.alternate;if((e.childLanes&a)!==a?(e.childLanes|=a,c!==null&&(c.childLanes|=a)):c!==null&&(c.childLanes&a)!==a&&(c.childLanes|=a),e===o)break;e=e.return}}function ch$1(e,a){Xg=e,Zg=Yg=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&a&&(dh$1=!0),e.firstContext=null)}function eh(e){var a=e._currentValue;if(Zg!==e)if(e={context:e,memoizedValue:a,next:null},Yg===null){if(Xg===null)throw Error(p(308));Yg=e,Xg.dependencies={lanes:0,firstContext:e}}else Yg=Yg.next=e;return a}var fh=null;function gh(e){fh===null?fh=[e]:fh.push(e)}function hh(e,a,o,c){var h=a.interleaved;return h===null?(o.next=o,gh(a)):(o.next=h.next,h.next=o),a.interleaved=o,ih(e,c)}function ih(e,a){e.lanes|=a;var o=e.alternate;for(o!==null&&(o.lanes|=a),o=e,e=e.return;e!==null;)e.childLanes|=a,o=e.alternate,o!==null&&(o.childLanes|=a),o=e,e=e.return;return o.tag===3?o.stateNode:null}var jh=!1;function kh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lh(e,a){e=e.updateQueue,a.updateQueue===e&&(a.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function mh(e,a){return{eventTime:e,lane:a,tag:0,payload:null,callback:null,next:null}}function nh(e,a,o){var c=e.updateQueue;if(c===null)return null;if(c=c.shared,K$4&2){var h=c.pending;return h===null?a.next=a:(a.next=h.next,h.next=a),c.pending=a,ih(e,o)}return h=c.interleaved,h===null?(a.next=a,gh(c)):(a.next=h.next,h.next=a),c.interleaved=a,ih(e,o)}function oh(e,a,o){if(a=a.updateQueue,a!==null&&(a=a.shared,(o&4194240)!==0)){var c=a.lanes;c&=e.pendingLanes,o|=c,a.lanes=o,Cc(e,o)}}function ph(e,a){var o=e.updateQueue,c=e.alternate;if(c!==null&&(c=c.updateQueue,o===c)){var h=null,d=null;if(o=o.firstBaseUpdate,o!==null){do{var _={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};d===null?h=d=_:d=d.next=_,o=o.next}while(o!==null);d===null?h=d=a:d=d.next=a}else h=d=a;o={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:d,shared:c.shared,effects:c.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=a:e.next=a,o.lastBaseUpdate=a}function qh(e,a,o,c){var h=e.updateQueue;jh=!1;var d=h.firstBaseUpdate,_=h.lastBaseUpdate,_e=h.shared.pending;if(_e!==null){h.shared.pending=null;var tt=_e,rt=tt.next;tt.next=null,_===null?d=rt:_.next=rt,_=tt;var it=e.alternate;it!==null&&(it=it.updateQueue,_e=it.lastBaseUpdate,_e!==_&&(_e===null?it.firstBaseUpdate=rt:_e.next=rt,it.lastBaseUpdate=tt))}if(d!==null){var st=h.baseState;_=0,it=rt=tt=null,_e=d;do{var ht=_e.lane,mt=_e.eventTime;if((c&ht)===ht){it!==null&&(it=it.next={eventTime:mt,lane:0,tag:_e.tag,payload:_e.payload,callback:_e.callback,next:null});e:{var vt=e,yt=_e;switch(ht=a,mt=o,yt.tag){case 1:if(vt=yt.payload,typeof vt=="function"){st=vt.call(mt,st,ht);break e}st=vt;break e;case 3:vt.flags=vt.flags&-65537|128;case 0:if(vt=yt.payload,ht=typeof vt=="function"?vt.call(mt,st,ht):vt,ht==null)break e;st=A$1({},st,ht);break e;case 2:jh=!0}}_e.callback!==null&&_e.lane!==0&&(e.flags|=64,ht=h.effects,ht===null?h.effects=[_e]:ht.push(_e))}else mt={eventTime:mt,lane:ht,tag:_e.tag,payload:_e.payload,callback:_e.callback,next:null},it===null?(rt=it=mt,tt=st):it=it.next=mt,_|=ht;if(_e=_e.next,_e===null){if(_e=h.shared.pending,_e===null)break;ht=_e,_e=ht.next,ht.next=null,h.lastBaseUpdate=ht,h.shared.pending=null}}while(!0);if(it===null&&(tt=st),h.baseState=tt,h.firstBaseUpdate=rt,h.lastBaseUpdate=it,a=h.shared.interleaved,a!==null){h=a;do _|=h.lane,h=h.next;while(h!==a)}else d===null&&(h.shared.lanes=0);rh|=_,e.lanes=_,e.memoizedState=st}}function sh(e,a,o){if(e=a.effects,a.effects=null,e!==null)for(a=0;ao?o:4,e(!0);var c=Gh.transition;Gh.transition={};try{e(!1),a()}finally{C=o,Gh.transition=c}}function wi(){return Uh().memoizedState}function xi(e,a,o){var c=yi(e);if(o={lane:c,action:o,hasEagerState:!1,eagerState:null,next:null},zi(e))Ai(a,o);else if(o=hh(e,a,o,c),o!==null){var h=R$1();gi(o,e,c,h),Bi(o,a,c)}}function ii(e,a,o){var c=yi(e),h={lane:c,action:o,hasEagerState:!1,eagerState:null,next:null};if(zi(e))Ai(a,h);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=a.lastRenderedReducer,d!==null))try{var _=a.lastRenderedState,_e=d(_,o);if(h.hasEagerState=!0,h.eagerState=_e,He(_e,_)){var tt=a.interleaved;tt===null?(h.next=h,gh(a)):(h.next=tt.next,tt.next=h),a.interleaved=h;return}}catch{}finally{}o=hh(e,a,h,c),o!==null&&(h=R$1(),gi(o,e,c,h),Bi(o,a,c))}}function zi(e){var a=e.alternate;return e===M$1||a!==null&&a===M$1}function Ai(e,a){Jh=Ih=!0;var o=e.pending;o===null?a.next=a:(a.next=o.next,o.next=a),e.pending=a}function Bi(e,a,o){if(o&4194240){var c=a.lanes;c&=e.pendingLanes,o|=c,a.lanes=o,Cc(e,o)}}var Rh={readContext:eh,useCallback:P,useContext:P,useEffect:P,useImperativeHandle:P,useInsertionEffect:P,useLayoutEffect:P,useMemo:P,useReducer:P,useRef:P,useState:P,useDebugValue:P,useDeferredValue:P,useTransition:P,useMutableSource:P,useSyncExternalStore:P,useId:P,unstable_isNewReconciler:!1},Oh={readContext:eh,useCallback:function(e,a){return Th().memoizedState=[e,a===void 0?null:a],e},useContext:eh,useEffect:mi,useImperativeHandle:function(e,a,o){return o=o!=null?o.concat([e]):null,ki(4194308,4,pi.bind(null,a,e),o)},useLayoutEffect:function(e,a){return ki(4194308,4,e,a)},useInsertionEffect:function(e,a){return ki(4,2,e,a)},useMemo:function(e,a){var o=Th();return a=a===void 0?null:a,e=e(),o.memoizedState=[e,a],e},useReducer:function(e,a,o){var c=Th();return a=o!==void 0?o(a):a,c.memoizedState=c.baseState=a,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},c.queue=e,e=e.dispatch=xi.bind(null,M$1,e),[c.memoizedState,e]},useRef:function(e){var a=Th();return e={current:e},a.memoizedState=e},useState:hi,useDebugValue:ri,useDeferredValue:function(e){return Th().memoizedState=e},useTransition:function(){var e=hi(!1),a=e[0];return e=vi.bind(null,e[1]),Th().memoizedState=e,[a,e]},useMutableSource:function(){},useSyncExternalStore:function(e,a,o){var c=M$1,h=Th();if(I$1){if(o===void 0)throw Error(p(407));o=o()}else{if(o=a(),Q===null)throw Error(p(349));Hh&30||di(c,a,o)}h.memoizedState=o;var d={value:o,getSnapshot:a};return h.queue=d,mi(ai.bind(null,c,d,e),[e]),c.flags|=2048,bi(9,ci.bind(null,c,d,o,a),void 0,null),o},useId:function(){var e=Th(),a=Q.identifierPrefix;if(I$1){var o=sg,c=rg;o=(c&~(1<<32-oc(c)-1)).toString(32)+o,a=":"+a+"R"+o,o=Kh++,0<\/script>",e=e.removeChild(e.firstChild)):typeof c.is=="string"?e=_.createElement(o,{is:c.is}):(e=_.createElement(o),o==="select"&&(_=e,c.multiple?_.multiple=!0:c.size&&(_.size=c.size))):e=_.createElementNS(e,o),e[Of]=a,e[Pf]=c,zj(e,a,!1,!1),a.stateNode=e;e:{switch(_=vb(o,c),o){case"dialog":D$1("cancel",e),D$1("close",e),h=c;break;case"iframe":case"object":case"embed":D$1("load",e),h=c;break;case"video":case"audio":for(h=0;hGj&&(a.flags|=128,c=!0,Dj(d,!1),a.lanes=4194304)}else{if(!c)if(e=Ch$1(_),e!==null){if(a.flags|=128,c=!0,o=e.updateQueue,o!==null&&(a.updateQueue=o,a.flags|=4),Dj(d,!0),d.tail===null&&d.tailMode==="hidden"&&!_.alternate&&!I$1)return S$1(a),null}else 2*B()-d.renderingStartTime>Gj&&o!==1073741824&&(a.flags|=128,c=!0,Dj(d,!1),a.lanes=4194304);d.isBackwards?(_.sibling=a.child,a.child=_):(o=d.last,o!==null?o.sibling=_:a.child=_,d.last=_)}return d.tail!==null?(a=d.tail,d.rendering=a,d.tail=a.sibling,d.renderingStartTime=B(),a.sibling=null,o=L$1.current,G$1(L$1,c?o&1|2:o&1),a):(S$1(a),null);case 22:case 23:return Hj(),c=a.memoizedState!==null,e!==null&&e.memoizedState!==null!==c&&(a.flags|=8192),c&&a.mode&1?fj&1073741824&&(S$1(a),a.subtreeFlags&6&&(a.flags|=8192)):S$1(a),null;case 24:return null;case 25:return null}throw Error(p(156,a.tag))}function Ij(e,a){switch(wg(a),a.tag){case 1:return Zf(a.type)&&$f(),e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 3:return zh(),E(Wf),E(H),Eh(),e=a.flags,e&65536&&!(e&128)?(a.flags=e&-65537|128,a):null;case 5:return Bh(a),null;case 13:if(E(L$1),e=a.memoizedState,e!==null&&e.dehydrated!==null){if(a.alternate===null)throw Error(p(340));Ig()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 19:return E(L$1),null;case 4:return zh(),null;case 10:return ah(a.type._context),null;case 22:case 23:return Hj(),null;case 24:return null;default:return null}}var Jj=!1,U=!1,Kj=typeof WeakSet=="function"?WeakSet:Set,V=null;function Lj(e,a){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(c){W$6(e,a,c)}else o.current=null}function Mj(e,a,o){try{o()}catch(c){W$6(e,a,c)}}var Nj=!1;function Oj(e,a){if(Cf=dd,e=Me(),Ne(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var c=o.getSelection&&o.getSelection();if(c&&c.rangeCount!==0){o=c.anchorNode;var h=c.anchorOffset,d=c.focusNode;c=c.focusOffset;try{o.nodeType,d.nodeType}catch{o=null;break e}var _=0,_e=-1,tt=-1,rt=0,it=0,st=e,ht=null;t:for(;;){for(var mt;st!==o||h!==0&&st.nodeType!==3||(_e=_+h),st!==d||c!==0&&st.nodeType!==3||(tt=_+c),st.nodeType===3&&(_+=st.nodeValue.length),(mt=st.firstChild)!==null;)ht=st,st=mt;for(;;){if(st===e)break t;if(ht===o&&++rt===h&&(_e=_),ht===d&&++it===c&&(tt=_),(mt=st.nextSibling)!==null)break;st=ht,ht=st.parentNode}st=mt}o=_e===-1||tt===-1?null:{start:_e,end:tt}}else o=null}o=o||{start:0,end:0}}else o=null;for(Df={focusedElem:e,selectionRange:o},dd=!1,V=a;V!==null;)if(a=V,e=a.child,(a.subtreeFlags&1028)!==0&&e!==null)e.return=a,V=e;else for(;V!==null;){a=V;try{var vt=a.alternate;if(a.flags&1024)switch(a.tag){case 0:case 11:case 15:break;case 1:if(vt!==null){var yt=vt.memoizedProps,_t=vt.memoizedState,$t=a.stateNode,bt=$t.getSnapshotBeforeUpdate(a.elementType===a.type?yt:Ci(a.type,yt),_t);$t.__reactInternalSnapshotBeforeUpdate=bt}break;case 3:var xt=a.stateNode.containerInfo;xt.nodeType===1?xt.textContent="":xt.nodeType===9&&xt.documentElement&&xt.removeChild(xt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163))}}catch(St){W$6(a,a.return,St)}if(e=a.sibling,e!==null){e.return=a.return,V=e;break}V=a.return}return vt=Nj,Nj=!1,vt}function Pj(e,a,o){var c=a.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var h=c=c.next;do{if((h.tag&e)===e){var d=h.destroy;h.destroy=void 0,d!==void 0&&Mj(a,o,d)}h=h.next}while(h!==c)}}function Qj(e,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var o=a=a.next;do{if((o.tag&e)===e){var c=o.create;o.destroy=c()}o=o.next}while(o!==a)}}function Rj(e){var a=e.ref;if(a!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof a=="function"?a(e):a.current=e}}function Sj(e){var a=e.alternate;a!==null&&(e.alternate=null,Sj(a)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(a=e.stateNode,a!==null&&(delete a[Of],delete a[Pf],delete a[of],delete a[Qf],delete a[Rf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Tj(e){return e.tag===5||e.tag===3||e.tag===4}function Uj(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tj(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Vj(e,a,o){var c=e.tag;if(c===5||c===6)e=e.stateNode,a?o.nodeType===8?o.parentNode.insertBefore(e,a):o.insertBefore(e,a):(o.nodeType===8?(a=o.parentNode,a.insertBefore(e,o)):(a=o,a.appendChild(e)),o=o._reactRootContainer,o!=null||a.onclick!==null||(a.onclick=Bf));else if(c!==4&&(e=e.child,e!==null))for(Vj(e,a,o),e=e.sibling;e!==null;)Vj(e,a,o),e=e.sibling}function Wj(e,a,o){var c=e.tag;if(c===5||c===6)e=e.stateNode,a?o.insertBefore(e,a):o.appendChild(e);else if(c!==4&&(e=e.child,e!==null))for(Wj(e,a,o),e=e.sibling;e!==null;)Wj(e,a,o),e=e.sibling}var X$2=null,Xj=!1;function Yj(e,a,o){for(o=o.child;o!==null;)Zj(e,a,o),o=o.sibling}function Zj(e,a,o){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,o)}catch{}switch(o.tag){case 5:U||Lj(o,a);case 6:var c=X$2,h=Xj;X$2=null,Yj(e,a,o),X$2=c,Xj=h,X$2!==null&&(Xj?(e=X$2,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):X$2.removeChild(o.stateNode));break;case 18:X$2!==null&&(Xj?(e=X$2,o=o.stateNode,e.nodeType===8?Kf(e.parentNode,o):e.nodeType===1&&Kf(e,o),bd(e)):Kf(X$2,o.stateNode));break;case 4:c=X$2,h=Xj,X$2=o.stateNode.containerInfo,Xj=!0,Yj(e,a,o),X$2=c,Xj=h;break;case 0:case 11:case 14:case 15:if(!U&&(c=o.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){h=c=c.next;do{var d=h,_=d.destroy;d=d.tag,_!==void 0&&(d&2||d&4)&&Mj(o,a,_),h=h.next}while(h!==c)}Yj(e,a,o);break;case 1:if(!U&&(Lj(o,a),c=o.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=o.memoizedProps,c.state=o.memoizedState,c.componentWillUnmount()}catch(_e){W$6(o,a,_e)}Yj(e,a,o);break;case 21:Yj(e,a,o);break;case 22:o.mode&1?(U=(c=U)||o.memoizedState!==null,Yj(e,a,o),U=c):Yj(e,a,o);break;default:Yj(e,a,o)}}function ak(e){var a=e.updateQueue;if(a!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new Kj),a.forEach(function(c){var h=bk.bind(null,e,c);o.has(c)||(o.add(c),c.then(h,h))})}}function ck(e,a){var o=a.deletions;if(o!==null)for(var c=0;ch&&(h=_),c&=~d}if(c=h,c=B()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*lk(c/1960))-c,10e?16:e,wk===null)var c=!1;else{if(e=wk,wk=null,xk=0,K$4&6)throw Error(p(331));var h=K$4;for(K$4|=4,V=e.current;V!==null;){var d=V,_=d.child;if(V.flags&16){var _e=d.deletions;if(_e!==null){for(var tt=0;tt<_e.length;tt++){var rt=_e[tt];for(V=rt;V!==null;){var it=V;switch(it.tag){case 0:case 11:case 15:Pj(8,it,d)}var st=it.child;if(st!==null)st.return=it,V=st;else for(;V!==null;){it=V;var ht=it.sibling,mt=it.return;if(Sj(it),it===rt){V=null;break}if(ht!==null){ht.return=mt,V=ht;break}V=mt}}}var vt=d.alternate;if(vt!==null){var yt=vt.child;if(yt!==null){vt.child=null;do{var _t=yt.sibling;yt.sibling=null,yt=_t}while(yt!==null)}}V=d}}if(d.subtreeFlags&2064&&_!==null)_.return=d,V=_;else e:for(;V!==null;){if(d=V,d.flags&2048)switch(d.tag){case 0:case 11:case 15:Pj(9,d,d.return)}var $t=d.sibling;if($t!==null){$t.return=d.return,V=$t;break e}V=d.return}}var bt=e.current;for(V=bt;V!==null;){_=V;var xt=_.child;if(_.subtreeFlags&2064&&xt!==null)xt.return=_,V=xt;else e:for(_=bt;V!==null;){if(_e=V,_e.flags&2048)try{switch(_e.tag){case 0:case 11:case 15:Qj(9,_e)}}catch(Rt){W$6(_e,_e.return,Rt)}if(_e===_){V=null;break e}var St=_e.sibling;if(St!==null){St.return=_e.return,V=St;break e}V=_e.return}}if(K$4=h,jg(),lc&&typeof lc.onPostCommitFiberRoot=="function")try{lc.onPostCommitFiberRoot(kc,e)}catch{}c=!0}return c}finally{C=o,ok.transition=a}}return!1}function Xk(e,a,o){a=Ji(o,a),a=Ni(e,a,1),e=nh(e,a,1),a=R$1(),e!==null&&(Ac(e,1,a),Dk(e,a))}function W$6(e,a,o){if(e.tag===3)Xk(e,e,o);else for(;a!==null;){if(a.tag===3){Xk(a,e,o);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Ri===null||!Ri.has(c))){e=Ji(o,e),e=Qi(a,e,1),a=nh(a,e,1),e=R$1(),a!==null&&(Ac(a,1,e),Dk(a,e));break}}a=a.return}}function Ti(e,a,o){var c=e.pingCache;c!==null&&c.delete(a),a=R$1(),e.pingedLanes|=e.suspendedLanes&o,Q===e&&(Z$1&o)===o&&(T===4||T===3&&(Z$1&130023424)===Z$1&&500>B()-fk?Kk(e,0):rk|=o),Dk(e,a)}function Yk(e,a){a===0&&(e.mode&1?(a=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):a=1);var o=R$1();e=ih(e,a),e!==null&&(Ac(e,a,o),Dk(e,o))}function uj(e){var a=e.memoizedState,o=0;a!==null&&(o=a.retryLane),Yk(e,o)}function bk(e,a){var o=0;switch(e.tag){case 13:var c=e.stateNode,h=e.memoizedState;h!==null&&(o=h.retryLane);break;case 19:c=e.stateNode;break;default:throw Error(p(314))}c!==null&&c.delete(a),Yk(e,o)}var Vk;Vk=function(e,a,o){if(e!==null)if(e.memoizedProps!==a.pendingProps||Wf.current)dh$1=!0;else{if(!(e.lanes&o)&&!(a.flags&128))return dh$1=!1,yj(e,a,o);dh$1=!!(e.flags&131072)}else dh$1=!1,I$1&&a.flags&1048576&&ug(a,ng,a.index);switch(a.lanes=0,a.tag){case 2:var c=a.type;ij(e,a),e=a.pendingProps;var h=Yf(a,H.current);ch$1(a,o),h=Nh(null,a,c,e,h,o);var d=Sh();return a.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,Zf(c)?(d=!0,cg(a)):d=!1,a.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,kh(a),h.updater=Ei,a.stateNode=h,h._reactInternals=a,Ii(a,c,e,o),a=jj(null,a,c,!0,d,o)):(a.tag=0,I$1&&d&&vg(a),Xi(null,a,h,o),a=a.child),a;case 16:c=a.elementType;e:{switch(ij(e,a),e=a.pendingProps,h=c._init,c=h(c._payload),a.type=c,h=a.tag=Zk(c),e=Ci(c,e),h){case 0:a=cj(null,a,c,e,o);break e;case 1:a=hj(null,a,c,e,o);break e;case 11:a=Yi(null,a,c,e,o);break e;case 14:a=$i(null,a,c,Ci(c.type,e),o);break e}throw Error(p(306,c,""))}return a;case 0:return c=a.type,h=a.pendingProps,h=a.elementType===c?h:Ci(c,h),cj(e,a,c,h,o);case 1:return c=a.type,h=a.pendingProps,h=a.elementType===c?h:Ci(c,h),hj(e,a,c,h,o);case 3:e:{if(kj(a),e===null)throw Error(p(387));c=a.pendingProps,d=a.memoizedState,h=d.element,lh(e,a),qh(a,c,null,o);var _=a.memoizedState;if(c=_.element,d.isDehydrated)if(d={element:c,isDehydrated:!1,cache:_.cache,pendingSuspenseBoundaries:_.pendingSuspenseBoundaries,transitions:_.transitions},a.updateQueue.baseState=d,a.memoizedState=d,a.flags&256){h=Ji(Error(p(423)),a),a=lj(e,a,c,o,h);break e}else if(c!==h){h=Ji(Error(p(424)),a),a=lj(e,a,c,o,h);break e}else for(yg=Lf(a.stateNode.containerInfo.firstChild),xg=a,I$1=!0,zg=null,o=Vg(a,null,c,o),a.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Ig(),c===h){a=Zi(e,a,o);break e}Xi(e,a,c,o)}a=a.child}return a;case 5:return Ah(a),e===null&&Eg(a),c=a.type,h=a.pendingProps,d=e!==null?e.memoizedProps:null,_=h.children,Ef(c,h)?_=null:d!==null&&Ef(c,d)&&(a.flags|=32),gj(e,a),Xi(e,a,_,o),a.child;case 6:return e===null&&Eg(a),null;case 13:return oj(e,a,o);case 4:return yh(a,a.stateNode.containerInfo),c=a.pendingProps,e===null?a.child=Ug(a,null,c,o):Xi(e,a,c,o),a.child;case 11:return c=a.type,h=a.pendingProps,h=a.elementType===c?h:Ci(c,h),Yi(e,a,c,h,o);case 7:return Xi(e,a,a.pendingProps,o),a.child;case 8:return Xi(e,a,a.pendingProps.children,o),a.child;case 12:return Xi(e,a,a.pendingProps.children,o),a.child;case 10:e:{if(c=a.type._context,h=a.pendingProps,d=a.memoizedProps,_=h.value,G$1(Wg,c._currentValue),c._currentValue=_,d!==null)if(He(d.value,_)){if(d.children===h.children&&!Wf.current){a=Zi(e,a,o);break e}}else for(d=a.child,d!==null&&(d.return=a);d!==null;){var _e=d.dependencies;if(_e!==null){_=d.child;for(var tt=_e.firstContext;tt!==null;){if(tt.context===c){if(d.tag===1){tt=mh(-1,o&-o),tt.tag=2;var rt=d.updateQueue;if(rt!==null){rt=rt.shared;var it=rt.pending;it===null?tt.next=tt:(tt.next=it.next,it.next=tt),rt.pending=tt}}d.lanes|=o,tt=d.alternate,tt!==null&&(tt.lanes|=o),bh(d.return,o,a),_e.lanes|=o;break}tt=tt.next}}else if(d.tag===10)_=d.type===a.type?null:d.child;else if(d.tag===18){if(_=d.return,_===null)throw Error(p(341));_.lanes|=o,_e=_.alternate,_e!==null&&(_e.lanes|=o),bh(_,o,a),_=d.sibling}else _=d.child;if(_!==null)_.return=d;else for(_=d;_!==null;){if(_===a){_=null;break}if(d=_.sibling,d!==null){d.return=_.return,_=d;break}_=_.return}d=_}Xi(e,a,h.children,o),a=a.child}return a;case 9:return h=a.type,c=a.pendingProps.children,ch$1(a,o),h=eh(h),c=c(h),a.flags|=1,Xi(e,a,c,o),a.child;case 14:return c=a.type,h=Ci(c,a.pendingProps),h=Ci(c.type,h),$i(e,a,c,h,o);case 15:return bj(e,a,a.type,a.pendingProps,o);case 17:return c=a.type,h=a.pendingProps,h=a.elementType===c?h:Ci(c,h),ij(e,a),a.tag=1,Zf(c)?(e=!0,cg(a)):e=!1,ch$1(a,o),Gi(a,c,h),Ii(a,c,h,o),jj(null,a,c,!0,e,o);case 19:return xj(e,a,o);case 22:return dj(e,a,o)}throw Error(p(156,a.tag))};function Fk(e,a){return ac(e,a)}function $k(e,a,o,c){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(e,a,o,c){return new $k(e,a,o,c)}function aj(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zk(e){if(typeof e=="function")return aj(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Da)return 11;if(e===Ga)return 14}return 2}function Pg(e,a){var o=e.alternate;return o===null?(o=Bg(e.tag,a,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=a,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,a=e.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function Rg(e,a,o,c,h,d){var _=2;if(c=e,typeof e=="function")aj(e)&&(_=1);else if(typeof e=="string")_=5;else e:switch(e){case ya:return Tg(o.children,h,d,a);case za:_=8,h|=8;break;case Aa:return e=Bg(12,o,a,h|2),e.elementType=Aa,e.lanes=d,e;case Ea:return e=Bg(13,o,a,h),e.elementType=Ea,e.lanes=d,e;case Fa:return e=Bg(19,o,a,h),e.elementType=Fa,e.lanes=d,e;case Ia:return pj(o,h,d,a);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ba:_=10;break e;case Ca:_=9;break e;case Da:_=11;break e;case Ga:_=14;break e;case Ha:_=16,c=null;break e}throw Error(p(130,e==null?e:typeof e,""))}return a=Bg(_,o,a,h),a.elementType=e,a.type=c,a.lanes=d,a}function Tg(e,a,o,c){return e=Bg(7,e,c,a),e.lanes=o,e}function pj(e,a,o,c){return e=Bg(22,e,c,a),e.elementType=Ia,e.lanes=o,e.stateNode={isHidden:!1},e}function Qg(e,a,o){return e=Bg(6,e,null,a),e.lanes=o,e}function Sg(e,a,o){return a=Bg(4,e.children!==null?e.children:[],e.key,a),a.lanes=o,a.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},a}function al(e,a,o,c,h){this.tag=a,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=c,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function bl(e,a,o,c,h,d,_,_e,tt){return e=new al(e,a,o,_e,tt),a===1?(a=1,d===!0&&(a|=8)):a=0,d=Bg(3,null,null,a),e.current=d,d.stateNode=e,d.memoizedState={element:c,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},kh(d),e}function cl(e,a,o){var c=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(e){console.error(e)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs$1(reactDomExports);var createRoot,m=reactDomExports;createRoot=m.createRoot,m.hydrateRoot;const Spinner=({message:e})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"inline-block h-12 w-12 animate-spin rounded-full border-4 border-solid text-[var(--capsule-orange)] border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite",role:"status"}),jsxRuntimeExports.jsx("p",{className:"mt-2 text-center text-muted-foreground text-[1.25rem]",children:e})]});function setRef(e,a){typeof e=="function"?e(a):e!=null&&(e.current=a)}function composeRefs(...e){return a=>e.forEach(o=>setRef(o,a))}function useComposedRefs(...e){return reactExports.useCallback(composeRefs(...e),e)}var Slot=reactExports.forwardRef((e,a)=>{const{children:o,...c}=e,h=reactExports.Children.toArray(o),d=h.find(isSlottable);if(d){const _=d.props.children,_e=h.map(tt=>tt===d?reactExports.Children.count(_)>1?reactExports.Children.only(null):reactExports.isValidElement(_)?_.props.children:null:tt);return jsxRuntimeExports.jsx(SlotClone,{...c,ref:a,children:reactExports.isValidElement(_)?reactExports.cloneElement(_,void 0,_e):null})}return jsxRuntimeExports.jsx(SlotClone,{...c,ref:a,children:o})});Slot.displayName="Slot";var SlotClone=reactExports.forwardRef((e,a)=>{const{children:o,...c}=e;if(reactExports.isValidElement(o)){const h=getElementRef$1(o);return reactExports.cloneElement(o,{...mergeProps(c,o.props),ref:a?composeRefs(a,h):h})}return reactExports.Children.count(o)>1?reactExports.Children.only(null):null});SlotClone.displayName="SlotClone";var Slottable=({children:e})=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:e});function isSlottable(e){return reactExports.isValidElement(e)&&e.type===Slottable}function mergeProps(e,a){const o={...a};for(const c in a){const h=e[c],d=a[c];/^on[A-Z]/.test(c)?h&&d?o[c]=(..._e)=>{d(..._e),h(..._e)}:h&&(o[c]=h):c==="style"?o[c]={...h,...d}:c==="className"&&(o[c]=[h,d].filter(Boolean).join(" "))}return{...e,...o}}function getElementRef$1(e){var c,h;let a=(c=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:c.get,o=a&&"isReactWarning"in a&&a.isReactWarning;return o?e.ref:(a=(h=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:h.get,o=a&&"isReactWarning"in a&&a.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}function r$1(e){var a,o,c="";if(typeof e=="string"||typeof e=="number")c+=e;else if(typeof e=="object")if(Array.isArray(e))for(a=0;atypeof e=="boolean"?"".concat(e):e===0?"0":e,cx=clsx$1,cva=(e,a)=>o=>{var c;if((a==null?void 0:a.variants)==null)return cx(e,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:h,defaultVariants:d}=a,_=Object.keys(h).map(rt=>{const it=o==null?void 0:o[rt],st=d==null?void 0:d[rt];if(it===null)return null;const ht=falsyToString(it)||falsyToString(st);return h[rt][ht]}),_e=o&&Object.entries(o).reduce((rt,it)=>{let[st,ht]=it;return ht===void 0||(rt[st]=ht),rt},{}),tt=a==null||(c=a.compoundVariants)===null||c===void 0?void 0:c.reduce((rt,it)=>{let{class:st,className:ht,...mt}=it;return Object.entries(mt).every(vt=>{let[yt,_t]=vt;return Array.isArray(_t)?_t.includes({...d,..._e}[yt]):{...d,..._e}[yt]===_t})?[...rt,st,ht]:rt},[]);return cx(e,_,tt,o==null?void 0:o.class,o==null?void 0:o.className)};function r(e){var a,o,c="";if(typeof e=="string"||typeof e=="number")c+=e;else if(typeof e=="object")if(Array.isArray(e)){var h=e.length;for(a=0;a{const a=createClassMap(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:c}=e;return{getClassGroupId:_=>{const _e=_.split(CLASS_PART_SEPARATOR);return _e[0]===""&&_e.length!==1&&_e.shift(),getGroupRecursive(_e,a)||getGroupIdForArbitraryProperty(_)},getConflictingClassGroupIds:(_,_e)=>{const tt=o[_]||[];return _e&&c[_]?[...tt,...c[_]]:tt}}},getGroupRecursive=(e,a)=>{var _;if(e.length===0)return a.classGroupId;const o=e[0],c=a.nextPart.get(o),h=c?getGroupRecursive(e.slice(1),c):void 0;if(h)return h;if(a.validators.length===0)return;const d=e.join(CLASS_PART_SEPARATOR);return(_=a.validators.find(({validator:_e})=>_e(d)))==null?void 0:_.classGroupId},arbitraryPropertyRegex=/^\[(.+)\]$/,getGroupIdForArbitraryProperty=e=>{if(arbitraryPropertyRegex.test(e)){const a=arbitraryPropertyRegex.exec(e)[1],o=a==null?void 0:a.substring(0,a.indexOf(":"));if(o)return"arbitrary.."+o}},createClassMap=e=>{const{theme:a,prefix:o}=e,c={nextPart:new Map,validators:[]};return getPrefixedClassGroupEntries(Object.entries(e.classGroups),o).forEach(([d,_])=>{processClassesRecursively(_,c,d,a)}),c},processClassesRecursively=(e,a,o,c)=>{e.forEach(h=>{if(typeof h=="string"){const d=h===""?a:getPart(a,h);d.classGroupId=o;return}if(typeof h=="function"){if(isThemeGetter(h)){processClassesRecursively(h(c),a,o,c);return}a.validators.push({validator:h,classGroupId:o});return}Object.entries(h).forEach(([d,_])=>{processClassesRecursively(_,getPart(a,d),o,c)})})},getPart=(e,a)=>{let o=e;return a.split(CLASS_PART_SEPARATOR).forEach(c=>{o.nextPart.has(c)||o.nextPart.set(c,{nextPart:new Map,validators:[]}),o=o.nextPart.get(c)}),o},isThemeGetter=e=>e.isThemeGetter,getPrefixedClassGroupEntries=(e,a)=>a?e.map(([o,c])=>{const h=c.map(d=>typeof d=="string"?a+d:typeof d=="object"?Object.fromEntries(Object.entries(d).map(([_,_e])=>[a+_,_e])):d);return[o,h]}):e,createLruCache=e=>{if(e<1)return{get:()=>{},set:()=>{}};let a=0,o=new Map,c=new Map;const h=(d,_)=>{o.set(d,_),a++,a>e&&(a=0,c=o,o=new Map)};return{get(d){let _=o.get(d);if(_!==void 0)return _;if((_=c.get(d))!==void 0)return h(d,_),_},set(d,_){o.has(d)?o.set(d,_):h(d,_)}}},IMPORTANT_MODIFIER="!",createParseClassName=e=>{const{separator:a,experimentalParseClassName:o}=e,c=a.length===1,h=a[0],d=a.length,_=_e=>{const tt=[];let rt=0,it=0,st;for(let _t=0;_t<_e.length;_t++){let $t=_e[_t];if(rt===0){if($t===h&&(c||_e.slice(_t,_t+d)===a)){tt.push(_e.slice(it,_t)),it=_t+d;continue}if($t==="/"){st=_t;continue}}$t==="["?rt++:$t==="]"&&rt--}const ht=tt.length===0?_e:_e.substring(it),mt=ht.startsWith(IMPORTANT_MODIFIER),vt=mt?ht.substring(1):ht,yt=st&&st>it?st-it:void 0;return{modifiers:tt,hasImportantModifier:mt,baseClassName:vt,maybePostfixModifierPosition:yt}};return o?_e=>o({className:_e,parseClassName:_}):_},sortModifiers=e=>{if(e.length<=1)return e;const a=[];let o=[];return e.forEach(c=>{c[0]==="["?(a.push(...o.sort(),c),o=[]):o.push(c)}),a.push(...o.sort()),a},createConfigUtils=e=>({cache:createLruCache(e.cacheSize),parseClassName:createParseClassName(e),...createClassGroupUtils(e)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=(e,a)=>{const{parseClassName:o,getClassGroupId:c,getConflictingClassGroupIds:h}=a,d=[],_=e.trim().split(SPLIT_CLASSES_REGEX);let _e="";for(let tt=_.length-1;tt>=0;tt-=1){const rt=_[tt],{modifiers:it,hasImportantModifier:st,baseClassName:ht,maybePostfixModifierPosition:mt}=o(rt);let vt=!!mt,yt=c(vt?ht.substring(0,mt):ht);if(!yt){if(!vt){_e=rt+(_e.length>0?" "+_e:_e);continue}if(yt=c(ht),!yt){_e=rt+(_e.length>0?" "+_e:_e);continue}vt=!1}const _t=sortModifiers(it).join(":"),$t=st?_t+IMPORTANT_MODIFIER:_t,bt=$t+yt;if(d.includes(bt))continue;d.push(bt);const xt=h(yt,vt);for(let St=0;St0?" "+_e:_e)}return _e};function twJoin(){let e=0,a,o,c="";for(;e{if(typeof e=="string")return e;let a,o="";for(let c=0;cst(it),e());return o=createConfigUtils(rt),c=o.cache.get,h=o.cache.set,d=_e,_e(tt)}function _e(tt){const rt=c(tt);if(rt)return rt;const it=mergeClassList(tt,o);return h(tt,it),it}return function(){return d(twJoin.apply(null,arguments))}}const fromTheme=e=>{const a=o=>o[e]||[];return a.isThemeGetter=!0,a},arbitraryValueRegex=/^\[(?:([a-z-]+):)?(.+)\]$/i,fractionRegex=/^\d+\/\d+$/,stringLengths=new Set(["px","full","screen"]),tshirtUnitRegex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lengthUnitRegex=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,colorFunctionRegex=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,shadowRegex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,imageRegex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isLength=e=>isNumber$3(e)||stringLengths.has(e)||fractionRegex.test(e),isArbitraryLength=e=>getIsArbitraryValue(e,"length",isLengthOnly),isNumber$3=e=>!!e&&!Number.isNaN(Number(e)),isArbitraryNumber=e=>getIsArbitraryValue(e,"number",isNumber$3),isInteger=e=>!!e&&Number.isInteger(Number(e)),isPercent=e=>e.endsWith("%")&&isNumber$3(e.slice(0,-1)),isArbitraryValue=e=>arbitraryValueRegex.test(e),isTshirtSize=e=>tshirtUnitRegex.test(e),sizeLabels=new Set(["length","size","percentage"]),isArbitrarySize=e=>getIsArbitraryValue(e,sizeLabels,isNever),isArbitraryPosition=e=>getIsArbitraryValue(e,"position",isNever),imageLabels=new Set(["image","url"]),isArbitraryImage=e=>getIsArbitraryValue(e,imageLabels,isImage),isArbitraryShadow=e=>getIsArbitraryValue(e,"",isShadow),isAny=()=>!0,getIsArbitraryValue=(e,a,o)=>{const c=arbitraryValueRegex.exec(e);return c?c[1]?typeof a=="string"?c[1]===a:a.has(c[1]):o(c[2]):!1},isLengthOnly=e=>lengthUnitRegex.test(e)&&!colorFunctionRegex.test(e),isNever=()=>!1,isShadow=e=>shadowRegex.test(e),isImage=e=>imageRegex.test(e),getDefaultConfig=()=>{const e=fromTheme("colors"),a=fromTheme("spacing"),o=fromTheme("blur"),c=fromTheme("brightness"),h=fromTheme("borderColor"),d=fromTheme("borderRadius"),_=fromTheme("borderSpacing"),_e=fromTheme("borderWidth"),tt=fromTheme("contrast"),rt=fromTheme("grayscale"),it=fromTheme("hueRotate"),st=fromTheme("invert"),ht=fromTheme("gap"),mt=fromTheme("gradientColorStops"),vt=fromTheme("gradientColorStopPositions"),yt=fromTheme("inset"),_t=fromTheme("margin"),$t=fromTheme("opacity"),bt=fromTheme("padding"),xt=fromTheme("saturate"),St=fromTheme("scale"),Rt=fromTheme("sepia"),Ot=fromTheme("skew"),Vt=fromTheme("space"),Wt=fromTheme("translate"),Ft=()=>["auto","contain","none"],Zt=()=>["auto","hidden","clip","visible","scroll"],pt=()=>["auto",isArbitraryValue,a],$=()=>[isArbitraryValue,a],et=()=>["",isLength,isArbitraryLength],nt=()=>["auto",isNumber$3,isArbitraryValue],at=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],lt=()=>["solid","dashed","dotted","double","none"],dt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],gt=()=>["start","end","center","between","around","evenly","stretch"],ot=()=>["","0",isArbitraryValue],j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ct=()=>[isNumber$3,isArbitraryValue];return{cacheSize:500,separator:":",theme:{colors:[isAny],spacing:[isLength,isArbitraryLength],blur:["none","",isTshirtSize,isArbitraryValue],brightness:ct(),borderColor:[e],borderRadius:["none","","full",isTshirtSize,isArbitraryValue],borderSpacing:$(),borderWidth:et(),contrast:ct(),grayscale:ot(),hueRotate:ct(),invert:ot(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[isPercent,isArbitraryLength],inset:pt(),margin:pt(),opacity:ct(),padding:$(),saturate:ct(),scale:ct(),sepia:ot(),skew:ct(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",isArbitraryValue]}],container:["container"],columns:[{columns:[isTshirtSize]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...at(),isArbitraryValue]}],overflow:[{overflow:Zt()}],"overflow-x":[{"overflow-x":Zt()}],"overflow-y":[{"overflow-y":Zt()}],overscroll:[{overscroll:Ft()}],"overscroll-x":[{"overscroll-x":Ft()}],"overscroll-y":[{"overscroll-y":Ft()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[yt]}],"inset-x":[{"inset-x":[yt]}],"inset-y":[{"inset-y":[yt]}],start:[{start:[yt]}],end:[{end:[yt]}],top:[{top:[yt]}],right:[{right:[yt]}],bottom:[{bottom:[yt]}],left:[{left:[yt]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",isInteger,isArbitraryValue]}],basis:[{basis:pt()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",isArbitraryValue]}],grow:[{grow:ot()}],shrink:[{shrink:ot()}],order:[{order:["first","last","none",isInteger,isArbitraryValue]}],"grid-cols":[{"grid-cols":[isAny]}],"col-start-end":[{col:["auto",{span:["full",isInteger,isArbitraryValue]},isArbitraryValue]}],"col-start":[{"col-start":nt()}],"col-end":[{"col-end":nt()}],"grid-rows":[{"grid-rows":[isAny]}],"row-start-end":[{row:["auto",{span:[isInteger,isArbitraryValue]},isArbitraryValue]}],"row-start":[{"row-start":nt()}],"row-end":[{"row-end":nt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",isArbitraryValue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",isArbitraryValue]}],gap:[{gap:[ht]}],"gap-x":[{"gap-x":[ht]}],"gap-y":[{"gap-y":[ht]}],"justify-content":[{justify:["normal",...gt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...gt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...gt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[bt]}],px:[{px:[bt]}],py:[{py:[bt]}],ps:[{ps:[bt]}],pe:[{pe:[bt]}],pt:[{pt:[bt]}],pr:[{pr:[bt]}],pb:[{pb:[bt]}],pl:[{pl:[bt]}],m:[{m:[_t]}],mx:[{mx:[_t]}],my:[{my:[_t]}],ms:[{ms:[_t]}],me:[{me:[_t]}],mt:[{mt:[_t]}],mr:[{mr:[_t]}],mb:[{mb:[_t]}],ml:[{ml:[_t]}],"space-x":[{"space-x":[Vt]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Vt]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",isArbitraryValue,a]}],"min-w":[{"min-w":[isArbitraryValue,a,"min","max","fit"]}],"max-w":[{"max-w":[isArbitraryValue,a,"none","full","min","max","fit","prose",{screen:[isTshirtSize]},isTshirtSize]}],h:[{h:[isArbitraryValue,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[isArbitraryValue,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[isArbitraryValue,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[isArbitraryValue,a,"auto","min","max","fit"]}],"font-size":[{text:["base",isTshirtSize,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",isArbitraryNumber]}],"font-family":[{font:[isAny]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",isArbitraryValue]}],"line-clamp":[{"line-clamp":["none",isNumber$3,isArbitraryNumber]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",isLength,isArbitraryValue]}],"list-image":[{"list-image":["none",isArbitraryValue]}],"list-style-type":[{list:["none","disc","decimal",isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[$t]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[$t]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...lt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",isLength,isArbitraryLength]}],"underline-offset":[{"underline-offset":["auto",isLength,isArbitraryValue]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[$t]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...at(),isArbitraryPosition]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",isArbitrarySize]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},isArbitraryImage]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[vt]}],"gradient-via-pos":[{via:[vt]}],"gradient-to-pos":[{to:[vt]}],"gradient-from":[{from:[mt]}],"gradient-via":[{via:[mt]}],"gradient-to":[{to:[mt]}],rounded:[{rounded:[d]}],"rounded-s":[{"rounded-s":[d]}],"rounded-e":[{"rounded-e":[d]}],"rounded-t":[{"rounded-t":[d]}],"rounded-r":[{"rounded-r":[d]}],"rounded-b":[{"rounded-b":[d]}],"rounded-l":[{"rounded-l":[d]}],"rounded-ss":[{"rounded-ss":[d]}],"rounded-se":[{"rounded-se":[d]}],"rounded-ee":[{"rounded-ee":[d]}],"rounded-es":[{"rounded-es":[d]}],"rounded-tl":[{"rounded-tl":[d]}],"rounded-tr":[{"rounded-tr":[d]}],"rounded-br":[{"rounded-br":[d]}],"rounded-bl":[{"rounded-bl":[d]}],"border-w":[{border:[_e]}],"border-w-x":[{"border-x":[_e]}],"border-w-y":[{"border-y":[_e]}],"border-w-s":[{"border-s":[_e]}],"border-w-e":[{"border-e":[_e]}],"border-w-t":[{"border-t":[_e]}],"border-w-r":[{"border-r":[_e]}],"border-w-b":[{"border-b":[_e]}],"border-w-l":[{"border-l":[_e]}],"border-opacity":[{"border-opacity":[$t]}],"border-style":[{border:[...lt(),"hidden"]}],"divide-x":[{"divide-x":[_e]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[_e]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[$t]}],"divide-style":[{divide:lt()}],"border-color":[{border:[h]}],"border-color-x":[{"border-x":[h]}],"border-color-y":[{"border-y":[h]}],"border-color-t":[{"border-t":[h]}],"border-color-r":[{"border-r":[h]}],"border-color-b":[{"border-b":[h]}],"border-color-l":[{"border-l":[h]}],"divide-color":[{divide:[h]}],"outline-style":[{outline:["",...lt()]}],"outline-offset":[{"outline-offset":[isLength,isArbitraryValue]}],"outline-w":[{outline:[isLength,isArbitraryLength]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:et()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[$t]}],"ring-offset-w":[{"ring-offset":[isLength,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",isTshirtSize,isArbitraryShadow]}],"shadow-color":[{shadow:[isAny]}],opacity:[{opacity:[$t]}],"mix-blend":[{"mix-blend":[...dt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":dt()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[c]}],contrast:[{contrast:[tt]}],"drop-shadow":[{"drop-shadow":["","none",isTshirtSize,isArbitraryValue]}],grayscale:[{grayscale:[rt]}],"hue-rotate":[{"hue-rotate":[it]}],invert:[{invert:[st]}],saturate:[{saturate:[xt]}],sepia:[{sepia:[Rt]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[c]}],"backdrop-contrast":[{"backdrop-contrast":[tt]}],"backdrop-grayscale":[{"backdrop-grayscale":[rt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[it]}],"backdrop-invert":[{"backdrop-invert":[st]}],"backdrop-opacity":[{"backdrop-opacity":[$t]}],"backdrop-saturate":[{"backdrop-saturate":[xt]}],"backdrop-sepia":[{"backdrop-sepia":[Rt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[_]}],"border-spacing-x":[{"border-spacing-x":[_]}],"border-spacing-y":[{"border-spacing-y":[_]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",isArbitraryValue]}],duration:[{duration:ct()}],ease:[{ease:["linear","in","out","in-out",isArbitraryValue]}],delay:[{delay:ct()}],animate:[{animate:["none","spin","ping","pulse","bounce",isArbitraryValue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[St]}],"scale-x":[{"scale-x":[St]}],"scale-y":[{"scale-y":[St]}],rotate:[{rotate:[isInteger,isArbitraryValue]}],"translate-x":[{"translate-x":[Wt]}],"translate-y":[{"translate-y":[Wt]}],"skew-x":[{"skew-x":[Ot]}],"skew-y":[{"skew-y":[Ot]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",isArbitraryValue]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryValue]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryValue]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[isLength,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},twMerge=createTailwindMerge(getDefaultConfig);function cn(...e){return twMerge(clsx(e))}const buttonVariants=cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Button=reactExports.forwardRef(({className:e,variant:a,size:o,asChild:c=!1,...h},d)=>{const _=c?Slot:"button";return jsxRuntimeExports.jsx(_,{className:cn(buttonVariants({variant:a,size:o,className:e})),ref:d,...h})});Button.displayName="Button";var dist$1={},sdk={};(function(){var e={},a="";try{a=location.hash.toString()}catch{}var o=tt(a),c=$t("initParams");if(c)for(var h in c)typeof o[h]>"u"&&(o[h]=c[h]);_t("initParams",o);var d=!1,_;try{if(d=window.parent!=null&&window!=window.parent,d){window.addEventListener("message",function(bt){if(bt.source===window.parent){try{var xt=JSON.parse(bt.data)}catch{return}if(!(!xt||!xt.eventType))if(xt.eventType=="set_custom_style")bt.origin==="https://web.telegram.org"&&(_.innerHTML=xt.eventData);else if(xt.eventType=="reload_iframe"){try{window.parent.postMessage(JSON.stringify({eventType:"iframe_will_reload"}),"*")}catch{}location.reload()}else ht(xt.eventType,xt.eventData)}}),_=document.createElement("style"),document.head.appendChild(_);try{window.parent.postMessage(JSON.stringify({eventType:"iframe_ready",eventData:{reload_supported:!0}}),"*")}catch{}}}catch{}function _e(bt){try{return bt=bt.replace(/\+/g,"%20"),decodeURIComponent(bt)}catch{return bt}}function tt(bt){bt=bt.replace(/^#/,"");var xt={};if(!bt.length)return xt;if(bt.indexOf("=")<0&&bt.indexOf("?")<0)return xt._path=_e(bt),xt;var St=bt.indexOf("?");if(St>=0){var Rt=bt.substr(0,St);xt._path=_e(Rt),bt=bt.substr(St+1)}var Ot=rt(bt);for(var Vt in Ot)xt[Vt]=Ot[Vt];return xt}function rt(bt){var xt={};if(!bt.length)return xt;var St=bt.split("&"),Rt,Ot,Vt,Wt;for(Rt=0;Rt=0?bt+"&"+xt:Rt.length>0?bt+"?"+xt:bt+xt}function st(bt,xt,St){if(xt||(xt=function(){}),St===void 0&&(St=""),console.log("[Telegram.WebView] > postEvent",bt,St),window.TelegramWebviewProxy!==void 0)TelegramWebviewProxy.postEvent(bt,JSON.stringify(St)),xt();else if(window.external&&"notify"in window.external)window.external.notify(JSON.stringify({eventType:bt,eventData:St})),xt();else if(d)try{var Rt="https://web.telegram.org";Rt="*",window.parent.postMessage(JSON.stringify({eventType:bt,eventData:St}),Rt),xt()}catch(Ot){xt(Ot)}else xt({notAvailable:!0})}function ht(bt,xt){console.log("[Telegram.WebView] < receiveEvent",bt,xt),mt(bt,function(St){St(bt,xt)})}function mt(bt,xt){var St=e[bt];if(!(St===void 0||!St.length))for(var Rt=0;RtLr?1:-1;return 0}function nr(Ht){return wr(rt,Ht)>=0}function ur(Ht){if(window.Blob)try{return new Blob([Ht]).size}catch{}for(var Kt=Ht.length,ir=Ht.length-1;ir>=0;ir--){var er=Ht.charCodeAt(ir);er>127&&er<=2047?Kt++:er>2047&&er<=65535&&(Kt+=2),er>=56320&&er<=57343&&ir--}return Kt}var Or=function(){var Ht=!1,Kt={};Object.defineProperty(Kt,"isVisible",{set:function(dr){Fr({is_visible:dr})},get:function(){return Ht},enumerable:!0});var ir=null;a.onEvent("back_button_pressed",er);function er(){Rt("backButtonClicked")}function or(){return{is_visible:Ht}}function Lr(dr){return typeof dr>"u"&&(dr=or()),JSON.stringify(dr)}function lr(){return nr("6.1")?!0:(console.warn("[Telegram.WebApp] BackButton is not supported in version "+rt),!1)}function vr(){var dr=or(),xr=Lr(dr);ir!==xr&&(ir=xr,a.postEvent("web_app_setup_back_button",!1,dr))}function Fr(dr){return lr()&&(typeof dr.is_visible<"u"&&(Ht=!!dr.is_visible),vr()),Kt}return Kt.onClick=function(dr){return lr()&&Ot("backButtonClicked",dr),Kt},Kt.offClick=function(dr){return lr()&&Vt("backButtonClicked",dr),Kt},Kt.show=function(){return Fr({is_visible:!0})},Kt.hide=function(){return Fr({is_visible:!1})},Kt}(),pr=0,Jt=function(){var Ht=!1,Kt=!0,ir=!1,er="CONTINUE",or=!1,Lr=!1,lr={};Object.defineProperty(lr,"text",{set:function(Pr){lr.setParams({text:Pr})},get:function(){return er},enumerable:!0}),Object.defineProperty(lr,"color",{set:function(Pr){lr.setParams({color:Pr})},get:function(){return or||_e.button_color||"#2481cc"},enumerable:!0}),Object.defineProperty(lr,"textColor",{set:function(Pr){lr.setParams({text_color:Pr})},get:function(){return Lr||_e.button_text_color||"#ffffff"},enumerable:!0}),Object.defineProperty(lr,"isVisible",{set:function(Pr){lr.setParams({is_visible:Pr})},get:function(){return Ht},enumerable:!0}),Object.defineProperty(lr,"isProgressVisible",{get:function(){return ir},enumerable:!0}),Object.defineProperty(lr,"isActive",{set:function(Pr){lr.setParams({is_active:Pr})},get:function(){return Kt},enumerable:!0});var vr=null;a.onEvent("main_button_pressed",Vr);var Fr=null,dr={};if(o.tgWebAppDebug){Fr=document.createElement("tg-main-button"),dr={font:"600 14px/18px sans-serif",display:"none",width:"100%",height:"48px",borderRadius:"0",background:"no-repeat right center",position:"fixed",left:"0",right:"0",bottom:"0",margin:"0",padding:"15px 20px",textAlign:"center",boxSizing:"border-box",zIndex:"10000"};for(var xr in dr)Fr.style[xr]=dr[xr];document.addEventListener("DOMContentLoaded",function Pr(gr){document.removeEventListener("DOMContentLoaded",Pr),document.body.appendChild(Fr),Fr.addEventListener("click",Vr,!1)})}function Vr(){Kt&&Rt("mainButtonClicked")}function Ar(){var Pr=lr.color,gr=lr.textColor;return Ht?{is_visible:!0,is_active:Kt,is_progress_visible:ir,text:er,color:Pr,text_color:gr}:{is_visible:!1}}function Rr(Pr){return typeof Pr>"u"&&(Pr=Ar()),JSON.stringify(Pr)}function Wr(){var Pr=Ar(),gr=Rr(Pr);vr!==gr&&(vr=gr,a.postEvent("web_app_setup_main_button",!1,Pr),o.tgWebAppDebug&&Er(Pr))}function Er(Pr){Pr.is_visible?(Fr.style.display="block",pr=48,Fr.style.opacity=Pr.is_active?"1":"0.8",Fr.style.cursor=Pr.is_active?"pointer":"auto",Fr.disabled=!Pr.is_active,Fr.innerText=Pr.text,Fr.style.backgroundImage=Pr.is_progress_visible?"url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewport%3D%220%200%2048%2048%22%20width%3D%2248px%22%20height%3D%2248px%22%3E%3Ccircle%20cx%3D%2250%25%22%20cy%3D%2250%25%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222.25%22%20stroke-linecap%3D%22round%22%20fill%3D%22none%22%20stroke-dashoffset%3D%22106%22%20r%3D%229%22%20stroke-dasharray%3D%2256.52%22%20rotate%3D%22-90%22%3E%3Canimate%20attributeName%3D%22stroke-dashoffset%22%20attributeType%3D%22XML%22%20dur%3D%22360s%22%20from%3D%220%22%20to%3D%2212500%22%20repeatCount%3D%22indefinite%22%3E%3C%2Fanimate%3E%3CanimateTransform%20attributeName%3D%22transform%22%20attributeType%3D%22XML%22%20type%3D%22rotate%22%20dur%3D%221s%22%20from%3D%22-90%2024%2024%22%20to%3D%22630%2024%2024%22%20repeatCount%3D%22indefinite%22%3E%3C%2FanimateTransform%3E%3C%2Fcircle%3E%3C%2Fsvg%3E')":"none",Fr.style.backgroundColor=Pr.color,Fr.style.color=Pr.text_color):(Fr.style.display="none",pr=0),document.documentElement&&(document.documentElement.style.boxSizing="border-box",document.documentElement.style.paddingBottom=pr+"px"),at()}function Tr(Pr){if(typeof Pr.text<"u"){var gr=St(Pr.text);if(!gr.length)throw console.error("[Telegram.WebApp] Main button text is required",Pr.text),Error("WebAppMainButtonParamInvalid");if(gr.length>64)throw console.error("[Telegram.WebApp] Main button text is too long",gr),Error("WebAppMainButtonParamInvalid");er=gr}if(typeof Pr.color<"u")if(Pr.color===!1||Pr.color===null)or=!1;else{var Cr=kt(Pr.color);if(!Cr)throw console.error("[Telegram.WebApp] Main button color format is invalid",Pr.color),Error("WebAppMainButtonParamInvalid");or=Cr}if(typeof Pr.text_color<"u")if(Pr.text_color===!1||Pr.text_color===null)Lr=!1;else{var qr=kt(Pr.text_color);if(!qr)throw console.error("[Telegram.WebApp] Main button text color format is invalid",Pr.text_color),Error("WebAppMainButtonParamInvalid");Lr=qr}if(typeof Pr.is_visible<"u"){if(Pr.is_visible&&!lr.text.length)throw console.error("[Telegram.WebApp] Main button text is required"),Error("WebAppMainButtonParamInvalid");Ht=!!Pr.is_visible}return typeof Pr.is_active<"u"&&(Kt=!!Pr.is_active),Wr(),lr}return lr.setText=function(Pr){return lr.setParams({text:Pr})},lr.onClick=function(Pr){return Ot("mainButtonClicked",Pr),lr},lr.offClick=function(Pr){return Vt("mainButtonClicked",Pr),lr},lr.show=function(){return lr.setParams({is_visible:!0})},lr.hide=function(){return lr.setParams({is_visible:!1})},lr.enable=function(){return lr.setParams({is_active:!0})},lr.disable=function(){return lr.setParams({is_active:!1})},lr.showProgress=function(Pr){return Kt=!!Pr,ir=!0,Wr(),lr},lr.hideProgress=function(){return lr.isActive||(Kt=!0),ir=!1,Wr(),lr},lr.setParams=Tr,lr}(),Hr=function(){var Ht=!1,Kt={};Object.defineProperty(Kt,"isVisible",{set:function(dr){Fr({is_visible:dr})},get:function(){return Ht},enumerable:!0});var ir=null;a.onEvent("settings_button_pressed",er);function er(){Rt("settingsButtonClicked")}function or(){return{is_visible:Ht}}function Lr(dr){return typeof dr>"u"&&(dr=or()),JSON.stringify(dr)}function lr(){return nr("6.10")?!0:(console.warn("[Telegram.WebApp] SettingsButton is not supported in version "+rt),!1)}function vr(){var dr=or(),xr=Lr(dr);ir!==xr&&(ir=xr,a.postEvent("web_app_setup_settings_button",!1,dr))}function Fr(dr){return lr()&&(typeof dr.is_visible<"u"&&(Ht=!!dr.is_visible),vr()),Kt}return Kt.onClick=function(dr){return lr()&&Ot("settingsButtonClicked",dr),Kt},Kt.offClick=function(dr){return lr()&&Vt("settingsButtonClicked",dr),Kt},Kt.show=function(){return Fr({is_visible:!0})},Kt.hide=function(){return Fr({is_visible:!1})},Kt}(),br=function(){var Ht={};function Kt(ir){if(!nr("6.1"))return console.warn("[Telegram.WebApp] HapticFeedback is not supported in version "+rt),Ht;if(ir.type=="impact"){if(ir.impact_style!="light"&&ir.impact_style!="medium"&&ir.impact_style!="heavy"&&ir.impact_style!="rigid"&&ir.impact_style!="soft")throw console.error("[Telegram.WebApp] Haptic impact style is invalid",ir.impact_style),Error("WebAppHapticImpactStyleInvalid")}else if(ir.type=="notification"){if(ir.notification_type!="error"&&ir.notification_type!="success"&&ir.notification_type!="warning")throw console.error("[Telegram.WebApp] Haptic notification type is invalid",ir.notification_type),Error("WebAppHapticNotificationTypeInvalid")}else if(ir.type!="selection_change")throw console.error("[Telegram.WebApp] Haptic feedback type is invalid",ir.type),Error("WebAppHapticFeedbackTypeInvalid");return a.postEvent("web_app_trigger_haptic_feedback",!1,ir),Ht}return Ht.impactOccurred=function(ir){return Kt({type:"impact",impact_style:ir})},Ht.notificationOccurred=function(ir){return Kt({type:"notification",notification_type:ir})},Ht.selectionChanged=function(){return Kt({type:"selection_change"})},Ht}(),Mr=function(){var Ht={};function Kt(ir,er,or){if(!nr("6.9"))throw console.error("[Telegram.WebApp] CloudStorage is not supported in version "+rt),Error("WebAppMethodUnsupported");return Ur(ir,er,or),Ht}return Ht.setItem=function(ir,er,or){return Kt("saveStorageValue",{key:ir,value:er},or)},Ht.getItem=function(ir,er){return Ht.getItems([ir],er?function(or,Lr){or?er(or):er(null,Lr[ir])}:null)},Ht.getItems=function(ir,er){return Kt("getStorageValues",{keys:ir},er)},Ht.removeItem=function(ir,er){return Ht.removeItems([ir],er)},Ht.removeItems=function(ir,er){return Kt("deleteStorageValues",{keys:ir},er)},Ht.getKeys=function(ir){return Kt("getStorageKeys",{},ir)},Ht}(),jr=function(){var Ht=!1,Kt=!1,ir="unknown",er=!1,or=!1,Lr=!1,lr="",vr={};Object.defineProperty(vr,"isInited",{get:function(){return Ht},enumerable:!0}),Object.defineProperty(vr,"isBiometricAvailable",{get:function(){return Ht&&Kt},enumerable:!0}),Object.defineProperty(vr,"biometricType",{get:function(){return ir||"unknown"},enumerable:!0}),Object.defineProperty(vr,"isAccessRequested",{get:function(){return er},enumerable:!0}),Object.defineProperty(vr,"isAccessGranted",{get:function(){return er&&or},enumerable:!0}),Object.defineProperty(vr,"isBiometricTokenSaved",{get:function(){return Lr},enumerable:!0}),Object.defineProperty(vr,"deviceId",{get:function(){return lr||""},enumerable:!0});var Fr={callbacks:[]},dr=!1,xr=!1,Vr=!1;a.onEvent("biometry_info_received",Ar),a.onEvent("biometry_auth_requested",Rr),a.onEvent("biometry_token_updated",Wr);function Ar(Pr,gr){if(Ht=!0,gr.available?(Kt=!0,ir=gr.type||"unknown",gr.access_requested?(er=!0,or=!!gr.access_granted,Lr=!!gr.token_saved):(er=!1,or=!1,Lr=!1)):(Kt=!1,ir="unknown",er=!1,or=!1,Lr=!1),lr=gr.device_id||"",Fr.callbacks.length>0)for(var Cr=0;Cr128)throw console.error("[Telegram.WebApp] Biometric reason is too long",qr),Error("WebAppBiometricRequestAccessParamInvalid");qr.length>0&&(Cr.reason=qr)}return dr={callback:gr},a.postEvent("web_app_biometry_request_access",!1,Cr),vr},vr.authenticate=function(Pr,gr){if(!Er())return vr;if(Tr(),!Kt)throw console.error("[Telegram.WebApp] Biometrics is not available on this device."),Error("WebAppBiometricManagerBiometricsNotAvailable");if(!or)throw console.error("[Telegram.WebApp] Biometric access was not granted by the user."),Error("WebAppBiometricManagerBiometricAccessNotGranted");if(xr)throw console.error("[Telegram.WebApp] Authentication request is already in progress."),Error("WebAppBiometricManagerAuthenticationRequested");var Cr={};if(typeof Pr.reason<"u"){var qr=St(Pr.reason);if(qr.length>128)throw console.error("[Telegram.WebApp] Biometric reason is too long",qr),Error("WebAppBiometricRequestAccessParamInvalid");qr.length>0&&(Cr.reason=qr)}return xr={callback:gr},a.postEvent("web_app_biometry_request_auth",!1,Cr),vr},vr.updateBiometricToken=function(Pr,gr){if(!Er())return vr;if(Pr=Pr||"",Pr.length>1024)throw console.error("[Telegram.WebApp] Token is too long",Pr),Error("WebAppBiometricManagerTokenInvalid");if(Tr(),!Kt)throw console.error("[Telegram.WebApp] Biometrics is not available on this device."),Error("WebAppBiometricManagerBiometricsNotAvailable");if(!or)throw console.error("[Telegram.WebApp] Biometric access was not granted by the user."),Error("WebAppBiometricManagerBiometricAccessNotGranted");if(Vr)throw console.error("[Telegram.WebApp] Token request is already in progress."),Error("WebAppBiometricManagerTokenUpdateRequested");return Vr={callback:gr},a.postEvent("web_app_biometry_update_token",!1,{token:Pr}),vr},vr.openSettings=function(){if(!Er())return vr;if(Tr(),!Kt)throw console.error("[Telegram.WebApp] Biometrics is not available on this device."),Error("WebAppBiometricManagerBiometricsNotAvailable");if(!er)throw console.error("[Telegram.WebApp] Biometric access was not requested yet."),Error("WebAppBiometricManagerBiometricsAccessNotRequested");return or?(console.warn("[Telegram.WebApp] Biometric access was granted by the user, no need to go to settings."),vr):(a.postEvent("web_app_biometry_open_settings",!1),vr)},vr}(),Gt={};function Yt(Ht,Kt){if(Kt.slug&&Gt[Kt.slug]){var ir=Gt[Kt.slug];delete Gt[Kt.slug],ir.callback&&ir.callback(Kt.status),Rt("invoiceClosed",{url:ir.url,status:Kt.status})}}var Ir=!1;function ar(Ht,Kt){if(Ir){var ir=Ir;Ir=!1;var er=null;typeof Kt.button_id<"u"&&(er=Kt.button_id),ir.callback&&ir.callback(er),Rt("popupClosed",{button_id:er})}}var fr=!1;function Dr(Ht,Kt){if(fr){var ir=fr,er=null;typeof Kt.data<"u"&&(er=Kt.data),ir.callback&&ir.callback(er)&&(fr=!1,a.postEvent("web_app_close_scan_qr_popup",!1)),Rt("qrTextReceived",{data:er})}}function Pt(Ht,Kt){fr=!1,Rt("scanQrPopupClosed")}function At(Ht,Kt){if(Kt.req_id&&Zt[Kt.req_id]){var ir=Zt[Kt.req_id];delete Zt[Kt.req_id];var er=null;typeof Kt.data<"u"&&(er=Kt.data),ir.callback&&ir.callback(er),Rt("clipboardTextReceived",{data:er})}}var It=!1;function Dt(Ht,Kt){if(It){var ir=It;It=!1,ir.callback&&ir.callback(Kt.status=="allowed"),Rt("writeAccessRequested",{status:Kt.status})}}function Qt(Ht,Kt){var ir,er,or=0,Lr=function(){Ur("getRequestedContact",{},function(vr,Fr){Fr&&Fr.length?(clearTimeout(er),Ht(Fr)):(or+=50,ir=setTimeout(Lr,or))})},lr=function(){clearTimeout(ir),Ht("")};er=setTimeout(lr,Kt),Lr()}var cr=!1;function Xt(Ht,Kt){if(cr){var ir=cr;cr=!1;var er=Kt.status=="sent",or={status:Kt.status};er?Qt(function(Lr){if(Lr&&Lr.length){or.response=Lr,or.responseUnsafe=e.urlParseQueryString(Lr);for(var lr in or.responseUnsafe){var vr=or.responseUnsafe[lr];try{(vr.substr(0,1)=="{"&&vr.substr(-1)=="}"||vr.substr(0,1)=="["&&vr.substr(-1)=="]")&&(or.responseUnsafe[lr]=JSON.parse(vr))}catch{}}}ir.callback&&ir.callback(er,or),Rt("contactRequested",or)},3e3):(ir.callback&&ir.callback(er,or),Rt("contactRequested",or))}}function yr(Ht,Kt){if(Kt.req_id&&Zt[Kt.req_id]){var ir=Zt[Kt.req_id];delete Zt[Kt.req_id];var er=null,or=null;typeof Kt.result<"u"&&(er=Kt.result),typeof Kt.error<"u"&&(or=Kt.error),ir.callback&&ir.callback(or,er)}}function Ur(Ht,Kt,ir){if(!nr("6.9"))throw console.error("[Telegram.WebApp] Method invokeCustomMethod is not supported in version "+rt),Error("WebAppMethodUnsupported");var er=pt(16),or={req_id:er,method:Ht,params:Kt||{}};Zt[er]={callback:ir},a.postEvent("web_app_invoke_custom_method",!1,or)}window.Telegram||(window.Telegram={}),Object.defineProperty(h,"initData",{get:function(){return d},enumerable:!0}),Object.defineProperty(h,"initDataUnsafe",{get:function(){return _},enumerable:!0}),Object.defineProperty(h,"version",{get:function(){return rt},enumerable:!0}),Object.defineProperty(h,"platform",{get:function(){return it},enumerable:!0}),Object.defineProperty(h,"colorScheme",{get:function(){return tt},enumerable:!0}),Object.defineProperty(h,"themeParams",{get:function(){return _e},enumerable:!0}),Object.defineProperty(h,"isExpanded",{get:function(){return nt},enumerable:!0}),Object.defineProperty(h,"viewportHeight",{get:function(){return($===!1?window.innerHeight:$)-pr},enumerable:!0}),Object.defineProperty(h,"viewportStableHeight",{get:function(){return(et===!1?window.innerHeight:et)-pr},enumerable:!0}),Object.defineProperty(h,"isClosingConfirmationEnabled",{set:function(Ht){dt(Ht)},get:function(){return lt},enumerable:!0}),Object.defineProperty(h,"isVerticalSwipesEnabled",{set:function(Ht){ot(Ht)},get:function(){return gt},enumerable:!0}),Object.defineProperty(h,"headerColor",{set:function(Ht){Et(Ht)},get:function(){return wt()},enumerable:!0}),Object.defineProperty(h,"backgroundColor",{set:function(Ht){Lt(Ht)},get:function(){return Nt()},enumerable:!0}),Object.defineProperty(h,"BackButton",{value:Or,enumerable:!0}),Object.defineProperty(h,"MainButton",{value:Jt,enumerable:!0}),Object.defineProperty(h,"SettingsButton",{value:Hr,enumerable:!0}),Object.defineProperty(h,"HapticFeedback",{value:br,enumerable:!0}),Object.defineProperty(h,"CloudStorage",{value:Mr,enumerable:!0}),Object.defineProperty(h,"BiometricManager",{value:jr,enumerable:!0}),h.setHeaderColor=function(Ht){h.headerColor=Ht},h.setBackgroundColor=function(Ht){h.backgroundColor=Ht},h.enableClosingConfirmation=function(){h.isClosingConfirmationEnabled=!0},h.disableClosingConfirmation=function(){h.isClosingConfirmationEnabled=!1},h.enableVerticalSwipes=function(){h.isVerticalSwipesEnabled=!0},h.disableVerticalSwipes=function(){h.isVerticalSwipesEnabled=!1},h.isVersionAtLeast=function(Ht){return nr(Ht)},h.onEvent=function(Ht,Kt){Ot(Ht,Kt)},h.offEvent=function(Ht,Kt){Vt(Ht,Kt)},h.sendData=function(Ht){if(!Ht||!Ht.length)throw console.error("[Telegram.WebApp] Data is required",Ht),Error("WebAppDataInvalid");if(ur(Ht)>4096)throw console.error("[Telegram.WebApp] Data is too long",Ht),Error("WebAppDataInvalid");a.postEvent("web_app_data_send",!1,{data:Ht})},h.switchInlineQuery=function(Ht,Kt){if(!nr("6.6"))throw console.error("[Telegram.WebApp] Method switchInlineQuery is not supported in version "+rt),Error("WebAppMethodUnsupported");if(!o.tgWebAppBotInline)throw console.error("[Telegram.WebApp] Inline mode is disabled for this bot. Read more about inline mode: https://core.telegram.org/bots/inline"),Error("WebAppInlineModeDisabled");if(Ht=Ht||"",Ht.length>256)throw console.error("[Telegram.WebApp] Inline query is too long",Ht),Error("WebAppInlineQueryInvalid");var ir=[];if(Kt){if(!Array.isArray(Kt))throw console.error("[Telegram.WebApp] Choose chat types should be an array",Kt),Error("WebAppInlineChooseChatTypesInvalid");for(var er={users:1,bots:1,groups:1,channels:1},or=0;or64)throw console.error("[Telegram.WebApp] Popup title is too long",ir),Error("WebAppPopupParamInvalid");ir.length>0&&(Lr.title=ir)}if(typeof Ht.message<"u"&&(er=St(Ht.message)),!er.length)throw console.error("[Telegram.WebApp] Popup message is required",Ht.message),Error("WebAppPopupParamInvalid");if(er.length>256)throw console.error("[Telegram.WebApp] Popup message is too long",er),Error("WebAppPopupParamInvalid");if(Lr.message=er,typeof Ht.buttons<"u"){if(!Array.isArray(Ht.buttons))throw console.error("[Telegram.WebApp] Popup buttons should be an array",Ht.buttons),Error("WebAppPopupParamInvalid");for(var lr=0;lr64))throw console.error("[Telegram.WebApp] Popup button id is too long",dr),Error("WebAppPopupParamInvalid");Fr.id=dr;var xr=vr.type;if(typeof xr>"u"&&(xr="default"),Fr.type=xr,!(xr=="ok"||xr=="close"||xr=="cancel"))if(xr=="default"||xr=="destructive"){var Vr="";if(typeof vr.text<"u"&&(Vr=St(vr.text)),!Vr.length)throw console.error("[Telegram.WebApp] Popup button text is required for type "+xr,vr.text),Error("WebAppPopupParamInvalid");if(Vr.length>64)throw console.error("[Telegram.WebApp] Popup button text is too long",Vr),Error("WebAppPopupParamInvalid");Fr.text=Vr}else throw console.error("[Telegram.WebApp] Popup button type is invalid",xr),Error("WebAppPopupParamInvalid");or.push(Fr)}}else or.push({id:"",type:"close"});if(or.length<1)throw console.error("[Telegram.WebApp] Popup should have at least one button"),Error("WebAppPopupParamInvalid");if(or.length>3)throw console.error("[Telegram.WebApp] Popup should not have more than 3 buttons"),Error("WebAppPopupParamInvalid");Lr.buttons=or,Ir={callback:Kt},a.postEvent("web_app_open_popup",!1,Lr)},h.showAlert=function(Ht,Kt){h.showPopup({message:Ht},Kt?function(){Kt()}:null)},h.showConfirm=function(Ht,Kt){h.showPopup({message:Ht,buttons:[{type:"ok",id:"ok"},{type:"cancel"}]},Kt?function(ir){Kt(ir=="ok")}:null)},h.showScanQrPopup=function(Ht,Kt){if(!nr("6.4"))throw console.error("[Telegram.WebApp] Method showScanQrPopup is not supported in version "+rt),Error("WebAppMethodUnsupported");if(fr)throw console.error("[Telegram.WebApp] Popup is already opened"),Error("WebAppScanQrPopupOpened");var ir="",er={};if(typeof Ht.text<"u"){if(ir=St(Ht.text),ir.length>64)throw console.error("[Telegram.WebApp] Scan QR popup text is too long",ir),Error("WebAppScanQrPopupParamInvalid");ir.length>0&&(er.text=ir)}fr={callback:Kt},a.postEvent("web_app_open_scan_qr_popup",!1,er)},h.closeScanQrPopup=function(){if(!nr("6.4"))throw console.error("[Telegram.WebApp] Method closeScanQrPopup is not supported in version "+rt),Error("WebAppMethodUnsupported");fr=!1,a.postEvent("web_app_close_scan_qr_popup",!1)},h.readTextFromClipboard=function(Ht){if(!nr("6.4"))throw console.error("[Telegram.WebApp] Method readTextFromClipboard is not supported in version "+rt),Error("WebAppMethodUnsupported");var Kt=pt(16),ir={req_id:Kt};Zt[Kt]={callback:Ht},a.postEvent("web_app_read_text_from_clipboard",!1,ir)},h.requestWriteAccess=function(Ht){if(!nr("6.9"))throw console.error("[Telegram.WebApp] Method requestWriteAccess is not supported in version "+rt),Error("WebAppMethodUnsupported");if(It)throw console.error("[Telegram.WebApp] Write access is already requested"),Error("WebAppWriteAccessRequested");It={callback:Ht},a.postEvent("web_app_request_write_access")},h.requestContact=function(Ht){if(!nr("6.9"))throw console.error("[Telegram.WebApp] Method requestContact is not supported in version "+rt),Error("WebAppMethodUnsupported");if(cr)throw console.error("[Telegram.WebApp] Contact is already requested"),Error("WebAppContactRequested");cr={callback:Ht},a.postEvent("web_app_request_phone")},h.shareToStory=function(Ht,Kt){if(Kt=Kt||{},!nr("7.8"))throw console.error("[Telegram.WebApp] Method shareToStory is not supported in version "+rt),Error("WebAppMethodUnsupported");var ir=document.createElement("A");if(ir.href=Ht,ir.protocol!="http:"&&ir.protocol!="https:")throw console.error("[Telegram.WebApp] Media url protocol is not supported",url),Error("WebAppMediaUrlInvalid");var er={};if(er.media_url=ir.href,typeof Kt.text<"u"){var or=St(Kt.text);if(or.length>2048)throw console.error("[Telegram.WebApp] Text is too long",or),Error("WebAppShareToStoryParamInvalid");or.length>0&&(er.text=or)}if(typeof Kt.widget_link<"u"){if(Kt.widget_link=Kt.widget_link||{},ir.href=Kt.widget_link.url,ir.protocol!="http:"&&ir.protocol!="https:")throw console.error("[Telegram.WebApp] Link protocol is not supported",url),Error("WebAppShareToStoryParamInvalid");var Lr={url:ir.href};if(typeof Kt.widget_link.name<"u"){var lr=St(Kt.widget_link.name);if(lr.length>48)throw console.error("[Telegram.WebApp] Link name is too long",lr),Error("WebAppShareToStoryParamInvalid");lr.length>0&&(Lr.name=lr)}er.widget_link=Lr}a.postEvent("web_app_share_to_story",!1,er)},h.invokeCustomMethod=function(Ht,Kt,ir){Ur(Ht,Kt,ir)},h.ready=function(){a.postEvent("web_app_ready")},h.expand=function(){a.postEvent("web_app_expand")},h.close=function(Ht){Ht=Ht||{};var Kt={};nr("7.6")&&Ht.return_back&&(Kt.return_back=!0),a.postEvent("web_app_close",!1,Kt)},window.Telegram.WebApp=h,Bt(),Ut(),at(),o.tgWebAppShowSettings&&Hr.show(),window.addEventListener("resize",bt),c&&document.addEventListener("click",xt),a.onEvent("theme_changed",yt),a.onEvent("viewport_changed",$t),a.onEvent("invoice_closed",Yt),a.onEvent("popup_closed",ar),a.onEvent("qr_text_received",Dr),a.onEvent("scan_qr_popup_closed",Pt),a.onEvent("clipboard_text_received",At),a.onEvent("write_access_requested",Dt),a.onEvent("phone_requested",Xt),a.onEvent("custom_method_invoked",yr),a.postEvent("web_app_request_theme"),a.postEvent("web_app_request_viewport")})();Object.defineProperty(sdk,"__esModule",{value:!0});sdk.WebApp=void 0;var telegramWindow=window;sdk.WebApp=telegramWindow.Telegram.WebApp;Object.defineProperty(dist$1,"__esModule",{value:!0});var sdk_1=sdk,_default=dist$1.default=sdk_1.WebApp;const telegramCloudStorage={setItem:(e,a,o)=>{_default.CloudStorage.setItem(e,a,o)},getItem:(e,a)=>{_default.CloudStorage.getItem(e,a)},getItems:(e,a)=>{_default.CloudStorage.getItems(e,a)},getKeys:e=>{_default.CloudStorage.getKeys(e)},removeItem:(e,a)=>{_default.CloudStorage.removeItem(e,a)},removeItems:(e,a)=>{_default.CloudStorage.removeItems(e,a)}},INITIAL_CHUNK_COUNT=32,MAX_RETRIES=256,storeWithChunking=async(e,a,o,c)=>{const h=(_,_e)=>new Promise((tt,rt)=>{telegramCloudStorage.setItem(_,_e,it=>{it?rt(it):tt()})}),d=async(_,_e,tt=0)=>{if(tt>MAX_RETRIES)throw new Error(`Failed to store after ${MAX_RETRIES} splitting attempts`);const rt=[];if(await Promise.all(_e.map(async(st,ht)=>{const mt=`${_}_chunk_${ht}`;try{await h(mt,st)}catch{rt.push({index:ht,value:st})}})),rt.length===0)return _e.length;const it=_e.filter((st,ht)=>!rt.some(mt=>mt.index===ht));for(const{value:st}of rt){const ht=Math.ceil(st.length/2);it.push(st.slice(0,ht),st.slice(ht))}return d(_,it,tt+1)};try{o(`Storing "${e}"...`);const _=Math.ceil(a.length/INITIAL_CHUNK_COUNT),_e=Array.from({length:INITIAL_CHUNK_COUNT},(rt,it)=>a.slice(it*_,(it+1)*_)).filter(rt=>rt.length>0),tt=await d(e,_e);return await h(`${e}_meta`,JSON.stringify({totalChunks:tt})),o(`Successfully stored "${e}" in ${tt} chunks`),tt}catch(_){throw c(`Failed to store "${e}": ${_ instanceof Error?_.message:String(_)}`),_}},retrieveChunkedData=async(e,a,o)=>{const c=h=>new Promise((d,_)=>{telegramCloudStorage.getItem(h,(_e,tt)=>{_e?_(_e):d(tt)})});try{const h=await c(`${e}_meta`);if(!h)throw new Error(`No metadata found for key ${e}`);const{totalChunks:d}=JSON.parse(h);a(`Retrieving data for "${e}" (${d} chunks)`);const _e=(await Promise.all(Array.from({length:d},(tt,rt)=>c(`${e}_chunk_${rt}`)))).join("");return a(`Successfully retrieved and recombined data for "${e}"`),_e}catch(h){throw o(`Failed to retrieve data for "${e}": ${h instanceof Error?h.message:String(h)}`),h}};var buffer$1={},base64Js$1={};base64Js$1.byteLength=byteLength$1;base64Js$1.toByteArray=toByteArray$1;base64Js$1.fromByteArray=fromByteArray$1;var lookup$1=[],revLookup$1=[],Arr$1=typeof Uint8Array<"u"?Uint8Array:Array,code$1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i$2=0,len$1=code$1.length;i$20)throw new Error("Invalid string. Length must be a multiple of 4");var o=e.indexOf("=");o===-1&&(o=a);var c=o===a?0:4-o%4;return[o,c]}function byteLength$1(e){var a=getLens$1(e),o=a[0],c=a[1];return(o+c)*3/4-c}function _byteLength$1(e,a,o){return(a+o)*3/4-o}function toByteArray$1(e){var a,o=getLens$1(e),c=o[0],h=o[1],d=new Arr$1(_byteLength$1(e,c,h)),_=0,_e=h>0?c-4:c,tt;for(tt=0;tt<_e;tt+=4)a=revLookup$1[e.charCodeAt(tt)]<<18|revLookup$1[e.charCodeAt(tt+1)]<<12|revLookup$1[e.charCodeAt(tt+2)]<<6|revLookup$1[e.charCodeAt(tt+3)],d[_++]=a>>16&255,d[_++]=a>>8&255,d[_++]=a&255;return h===2&&(a=revLookup$1[e.charCodeAt(tt)]<<2|revLookup$1[e.charCodeAt(tt+1)]>>4,d[_++]=a&255),h===1&&(a=revLookup$1[e.charCodeAt(tt)]<<10|revLookup$1[e.charCodeAt(tt+1)]<<4|revLookup$1[e.charCodeAt(tt+2)]>>2,d[_++]=a>>8&255,d[_++]=a&255),d}function tripletToBase64$1(e){return lookup$1[e>>18&63]+lookup$1[e>>12&63]+lookup$1[e>>6&63]+lookup$1[e&63]}function encodeChunk$1(e,a,o){for(var c,h=[],d=a;d_e?_e:_+d));return c===1?(a=e[o-1],h.push(lookup$1[a>>2]+lookup$1[a<<4&63]+"==")):c===2&&(a=(e[o-2]<<8)+e[o-1],h.push(lookup$1[a>>10]+lookup$1[a>>4&63]+lookup$1[a<<2&63]+"=")),h.join("")}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ieee754.read=function(e,a,o,c,h){var d,_,_e=h*8-c-1,tt=(1<<_e)-1,rt=tt>>1,it=-7,st=o?h-1:0,ht=o?-1:1,mt=e[a+st];for(st+=ht,d=mt&(1<<-it)-1,mt>>=-it,it+=_e;it>0;d=d*256+e[a+st],st+=ht,it-=8);for(_=d&(1<<-it)-1,d>>=-it,it+=c;it>0;_=_*256+e[a+st],st+=ht,it-=8);if(d===0)d=1-rt;else{if(d===tt)return _?NaN:(mt?-1:1)*(1/0);_=_+Math.pow(2,c),d=d-rt}return(mt?-1:1)*_*Math.pow(2,d-c)};ieee754.write=function(e,a,o,c,h,d){var _,_e,tt,rt=d*8-h-1,it=(1<>1,ht=h===23?Math.pow(2,-24)-Math.pow(2,-77):0,mt=c?0:d-1,vt=c?1:-1,yt=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(_e=isNaN(a)?1:0,_=it):(_=Math.floor(Math.log(a)/Math.LN2),a*(tt=Math.pow(2,-_))<1&&(_--,tt*=2),_+st>=1?a+=ht/tt:a+=ht*Math.pow(2,1-st),a*tt>=2&&(_++,tt/=2),_+st>=it?(_e=0,_=it):_+st>=1?(_e=(a*tt-1)*Math.pow(2,h),_=_+st):(_e=a*Math.pow(2,st-1)*Math.pow(2,h),_=0));h>=8;e[o+mt]=_e&255,mt+=vt,_e/=256,h-=8);for(_=_<0;e[o+mt]=_&255,mt+=vt,_/=256,rt-=8);e[o+mt-vt]|=yt*128};/*! +`+d.stack}return{value:e,source:a,stack:h,digest:null}}function Ki(e,a,o){return{value:e,source:null,stack:o??null,digest:a??null}}function Li(e,a){try{console.error(a.value)}catch(o){setTimeout(function(){throw o})}}var Mi=typeof WeakMap=="function"?WeakMap:Map;function Ni(e,a,o){o=mh(-1,o),o.tag=3,o.payload={element:null};var c=a.value;return o.callback=function(){Oi||(Oi=!0,Pi$1=c),Li(e,a)},o}function Qi(e,a,o){o=mh(-1,o),o.tag=3;var c=e.type.getDerivedStateFromError;if(typeof c=="function"){var h=a.value;o.payload=function(){return c(h)},o.callback=function(){Li(e,a)}}var d=e.stateNode;return d!==null&&typeof d.componentDidCatch=="function"&&(o.callback=function(){Li(e,a),typeof c!="function"&&(Ri===null?Ri=new Set([this]):Ri.add(this));var _=a.stack;this.componentDidCatch(a.value,{componentStack:_!==null?_:""})}),o}function Si(e,a,o){var c=e.pingCache;if(c===null){c=e.pingCache=new Mi;var h=new Set;c.set(a,h)}else h=c.get(a),h===void 0&&(h=new Set,c.set(a,h));h.has(o)||(h.add(o),e=Ti.bind(null,e,a,o),a.then(e,e))}function Ui(e){do{var a;if((a=e.tag===13)&&(a=e.memoizedState,a=a!==null?a.dehydrated!==null:!0),a)return e;e=e.return}while(e!==null);return null}function Vi(e,a,o,c,h){return e.mode&1?(e.flags|=65536,e.lanes=h,e):(e===a?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(a=mh(-1,1),a.tag=2,nh(o,a,1))),o.lanes|=1),e)}var Wi=ua.ReactCurrentOwner,dh$1=!1;function Xi(e,a,o,c){a.child=e===null?Vg(a,null,o,c):Ug(a,e.child,o,c)}function Yi(e,a,o,c,h){o=o.render;var d=a.ref;return ch$1(a,h),c=Nh(e,a,o,c,d,h),o=Sh(),e!==null&&!dh$1?(a.updateQueue=e.updateQueue,a.flags&=-2053,e.lanes&=~h,Zi(e,a,h)):(I$1&&o&&vg(a),a.flags|=1,Xi(e,a,c,h),a.child)}function $i(e,a,o,c,h){if(e===null){var d=o.type;return typeof d=="function"&&!aj(d)&&d.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(a.tag=15,a.type=d,bj(e,a,d,c,h)):(e=Rg(o.type,null,c,a,a.mode,h),e.ref=a.ref,e.return=a,a.child=e)}if(d=e.child,!(e.lanes&h)){var _=d.memoizedProps;if(o=o.compare,o=o!==null?o:Ie,o(_,c)&&e.ref===a.ref)return Zi(e,a,h)}return a.flags|=1,e=Pg(d,c),e.ref=a.ref,e.return=a,a.child=e}function bj(e,a,o,c,h){if(e!==null){var d=e.memoizedProps;if(Ie(d,c)&&e.ref===a.ref)if(dh$1=!1,a.pendingProps=c=d,(e.lanes&h)!==0)e.flags&131072&&(dh$1=!0);else return a.lanes=e.lanes,Zi(e,a,h)}return cj(e,a,o,c,h)}function dj(e,a,o){var c=a.pendingProps,h=c.children,d=e!==null?e.memoizedState:null;if(c.mode==="hidden")if(!(a.mode&1))a.memoizedState={baseLanes:0,cachePool:null,transitions:null},G$1(ej,fj),fj|=o;else{if(!(o&1073741824))return e=d!==null?d.baseLanes|o:o,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:e,cachePool:null,transitions:null},a.updateQueue=null,G$1(ej,fj),fj|=e,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=d!==null?d.baseLanes:o,G$1(ej,fj),fj|=c}else d!==null?(c=d.baseLanes|o,a.memoizedState=null):c=o,G$1(ej,fj),fj|=c;return Xi(e,a,h,o),a.child}function gj(e,a){var o=a.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(a.flags|=512,a.flags|=2097152)}function cj(e,a,o,c,h){var d=Zf(o)?Xf:H.current;return d=Yf(a,d),ch$1(a,h),o=Nh(e,a,o,c,d,h),c=Sh(),e!==null&&!dh$1?(a.updateQueue=e.updateQueue,a.flags&=-2053,e.lanes&=~h,Zi(e,a,h)):(I$1&&c&&vg(a),a.flags|=1,Xi(e,a,o,h),a.child)}function hj(e,a,o,c,h){if(Zf(o)){var d=!0;cg(a)}else d=!1;if(ch$1(a,h),a.stateNode===null)ij(e,a),Gi(a,o,c),Ii(a,o,c,h),c=!0;else if(e===null){var _=a.stateNode,_e=a.memoizedProps;_.props=_e;var tt=_.context,rt=o.contextType;typeof rt=="object"&&rt!==null?rt=eh(rt):(rt=Zf(o)?Xf:H.current,rt=Yf(a,rt));var it=o.getDerivedStateFromProps,st=typeof it=="function"||typeof _.getSnapshotBeforeUpdate=="function";st||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(_e!==c||tt!==rt)&&Hi(a,_,c,rt),jh=!1;var ht=a.memoizedState;_.state=ht,qh(a,c,_,h),tt=a.memoizedState,_e!==c||ht!==tt||Wf.current||jh?(typeof it=="function"&&(Di(a,o,it,c),tt=a.memoizedState),(_e=jh||Fi(a,o,_e,c,ht,tt,rt))?(st||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(a.flags|=4194308)):(typeof _.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=c,a.memoizedState=tt),_.props=c,_.state=tt,_.context=rt,c=_e):(typeof _.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{_=a.stateNode,lh(e,a),_e=a.memoizedProps,rt=a.type===a.elementType?_e:Ci(a.type,_e),_.props=rt,st=a.pendingProps,ht=_.context,tt=o.contextType,typeof tt=="object"&&tt!==null?tt=eh(tt):(tt=Zf(o)?Xf:H.current,tt=Yf(a,tt));var mt=o.getDerivedStateFromProps;(it=typeof mt=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(_e!==st||ht!==tt)&&Hi(a,_,c,tt),jh=!1,ht=a.memoizedState,_.state=ht,qh(a,c,_,h);var vt=a.memoizedState;_e!==st||ht!==vt||Wf.current||jh?(typeof mt=="function"&&(Di(a,o,mt,c),vt=a.memoizedState),(rt=jh||Fi(a,o,rt,c,ht,vt,tt)||!1)?(it||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(c,vt,tt),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(c,vt,tt)),typeof _.componentDidUpdate=="function"&&(a.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof _.componentDidUpdate!="function"||_e===e.memoizedProps&&ht===e.memoizedState||(a.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||_e===e.memoizedProps&&ht===e.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=vt),_.props=c,_.state=vt,_.context=tt,c=rt):(typeof _.componentDidUpdate!="function"||_e===e.memoizedProps&&ht===e.memoizedState||(a.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||_e===e.memoizedProps&&ht===e.memoizedState||(a.flags|=1024),c=!1)}return jj(e,a,o,c,d,h)}function jj(e,a,o,c,h,d){gj(e,a);var _=(a.flags&128)!==0;if(!c&&!_)return h&&dg(a,o,!1),Zi(e,a,d);c=a.stateNode,Wi.current=a;var _e=_&&typeof o.getDerivedStateFromError!="function"?null:c.render();return a.flags|=1,e!==null&&_?(a.child=Ug(a,e.child,null,d),a.child=Ug(a,null,_e,d)):Xi(e,a,_e,d),a.memoizedState=c.state,h&&dg(a,o,!0),a.child}function kj(e){var a=e.stateNode;a.pendingContext?ag(e,a.pendingContext,a.pendingContext!==a.context):a.context&&ag(e,a.context,!1),yh(e,a.containerInfo)}function lj(e,a,o,c,h){return Ig(),Jg(h),a.flags|=256,Xi(e,a,o,c),a.child}var mj={dehydrated:null,treeContext:null,retryLane:0};function nj(e){return{baseLanes:e,cachePool:null,transitions:null}}function oj(e,a,o){var c=a.pendingProps,h=L$1.current,d=!1,_=(a.flags&128)!==0,_e;if((_e=_)||(_e=e!==null&&e.memoizedState===null?!1:(h&2)!==0),_e?(d=!0,a.flags&=-129):(e===null||e.memoizedState!==null)&&(h|=1),G$1(L$1,h&1),e===null)return Eg(a),e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(a.mode&1?e.data==="$!"?a.lanes=8:a.lanes=1073741824:a.lanes=1,null):(_=c.children,e=c.fallback,d?(c=a.mode,d=a.child,_={mode:"hidden",children:_},!(c&1)&&d!==null?(d.childLanes=0,d.pendingProps=_):d=pj(_,c,0,null),e=Tg(e,c,o,null),d.return=a,e.return=a,d.sibling=e,a.child=d,a.child.memoizedState=nj(o),a.memoizedState=mj,e):qj(a,_));if(h=e.memoizedState,h!==null&&(_e=h.dehydrated,_e!==null))return rj(e,a,_,c,_e,h,o);if(d){d=c.fallback,_=a.mode,h=e.child,_e=h.sibling;var tt={mode:"hidden",children:c.children};return!(_&1)&&a.child!==h?(c=a.child,c.childLanes=0,c.pendingProps=tt,a.deletions=null):(c=Pg(h,tt),c.subtreeFlags=h.subtreeFlags&14680064),_e!==null?d=Pg(_e,d):(d=Tg(d,_,o,null),d.flags|=2),d.return=a,c.return=a,c.sibling=d,a.child=c,c=d,d=a.child,_=e.child.memoizedState,_=_===null?nj(o):{baseLanes:_.baseLanes|o,cachePool:null,transitions:_.transitions},d.memoizedState=_,d.childLanes=e.childLanes&~o,a.memoizedState=mj,c}return d=e.child,e=d.sibling,c=Pg(d,{mode:"visible",children:c.children}),!(a.mode&1)&&(c.lanes=o),c.return=a,c.sibling=null,e!==null&&(o=a.deletions,o===null?(a.deletions=[e],a.flags|=16):o.push(e)),a.child=c,a.memoizedState=null,c}function qj(e,a){return a=pj({mode:"visible",children:a},e.mode,0,null),a.return=e,e.child=a}function sj(e,a,o,c){return c!==null&&Jg(c),Ug(a,e.child,null,o),e=qj(a,a.pendingProps.children),e.flags|=2,a.memoizedState=null,e}function rj(e,a,o,c,h,d,_){if(o)return a.flags&256?(a.flags&=-257,c=Ki(Error(p(422))),sj(e,a,_,c)):a.memoizedState!==null?(a.child=e.child,a.flags|=128,null):(d=c.fallback,h=a.mode,c=pj({mode:"visible",children:c.children},h,0,null),d=Tg(d,h,_,null),d.flags|=2,c.return=a,d.return=a,c.sibling=d,a.child=c,a.mode&1&&Ug(a,e.child,null,_),a.child.memoizedState=nj(_),a.memoizedState=mj,d);if(!(a.mode&1))return sj(e,a,_,null);if(h.data==="$!"){if(c=h.nextSibling&&h.nextSibling.dataset,c)var _e=c.dgst;return c=_e,d=Error(p(419)),c=Ki(d,c,void 0),sj(e,a,_,c)}if(_e=(_&e.childLanes)!==0,dh$1||_e){if(c=Q,c!==null){switch(_&-_){case 4:h=2;break;case 16:h=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:h=32;break;case 536870912:h=268435456;break;default:h=0}h=h&(c.suspendedLanes|_)?0:h,h!==0&&h!==d.retryLane&&(d.retryLane=h,ih(e,h),gi(c,e,h,-1))}return tj(),c=Ki(Error(p(421))),sj(e,a,_,c)}return h.data==="$?"?(a.flags|=128,a.child=e.child,a=uj.bind(null,e),h._reactRetry=a,null):(e=d.treeContext,yg=Lf(h.nextSibling),xg=a,I$1=!0,zg=null,e!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=e.id,sg=e.overflow,qg=a),a=qj(a,c.children),a.flags|=4096,a)}function vj(e,a,o){e.lanes|=a;var c=e.alternate;c!==null&&(c.lanes|=a),bh(e.return,a,o)}function wj(e,a,o,c,h){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:o,tailMode:h}:(d.isBackwards=a,d.rendering=null,d.renderingStartTime=0,d.last=c,d.tail=o,d.tailMode=h)}function xj(e,a,o){var c=a.pendingProps,h=c.revealOrder,d=c.tail;if(Xi(e,a,c.children,o),c=L$1.current,c&2)c=c&1|2,a.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=a.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vj(e,o,a);else if(e.tag===19)vj(e,o,a);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===a)break e;for(;e.sibling===null;){if(e.return===null||e.return===a)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}c&=1}if(G$1(L$1,c),!(a.mode&1))a.memoizedState=null;else switch(h){case"forwards":for(o=a.child,h=null;o!==null;)e=o.alternate,e!==null&&Ch$1(e)===null&&(h=o),o=o.sibling;o=h,o===null?(h=a.child,a.child=null):(h=o.sibling,o.sibling=null),wj(a,!1,h,o,d);break;case"backwards":for(o=null,h=a.child,a.child=null;h!==null;){if(e=h.alternate,e!==null&&Ch$1(e)===null){a.child=h;break}e=h.sibling,h.sibling=o,o=h,h=e}wj(a,!0,o,null,d);break;case"together":wj(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function ij(e,a){!(a.mode&1)&&e!==null&&(e.alternate=null,a.alternate=null,a.flags|=2)}function Zi(e,a,o){if(e!==null&&(a.dependencies=e.dependencies),rh|=a.lanes,!(o&a.childLanes))return null;if(e!==null&&a.child!==e.child)throw Error(p(153));if(a.child!==null){for(e=a.child,o=Pg(e,e.pendingProps),a.child=o,o.return=a;e.sibling!==null;)e=e.sibling,o=o.sibling=Pg(e,e.pendingProps),o.return=a;o.sibling=null}return a.child}function yj(e,a,o){switch(a.tag){case 3:kj(a),Ig();break;case 5:Ah(a);break;case 1:Zf(a.type)&&cg(a);break;case 4:yh(a,a.stateNode.containerInfo);break;case 10:var c=a.type._context,h=a.memoizedProps.value;G$1(Wg,c._currentValue),c._currentValue=h;break;case 13:if(c=a.memoizedState,c!==null)return c.dehydrated!==null?(G$1(L$1,L$1.current&1),a.flags|=128,null):o&a.child.childLanes?oj(e,a,o):(G$1(L$1,L$1.current&1),e=Zi(e,a,o),e!==null?e.sibling:null);G$1(L$1,L$1.current&1);break;case 19:if(c=(o&a.childLanes)!==0,e.flags&128){if(c)return xj(e,a,o);a.flags|=128}if(h=a.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),G$1(L$1,L$1.current),c)break;return null;case 22:case 23:return a.lanes=0,dj(e,a,o)}return Zi(e,a,o)}var zj,Aj,Bj,Cj;zj=function(e,a){for(var o=a.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return;o=o.return}o.sibling.return=o.return,o=o.sibling}};Aj=function(){};Bj=function(e,a,o,c){var h=e.memoizedProps;if(h!==c){e=a.stateNode,xh(uh.current);var d=null;switch(o){case"input":h=Ya(e,h),c=Ya(e,c),d=[];break;case"select":h=A$1({},h,{value:void 0}),c=A$1({},c,{value:void 0}),d=[];break;case"textarea":h=gb(e,h),c=gb(e,c),d=[];break;default:typeof h.onClick!="function"&&typeof c.onClick=="function"&&(e.onclick=Bf)}ub(o,c);var _;o=null;for(rt in h)if(!c.hasOwnProperty(rt)&&h.hasOwnProperty(rt)&&h[rt]!=null)if(rt==="style"){var _e=h[rt];for(_ in _e)_e.hasOwnProperty(_)&&(o||(o={}),o[_]="")}else rt!=="dangerouslySetInnerHTML"&&rt!=="children"&&rt!=="suppressContentEditableWarning"&&rt!=="suppressHydrationWarning"&&rt!=="autoFocus"&&(ea.hasOwnProperty(rt)?d||(d=[]):(d=d||[]).push(rt,null));for(rt in c){var tt=c[rt];if(_e=h!=null?h[rt]:void 0,c.hasOwnProperty(rt)&&tt!==_e&&(tt!=null||_e!=null))if(rt==="style")if(_e){for(_ in _e)!_e.hasOwnProperty(_)||tt&&tt.hasOwnProperty(_)||(o||(o={}),o[_]="");for(_ in tt)tt.hasOwnProperty(_)&&_e[_]!==tt[_]&&(o||(o={}),o[_]=tt[_])}else o||(d||(d=[]),d.push(rt,o)),o=tt;else rt==="dangerouslySetInnerHTML"?(tt=tt?tt.__html:void 0,_e=_e?_e.__html:void 0,tt!=null&&_e!==tt&&(d=d||[]).push(rt,tt)):rt==="children"?typeof tt!="string"&&typeof tt!="number"||(d=d||[]).push(rt,""+tt):rt!=="suppressContentEditableWarning"&&rt!=="suppressHydrationWarning"&&(ea.hasOwnProperty(rt)?(tt!=null&&rt==="onScroll"&&D$1("scroll",e),d||_e===tt||(d=[])):(d=d||[]).push(rt,tt))}o&&(d=d||[]).push("style",o);var rt=d;(a.updateQueue=rt)&&(a.flags|=4)}};Cj=function(e,a,o,c){o!==c&&(a.flags|=4)};function Dj(e,a){if(!I$1)switch(e.tailMode){case"hidden":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?a||e.tail===null?e.tail=null:e.tail.sibling=null:c.sibling=null}}function S$1(e){var a=e.alternate!==null&&e.alternate.child===e.child,o=0,c=0;if(a)for(var h=e.child;h!==null;)o|=h.lanes|h.childLanes,c|=h.subtreeFlags&14680064,c|=h.flags&14680064,h.return=e,h=h.sibling;else for(h=e.child;h!==null;)o|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=e,h=h.sibling;return e.subtreeFlags|=c,e.childLanes=o,a}function Ej(e,a,o){var c=a.pendingProps;switch(wg(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S$1(a),null;case 1:return Zf(a.type)&&$f(),S$1(a),null;case 3:return c=a.stateNode,zh(),E(Wf),E(H),Eh(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(e===null||e.child===null)&&(Gg(a)?a.flags|=4:e===null||e.memoizedState.isDehydrated&&!(a.flags&256)||(a.flags|=1024,zg!==null&&(Fj(zg),zg=null))),Aj(e,a),S$1(a),null;case 5:Bh(a);var h=xh(wh.current);if(o=a.type,e!==null&&a.stateNode!=null)Bj(e,a,o,c,h),e.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!c){if(a.stateNode===null)throw Error(p(166));return S$1(a),null}if(e=xh(uh.current),Gg(a)){c=a.stateNode,o=a.type;var d=a.memoizedProps;switch(c[Of]=a,c[Pf]=d,e=(a.mode&1)!==0,o){case"dialog":D$1("cancel",c),D$1("close",c);break;case"iframe":case"object":case"embed":D$1("load",c);break;case"video":case"audio":for(h=0;h<\/script>",e=e.removeChild(e.firstChild)):typeof c.is=="string"?e=_.createElement(o,{is:c.is}):(e=_.createElement(o),o==="select"&&(_=e,c.multiple?_.multiple=!0:c.size&&(_.size=c.size))):e=_.createElementNS(e,o),e[Of]=a,e[Pf]=c,zj(e,a,!1,!1),a.stateNode=e;e:{switch(_=vb(o,c),o){case"dialog":D$1("cancel",e),D$1("close",e),h=c;break;case"iframe":case"object":case"embed":D$1("load",e),h=c;break;case"video":case"audio":for(h=0;hGj&&(a.flags|=128,c=!0,Dj(d,!1),a.lanes=4194304)}else{if(!c)if(e=Ch$1(_),e!==null){if(a.flags|=128,c=!0,o=e.updateQueue,o!==null&&(a.updateQueue=o,a.flags|=4),Dj(d,!0),d.tail===null&&d.tailMode==="hidden"&&!_.alternate&&!I$1)return S$1(a),null}else 2*B()-d.renderingStartTime>Gj&&o!==1073741824&&(a.flags|=128,c=!0,Dj(d,!1),a.lanes=4194304);d.isBackwards?(_.sibling=a.child,a.child=_):(o=d.last,o!==null?o.sibling=_:a.child=_,d.last=_)}return d.tail!==null?(a=d.tail,d.rendering=a,d.tail=a.sibling,d.renderingStartTime=B(),a.sibling=null,o=L$1.current,G$1(L$1,c?o&1|2:o&1),a):(S$1(a),null);case 22:case 23:return Hj(),c=a.memoizedState!==null,e!==null&&e.memoizedState!==null!==c&&(a.flags|=8192),c&&a.mode&1?fj&1073741824&&(S$1(a),a.subtreeFlags&6&&(a.flags|=8192)):S$1(a),null;case 24:return null;case 25:return null}throw Error(p(156,a.tag))}function Ij(e,a){switch(wg(a),a.tag){case 1:return Zf(a.type)&&$f(),e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 3:return zh(),E(Wf),E(H),Eh(),e=a.flags,e&65536&&!(e&128)?(a.flags=e&-65537|128,a):null;case 5:return Bh(a),null;case 13:if(E(L$1),e=a.memoizedState,e!==null&&e.dehydrated!==null){if(a.alternate===null)throw Error(p(340));Ig()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 19:return E(L$1),null;case 4:return zh(),null;case 10:return ah(a.type._context),null;case 22:case 23:return Hj(),null;case 24:return null;default:return null}}var Jj=!1,U=!1,Kj=typeof WeakSet=="function"?WeakSet:Set,V=null;function Lj(e,a){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(c){W$6(e,a,c)}else o.current=null}function Mj(e,a,o){try{o()}catch(c){W$6(e,a,c)}}var Nj=!1;function Oj(e,a){if(Cf=dd,e=Me(),Ne(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var c=o.getSelection&&o.getSelection();if(c&&c.rangeCount!==0){o=c.anchorNode;var h=c.anchorOffset,d=c.focusNode;c=c.focusOffset;try{o.nodeType,d.nodeType}catch{o=null;break e}var _=0,_e=-1,tt=-1,rt=0,it=0,st=e,ht=null;t:for(;;){for(var mt;st!==o||h!==0&&st.nodeType!==3||(_e=_+h),st!==d||c!==0&&st.nodeType!==3||(tt=_+c),st.nodeType===3&&(_+=st.nodeValue.length),(mt=st.firstChild)!==null;)ht=st,st=mt;for(;;){if(st===e)break t;if(ht===o&&++rt===h&&(_e=_),ht===d&&++it===c&&(tt=_),(mt=st.nextSibling)!==null)break;st=ht,ht=st.parentNode}st=mt}o=_e===-1||tt===-1?null:{start:_e,end:tt}}else o=null}o=o||{start:0,end:0}}else o=null;for(Df={focusedElem:e,selectionRange:o},dd=!1,V=a;V!==null;)if(a=V,e=a.child,(a.subtreeFlags&1028)!==0&&e!==null)e.return=a,V=e;else for(;V!==null;){a=V;try{var vt=a.alternate;if(a.flags&1024)switch(a.tag){case 0:case 11:case 15:break;case 1:if(vt!==null){var yt=vt.memoizedProps,_t=vt.memoizedState,$t=a.stateNode,bt=$t.getSnapshotBeforeUpdate(a.elementType===a.type?yt:Ci(a.type,yt),_t);$t.__reactInternalSnapshotBeforeUpdate=bt}break;case 3:var xt=a.stateNode.containerInfo;xt.nodeType===1?xt.textContent="":xt.nodeType===9&&xt.documentElement&&xt.removeChild(xt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163))}}catch(St){W$6(a,a.return,St)}if(e=a.sibling,e!==null){e.return=a.return,V=e;break}V=a.return}return vt=Nj,Nj=!1,vt}function Pj(e,a,o){var c=a.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var h=c=c.next;do{if((h.tag&e)===e){var d=h.destroy;h.destroy=void 0,d!==void 0&&Mj(a,o,d)}h=h.next}while(h!==c)}}function Qj(e,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var o=a=a.next;do{if((o.tag&e)===e){var c=o.create;o.destroy=c()}o=o.next}while(o!==a)}}function Rj(e){var a=e.ref;if(a!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof a=="function"?a(e):a.current=e}}function Sj(e){var a=e.alternate;a!==null&&(e.alternate=null,Sj(a)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(a=e.stateNode,a!==null&&(delete a[Of],delete a[Pf],delete a[of],delete a[Qf],delete a[Rf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Tj(e){return e.tag===5||e.tag===3||e.tag===4}function Uj(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tj(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Vj(e,a,o){var c=e.tag;if(c===5||c===6)e=e.stateNode,a?o.nodeType===8?o.parentNode.insertBefore(e,a):o.insertBefore(e,a):(o.nodeType===8?(a=o.parentNode,a.insertBefore(e,o)):(a=o,a.appendChild(e)),o=o._reactRootContainer,o!=null||a.onclick!==null||(a.onclick=Bf));else if(c!==4&&(e=e.child,e!==null))for(Vj(e,a,o),e=e.sibling;e!==null;)Vj(e,a,o),e=e.sibling}function Wj(e,a,o){var c=e.tag;if(c===5||c===6)e=e.stateNode,a?o.insertBefore(e,a):o.appendChild(e);else if(c!==4&&(e=e.child,e!==null))for(Wj(e,a,o),e=e.sibling;e!==null;)Wj(e,a,o),e=e.sibling}var X$2=null,Xj=!1;function Yj(e,a,o){for(o=o.child;o!==null;)Zj(e,a,o),o=o.sibling}function Zj(e,a,o){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,o)}catch{}switch(o.tag){case 5:U||Lj(o,a);case 6:var c=X$2,h=Xj;X$2=null,Yj(e,a,o),X$2=c,Xj=h,X$2!==null&&(Xj?(e=X$2,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):X$2.removeChild(o.stateNode));break;case 18:X$2!==null&&(Xj?(e=X$2,o=o.stateNode,e.nodeType===8?Kf(e.parentNode,o):e.nodeType===1&&Kf(e,o),bd(e)):Kf(X$2,o.stateNode));break;case 4:c=X$2,h=Xj,X$2=o.stateNode.containerInfo,Xj=!0,Yj(e,a,o),X$2=c,Xj=h;break;case 0:case 11:case 14:case 15:if(!U&&(c=o.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){h=c=c.next;do{var d=h,_=d.destroy;d=d.tag,_!==void 0&&(d&2||d&4)&&Mj(o,a,_),h=h.next}while(h!==c)}Yj(e,a,o);break;case 1:if(!U&&(Lj(o,a),c=o.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=o.memoizedProps,c.state=o.memoizedState,c.componentWillUnmount()}catch(_e){W$6(o,a,_e)}Yj(e,a,o);break;case 21:Yj(e,a,o);break;case 22:o.mode&1?(U=(c=U)||o.memoizedState!==null,Yj(e,a,o),U=c):Yj(e,a,o);break;default:Yj(e,a,o)}}function ak(e){var a=e.updateQueue;if(a!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new Kj),a.forEach(function(c){var h=bk.bind(null,e,c);o.has(c)||(o.add(c),c.then(h,h))})}}function ck(e,a){var o=a.deletions;if(o!==null)for(var c=0;ch&&(h=_),c&=~d}if(c=h,c=B()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*lk(c/1960))-c,10e?16:e,wk===null)var c=!1;else{if(e=wk,wk=null,xk=0,K$4&6)throw Error(p(331));var h=K$4;for(K$4|=4,V=e.current;V!==null;){var d=V,_=d.child;if(V.flags&16){var _e=d.deletions;if(_e!==null){for(var tt=0;tt<_e.length;tt++){var rt=_e[tt];for(V=rt;V!==null;){var it=V;switch(it.tag){case 0:case 11:case 15:Pj(8,it,d)}var st=it.child;if(st!==null)st.return=it,V=st;else for(;V!==null;){it=V;var ht=it.sibling,mt=it.return;if(Sj(it),it===rt){V=null;break}if(ht!==null){ht.return=mt,V=ht;break}V=mt}}}var vt=d.alternate;if(vt!==null){var yt=vt.child;if(yt!==null){vt.child=null;do{var _t=yt.sibling;yt.sibling=null,yt=_t}while(yt!==null)}}V=d}}if(d.subtreeFlags&2064&&_!==null)_.return=d,V=_;else e:for(;V!==null;){if(d=V,d.flags&2048)switch(d.tag){case 0:case 11:case 15:Pj(9,d,d.return)}var $t=d.sibling;if($t!==null){$t.return=d.return,V=$t;break e}V=d.return}}var bt=e.current;for(V=bt;V!==null;){_=V;var xt=_.child;if(_.subtreeFlags&2064&&xt!==null)xt.return=_,V=xt;else e:for(_=bt;V!==null;){if(_e=V,_e.flags&2048)try{switch(_e.tag){case 0:case 11:case 15:Qj(9,_e)}}catch(Rt){W$6(_e,_e.return,Rt)}if(_e===_){V=null;break e}var St=_e.sibling;if(St!==null){St.return=_e.return,V=St;break e}V=_e.return}}if(K$4=h,jg(),lc&&typeof lc.onPostCommitFiberRoot=="function")try{lc.onPostCommitFiberRoot(kc,e)}catch{}c=!0}return c}finally{C=o,ok.transition=a}}return!1}function Xk(e,a,o){a=Ji(o,a),a=Ni(e,a,1),e=nh(e,a,1),a=R$1(),e!==null&&(Ac(e,1,a),Dk(e,a))}function W$6(e,a,o){if(e.tag===3)Xk(e,e,o);else for(;a!==null;){if(a.tag===3){Xk(a,e,o);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Ri===null||!Ri.has(c))){e=Ji(o,e),e=Qi(a,e,1),a=nh(a,e,1),e=R$1(),a!==null&&(Ac(a,1,e),Dk(a,e));break}}a=a.return}}function Ti(e,a,o){var c=e.pingCache;c!==null&&c.delete(a),a=R$1(),e.pingedLanes|=e.suspendedLanes&o,Q===e&&(Z$1&o)===o&&(T===4||T===3&&(Z$1&130023424)===Z$1&&500>B()-fk?Kk(e,0):rk|=o),Dk(e,a)}function Yk(e,a){a===0&&(e.mode&1?(a=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):a=1);var o=R$1();e=ih(e,a),e!==null&&(Ac(e,a,o),Dk(e,o))}function uj(e){var a=e.memoizedState,o=0;a!==null&&(o=a.retryLane),Yk(e,o)}function bk(e,a){var o=0;switch(e.tag){case 13:var c=e.stateNode,h=e.memoizedState;h!==null&&(o=h.retryLane);break;case 19:c=e.stateNode;break;default:throw Error(p(314))}c!==null&&c.delete(a),Yk(e,o)}var Vk;Vk=function(e,a,o){if(e!==null)if(e.memoizedProps!==a.pendingProps||Wf.current)dh$1=!0;else{if(!(e.lanes&o)&&!(a.flags&128))return dh$1=!1,yj(e,a,o);dh$1=!!(e.flags&131072)}else dh$1=!1,I$1&&a.flags&1048576&&ug(a,ng,a.index);switch(a.lanes=0,a.tag){case 2:var c=a.type;ij(e,a),e=a.pendingProps;var h=Yf(a,H.current);ch$1(a,o),h=Nh(null,a,c,e,h,o);var d=Sh();return a.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,Zf(c)?(d=!0,cg(a)):d=!1,a.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,kh(a),h.updater=Ei,a.stateNode=h,h._reactInternals=a,Ii(a,c,e,o),a=jj(null,a,c,!0,d,o)):(a.tag=0,I$1&&d&&vg(a),Xi(null,a,h,o),a=a.child),a;case 16:c=a.elementType;e:{switch(ij(e,a),e=a.pendingProps,h=c._init,c=h(c._payload),a.type=c,h=a.tag=Zk(c),e=Ci(c,e),h){case 0:a=cj(null,a,c,e,o);break e;case 1:a=hj(null,a,c,e,o);break e;case 11:a=Yi(null,a,c,e,o);break e;case 14:a=$i(null,a,c,Ci(c.type,e),o);break e}throw Error(p(306,c,""))}return a;case 0:return c=a.type,h=a.pendingProps,h=a.elementType===c?h:Ci(c,h),cj(e,a,c,h,o);case 1:return c=a.type,h=a.pendingProps,h=a.elementType===c?h:Ci(c,h),hj(e,a,c,h,o);case 3:e:{if(kj(a),e===null)throw Error(p(387));c=a.pendingProps,d=a.memoizedState,h=d.element,lh(e,a),qh(a,c,null,o);var _=a.memoizedState;if(c=_.element,d.isDehydrated)if(d={element:c,isDehydrated:!1,cache:_.cache,pendingSuspenseBoundaries:_.pendingSuspenseBoundaries,transitions:_.transitions},a.updateQueue.baseState=d,a.memoizedState=d,a.flags&256){h=Ji(Error(p(423)),a),a=lj(e,a,c,o,h);break e}else if(c!==h){h=Ji(Error(p(424)),a),a=lj(e,a,c,o,h);break e}else for(yg=Lf(a.stateNode.containerInfo.firstChild),xg=a,I$1=!0,zg=null,o=Vg(a,null,c,o),a.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Ig(),c===h){a=Zi(e,a,o);break e}Xi(e,a,c,o)}a=a.child}return a;case 5:return Ah(a),e===null&&Eg(a),c=a.type,h=a.pendingProps,d=e!==null?e.memoizedProps:null,_=h.children,Ef(c,h)?_=null:d!==null&&Ef(c,d)&&(a.flags|=32),gj(e,a),Xi(e,a,_,o),a.child;case 6:return e===null&&Eg(a),null;case 13:return oj(e,a,o);case 4:return yh(a,a.stateNode.containerInfo),c=a.pendingProps,e===null?a.child=Ug(a,null,c,o):Xi(e,a,c,o),a.child;case 11:return c=a.type,h=a.pendingProps,h=a.elementType===c?h:Ci(c,h),Yi(e,a,c,h,o);case 7:return Xi(e,a,a.pendingProps,o),a.child;case 8:return Xi(e,a,a.pendingProps.children,o),a.child;case 12:return Xi(e,a,a.pendingProps.children,o),a.child;case 10:e:{if(c=a.type._context,h=a.pendingProps,d=a.memoizedProps,_=h.value,G$1(Wg,c._currentValue),c._currentValue=_,d!==null)if(He(d.value,_)){if(d.children===h.children&&!Wf.current){a=Zi(e,a,o);break e}}else for(d=a.child,d!==null&&(d.return=a);d!==null;){var _e=d.dependencies;if(_e!==null){_=d.child;for(var tt=_e.firstContext;tt!==null;){if(tt.context===c){if(d.tag===1){tt=mh(-1,o&-o),tt.tag=2;var rt=d.updateQueue;if(rt!==null){rt=rt.shared;var it=rt.pending;it===null?tt.next=tt:(tt.next=it.next,it.next=tt),rt.pending=tt}}d.lanes|=o,tt=d.alternate,tt!==null&&(tt.lanes|=o),bh(d.return,o,a),_e.lanes|=o;break}tt=tt.next}}else if(d.tag===10)_=d.type===a.type?null:d.child;else if(d.tag===18){if(_=d.return,_===null)throw Error(p(341));_.lanes|=o,_e=_.alternate,_e!==null&&(_e.lanes|=o),bh(_,o,a),_=d.sibling}else _=d.child;if(_!==null)_.return=d;else for(_=d;_!==null;){if(_===a){_=null;break}if(d=_.sibling,d!==null){d.return=_.return,_=d;break}_=_.return}d=_}Xi(e,a,h.children,o),a=a.child}return a;case 9:return h=a.type,c=a.pendingProps.children,ch$1(a,o),h=eh(h),c=c(h),a.flags|=1,Xi(e,a,c,o),a.child;case 14:return c=a.type,h=Ci(c,a.pendingProps),h=Ci(c.type,h),$i(e,a,c,h,o);case 15:return bj(e,a,a.type,a.pendingProps,o);case 17:return c=a.type,h=a.pendingProps,h=a.elementType===c?h:Ci(c,h),ij(e,a),a.tag=1,Zf(c)?(e=!0,cg(a)):e=!1,ch$1(a,o),Gi(a,c,h),Ii(a,c,h,o),jj(null,a,c,!0,e,o);case 19:return xj(e,a,o);case 22:return dj(e,a,o)}throw Error(p(156,a.tag))};function Fk(e,a){return ac(e,a)}function $k(e,a,o,c){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(e,a,o,c){return new $k(e,a,o,c)}function aj(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zk(e){if(typeof e=="function")return aj(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Da)return 11;if(e===Ga)return 14}return 2}function Pg(e,a){var o=e.alternate;return o===null?(o=Bg(e.tag,a,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=a,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,a=e.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function Rg(e,a,o,c,h,d){var _=2;if(c=e,typeof e=="function")aj(e)&&(_=1);else if(typeof e=="string")_=5;else e:switch(e){case ya:return Tg(o.children,h,d,a);case za:_=8,h|=8;break;case Aa:return e=Bg(12,o,a,h|2),e.elementType=Aa,e.lanes=d,e;case Ea:return e=Bg(13,o,a,h),e.elementType=Ea,e.lanes=d,e;case Fa:return e=Bg(19,o,a,h),e.elementType=Fa,e.lanes=d,e;case Ia:return pj(o,h,d,a);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ba:_=10;break e;case Ca:_=9;break e;case Da:_=11;break e;case Ga:_=14;break e;case Ha:_=16,c=null;break e}throw Error(p(130,e==null?e:typeof e,""))}return a=Bg(_,o,a,h),a.elementType=e,a.type=c,a.lanes=d,a}function Tg(e,a,o,c){return e=Bg(7,e,c,a),e.lanes=o,e}function pj(e,a,o,c){return e=Bg(22,e,c,a),e.elementType=Ia,e.lanes=o,e.stateNode={isHidden:!1},e}function Qg(e,a,o){return e=Bg(6,e,null,a),e.lanes=o,e}function Sg(e,a,o){return a=Bg(4,e.children!==null?e.children:[],e.key,a),a.lanes=o,a.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},a}function al(e,a,o,c,h){this.tag=a,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=c,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function bl(e,a,o,c,h,d,_,_e,tt){return e=new al(e,a,o,_e,tt),a===1?(a=1,d===!0&&(a|=8)):a=0,d=Bg(3,null,null,a),e.current=d,d.stateNode=e,d.memoizedState={element:c,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},kh(d),e}function cl(e,a,o){var c=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(e){console.error(e)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs$1(reactDomExports);var createRoot,m=reactDomExports;createRoot=m.createRoot,m.hydrateRoot;const Spinner=({message:e})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"inline-block h-12 w-12 animate-spin rounded-full border-4 border-solid text-[var(--capsule-orange)] border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite",role:"status"}),jsxRuntimeExports.jsx("p",{className:"mt-2 text-center text-muted-foreground text-[1.25rem]",children:e})]});function setRef(e,a){typeof e=="function"?e(a):e!=null&&(e.current=a)}function composeRefs(...e){return a=>e.forEach(o=>setRef(o,a))}function useComposedRefs(...e){return reactExports.useCallback(composeRefs(...e),e)}var Slot=reactExports.forwardRef((e,a)=>{const{children:o,...c}=e,h=reactExports.Children.toArray(o),d=h.find(isSlottable);if(d){const _=d.props.children,_e=h.map(tt=>tt===d?reactExports.Children.count(_)>1?reactExports.Children.only(null):reactExports.isValidElement(_)?_.props.children:null:tt);return jsxRuntimeExports.jsx(SlotClone,{...c,ref:a,children:reactExports.isValidElement(_)?reactExports.cloneElement(_,void 0,_e):null})}return jsxRuntimeExports.jsx(SlotClone,{...c,ref:a,children:o})});Slot.displayName="Slot";var SlotClone=reactExports.forwardRef((e,a)=>{const{children:o,...c}=e;if(reactExports.isValidElement(o)){const h=getElementRef$1(o);return reactExports.cloneElement(o,{...mergeProps(c,o.props),ref:a?composeRefs(a,h):h})}return reactExports.Children.count(o)>1?reactExports.Children.only(null):null});SlotClone.displayName="SlotClone";var Slottable=({children:e})=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:e});function isSlottable(e){return reactExports.isValidElement(e)&&e.type===Slottable}function mergeProps(e,a){const o={...a};for(const c in a){const h=e[c],d=a[c];/^on[A-Z]/.test(c)?h&&d?o[c]=(..._e)=>{d(..._e),h(..._e)}:h&&(o[c]=h):c==="style"?o[c]={...h,...d}:c==="className"&&(o[c]=[h,d].filter(Boolean).join(" "))}return{...e,...o}}function getElementRef$1(e){var c,h;let a=(c=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:c.get,o=a&&"isReactWarning"in a&&a.isReactWarning;return o?e.ref:(a=(h=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:h.get,o=a&&"isReactWarning"in a&&a.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}function r$1(e){var a,o,c="";if(typeof e=="string"||typeof e=="number")c+=e;else if(typeof e=="object")if(Array.isArray(e))for(a=0;atypeof e=="boolean"?"".concat(e):e===0?"0":e,cx=clsx$1,cva=(e,a)=>o=>{var c;if((a==null?void 0:a.variants)==null)return cx(e,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:h,defaultVariants:d}=a,_=Object.keys(h).map(rt=>{const it=o==null?void 0:o[rt],st=d==null?void 0:d[rt];if(it===null)return null;const ht=falsyToString(it)||falsyToString(st);return h[rt][ht]}),_e=o&&Object.entries(o).reduce((rt,it)=>{let[st,ht]=it;return ht===void 0||(rt[st]=ht),rt},{}),tt=a==null||(c=a.compoundVariants)===null||c===void 0?void 0:c.reduce((rt,it)=>{let{class:st,className:ht,...mt}=it;return Object.entries(mt).every(vt=>{let[yt,_t]=vt;return Array.isArray(_t)?_t.includes({...d,..._e}[yt]):{...d,..._e}[yt]===_t})?[...rt,st,ht]:rt},[]);return cx(e,_,tt,o==null?void 0:o.class,o==null?void 0:o.className)};function r(e){var a,o,c="";if(typeof e=="string"||typeof e=="number")c+=e;else if(typeof e=="object")if(Array.isArray(e)){var h=e.length;for(a=0;a{const a=createClassMap(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:c}=e;return{getClassGroupId:_=>{const _e=_.split(CLASS_PART_SEPARATOR);return _e[0]===""&&_e.length!==1&&_e.shift(),getGroupRecursive(_e,a)||getGroupIdForArbitraryProperty(_)},getConflictingClassGroupIds:(_,_e)=>{const tt=o[_]||[];return _e&&c[_]?[...tt,...c[_]]:tt}}},getGroupRecursive=(e,a)=>{var _;if(e.length===0)return a.classGroupId;const o=e[0],c=a.nextPart.get(o),h=c?getGroupRecursive(e.slice(1),c):void 0;if(h)return h;if(a.validators.length===0)return;const d=e.join(CLASS_PART_SEPARATOR);return(_=a.validators.find(({validator:_e})=>_e(d)))==null?void 0:_.classGroupId},arbitraryPropertyRegex=/^\[(.+)\]$/,getGroupIdForArbitraryProperty=e=>{if(arbitraryPropertyRegex.test(e)){const a=arbitraryPropertyRegex.exec(e)[1],o=a==null?void 0:a.substring(0,a.indexOf(":"));if(o)return"arbitrary.."+o}},createClassMap=e=>{const{theme:a,prefix:o}=e,c={nextPart:new Map,validators:[]};return getPrefixedClassGroupEntries(Object.entries(e.classGroups),o).forEach(([d,_])=>{processClassesRecursively(_,c,d,a)}),c},processClassesRecursively=(e,a,o,c)=>{e.forEach(h=>{if(typeof h=="string"){const d=h===""?a:getPart(a,h);d.classGroupId=o;return}if(typeof h=="function"){if(isThemeGetter(h)){processClassesRecursively(h(c),a,o,c);return}a.validators.push({validator:h,classGroupId:o});return}Object.entries(h).forEach(([d,_])=>{processClassesRecursively(_,getPart(a,d),o,c)})})},getPart=(e,a)=>{let o=e;return a.split(CLASS_PART_SEPARATOR).forEach(c=>{o.nextPart.has(c)||o.nextPart.set(c,{nextPart:new Map,validators:[]}),o=o.nextPart.get(c)}),o},isThemeGetter=e=>e.isThemeGetter,getPrefixedClassGroupEntries=(e,a)=>a?e.map(([o,c])=>{const h=c.map(d=>typeof d=="string"?a+d:typeof d=="object"?Object.fromEntries(Object.entries(d).map(([_,_e])=>[a+_,_e])):d);return[o,h]}):e,createLruCache=e=>{if(e<1)return{get:()=>{},set:()=>{}};let a=0,o=new Map,c=new Map;const h=(d,_)=>{o.set(d,_),a++,a>e&&(a=0,c=o,o=new Map)};return{get(d){let _=o.get(d);if(_!==void 0)return _;if((_=c.get(d))!==void 0)return h(d,_),_},set(d,_){o.has(d)?o.set(d,_):h(d,_)}}},IMPORTANT_MODIFIER="!",createParseClassName=e=>{const{separator:a,experimentalParseClassName:o}=e,c=a.length===1,h=a[0],d=a.length,_=_e=>{const tt=[];let rt=0,it=0,st;for(let _t=0;_t<_e.length;_t++){let $t=_e[_t];if(rt===0){if($t===h&&(c||_e.slice(_t,_t+d)===a)){tt.push(_e.slice(it,_t)),it=_t+d;continue}if($t==="/"){st=_t;continue}}$t==="["?rt++:$t==="]"&&rt--}const ht=tt.length===0?_e:_e.substring(it),mt=ht.startsWith(IMPORTANT_MODIFIER),vt=mt?ht.substring(1):ht,yt=st&&st>it?st-it:void 0;return{modifiers:tt,hasImportantModifier:mt,baseClassName:vt,maybePostfixModifierPosition:yt}};return o?_e=>o({className:_e,parseClassName:_}):_},sortModifiers=e=>{if(e.length<=1)return e;const a=[];let o=[];return e.forEach(c=>{c[0]==="["?(a.push(...o.sort(),c),o=[]):o.push(c)}),a.push(...o.sort()),a},createConfigUtils=e=>({cache:createLruCache(e.cacheSize),parseClassName:createParseClassName(e),...createClassGroupUtils(e)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=(e,a)=>{const{parseClassName:o,getClassGroupId:c,getConflictingClassGroupIds:h}=a,d=[],_=e.trim().split(SPLIT_CLASSES_REGEX);let _e="";for(let tt=_.length-1;tt>=0;tt-=1){const rt=_[tt],{modifiers:it,hasImportantModifier:st,baseClassName:ht,maybePostfixModifierPosition:mt}=o(rt);let vt=!!mt,yt=c(vt?ht.substring(0,mt):ht);if(!yt){if(!vt){_e=rt+(_e.length>0?" "+_e:_e);continue}if(yt=c(ht),!yt){_e=rt+(_e.length>0?" "+_e:_e);continue}vt=!1}const _t=sortModifiers(it).join(":"),$t=st?_t+IMPORTANT_MODIFIER:_t,bt=$t+yt;if(d.includes(bt))continue;d.push(bt);const xt=h(yt,vt);for(let St=0;St0?" "+_e:_e)}return _e};function twJoin(){let e=0,a,o,c="";for(;e{if(typeof e=="string")return e;let a,o="";for(let c=0;cst(it),e());return o=createConfigUtils(rt),c=o.cache.get,h=o.cache.set,d=_e,_e(tt)}function _e(tt){const rt=c(tt);if(rt)return rt;const it=mergeClassList(tt,o);return h(tt,it),it}return function(){return d(twJoin.apply(null,arguments))}}const fromTheme=e=>{const a=o=>o[e]||[];return a.isThemeGetter=!0,a},arbitraryValueRegex=/^\[(?:([a-z-]+):)?(.+)\]$/i,fractionRegex=/^\d+\/\d+$/,stringLengths=new Set(["px","full","screen"]),tshirtUnitRegex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lengthUnitRegex=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,colorFunctionRegex=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,shadowRegex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,imageRegex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isLength=e=>isNumber$3(e)||stringLengths.has(e)||fractionRegex.test(e),isArbitraryLength=e=>getIsArbitraryValue(e,"length",isLengthOnly),isNumber$3=e=>!!e&&!Number.isNaN(Number(e)),isArbitraryNumber=e=>getIsArbitraryValue(e,"number",isNumber$3),isInteger=e=>!!e&&Number.isInteger(Number(e)),isPercent=e=>e.endsWith("%")&&isNumber$3(e.slice(0,-1)),isArbitraryValue=e=>arbitraryValueRegex.test(e),isTshirtSize=e=>tshirtUnitRegex.test(e),sizeLabels=new Set(["length","size","percentage"]),isArbitrarySize=e=>getIsArbitraryValue(e,sizeLabels,isNever),isArbitraryPosition=e=>getIsArbitraryValue(e,"position",isNever),imageLabels=new Set(["image","url"]),isArbitraryImage=e=>getIsArbitraryValue(e,imageLabels,isImage),isArbitraryShadow=e=>getIsArbitraryValue(e,"",isShadow),isAny=()=>!0,getIsArbitraryValue=(e,a,o)=>{const c=arbitraryValueRegex.exec(e);return c?c[1]?typeof a=="string"?c[1]===a:a.has(c[1]):o(c[2]):!1},isLengthOnly=e=>lengthUnitRegex.test(e)&&!colorFunctionRegex.test(e),isNever=()=>!1,isShadow=e=>shadowRegex.test(e),isImage=e=>imageRegex.test(e),getDefaultConfig=()=>{const e=fromTheme("colors"),a=fromTheme("spacing"),o=fromTheme("blur"),c=fromTheme("brightness"),h=fromTheme("borderColor"),d=fromTheme("borderRadius"),_=fromTheme("borderSpacing"),_e=fromTheme("borderWidth"),tt=fromTheme("contrast"),rt=fromTheme("grayscale"),it=fromTheme("hueRotate"),st=fromTheme("invert"),ht=fromTheme("gap"),mt=fromTheme("gradientColorStops"),vt=fromTheme("gradientColorStopPositions"),yt=fromTheme("inset"),_t=fromTheme("margin"),$t=fromTheme("opacity"),bt=fromTheme("padding"),xt=fromTheme("saturate"),St=fromTheme("scale"),Rt=fromTheme("sepia"),Ot=fromTheme("skew"),Vt=fromTheme("space"),Wt=fromTheme("translate"),Ft=()=>["auto","contain","none"],Zt=()=>["auto","hidden","clip","visible","scroll"],pt=()=>["auto",isArbitraryValue,a],$=()=>[isArbitraryValue,a],et=()=>["",isLength,isArbitraryLength],nt=()=>["auto",isNumber$3,isArbitraryValue],at=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],lt=()=>["solid","dashed","dotted","double","none"],dt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],gt=()=>["start","end","center","between","around","evenly","stretch"],ot=()=>["","0",isArbitraryValue],j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ct=()=>[isNumber$3,isArbitraryValue];return{cacheSize:500,separator:":",theme:{colors:[isAny],spacing:[isLength,isArbitraryLength],blur:["none","",isTshirtSize,isArbitraryValue],brightness:ct(),borderColor:[e],borderRadius:["none","","full",isTshirtSize,isArbitraryValue],borderSpacing:$(),borderWidth:et(),contrast:ct(),grayscale:ot(),hueRotate:ct(),invert:ot(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[isPercent,isArbitraryLength],inset:pt(),margin:pt(),opacity:ct(),padding:$(),saturate:ct(),scale:ct(),sepia:ot(),skew:ct(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",isArbitraryValue]}],container:["container"],columns:[{columns:[isTshirtSize]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...at(),isArbitraryValue]}],overflow:[{overflow:Zt()}],"overflow-x":[{"overflow-x":Zt()}],"overflow-y":[{"overflow-y":Zt()}],overscroll:[{overscroll:Ft()}],"overscroll-x":[{"overscroll-x":Ft()}],"overscroll-y":[{"overscroll-y":Ft()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[yt]}],"inset-x":[{"inset-x":[yt]}],"inset-y":[{"inset-y":[yt]}],start:[{start:[yt]}],end:[{end:[yt]}],top:[{top:[yt]}],right:[{right:[yt]}],bottom:[{bottom:[yt]}],left:[{left:[yt]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",isInteger,isArbitraryValue]}],basis:[{basis:pt()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",isArbitraryValue]}],grow:[{grow:ot()}],shrink:[{shrink:ot()}],order:[{order:["first","last","none",isInteger,isArbitraryValue]}],"grid-cols":[{"grid-cols":[isAny]}],"col-start-end":[{col:["auto",{span:["full",isInteger,isArbitraryValue]},isArbitraryValue]}],"col-start":[{"col-start":nt()}],"col-end":[{"col-end":nt()}],"grid-rows":[{"grid-rows":[isAny]}],"row-start-end":[{row:["auto",{span:[isInteger,isArbitraryValue]},isArbitraryValue]}],"row-start":[{"row-start":nt()}],"row-end":[{"row-end":nt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",isArbitraryValue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",isArbitraryValue]}],gap:[{gap:[ht]}],"gap-x":[{"gap-x":[ht]}],"gap-y":[{"gap-y":[ht]}],"justify-content":[{justify:["normal",...gt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...gt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...gt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[bt]}],px:[{px:[bt]}],py:[{py:[bt]}],ps:[{ps:[bt]}],pe:[{pe:[bt]}],pt:[{pt:[bt]}],pr:[{pr:[bt]}],pb:[{pb:[bt]}],pl:[{pl:[bt]}],m:[{m:[_t]}],mx:[{mx:[_t]}],my:[{my:[_t]}],ms:[{ms:[_t]}],me:[{me:[_t]}],mt:[{mt:[_t]}],mr:[{mr:[_t]}],mb:[{mb:[_t]}],ml:[{ml:[_t]}],"space-x":[{"space-x":[Vt]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Vt]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",isArbitraryValue,a]}],"min-w":[{"min-w":[isArbitraryValue,a,"min","max","fit"]}],"max-w":[{"max-w":[isArbitraryValue,a,"none","full","min","max","fit","prose",{screen:[isTshirtSize]},isTshirtSize]}],h:[{h:[isArbitraryValue,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[isArbitraryValue,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[isArbitraryValue,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[isArbitraryValue,a,"auto","min","max","fit"]}],"font-size":[{text:["base",isTshirtSize,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",isArbitraryNumber]}],"font-family":[{font:[isAny]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",isArbitraryValue]}],"line-clamp":[{"line-clamp":["none",isNumber$3,isArbitraryNumber]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",isLength,isArbitraryValue]}],"list-image":[{"list-image":["none",isArbitraryValue]}],"list-style-type":[{list:["none","disc","decimal",isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[$t]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[$t]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...lt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",isLength,isArbitraryLength]}],"underline-offset":[{"underline-offset":["auto",isLength,isArbitraryValue]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[$t]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...at(),isArbitraryPosition]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",isArbitrarySize]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},isArbitraryImage]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[vt]}],"gradient-via-pos":[{via:[vt]}],"gradient-to-pos":[{to:[vt]}],"gradient-from":[{from:[mt]}],"gradient-via":[{via:[mt]}],"gradient-to":[{to:[mt]}],rounded:[{rounded:[d]}],"rounded-s":[{"rounded-s":[d]}],"rounded-e":[{"rounded-e":[d]}],"rounded-t":[{"rounded-t":[d]}],"rounded-r":[{"rounded-r":[d]}],"rounded-b":[{"rounded-b":[d]}],"rounded-l":[{"rounded-l":[d]}],"rounded-ss":[{"rounded-ss":[d]}],"rounded-se":[{"rounded-se":[d]}],"rounded-ee":[{"rounded-ee":[d]}],"rounded-es":[{"rounded-es":[d]}],"rounded-tl":[{"rounded-tl":[d]}],"rounded-tr":[{"rounded-tr":[d]}],"rounded-br":[{"rounded-br":[d]}],"rounded-bl":[{"rounded-bl":[d]}],"border-w":[{border:[_e]}],"border-w-x":[{"border-x":[_e]}],"border-w-y":[{"border-y":[_e]}],"border-w-s":[{"border-s":[_e]}],"border-w-e":[{"border-e":[_e]}],"border-w-t":[{"border-t":[_e]}],"border-w-r":[{"border-r":[_e]}],"border-w-b":[{"border-b":[_e]}],"border-w-l":[{"border-l":[_e]}],"border-opacity":[{"border-opacity":[$t]}],"border-style":[{border:[...lt(),"hidden"]}],"divide-x":[{"divide-x":[_e]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[_e]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[$t]}],"divide-style":[{divide:lt()}],"border-color":[{border:[h]}],"border-color-x":[{"border-x":[h]}],"border-color-y":[{"border-y":[h]}],"border-color-t":[{"border-t":[h]}],"border-color-r":[{"border-r":[h]}],"border-color-b":[{"border-b":[h]}],"border-color-l":[{"border-l":[h]}],"divide-color":[{divide:[h]}],"outline-style":[{outline:["",...lt()]}],"outline-offset":[{"outline-offset":[isLength,isArbitraryValue]}],"outline-w":[{outline:[isLength,isArbitraryLength]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:et()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[$t]}],"ring-offset-w":[{"ring-offset":[isLength,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",isTshirtSize,isArbitraryShadow]}],"shadow-color":[{shadow:[isAny]}],opacity:[{opacity:[$t]}],"mix-blend":[{"mix-blend":[...dt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":dt()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[c]}],contrast:[{contrast:[tt]}],"drop-shadow":[{"drop-shadow":["","none",isTshirtSize,isArbitraryValue]}],grayscale:[{grayscale:[rt]}],"hue-rotate":[{"hue-rotate":[it]}],invert:[{invert:[st]}],saturate:[{saturate:[xt]}],sepia:[{sepia:[Rt]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[c]}],"backdrop-contrast":[{"backdrop-contrast":[tt]}],"backdrop-grayscale":[{"backdrop-grayscale":[rt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[it]}],"backdrop-invert":[{"backdrop-invert":[st]}],"backdrop-opacity":[{"backdrop-opacity":[$t]}],"backdrop-saturate":[{"backdrop-saturate":[xt]}],"backdrop-sepia":[{"backdrop-sepia":[Rt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[_]}],"border-spacing-x":[{"border-spacing-x":[_]}],"border-spacing-y":[{"border-spacing-y":[_]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",isArbitraryValue]}],duration:[{duration:ct()}],ease:[{ease:["linear","in","out","in-out",isArbitraryValue]}],delay:[{delay:ct()}],animate:[{animate:["none","spin","ping","pulse","bounce",isArbitraryValue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[St]}],"scale-x":[{"scale-x":[St]}],"scale-y":[{"scale-y":[St]}],rotate:[{rotate:[isInteger,isArbitraryValue]}],"translate-x":[{"translate-x":[Wt]}],"translate-y":[{"translate-y":[Wt]}],"skew-x":[{"skew-x":[Ot]}],"skew-y":[{"skew-y":[Ot]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",isArbitraryValue]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryValue]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryValue]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[isLength,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},twMerge=createTailwindMerge(getDefaultConfig);function cn(...e){return twMerge(clsx(e))}const buttonVariants=cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Button=reactExports.forwardRef(({className:e,variant:a,size:o,asChild:c=!1,...h},d)=>{const _=c?Slot:"button";return jsxRuntimeExports.jsx(_,{className:cn(buttonVariants({variant:a,size:o,className:e})),ref:d,...h})});Button.displayName="Button";var dist$1={},sdk={};(function(){var e={},a="";try{a=location.hash.toString()}catch{}var o=tt(a),c=$t("initParams");if(c)for(var h in c)typeof o[h]>"u"&&(o[h]=c[h]);_t("initParams",o);var d=!1,_;try{if(d=window.parent!=null&&window!=window.parent,d){window.addEventListener("message",function(bt){if(bt.source===window.parent){try{var xt=JSON.parse(bt.data)}catch{return}if(!(!xt||!xt.eventType))if(xt.eventType=="set_custom_style")bt.origin==="https://web.telegram.org"&&(_.innerHTML=xt.eventData);else if(xt.eventType=="reload_iframe"){try{window.parent.postMessage(JSON.stringify({eventType:"iframe_will_reload"}),"*")}catch{}location.reload()}else ht(xt.eventType,xt.eventData)}}),_=document.createElement("style"),document.head.appendChild(_);try{window.parent.postMessage(JSON.stringify({eventType:"iframe_ready",eventData:{reload_supported:!0}}),"*")}catch{}}}catch{}function _e(bt){try{return bt=bt.replace(/\+/g,"%20"),decodeURIComponent(bt)}catch{return bt}}function tt(bt){bt=bt.replace(/^#/,"");var xt={};if(!bt.length)return xt;if(bt.indexOf("=")<0&&bt.indexOf("?")<0)return xt._path=_e(bt),xt;var St=bt.indexOf("?");if(St>=0){var Rt=bt.substr(0,St);xt._path=_e(Rt),bt=bt.substr(St+1)}var Ot=rt(bt);for(var Vt in Ot)xt[Vt]=Ot[Vt];return xt}function rt(bt){var xt={};if(!bt.length)return xt;var St=bt.split("&"),Rt,Ot,Vt,Wt;for(Rt=0;Rt=0?bt+"&"+xt:Rt.length>0?bt+"?"+xt:bt+xt}function st(bt,xt,St){if(xt||(xt=function(){}),St===void 0&&(St=""),console.log("[Telegram.WebView] > postEvent",bt,St),window.TelegramWebviewProxy!==void 0)TelegramWebviewProxy.postEvent(bt,JSON.stringify(St)),xt();else if(window.external&&"notify"in window.external)window.external.notify(JSON.stringify({eventType:bt,eventData:St})),xt();else if(d)try{var Rt="https://web.telegram.org";Rt="*",window.parent.postMessage(JSON.stringify({eventType:bt,eventData:St}),Rt),xt()}catch(Ot){xt(Ot)}else xt({notAvailable:!0})}function ht(bt,xt){console.log("[Telegram.WebView] < receiveEvent",bt,xt),mt(bt,function(St){St(bt,xt)})}function mt(bt,xt){var St=e[bt];if(!(St===void 0||!St.length))for(var Rt=0;RtLr?1:-1;return 0}function nr(Ht){return wr(rt,Ht)>=0}function ur(Ht){if(window.Blob)try{return new Blob([Ht]).size}catch{}for(var Kt=Ht.length,ir=Ht.length-1;ir>=0;ir--){var er=Ht.charCodeAt(ir);er>127&&er<=2047?Kt++:er>2047&&er<=65535&&(Kt+=2),er>=56320&&er<=57343&&ir--}return Kt}var Or=function(){var Ht=!1,Kt={};Object.defineProperty(Kt,"isVisible",{set:function(dr){Fr({is_visible:dr})},get:function(){return Ht},enumerable:!0});var ir=null;a.onEvent("back_button_pressed",er);function er(){Rt("backButtonClicked")}function or(){return{is_visible:Ht}}function Lr(dr){return typeof dr>"u"&&(dr=or()),JSON.stringify(dr)}function lr(){return nr("6.1")?!0:(console.warn("[Telegram.WebApp] BackButton is not supported in version "+rt),!1)}function vr(){var dr=or(),xr=Lr(dr);ir!==xr&&(ir=xr,a.postEvent("web_app_setup_back_button",!1,dr))}function Fr(dr){return lr()&&(typeof dr.is_visible<"u"&&(Ht=!!dr.is_visible),vr()),Kt}return Kt.onClick=function(dr){return lr()&&Ot("backButtonClicked",dr),Kt},Kt.offClick=function(dr){return lr()&&Vt("backButtonClicked",dr),Kt},Kt.show=function(){return Fr({is_visible:!0})},Kt.hide=function(){return Fr({is_visible:!1})},Kt}(),pr=0,Jt=function(){var Ht=!1,Kt=!0,ir=!1,er="CONTINUE",or=!1,Lr=!1,lr={};Object.defineProperty(lr,"text",{set:function(Pr){lr.setParams({text:Pr})},get:function(){return er},enumerable:!0}),Object.defineProperty(lr,"color",{set:function(Pr){lr.setParams({color:Pr})},get:function(){return or||_e.button_color||"#2481cc"},enumerable:!0}),Object.defineProperty(lr,"textColor",{set:function(Pr){lr.setParams({text_color:Pr})},get:function(){return Lr||_e.button_text_color||"#ffffff"},enumerable:!0}),Object.defineProperty(lr,"isVisible",{set:function(Pr){lr.setParams({is_visible:Pr})},get:function(){return Ht},enumerable:!0}),Object.defineProperty(lr,"isProgressVisible",{get:function(){return ir},enumerable:!0}),Object.defineProperty(lr,"isActive",{set:function(Pr){lr.setParams({is_active:Pr})},get:function(){return Kt},enumerable:!0});var vr=null;a.onEvent("main_button_pressed",Vr);var Fr=null,dr={};if(o.tgWebAppDebug){Fr=document.createElement("tg-main-button"),dr={font:"600 14px/18px sans-serif",display:"none",width:"100%",height:"48px",borderRadius:"0",background:"no-repeat right center",position:"fixed",left:"0",right:"0",bottom:"0",margin:"0",padding:"15px 20px",textAlign:"center",boxSizing:"border-box",zIndex:"10000"};for(var xr in dr)Fr.style[xr]=dr[xr];document.addEventListener("DOMContentLoaded",function Pr(gr){document.removeEventListener("DOMContentLoaded",Pr),document.body.appendChild(Fr),Fr.addEventListener("click",Vr,!1)})}function Vr(){Kt&&Rt("mainButtonClicked")}function Ar(){var Pr=lr.color,gr=lr.textColor;return Ht?{is_visible:!0,is_active:Kt,is_progress_visible:ir,text:er,color:Pr,text_color:gr}:{is_visible:!1}}function Rr(Pr){return typeof Pr>"u"&&(Pr=Ar()),JSON.stringify(Pr)}function Wr(){var Pr=Ar(),gr=Rr(Pr);vr!==gr&&(vr=gr,a.postEvent("web_app_setup_main_button",!1,Pr),o.tgWebAppDebug&&Er(Pr))}function Er(Pr){Pr.is_visible?(Fr.style.display="block",pr=48,Fr.style.opacity=Pr.is_active?"1":"0.8",Fr.style.cursor=Pr.is_active?"pointer":"auto",Fr.disabled=!Pr.is_active,Fr.innerText=Pr.text,Fr.style.backgroundImage=Pr.is_progress_visible?"url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewport%3D%220%200%2048%2048%22%20width%3D%2248px%22%20height%3D%2248px%22%3E%3Ccircle%20cx%3D%2250%25%22%20cy%3D%2250%25%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222.25%22%20stroke-linecap%3D%22round%22%20fill%3D%22none%22%20stroke-dashoffset%3D%22106%22%20r%3D%229%22%20stroke-dasharray%3D%2256.52%22%20rotate%3D%22-90%22%3E%3Canimate%20attributeName%3D%22stroke-dashoffset%22%20attributeType%3D%22XML%22%20dur%3D%22360s%22%20from%3D%220%22%20to%3D%2212500%22%20repeatCount%3D%22indefinite%22%3E%3C%2Fanimate%3E%3CanimateTransform%20attributeName%3D%22transform%22%20attributeType%3D%22XML%22%20type%3D%22rotate%22%20dur%3D%221s%22%20from%3D%22-90%2024%2024%22%20to%3D%22630%2024%2024%22%20repeatCount%3D%22indefinite%22%3E%3C%2FanimateTransform%3E%3C%2Fcircle%3E%3C%2Fsvg%3E')":"none",Fr.style.backgroundColor=Pr.color,Fr.style.color=Pr.text_color):(Fr.style.display="none",pr=0),document.documentElement&&(document.documentElement.style.boxSizing="border-box",document.documentElement.style.paddingBottom=pr+"px"),at()}function Tr(Pr){if(typeof Pr.text<"u"){var gr=St(Pr.text);if(!gr.length)throw console.error("[Telegram.WebApp] Main button text is required",Pr.text),Error("WebAppMainButtonParamInvalid");if(gr.length>64)throw console.error("[Telegram.WebApp] Main button text is too long",gr),Error("WebAppMainButtonParamInvalid");er=gr}if(typeof Pr.color<"u")if(Pr.color===!1||Pr.color===null)or=!1;else{var Cr=kt(Pr.color);if(!Cr)throw console.error("[Telegram.WebApp] Main button color format is invalid",Pr.color),Error("WebAppMainButtonParamInvalid");or=Cr}if(typeof Pr.text_color<"u")if(Pr.text_color===!1||Pr.text_color===null)Lr=!1;else{var qr=kt(Pr.text_color);if(!qr)throw console.error("[Telegram.WebApp] Main button text color format is invalid",Pr.text_color),Error("WebAppMainButtonParamInvalid");Lr=qr}if(typeof Pr.is_visible<"u"){if(Pr.is_visible&&!lr.text.length)throw console.error("[Telegram.WebApp] Main button text is required"),Error("WebAppMainButtonParamInvalid");Ht=!!Pr.is_visible}return typeof Pr.is_active<"u"&&(Kt=!!Pr.is_active),Wr(),lr}return lr.setText=function(Pr){return lr.setParams({text:Pr})},lr.onClick=function(Pr){return Ot("mainButtonClicked",Pr),lr},lr.offClick=function(Pr){return Vt("mainButtonClicked",Pr),lr},lr.show=function(){return lr.setParams({is_visible:!0})},lr.hide=function(){return lr.setParams({is_visible:!1})},lr.enable=function(){return lr.setParams({is_active:!0})},lr.disable=function(){return lr.setParams({is_active:!1})},lr.showProgress=function(Pr){return Kt=!!Pr,ir=!0,Wr(),lr},lr.hideProgress=function(){return lr.isActive||(Kt=!0),ir=!1,Wr(),lr},lr.setParams=Tr,lr}(),Hr=function(){var Ht=!1,Kt={};Object.defineProperty(Kt,"isVisible",{set:function(dr){Fr({is_visible:dr})},get:function(){return Ht},enumerable:!0});var ir=null;a.onEvent("settings_button_pressed",er);function er(){Rt("settingsButtonClicked")}function or(){return{is_visible:Ht}}function Lr(dr){return typeof dr>"u"&&(dr=or()),JSON.stringify(dr)}function lr(){return nr("6.10")?!0:(console.warn("[Telegram.WebApp] SettingsButton is not supported in version "+rt),!1)}function vr(){var dr=or(),xr=Lr(dr);ir!==xr&&(ir=xr,a.postEvent("web_app_setup_settings_button",!1,dr))}function Fr(dr){return lr()&&(typeof dr.is_visible<"u"&&(Ht=!!dr.is_visible),vr()),Kt}return Kt.onClick=function(dr){return lr()&&Ot("settingsButtonClicked",dr),Kt},Kt.offClick=function(dr){return lr()&&Vt("settingsButtonClicked",dr),Kt},Kt.show=function(){return Fr({is_visible:!0})},Kt.hide=function(){return Fr({is_visible:!1})},Kt}(),br=function(){var Ht={};function Kt(ir){if(!nr("6.1"))return console.warn("[Telegram.WebApp] HapticFeedback is not supported in version "+rt),Ht;if(ir.type=="impact"){if(ir.impact_style!="light"&&ir.impact_style!="medium"&&ir.impact_style!="heavy"&&ir.impact_style!="rigid"&&ir.impact_style!="soft")throw console.error("[Telegram.WebApp] Haptic impact style is invalid",ir.impact_style),Error("WebAppHapticImpactStyleInvalid")}else if(ir.type=="notification"){if(ir.notification_type!="error"&&ir.notification_type!="success"&&ir.notification_type!="warning")throw console.error("[Telegram.WebApp] Haptic notification type is invalid",ir.notification_type),Error("WebAppHapticNotificationTypeInvalid")}else if(ir.type!="selection_change")throw console.error("[Telegram.WebApp] Haptic feedback type is invalid",ir.type),Error("WebAppHapticFeedbackTypeInvalid");return a.postEvent("web_app_trigger_haptic_feedback",!1,ir),Ht}return Ht.impactOccurred=function(ir){return Kt({type:"impact",impact_style:ir})},Ht.notificationOccurred=function(ir){return Kt({type:"notification",notification_type:ir})},Ht.selectionChanged=function(){return Kt({type:"selection_change"})},Ht}(),Mr=function(){var Ht={};function Kt(ir,er,or){if(!nr("6.9"))throw console.error("[Telegram.WebApp] CloudStorage is not supported in version "+rt),Error("WebAppMethodUnsupported");return Ur(ir,er,or),Ht}return Ht.setItem=function(ir,er,or){return Kt("saveStorageValue",{key:ir,value:er},or)},Ht.getItem=function(ir,er){return Ht.getItems([ir],er?function(or,Lr){or?er(or):er(null,Lr[ir])}:null)},Ht.getItems=function(ir,er){return Kt("getStorageValues",{keys:ir},er)},Ht.removeItem=function(ir,er){return Ht.removeItems([ir],er)},Ht.removeItems=function(ir,er){return Kt("deleteStorageValues",{keys:ir},er)},Ht.getKeys=function(ir){return Kt("getStorageKeys",{},ir)},Ht}(),jr=function(){var Ht=!1,Kt=!1,ir="unknown",er=!1,or=!1,Lr=!1,lr="",vr={};Object.defineProperty(vr,"isInited",{get:function(){return Ht},enumerable:!0}),Object.defineProperty(vr,"isBiometricAvailable",{get:function(){return Ht&&Kt},enumerable:!0}),Object.defineProperty(vr,"biometricType",{get:function(){return ir||"unknown"},enumerable:!0}),Object.defineProperty(vr,"isAccessRequested",{get:function(){return er},enumerable:!0}),Object.defineProperty(vr,"isAccessGranted",{get:function(){return er&&or},enumerable:!0}),Object.defineProperty(vr,"isBiometricTokenSaved",{get:function(){return Lr},enumerable:!0}),Object.defineProperty(vr,"deviceId",{get:function(){return lr||""},enumerable:!0});var Fr={callbacks:[]},dr=!1,xr=!1,Vr=!1;a.onEvent("biometry_info_received",Ar),a.onEvent("biometry_auth_requested",Rr),a.onEvent("biometry_token_updated",Wr);function Ar(Pr,gr){if(Ht=!0,gr.available?(Kt=!0,ir=gr.type||"unknown",gr.access_requested?(er=!0,or=!!gr.access_granted,Lr=!!gr.token_saved):(er=!1,or=!1,Lr=!1)):(Kt=!1,ir="unknown",er=!1,or=!1,Lr=!1),lr=gr.device_id||"",Fr.callbacks.length>0)for(var Cr=0;Cr128)throw console.error("[Telegram.WebApp] Biometric reason is too long",qr),Error("WebAppBiometricRequestAccessParamInvalid");qr.length>0&&(Cr.reason=qr)}return dr={callback:gr},a.postEvent("web_app_biometry_request_access",!1,Cr),vr},vr.authenticate=function(Pr,gr){if(!Er())return vr;if(Tr(),!Kt)throw console.error("[Telegram.WebApp] Biometrics is not available on this device."),Error("WebAppBiometricManagerBiometricsNotAvailable");if(!or)throw console.error("[Telegram.WebApp] Biometric access was not granted by the user."),Error("WebAppBiometricManagerBiometricAccessNotGranted");if(xr)throw console.error("[Telegram.WebApp] Authentication request is already in progress."),Error("WebAppBiometricManagerAuthenticationRequested");var Cr={};if(typeof Pr.reason<"u"){var qr=St(Pr.reason);if(qr.length>128)throw console.error("[Telegram.WebApp] Biometric reason is too long",qr),Error("WebAppBiometricRequestAccessParamInvalid");qr.length>0&&(Cr.reason=qr)}return xr={callback:gr},a.postEvent("web_app_biometry_request_auth",!1,Cr),vr},vr.updateBiometricToken=function(Pr,gr){if(!Er())return vr;if(Pr=Pr||"",Pr.length>1024)throw console.error("[Telegram.WebApp] Token is too long",Pr),Error("WebAppBiometricManagerTokenInvalid");if(Tr(),!Kt)throw console.error("[Telegram.WebApp] Biometrics is not available on this device."),Error("WebAppBiometricManagerBiometricsNotAvailable");if(!or)throw console.error("[Telegram.WebApp] Biometric access was not granted by the user."),Error("WebAppBiometricManagerBiometricAccessNotGranted");if(Vr)throw console.error("[Telegram.WebApp] Token request is already in progress."),Error("WebAppBiometricManagerTokenUpdateRequested");return Vr={callback:gr},a.postEvent("web_app_biometry_update_token",!1,{token:Pr}),vr},vr.openSettings=function(){if(!Er())return vr;if(Tr(),!Kt)throw console.error("[Telegram.WebApp] Biometrics is not available on this device."),Error("WebAppBiometricManagerBiometricsNotAvailable");if(!er)throw console.error("[Telegram.WebApp] Biometric access was not requested yet."),Error("WebAppBiometricManagerBiometricsAccessNotRequested");return or?(console.warn("[Telegram.WebApp] Biometric access was granted by the user, no need to go to settings."),vr):(a.postEvent("web_app_biometry_open_settings",!1),vr)},vr}(),Gt={};function Yt(Ht,Kt){if(Kt.slug&&Gt[Kt.slug]){var ir=Gt[Kt.slug];delete Gt[Kt.slug],ir.callback&&ir.callback(Kt.status),Rt("invoiceClosed",{url:ir.url,status:Kt.status})}}var Ir=!1;function ar(Ht,Kt){if(Ir){var ir=Ir;Ir=!1;var er=null;typeof Kt.button_id<"u"&&(er=Kt.button_id),ir.callback&&ir.callback(er),Rt("popupClosed",{button_id:er})}}var fr=!1;function Dr(Ht,Kt){if(fr){var ir=fr,er=null;typeof Kt.data<"u"&&(er=Kt.data),ir.callback&&ir.callback(er)&&(fr=!1,a.postEvent("web_app_close_scan_qr_popup",!1)),Rt("qrTextReceived",{data:er})}}function Pt(Ht,Kt){fr=!1,Rt("scanQrPopupClosed")}function At(Ht,Kt){if(Kt.req_id&&Zt[Kt.req_id]){var ir=Zt[Kt.req_id];delete Zt[Kt.req_id];var er=null;typeof Kt.data<"u"&&(er=Kt.data),ir.callback&&ir.callback(er),Rt("clipboardTextReceived",{data:er})}}var It=!1;function Dt(Ht,Kt){if(It){var ir=It;It=!1,ir.callback&&ir.callback(Kt.status=="allowed"),Rt("writeAccessRequested",{status:Kt.status})}}function Qt(Ht,Kt){var ir,er,or=0,Lr=function(){Ur("getRequestedContact",{},function(vr,Fr){Fr&&Fr.length?(clearTimeout(er),Ht(Fr)):(or+=50,ir=setTimeout(Lr,or))})},lr=function(){clearTimeout(ir),Ht("")};er=setTimeout(lr,Kt),Lr()}var cr=!1;function Xt(Ht,Kt){if(cr){var ir=cr;cr=!1;var er=Kt.status=="sent",or={status:Kt.status};er?Qt(function(Lr){if(Lr&&Lr.length){or.response=Lr,or.responseUnsafe=e.urlParseQueryString(Lr);for(var lr in or.responseUnsafe){var vr=or.responseUnsafe[lr];try{(vr.substr(0,1)=="{"&&vr.substr(-1)=="}"||vr.substr(0,1)=="["&&vr.substr(-1)=="]")&&(or.responseUnsafe[lr]=JSON.parse(vr))}catch{}}}ir.callback&&ir.callback(er,or),Rt("contactRequested",or)},3e3):(ir.callback&&ir.callback(er,or),Rt("contactRequested",or))}}function yr(Ht,Kt){if(Kt.req_id&&Zt[Kt.req_id]){var ir=Zt[Kt.req_id];delete Zt[Kt.req_id];var er=null,or=null;typeof Kt.result<"u"&&(er=Kt.result),typeof Kt.error<"u"&&(or=Kt.error),ir.callback&&ir.callback(or,er)}}function Ur(Ht,Kt,ir){if(!nr("6.9"))throw console.error("[Telegram.WebApp] Method invokeCustomMethod is not supported in version "+rt),Error("WebAppMethodUnsupported");var er=pt(16),or={req_id:er,method:Ht,params:Kt||{}};Zt[er]={callback:ir},a.postEvent("web_app_invoke_custom_method",!1,or)}window.Telegram||(window.Telegram={}),Object.defineProperty(h,"initData",{get:function(){return d},enumerable:!0}),Object.defineProperty(h,"initDataUnsafe",{get:function(){return _},enumerable:!0}),Object.defineProperty(h,"version",{get:function(){return rt},enumerable:!0}),Object.defineProperty(h,"platform",{get:function(){return it},enumerable:!0}),Object.defineProperty(h,"colorScheme",{get:function(){return tt},enumerable:!0}),Object.defineProperty(h,"themeParams",{get:function(){return _e},enumerable:!0}),Object.defineProperty(h,"isExpanded",{get:function(){return nt},enumerable:!0}),Object.defineProperty(h,"viewportHeight",{get:function(){return($===!1?window.innerHeight:$)-pr},enumerable:!0}),Object.defineProperty(h,"viewportStableHeight",{get:function(){return(et===!1?window.innerHeight:et)-pr},enumerable:!0}),Object.defineProperty(h,"isClosingConfirmationEnabled",{set:function(Ht){dt(Ht)},get:function(){return lt},enumerable:!0}),Object.defineProperty(h,"isVerticalSwipesEnabled",{set:function(Ht){ot(Ht)},get:function(){return gt},enumerable:!0}),Object.defineProperty(h,"headerColor",{set:function(Ht){Et(Ht)},get:function(){return wt()},enumerable:!0}),Object.defineProperty(h,"backgroundColor",{set:function(Ht){Lt(Ht)},get:function(){return Nt()},enumerable:!0}),Object.defineProperty(h,"BackButton",{value:Or,enumerable:!0}),Object.defineProperty(h,"MainButton",{value:Jt,enumerable:!0}),Object.defineProperty(h,"SettingsButton",{value:Hr,enumerable:!0}),Object.defineProperty(h,"HapticFeedback",{value:br,enumerable:!0}),Object.defineProperty(h,"CloudStorage",{value:Mr,enumerable:!0}),Object.defineProperty(h,"BiometricManager",{value:jr,enumerable:!0}),h.setHeaderColor=function(Ht){h.headerColor=Ht},h.setBackgroundColor=function(Ht){h.backgroundColor=Ht},h.enableClosingConfirmation=function(){h.isClosingConfirmationEnabled=!0},h.disableClosingConfirmation=function(){h.isClosingConfirmationEnabled=!1},h.enableVerticalSwipes=function(){h.isVerticalSwipesEnabled=!0},h.disableVerticalSwipes=function(){h.isVerticalSwipesEnabled=!1},h.isVersionAtLeast=function(Ht){return nr(Ht)},h.onEvent=function(Ht,Kt){Ot(Ht,Kt)},h.offEvent=function(Ht,Kt){Vt(Ht,Kt)},h.sendData=function(Ht){if(!Ht||!Ht.length)throw console.error("[Telegram.WebApp] Data is required",Ht),Error("WebAppDataInvalid");if(ur(Ht)>4096)throw console.error("[Telegram.WebApp] Data is too long",Ht),Error("WebAppDataInvalid");a.postEvent("web_app_data_send",!1,{data:Ht})},h.switchInlineQuery=function(Ht,Kt){if(!nr("6.6"))throw console.error("[Telegram.WebApp] Method switchInlineQuery is not supported in version "+rt),Error("WebAppMethodUnsupported");if(!o.tgWebAppBotInline)throw console.error("[Telegram.WebApp] Inline mode is disabled for this bot. Read more about inline mode: https://core.telegram.org/bots/inline"),Error("WebAppInlineModeDisabled");if(Ht=Ht||"",Ht.length>256)throw console.error("[Telegram.WebApp] Inline query is too long",Ht),Error("WebAppInlineQueryInvalid");var ir=[];if(Kt){if(!Array.isArray(Kt))throw console.error("[Telegram.WebApp] Choose chat types should be an array",Kt),Error("WebAppInlineChooseChatTypesInvalid");for(var er={users:1,bots:1,groups:1,channels:1},or=0;or64)throw console.error("[Telegram.WebApp] Popup title is too long",ir),Error("WebAppPopupParamInvalid");ir.length>0&&(Lr.title=ir)}if(typeof Ht.message<"u"&&(er=St(Ht.message)),!er.length)throw console.error("[Telegram.WebApp] Popup message is required",Ht.message),Error("WebAppPopupParamInvalid");if(er.length>256)throw console.error("[Telegram.WebApp] Popup message is too long",er),Error("WebAppPopupParamInvalid");if(Lr.message=er,typeof Ht.buttons<"u"){if(!Array.isArray(Ht.buttons))throw console.error("[Telegram.WebApp] Popup buttons should be an array",Ht.buttons),Error("WebAppPopupParamInvalid");for(var lr=0;lr64))throw console.error("[Telegram.WebApp] Popup button id is too long",dr),Error("WebAppPopupParamInvalid");Fr.id=dr;var xr=vr.type;if(typeof xr>"u"&&(xr="default"),Fr.type=xr,!(xr=="ok"||xr=="close"||xr=="cancel"))if(xr=="default"||xr=="destructive"){var Vr="";if(typeof vr.text<"u"&&(Vr=St(vr.text)),!Vr.length)throw console.error("[Telegram.WebApp] Popup button text is required for type "+xr,vr.text),Error("WebAppPopupParamInvalid");if(Vr.length>64)throw console.error("[Telegram.WebApp] Popup button text is too long",Vr),Error("WebAppPopupParamInvalid");Fr.text=Vr}else throw console.error("[Telegram.WebApp] Popup button type is invalid",xr),Error("WebAppPopupParamInvalid");or.push(Fr)}}else or.push({id:"",type:"close"});if(or.length<1)throw console.error("[Telegram.WebApp] Popup should have at least one button"),Error("WebAppPopupParamInvalid");if(or.length>3)throw console.error("[Telegram.WebApp] Popup should not have more than 3 buttons"),Error("WebAppPopupParamInvalid");Lr.buttons=or,Ir={callback:Kt},a.postEvent("web_app_open_popup",!1,Lr)},h.showAlert=function(Ht,Kt){h.showPopup({message:Ht},Kt?function(){Kt()}:null)},h.showConfirm=function(Ht,Kt){h.showPopup({message:Ht,buttons:[{type:"ok",id:"ok"},{type:"cancel"}]},Kt?function(ir){Kt(ir=="ok")}:null)},h.showScanQrPopup=function(Ht,Kt){if(!nr("6.4"))throw console.error("[Telegram.WebApp] Method showScanQrPopup is not supported in version "+rt),Error("WebAppMethodUnsupported");if(fr)throw console.error("[Telegram.WebApp] Popup is already opened"),Error("WebAppScanQrPopupOpened");var ir="",er={};if(typeof Ht.text<"u"){if(ir=St(Ht.text),ir.length>64)throw console.error("[Telegram.WebApp] Scan QR popup text is too long",ir),Error("WebAppScanQrPopupParamInvalid");ir.length>0&&(er.text=ir)}fr={callback:Kt},a.postEvent("web_app_open_scan_qr_popup",!1,er)},h.closeScanQrPopup=function(){if(!nr("6.4"))throw console.error("[Telegram.WebApp] Method closeScanQrPopup is not supported in version "+rt),Error("WebAppMethodUnsupported");fr=!1,a.postEvent("web_app_close_scan_qr_popup",!1)},h.readTextFromClipboard=function(Ht){if(!nr("6.4"))throw console.error("[Telegram.WebApp] Method readTextFromClipboard is not supported in version "+rt),Error("WebAppMethodUnsupported");var Kt=pt(16),ir={req_id:Kt};Zt[Kt]={callback:Ht},a.postEvent("web_app_read_text_from_clipboard",!1,ir)},h.requestWriteAccess=function(Ht){if(!nr("6.9"))throw console.error("[Telegram.WebApp] Method requestWriteAccess is not supported in version "+rt),Error("WebAppMethodUnsupported");if(It)throw console.error("[Telegram.WebApp] Write access is already requested"),Error("WebAppWriteAccessRequested");It={callback:Ht},a.postEvent("web_app_request_write_access")},h.requestContact=function(Ht){if(!nr("6.9"))throw console.error("[Telegram.WebApp] Method requestContact is not supported in version "+rt),Error("WebAppMethodUnsupported");if(cr)throw console.error("[Telegram.WebApp] Contact is already requested"),Error("WebAppContactRequested");cr={callback:Ht},a.postEvent("web_app_request_phone")},h.shareToStory=function(Ht,Kt){if(Kt=Kt||{},!nr("7.8"))throw console.error("[Telegram.WebApp] Method shareToStory is not supported in version "+rt),Error("WebAppMethodUnsupported");var ir=document.createElement("A");if(ir.href=Ht,ir.protocol!="http:"&&ir.protocol!="https:")throw console.error("[Telegram.WebApp] Media url protocol is not supported",url),Error("WebAppMediaUrlInvalid");var er={};if(er.media_url=ir.href,typeof Kt.text<"u"){var or=St(Kt.text);if(or.length>2048)throw console.error("[Telegram.WebApp] Text is too long",or),Error("WebAppShareToStoryParamInvalid");or.length>0&&(er.text=or)}if(typeof Kt.widget_link<"u"){if(Kt.widget_link=Kt.widget_link||{},ir.href=Kt.widget_link.url,ir.protocol!="http:"&&ir.protocol!="https:")throw console.error("[Telegram.WebApp] Link protocol is not supported",url),Error("WebAppShareToStoryParamInvalid");var Lr={url:ir.href};if(typeof Kt.widget_link.name<"u"){var lr=St(Kt.widget_link.name);if(lr.length>48)throw console.error("[Telegram.WebApp] Link name is too long",lr),Error("WebAppShareToStoryParamInvalid");lr.length>0&&(Lr.name=lr)}er.widget_link=Lr}a.postEvent("web_app_share_to_story",!1,er)},h.invokeCustomMethod=function(Ht,Kt,ir){Ur(Ht,Kt,ir)},h.ready=function(){a.postEvent("web_app_ready")},h.expand=function(){a.postEvent("web_app_expand")},h.close=function(Ht){Ht=Ht||{};var Kt={};nr("7.6")&&Ht.return_back&&(Kt.return_back=!0),a.postEvent("web_app_close",!1,Kt)},window.Telegram.WebApp=h,Bt(),Ut(),at(),o.tgWebAppShowSettings&&Hr.show(),window.addEventListener("resize",bt),c&&document.addEventListener("click",xt),a.onEvent("theme_changed",yt),a.onEvent("viewport_changed",$t),a.onEvent("invoice_closed",Yt),a.onEvent("popup_closed",ar),a.onEvent("qr_text_received",Dr),a.onEvent("scan_qr_popup_closed",Pt),a.onEvent("clipboard_text_received",At),a.onEvent("write_access_requested",Dt),a.onEvent("phone_requested",Xt),a.onEvent("custom_method_invoked",yr),a.postEvent("web_app_request_theme"),a.postEvent("web_app_request_viewport")})();Object.defineProperty(sdk,"__esModule",{value:!0});sdk.WebApp=void 0;var telegramWindow=window;sdk.WebApp=telegramWindow.Telegram.WebApp;Object.defineProperty(dist$1,"__esModule",{value:!0});var sdk_1=sdk,_default=dist$1.default=sdk_1.WebApp;const telegramCloudStorage={setItem:(e,a,o)=>{_default.CloudStorage.setItem(e,a,o)},getItem:(e,a)=>{_default.CloudStorage.getItem(e,a)},getItems:(e,a)=>{_default.CloudStorage.getItems(e,a)},getKeys:e=>{_default.CloudStorage.getKeys(e)},removeItem:(e,a)=>{_default.CloudStorage.removeItem(e,a)},removeItems:(e,a)=>{_default.CloudStorage.removeItems(e,a)}},INITIAL_CHUNK_COUNT=32,MAX_RETRIES=256,storeWithChunking=async(e,a,o,c)=>{const h=(_,_e)=>new Promise((tt,rt)=>{telegramCloudStorage.setItem(_,_e,it=>{it?rt(it):tt()})}),d=async(_,_e,tt=0)=>{if(tt>MAX_RETRIES)throw new Error(`Failed to store after ${MAX_RETRIES} splitting attempts`);const rt=[];if(await Promise.all(_e.map(async(st,ht)=>{const mt=`${_}_chunk_${ht}`;try{await h(mt,st)}catch{rt.push({index:ht,value:st})}})),rt.length===0)return _e.length;const it=_e.filter((st,ht)=>!rt.some(mt=>mt.index===ht));for(const{value:st}of rt){const ht=Math.ceil(st.length/2);it.push(st.slice(0,ht),st.slice(ht))}return d(_,it,tt+1)};try{o(`Storing "${e}"...`);const _=Math.ceil(a.length/INITIAL_CHUNK_COUNT),_e=Array.from({length:INITIAL_CHUNK_COUNT},(rt,it)=>a.slice(it*_,(it+1)*_)).filter(rt=>rt.length>0),tt=await d(e,_e);return await h(`${e}_meta`,JSON.stringify({totalChunks:tt})),o(`Successfully stored "${e}" in ${tt} chunks`),tt}catch(_){throw c(`Failed to store "${e}": ${_ instanceof Error?_.message:String(_)}`),_}},retrieveChunkedData=async(e,a,o)=>{const c=h=>new Promise((d,_)=>{telegramCloudStorage.getItem(h,(_e,tt)=>{_e?_(_e):d(tt)})});try{const h=await c(`${e}_meta`);if(!h)return"";const{totalChunks:d}=JSON.parse(h);a(`Retrieving data for "${e}" (${d} chunks)`);const _e=(await Promise.all(Array.from({length:d},(tt,rt)=>c(`${e}_chunk_${rt}`)))).join("");return a(`Successfully retrieved and recombined data for "${e}"`),_e}catch(h){throw o(`Failed to retrieve data for "${e}": ${h instanceof Error?h.message:String(h)}`),h}};var buffer$1={},base64Js$1={};base64Js$1.byteLength=byteLength$1;base64Js$1.toByteArray=toByteArray$1;base64Js$1.fromByteArray=fromByteArray$1;var lookup$1=[],revLookup$1=[],Arr$1=typeof Uint8Array<"u"?Uint8Array:Array,code$1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i$2=0,len$1=code$1.length;i$20)throw new Error("Invalid string. Length must be a multiple of 4");var o=e.indexOf("=");o===-1&&(o=a);var c=o===a?0:4-o%4;return[o,c]}function byteLength$1(e){var a=getLens$1(e),o=a[0],c=a[1];return(o+c)*3/4-c}function _byteLength$1(e,a,o){return(a+o)*3/4-o}function toByteArray$1(e){var a,o=getLens$1(e),c=o[0],h=o[1],d=new Arr$1(_byteLength$1(e,c,h)),_=0,_e=h>0?c-4:c,tt;for(tt=0;tt<_e;tt+=4)a=revLookup$1[e.charCodeAt(tt)]<<18|revLookup$1[e.charCodeAt(tt+1)]<<12|revLookup$1[e.charCodeAt(tt+2)]<<6|revLookup$1[e.charCodeAt(tt+3)],d[_++]=a>>16&255,d[_++]=a>>8&255,d[_++]=a&255;return h===2&&(a=revLookup$1[e.charCodeAt(tt)]<<2|revLookup$1[e.charCodeAt(tt+1)]>>4,d[_++]=a&255),h===1&&(a=revLookup$1[e.charCodeAt(tt)]<<10|revLookup$1[e.charCodeAt(tt+1)]<<4|revLookup$1[e.charCodeAt(tt+2)]>>2,d[_++]=a>>8&255,d[_++]=a&255),d}function tripletToBase64$1(e){return lookup$1[e>>18&63]+lookup$1[e>>12&63]+lookup$1[e>>6&63]+lookup$1[e&63]}function encodeChunk$1(e,a,o){for(var c,h=[],d=a;d_e?_e:_+d));return c===1?(a=e[o-1],h.push(lookup$1[a>>2]+lookup$1[a<<4&63]+"==")):c===2&&(a=(e[o-2]<<8)+e[o-1],h.push(lookup$1[a>>10]+lookup$1[a>>4&63]+lookup$1[a<<2&63]+"=")),h.join("")}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ieee754.read=function(e,a,o,c,h){var d,_,_e=h*8-c-1,tt=(1<<_e)-1,rt=tt>>1,it=-7,st=o?h-1:0,ht=o?-1:1,mt=e[a+st];for(st+=ht,d=mt&(1<<-it)-1,mt>>=-it,it+=_e;it>0;d=d*256+e[a+st],st+=ht,it-=8);for(_=d&(1<<-it)-1,d>>=-it,it+=c;it>0;_=_*256+e[a+st],st+=ht,it-=8);if(d===0)d=1-rt;else{if(d===tt)return _?NaN:(mt?-1:1)*(1/0);_=_+Math.pow(2,c),d=d-rt}return(mt?-1:1)*_*Math.pow(2,d-c)};ieee754.write=function(e,a,o,c,h,d){var _,_e,tt,rt=d*8-h-1,it=(1<>1,ht=h===23?Math.pow(2,-24)-Math.pow(2,-77):0,mt=c?0:d-1,vt=c?1:-1,yt=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(_e=isNaN(a)?1:0,_=it):(_=Math.floor(Math.log(a)/Math.LN2),a*(tt=Math.pow(2,-_))<1&&(_--,tt*=2),_+st>=1?a+=ht/tt:a+=ht*Math.pow(2,1-st),a*tt>=2&&(_++,tt/=2),_+st>=it?(_e=0,_=it):_+st>=1?(_e=(a*tt-1)*Math.pow(2,h),_=_+st):(_e=a*Math.pow(2,st-1)*Math.pow(2,h),_=0));h>=8;e[o+mt]=_e&255,mt+=vt,_e/=256,h-=8);for(_=_<0;e[o+mt]=_&255,mt+=vt,_/=256,rt-=8);e[o+mt-vt]|=yt*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh diff --git a/index.html b/index.html index eadcad1..f7ae16e 100644 --- a/index.html +++ b/index.html @@ -11,7 +11,7 @@ content="width=device-width, initial-scale=1.0" /> Capsule Telegram Mini App - +