diff --git a/assets/index-09bf30bf.js b/assets/index-09bf30bf.js deleted file mode 100644 index 30c4dee..0000000 --- a/assets/index-09bf30bf.js +++ /dev/null @@ -1,103 +0,0 @@ -function LC(A,e){for(var t=0;tr[n]})}}}return Object.freeze(Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function t(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(n){if(n.ep)return;n.ep=!0;const i=t(n);fetch(n.href,i)}})();var Xg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function DC(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var Jg={exports:{}},vl={},Yg={exports:{}},fA={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Ns=Symbol.for("react.element"),TC=Symbol.for("react.portal"),RC=Symbol.for("react.fragment"),OC=Symbol.for("react.strict_mode"),bC=Symbol.for("react.profiler"),MC=Symbol.for("react.provider"),KC=Symbol.for("react.context"),_C=Symbol.for("react.forward_ref"),PC=Symbol.for("react.suspense"),NC=Symbol.for("react.memo"),kC=Symbol.for("react.lazy"),Th=Symbol.iterator;function VC(A){return A===null||typeof A!="object"?null:(A=Th&&A[Th]||A["@@iterator"],typeof A=="function"?A:null)}var Zg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},qg=Object.assign,$g={};function ci(A,e,t){this.props=A,this.context=e,this.refs=$g,this.updater=t||Zg}ci.prototype.isReactComponent={};ci.prototype.setState=function(A,e){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,e,"setState")};ci.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function Aw(){}Aw.prototype=ci.prototype;function sd(A,e,t){this.props=A,this.context=e,this.refs=$g,this.updater=t||Zg}var od=sd.prototype=new Aw;od.constructor=sd;qg(od,ci.prototype);od.isPureReactComponent=!0;var Rh=Array.isArray,ew=Object.prototype.hasOwnProperty,ad={current:null},tw={key:!0,ref:!0,__self:!0,__source:!0};function rw(A,e,t){var r,n={},i=null,s=null;if(e!=null)for(r in e.ref!==void 0&&(s=e.ref),e.key!==void 0&&(i=""+e.key),e)ew.call(e,r)&&!tw.hasOwnProperty(r)&&(n[r]=e[r]);var o=arguments.length-2;if(o===1)n.children=t;else if(1>>1,pA=M[dA];if(0>>1;dAn(_A,q))PAn(Be,_A)?(M[dA]=Be,M[PA]=q,dA=PA):(M[dA]=_A,M[uA]=q,dA=uA);else if(PAn(Be,q))M[dA]=Be,M[PA]=q,dA=PA;else break A}}return V}function n(M,V){var q=M.sortIndex-V.sortIndex;return q!==0?q:M.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;A.unstable_now=function(){return i.now()}}else{var s=Date,o=s.now();A.unstable_now=function(){return s.now()-o}}var a=[],l=[],u=1,c=null,f=3,g=!1,B=!1,m=!1,S=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(M){for(var V=t(l);V!==null;){if(V.callback===null)r(l);else if(V.startTime<=M)r(l),V.sortIndex=V.expirationTime,e(a,V);else break;V=t(l)}}function h(M){if(m=!1,w(M),!B)if(t(a)!==null)B=!0,eA(C);else{var V=t(l);V!==null&&W(h,V.startTime-M)}}function C(M,V){B=!1,m&&(m=!1,p(v),v=-1),g=!0;var q=f;try{for(w(V),c=t(a);c!==null&&(!(c.expirationTime>V)||M&&!b());){var dA=c.callback;if(typeof dA=="function"){c.callback=null,f=c.priorityLevel;var pA=dA(c.expirationTime<=V);V=A.unstable_now(),typeof pA=="function"?c.callback=pA:c===t(a)&&r(a),w(V)}else r(a);c=t(a)}if(c!==null)var te=!0;else{var uA=t(l);uA!==null&&W(h,uA.startTime-V),te=!1}return te}finally{c=null,f=q,g=!1}}var y=!1,U=null,v=-1,E=5,H=-1;function b(){return!(A.unstable_now()-HM||125dA?(M.sortIndex=q,e(l,M),t(a)===null&&M===t(l)&&(m?(p(v),v=-1):m=!0,W(h,q-dA))):(M.sortIndex=pA,e(a,M),B||g||(B=!0,eA(C))),M},A.unstable_shouldYield=b,A.unstable_wrapCallback=function(M){var V=f;return function(){var q=f;f=V;try{return M.apply(this,arguments)}finally{f=q}}}})(ow);sw.exports=ow;var ey=sw.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var aw=K,ke=ey;function P(A){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+A,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ic=Object.prototype.hasOwnProperty,ty=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,bh={},Mh={};function ry(A){return Ic.call(Mh,A)?!0:Ic.call(bh,A)?!1:ty.test(A)?Mh[A]=!0:(bh[A]=!0,!1)}function ny(A,e,t,r){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(A=A.toLowerCase().slice(0,5),A!=="data-"&&A!=="aria-");default:return!1}}function iy(A,e,t,r){if(e===null||typeof e>"u"||ny(A,e,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function He(A,e,t,r,n,i,s){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=n,this.mustUseProperty=t,this.propertyName=A,this.type=e,this.sanitizeURL=i,this.removeEmptyString=s}var he={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(A){he[A]=new He(A,0,!1,A,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(A){var e=A[0];he[e]=new He(e,1,!1,A[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(A){he[A]=new He(A,2,!1,A.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(A){he[A]=new He(A,2,!1,A,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(A){he[A]=new He(A,3,!1,A.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(A){he[A]=new He(A,3,!0,A,null,!1,!1)});["capture","download"].forEach(function(A){he[A]=new He(A,4,!1,A,null,!1,!1)});["cols","rows","size","span"].forEach(function(A){he[A]=new He(A,6,!1,A,null,!1,!1)});["rowSpan","start"].forEach(function(A){he[A]=new He(A,5,!1,A.toLowerCase(),null,!1,!1)});var ud=/[\-:]([a-z])/g;function cd(A){return A[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(A){var e=A.replace(ud,cd);he[e]=new He(e,1,!1,A,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(A){var e=A.replace(ud,cd);he[e]=new He(e,1,!1,A,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(A){var e=A.replace(ud,cd);he[e]=new He(e,1,!1,A,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(A){he[A]=new He(A,1,!1,A.toLowerCase(),null,!1,!1)});he.xlinkHref=new He("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(A){he[A]=new He(A,1,!1,A.toLowerCase(),null,!0,!0)});function fd(A,e,t,r){var n=he.hasOwnProperty(e)?he[e]:null;(n!==null?n.type!==0:r||!(2o||n[s]!==i[o]){var a=` -`+n[s].replace(" at new "," at ");return A.displayName&&a.includes("")&&(a=a.replace("",A.displayName)),a}while(1<=s&&0<=o);break}}}finally{wu=!1,Error.prepareStackTrace=t}return(A=A?A.displayName||A.name:"")?Gi(A):""}function sy(A){switch(A.tag){case 5:return Gi(A.type);case 16:return Gi("Lazy");case 13:return Gi("Suspense");case 19:return Gi("SuspenseList");case 0:case 2:case 15:return A=mu(A.type,!1),A;case 11:return A=mu(A.type.render,!1),A;case 1:return A=mu(A.type,!0),A;default:return""}}function Dc(A){if(A==null)return null;if(typeof A=="function")return A.displayName||A.name||null;if(typeof A=="string")return A;switch(A){case xn:return"Fragment";case Hn:return"Portal";case Hc:return"Profiler";case dd:return"StrictMode";case xc:return"Suspense";case Lc:return"SuspenseList"}if(typeof A=="object")switch(A.$$typeof){case cw:return(A.displayName||"Context")+".Consumer";case uw:return(A._context.displayName||"Context")+".Provider";case hd:var e=A.render;return A=A.displayName,A||(A=e.displayName||e.name||"",A=A!==""?"ForwardRef("+A+")":"ForwardRef"),A;case Bd:return e=A.displayName||null,e!==null?e:Dc(A.type)||"Memo";case lr:e=A._payload,A=A._init;try{return Dc(A(e))}catch{}}return null}function oy(A){var e=A.type;switch(A.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return A=e.render,A=A.displayName||A.name||"",e.displayName||(A!==""?"ForwardRef("+A+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Dc(e);case 8:return e===dd?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Dr(A){switch(typeof A){case"boolean":case"number":case"string":case"undefined":return A;case"object":return A;default:return""}}function dw(A){var e=A.type;return(A=A.nodeName)&&A.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function ay(A){var e=dw(A)?"checked":"value",t=Object.getOwnPropertyDescriptor(A.constructor.prototype,e),r=""+A[e];if(!A.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var n=t.get,i=t.set;return Object.defineProperty(A,e,{configurable:!0,get:function(){return n.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(A,e,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){A._valueTracker=null,delete A[e]}}}}function co(A){A._valueTracker||(A._valueTracker=ay(A))}function hw(A){if(!A)return!1;var e=A._valueTracker;if(!e)return!0;var t=e.getValue(),r="";return A&&(r=dw(A)?A.checked?"true":"false":A.value),A=r,A!==t?(e.setValue(A),!0):!1}function Ua(A){if(A=A||(typeof document<"u"?document:void 0),typeof A>"u")return null;try{return A.activeElement||A.body}catch{return A.body}}function Tc(A,e){var t=e.checked;return MA({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??A._wrapperState.initialChecked})}function _h(A,e){var t=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;t=Dr(e.value!=null?e.value:t),A._wrapperState={initialChecked:r,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Bw(A,e){e=e.checked,e!=null&&fd(A,"checked",e,!1)}function Rc(A,e){Bw(A,e);var t=Dr(e.value),r=e.type;if(t!=null)r==="number"?(t===0&&A.value===""||A.value!=t)&&(A.value=""+t):A.value!==""+t&&(A.value=""+t);else if(r==="submit"||r==="reset"){A.removeAttribute("value");return}e.hasOwnProperty("value")?Oc(A,e.type,t):e.hasOwnProperty("defaultValue")&&Oc(A,e.type,Dr(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(A.defaultChecked=!!e.defaultChecked)}function Ph(A,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+A._wrapperState.initialValue,t||e===A.value||(A.value=e),A.defaultValue=e}t=A.name,t!==""&&(A.name=""),A.defaultChecked=!!A._wrapperState.initialChecked,t!==""&&(A.name=t)}function Oc(A,e,t){(e!=="number"||Ua(A.ownerDocument)!==A)&&(t==null?A.defaultValue=""+A._wrapperState.initialValue:A.defaultValue!==""+t&&(A.defaultValue=""+t))}var ji=Array.isArray;function jn(A,e,t,r){if(A=A.options,e){e={};for(var n=0;n"+e.valueOf().toString()+"",e=fo.firstChild;A.firstChild;)A.removeChild(A.firstChild);for(;e.firstChild;)A.appendChild(e.firstChild)}});function vs(A,e){if(e){var t=A.firstChild;if(t&&t===A.lastChild&&t.nodeType===3){t.nodeValue=e;return}}A.textContent=e}var ts={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},ly=["Webkit","ms","Moz","O"];Object.keys(ts).forEach(function(A){ly.forEach(function(e){e=e+A.charAt(0).toUpperCase()+A.substring(1),ts[e]=ts[A]})});function mw(A,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||ts.hasOwnProperty(A)&&ts[A]?(""+e).trim():e+"px"}function vw(A,e){A=A.style;for(var t in e)if(e.hasOwnProperty(t)){var r=t.indexOf("--")===0,n=mw(t,e[t],r);t==="float"&&(t="cssFloat"),r?A.setProperty(t,n):A[t]=n}}var uy=MA({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 Kc(A,e){if(e){if(uy[A]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(P(137,A));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(P(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(P(61))}if(e.style!=null&&typeof e.style!="object")throw Error(P(62))}}function _c(A,e){if(A.indexOf("-")===-1)return typeof e.is=="string";switch(A){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Pc=null;function pd(A){return A=A.target||A.srcElement||window,A.correspondingUseElement&&(A=A.correspondingUseElement),A.nodeType===3?A.parentNode:A}var Nc=null,Wn=null,zn=null;function Vh(A){if(A=Gs(A)){if(typeof Nc!="function")throw Error(P(280));var e=A.stateNode;e&&(e=Ul(e),Nc(A.stateNode,A.type,e))}}function Cw(A){Wn?zn?zn.push(A):zn=[A]:Wn=A}function yw(){if(Wn){var A=Wn,e=zn;if(zn=Wn=null,Vh(A),e)for(A=0;A>>=0,A===0?32:31-(Cy(A)/yy|0)|0}var ho=64,Bo=4194304;function Wi(A){switch(A&-A){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return A&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return A&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return A}}function Ha(A,e){var t=A.pendingLanes;if(t===0)return 0;var r=0,n=A.suspendedLanes,i=A.pingedLanes,s=t&268435455;if(s!==0){var o=s&~n;o!==0?r=Wi(o):(i&=s,i!==0&&(r=Wi(i)))}else s=t&~n,s!==0?r=Wi(s):i!==0&&(r=Wi(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&n)&&(n=r&-r,i=e&-e,n>=i||n===16&&(i&4194240)!==0))return e;if(r&4&&(r|=t&16),e=A.entangledLanes,e!==0)for(A=A.entanglements,e&=r;0t;t++)e.push(A);return e}function ks(A,e,t){A.pendingLanes|=e,e!==536870912&&(A.suspendedLanes=0,A.pingedLanes=0),A=A.eventTimes,e=31-gt(e),A[e]=t}function Ey(A,e){var t=A.pendingLanes&~e;A.pendingLanes=e,A.suspendedLanes=0,A.pingedLanes=0,A.expiredLanes&=e,A.mutableReadLanes&=e,A.entangledLanes&=e,e=A.entanglements;var r=A.eventTimes;for(A=A.expirationTimes;0=ns),qh=String.fromCharCode(32),$h=!1;function kw(A,e){switch(A){case"keyup":return AQ.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vw(A){return A=A.detail,typeof A=="object"&&"data"in A?A.data:null}var Ln=!1;function tQ(A,e){switch(A){case"compositionend":return Vw(e);case"keypress":return e.which!==32?null:($h=!0,qh);case"textInput":return A=e.data,A===qh&&$h?null:A;default:return null}}function rQ(A,e){if(Ln)return A==="compositionend"||!Fd&&kw(A,e)?(A=Pw(),sa=Cd=Br=null,Ln=!1,A):null;switch(A){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:t,offset:e-A};A=r}A:{for(;t;){if(t.nextSibling){t=t.nextSibling;break A}t=t.parentNode}t=void 0}t=rB(t)}}function zw(A,e){return A&&e?A===e?!0:A&&A.nodeType===3?!1:e&&e.nodeType===3?zw(A,e.parentNode):"contains"in A?A.contains(e):A.compareDocumentPosition?!!(A.compareDocumentPosition(e)&16):!1:!1}function Xw(){for(var A=window,e=Ua();e instanceof A.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)A=e.contentWindow;else break;e=Ua(A.document)}return e}function Ud(A){var e=A&&A.nodeName&&A.nodeName.toLowerCase();return e&&(e==="input"&&(A.type==="text"||A.type==="search"||A.type==="tel"||A.type==="url"||A.type==="password")||e==="textarea"||A.contentEditable==="true")}function fQ(A){var e=Xw(),t=A.focusedElem,r=A.selectionRange;if(e!==t&&t&&t.ownerDocument&&zw(t.ownerDocument.documentElement,t)){if(r!==null&&Ud(t)){if(e=r.start,A=r.end,A===void 0&&(A=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(A,t.value.length);else if(A=(e=t.ownerDocument||document)&&e.defaultView||window,A.getSelection){A=A.getSelection();var n=t.textContent.length,i=Math.min(r.start,n);r=r.end===void 0?i:Math.min(r.end,n),!A.extend&&i>r&&(n=r,r=i,i=n),n=nB(t,i);var s=nB(t,r);n&&s&&(A.rangeCount!==1||A.anchorNode!==n.node||A.anchorOffset!==n.offset||A.focusNode!==s.node||A.focusOffset!==s.offset)&&(e=e.createRange(),e.setStart(n.node,n.offset),A.removeAllRanges(),i>r?(A.addRange(e),A.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),A.addRange(e)))}}for(e=[],A=t;A=A.parentNode;)A.nodeType===1&&e.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,Dn=null,zc=null,ss=null,Xc=!1;function iB(A,e,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;Xc||Dn==null||Dn!==Ua(r)||(r=Dn,"selectionStart"in r&&Ud(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ss&&Es(ss,r)||(ss=r,r=Da(zc,"onSelect"),0On||(A.current=Af[On],Af[On]=null,On--)}function EA(A,e){On++,Af[On]=A.current,A.current=e}var Tr={},ye=br(Tr),Te=br(!1),on=Tr;function ei(A,e){var t=A.type.contextTypes;if(!t)return Tr;var r=A.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var n={},i;for(i in t)n[i]=e[i];return r&&(A=A.stateNode,A.__reactInternalMemoizedUnmaskedChildContext=e,A.__reactInternalMemoizedMaskedChildContext=n),n}function Re(A){return A=A.childContextTypes,A!=null}function Ra(){HA(Te),HA(ye)}function fB(A,e,t){if(ye.current!==Tr)throw Error(P(168));EA(ye,e),EA(Te,t)}function rm(A,e,t){var r=A.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var n in r)if(!(n in e))throw Error(P(108,oy(A)||"Unknown",n));return MA({},t,r)}function Oa(A){return A=(A=A.stateNode)&&A.__reactInternalMemoizedMergedChildContext||Tr,on=ye.current,EA(ye,A),EA(Te,Te.current),!0}function dB(A,e,t){var r=A.stateNode;if(!r)throw Error(P(169));t?(A=rm(A,e,on),r.__reactInternalMemoizedMergedChildContext=A,HA(Te),HA(ye),EA(ye,A)):HA(Te),EA(Te,t)}var Vt=null,El=!1,Tu=!1;function nm(A){Vt===null?Vt=[A]:Vt.push(A)}function FQ(A){El=!0,nm(A)}function Mr(){if(!Tu&&Vt!==null){Tu=!0;var A=0,e=mA;try{var t=Vt;for(mA=1;A>=s,n-=s,jt=1<<32-gt(e)+n|t<v?(E=U,U=null):E=U.sibling;var H=f(p,U,w[v],h);if(H===null){U===null&&(U=E);break}A&&U&&H.alternate===null&&e(p,U),d=i(H,d,v),y===null?C=H:y.sibling=H,y=H,U=E}if(v===w.length)return t(p,U),DA&&jr(p,v),C;if(U===null){for(;vv?(E=U,U=null):E=U.sibling;var b=f(p,U,H.value,h);if(b===null){U===null&&(U=E);break}A&&U&&b.alternate===null&&e(p,U),d=i(b,d,v),y===null?C=b:y.sibling=b,y=b,U=E}if(H.done)return t(p,U),DA&&jr(p,v),C;if(U===null){for(;!H.done;v++,H=w.next())H=c(p,H.value,h),H!==null&&(d=i(H,d,v),y===null?C=H:y.sibling=H,y=H);return DA&&jr(p,v),C}for(U=r(p,U);!H.done;v++,H=w.next())H=g(U,p,v,H.value,h),H!==null&&(A&&H.alternate!==null&&U.delete(H.key===null?v:H.key),d=i(H,d,v),y===null?C=H:y.sibling=H,y=H);return A&&U.forEach(function(T){return e(p,T)}),DA&&jr(p,v),C}function S(p,d,w,h){if(typeof w=="object"&&w!==null&&w.type===xn&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case uo:A:{for(var C=w.key,y=d;y!==null;){if(y.key===C){if(C=w.type,C===xn){if(y.tag===7){t(p,y.sibling),d=n(y,w.props.children),d.return=p,p=d;break A}}else if(y.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===lr&&vB(C)===y.type){t(p,y.sibling),d=n(y,w.props),d.ref=Ii(p,y,w),d.return=p,p=d;break A}t(p,y);break}else e(p,y);y=y.sibling}w.type===xn?(d=rn(w.props.children,p.mode,h,w.key),d.return=p,p=d):(h=ha(w.type,w.key,w.props,null,p.mode,h),h.ref=Ii(p,d,w),h.return=p,p=h)}return s(p);case Hn:A:{for(y=w.key;d!==null;){if(d.key===y)if(d.tag===4&&d.stateNode.containerInfo===w.containerInfo&&d.stateNode.implementation===w.implementation){t(p,d.sibling),d=n(d,w.children||[]),d.return=p,p=d;break A}else{t(p,d);break}else e(p,d);d=d.sibling}d=Nu(w,p.mode,h),d.return=p,p=d}return s(p);case lr:return y=w._init,S(p,d,y(w._payload),h)}if(ji(w))return B(p,d,w,h);if(Qi(w))return m(p,d,w,h);yo(p,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,d!==null&&d.tag===6?(t(p,d.sibling),d=n(d,w),d.return=p,p=d):(t(p,d),d=Pu(w,p.mode,h),d.return=p,p=d),s(p)):t(p,d)}return S}var ri=fm(!0),dm=fm(!1),js={},Lt=br(js),xs=br(js),Ls=br(js);function Zr(A){if(A===js)throw Error(P(174));return A}function Rd(A,e){switch(EA(Ls,e),EA(xs,A),EA(Lt,js),A=e.nodeType,A){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Mc(null,"");break;default:A=A===8?e.parentNode:e,e=A.namespaceURI||null,A=A.tagName,e=Mc(e,A)}HA(Lt),EA(Lt,e)}function ni(){HA(Lt),HA(xs),HA(Ls)}function hm(A){Zr(Ls.current);var e=Zr(Lt.current),t=Mc(e,A.type);e!==t&&(EA(xs,A),EA(Lt,t))}function Od(A){xs.current===A&&(HA(Lt),HA(xs))}var OA=br(0);function Na(A){for(var e=A;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===A)break;for(;e.sibling===null;){if(e.return===null||e.return===A)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Ru=[];function bd(){for(var A=0;At?t:4,A(!0);var r=Ou.transition;Ou.transition={};try{A(!1),e()}finally{mA=t,Ou.transition=r}}function xm(){return rt().memoizedState}function IQ(A,e,t){var r=Sr(A);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Lm(A))Dm(e,t);else if(t=am(A,e,t,r),t!==null){var n=Se();wt(t,A,r,n),Tm(t,e,r)}}function HQ(A,e,t){var r=Sr(A),n={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Lm(A))Dm(e,n);else{var i=A.alternate;if(A.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var s=e.lastRenderedState,o=i(s,t);if(n.hasEagerState=!0,n.eagerState=o,mt(o,s)){var a=e.interleaved;a===null?(n.next=n,Dd(e)):(n.next=a.next,a.next=n),e.interleaved=n;return}}catch{}finally{}t=am(A,e,n,r),t!==null&&(n=Se(),wt(t,A,r,n),Tm(t,e,r))}}function Lm(A){var e=A.alternate;return A===bA||e!==null&&e===bA}function Dm(A,e){os=ka=!0;var t=A.pending;t===null?e.next=e:(e.next=t.next,t.next=e),A.pending=e}function Tm(A,e,t){if(t&4194240){var r=e.lanes;r&=A.pendingLanes,t|=r,e.lanes=t,wd(A,t)}}var Va={readContext:tt,useCallback:pe,useContext:pe,useEffect:pe,useImperativeHandle:pe,useInsertionEffect:pe,useLayoutEffect:pe,useMemo:pe,useReducer:pe,useRef:pe,useState:pe,useDebugValue:pe,useDeferredValue:pe,useTransition:pe,useMutableSource:pe,useSyncExternalStore:pe,useId:pe,unstable_isNewReconciler:!1},xQ={readContext:tt,useCallback:function(A,e){return Qt().memoizedState=[A,e===void 0?null:e],A},useContext:tt,useEffect:yB,useImperativeHandle:function(A,e,t){return t=t!=null?t.concat([A]):null,ua(4194308,4,Um.bind(null,e,A),t)},useLayoutEffect:function(A,e){return ua(4194308,4,A,e)},useInsertionEffect:function(A,e){return ua(4,2,A,e)},useMemo:function(A,e){var t=Qt();return e=e===void 0?null:e,A=A(),t.memoizedState=[A,e],A},useReducer:function(A,e,t){var r=Qt();return e=t!==void 0?t(e):e,r.memoizedState=r.baseState=e,A={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:A,lastRenderedState:e},r.queue=A,A=A.dispatch=IQ.bind(null,bA,A),[r.memoizedState,A]},useRef:function(A){var e=Qt();return A={current:A},e.memoizedState=A},useState:CB,useDebugValue:Nd,useDeferredValue:function(A){return Qt().memoizedState=A},useTransition:function(){var A=CB(!1),e=A[0];return A=SQ.bind(null,A[1]),Qt().memoizedState=A,[e,A]},useMutableSource:function(){},useSyncExternalStore:function(A,e,t){var r=bA,n=Qt();if(DA){if(t===void 0)throw Error(P(407));t=t()}else{if(t=e(),se===null)throw Error(P(349));ln&30||gm(r,e,t)}n.memoizedState=t;var i={value:t,getSnapshot:e};return n.queue=i,yB(mm.bind(null,r,i,A),[A]),r.flags|=2048,Rs(9,wm.bind(null,r,i,t,e),void 0,null),t},useId:function(){var A=Qt(),e=se.identifierPrefix;if(DA){var t=Wt,r=jt;t=(r&~(1<<32-gt(r)-1)).toString(32)+t,e=":"+e+"R"+t,t=Ds++,0<\/script>",A=A.removeChild(A.firstChild)):typeof r.is=="string"?A=s.createElement(t,{is:r.is}):(A=s.createElement(t),t==="select"&&(s=A,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):A=s.createElementNS(A,t),A[Ut]=e,A[Hs]=r,km(A,e,!1,!1),e.stateNode=A;A:{switch(s=_c(t,r),t){case"dialog":IA("cancel",A),IA("close",A),n=r;break;case"iframe":case"object":case"embed":IA("load",A),n=r;break;case"video":case"audio":for(n=0;nsi&&(e.flags|=128,r=!0,Hi(i,!1),e.lanes=4194304)}else{if(!r)if(A=Na(s),A!==null){if(e.flags|=128,r=!0,t=A.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),Hi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!DA)return ge(e),null}else 2*WA()-i.renderingStartTime>si&&t!==1073741824&&(e.flags|=128,r=!0,Hi(i,!1),e.lanes=4194304);i.isBackwards?(s.sibling=e.child,e.child=s):(t=i.last,t!==null?t.sibling=s:e.child=s,i.last=s)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=WA(),e.sibling=null,t=OA.current,EA(OA,r?t&1|2:t&1),e):(ge(e),null);case 22:case 23:return zd(),r=e.memoizedState!==null,A!==null&&A.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Ke&1073741824&&(ge(e),e.subtreeFlags&6&&(e.flags|=8192)):ge(e),null;case 24:return null;case 25:return null}throw Error(P(156,e.tag))}function KQ(A,e){switch(Sd(e),e.tag){case 1:return Re(e.type)&&Ra(),A=e.flags,A&65536?(e.flags=A&-65537|128,e):null;case 3:return ni(),HA(Te),HA(ye),bd(),A=e.flags,A&65536&&!(A&128)?(e.flags=A&-65537|128,e):null;case 5:return Od(e),null;case 13:if(HA(OA),A=e.memoizedState,A!==null&&A.dehydrated!==null){if(e.alternate===null)throw Error(P(340));ti()}return A=e.flags,A&65536?(e.flags=A&-65537|128,e):null;case 19:return HA(OA),null;case 4:return ni(),null;case 10:return Ld(e.type._context),null;case 22:case 23:return zd(),null;case 24:return null;default:return null}}var Fo=!1,Ce=!1,_Q=typeof WeakSet=="function"?WeakSet:Set,J=null;function _n(A,e){var t=A.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){KA(A,e,r)}else t.current=null}function df(A,e,t){try{t()}catch(r){KA(A,e,r)}}var LB=!1;function PQ(A,e){if(Jc=xa,A=Xw(),Ud(A)){if("selectionStart"in A)var t={start:A.selectionStart,end:A.selectionEnd};else A:{t=(t=A.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var n=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break A}var s=0,o=-1,a=-1,l=0,u=0,c=A,f=null;e:for(;;){for(var g;c!==t||n!==0&&c.nodeType!==3||(o=s+n),c!==i||r!==0&&c.nodeType!==3||(a=s+r),c.nodeType===3&&(s+=c.nodeValue.length),(g=c.firstChild)!==null;)f=c,c=g;for(;;){if(c===A)break e;if(f===t&&++l===n&&(o=s),f===i&&++u===r&&(a=s),(g=c.nextSibling)!==null)break;c=f,f=c.parentNode}c=g}t=o===-1||a===-1?null:{start:o,end:a}}else t=null}t=t||{start:0,end:0}}else t=null;for(Yc={focusedElem:A,selectionRange:t},xa=!1,J=e;J!==null;)if(e=J,A=e.child,(e.subtreeFlags&1028)!==0&&A!==null)A.return=e,J=A;else for(;J!==null;){e=J;try{var B=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(B!==null){var m=B.memoizedProps,S=B.memoizedState,p=e.stateNode,d=p.getSnapshotBeforeUpdate(e.elementType===e.type?m:ct(e.type,m),S);p.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var w=e.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(h){KA(e,e.return,h)}if(A=e.sibling,A!==null){A.return=e.return,J=A;break}J=e.return}return B=LB,LB=!1,B}function as(A,e,t){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do{if((n.tag&A)===A){var i=n.destroy;n.destroy=void 0,i!==void 0&&df(e,t,i)}n=n.next}while(n!==r)}}function Hl(A,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&A)===A){var r=t.create;t.destroy=r()}t=t.next}while(t!==e)}}function hf(A){var e=A.ref;if(e!==null){var t=A.stateNode;switch(A.tag){case 5:A=t;break;default:A=t}typeof e=="function"?e(A):e.current=A}}function jm(A){var e=A.alternate;e!==null&&(A.alternate=null,jm(e)),A.child=null,A.deletions=null,A.sibling=null,A.tag===5&&(e=A.stateNode,e!==null&&(delete e[Ut],delete e[Hs],delete e[$c],delete e[yQ],delete e[QQ])),A.stateNode=null,A.return=null,A.dependencies=null,A.memoizedProps=null,A.memoizedState=null,A.pendingProps=null,A.stateNode=null,A.updateQueue=null}function Wm(A){return A.tag===5||A.tag===3||A.tag===4}function DB(A){A:for(;;){for(;A.sibling===null;){if(A.return===null||Wm(A.return))return null;A=A.return}for(A.sibling.return=A.return,A=A.sibling;A.tag!==5&&A.tag!==6&&A.tag!==18;){if(A.flags&2||A.child===null||A.tag===4)continue A;A.child.return=A,A=A.child}if(!(A.flags&2))return A.stateNode}}function Bf(A,e,t){var r=A.tag;if(r===5||r===6)A=A.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(A,e):t.insertBefore(A,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(A,t)):(e=t,e.appendChild(A)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=Ta));else if(r!==4&&(A=A.child,A!==null))for(Bf(A,e,t),A=A.sibling;A!==null;)Bf(A,e,t),A=A.sibling}function pf(A,e,t){var r=A.tag;if(r===5||r===6)A=A.stateNode,e?t.insertBefore(A,e):t.appendChild(A);else if(r!==4&&(A=A.child,A!==null))for(pf(A,e,t),A=A.sibling;A!==null;)pf(A,e,t),A=A.sibling}var le=null,dt=!1;function nr(A,e,t){for(t=t.child;t!==null;)zm(A,e,t),t=t.sibling}function zm(A,e,t){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(Cl,t)}catch{}switch(t.tag){case 5:Ce||_n(t,e);case 6:var r=le,n=dt;le=null,nr(A,e,t),le=r,dt=n,le!==null&&(dt?(A=le,t=t.stateNode,A.nodeType===8?A.parentNode.removeChild(t):A.removeChild(t)):le.removeChild(t.stateNode));break;case 18:le!==null&&(dt?(A=le,t=t.stateNode,A.nodeType===8?Du(A.parentNode,t):A.nodeType===1&&Du(A,t),Fs(A)):Du(le,t.stateNode));break;case 4:r=le,n=dt,le=t.stateNode.containerInfo,dt=!0,nr(A,e,t),le=r,dt=n;break;case 0:case 11:case 14:case 15:if(!Ce&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){n=r=r.next;do{var i=n,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&df(t,e,s),n=n.next}while(n!==r)}nr(A,e,t);break;case 1:if(!Ce&&(_n(t,e),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(o){KA(t,e,o)}nr(A,e,t);break;case 21:nr(A,e,t);break;case 22:t.mode&1?(Ce=(r=Ce)||t.memoizedState!==null,nr(A,e,t),Ce=r):nr(A,e,t);break;default:nr(A,e,t)}}function TB(A){var e=A.updateQueue;if(e!==null){A.updateQueue=null;var t=A.stateNode;t===null&&(t=A.stateNode=new _Q),e.forEach(function(r){var n=JQ.bind(null,A,r);t.has(r)||(t.add(r),r.then(n,n))})}}function st(A,e){var t=e.deletions;if(t!==null)for(var r=0;rn&&(n=s),r&=~i}if(r=n,r=WA()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kQ(r/1960))-r,10A?16:A,pr===null)var r=!1;else{if(A=pr,pr=null,Wa=0,BA&6)throw Error(P(331));var n=BA;for(BA|=4,J=A.current;J!==null;){var i=J,s=i.child;if(J.flags&16){var o=i.deletions;if(o!==null){for(var a=0;aWA()-jd?tn(A,0):Gd|=t),Oe(A,e)}function ev(A,e){e===0&&(A.mode&1?(e=Bo,Bo<<=1,!(Bo&130023424)&&(Bo=4194304)):e=1);var t=Se();A=qt(A,e),A!==null&&(ks(A,e,t),Oe(A,t))}function XQ(A){var e=A.memoizedState,t=0;e!==null&&(t=e.retryLane),ev(A,t)}function JQ(A,e){var t=0;switch(A.tag){case 13:var r=A.stateNode,n=A.memoizedState;n!==null&&(t=n.retryLane);break;case 19:r=A.stateNode;break;default:throw Error(P(314))}r!==null&&r.delete(e),ev(A,t)}var tv;tv=function(A,e,t){if(A!==null)if(A.memoizedProps!==e.pendingProps||Te.current)De=!0;else{if(!(A.lanes&t)&&!(e.flags&128))return De=!1,bQ(A,e,t);De=!!(A.flags&131072)}else De=!1,DA&&e.flags&1048576&&im(e,Ma,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;ca(A,e),A=e.pendingProps;var n=ei(e,ye.current);Jn(e,t),n=Kd(null,e,r,A,n,t);var i=_d();return e.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Re(r)?(i=!0,Oa(e)):i=!1,e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,Td(e),n.updater=Sl,e.stateNode=n,n._reactInternals=e,sf(e,r,A,t),e=lf(null,e,r,!0,i,t)):(e.tag=0,DA&&i&&Ed(e),Ue(null,e,n,t),e=e.child),e;case 16:r=e.elementType;A:{switch(ca(A,e),A=e.pendingProps,n=r._init,r=n(r._payload),e.type=r,n=e.tag=ZQ(r),A=ct(r,A),n){case 0:e=af(null,e,r,A,t);break A;case 1:e=IB(null,e,r,A,t);break A;case 11:e=EB(null,e,r,A,t);break A;case 14:e=SB(null,e,r,ct(r.type,A),t);break A}throw Error(P(306,r,""))}return e;case 0:return r=e.type,n=e.pendingProps,n=e.elementType===r?n:ct(r,n),af(A,e,r,n,t);case 1:return r=e.type,n=e.pendingProps,n=e.elementType===r?n:ct(r,n),IB(A,e,r,n,t);case 3:A:{if(_m(e),A===null)throw Error(P(387));r=e.pendingProps,i=e.memoizedState,n=i.element,lm(A,e),Pa(e,r,null,t);var s=e.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){n=ii(Error(P(423)),e),e=HB(A,e,r,t,n);break A}else if(r!==n){n=ii(Error(P(424)),e),e=HB(A,e,r,t,n);break A}else for(Pe=Fr(e.stateNode.containerInfo.firstChild),Ne=e,DA=!0,Bt=null,t=dm(e,null,r,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(ti(),r===n){e=$t(A,e,t);break A}Ue(A,e,r,t)}e=e.child}return e;case 5:return hm(e),A===null&&tf(e),r=e.type,n=e.pendingProps,i=A!==null?A.memoizedProps:null,s=n.children,Zc(r,n)?s=null:i!==null&&Zc(r,i)&&(e.flags|=32),Km(A,e),Ue(A,e,s,t),e.child;case 6:return A===null&&tf(e),null;case 13:return Pm(A,e,t);case 4:return Rd(e,e.stateNode.containerInfo),r=e.pendingProps,A===null?e.child=ri(e,null,r,t):Ue(A,e,r,t),e.child;case 11:return r=e.type,n=e.pendingProps,n=e.elementType===r?n:ct(r,n),EB(A,e,r,n,t);case 7:return Ue(A,e,e.pendingProps,t),e.child;case 8:return Ue(A,e,e.pendingProps.children,t),e.child;case 12:return Ue(A,e,e.pendingProps.children,t),e.child;case 10:A:{if(r=e.type._context,n=e.pendingProps,i=e.memoizedProps,s=n.value,EA(Ka,r._currentValue),r._currentValue=s,i!==null)if(mt(i.value,s)){if(i.children===n.children&&!Te.current){e=$t(A,e,t);break A}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){s=i.child;for(var a=o.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=zt(-1,t&-t),a.tag=2;var l=i.updateQueue;if(l!==null){l=l.shared;var u=l.pending;u===null?a.next=a:(a.next=u.next,u.next=a),l.pending=a}}i.lanes|=t,a=i.alternate,a!==null&&(a.lanes|=t),rf(i.return,t,e),o.lanes|=t;break}a=a.next}}else if(i.tag===10)s=i.type===e.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(P(341));s.lanes|=t,o=s.alternate,o!==null&&(o.lanes|=t),rf(s,t,e),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Ue(A,e,n.children,t),e=e.child}return e;case 9:return n=e.type,r=e.pendingProps.children,Jn(e,t),n=tt(n),r=r(n),e.flags|=1,Ue(A,e,r,t),e.child;case 14:return r=e.type,n=ct(r,e.pendingProps),n=ct(r.type,n),SB(A,e,r,n,t);case 15:return bm(A,e,e.type,e.pendingProps,t);case 17:return r=e.type,n=e.pendingProps,n=e.elementType===r?n:ct(r,n),ca(A,e),e.tag=1,Re(r)?(A=!0,Oa(e)):A=!1,Jn(e,t),cm(e,r,n),sf(e,r,n,t),lf(null,e,r,!0,A,t);case 19:return Nm(A,e,t);case 22:return Mm(A,e,t)}throw Error(P(156,e.tag))};function rv(A,e){return Hw(A,e)}function YQ(A,e,t,r){this.tag=A,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ze(A,e,t,r){return new YQ(A,e,t,r)}function Jd(A){return A=A.prototype,!(!A||!A.isReactComponent)}function ZQ(A){if(typeof A=="function")return Jd(A)?1:0;if(A!=null){if(A=A.$$typeof,A===hd)return 11;if(A===Bd)return 14}return 2}function Ir(A,e){var t=A.alternate;return t===null?(t=Ze(A.tag,e,A.key,A.mode),t.elementType=A.elementType,t.type=A.type,t.stateNode=A.stateNode,t.alternate=A,A.alternate=t):(t.pendingProps=e,t.type=A.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=A.flags&14680064,t.childLanes=A.childLanes,t.lanes=A.lanes,t.child=A.child,t.memoizedProps=A.memoizedProps,t.memoizedState=A.memoizedState,t.updateQueue=A.updateQueue,e=A.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=A.sibling,t.index=A.index,t.ref=A.ref,t}function ha(A,e,t,r,n,i){var s=2;if(r=A,typeof A=="function")Jd(A)&&(s=1);else if(typeof A=="string")s=5;else A:switch(A){case xn:return rn(t.children,n,i,e);case dd:s=8,n|=8;break;case Hc:return A=Ze(12,t,e,n|2),A.elementType=Hc,A.lanes=i,A;case xc:return A=Ze(13,t,e,n),A.elementType=xc,A.lanes=i,A;case Lc:return A=Ze(19,t,e,n),A.elementType=Lc,A.lanes=i,A;case fw:return Ll(t,n,i,e);default:if(typeof A=="object"&&A!==null)switch(A.$$typeof){case uw:s=10;break A;case cw:s=9;break A;case hd:s=11;break A;case Bd:s=14;break A;case lr:s=16,r=null;break A}throw Error(P(130,A==null?A:typeof A,""))}return e=Ze(s,t,e,n),e.elementType=A,e.type=r,e.lanes=i,e}function rn(A,e,t,r){return A=Ze(7,A,r,e),A.lanes=t,A}function Ll(A,e,t,r){return A=Ze(22,A,r,e),A.elementType=fw,A.lanes=t,A.stateNode={isHidden:!1},A}function Pu(A,e,t){return A=Ze(6,A,null,e),A.lanes=t,A}function Nu(A,e,t){return e=Ze(4,A.children!==null?A.children:[],A.key,e),e.lanes=t,e.stateNode={containerInfo:A.containerInfo,pendingChildren:null,implementation:A.implementation},e}function qQ(A,e,t,r,n){this.tag=e,this.containerInfo=A,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cu(0),this.expirationTimes=Cu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cu(0),this.identifierPrefix=r,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function Yd(A,e,t,r,n,i,s,o,a){return A=new qQ(A,e,t,o,a),e===1?(e=1,i===!0&&(e|=8)):e=0,i=Ze(3,null,null,e),A.current=i,i.stateNode=A,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},Td(i),A}function $Q(A,e,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ov)}catch(A){console.error(A)}}ov(),iw.exports=Ve;var nF=iw.exports,NB=nF;Sc.createRoot=NB.createRoot,Sc.hydrateRoot=NB.hydrateRoot;class Ws{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Ah=typeof window>"u"||"Deno"in window;function ft(){}function iF(A,e){return typeof A=="function"?A(e):A}function sF(A){return typeof A=="number"&&A>=0&&A!==1/0}function oF(A,e){return Math.max(A+(e||0)-Date.now(),0)}function So(A,e,t){return zs(A)?typeof e=="function"?{...t,queryKey:A,queryFn:e}:{...e,queryKey:A}:A}function aF(A,e,t){return zs(A)?typeof e=="function"?{...t,mutationKey:A,mutationFn:e}:{...e,mutationKey:A}:typeof A=="function"?{...e,mutationFn:A}:{...A}}function cr(A,e,t){return zs(A)?[{...e,queryKey:A},t]:[A||{},e]}function kB(A,e){const{type:t="all",exact:r,fetchStatus:n,predicate:i,queryKey:s,stale:o}=A;if(zs(s)){if(r){if(e.queryHash!==eh(s,e.options))return!1}else if(!Ja(e.queryKey,s))return!1}if(t!=="all"){const a=e.isActive();if(t==="active"&&!a||t==="inactive"&&a)return!1}return!(typeof o=="boolean"&&e.isStale()!==o||typeof n<"u"&&n!==e.state.fetchStatus||i&&!i(e))}function VB(A,e){const{exact:t,fetching:r,predicate:n,mutationKey:i}=A;if(zs(i)){if(!e.options.mutationKey)return!1;if(t){if(qr(e.options.mutationKey)!==qr(i))return!1}else if(!Ja(e.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&e.state.status==="loading"!==r||n&&!n(e))}function eh(A,e){return((e==null?void 0:e.queryKeyHashFn)||qr)(A)}function qr(A){return JSON.stringify(A,(e,t)=>Cf(t)?Object.keys(t).sort().reduce((r,n)=>(r[n]=t[n],r),{}):t)}function Ja(A,e){return av(A,e)}function av(A,e){return A===e?!0:typeof A!=typeof e?!1:A&&e&&typeof A=="object"&&typeof e=="object"?!Object.keys(e).some(t=>!av(A[t],e[t])):!1}function lv(A,e){if(A===e)return A;const t=GB(A)&&GB(e);if(t||Cf(A)&&Cf(e)){const r=t?A.length:Object.keys(A).length,n=t?e:Object.keys(e),i=n.length,s=t?[]:{};let o=0;for(let a=0;a"u")return!0;const t=e.prototype;return!(!jB(t)||!t.hasOwnProperty("isPrototypeOf"))}function jB(A){return Object.prototype.toString.call(A)==="[object Object]"}function zs(A){return Array.isArray(A)}function uv(A){return new Promise(e=>{setTimeout(e,A)})}function WB(A){uv(0).then(A)}function uF(){if(typeof AbortController=="function")return new AbortController}function cF(A,e,t){return t.isDataEqual!=null&&t.isDataEqual(A,e)?A:typeof t.structuralSharing=="function"?t.structuralSharing(A,e):t.structuralSharing!==!1?lv(A,e):e}class fF extends Ws{constructor(){super(),this.setup=e=>{if(!Ah&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const yf=new fF,zB=["online","offline"];class dF extends Ws{constructor(){super(),this.setup=e=>{if(!Ah&&window.addEventListener){const t=()=>e();return zB.forEach(r=>{window.addEventListener(r,t,!1)}),()=>{zB.forEach(r=>{window.removeEventListener(r,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,(t=this.cleanup)==null||t.call(this),this.cleanup=e(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Ya=new dF;function hF(A){return Math.min(1e3*2**A,3e4)}function th(A){return(A??"online")==="online"?Ya.isOnline():!0}class cv{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}}function ku(A){return A instanceof cv}function fv(A){let e=!1,t=0,r=!1,n,i,s;const o=new Promise((S,p)=>{i=S,s=p}),a=S=>{r||(g(new cv(S)),A.abort==null||A.abort())},l=()=>{e=!0},u=()=>{e=!1},c=()=>!yf.isFocused()||A.networkMode!=="always"&&!Ya.isOnline(),f=S=>{r||(r=!0,A.onSuccess==null||A.onSuccess(S),n==null||n(),i(S))},g=S=>{r||(r=!0,A.onError==null||A.onError(S),n==null||n(),s(S))},B=()=>new Promise(S=>{n=p=>{const d=r||!c();return d&&S(p),d},A.onPause==null||A.onPause()}).then(()=>{n=void 0,r||A.onContinue==null||A.onContinue()}),m=()=>{if(r)return;let S;try{S=A.fn()}catch(p){S=Promise.reject(p)}Promise.resolve(S).then(f).catch(p=>{var d,w;if(r)return;const h=(d=A.retry)!=null?d:3,C=(w=A.retryDelay)!=null?w:hF,y=typeof C=="function"?C(t,p):C,U=h===!0||typeof h=="number"&&t{if(c())return B()}).then(()=>{e?g(p):m()})})};return th(A.networkMode)?m():B().then(m),{promise:o,cancel:a,continue:()=>(n==null?void 0:n())?o:Promise.resolve(),cancelRetry:l,continueRetry:u}}const rh=console;function BF(){let A=[],e=0,t=u=>{u()},r=u=>{u()};const n=u=>{let c;e++;try{c=u()}finally{e--,e||o()}return c},i=u=>{e?A.push(u):WB(()=>{t(u)})},s=u=>(...c)=>{i(()=>{u(...c)})},o=()=>{const u=A;A=[],u.length&&WB(()=>{r(()=>{u.forEach(c=>{t(c)})})})};return{batch:n,batchCalls:s,schedule:i,setNotifyFunction:u=>{t=u},setBatchNotifyFunction:u=>{r=u}}}const ce=BF();class dv{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),sF(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,e??(Ah?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class pF extends dv{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||rh,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||gF(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(e,t){const r=cF(this.state.data,e,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),r}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const r=this.promise;return(t=this.retryer)==null||t.cancel(e),r?r.then(ft).catch(ft):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!oF(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}onOnline(){var e;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var r,n;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&t!=null&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(e&&this.setOptions(e),!this.options.queryFn){const g=this.observers.find(B=>B.options.queryFn);g&&this.setOptions(g.options)}Array.isArray(this.options.queryKey);const s=uF(),o={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},a=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>{if(s)return this.abortSignalConsumed=!0,s.signal}})};a(o);const l=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(o)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),u={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:l};if(a(u),(r=this.options.behavior)==null||r.onFetch(u),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((n=u.fetchOptions)==null?void 0:n.meta)){var c;this.dispatch({type:"fetch",meta:(c=u.fetchOptions)==null?void 0:c.meta})}const f=g=>{if(ku(g)&&g.silent||this.dispatch({type:"error",error:g}),!ku(g)){var B,m,S,p;(B=(m=this.cache.config).onError)==null||B.call(m,g,this),(S=(p=this.cache.config).onSettled)==null||S.call(p,this.state.data,g,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=fv({fn:u.fetchFn,abort:s==null?void 0:s.abort.bind(s),onSuccess:g=>{var B,m,S,p;if(typeof g>"u"){f(new Error(this.queryHash+" data is undefined"));return}this.setData(g),(B=(m=this.cache.config).onSuccess)==null||B.call(m,g,this),(S=(p=this.cache.config).onSettled)==null||S.call(p,g,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:f,onFail:(g,B)=>{this.dispatch({type:"failed",failureCount:g,error:B})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){const t=r=>{var n,i;switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(n=e.meta)!=null?n:null,fetchStatus:th(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=e.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=e.error;return ku(s)&&s.revert&&this.revertState?{...this.revertState}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),ce.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}function gF(A){const e=typeof A.initialData=="function"?A.initialData():A.initialData,t=typeof e<"u",r=t?typeof A.initialDataUpdatedAt=="function"?A.initialDataUpdatedAt():A.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"loading",fetchStatus:"idle"}}class wF extends Ws{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,r){var n;const i=t.queryKey,s=(n=t.queryHash)!=null?n:eh(i,t);let o=this.get(s);return o||(o=new pF({cache:this,logger:e.getLogger(),queryKey:i,queryHash:s,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(o)),o}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(r=>r!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){ce.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[r]=cr(e,t);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(n=>kB(r,n))}findAll(e,t){const[r]=cr(e,t);return Object.keys(r).length>0?this.queries.filter(n=>kB(r,n)):this.queries}notify(e){ce.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){ce.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){ce.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class mF extends dv{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||rh,this.observers=[],this.state=e.state||hv(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return(e=(t=this.retryer)==null?void 0:t.continue())!=null?e:this.execute()}async execute(){const e=()=>{var U;return this.retryer=fv({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(v,E)=>{this.dispatch({type:"failed",failureCount:v,error:E})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(U=this.options.retry)!=null?U:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t=this.state.status==="loading";try{var r,n,i,s,o,a,l,u;if(!t){var c,f,g,B;this.dispatch({type:"loading",variables:this.options.variables}),await((c=(f=this.mutationCache.config).onMutate)==null?void 0:c.call(f,this.state.variables,this));const v=await((g=(B=this.options).onMutate)==null?void 0:g.call(B,this.state.variables));v!==this.state.context&&this.dispatch({type:"loading",context:v,variables:this.state.variables})}const U=await e();return await((r=(n=this.mutationCache.config).onSuccess)==null?void 0:r.call(n,U,this.state.variables,this.state.context,this)),await((i=(s=this.options).onSuccess)==null?void 0:i.call(s,U,this.state.variables,this.state.context)),await((o=(a=this.mutationCache.config).onSettled)==null?void 0:o.call(a,U,null,this.state.variables,this.state.context,this)),await((l=(u=this.options).onSettled)==null?void 0:l.call(u,U,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:U}),U}catch(U){try{var m,S,p,d,w,h,C,y;throw await((m=(S=this.mutationCache.config).onError)==null?void 0:m.call(S,U,this.state.variables,this.state.context,this)),await((p=(d=this.options).onError)==null?void 0:p.call(d,U,this.state.variables,this.state.context)),await((w=(h=this.mutationCache.config).onSettled)==null?void 0:w.call(h,void 0,U,this.state.variables,this.state.context,this)),await((C=(y=this.options).onSettled)==null?void 0:C.call(y,void 0,U,this.state.variables,this.state.context)),U}finally{this.dispatch({type:"error",error:U})}}}dispatch(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!th(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...r,...e.state}}};this.state=t(this.state),ce.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function hv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class vF extends Ws{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,r){const n=new mF({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:r,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(n),n}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){ce.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return typeof e.exact>"u"&&(e.exact=!0),this.mutations.find(t=>VB(e,t))}findAll(e){return this.mutations.filter(t=>VB(e,t))}notify(e){ce.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=((e=this.resuming)!=null?e:Promise.resolve()).then(()=>{const t=this.mutations.filter(r=>r.state.isPaused);return ce.batch(()=>t.reduce((r,n)=>r.then(()=>n.continue().catch(ft)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function CF(){return{onFetch:A=>{A.fetchFn=()=>{var e,t,r,n,i,s;const o=(e=A.fetchOptions)==null||(t=e.meta)==null?void 0:t.refetchPage,a=(r=A.fetchOptions)==null||(n=r.meta)==null?void 0:n.fetchMore,l=a==null?void 0:a.pageParam,u=(a==null?void 0:a.direction)==="forward",c=(a==null?void 0:a.direction)==="backward",f=((i=A.state.data)==null?void 0:i.pages)||[],g=((s=A.state.data)==null?void 0:s.pageParams)||[];let B=g,m=!1;const S=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>{var U;if((U=A.signal)!=null&&U.aborted)m=!0;else{var v;(v=A.signal)==null||v.addEventListener("abort",()=>{m=!0})}return A.signal}})},p=A.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+A.options.queryHash+"'")),d=(y,U,v,E)=>(B=E?[U,...B]:[...B,U],E?[v,...y]:[...y,v]),w=(y,U,v,E)=>{if(m)return Promise.reject("Cancelled");if(typeof v>"u"&&!U&&y.length)return Promise.resolve(y);const H={queryKey:A.queryKey,pageParam:v,meta:A.options.meta};S(H);const b=p(H);return Promise.resolve(b).then(x=>d(y,v,x,E))};let h;if(!f.length)h=w([]);else if(u){const y=typeof l<"u",U=y?l:XB(A.options,f);h=w(f,y,U)}else if(c){const y=typeof l<"u",U=y?l:yF(A.options,f);h=w(f,y,U,!0)}else{B=[];const y=typeof A.options.getNextPageParam>"u";h=(o&&f[0]?o(f[0],0,f):!0)?w([],y,g[0]):Promise.resolve(d([],g[0],f[0]));for(let v=1;v{if(o&&f[v]?o(f[v],v,f):!0){const b=y?g[v]:XB(A.options,E);return w(E,y,b)}return Promise.resolve(d(E,g[v],f[v]))})}return h.then(y=>({pages:y,pageParams:B}))}}}}function XB(A,e){return A.getNextPageParam==null?void 0:A.getNextPageParam(e[e.length-1],e)}function yF(A,e){return A.getPreviousPageParam==null?void 0:A.getPreviousPageParam(e[0],e)}class QF{constructor(e={}){this.queryCache=e.queryCache||new wF,this.mutationCache=e.mutationCache||new vF,this.logger=e.logger||rh,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=yf.subscribe(()=>{yf.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Ya.subscribe(()=>{Ya.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,this.mountCount===0&&((e=this.unsubscribeFocus)==null||e.call(this),this.unsubscribeFocus=void 0,(t=this.unsubscribeOnline)==null||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[r]=cr(e,t);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var r;return(r=this.queryCache.find(e,t))==null?void 0:r.state.data}ensureQueryData(e,t,r){const n=So(e,t,r),i=this.getQueryData(n.queryKey);return i?Promise.resolve(i):this.fetchQuery(n)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.queryCache.find(e),i=n==null?void 0:n.state.data,s=iF(t,i);if(typeof s>"u")return;const o=So(e),a=this.defaultQueryOptions(o);return this.queryCache.build(this,a).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return ce.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e,t){var r;return(r=this.queryCache.find(e,t))==null?void 0:r.state}removeQueries(e,t){const[r]=cr(e,t),n=this.queryCache;ce.batch(()=>{n.findAll(r).forEach(i=>{n.remove(i)})})}resetQueries(e,t,r){const[n,i]=cr(e,t,r),s=this.queryCache,o={type:"active",...n};return ce.batch(()=>(s.findAll(n).forEach(a=>{a.reset()}),this.refetchQueries(o,i)))}cancelQueries(e,t,r){const[n,i={}]=cr(e,t,r);typeof i.revert>"u"&&(i.revert=!0);const s=ce.batch(()=>this.queryCache.findAll(n).map(o=>o.cancel(i)));return Promise.all(s).then(ft).catch(ft)}invalidateQueries(e,t,r){const[n,i]=cr(e,t,r);return ce.batch(()=>{var s,o;if(this.queryCache.findAll(n).forEach(l=>{l.invalidate()}),n.refetchType==="none")return Promise.resolve();const a={...n,type:(s=(o=n.refetchType)!=null?o:n.type)!=null?s:"active"};return this.refetchQueries(a,i)})}refetchQueries(e,t,r){const[n,i]=cr(e,t,r),s=ce.batch(()=>this.queryCache.findAll(n).filter(a=>!a.isDisabled()).map(a=>{var l;return a.fetch(void 0,{...i,cancelRefetch:(l=i==null?void 0:i.cancelRefetch)!=null?l:!0,meta:{refetchPage:n.refetchPage}})}));let o=Promise.all(s).then(ft);return i!=null&&i.throwOnError||(o=o.catch(ft)),o}fetchQuery(e,t,r){const n=So(e,t,r),i=this.defaultQueryOptions(n);typeof i.retry>"u"&&(i.retry=!1);const s=this.queryCache.build(this,i);return s.isStaleByTime(i.staleTime)?s.fetch(i):Promise.resolve(s.state.data)}prefetchQuery(e,t,r){return this.fetchQuery(e,t,r).then(ft).catch(ft)}fetchInfiniteQuery(e,t,r){const n=So(e,t,r);return n.behavior=CF(),this.fetchQuery(n)}prefetchInfiniteQuery(e,t,r){return this.fetchInfiniteQuery(e,t,r).then(ft).catch(ft)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const r=this.queryDefaults.find(n=>qr(e)===qr(n.queryKey));r?r.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(r=>Ja(e,r.queryKey));return t==null?void 0:t.defaultOptions}setMutationDefaults(e,t){const r=this.mutationDefaults.find(n=>qr(e)===qr(n.mutationKey));r?r.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(r=>Ja(e,r.mutationKey));return t==null?void 0:t.defaultOptions}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(e==null?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=eh(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.useErrorBoundary>"u"&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(e==null?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}let FF=class extends Ws{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const r=this.options;this.options=this.client.defaultMutationOptions(e),lF(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(t=this.currentMutation)==null||t.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.currentMutation)==null||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();const t={listeners:!0};e.type==="success"?t.onSuccess=!0:e.type==="error"&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof e<"u"?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:hv(),t={...e,isLoading:e.status==="loading",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){ce.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(e.onSuccess){var t,r,n,i;(t=(r=this.mutateOptions).onSuccess)==null||t.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(n=(i=this.mutateOptions).onSettled)==null||n.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(e.onError){var s,o,a,l;(s=(o=this.mutateOptions).onError)==null||s.call(o,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(a=(l=this.mutateOptions).onSettled)==null||a.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}e.listeners&&this.listeners.forEach(({listener:u})=>{u(this.currentResult)})})}};var Bv={exports:{}},pv={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var oi=K;function UF(A,e){return A===e&&(A!==0||1/A===1/e)||A!==A&&e!==e}var EF=typeof Object.is=="function"?Object.is:UF,SF=oi.useState,IF=oi.useEffect,HF=oi.useLayoutEffect,xF=oi.useDebugValue;function LF(A,e){var t=e(),r=SF({inst:{value:t,getSnapshot:e}}),n=r[0].inst,i=r[1];return HF(function(){n.value=t,n.getSnapshot=e,Vu(n)&&i({inst:n})},[A,t,e]),IF(function(){return Vu(n)&&i({inst:n}),A(function(){Vu(n)&&i({inst:n})})},[A]),xF(t),t}function Vu(A){var e=A.getSnapshot;A=A.value;try{var t=e();return!EF(A,t)}catch{return!0}}function DF(A,e){return e()}var TF=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?DF:LF;pv.useSyncExternalStore=oi.useSyncExternalStore!==void 0?oi.useSyncExternalStore:TF;Bv.exports=pv;var RF=Bv.exports;const OF=RF.useSyncExternalStore,JB=K.createContext(void 0),gv=K.createContext(!1);function wv(A,e){return A||(e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=JB),window.ReactQueryClientContext):JB)}const bF=({context:A}={})=>{const e=K.useContext(wv(A,K.useContext(gv)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},MF=({client:A,children:e,context:t,contextSharing:r=!1})=>{K.useEffect(()=>(A.mount(),()=>{A.unmount()}),[A]);const n=wv(t,r);return K.createElement(gv.Provider,{value:!t&&r},K.createElement(n.Provider,{value:A},e))};function mv(){let A=!1;return{clearReset:()=>{A=!1},reset:()=>{A=!0},isReset:()=>A}}const KF=K.createContext(mv()),_F=({children:A})=>{const[e]=K.useState(()=>mv());return K.createElement(KF.Provider,{value:e},typeof A=="function"?A(e):A)};function PF(A,e){return typeof A=="function"?A(...e):!!A}function NF(A,e,t){const r=aF(A,e,t),n=bF({context:r.context}),[i]=K.useState(()=>new FF(n,r));K.useEffect(()=>{i.setOptions(r)},[i,r]);const s=OF(K.useCallback(a=>i.subscribe(ce.batchCalls(a)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),o=K.useCallback((a,l)=>{i.mutate(a,l).catch(kF)},[i]);if(s.error&&PF(i.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:o,mutateAsync:s.mutate}}function kF(){}/** - * @remix-run/router v1.8.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function LA(){return LA=Object.assign?Object.assign.bind():function(A){for(var e=1;e"u")throw new Error(e)}function ai(A,e){if(!A){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function GF(){return Math.random().toString(36).substr(2,8)}function ZB(A,e){return{usr:A.state,key:A.key,idx:e}}function bs(A,e,t,r){return t===void 0&&(t=null),LA({pathname:typeof A=="string"?A:A.pathname,search:"",hash:""},typeof e=="string"?tr(e):e,{state:t,key:e&&e.key||r||GF()})}function Xs(A){let{pathname:e="/",search:t="",hash:r=""}=A;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function tr(A){let e={};if(A){let t=A.indexOf("#");t>=0&&(e.hash=A.substr(t),A=A.substr(0,t));let r=A.indexOf("?");r>=0&&(e.search=A.substr(r),A=A.substr(0,r)),A&&(e.pathname=A)}return e}function jF(A,e,t,r){r===void 0&&(r={});let{window:n=document.defaultView,v5Compat:i=!1}=r,s=n.history,o=zA.Pop,a=null,l=u();l==null&&(l=0,s.replaceState(LA({},s.state,{idx:l}),""));function u(){return(s.state||{idx:null}).idx}function c(){o=zA.Pop;let S=u(),p=S==null?null:S-l;l=S,a&&a({action:o,location:m.location,delta:p})}function f(S,p){o=zA.Push;let d=bs(m.location,S,p);t&&t(d,S),l=u()+1;let w=ZB(d,l),h=m.createHref(d);try{s.pushState(w,"",h)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;n.location.assign(h)}i&&a&&a({action:o,location:m.location,delta:1})}function g(S,p){o=zA.Replace;let d=bs(m.location,S,p);t&&t(d,S),l=u();let w=ZB(d,l),h=m.createHref(d);s.replaceState(w,"",h),i&&a&&a({action:o,location:m.location,delta:0})}function B(S){let p=n.location.origin!=="null"?n.location.origin:n.location.href,d=typeof S=="string"?S:Xs(S);return aA(p,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,p)}let m={get action(){return o},get location(){return A(n,s)},listen(S){if(a)throw new Error("A history only accepts one active listener");return n.addEventListener(YB,c),a=S,()=>{n.removeEventListener(YB,c),a=null}},createHref(S){return e(n,S)},createURL:B,encodeLocation(S){let p=B(S);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:f,replace:g,go(S){return s.go(S)}};return m}var GA;(function(A){A.data="data",A.deferred="deferred",A.redirect="redirect",A.error="error"})(GA||(GA={}));const WF=new Set(["lazy","caseSensitive","path","id","index","children"]);function zF(A){return A.index===!0}function Qf(A,e,t,r){return t===void 0&&(t=[]),r===void 0&&(r={}),A.map((n,i)=>{let s=[...t,i],o=typeof n.id=="string"?n.id:s.join("-");if(aA(n.index!==!0||!n.children,"Cannot specify children on an index route"),aA(!r[o],'Found a route id collision on id "'+o+`". Route id's must be globally unique within Data Router usages`),zF(n)){let a=LA({},n,e(n),{id:o});return r[o]=a,a}else{let a=LA({},n,e(n),{id:o,children:void 0});return r[o]=a,n.children&&(a.children=Qf(n.children,e,s,r)),a}})}function Nn(A,e,t){t===void 0&&(t="/");let r=typeof e=="string"?tr(e):e,n=Js(r.pathname||"/",t);if(n==null)return null;let i=vv(A);XF(i);let s=null;for(let o=0;s==null&&o{let a={relativePath:o===void 0?i.path||"":o,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};a.relativePath.startsWith("/")&&(aA(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let l=Hr([r,a.relativePath]),u=t.concat(a);i.children&&i.children.length>0&&(aA(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),vv(i.children,e,u,l)),!(i.path==null&&!i.index)&&e.push({path:l,score:eU(l,i.index),routesMeta:u})};return A.forEach((i,s)=>{var o;if(i.path===""||!((o=i.path)!=null&&o.includes("?")))n(i,s);else for(let a of Cv(i.path))n(i,s,a)}),e}function Cv(A){let e=A.split("/");if(e.length===0)return[];let[t,...r]=e,n=t.endsWith("?"),i=t.replace(/\?$/,"");if(r.length===0)return n?[i,""]:[i];let s=Cv(r.join("/")),o=[];return o.push(...s.map(a=>a===""?i:[i,a].join("/"))),n&&o.push(...s),o.map(a=>A.startsWith("/")&&a===""?"/":a)}function XF(A){A.sort((e,t)=>e.score!==t.score?t.score-e.score:tU(e.routesMeta.map(r=>r.childrenIndex),t.routesMeta.map(r=>r.childrenIndex)))}const JF=/^:\w+$/,YF=3,ZF=2,qF=1,$F=10,AU=-2,qB=A=>A==="*";function eU(A,e){let t=A.split("/"),r=t.length;return t.some(qB)&&(r+=AU),e&&(r+=ZF),t.filter(n=>!qB(n)).reduce((n,i)=>n+(JF.test(i)?YF:i===""?qF:$F),r)}function tU(A,e){return A.length===e.length&&A.slice(0,-1).every((r,n)=>r===e[n])?A[A.length-1]-e[e.length-1]:0}function rU(A,e){let{routesMeta:t}=A,r={},n="/",i=[];for(let s=0;s{if(u==="*"){let f=o[c]||"";s=i.slice(0,i.length-f.length).replace(/(.)\/+$/,"$1")}return l[u]=oU(o[c]||"",u),l},{}),pathname:i,pathnameBase:s,pattern:A}}function iU(A,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),ai(A==="*"||!A.endsWith("*")||A.endsWith("/*"),'Route path "'+A+'" will be treated as if it were '+('"'+A.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+A.replace(/\*$/,"/*")+'".'));let r=[],n="^"+A.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(s,o)=>(r.push(o),"/([^\\/]+)"));return A.endsWith("*")?(r.push("*"),n+=A==="*"||A==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?n+="\\/*$":A!==""&&A!=="/"&&(n+="(?:(?=\\/|$))"),[new RegExp(n,e?void 0:"i"),r]}function sU(A){try{return decodeURI(A)}catch(e){return ai(!1,'The URL path "'+A+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),A}}function oU(A,e){try{return decodeURIComponent(A)}catch(t){return ai(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+A+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),A}}function Js(A,e){if(e==="/")return A;if(!A.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,r=A.charAt(t);return r&&r!=="/"?null:A.slice(t)||"/"}function aU(A,e){e===void 0&&(e="/");let{pathname:t,search:r="",hash:n=""}=typeof A=="string"?tr(A):A;return{pathname:t?t.startsWith("/")?t:lU(t,e):e,search:cU(r),hash:fU(n)}}function lU(A,e){let t=e.replace(/\/+$/,"").split("/");return A.split("/").forEach(n=>{n===".."?t.length>1&&t.pop():n!=="."&&t.push(n)}),t.length>1?t.join("/"):"/"}function Gu(A,e,t,r){return"Cannot include a '"+A+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function nh(A){return A.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function yv(A,e,t,r){r===void 0&&(r=!1);let n;typeof A=="string"?n=tr(A):(n=LA({},A),aA(!n.pathname||!n.pathname.includes("?"),Gu("?","pathname","search",n)),aA(!n.pathname||!n.pathname.includes("#"),Gu("#","pathname","hash",n)),aA(!n.search||!n.search.includes("#"),Gu("#","search","hash",n)));let i=A===""||n.pathname==="",s=i?"/":n.pathname,o;if(r||s==null)o=t;else{let c=e.length-1;if(s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),c-=1;n.pathname=f.join("/")}o=c>=0?e[c]:"/"}let a=aU(n,o),l=s&&s!=="/"&&s.endsWith("/"),u=(i||s===".")&&t.endsWith("/");return!a.pathname.endsWith("/")&&(l||u)&&(a.pathname+="/"),a}const Hr=A=>A.join("/").replace(/\/\/+/g,"/"),uU=A=>A.replace(/\/+$/,"").replace(/^\/*/,"/"),cU=A=>!A||A==="?"?"":A.startsWith("?")?A:"?"+A,fU=A=>!A||A==="#"?"":A.startsWith("#")?A:"#"+A;class ih{constructor(e,t,r,n){n===void 0&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Qv(A){return A!=null&&typeof A.status=="number"&&typeof A.statusText=="string"&&typeof A.internal=="boolean"&&"data"in A}const Fv=["post","put","patch","delete"],dU=new Set(Fv),hU=["get",...Fv],BU=new Set(hU),pU=new Set([301,302,303,307,308]),gU=new Set([307,308]),ju={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},wU={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Li={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Uv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mU=A=>({hasErrorBoundary:!!A.hasErrorBoundary});function vU(A){const e=A.window?A.window:typeof window<"u"?window:void 0,t=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",r=!t;aA(A.routes.length>0,"You must provide a non-empty routes array to createRouter");let n;if(A.mapRouteProperties)n=A.mapRouteProperties;else if(A.detectErrorBoundary){let I=A.detectErrorBoundary;n=L=>({hasErrorBoundary:I(L)})}else n=mU;let i={},s=Qf(A.routes,n,void 0,i),o,a=A.basename||"/",l=LA({v7_normalizeFormMethod:!1,v7_prependBasename:!1},A.future),u=null,c=new Set,f=null,g=null,B=null,m=A.hydrationData!=null,S=Nn(s,A.history.location,a),p=null;if(S==null){let I=We(404,{pathname:A.history.location.pathname}),{matches:L,route:_}=sp(s);S=L,p={[_.id]:I}}let d=!S.some(I=>I.route.lazy)&&(!S.some(I=>I.route.loader)||A.hydrationData!=null),w,h={historyAction:A.history.action,location:A.history.location,matches:S,initialized:d,navigation:ju,restoreScrollPosition:A.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:A.hydrationData&&A.hydrationData.loaderData||{},actionData:A.hydrationData&&A.hydrationData.actionData||null,errors:A.hydrationData&&A.hydrationData.errors||p,fetchers:new Map,blockers:new Map},C=zA.Pop,y=!1,U,v=!1,E=!1,H=[],b=[],T=new Map,x=0,N=-1,$=new Map,eA=new Set,W=new Map,M=new Map,V=new Map,q=!1;function dA(){return u=A.history.listen(I=>{let{action:L,location:_,delta:Y}=I;if(q){q=!1;return}ai(V.size===0||Y!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let sA=gn({currentLocation:h.location,nextLocation:_,historyAction:L});if(sA&&Y!=null){q=!0,A.history.go(Y*-1),pn(sA,{state:"blocked",location:_,proceed(){pn(sA,{state:"proceeding",proceed:void 0,reset:void 0,location:_}),A.history.go(Y)},reset(){let nA=new Map(h.blockers);nA.set(sA,Li),uA({blockers:nA})}});return}return nt(L,_)}),h.initialized||nt(zA.Pop,h.location),w}function pA(){u&&u(),c.clear(),U&&U.abort(),h.fetchers.forEach((I,L)=>Z(L)),h.blockers.forEach((I,L)=>Ot(L))}function te(I){return c.add(I),()=>c.delete(I)}function uA(I){h=LA({},h,I),c.forEach(L=>L(h))}function _A(I,L){var _,Y;let sA=h.actionData!=null&&h.navigation.formMethod!=null&&ht(h.navigation.formMethod)&&h.navigation.state==="loading"&&((_=I.state)==null?void 0:_._isRedirect)!==!0,nA;L.actionData?Object.keys(L.actionData).length>0?nA=L.actionData:nA=null:sA?nA=h.actionData:nA=null;let iA=L.loaderData?ip(h.loaderData,L.loaderData,L.matches||[],L.errors):h.loaderData,rA=h.blockers;rA.size>0&&(rA=new Map(rA),rA.forEach((QA,oe)=>rA.set(oe,Li)));let AA=y===!0||h.navigation.formMethod!=null&&ht(h.navigation.formMethod)&&((Y=I.state)==null?void 0:Y._isRedirect)!==!0;o&&(s=o,o=void 0),v||C===zA.Pop||(C===zA.Push?A.history.push(I,I.state):C===zA.Replace&&A.history.replace(I,I.state)),uA(LA({},L,{actionData:nA,loaderData:iA,historyAction:C,location:I,initialized:!0,navigation:ju,revalidation:"idle",restoreScrollPosition:vi(I,L.matches||h.matches),preventScrollReset:AA,blockers:rA})),C=zA.Pop,y=!1,v=!1,E=!1,H=[],b=[]}async function PA(I,L){if(typeof I=="number"){A.history.go(I);return}let _=Ff(h.location,h.matches,a,l.v7_prependBasename,I,L==null?void 0:L.fromRouteId,L==null?void 0:L.relative),{path:Y,submission:sA,error:nA}=$B(l.v7_normalizeFormMethod,!1,_,L),iA=h.location,rA=bs(h.location,Y,L&&L.state);rA=LA({},rA,A.history.encodeLocation(rA));let AA=L&&L.replace!=null?L.replace:void 0,QA=zA.Push;AA===!0?QA=zA.Replace:AA===!1||sA!=null&&ht(sA.formMethod)&&sA.formAction===h.location.pathname+h.location.search&&(QA=zA.Replace);let oe=L&&"preventScrollReset"in L?L.preventScrollReset===!0:void 0,vA=gn({currentLocation:iA,nextLocation:rA,historyAction:QA});if(vA){pn(vA,{state:"blocked",location:rA,proceed(){pn(vA,{state:"proceeding",proceed:void 0,reset:void 0,location:rA}),PA(I,L)},reset(){let NA=new Map(h.blockers);NA.set(vA,Li),uA({blockers:NA})}});return}return await nt(QA,rA,{submission:sA,pendingError:nA,preventScrollReset:oe,replace:L&&L.replace})}function Be(){if(D(),uA({revalidation:"loading"}),h.navigation.state!=="submitting"){if(h.navigation.state==="idle"){nt(h.historyAction,h.location,{startUninterruptedRevalidation:!0});return}nt(C||h.historyAction,h.navigation.location,{overrideNavigation:h.navigation})}}async function nt(I,L,_){U&&U.abort(),U=null,C=I,v=(_&&_.startUninterruptedRevalidation)===!0,uu(h.location,h.matches),y=(_&&_.preventScrollReset)===!0;let Y=o||s,sA=_&&_.overrideNavigation,nA=Nn(Y,L,a);if(!nA){let NA=We(404,{pathname:L.pathname}),{matches:re,route:Nr}=sp(Y);Pr(),_A(L,{matches:re,loaderData:{},errors:{[Nr.id]:NA}});return}if(h.initialized&&!E&&UU(h.location,L)&&!(_&&_.submission&&ht(_.submission.formMethod))){_A(L,{matches:nA});return}U=new AbortController;let iA=Ti(A.history,L,U.signal,_&&_.submission),rA,AA;if(_&&_.pendingError)AA={[kn(nA).route.id]:_.pendingError};else if(_&&_.submission&&ht(_.submission.formMethod)){let NA=await so(iA,L,_.submission,nA,{replace:_.replace});if(NA.shortCircuited)return;rA=NA.pendingActionData,AA=NA.pendingActionError,sA=Io(L,_.submission),iA=new Request(iA.url,{signal:iA.signal})}let{shortCircuited:QA,loaderData:oe,errors:vA}=await au(iA,L,nA,sA,_&&_.submission,_&&_.fetcherSubmission,_&&_.replace,rA,AA);QA||(U=null,_A(L,LA({matches:nA},rA?{actionData:rA}:{},{loaderData:oe,errors:vA})))}async function so(I,L,_,Y,sA){sA===void 0&&(sA={}),D();let nA=xU(L,_);uA({navigation:nA});let iA,rA=Ef(Y,L);if(!rA.route.action&&!rA.route.lazy)iA={type:GA.error,error:We(405,{method:I.method,pathname:L.pathname,routeId:rA.route.id})};else if(iA=await Di("action",I,rA,Y,i,n,a),I.signal.aborted)return{shortCircuited:!0};if(Zn(iA)){let AA;return sA&&sA.replace!=null?AA=sA.replace:AA=iA.location===h.location.pathname+h.location.search,await Bn(h,iA,{submission:_,replace:AA}),{shortCircuited:!0}}if(cs(iA)){let AA=kn(Y,rA.route.id);return(sA&&sA.replace)!==!0&&(C=zA.Push),{pendingActionData:{},pendingActionError:{[AA.route.id]:iA.error}}}if($r(iA))throw We(400,{type:"defer-action"});return{pendingActionData:{[rA.route.id]:iA.data}}}async function au(I,L,_,Y,sA,nA,iA,rA,AA){let QA=Y||Io(L,sA),oe=sA||nA||lp(QA),vA=o||s,[NA,re]=Ap(A.history,h,_,oe,L,E,H,b,W,eA,vA,a,rA,AA);if(Pr(CA=>!(_&&_.some(it=>it.route.id===CA))||NA&&NA.some(it=>it.route.id===CA)),N=++x,NA.length===0&&re.length===0){let CA=tA();return _A(L,LA({matches:_,loaderData:{},errors:AA||null},rA?{actionData:rA}:{},CA?{fetchers:new Map(h.fetchers)}:{})),{shortCircuited:!0}}if(!v){re.forEach(it=>{let rr=h.fetchers.get(it.key),Bu=Ri(void 0,rr?rr.data:void 0);h.fetchers.set(it.key,Bu)});let CA=rA||h.actionData;uA(LA({navigation:QA},CA?Object.keys(CA).length===0?{actionData:null}:{actionData:CA}:{},re.length>0?{fetchers:new Map(h.fetchers)}:{}))}re.forEach(CA=>{T.has(CA.key)&&G(CA.key),CA.controller&&T.set(CA.key,CA.controller)});let Nr=()=>re.forEach(CA=>G(CA.key));U&&U.signal.addEventListener("abort",Nr);let{results:kr,loaderResults:Ci,fetcherResults:cu}=await Q(h.matches,_,NA,re,I);if(I.signal.aborted)return{shortCircuited:!0};U&&U.signal.removeEventListener("abort",Nr),re.forEach(CA=>T.delete(CA.key));let bt=op(kr);if(bt){if(bt.idx>=NA.length){let CA=re[bt.idx-NA.length].key;eA.add(CA)}return await Bn(h,bt.result,{replace:iA}),{shortCircuited:!0}}let{loaderData:Mt,errors:ao}=np(h,_,NA,Ci,AA,re,cu,M);M.forEach((CA,it)=>{CA.subscribe(rr=>{(rr||CA.done)&&M.delete(it)})});let fu=tA(),du=SA(N),hu=fu||du||re.length>0;return LA({loaderData:Mt,errors:ao},hu?{fetchers:new Map(h.fetchers)}:{})}function wi(I){return h.fetchers.get(I)||wU}function oo(I,L,_,Y){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");T.has(I)&&G(I);let sA=o||s,nA=Ff(h.location,h.matches,a,l.v7_prependBasename,_,L,Y==null?void 0:Y.relative),iA=Nn(sA,nA,a);if(!iA){O(I,L,We(404,{pathname:nA}));return}let{path:rA,submission:AA,error:QA}=$B(l.v7_normalizeFormMethod,!0,nA,Y);if(QA){O(I,L,QA);return}let oe=Ef(iA,rA);if(y=(Y&&Y.preventScrollReset)===!0,AA&&ht(AA.formMethod)){xh(I,L,rA,oe,iA,AA);return}W.set(I,{routeId:L,path:rA}),Lh(I,L,rA,oe,iA,AA)}async function xh(I,L,_,Y,sA,nA){if(D(),W.delete(I),!Y.route.action&&!Y.route.lazy){let YA=We(405,{method:nA.formMethod,pathname:_,routeId:L});O(I,L,YA);return}let iA=h.fetchers.get(I),rA=LU(nA,iA);h.fetchers.set(I,rA),uA({fetchers:new Map(h.fetchers)});let AA=new AbortController,QA=Ti(A.history,_,AA.signal,nA);T.set(I,AA);let oe=x,vA=await Di("action",QA,Y,sA,i,n,a);if(QA.signal.aborted){T.get(I)===AA&&T.delete(I);return}if(Zn(vA))if(T.delete(I),N>oe){let YA=En(void 0);h.fetchers.set(I,YA),uA({fetchers:new Map(h.fetchers)});return}else{eA.add(I);let YA=Ri(nA);return h.fetchers.set(I,YA),uA({fetchers:new Map(h.fetchers)}),Bn(h,vA,{submission:nA,isFetchActionRedirect:!0})}if(cs(vA)){O(I,L,vA.error);return}if($r(vA))throw We(400,{type:"defer-action"});let NA=h.navigation.location||h.location,re=Ti(A.history,NA,AA.signal),Nr=o||s,kr=h.navigation.state!=="idle"?Nn(Nr,h.navigation.location,a):h.matches;aA(kr,"Didn't find any matches after fetcher action");let Ci=++x;$.set(I,Ci);let cu=Ri(nA,vA.data);h.fetchers.set(I,cu);let[bt,Mt]=Ap(A.history,h,kr,nA,NA,E,H,b,W,eA,Nr,a,{[Y.route.id]:vA.data},void 0);Mt.filter(YA=>YA.key!==I).forEach(YA=>{let yi=YA.key,Dh=h.fetchers.get(yi),xC=Ri(void 0,Dh?Dh.data:void 0);h.fetchers.set(yi,xC),T.has(yi)&&G(yi),YA.controller&&T.set(yi,YA.controller)}),uA({fetchers:new Map(h.fetchers)});let ao=()=>Mt.forEach(YA=>G(YA.key));AA.signal.addEventListener("abort",ao);let{results:fu,loaderResults:du,fetcherResults:hu}=await Q(h.matches,kr,bt,Mt,re);if(AA.signal.aborted)return;AA.signal.removeEventListener("abort",ao),$.delete(I),T.delete(I),Mt.forEach(YA=>T.delete(YA.key));let CA=op(fu);if(CA){if(CA.idx>=bt.length){let YA=Mt[CA.idx-bt.length].key;eA.add(YA)}return Bn(h,CA.result)}let{loaderData:it,errors:rr}=np(h,h.matches,bt,du,void 0,Mt,hu,M);if(h.fetchers.has(I)){let YA=En(vA.data);h.fetchers.set(I,YA)}let Bu=SA(Ci);h.navigation.state==="loading"&&Ci>N?(aA(C,"Expected pending action"),U&&U.abort(),_A(h.navigation.location,{matches:kr,loaderData:it,errors:rr,fetchers:new Map(h.fetchers)})):(uA(LA({errors:rr,loaderData:ip(h.loaderData,it,kr,rr)},Bu||Mt.length>0?{fetchers:new Map(h.fetchers)}:{})),E=!1)}async function Lh(I,L,_,Y,sA,nA){let iA=h.fetchers.get(I),rA=Ri(nA,iA?iA.data:void 0);h.fetchers.set(I,rA),uA({fetchers:new Map(h.fetchers)});let AA=new AbortController,QA=Ti(A.history,_,AA.signal);T.set(I,AA);let oe=x,vA=await Di("loader",QA,Y,sA,i,n,a);if($r(vA)&&(vA=await Iv(vA,QA.signal,!0)||vA),T.get(I)===AA&&T.delete(I),QA.signal.aborted)return;if(Zn(vA))if(N>oe){let re=En(void 0);h.fetchers.set(I,re),uA({fetchers:new Map(h.fetchers)});return}else{eA.add(I),await Bn(h,vA);return}if(cs(vA)){let re=kn(h.matches,L);h.fetchers.delete(I),uA({fetchers:new Map(h.fetchers),errors:{[re.route.id]:vA.error}});return}aA(!$r(vA),"Unhandled fetcher deferred data");let NA=En(vA.data);h.fetchers.set(I,NA),uA({fetchers:new Map(h.fetchers)})}async function Bn(I,L,_){let{submission:Y,replace:sA,isFetchActionRedirect:nA}=_===void 0?{}:_;L.revalidate&&(E=!0);let iA=bs(I.location,L.location,LA({_isRedirect:!0},nA?{_isFetchActionRedirect:!0}:{}));if(aA(iA,"Expected a location on the redirect navigation"),t){let QA=!1;if(L.reloadDocument)QA=!0;else if(Uv.test(L.location)){const oe=A.history.createURL(L.location);QA=oe.origin!==e.location.origin||Js(oe.pathname,a)==null}if(QA){sA?e.location.replace(L.location):e.location.assign(L.location);return}}U=null;let rA=sA===!0?zA.Replace:zA.Push,AA=Y||lp(I.navigation);if(gU.has(L.status)&&AA&&ht(AA.formMethod))await nt(rA,iA,{submission:LA({},AA,{formAction:L.location}),preventScrollReset:y});else if(nA)await nt(rA,iA,{overrideNavigation:Io(iA),fetcherSubmission:AA,preventScrollReset:y});else{let QA=Io(iA,AA);await nt(rA,iA,{overrideNavigation:QA,preventScrollReset:y})}}async function Q(I,L,_,Y,sA){let nA=await Promise.all([..._.map(AA=>Di("loader",sA,AA,L,i,n,a)),...Y.map(AA=>AA.matches&&AA.match&&AA.controller?Di("loader",Ti(A.history,AA.path,AA.controller.signal),AA.match,AA.matches,i,n,a):{type:GA.error,error:We(404,{pathname:AA.path})})]),iA=nA.slice(0,_.length),rA=nA.slice(_.length);return await Promise.all([ap(I,_,iA,iA.map(()=>sA.signal),!1,h.loaderData),ap(I,Y.map(AA=>AA.match),rA,Y.map(AA=>AA.controller?AA.controller.signal:null),!0)]),{results:nA,loaderResults:iA,fetcherResults:rA}}function D(){E=!0,H.push(...Pr()),W.forEach((I,L)=>{T.has(L)&&(b.push(L),G(L))})}function O(I,L,_){let Y=kn(h.matches,L);Z(I),uA({errors:{[Y.route.id]:_},fetchers:new Map(h.fetchers)})}function Z(I){let L=h.fetchers.get(I);T.has(I)&&!(L&&L.state==="loading"&&$.has(I))&&G(I),W.delete(I),$.delete(I),eA.delete(I),h.fetchers.delete(I)}function G(I){let L=T.get(I);aA(L,"Expected fetch controller: "+I),L.abort(),T.delete(I)}function k(I){for(let L of I){let _=wi(L),Y=En(_.data);h.fetchers.set(L,Y)}}function tA(){let I=[],L=!1;for(let _ of eA){let Y=h.fetchers.get(_);aA(Y,"Expected fetcher: "+_),Y.state==="loading"&&(eA.delete(_),I.push(_),L=!0)}return k(I),L}function SA(I){let L=[];for(let[_,Y]of $)if(Y0}function RA(I,L){let _=h.blockers.get(I)||Li;return V.get(I)!==L&&V.set(I,L),_}function Ot(I){h.blockers.delete(I),V.delete(I)}function pn(I,L){let _=h.blockers.get(I)||Li;aA(_.state==="unblocked"&&L.state==="blocked"||_.state==="blocked"&&L.state==="blocked"||_.state==="blocked"&&L.state==="proceeding"||_.state==="blocked"&&L.state==="unblocked"||_.state==="proceeding"&&L.state==="unblocked","Invalid blocker state transition: "+_.state+" -> "+L.state);let Y=new Map(h.blockers);Y.set(I,L),uA({blockers:Y})}function gn(I){let{currentLocation:L,nextLocation:_,historyAction:Y}=I;if(V.size===0)return;V.size>1&&ai(!1,"A router only supports one blocker at a time");let sA=Array.from(V.entries()),[nA,iA]=sA[sA.length-1],rA=h.blockers.get(nA);if(!(rA&&rA.state==="proceeding")&&iA({currentLocation:L,nextLocation:_,historyAction:Y}))return nA}function Pr(I){let L=[];return M.forEach((_,Y)=>{(!I||I(Y))&&(_.cancel(),L.push(Y),M.delete(Y))}),L}function lu(I,L,_){if(f=I,B=L,g=_||null,!m&&h.navigation===ju){m=!0;let Y=vi(h.location,h.matches);Y!=null&&uA({restoreScrollPosition:Y})}return()=>{f=null,B=null,g=null}}function mi(I,L){return g&&g(I,L.map(Y=>HU(Y,h.loaderData)))||I.key}function uu(I,L){if(f&&B){let _=mi(I,L);f[_]=B()}}function vi(I,L){if(f){let _=mi(I,L),Y=f[_];if(typeof Y=="number")return Y}return null}function HC(I){i={},o=Qf(I,n,void 0,i)}return w={get basename(){return a},get state(){return h},get routes(){return s},initialize:dA,subscribe:te,enableScrollRestoration:lu,navigate:PA,fetch:oo,revalidate:Be,createHref:I=>A.history.createHref(I),encodeLocation:I=>A.history.encodeLocation(I),getFetcher:wi,deleteFetcher:Z,dispose:pA,getBlocker:RA,deleteBlocker:Ot,_internalFetchControllers:T,_internalActiveDeferreds:M,_internalSetRoutes:HC},w}function CU(A){return A!=null&&("formData"in A&&A.formData!=null||"body"in A&&A.body!==void 0)}function Ff(A,e,t,r,n,i,s){let o,a;if(i!=null&&s!=="path"){o=[];for(let u of e)if(o.push(u),u.route.id===i){a=u;break}}else o=e,a=e[e.length-1];let l=yv(n||".",nh(o).map(u=>u.pathnameBase),Js(A.pathname,t)||A.pathname,s==="path");return n==null&&(l.search=A.search,l.hash=A.hash),(n==null||n===""||n===".")&&a&&a.route.index&&!sh(l.search)&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),r&&t!=="/"&&(l.pathname=l.pathname==="/"?t:Hr([t,l.pathname])),Xs(l)}function $B(A,e,t,r){if(!r||!CU(r))return{path:t};if(r.formMethod&&!IU(r.formMethod))return{path:t,error:We(405,{method:r.formMethod})};let n=()=>({path:t,error:We(400,{type:"invalid-body"})}),i=r.formMethod||"get",s=A?i.toUpperCase():i.toLowerCase(),o=Sv(t);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ht(s))return n();let f=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,B)=>{let[m,S]=B;return""+g+m+"="+S+` -`},""):String(r.body);return{path:t,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:void 0,text:f}}}else if(r.formEncType==="application/json"){if(!ht(s))return n();try{let f=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:f,text:void 0}}}catch{return n()}}}aA(typeof FormData=="function","FormData is not available in this environment");let a,l;if(r.formData)a=Uf(r.formData),l=r.formData;else if(r.body instanceof FormData)a=Uf(r.body),l=r.body;else if(r.body instanceof URLSearchParams)a=r.body,l=rp(a);else if(r.body==null)a=new URLSearchParams,l=new FormData;else try{a=new URLSearchParams(r.body),l=rp(a)}catch{return n()}let u={formMethod:s,formAction:o,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(ht(u.formMethod))return{path:t,submission:u};let c=tr(t);return e&&c.search&&sh(c.search)&&a.append("index",""),c.search="?"+a,{path:Xs(c),submission:u}}function yU(A,e){let t=A;if(e){let r=A.findIndex(n=>n.route.id===e);r>=0&&(t=A.slice(0,r))}return t}function Ap(A,e,t,r,n,i,s,o,a,l,u,c,f,g){let B=g?Object.values(g)[0]:f?Object.values(f)[0]:void 0,m=A.createURL(e.location),S=A.createURL(n),p=g?Object.keys(g)[0]:void 0,w=yU(t,p).filter((C,y)=>{if(C.route.lazy)return!0;if(C.route.loader==null)return!1;if(QU(e.loaderData,e.matches[y],C)||s.some(E=>E===C.route.id))return!0;let U=e.matches[y],v=C;return ep(C,LA({currentUrl:m,currentParams:U.params,nextUrl:S,nextParams:v.params},r,{actionResult:B,defaultShouldRevalidate:i||m.pathname+m.search===S.pathname+S.search||m.search!==S.search||Ev(U,v)}))}),h=[];return a.forEach((C,y)=>{if(!t.some(b=>b.route.id===C.routeId))return;let U=Nn(u,C.path,c);if(!U){h.push({key:y,routeId:C.routeId,path:C.path,matches:null,match:null,controller:null});return}let v=e.fetchers.get(y),E=Ef(U,C.path),H=!1;l.has(y)?H=!1:o.includes(y)?H=!0:v&&v.state!=="idle"&&v.data===void 0?H=i:H=ep(E,LA({currentUrl:m,currentParams:e.matches[e.matches.length-1].params,nextUrl:S,nextParams:t[t.length-1].params},r,{actionResult:B,defaultShouldRevalidate:i})),H&&h.push({key:y,routeId:C.routeId,path:C.path,matches:U,match:E,controller:new AbortController})}),[w,h]}function QU(A,e,t){let r=!e||t.route.id!==e.route.id,n=A[t.route.id]===void 0;return r||n}function Ev(A,e){let t=A.route.path;return A.pathname!==e.pathname||t!=null&&t.endsWith("*")&&A.params["*"]!==e.params["*"]}function ep(A,e){if(A.route.shouldRevalidate){let t=A.route.shouldRevalidate(e);if(typeof t=="boolean")return t}return e.defaultShouldRevalidate}async function tp(A,e,t){if(!A.lazy)return;let r=await A.lazy();if(!A.lazy)return;let n=t[A.id];aA(n,"No route found in manifest");let i={};for(let s in r){let a=n[s]!==void 0&&s!=="hasErrorBoundary";ai(!a,'Route "'+n.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!a&&!WF.has(s)&&(i[s]=r[s])}Object.assign(n,i),Object.assign(n,LA({},e(n),{lazy:void 0}))}async function Di(A,e,t,r,n,i,s,o){o===void 0&&(o={});let a,l,u,c=B=>{let m,S=new Promise((p,d)=>m=d);return u=()=>m(),e.signal.addEventListener("abort",u),Promise.race([B({request:e,params:t.params,context:o.requestContext}),S])};try{let B=t.route[A];if(t.route.lazy)if(B)l=(await Promise.all([c(B),tp(t.route,i,n)]))[0];else if(await tp(t.route,i,n),B=t.route[A],B)l=await c(B);else if(A==="action"){let m=new URL(e.url),S=m.pathname+m.search;throw We(405,{method:e.method,pathname:S,routeId:t.route.id})}else return{type:GA.data,data:void 0};else if(B)l=await c(B);else{let m=new URL(e.url),S=m.pathname+m.search;throw We(404,{pathname:S})}aA(l!==void 0,"You defined "+(A==="action"?"an action":"a loader")+" for route "+('"'+t.route.id+"\" but didn't return anything from your `"+A+"` ")+"function. Please return a value or `null`.")}catch(B){a=GA.error,l=B}finally{u&&e.signal.removeEventListener("abort",u)}if(SU(l)){let B=l.status;if(pU.has(B)){let p=l.headers.get("Location");if(aA(p,"Redirects returned/thrown from loaders/actions must have a Location header"),!Uv.test(p))p=Ff(new URL(e.url),r.slice(0,r.indexOf(t)+1),s,!0,p);else if(!o.isStaticRequest){let d=new URL(e.url),w=p.startsWith("//")?new URL(d.protocol+p):new URL(p),h=Js(w.pathname,s)!=null;w.origin===d.origin&&h&&(p=w.pathname+w.search+w.hash)}if(o.isStaticRequest)throw l.headers.set("Location",p),l;return{type:GA.redirect,status:B,location:p,revalidate:l.headers.get("X-Remix-Revalidate")!==null,reloadDocument:l.headers.get("X-Remix-Reload-Document")!==null}}if(o.isRouteRequest)throw{type:a===GA.error?GA.error:GA.data,response:l};let m,S=l.headers.get("Content-Type");return S&&/\bapplication\/json\b/.test(S)?m=await l.json():m=await l.text(),a===GA.error?{type:a,error:new ih(B,l.statusText,m),headers:l.headers}:{type:GA.data,data:m,statusCode:l.status,headers:l.headers}}if(a===GA.error)return{type:a,error:l};if(EU(l)){var f,g;return{type:GA.deferred,deferredData:l,statusCode:(f=l.init)==null?void 0:f.status,headers:((g=l.init)==null?void 0:g.headers)&&new Headers(l.init.headers)}}return{type:GA.data,data:l}}function Ti(A,e,t,r){let n=A.createURL(Sv(e)).toString(),i={signal:t};if(r&&ht(r.formMethod)){let{formMethod:s,formEncType:o}=r;i.method=s.toUpperCase(),o==="application/json"?(i.headers=new Headers({"Content-Type":o}),i.body=JSON.stringify(r.json)):o==="text/plain"?i.body=r.text:o==="application/x-www-form-urlencoded"&&r.formData?i.body=Uf(r.formData):i.body=r.formData}return new Request(n,i)}function Uf(A){let e=new URLSearchParams;for(let[t,r]of A.entries())e.append(t,typeof r=="string"?r:r.name);return e}function rp(A){let e=new FormData;for(let[t,r]of A.entries())e.append(t,r);return e}function FU(A,e,t,r,n){let i={},s=null,o,a=!1,l={};return t.forEach((u,c)=>{let f=e[c].route.id;if(aA(!Zn(u),"Cannot handle redirect results in processLoaderData"),cs(u)){let g=kn(A,f),B=u.error;r&&(B=Object.values(r)[0],r=void 0),s=s||{},s[g.route.id]==null&&(s[g.route.id]=B),i[f]=void 0,a||(a=!0,o=Qv(u.error)?u.error.status:500),u.headers&&(l[f]=u.headers)}else $r(u)?(n.set(f,u.deferredData),i[f]=u.deferredData.data):i[f]=u.data,u.statusCode!=null&&u.statusCode!==200&&!a&&(o=u.statusCode),u.headers&&(l[f]=u.headers)}),r&&(s=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:s,statusCode:o||200,loaderHeaders:l}}function np(A,e,t,r,n,i,s,o){let{loaderData:a,errors:l}=FU(e,t,r,n,o);for(let u=0;ur.route.id===e)+1):[...A]).reverse().find(r=>r.route.hasErrorBoundary===!0)||A[0]}function sp(A){let e=A.find(t=>t.index||!t.path||t.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function We(A,e){let{pathname:t,routeId:r,method:n,type:i}=e===void 0?{}:e,s="Unknown Server Error",o="Unknown @remix-run/router error";return A===400?(s="Bad Request",n&&t&&r?o="You made a "+n+' request to "'+t+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?o="defer() is not supported in actions":i==="invalid-body"&&(o="Unable to encode submission body")):A===403?(s="Forbidden",o='Route "'+r+'" does not match URL "'+t+'"'):A===404?(s="Not Found",o='No route matches URL "'+t+'"'):A===405&&(s="Method Not Allowed",n&&t&&r?o="You made a "+n.toUpperCase()+' request to "'+t+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":n&&(o='Invalid request method "'+n.toUpperCase()+'"')),new ih(A||500,s,new Error(o),!0)}function op(A){for(let e=A.length-1;e>=0;e--){let t=A[e];if(Zn(t))return{result:t,idx:e}}}function Sv(A){let e=typeof A=="string"?tr(A):A;return Xs(LA({},e,{hash:""}))}function UU(A,e){return A.pathname!==e.pathname||A.search!==e.search?!1:A.hash===""?e.hash!=="":A.hash===e.hash?!0:e.hash!==""}function $r(A){return A.type===GA.deferred}function cs(A){return A.type===GA.error}function Zn(A){return(A&&A.type)===GA.redirect}function EU(A){let e=A;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function SU(A){return A!=null&&typeof A.status=="number"&&typeof A.statusText=="string"&&typeof A.headers=="object"&&typeof A.body<"u"}function IU(A){return BU.has(A.toLowerCase())}function ht(A){return dU.has(A.toLowerCase())}async function ap(A,e,t,r,n,i){for(let s=0;sc.route.id===a.route.id),u=l!=null&&!Ev(l,a)&&(i&&i[a.route.id])!==void 0;if($r(o)&&(n||u)){let c=r[s];aA(c,"Expected an AbortSignal for revalidating fetcher deferred result"),await Iv(o,c,n).then(f=>{f&&(t[s]=f||t[s])})}}}async function Iv(A,e,t){if(t===void 0&&(t=!1),!await A.deferredData.resolveData(e)){if(t)try{return{type:GA.data,data:A.deferredData.unwrappedData}}catch(n){return{type:GA.error,error:n}}return{type:GA.data,data:A.deferredData.data}}}function sh(A){return new URLSearchParams(A).getAll("index").some(e=>e==="")}function HU(A,e){let{route:t,pathname:r,params:n}=A;return{id:t.id,pathname:r,params:n,data:e[t.id],handle:t.handle}}function Ef(A,e){let t=typeof e=="string"?tr(e).search:e.search;if(A[A.length-1].route.index&&sh(t||""))return A[A.length-1];let r=nh(A);return r[r.length-1]}function lp(A){let{formMethod:e,formAction:t,formEncType:r,text:n,formData:i,json:s}=A;if(!(!e||!t||!r)){if(n!=null)return{formMethod:e,formAction:t,formEncType:r,formData:void 0,json:void 0,text:n};if(i!=null)return{formMethod:e,formAction:t,formEncType:r,formData:i,json:void 0,text:void 0};if(s!==void 0)return{formMethod:e,formAction:t,formEncType:r,formData:void 0,json:s,text:void 0}}}function Io(A,e){return e?{state:"loading",location:A,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:A,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function xU(A,e){return{state:"submitting",location:A,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function Ri(A,e){return A?{state:"loading",formMethod:A.formMethod,formAction:A.formAction,formEncType:A.formEncType,formData:A.formData,json:A.json,text:A.text,data:e," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}function LU(A,e){return{state:"submitting",formMethod:A.formMethod,formAction:A.formAction,formEncType:A.formEncType,formData:A.formData,json:A.json,text:A.text,data:e?e.data:void 0," _hasFetcherDoneAnything ":!0}}function En(A){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:A," _hasFetcherDoneAnything ":!0}}/** - * React Router v6.15.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Za(){return Za=Object.assign?Object.assign.bind():function(A){for(var e=1;ea.pathnameBase)),s=K.useRef(!1);return Dv(()=>{s.current=!0}),K.useCallback(function(a,l){if(l===void 0&&(l={}),!s.current)return;if(typeof a=="number"){t.go(a);return}let u=yv(a,JSON.parse(i),n,l.relative==="path");A==null&&e!=="/"&&(u.pathname=u.pathname==="/"?e:Hr([e,u.pathname])),(l.replace?t.replace:t.push)(u,l.state,l)},[e,t,i,n,A])}const TU=K.createContext(null);function RU(A){let e=K.useContext(hn).outlet;return e&&K.createElement(TU.Provider,{value:A},e)}function OU(A,e,t){_l()||aA(!1);let{navigator:r}=K.useContext(Ml),{matches:n}=K.useContext(hn),i=n[n.length-1],s=i?i.params:{};i&&i.pathname;let o=i?i.pathnameBase:"/";i&&i.route;let a=Lv(),l;if(e){var u;let m=typeof e=="string"?tr(e):e;o==="/"||(u=m.pathname)!=null&&u.startsWith(o)||aA(!1),l=m}else l=a;let c=l.pathname||"/",f=o==="/"?c:c.slice(o.length)||"/",g=Nn(A,{pathname:f}),B=PU(g&&g.map(m=>Object.assign({},m,{params:Object.assign({},s,m.params),pathname:Hr([o,r.encodeLocation?r.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?o:Hr([o,r.encodeLocation?r.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),n,t);return e&&B?K.createElement(Kl.Provider,{value:{location:Za({pathname:"/",search:"",hash:"",state:null,key:"default"},l),navigationType:zA.Pop}},B):B}function bU(){let A=GU(),e=Qv(A)?A.status+" "+A.statusText:A instanceof Error?A.message:JSON.stringify(A),t=A instanceof Error?A.stack:null,n={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return K.createElement(K.Fragment,null,K.createElement("h2",null,"Unexpected Application Error!"),K.createElement("h3",{style:{fontStyle:"italic"}},e),t?K.createElement("pre",{style:n},t):null,i)}const MU=K.createElement(bU,null);class KU extends K.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?K.createElement(hn.Provider,{value:this.props.routeContext},K.createElement(xv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function _U(A){let{routeContext:e,match:t,children:r}=A,n=K.useContext(bl);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),K.createElement(hn.Provider,{value:e},r)}function PU(A,e,t){var r;if(e===void 0&&(e=[]),t===void 0&&(t=null),A==null){var n;if((n=t)!=null&&n.errors)A=t.matches;else return null}let i=A,s=(r=t)==null?void 0:r.errors;if(s!=null){let o=i.findIndex(a=>a.route.id&&(s==null?void 0:s[a.route.id]));o>=0||aA(!1),i=i.slice(0,Math.min(i.length,o+1))}return i.reduceRight((o,a,l)=>{let u=a.route.id?s==null?void 0:s[a.route.id]:null,c=null;t&&(c=a.route.errorElement||MU);let f=e.concat(i.slice(0,l+1)),g=()=>{let B;return u?B=c:a.route.Component?B=K.createElement(a.route.Component,null):a.route.element?B=a.route.element:B=o,K.createElement(_U,{match:a,routeContext:{outlet:o,matches:f,isDataRoute:t!=null},children:B})};return t&&(a.route.ErrorBoundary||a.route.errorElement||l===0)?K.createElement(KU,{location:t.location,revalidation:t.revalidation,component:c,error:u,children:g(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):g()},null)}var Tv=function(A){return A.UseBlocker="useBlocker",A.UseRevalidator="useRevalidator",A.UseNavigateStable="useNavigate",A}(Tv||{}),qa=function(A){return A.UseBlocker="useBlocker",A.UseLoaderData="useLoaderData",A.UseActionData="useActionData",A.UseRouteError="useRouteError",A.UseNavigation="useNavigation",A.UseRouteLoaderData="useRouteLoaderData",A.UseMatches="useMatches",A.UseRevalidator="useRevalidator",A.UseNavigateStable="useNavigate",A.UseRouteId="useRouteId",A}(qa||{});function NU(A){let e=K.useContext(bl);return e||aA(!1),e}function kU(A){let e=K.useContext(Hv);return e||aA(!1),e}function VU(A){let e=K.useContext(hn);return e||aA(!1),e}function Rv(A){let e=VU(),t=e.matches[e.matches.length-1];return t.route.id||aA(!1),t.route.id}function GU(){var A;let e=K.useContext(xv),t=kU(qa.UseRouteError),r=Rv(qa.UseRouteError);return e||((A=t.errors)==null?void 0:A[r])}function jU(){let{router:A}=NU(Tv.UseNavigateStable),e=Rv(qa.UseNavigateStable),t=K.useRef(!1);return Dv(()=>{t.current=!0}),K.useCallback(function(n,i){i===void 0&&(i={}),t.current&&(typeof n=="number"?A.navigate(n):A.navigate(n,Za({fromRouteId:e},i)))},[A,e])}const WU="startTransition",up=XC[WU];function zU(A){let{fallbackElement:e,router:t,future:r}=A,[n,i]=K.useState(t.state),{v7_startTransition:s}=r||{},o=K.useCallback(c=>{s&&up?up(()=>i(c)):i(c)},[i,s]);K.useLayoutEffect(()=>t.subscribe(o),[t,o]);let a=K.useMemo(()=>({createHref:t.createHref,encodeLocation:t.encodeLocation,go:c=>t.navigate(c),push:(c,f,g)=>t.navigate(c,{state:f,preventScrollReset:g==null?void 0:g.preventScrollReset}),replace:(c,f,g)=>t.navigate(c,{replace:!0,state:f,preventScrollReset:g==null?void 0:g.preventScrollReset})}),[t]),l=t.basename||"/",u=K.useMemo(()=>({router:t,navigator:a,static:!1,basename:l}),[t,a,l]);return K.createElement(K.Fragment,null,K.createElement(bl.Provider,{value:u},K.createElement(Hv.Provider,{value:n},K.createElement(YU,{basename:l,location:n.location,navigationType:n.historyAction,navigator:a},n.initialized?K.createElement(XU,{routes:t.routes,state:n}):e))),null)}function XU(A){let{routes:e,state:t}=A;return OU(e,void 0,t)}function JU(A){return RU(A.context)}function Nt(A){aA(!1)}function YU(A){let{basename:e="/",children:t=null,location:r,navigationType:n=zA.Pop,navigator:i,static:s=!1}=A;_l()&&aA(!1);let o=e.replace(/^\/*/,"/"),a=K.useMemo(()=>({basename:o,navigator:i,static:s}),[o,i,s]);typeof r=="string"&&(r=tr(r));let{pathname:l="/",search:u="",hash:c="",state:f=null,key:g="default"}=r,B=K.useMemo(()=>{let m=Js(l,o);return m==null?null:{location:{pathname:m,search:u,hash:c,state:f,key:g},navigationType:n}},[o,l,u,c,f,g,n]);return B==null?null:K.createElement(Ml.Provider,{value:a},K.createElement(Kl.Provider,{children:t,value:B}))}new Promise(()=>{});function Sf(A,e){e===void 0&&(e=[]);let t=[];return K.Children.forEach(A,(r,n)=>{if(!K.isValidElement(r))return;let i=[...e,n];if(r.type===K.Fragment){t.push.apply(t,Sf(r.props.children,i));return}r.type!==Nt&&aA(!1),!r.props.index||!r.props.children||aA(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Sf(r.props.children,i)),t.push(s)}),t}function ZU(A){let e={hasErrorBoundary:A.ErrorBoundary!=null||A.errorElement!=null};return A.Component&&Object.assign(e,{element:K.createElement(A.Component),Component:void 0}),A.ErrorBoundary&&Object.assign(e,{errorElement:K.createElement(A.ErrorBoundary),ErrorBoundary:void 0}),e}/** - * React Router DOM v6.15.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function $a(){return $a=Object.assign?Object.assign.bind():function(A){for(var e=1;et};return typeof A=="function"?r.read=A:(r.init=A,r.read=n=>n(r),r.write=(n,i,s)=>i(r,typeof s=="function"?s(n(r)):s)),e&&(r.write=e),r}const dp=A=>"init"in A,hp=A=>!!A.write,Al=new WeakMap,tE=(A,e)=>{Al.set(A,e),A.catch(()=>{}).finally(()=>Al.delete(A))},Bp=(A,e)=>{const t=Al.get(A);t&&(Al.delete(A),t(e))},pp=(A,e)=>{A.status="fulfilled",A.value=e},gp=(A,e)=>{A.status="rejected",A.reason=e},rE=A=>typeof(A==null?void 0:A.then)=="function",Ho=(A,e)=>"v"in A&&"v"in e&&Object.is(A.v,e.v),wp=(A,e)=>"e"in A&&"e"in e&&Object.is(A.e,e.e),Oi=A=>"v"in A&&A.v instanceof Promise,nE=(A,e)=>"v"in A&&"v"in e&&A.v.orig&&A.v.orig===e.v.orig,xo=A=>{if("e"in A)throw A.e;return A.v},iE=()=>{const A=new WeakMap,e=new WeakMap,t=new Map;let r,n;const i=v=>A.get(v),s=(v,E)=>{const H=A.get(v);if(A.set(v,E),t.has(v)||t.set(v,H),H&&Oi(H)){const b="v"in E?E.v instanceof Promise?E.v:Promise.resolve(E.v):Promise.reject(E.e);Bp(H.v,b)}},o=(v,E,H)=>{const b=new Map;let T=!1;H.forEach((x,N)=>{!x&&N===v&&(x=E),x&&(b.set(N,x),E.d.get(N)!==x&&(T=!0))}),(T||E.d.size!==b.size)&&(E.d=b)},a=(v,E,H)=>{const b=i(v),T={d:(b==null?void 0:b.d)||new Map,v:E};if(H&&o(v,T,H),b&&Ho(b,T)&&b.d===T.d)return b;if(b&&Oi(b)&&Oi(T)&&nE(b,T)){if(b.d===T.d)return b;T.v=b.v}return s(v,T),T},l=(v,E,H,b)=>{if(rE(E)){let T;const x=new Promise((N,$)=>{let eA=!1;E.then(W=>{if(!eA){eA=!0;const M=i(v),V=a(v,x,H);pp(x,W),N(W),(M==null?void 0:M.d)!==V.d&&C(v,V,M==null?void 0:M.d)}},W=>{if(!eA){eA=!0;const M=i(v),V=a(v,x,H);gp(x,W),$(W),(M==null?void 0:M.d)!==V.d&&C(v,V,M==null?void 0:M.d)}}),T=W=>{eA||(eA=!0,W.then(M=>pp(x,M),M=>gp(x,M)),N(W))}});return x.orig=E,x.status="pending",tE(x,N=>{N&&T(N),b==null||b()}),a(v,x,H)}return a(v,E,H)},u=(v,E,H)=>{const b=i(v),T={d:(b==null?void 0:b.d)||new Map,e:E};return H&&o(v,T,H),b&&wp(b,T)&&b.d===T.d?b:(s(v,T),T)},c=(v,E)=>{const H=i(v);if(!E&&H&&(e.has(v)||Array.from(H.d).every(([W,M])=>W===v||c(W)===M)))return H;const b=new Map;let T=!0;const x=W=>{if(W===v){const V=i(W);if(V)return b.set(W,V),xo(V);if(dp(W))return b.set(W,void 0),W.init;throw new Error("no atom init")}const M=c(W);return b.set(W,M),xo(M)};let N,$;const eA={get signal(){return N||(N=new AbortController),N.signal},get setSelf(){return!$&&hp(v)&&($=(...W)=>{if(!T)return d(v,...W)}),$}};try{const W=v.read(x,eA);return l(v,W,b,()=>N==null?void 0:N.abort())}catch(W){return u(v,W,b)}finally{T=!1}},f=v=>xo(c(v)),g=v=>{let E=e.get(v);return E||(E=w(v)),E},B=(v,E)=>!E.l.size&&(!E.t.size||E.t.size===1&&E.t.has(v)),m=v=>{const E=e.get(v);E&&B(v,E)&&h(v)},S=v=>{const E=new Map,H=new WeakMap,b=x=>{const N=e.get(x);N==null||N.t.forEach($=>{$!==x&&(E.set($,(E.get($)||new Set).add(x)),H.set($,(H.get($)||0)+1),b($))})};b(v);const T=x=>{const N=e.get(x);N==null||N.t.forEach($=>{var eA;if($!==x){let W=H.get($);if(W&&H.set($,--W),!W){let M=!!((eA=E.get($))!=null&&eA.size);if(M){const V=i($),q=c($,!0);M=!V||!Ho(V,q)}M||E.forEach(V=>V.delete($))}T($)}})};T(v)},p=(v,...E)=>{let H=!0;const b=N=>xo(c(N)),T=(N,...$)=>{let eA;if(N===v){if(!dp(N))throw new Error("atom not writable");const W=i(N),M=l(N,$[0]);(!W||!Ho(W,M))&&S(N)}else eA=p(N,...$);if(!H){const W=y()}return eA},x=v.write(b,T,...E);return H=!1,x},d=(v,...E)=>{const H=p(v,...E),b=y();return H},w=(v,E)=>{var H;(H=i(v))==null||H.d.forEach((T,x)=>{const N=e.get(x);N?N.t.add(v):x!==v&&w(x,v)}),c(v);const b={t:new Set(E&&[E]),l:new Set};if(e.set(v,b),hp(v)&&v.onMount){const T=v.onMount((...x)=>d(v,...x));T&&(b.u=T)}return b},h=v=>{var E;const H=(E=e.get(v))==null?void 0:E.u;H&&H(),e.delete(v);const b=i(v);b&&(Oi(b)&&Bp(b.v),b.d.forEach((T,x)=>{if(x!==v){const N=e.get(x);N&&(N.t.delete(v),B(x,N)&&h(x))}}))},C=(v,E,H)=>{const b=new Set(E.d.keys());H==null||H.forEach((T,x)=>{if(b.has(x)){b.delete(x);return}const N=e.get(x);N&&(N.t.delete(v),B(x,N)&&h(x))}),b.forEach(T=>{const x=e.get(T);x?x.t.add(v):e.has(v)&&w(T,v)})},y=()=>{let v;for(;t.size;){const E=Array.from(t);t.clear(),E.forEach(([H,b])=>{const T=i(H);if(T){T.d!==(b==null?void 0:b.d)&&C(H,T,b==null?void 0:b.d);const x=e.get(H);x&&!(b&&!Oi(b)&&(Ho(b,T)||wp(b,T)))&&x.l.forEach(N=>N())}})}};return{get:f,set:d,sub:(v,E)=>{const H=g(v),b=y(),T=H.l;return T.add(E),()=>{T.delete(E),m(v)}}}};let Wu;const sE=()=>(Wu||(Wu=iE()),Wu),oE=K.createContext(void 0),Ov=A=>{const e=K.useContext(oE);return(A==null?void 0:A.store)||e||sE()},aE=A=>typeof(A==null?void 0:A.then)=="function",lE=TA.use||(A=>{if(A.status==="pending")throw A;if(A.status==="fulfilled")return A.value;throw A.status==="rejected"?A.reason:(A.status="pending",A.then(e=>{A.status="fulfilled",A.value=e},e=>{A.status="rejected",A.reason=e}),A)});function uE(A,e){const t=Ov(e),[[r,n,i],s]=K.useReducer(l=>{const u=t.get(A);return Object.is(l[0],u)&&l[1]===t&&l[2]===A?l:[u,t,A]},void 0,()=>[t.get(A),t,A]);let o=r;(n!==t||i!==A)&&(s(),o=t.get(A));const a=e==null?void 0:e.delay;return K.useEffect(()=>{const l=t.sub(A,()=>{if(typeof a=="number"){setTimeout(s,a);return}s()});return s(),l},[t,A,a]),K.useDebugValue(o),aE(o)?lE(o):o}function cE(A,e){const t=Ov(e);return K.useCallback((...n)=>t.set(A,...n),[t,A])}function be(A,e){return[uE(A,e),cE(A,e)]}const fE=Symbol();function dE(A){const e=Pl(A,(t,r,n)=>{const i=typeof n=="function"?n(t(e)):n;r(e,i===fE?A:i)});return e}const oh=dE({}),hE=A=>{try{const e=window.localStorage.getItem(A);return e?JSON.parse(e):!1}catch(e){return console.error(e),!1}},BE=(A,e)=>{try{const t=JSON.stringify(e);return window.localStorage.setItem(A,t),!0}catch(t){return console.error(t),!1}},pE=A=>{try{return window.localStorage.removeItem(A),!0}catch(e){return console.error(e),!1}};var _r=(A=>(A.home="/",A.login="/login",A.setting="/setting",A.preview="/preview",A.schedule="/schedule",A.event="/event",A))(_r||{});const gE=()=>{const[,A]=be(oh),e=Kr();K.useEffect(()=>{const t=hE("user");if(!t){e(_r.login);return}A({...t})},[])},hi=Pl({}),ah=Pl({}),bv=Pl(!1),Mv="https://junction-asia-2023.github.io/just-label/svg/logo.svg",wE="https://junction-asia-2023.github.io/just-label/svg/back.svg",mE=()=>{const[{title:A,back:e}]=be(hi),t=Kr(),r=()=>{t(-1)};return A?F.jsxs("div",{className:"layout-title under-line",children:[F.jsx("div",{className:`left ${e?"has":""}`,children:e&&F.jsx("img",{src:wE,alt:"Back Logo",onClick:r})}),F.jsx("div",{className:"title",children:A==="CardMe"?F.jsx("div",{className:"logo",children:F.jsx("img",{className:"logo",src:Mv,alt:"logo"})}):A}),F.jsx("div",{className:"left"})]}):F.jsx("div",{className:"layout-title"})},vE="https://junction-asia-2023.github.io/just-label/svg/add.svg",CE=()=>{const[{text:A,add:e}]=be(ah),[,t]=be(bv);return A?F.jsx("div",{className:"layout-bottom",children:F.jsxs("div",{className:"layout-bottom-btn",onClick:()=>t(!0),children:[F.jsx("div",{className:"left",children:e&&F.jsx("img",{src:vE,alt:"Add Logo",width:20,height:20})}),F.jsx("div",{className:"title",children:A}),F.jsx("div",{className:"left"})]})}):null},yE=()=>(gE(),F.jsxs("div",{className:"layout-container",children:[F.jsx(mE,{}),F.jsx(JU,{}),F.jsx(CE,{})]})),QE=()=>{const[,A]=be(hi);K.useLayoutEffect(()=>{A({title:"CardMe"})},[])},FE="https://junction-asia-2023.github.io/just-label/png/yulim.png",UE=()=>{const[{email:A,department:e,name:t,position:r}]=be(oh);return F.jsxs("section",{className:"profile-box",children:[F.jsx("div",{className:"image-box",children:F.jsx("img",{className:"image",src:FE,alt:"profile"})}),F.jsxs("div",{className:"list-box",children:[F.jsxs("div",{className:"list",children:[F.jsx("div",{className:"name",children:"Name"}),F.jsx("div",{className:"description",children:t})]}),F.jsxs("div",{className:"list",children:[F.jsx("div",{className:"name",children:"Department"}),F.jsx("div",{className:"description",children:e})]}),F.jsxs("div",{className:"list",children:[F.jsx("div",{className:"name",children:"Email"}),F.jsx("div",{className:"description",children:A})]}),F.jsxs("div",{className:"list",children:[F.jsx("div",{className:"name",children:"Position"}),F.jsx("div",{className:"description",children:r})]})]})]})};const EE="https://junction-asia-2023.github.io/just-label/svg/active.svg",Nl="https://junction-asia-2023.github.io/just-label/svg/right.svg",SE=()=>{const A=Kr(),e=()=>A(_r.setting);return F.jsxs("section",{className:"active-box",onClick:e,children:[F.jsx("div",{className:"icon-box",children:F.jsx("img",{className:"icon",src:EE,alt:"active icon"})}),F.jsxs("div",{className:"content",children:[F.jsx("div",{className:"title",children:"Active"}),F.jsx("div",{className:"description",children:"Expressing myself"})]}),F.jsx("div",{children:F.jsx("img",{src:Nl,alt:"next"})})]})},mp=()=>F.jsx("div",{className:"gray-bar"}),IE="https://junction-asia-2023.github.io/just-label/svg/preview.svg",HE=()=>{const A=Kr(),e=()=>A(_r.preview);return F.jsxs("section",{className:"preview-box",onClick:e,children:[F.jsx("div",{className:"icon-box",children:F.jsx("img",{className:"icon",src:IE,alt:"preview icon"})}),F.jsx("div",{className:"content",children:F.jsx("div",{className:"title",children:"CardMe Preview"})}),F.jsx("div",{children:F.jsx("img",{src:Nl,alt:"next"})})]})},xE="https://junction-asia-2023.github.io/just-label/svg/schedule.svg",LE=()=>{const A=Kr(),e=()=>A(_r.schedule);return F.jsxs("section",{className:"preview-box",onClick:e,children:[F.jsx("div",{className:"icon-box",children:F.jsx("img",{className:"icon",src:xE,alt:"schedule icon"})}),F.jsx("div",{className:"content",children:F.jsx("div",{className:"title",children:"Schedule"})}),F.jsx("div",{children:F.jsx("img",{src:Nl,alt:"next"})})]})},DE="https://junction-asia-2023.github.io/just-label/svg/event.svg",TE=()=>{const A=Kr(),e=()=>A(_r.event);return F.jsxs("section",{className:"preview-box",onClick:e,children:[F.jsx("div",{className:"icon-box",children:F.jsx("img",{className:"icon",src:DE,alt:"event icon"})}),F.jsx("div",{className:"content",children:F.jsx("div",{className:"title",children:"Event"})}),F.jsx("div",{children:F.jsx("img",{src:Nl,alt:"next"})})]})},RE=()=>{const A=()=>{};return F.jsx("div",{className:"footer-box",children:F.jsx("div",{className:"description",onClick:A,children:"Do you need to modify information?"})})},OE=()=>(QE(),F.jsxs("div",{className:"home-container",children:[F.jsx(UE,{}),F.jsx(mp,{}),F.jsx(SE,{}),F.jsx(HE,{}),F.jsx(mp,{}),F.jsx(LE,{}),F.jsx(TE,{}),F.jsx(RE,{})]}));var Ys=A=>A.type==="checkbox",Vn=A=>A instanceof Date,Ee=A=>A==null;const Kv=A=>typeof A=="object";var Ae=A=>!Ee(A)&&!Array.isArray(A)&&Kv(A)&&!Vn(A),_v=A=>Ae(A)&&A.target?Ys(A.target)?A.target.checked:A.target.value:A,bE=A=>A.substring(0,A.search(/\.\d+(\.|$)/))||A,Pv=(A,e)=>A.has(bE(e)),ME=A=>{const e=A.constructor&&A.constructor.prototype;return Ae(e)&&e.hasOwnProperty("isPrototypeOf")},lh=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ft(A){let e;const t=Array.isArray(A);if(A instanceof Date)e=new Date(A);else if(A instanceof Set)e=new Set(A);else if(!(lh&&(A instanceof Blob||A instanceof FileList))&&(t||Ae(A)))if(e=t?[]:{},!t&&!ME(A))e=A;else for(const r in A)A.hasOwnProperty(r)&&(e[r]=Ft(A[r]));else return A;return e}var Zs=A=>Array.isArray(A)?A.filter(Boolean):[],jA=A=>A===void 0,z=(A,e,t)=>{if(!e||!Ae(A))return t;const r=Zs(e.split(/[,[\].]+?/)).reduce((n,i)=>Ee(n)?n:n[i],A);return jA(r)||r===A?jA(A[e])?t:A[e]:r};const el={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},pt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Kt={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},KE=TA.createContext(null),uh=()=>TA.useContext(KE);var Nv=(A,e,t,r=!0)=>{const n={defaultValues:e._defaultValues};for(const i in A)Object.defineProperty(n,i,{get:()=>{const s=i;return e._proxyFormState[s]!==pt.all&&(e._proxyFormState[s]=!r||pt.all),t&&(t[s]=!0),A[s]}});return n},ze=A=>Ae(A)&&!Object.keys(A).length,kv=(A,e,t,r)=>{t(A);const{name:n,...i}=A;return ze(i)||Object.keys(i).length>=Object.keys(e).length||Object.keys(i).find(s=>e[s]===(!r||pt.all))},Ba=A=>Array.isArray(A)?A:[A],Vv=(A,e,t)=>t&&e?A===e:!A||!e||A===e||Ba(A).some(r=>r&&(r.startsWith(e)||e.startsWith(r)));function ch(A){const e=TA.useRef(A);e.current=A,TA.useEffect(()=>{const t=!A.disabled&&e.current.subject&&e.current.subject.subscribe({next:e.current.next});return()=>{t&&t.unsubscribe()}},[A.disabled])}function _E(A){const e=uh(),{control:t=e.control,disabled:r,name:n,exact:i}=A||{},[s,o]=TA.useState(t._formState),a=TA.useRef(!0),l=TA.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=TA.useRef(n);return u.current=n,ch({disabled:r,next:c=>a.current&&Vv(u.current,c.name,i)&&kv(c,l.current,t._updateFormState)&&o({...t._formState,...c}),subject:t._subjects.state}),TA.useEffect(()=>(a.current=!0,l.current.isValid&&t._updateValid(!0),()=>{a.current=!1}),[t]),Nv(s,t,l.current,!1)}var Et=A=>typeof A=="string",Gv=(A,e,t,r,n)=>Et(A)?(r&&e.watch.add(A),z(t,A,n)):Array.isArray(A)?A.map(i=>(r&&e.watch.add(i),z(t,i))):(r&&(e.watchAll=!0),t);function PE(A){const e=uh(),{control:t=e.control,name:r,defaultValue:n,disabled:i,exact:s}=A||{},o=TA.useRef(r);o.current=r,ch({disabled:i,subject:t._subjects.values,next:u=>{Vv(o.current,u.name,s)&&l(Ft(Gv(o.current,t._names,u.values||t._formValues,!1,n)))}});const[a,l]=TA.useState(t._getWatch(r,n));return TA.useEffect(()=>t._removeUnmounted()),a}var fh=A=>/^\w*$/.test(A),jv=A=>Zs(A.replace(/["|']|\]/g,"").split(/\.|\[/));function FA(A,e,t){let r=-1;const n=fh(e)?[e]:jv(e),i=n.length,s=i-1;for(;++r{const l=r._options.shouldUnregister||n,u=(c,f)=>{const g=z(r._fields,c);g&&(g._f.mount=f)};if(u(t,!0),l){const c=Ft(z(r._options.defaultValues,t));FA(r._defaultValues,t,c),jA(z(r._formValues,t))&&FA(r._formValues,t,c)}return()=>{(i?l&&!r._state.action:l)?r.unregister(t):u(t,!1)}},[t,r,i,n]),{field:{name:t,value:s,onChange:TA.useCallback(l=>a.current.onChange({target:{value:_v(l),name:t},type:el.CHANGE}),[t]),onBlur:TA.useCallback(()=>a.current.onBlur({target:{value:z(r._formValues,t),name:t},type:el.BLUR}),[t,r]),ref:l=>{const u=z(r._fields,t);u&&l&&(u._f.ref={focus:()=>l.focus(),select:()=>l.select(),setCustomValidity:c=>l.setCustomValidity(c),reportValidity:()=>l.reportValidity()})}},formState:o,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!z(o.errors,t)},isDirty:{enumerable:!0,get:()=>!!z(o.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!z(o.touchedFields,t)},error:{enumerable:!0,get:()=>z(o.errors,t)}})}}const kE=A=>A.render(NE(A));var VE=(A,e,t,r,n)=>e?{...t[A],types:{...t[A]&&t[A].types?t[A].types:{},[r]:n||!0}}:{};const If=(A,e,t)=>{for(const r of t||Object.keys(A)){const n=z(A,r);if(n){const{_f:i,...s}=n;if(i&&e(i.name)){if(i.ref.focus){i.ref.focus();break}else if(i.refs&&i.refs[0].focus){i.refs[0].focus();break}}else Ae(s)&&If(s,e)}}};var vp=A=>({isOnSubmit:!A||A===pt.onSubmit,isOnBlur:A===pt.onBlur,isOnChange:A===pt.onChange,isOnAll:A===pt.all,isOnTouch:A===pt.onTouched}),Cp=(A,e,t)=>!t&&(e.watchAll||e.watch.has(A)||[...e.watch].some(r=>A.startsWith(r)&&/^\.\w+/.test(A.slice(r.length)))),GE=(A,e,t)=>{const r=Zs(z(A,t));return FA(r,"root",e[t]),FA(A,t,r),A},qn=A=>typeof A=="boolean",dh=A=>A.type==="file",gr=A=>typeof A=="function",tl=A=>{if(!lh)return!1;const e=A?A.ownerDocument:0;return A instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},pa=A=>Et(A),hh=A=>A.type==="radio",rl=A=>A instanceof RegExp;const yp={value:!1,isValid:!1},Qp={value:!0,isValid:!0};var Wv=A=>{if(Array.isArray(A)){if(A.length>1){const e=A.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:e,isValid:!!e.length}}return A[0].checked&&!A[0].disabled?A[0].attributes&&!jA(A[0].attributes.value)?jA(A[0].value)||A[0].value===""?Qp:{value:A[0].value,isValid:!0}:Qp:yp}return yp};const Fp={isValid:!1,value:null};var zv=A=>Array.isArray(A)?A.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,Fp):Fp;function Up(A,e,t="validate"){if(pa(A)||Array.isArray(A)&&A.every(pa)||qn(A)&&!A)return{type:t,message:pa(A)?A:"",ref:e}}var mn=A=>Ae(A)&&!rl(A)?A:{value:A,message:""},Ep=async(A,e,t,r,n)=>{const{ref:i,refs:s,required:o,maxLength:a,minLength:l,min:u,max:c,pattern:f,validate:g,name:B,valueAsNumber:m,mount:S,disabled:p}=A._f,d=z(e,B);if(!S||p)return{};const w=s?s[0]:i,h=T=>{r&&w.reportValidity&&(w.setCustomValidity(qn(T)?"":T||""),w.reportValidity())},C={},y=hh(i),U=Ys(i),v=y||U,E=(m||dh(i))&&jA(i.value)&&jA(d)||tl(i)&&i.value===""||d===""||Array.isArray(d)&&!d.length,H=VE.bind(null,B,t,C),b=(T,x,N,$=Kt.maxLength,eA=Kt.minLength)=>{const W=T?x:N;C[B]={type:T?$:eA,message:W,ref:i,...H(T?$:eA,W)}};if(n?!Array.isArray(d)||!d.length:o&&(!v&&(E||Ee(d))||qn(d)&&!d||U&&!Wv(s).isValid||y&&!zv(s).isValid)){const{value:T,message:x}=pa(o)?{value:!!o,message:o}:mn(o);if(T&&(C[B]={type:Kt.required,message:x,ref:w,...H(Kt.required,x)},!t))return h(x),C}if(!E&&(!Ee(u)||!Ee(c))){let T,x;const N=mn(c),$=mn(u);if(!Ee(d)&&!isNaN(d)){const eA=i.valueAsNumber||d&&+d;Ee(N.value)||(T=eA>N.value),Ee($.value)||(x=eA<$.value)}else{const eA=i.valueAsDate||new Date(d),W=q=>new Date(new Date().toDateString()+" "+q),M=i.type=="time",V=i.type=="week";Et(N.value)&&d&&(T=M?W(d)>W(N.value):V?d>N.value:eA>new Date(N.value)),Et($.value)&&d&&(x=M?W(d)+T.value,$=!Ee(x.value)&&d.length<+x.value;if((N||$)&&(b(N,T.message,x.message),!t))return h(C[B].message),C}if(f&&!E&&Et(d)){const{value:T,message:x}=mn(f);if(rl(T)&&!d.match(T)&&(C[B]={type:Kt.pattern,message:x,ref:i,...H(Kt.pattern,x)},!t))return h(x),C}if(g){if(gr(g)){const T=await g(d,e),x=Up(T,w);if(x&&(C[B]={...x,...H(Kt.validate,x.message)},!t))return h(x.message),C}else if(Ae(g)){let T={};for(const x in g){if(!ze(T)&&!t)break;const N=Up(await g[x](d,e),w,x);N&&(T={...N,...H(x,N.message)},h(N.message),t&&(C[B]=T))}if(!ze(T)&&(C[B]={ref:w,...T},!t))return C}}return h(!0),C};function jE(A,e){const t=e.slice(0,-1).length;let r=0;for(;r{for(const i of A)i.next&&i.next(n)},subscribe:n=>(A.push(n),{unsubscribe:()=>{A=A.filter(i=>i!==n)}}),unsubscribe:()=>{A=[]}}}var nl=A=>Ee(A)||!Kv(A);function An(A,e){if(nl(A)||nl(e))return A===e;if(Vn(A)&&Vn(e))return A.getTime()===e.getTime();const t=Object.keys(A),r=Object.keys(e);if(t.length!==r.length)return!1;for(const n of t){const i=A[n];if(!r.includes(n))return!1;if(n!=="ref"){const s=e[n];if(Vn(i)&&Vn(s)||Ae(i)&&Ae(s)||Array.isArray(i)&&Array.isArray(s)?!An(i,s):i!==s)return!1}}return!0}var Xv=A=>A.type==="select-multiple",zE=A=>hh(A)||Ys(A),Xu=A=>tl(A)&&A.isConnected,Jv=A=>{for(const e in A)if(gr(A[e]))return!0;return!1};function il(A,e={}){const t=Array.isArray(A);if(Ae(A)||t)for(const r in A)Array.isArray(A[r])||Ae(A[r])&&!Jv(A[r])?(e[r]=Array.isArray(A[r])?[]:{},il(A[r],e[r])):Ee(A[r])||(e[r]=!0);return e}function Yv(A,e,t){const r=Array.isArray(A);if(Ae(A)||r)for(const n in A)Array.isArray(A[n])||Ae(A[n])&&!Jv(A[n])?jA(e)||nl(t[n])?t[n]=Array.isArray(A[n])?il(A[n],[]):{...il(A[n])}:Yv(A[n],Ee(e)?{}:e[n],t[n]):t[n]=!An(A[n],e[n]);return t}var Ju=(A,e)=>Yv(A,e,il(e)),Zv=(A,{valueAsNumber:e,valueAsDate:t,setValueAs:r})=>jA(A)?A:e?A===""?NaN:A&&+A:t&&Et(A)?new Date(A):r?r(A):A;function Yu(A){const e=A.ref;if(!(A.refs?A.refs.every(t=>t.disabled):e.disabled))return dh(e)?e.files:hh(e)?zv(A.refs).value:Xv(e)?[...e.selectedOptions].map(({value:t})=>t):Ys(e)?Wv(A.refs).value:Zv(jA(e.value)?A.ref.value:e.value,A)}var XE=(A,e,t,r)=>{const n={};for(const i of A){const s=z(e,i);s&&FA(n,i,s._f)}return{criteriaMode:t,names:[...A],fields:n,shouldUseNativeValidation:r}},bi=A=>jA(A)?A:rl(A)?A.source:Ae(A)?rl(A.value)?A.value.source:A.value:A,JE=A=>A.mount&&(A.required||A.min||A.max||A.maxLength||A.minLength||A.pattern||A.validate);function Sp(A,e,t){const r=z(A,t);if(r||fh(t))return{error:r,name:t};const n=t.split(".");for(;n.length;){const i=n.join("."),s=z(e,i),o=z(A,i);if(s&&!Array.isArray(s)&&t!==i)return{name:t};if(o&&o.type)return{name:i,error:o};n.pop()}return{name:t}}var YE=(A,e,t,r,n)=>n.isOnAll?!1:!t&&n.isOnTouch?!(e||A):(t?r.isOnBlur:n.isOnBlur)?!A:(t?r.isOnChange:n.isOnChange)?A:!0,ZE=(A,e)=>!Zs(z(A,e)).length&&ae(A,e);const qE={mode:pt.onSubmit,reValidateMode:pt.onChange,shouldFocusError:!0};function $E(A={},e){let t={...qE,...A},r={submitCount:0,isDirty:!1,isLoading:gr(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},n={},i=Ae(t.defaultValues)||Ae(t.values)?Ft(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:Ft(i),o={action:!1,mount:!1,watch:!1},a={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0;const c={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:zu(),array:zu(),state:zu()},g=A.resetOptions&&A.resetOptions.keepDirtyValues,B=vp(t.mode),m=vp(t.reValidateMode),S=t.criteriaMode===pt.all,p=Q=>D=>{clearTimeout(u),u=setTimeout(Q,D)},d=async Q=>{if(c.isValid||Q){const D=t.resolver?ze((await E()).errors):await b(n,!0);D!==r.isValid&&f.state.next({isValid:D})}},w=Q=>c.isValidating&&f.state.next({isValidating:Q}),h=(Q,D=[],O,Z,G=!0,k=!0)=>{if(Z&&O){if(o.action=!0,k&&Array.isArray(z(n,Q))){const tA=O(z(n,Q),Z.argA,Z.argB);G&&FA(n,Q,tA)}if(k&&Array.isArray(z(r.errors,Q))){const tA=O(z(r.errors,Q),Z.argA,Z.argB);G&&FA(r.errors,Q,tA),ZE(r.errors,Q)}if(c.touchedFields&&k&&Array.isArray(z(r.touchedFields,Q))){const tA=O(z(r.touchedFields,Q),Z.argA,Z.argB);G&&FA(r.touchedFields,Q,tA)}c.dirtyFields&&(r.dirtyFields=Ju(i,s)),f.state.next({name:Q,isDirty:x(Q,D),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else FA(s,Q,D)},C=(Q,D)=>{FA(r.errors,Q,D),f.state.next({errors:r.errors})},y=(Q,D,O,Z)=>{const G=z(n,Q);if(G){const k=z(s,Q,jA(O)?z(i,Q):O);jA(k)||Z&&Z.defaultChecked||D?FA(s,Q,D?k:Yu(G._f)):eA(Q,k),o.mount&&d()}},U=(Q,D,O,Z,G)=>{let k=!1,tA=!1;const SA={name:Q};if(!O||Z){c.isDirty&&(tA=r.isDirty,r.isDirty=SA.isDirty=x(),k=tA!==SA.isDirty);const RA=An(z(i,Q),D);tA=z(r.dirtyFields,Q),RA?ae(r.dirtyFields,Q):FA(r.dirtyFields,Q,!0),SA.dirtyFields=r.dirtyFields,k=k||c.dirtyFields&&tA!==!RA}if(O){const RA=z(r.touchedFields,Q);RA||(FA(r.touchedFields,Q,O),SA.touchedFields=r.touchedFields,k=k||c.touchedFields&&RA!==O)}return k&&G&&f.state.next(SA),k?SA:{}},v=(Q,D,O,Z)=>{const G=z(r.errors,Q),k=c.isValid&&qn(D)&&r.isValid!==D;if(A.delayError&&O?(l=p(()=>C(Q,O)),l(A.delayError)):(clearTimeout(u),l=null,O?FA(r.errors,Q,O):ae(r.errors,Q)),(O?!An(G,O):G)||!ze(Z)||k){const tA={...Z,...k&&qn(D)?{isValid:D}:{},errors:r.errors,name:Q};r={...r,...tA},f.state.next(tA)}w(!1)},E=async Q=>t.resolver(s,t.context,XE(Q||a.mount,n,t.criteriaMode,t.shouldUseNativeValidation)),H=async Q=>{const{errors:D}=await E();if(Q)for(const O of Q){const Z=z(D,O);Z?FA(r.errors,O,Z):ae(r.errors,O)}else r.errors=D;return D},b=async(Q,D,O={valid:!0})=>{for(const Z in Q){const G=Q[Z];if(G){const{_f:k,...tA}=G;if(k){const SA=a.array.has(k.name),RA=await Ep(G,s,S,t.shouldUseNativeValidation&&!D,SA);if(RA[k.name]&&(O.valid=!1,D))break;!D&&(z(RA,k.name)?SA?GE(r.errors,RA,k.name):FA(r.errors,k.name,RA[k.name]):ae(r.errors,k.name))}tA&&await b(tA,D,O)}}return O.valid},T=()=>{for(const Q of a.unMount){const D=z(n,Q);D&&(D._f.refs?D._f.refs.every(O=>!Xu(O)):!Xu(D._f.ref))&&PA(Q)}a.unMount=new Set},x=(Q,D)=>(Q&&D&&FA(s,Q,D),!An(dA(),i)),N=(Q,D,O)=>Gv(Q,a,{...o.mount?s:jA(D)?i:Et(Q)?{[Q]:D}:D},O,D),$=Q=>Zs(z(o.mount?s:i,Q,A.shouldUnregister?z(i,Q,[]):[])),eA=(Q,D,O={})=>{const Z=z(n,Q);let G=D;if(Z){const k=Z._f;k&&(!k.disabled&&FA(s,Q,Zv(D,k)),G=tl(k.ref)&&Ee(D)?"":D,Xv(k.ref)?[...k.ref.options].forEach(tA=>tA.selected=G.includes(tA.value)):k.refs?Ys(k.ref)?k.refs.length>1?k.refs.forEach(tA=>(!tA.defaultChecked||!tA.disabled)&&(tA.checked=Array.isArray(G)?!!G.find(SA=>SA===tA.value):G===tA.value)):k.refs[0]&&(k.refs[0].checked=!!G):k.refs.forEach(tA=>tA.checked=tA.value===G):dh(k.ref)?k.ref.value="":(k.ref.value=G,k.ref.type||f.values.next({name:Q,values:{...s}})))}(O.shouldDirty||O.shouldTouch)&&U(Q,G,O.shouldTouch,O.shouldDirty,!0),O.shouldValidate&&q(Q)},W=(Q,D,O)=>{for(const Z in D){const G=D[Z],k=`${Q}.${Z}`,tA=z(n,k);(a.array.has(Q)||!nl(G)||tA&&!tA._f)&&!Vn(G)?W(k,G,O):eA(k,G,O)}},M=(Q,D,O={})=>{const Z=z(n,Q),G=a.array.has(Q),k=Ft(D);FA(s,Q,k),G?(f.array.next({name:Q,values:{...s}}),(c.isDirty||c.dirtyFields)&&O.shouldDirty&&f.state.next({name:Q,dirtyFields:Ju(i,s),isDirty:x(Q,k)})):Z&&!Z._f&&!Ee(k)?W(Q,k,O):eA(Q,k,O),Cp(Q,a)&&f.state.next({...r}),f.values.next({name:Q,values:{...s}}),!o.mount&&e()},V=async Q=>{const D=Q.target;let O=D.name,Z=!0;const G=z(n,O),k=()=>D.type?Yu(G._f):_v(Q);if(G){let tA,SA;const RA=k(),Ot=Q.type===el.BLUR||Q.type===el.FOCUS_OUT,pn=!JE(G._f)&&!t.resolver&&!z(r.errors,O)&&!G._f.deps||YE(Ot,z(r.touchedFields,O),r.isSubmitted,m,B),gn=Cp(O,a,Ot);FA(s,O,RA),Ot?(G._f.onBlur&&G._f.onBlur(Q),l&&l(0)):G._f.onChange&&G._f.onChange(Q);const Pr=U(O,RA,Ot,!1),lu=!ze(Pr)||gn;if(!Ot&&f.values.next({name:O,type:Q.type,values:{...s}}),pn)return c.isValid&&d(),lu&&f.state.next({name:O,...gn?{}:Pr});if(!Ot&&gn&&f.state.next({...r}),w(!0),t.resolver){const{errors:mi}=await E([O]),uu=Sp(r.errors,n,O),vi=Sp(mi,n,uu.name||O);tA=vi.error,O=vi.name,SA=ze(mi)}else tA=(await Ep(G,s,S,t.shouldUseNativeValidation))[O],Z=isNaN(RA)||RA===z(s,O,RA),Z&&(tA?SA=!1:c.isValid&&(SA=await b(n,!0)));Z&&(G._f.deps&&q(G._f.deps),v(O,SA,tA,Pr))}},q=async(Q,D={})=>{let O,Z;const G=Ba(Q);if(w(!0),t.resolver){const k=await H(jA(Q)?Q:G);O=ze(k),Z=Q?!G.some(tA=>z(k,tA)):O}else Q?(Z=(await Promise.all(G.map(async k=>{const tA=z(n,k);return await b(tA&&tA._f?{[k]:tA}:tA)}))).every(Boolean),!(!Z&&!r.isValid)&&d()):Z=O=await b(n);return f.state.next({...!Et(Q)||c.isValid&&O!==r.isValid?{}:{name:Q},...t.resolver||!Q?{isValid:O}:{},errors:r.errors,isValidating:!1}),D.shouldFocus&&!Z&&If(n,k=>k&&z(r.errors,k),Q?G:a.mount),Z},dA=Q=>{const D={...i,...o.mount?s:{}};return jA(Q)?D:Et(Q)?z(D,Q):Q.map(O=>z(D,O))},pA=(Q,D)=>({invalid:!!z((D||r).errors,Q),isDirty:!!z((D||r).dirtyFields,Q),isTouched:!!z((D||r).touchedFields,Q),error:z((D||r).errors,Q)}),te=Q=>{Q&&Ba(Q).forEach(D=>ae(r.errors,D)),f.state.next({errors:Q?r.errors:{}})},uA=(Q,D,O)=>{const Z=(z(n,Q,{_f:{}})._f||{}).ref;FA(r.errors,Q,{...D,ref:Z}),f.state.next({name:Q,errors:r.errors,isValid:!1}),O&&O.shouldFocus&&Z&&Z.focus&&Z.focus()},_A=(Q,D)=>gr(Q)?f.values.subscribe({next:O=>Q(N(void 0,D),O)}):N(Q,D,!0),PA=(Q,D={})=>{for(const O of Q?Ba(Q):a.mount)a.mount.delete(O),a.array.delete(O),D.keepValue||(ae(n,O),ae(s,O)),!D.keepError&&ae(r.errors,O),!D.keepDirty&&ae(r.dirtyFields,O),!D.keepTouched&&ae(r.touchedFields,O),!t.shouldUnregister&&!D.keepDefaultValue&&ae(i,O);f.values.next({values:{...s}}),f.state.next({...r,...D.keepDirty?{isDirty:x()}:{}}),!D.keepIsValid&&d()},Be=(Q,D={})=>{let O=z(n,Q);const Z=qn(D.disabled);return FA(n,Q,{...O||{},_f:{...O&&O._f?O._f:{ref:{name:Q}},name:Q,mount:!0,...D}}),a.mount.add(Q),O?Z&&FA(s,Q,D.disabled?void 0:z(s,Q,Yu(O._f))):y(Q,!0,D.value),{...Z?{disabled:D.disabled}:{},...t.progressive?{required:!!D.required,min:bi(D.min),max:bi(D.max),minLength:bi(D.minLength),maxLength:bi(D.maxLength),pattern:bi(D.pattern)}:{},name:Q,onChange:V,onBlur:V,ref:G=>{if(G){Be(Q,D),O=z(n,Q);const k=jA(G.value)&&G.querySelectorAll&&G.querySelectorAll("input,select,textarea")[0]||G,tA=zE(k),SA=O._f.refs||[];if(tA?SA.find(RA=>RA===k):k===O._f.ref)return;FA(n,Q,{_f:{...O._f,...tA?{refs:[...SA.filter(Xu),k,...Array.isArray(z(i,Q))?[{}]:[]],ref:{type:k.type,name:Q}}:{ref:k}}}),y(Q,!1,void 0,k)}else O=z(n,Q,{}),O._f&&(O._f.mount=!1),(t.shouldUnregister||D.shouldUnregister)&&!(Pv(a.array,Q)&&o.action)&&a.unMount.add(Q)}}},nt=()=>t.shouldFocusError&&If(n,Q=>Q&&z(r.errors,Q),a.mount),so=(Q,D)=>async O=>{O&&(O.preventDefault&&O.preventDefault(),O.persist&&O.persist());let Z=Ft(s);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:G,values:k}=await E();r.errors=G,Z=k}else await b(n);ae(r.errors,"root"),ze(r.errors)?(f.state.next({errors:{}}),await Q(Z,O)):(D&&await D({...r.errors},O),nt(),setTimeout(nt)),f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ze(r.errors),submitCount:r.submitCount+1,errors:r.errors})},au=(Q,D={})=>{z(n,Q)&&(jA(D.defaultValue)?M(Q,z(i,Q)):(M(Q,D.defaultValue),FA(i,Q,D.defaultValue)),D.keepTouched||ae(r.touchedFields,Q),D.keepDirty||(ae(r.dirtyFields,Q),r.isDirty=D.defaultValue?x(Q,z(i,Q)):x()),D.keepError||(ae(r.errors,Q),c.isValid&&d()),f.state.next({...r}))},wi=(Q,D={})=>{const O=Q||i,Z=Ft(O),G=Q&&!ze(Q)?Z:i;if(D.keepDefaultValues||(i=O),!D.keepValues){if(D.keepDirtyValues||g)for(const k of a.mount)z(r.dirtyFields,k)?FA(G,k,z(s,k)):M(k,z(G,k));else{if(lh&&jA(Q))for(const k of a.mount){const tA=z(n,k);if(tA&&tA._f){const SA=Array.isArray(tA._f.refs)?tA._f.refs[0]:tA._f.ref;if(tl(SA)){const RA=SA.closest("form");if(RA){RA.reset();break}}}}n={}}s=A.shouldUnregister?D.keepDefaultValues?Ft(i):{}:Ft(G),f.array.next({values:{...G}}),f.values.next({values:{...G}})}a={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!o.mount&&e(),o.mount=!c.isValid||!!D.keepIsValid,o.watch=!!A.shouldUnregister,f.state.next({submitCount:D.keepSubmitCount?r.submitCount:0,isDirty:D.keepDirty?r.isDirty:!!(D.keepDefaultValues&&!An(Q,i)),isSubmitted:D.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:D.keepDirtyValues?r.dirtyFields:D.keepDefaultValues&&Q?Ju(i,Q):{},touchedFields:D.keepTouched?r.touchedFields:{},errors:D.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},oo=(Q,D)=>wi(gr(Q)?Q(s):Q,D);return{control:{register:Be,unregister:PA,getFieldState:pA,handleSubmit:so,setError:uA,_executeSchema:E,_getWatch:N,_getDirty:x,_updateValid:d,_removeUnmounted:T,_updateFieldArray:h,_getFieldArray:$,_reset:wi,_resetDefaultValues:()=>gr(t.defaultValues)&&t.defaultValues().then(Q=>{oo(Q,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:Q=>{r={...r,...Q}},_subjects:f,_proxyFormState:c,get _fields(){return n},get _formValues(){return s},get _state(){return o},set _state(Q){o=Q},get _defaultValues(){return i},get _names(){return a},set _names(Q){a=Q},get _formState(){return r},set _formState(Q){r=Q},get _options(){return t},set _options(Q){t={...t,...Q}}},trigger:q,register:Be,handleSubmit:so,watch:_A,setValue:M,getValues:dA,reset:oo,resetField:au,clearErrors:te,unregister:PA,setError:uA,setFocus:(Q,D={})=>{const O=z(n,Q),Z=O&&O._f;if(Z){const G=Z.refs?Z.refs[0]:Z.ref;G.focus&&(G.focus(),D.shouldSelect&&G.select())}},getFieldState:pA}}function qv(A={}){const e=TA.useRef(),t=TA.useRef(),[r,n]=TA.useState({isDirty:!1,isValidating:!1,isLoading:gr(A.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:gr(A.defaultValues)?void 0:A.defaultValues});e.current||(e.current={...$E(A,()=>n(s=>({...s}))),formState:r});const i=e.current.control;return i._options=A,ch({subject:i._subjects.state,next:s=>{kv(s,i._proxyFormState,i._updateFormState,!0)&&n({...i._formState})}}),TA.useEffect(()=>{A.values&&!An(A.values,t.current)?(i._reset(A.values,i._options.resetOptions),t.current=A.values):i._resetDefaultValues()},[A.values,i]),TA.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),e.current.formState=Nv(r,i),e.current}const Zu={name:"Yulim",email:"1ilsang@naver.com",companyNo:"JS1234",password:"just",department:"Social Dev1",position:"Software Engineer"},AS=()=>{const[,A]=be(oh),{register:e,handleSubmit:t,formState:{errors:r}}=qv(),n=s=>{if(Zu.email!==s.email||Zu.password!==s.password){alert("'No user information'");return}const o={...Zu};delete o.password,A({...o}),BE("user",o),i(_r.home)},i=Kr();return{errors:r,register:e,handleSubmit:t,onSubmit:n}};const eS=()=>{const{errors:A,register:e,handleSubmit:t,onSubmit:r}=AS();return F.jsxs("div",{className:"login-container",children:[F.jsx("img",{src:Mv,alt:"cardme logo"}),F.jsxs("form",{onSubmit:t(r),children:[F.jsxs("div",{className:"input-group",children:[F.jsx("label",{children:"Email"}),F.jsx("input",{type:"text",placeholder:"Please enter your email",...e("email",{required:!0}),"area-invalid":A.email?"true":"false"})]}),F.jsxs("div",{className:"input-group",children:[F.jsx("label",{children:"Password"}),F.jsx("input",{type:"password",placeholder:"Please enter your password",...e("password",{required:!0}),"aria-invalid":A.password?"true":"false"})]}),(A.email||A.password)&&F.jsx("div",{children:"Please enter your email or password"}),F.jsx("a",{href:"#",children:"Forgot your password?"}),A.dataError&&F.jsx("div",{children:A.dataError.message}),F.jsx("input",{type:"submit",value:"Login"})]}),F.jsx("a",{href:"#",children:"Not signed up yet?"})]})},tS=()=>{const{register:A,handleSubmit:e,control:t}=qv({defaultValues:{mude:"",comment:""}}),r=Kr();return{register:A,handleSubmit:e,control:t,onSubmit:s=>console.log(s),handlePreviewClick:()=>{r(_r.preview)}}};const rS=["mood_BAD","mood_GOOD"],nS="What is the Active Setting?",iS="Congratulations on winning! Press the button to get a giftCongratulations on winning! Press the button to get a giftCongratulations on winning!",sS="Word of the day",oS="Word of the Sticker",aS=({handlePreviewClick:A})=>F.jsxs("div",{className:"setting-preview-container",children:[F.jsx("div",{className:"setting-preview-title-text",children:nS}),F.jsx("div",{className:"setting-preview-sub-text",children:iS}),F.jsx("button",{className:"setting-preview-btn",onClick:A,children:"Preview"})]}),lS="https://junction-asia-2023.github.io/just-label/png/mood_BAD.png",uS="https://junction-asia-2023.github.io/just-label/png/mood_GOOD.png",cS=({control:A})=>F.jsxs("div",{className:"setting-sticker-container",children:[F.jsx("span",{className:"setting-sticker-title",children:oS}),F.jsx(kE,{name:"mude",control:A,rules:{required:!0},render:({field:e})=>F.jsx("div",{className:"setting-sticker-box",...e,children:rS.map(t=>F.jsxs("label",{htmlFor:t,className:"setting-sticker-width",children:[F.jsx("input",{type:"radio",id:t,name:e.name,value:t,checked:e.value===t,onChange:r=>{e.onChange(r.target.value)}}),F.jsx("img",{src:t==="mood_BAD"?lS:uS,className:"logo react",alt:"React logo"})]},t))})})]}),fS=({register:A})=>F.jsxs("div",{className:"setting-word-container",children:[F.jsx("span",{className:"setting-word-title",children:sS}),F.jsx("input",{className:"setting-word-input",...A("comment")})]}),dS=({handleSubmit:A,onSubmit:e,register:t,control:r})=>{const[n,i]=be(bv),s=K.useRef(null);return K.useEffect(()=>{var o;n&&(i(!1),(o=s.current)==null||o.click())},[n]),F.jsxs("form",{onSubmit:A(e),children:[F.jsx(fS,{register:t}),F.jsx(cS,{control:r}),F.jsx("input",{ref:s,type:"submit",style:{visibility:"hidden"}})]})},hS=()=>{const[,A]=be(hi),[,e]=be(ah),{handlePreviewClick:t,handleSubmit:r,onSubmit:n,register:i,control:s}=tS();return K.useLayoutEffect(()=>(A({title:"Active",back:!0}),e({text:"Save"}),()=>{A({}),e({})}),[]),F.jsxs("div",{className:"setting-container",children:[F.jsx(aS,{handlePreviewClick:t}),F.jsx(dS,{handleSubmit:r,onSubmit:n,register:i,control:s})]})},BS=()=>F.jsx("div",{children:"Error!"});const pS=()=>{const A=()=>{pE("user"),window.location.reload()};return F.jsxs("div",{className:"not-found",children:[F.jsx("span",{children:"404"}),F.jsx("button",{onClick:A,children:"Go Home"})]})};const gS=()=>F.jsxs("div",{className:"preview-bottom-text-container",children:[F.jsx("div",{className:"preview-bottom-title-text",children:"My Profile"}),F.jsx("div",{className:"preview-bottom-sub-text",children:"My basic information is displayed."})]}),wS=[{labelId:"085C1B1FE1D7",productId:"JC000001",productName:"test_product_1"},{labelId:"085C1B25E1DE",productId:"JC000002",productName:"test_product_2"},{labelId:"085C1B45E1D8",productId:"JC000003",productName:"test_product_3"},{labelId:"085C1B47E1DA",productId:"JC000004",productName:"test_product_4"},{labelId:"085C1B46E1DB",productId:"JC000005",productName:"test_product_5"}],mS="https://stage00.common.solumesl.com/common/api/v2/common/labels/image?company=JC01&store=1111",vS="eyJhbGciOiJSUzI1NiIsImtpZCI6Ilg1ZVhrNHh5b2pORnVtMWtsMll0djhkbE5QNC1jNTdkTzZRR1RWQndhTmsiLCJ0eXAiOiJKV1QifQ.eyJpZHAiOiJMb2NhbEFjY291bnQiLCJvaWQiOiI3ZjViOTAxNy04ZDU0LTQ4OTYtYTZhNi03ZDQxMGM1MmJiMzAiLCJzdWIiOiI3ZjViOTAxNy04ZDU0LTQ4OTYtYTZhNi03ZDQxMGM1MmJiMzAiLCJuYW1lIjoiMTNwZnQxMyIsIm5ld1VzZXIiOmZhbHNlLCJleHRlbnNpb25fQWRtaW5BcHByb3ZlZCI6dHJ1ZSwiZXh0ZW5zaW9uX0N1c3RvbWVyQ29kZSI6IkpDMDEiLCJleHRlbnNpb25fQ3VzdG9tZXJMZXZlbCI6IjEiLCJlbWFpbHMiOlsiMTNwZnQxM0BnbWFpbC5jb20iXSwidGZwIjoiQjJDXzFfUk9QQ19BdXRoIiwiYXpwIjoiZTA4ZTU0ZmYtNWJiMS00YWU3LWFmZGUtYjljZGM4ZmEyM2FlIiwidmVyIjoiMS4wIiwiaWF0IjoxNjkyNDI0NTg5LCJhdWQiOiJlMDhlNTRmZi01YmIxLTRhZTctYWZkZS1iOWNkYzhmYTIzYWUiLCJleHAiOjE2OTI1MTA5ODksImlzcyI6Imh0dHBzOi8vc29sdW1iMmMuYjJjbG9naW4uY29tL2IwYzhlM2Q5LTA4ZmEtNDg3YS1hZmYxLTg1YmFlMTFmYzZjNS92Mi4wLyIsIm5iZiI6MTY5MjQyNDU4OX0.Zd_GeM7C8p03XKMH8gpo3QjeADeY6CW7t3ZLUA3V9NeF6sgHuf_nZGuT46L_9eca1JcbmrIZK1KbCyfVScSaRXhgQ71r627bC05NcJcxNHnsUGSBtihngLvegSNiyC_i7uARyIyEumYasMIUAyuHzVg5PrAyokgb_nY6WfkL2_6yyK5yHf1uNmEZkY-Kq_C4qhn_uplc3KWhXyLwKC_9dDT6ZF0_kBPowok87tAThH4VZNniWcxcTABHEMD9aNeIsCr9axUwU_J9yuMgF9OtKkTWZkWrvLcc8sEKYbGfyvxhtQ2AzyOHKg8re32S5YEVgvTcXVyFng5gIo-_WUm6Zg",Mi=wS[2],$v=250,A0=122;/*! - * html2canvas 1.4.1 - * Copyright (c) 2022 Niklas von Hertzen - * Released under MIT License - *//*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Hf=function(A,e){return Hf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},Hf(A,e)};function vt(A,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Hf(A,e);function t(){this.constructor=A}A.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var xf=function(){return xf=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=55296&&n<=56319&&t>10)+55296,s%1024+56320)),(n+1===t||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},Ip="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yS=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Do=0;Do"u"?[]:new Uint8Array(256);for(var To=0;To>4,u[n++]=(s&15)<<4|o>>2,u[n++]=(o&3)<<6|a&63;return l},FS=function(A){for(var e=A.length,t=[],r=0;r>nn,SS=1<>nn,HS=e0+IS,xS=HS,LS=32,DS=xS+LS,TS=65536>>Bh,RS=1<=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>nn],t=(t<>nn)],t=(t<>Bh),t=this.index[t],t+=e>>nn&OS,t=this.index[t],t=(t<"u"?[]:new Uint8Array(256);for(var Ro=0;RoDp?(n.push(!0),o-=Dp):n.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return r.push(s),t.push(Tf);if(o===kS||o===Lf){if(s===0)return r.push(s),t.push(zr);var a=t[s-1];return YS.indexOf(a)===-1?(r.push(r[s-1]),t.push(a)):(r.push(s),t.push(zr))}if(r.push(s),o===zS)return t.push(e==="strict"?Rf:Ms);if(o===i0||o===WS)return t.push(zr);if(o===XS)return i>=131072&&i<=196605||i>=196608&&i<=262141?t.push(Ms):t.push(zr);t.push(o)}),[r,t,n]},tc=function(A,e,t,r){var n=r[t];if(Array.isArray(A)?A.indexOf(n)!==-1:A===n)for(var i=t;i<=r.length;){i++;var s=r[i];if(s===e)return!0;if(s!==wr)break}if(n===wr)for(var i=t;i>0;){i--;var o=r[i];if(Array.isArray(A)?A.indexOf(o)!==-1:A===o)for(var a=t;a<=r.length;){a++;var s=r[a];if(s===e)return!0;if(s!==wr)break}if(o!==wr)break}return!1},_p=function(A,e){for(var t=A;t>=0;){var r=e[t];if(r===wr)t--;else return r}return 0},$S=function(A,e,t,r,n){if(t[r]===0)return cA;var i=r-1;if(Array.isArray(n)&&n[i]===!0)return cA;var s=i-1,o=i+1,a=e[i],l=s>=0?e[s]:0,u=e[o];if(a===t0&&u===r0)return cA;if(Pf.indexOf(a)!==-1)return s0;if(Pf.indexOf(u)!==-1||o0.indexOf(u)!==-1)return cA;if(_p(i,e)===n0)return Ko;if(_f.get(A[i])===Lf||(a===bo||a===Mo)&&_f.get(A[o])===Lf||a===Tp||u===Tp||a===Rp||[wr,Df,Ji].indexOf(a)===-1&&u===Rp||[Oo,Ki,jS,vn,Cn].indexOf(u)!==-1||_p(i,e)===_i||tc(Ac,_i,i,e)||tc([Oo,Ki],Rf,i,e)||tc(Op,Op,i,e))return cA;if(a===wr)return Ko;if(a===Ac||u===Ac)return cA;if(u===Tf||a===Tf)return Ko;if([Df,Ji,Rf].indexOf(u)!==-1||a===GS||l===Mf&&ZS.indexOf(a)!==-1||a===Cn&&u===Mf||u===bp||_t.indexOf(u)!==-1&&a===Me||_t.indexOf(a)!==-1&&u===Me||a===Zi&&[Ms,bo,Mo].indexOf(u)!==-1||[Ms,bo,Mo].indexOf(a)!==-1&&u===Yi||_t.indexOf(a)!==-1&&Mp.indexOf(u)!==-1||Mp.indexOf(a)!==-1&&_t.indexOf(u)!==-1||[Zi,Yi].indexOf(a)!==-1&&(u===Me||[_i,Ji].indexOf(u)!==-1&&e[o+1]===Me)||[_i,Ji].indexOf(a)!==-1&&u===Me||a===Me&&[Me,Cn,vn].indexOf(u)!==-1)return cA;if([Me,Cn,vn,Oo,Ki].indexOf(u)!==-1)for(var c=i;c>=0;){var f=e[c];if(f===Me)return cA;if([Cn,vn].indexOf(f)!==-1)c--;else break}if([Zi,Yi].indexOf(u)!==-1)for(var c=[Oo,Ki].indexOf(a)!==-1?s:i;c>=0;){var f=e[c];if(f===Me)return cA;if([Cn,vn].indexOf(f)!==-1)c--;else break}if(Kf===a&&[Kf,ga,Of,bf].indexOf(u)!==-1||[ga,Of].indexOf(a)!==-1&&[ga,wa].indexOf(u)!==-1||[wa,bf].indexOf(a)!==-1&&u===wa||Kp.indexOf(a)!==-1&&[bp,Yi].indexOf(u)!==-1||Kp.indexOf(u)!==-1&&a===Zi||_t.indexOf(a)!==-1&&_t.indexOf(u)!==-1||a===vn&&_t.indexOf(u)!==-1||_t.concat(Me).indexOf(a)!==-1&&u===_i&&JS.indexOf(A[o])===-1||_t.concat(Me).indexOf(u)!==-1&&a===Ki)return cA;if(a===ec&&u===ec){for(var g=t[i],B=1;g>0&&(g--,e[g]===ec);)B++;if(B%2!==0)return cA}return a===bo&&u===Mo?cA:Ko},A1=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=qS(A,e.lineBreak),r=t[0],n=t[1],i=t[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(n=n.map(function(o){return[Me,zr,i0].indexOf(o)!==-1?Ms:o}));var s=e.wordBreak==="keep-all"?i.map(function(o,a){return o&&A[a]>=19968&&A[a]<=40959}):void 0;return[r,n,s]},e1=function(){function A(e,t,r,n){this.codePoints=e,this.required=t===s0,this.start=r,this.end=n}return A.prototype.slice=function(){return VA.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),t1=function(A,e){var t=Vl(A),r=A1(t,e),n=r[0],i=r[1],s=r[2],o=t.length,a=0,l=0;return{next:function(){if(l>=o)return{done:!0,value:null};for(var u=cA;l=a0&&A<=57},b1=function(A){return A>=55296&&A<=57343},yn=function(A){return ve(A)||A>=c0&&A<=d0||A>=l0&&A<=L1},M1=function(A){return A>=l0&&A<=T1},K1=function(A){return A>=c0&&A<=O1},_1=function(A){return M1(A)||K1(A)},P1=function(A){return A>=C1},Vo=function(A){return A===sl||A===i1||A===s1},ol=function(A){return _1(A)||P1(A)||A===u1},Gp=function(A){return ol(A)||ve(A)||A===xe},N1=function(A){return A>=U1&&A<=E1||A===S1||A>=I1&&A<=H1||A===x1},fr=function(A,e){return A!==fs?!1:e!==sl},Go=function(A,e,t){return A===xe?ol(e)||fr(e,t):ol(A)?!0:!!(A===fs&&fr(A,e))},nc=function(A,e,t){return A===en||A===xe?ve(e)?!0:e===Ks&&ve(t):ve(A===Ks?e:A)},k1=function(A){var e=0,t=1;(A[e]===en||A[e]===xe)&&(A[e]===xe&&(t=-1),e++);for(var r=[];ve(A[e]);)r.push(A[e++]);var n=r.length?parseInt(VA.apply(void 0,r),10):0;A[e]===Ks&&e++;for(var i=[];ve(A[e]);)i.push(A[e++]);var s=i.length,o=s?parseInt(VA.apply(void 0,i),10):0;(A[e]===f0||A[e]===u0)&&e++;var a=1;(A[e]===en||A[e]===xe)&&(A[e]===xe&&(a=-1),e++);for(var l=[];ve(A[e]);)l.push(A[e++]);var u=l.length?parseInt(VA.apply(void 0,l),10):0;return t*(n+o*Math.pow(10,-s))*Math.pow(10,a*u)},V1={type:2},G1={type:3},j1={type:4},W1={type:13},z1={type:8},X1={type:21},J1={type:9},Y1={type:10},Z1={type:11},q1={type:12},$1={type:14},jo={type:23},AI={type:1},eI={type:25},tI={type:24},rI={type:26},nI={type:27},iI={type:28},sI={type:29},oI={type:31},Nf={type:32},h0=function(){function A(){this._value=[]}return A.prototype.write=function(e){this._value=this._value.concat(Vl(e))},A.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Nf;)e.push(t),t=this.consumeToken();return e},A.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case _o:return this.consumeStringToken(_o);case o1:var t=this.peekCodePoint(0),r=this.peekCodePoint(1),n=this.peekCodePoint(2);if(Gp(t)||fr(r,n)){var i=Go(t,r,n)?n1:r1,s=this.consumeName();return{type:5,value:s,flags:i}}break;case a1:if(this.peekCodePoint(0)===Pi)return this.consumeCodePoint(),W1;break;case Po:return this.consumeStringToken(Po);case No:return V1;case Ni:return G1;case rc:if(this.peekCodePoint(0)===Pi)return this.consumeCodePoint(),$1;break;case en:if(nc(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case y1:return j1;case xe:var o=e,a=this.peekCodePoint(0),l=this.peekCodePoint(1);if(nc(o,a,l))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(Go(o,a,l))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(a===xe&&l===d1)return this.consumeCodePoint(),this.consumeCodePoint(),tI;break;case Ks:if(nc(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Np:if(this.peekCodePoint(0)===rc)for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(u===rc&&(u=this.consumeCodePoint(),u===Np))return this.consumeToken();if(u===yt)return this.consumeToken()}break;case Q1:return rI;case F1:return nI;case f1:if(this.peekCodePoint(0)===c1&&this.peekCodePoint(1)===xe&&this.peekCodePoint(2)===xe)return this.consumeCodePoint(),this.consumeCodePoint(),eI;break;case h1:var c=this.peekCodePoint(0),f=this.peekCodePoint(1),g=this.peekCodePoint(2);if(Go(c,f,g)){var s=this.consumeName();return{type:7,value:s}}break;case B1:return iI;case fs:if(fr(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case p1:return sI;case g1:if(this.peekCodePoint(0)===Pi)return this.consumeCodePoint(),z1;break;case w1:return Z1;case m1:return q1;case D1:case R1:var B=this.peekCodePoint(0),m=this.peekCodePoint(1);return B===en&&(yn(m)||m===ko)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case kp:if(this.peekCodePoint(0)===Pi)return this.consumeCodePoint(),J1;if(this.peekCodePoint(0)===kp)return this.consumeCodePoint(),X1;break;case v1:if(this.peekCodePoint(0)===Pi)return this.consumeCodePoint(),Y1;break;case yt:return Nf}return Vo(e)?(this.consumeWhiteSpace(),oI):ve(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):ol(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:VA(e)}},A.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},A.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},A.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},A.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();yn(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var r=!1;t===ko&&e.length<6;)e.push(t),t=this.consumeCodePoint(),r=!0;if(r){var n=parseInt(VA.apply(void 0,e.map(function(a){return a===ko?a0:a})),16),i=parseInt(VA.apply(void 0,e.map(function(a){return a===ko?d0:a})),16);return{type:30,start:n,end:i}}var s=parseInt(VA.apply(void 0,e),16);if(this.peekCodePoint(0)===xe&&yn(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var o=[];yn(t)&&o.length<6;)o.push(t),t=this.consumeCodePoint();var i=parseInt(VA.apply(void 0,o),16);return{type:30,start:s,end:i}}else return{type:30,start:s,end:s}},A.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===No?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===No?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},A.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===yt)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===Po||t===_o){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===yt||this.peekCodePoint(0)===Ni)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),jo)}for(;;){var n=this.consumeCodePoint();if(n===yt||n===Ni)return{type:22,value:VA.apply(void 0,e)};if(Vo(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===yt||this.peekCodePoint(0)===Ni?(this.consumeCodePoint(),{type:22,value:VA.apply(void 0,e)}):(this.consumeBadUrlRemnants(),jo);if(n===_o||n===Po||n===No||N1(n))return this.consumeBadUrlRemnants(),jo;if(n===fs)if(fr(n,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),jo;else e.push(n)}},A.prototype.consumeWhiteSpace=function(){for(;Vo(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===Ni||e===yt)return;fr(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(e){for(var t=5e4,r="";e>0;){var n=Math.min(t,e);r+=VA.apply(void 0,this._value.splice(0,n)),e-=n}return this._value.shift(),r},A.prototype.consumeStringToken=function(e){var t="",r=0;do{var n=this._value[r];if(n===yt||n===void 0||n===e)return t+=this.consumeStringSlice(r),{type:0,value:t};if(n===sl)return this._value.splice(0,r),AI;if(n===fs){var i=this._value[r+1];i!==yt&&i!==void 0&&(i===sl?(t+=this.consumeStringSlice(r),r=-1,this._value.shift()):fr(n,i)&&(t+=this.consumeStringSlice(r),t+=VA(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},A.prototype.consumeNumber=function(){var e=[],t=qs,r=this.peekCodePoint(0);for((r===en||r===xe)&&e.push(this.consumeCodePoint());ve(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(r===Ks&&ve(n))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=Pp;ve(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0),n=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((r===f0||r===u0)&&((n===en||n===xe)&&ve(i)||ve(n)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=Pp;ve(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[k1(e),t]},A.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],r=e[1],n=this.peekCodePoint(0),i=this.peekCodePoint(1),s=this.peekCodePoint(2);if(Go(n,i,s)){var o=this.consumeName();return{type:15,number:t,flags:r,unit:o}}return n===l1?(this.consumeCodePoint(),{type:16,number:t,flags:r}):{type:17,number:t,flags:r}},A.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(yn(e)){for(var t=VA(e);yn(this.peekCodePoint(0))&&t.length<6;)t+=VA(this.consumeCodePoint());Vo(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(t,16);return r===0||b1(r)||r>1114111?Vp:r}return e===yt?Vp:e},A.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(Gp(t))e+=VA(t);else if(fr(t,this.peekCodePoint(0)))e+=VA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),e}},A}(),B0=function(){function A(e){this._tokens=e}return A.create=function(e){var t=new h0;return t.write(e),new A(t.read())},A.parseValue=function(e){return A.create(e).parseComponentValue()},A.parseValues=function(e){return A.create(e).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===32)return e;e.push(t),e.push()}},A.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},A.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},r=this.consumeToken();;){if(r.type===32||lI(r,e))return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue()),r=this.consumeToken()}},A.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?Nf:e},A.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},A}(),$s=function(A){return A.type===15},Bi=function(A){return A.type===17},yA=function(A){return A.type===20},aI=function(A){return A.type===0},kf=function(A,e){return yA(A)&&A.value===e},p0=function(A){return A.type!==31},li=function(A){return A.type!==31&&A.type!==4},Dt=function(A){var e=[],t=[];return A.forEach(function(r){if(r.type===4){if(t.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(t),t=[];return}r.type!==31&&t.push(r)}),t.length&&e.push(t),e},lI=function(A,e){return e===11&&A.type===12||e===28&&A.type===29?!0:e===2&&A.type===3},Rr=function(A){return A.type===17||A.type===15},XA=function(A){return A.type===16||Rr(A)},g0=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},fe={type:17,number:0,flags:qs},ph={type:16,number:50,flags:qs},mr={type:16,number:100,flags:qs},qi=function(A,e,t){var r=A[0],n=A[1];return[UA(r,e),UA(typeof n<"u"?n:r,t)]},UA=function(A,e){if(A.type===16)return A.number/100*e;if($s(A))switch(A.unit){case"rem":case"em":return 16*A.number;case"px":default:return A.number}return A.number},w0="deg",m0="grad",v0="rad",C0="turn",Gl={name:"angle",parse:function(A,e){if(e.type===15)switch(e.unit){case w0:return Math.PI*e.number/180;case m0:return Math.PI/200*e.number;case v0:return e.number;case C0:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},y0=function(A){return A.type===15&&(A.unit===w0||A.unit===m0||A.unit===v0||A.unit===C0)},Q0=function(A){var e=A.filter(yA).map(function(t){return t.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[fe,fe];case"to top":case"bottom":return qe(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[fe,mr];case"to right":case"left":return qe(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[mr,mr];case"to bottom":case"top":return qe(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[mr,fe];case"to left":case"right":return qe(270)}return 0},qe=function(A){return Math.PI*A/180},xr={name:"color",parse:function(A,e){if(e.type===18){var t=uI[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(A,e.values)}if(e.type===5){if(e.value.length===3){var r=e.value.substring(0,1),n=e.value.substring(1,2),i=e.value.substring(2,3);return vr(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),1)}if(e.value.length===4){var r=e.value.substring(0,1),n=e.value.substring(1,2),i=e.value.substring(2,3),s=e.value.substring(3,4);return vr(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),parseInt(s+s,16)/255)}if(e.value.length===6){var r=e.value.substring(0,2),n=e.value.substring(2,4),i=e.value.substring(4,6);return vr(parseInt(r,16),parseInt(n,16),parseInt(i,16),1)}if(e.value.length===8){var r=e.value.substring(0,2),n=e.value.substring(2,4),i=e.value.substring(4,6),s=e.value.substring(6,8);return vr(parseInt(r,16),parseInt(n,16),parseInt(i,16),parseInt(s,16)/255)}}if(e.type===20){var o=Xt[e.value.toUpperCase()];if(typeof o<"u")return o}return Xt.TRANSPARENT}},Lr=function(A){return(255&A)===0},ne=function(A){var e=255&A,t=255&A>>8,r=255&A>>16,n=255&A>>24;return e<255?"rgba("+n+","+r+","+t+","+e/255+")":"rgb("+n+","+r+","+t+")"},vr=function(A,e,t,r){return(A<<24|e<<16|t<<8|Math.round(r*255)<<0)>>>0},jp=function(A,e){if(A.type===17)return A.number;if(A.type===16){var t=e===3?1:255;return e===3?A.number/100*t:Math.round(A.number/100*t)}return 0},Wp=function(A,e){var t=e.filter(li);if(t.length===3){var r=t.map(jp),n=r[0],i=r[1],s=r[2];return vr(n,i,s,1)}if(t.length===4){var o=t.map(jp),n=o[0],i=o[1],s=o[2],a=o[3];return vr(n,i,s,a)}return 0};function ic(A,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<1/2?e:t<2/3?(e-A)*6*(2/3-t)+A:A}var zp=function(A,e){var t=e.filter(li),r=t[0],n=t[1],i=t[2],s=t[3],o=(r.type===17?qe(r.number):Gl.parse(A,r))/(Math.PI*2),a=XA(n)?n.number/100:0,l=XA(i)?i.number/100:0,u=typeof s<"u"&&XA(s)?UA(s,1):1;if(a===0)return vr(l*255,l*255,l*255,1);var c=l<=.5?l*(a+1):l+a-l*a,f=l*2-c,g=ic(f,c,o+1/3),B=ic(f,c,o),m=ic(f,c,o-1/3);return vr(g*255,B*255,m*255,u)},uI={hsl:zp,hsla:zp,rgb:Wp,rgba:Wp},ds=function(A,e){return xr.parse(A,B0.create(e).parseComponentValue())},Xt={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},cI={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(t){if(yA(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},fI={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},jl=function(A,e){var t=xr.parse(A,e[0]),r=e[1];return r&&XA(r)?{color:t,stop:r}:{color:t,stop:null}},Xp=function(A,e){var t=A[0],r=A[A.length-1];t.stop===null&&(t.stop=fe),r.stop===null&&(r.stop=mr);for(var n=[],i=0,s=0;si?n.push(a):n.push(i),i=a}else n.push(null)}for(var l=null,s=0;ss.optimumDistance)?{optimumCorner:o,optimumDistance:u}:s},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},BI=function(A,e,t,r,n){var i=0,s=0;switch(A.size){case 0:A.shape===0?i=s=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):A.shape===1&&(i=Math.min(Math.abs(e),Math.abs(e-r)),s=Math.min(Math.abs(t),Math.abs(t-n)));break;case 2:if(A.shape===0)i=s=Math.min(lt(e,t),lt(e,t-n),lt(e-r,t),lt(e-r,t-n));else if(A.shape===1){var o=Math.min(Math.abs(t),Math.abs(t-n))/Math.min(Math.abs(e),Math.abs(e-r)),a=Jp(r,n,e,t,!0),l=a[0],u=a[1];i=lt(l-e,(u-t)/o),s=o*i}break;case 1:A.shape===0?i=s=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):A.shape===1&&(i=Math.max(Math.abs(e),Math.abs(e-r)),s=Math.max(Math.abs(t),Math.abs(t-n)));break;case 3:if(A.shape===0)i=s=Math.max(lt(e,t),lt(e,t-n),lt(e-r,t),lt(e-r,t-n));else if(A.shape===1){var o=Math.max(Math.abs(t),Math.abs(t-n))/Math.max(Math.abs(e),Math.abs(e-r)),c=Jp(r,n,e,t,!1),l=c[0],u=c[1];i=lt(l-e,(u-t)/o),s=o*i}break}return Array.isArray(A.size)&&(i=UA(A.size[0],r),s=A.size.length===2?UA(A.size[1],n):i),[i,s]},pI=function(A,e){var t=qe(180),r=[];return Dt(e).forEach(function(n,i){if(i===0){var s=n[0];if(s.type===20&&s.value==="to"){t=Q0(n);return}else if(y0(s)){t=Gl.parse(A,s);return}}var o=jl(A,n);r.push(o)}),{angle:t,stops:r,type:1}},Wo=function(A,e){var t=qe(180),r=[];return Dt(e).forEach(function(n,i){if(i===0){var s=n[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){t=Q0(n);return}else if(y0(s)){t=(Gl.parse(A,s)+qe(270))%qe(360);return}}var o=jl(A,n);r.push(o)}),{angle:t,stops:r,type:1}},gI=function(A,e){var t=qe(180),r=[],n=1,i=0,s=3,o=[];return Dt(e).forEach(function(a,l){var u=a[0];if(l===0){if(yA(u)&&u.value==="linear"){n=1;return}else if(yA(u)&&u.value==="radial"){n=2;return}}if(u.type===18){if(u.name==="from"){var c=xr.parse(A,u.values[0]);r.push({stop:fe,color:c})}else if(u.name==="to"){var c=xr.parse(A,u.values[0]);r.push({stop:mr,color:c})}else if(u.name==="color-stop"){var f=u.values.filter(li);if(f.length===2){var c=xr.parse(A,f[1]),g=f[0];Bi(g)&&r.push({stop:{type:16,number:g.number*100,flags:g.flags},color:c})}}}}),n===1?{angle:(t+qe(180))%qe(360),stops:r,type:n}:{size:s,shape:i,stops:r,position:o,type:n}},F0="closest-side",U0="farthest-side",E0="closest-corner",S0="farthest-corner",I0="circle",H0="ellipse",x0="cover",L0="contain",wI=function(A,e){var t=0,r=3,n=[],i=[];return Dt(e).forEach(function(s,o){var a=!0;if(o===0){var l=!1;a=s.reduce(function(c,f){if(l)if(yA(f))switch(f.value){case"center":return i.push(ph),c;case"top":case"left":return i.push(fe),c;case"right":case"bottom":return i.push(mr),c}else(XA(f)||Rr(f))&&i.push(f);else if(yA(f))switch(f.value){case I0:return t=0,!1;case H0:return t=1,!1;case"at":return l=!0,!1;case F0:return r=0,!1;case x0:case U0:return r=1,!1;case L0:case E0:return r=2,!1;case S0:return r=3,!1}else if(Rr(f)||XA(f))return Array.isArray(r)||(r=[]),r.push(f),!1;return c},a)}if(a){var u=jl(A,s);n.push(u)}}),{size:r,shape:t,stops:n,position:i,type:2}},zo=function(A,e){var t=0,r=3,n=[],i=[];return Dt(e).forEach(function(s,o){var a=!0;if(o===0?a=s.reduce(function(u,c){if(yA(c))switch(c.value){case"center":return i.push(ph),!1;case"top":case"left":return i.push(fe),!1;case"right":case"bottom":return i.push(mr),!1}else if(XA(c)||Rr(c))return i.push(c),!1;return u},a):o===1&&(a=s.reduce(function(u,c){if(yA(c))switch(c.value){case I0:return t=0,!1;case H0:return t=1,!1;case L0:case F0:return r=0,!1;case U0:return r=1,!1;case E0:return r=2,!1;case x0:case S0:return r=3,!1}else if(Rr(c)||XA(c))return Array.isArray(r)||(r=[]),r.push(c),!1;return u},a)),a){var l=jl(A,s);n.push(l)}}),{size:r,shape:t,stops:n,position:i,type:2}},mI=function(A){return A.type===1},vI=function(A){return A.type===2},gh={name:"image",parse:function(A,e){if(e.type===22){var t={url:e.value,type:0};return A.cache.addImage(e.value),t}if(e.type===18){var r=D0[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(A,e.values)}throw new Error("Unsupported image type "+e.type)}};function CI(A){return!(A.type===20&&A.value==="none")&&(A.type!==18||!!D0[A.name])}var D0={"linear-gradient":pI,"-moz-linear-gradient":Wo,"-ms-linear-gradient":Wo,"-o-linear-gradient":Wo,"-webkit-linear-gradient":Wo,"radial-gradient":wI,"-moz-radial-gradient":zo,"-ms-radial-gradient":zo,"-o-radial-gradient":zo,"-webkit-radial-gradient":zo,"-webkit-gradient":gI},yI={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e.filter(function(r){return li(r)&&CI(r)}).map(function(r){return gh.parse(A,r)})}},QI={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(t){if(yA(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},FI={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return Dt(e).map(function(t){return t.filter(XA)}).map(g0)}},UI={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,e){return Dt(e).map(function(t){return t.filter(yA).map(function(r){return r.value}).join(" ")}).map(EI)}},EI=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},$n;(function(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"})($n||($n={}));var SI={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,e){return Dt(e).map(function(t){return t.filter(II)})}},II=function(A){return yA(A)||XA(A)},Wl=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},HI=Wl("top"),xI=Wl("right"),LI=Wl("bottom"),DI=Wl("left"),zl=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return g0(t.filter(XA))}}},TI=zl("top-left"),RI=zl("top-right"),OI=zl("bottom-right"),bI=zl("bottom-left"),Xl=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},MI=Xl("top"),KI=Xl("right"),_I=Xl("bottom"),PI=Xl("left"),Jl=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return $s(t)?t.number:0}}},NI=Jl("top"),kI=Jl("right"),VI=Jl("bottom"),GI=Jl("left"),jI={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},WI={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},zI={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(yA).reduce(function(t,r){return t|XI(r.value)},0)}},XI=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},JI={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},YI={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},al;(function(A){A.NORMAL="normal",A.STRICT="strict"})(al||(al={}));var ZI={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"strict":return al.STRICT;case"normal":default:return al.NORMAL}}},qI={name:"line-height",initialValue:"normal",prefix:!1,type:4},Yp=function(A,e){return yA(A)&&A.value==="normal"?1.2*e:A.type===17?e*A.number:XA(A)?UA(A,e):e},$I={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return e.type===20&&e.value==="none"?null:gh.parse(A,e)}},AH={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},Vf={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Yl=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},eH=Yl("top"),tH=Yl("right"),rH=Yl("bottom"),nH=Yl("left"),iH={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,e){return e.filter(yA).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},sH={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},Zl=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},oH=Zl("top"),aH=Zl("right"),lH=Zl("bottom"),uH=Zl("left"),cH={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},fH={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},dH={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.length===1&&kf(e[0],"none")?[]:Dt(e).map(function(t){for(var r={color:Xt.TRANSPARENT,offsetX:fe,offsetY:fe,blur:fe},n=0,i=0;i"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},pH=function(A){var e=A.filter(function(t){return t.type===17}).map(function(t){return t.number});return e.length===6?e:null},gH=function(A){var e=A.filter(function(a){return a.type===17}).map(function(a){return a.number}),t=e[0],r=e[1];e[2],e[3];var n=e[4],i=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var s=e[12],o=e[13];return e[14],e[15],e.length===16?[t,r,n,i,s,o]:null},wH={matrix:pH,matrix3d:gH},Zp={type:16,number:50,flags:qs},mH=[Zp,Zp],vH={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,e){var t=e.filter(XA);return t.length!==2?mH:[t[0],t[1]]}},CH={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},hs;(function(A){A.NORMAL="normal",A.BREAK_ALL="break-all",A.KEEP_ALL="keep-all"})(hs||(hs={}));var yH={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"break-all":return hs.BREAK_ALL;case"keep-all":return hs.KEEP_ALL;case"normal":default:return hs.NORMAL}}},QH={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,e){if(e.type===20)return{auto:!0,order:0};if(Bi(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},T0={name:"time",parse:function(A,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},FH={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,e){return Bi(e)?e.number:1}},UH={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},EH={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,e){return e.filter(yA).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return t!==0})}},SH={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,e){var t=[],r=[];return e.forEach(function(n){switch(n.type){case 20:case 0:t.push(n.value);break;case 17:t.push(n.number.toString());break;case 4:r.push(t.join(" ")),t.length=0;break}}),t.length&&r.push(t.join(" ")),r.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},IH={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},HH={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,e){if(Bi(e))return e.number;if(yA(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},xH={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.filter(yA).map(function(t){return t.value})}},LH={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},qA=function(A,e){return(A&e)!==0},DH={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e}},TH={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;for(var r=[],n=e.filter(p0),i=0;i1?1:0],this.overflowWrap=X(e,sH,t.overflowWrap),this.paddingTop=X(e,oH,t.paddingTop),this.paddingRight=X(e,aH,t.paddingRight),this.paddingBottom=X(e,lH,t.paddingBottom),this.paddingLeft=X(e,uH,t.paddingLeft),this.paintOrder=X(e,KH,t.paintOrder),this.position=X(e,fH,t.position),this.textAlign=X(e,cH,t.textAlign),this.textDecorationColor=X(e,UH,(r=t.textDecorationColor)!==null&&r!==void 0?r:t.color),this.textDecorationLine=X(e,EH,(n=t.textDecorationLine)!==null&&n!==void 0?n:t.textDecoration),this.textShadow=X(e,dH,t.textShadow),this.textTransform=X(e,hH,t.textTransform),this.transform=X(e,BH,t.transform),this.transformOrigin=X(e,vH,t.transformOrigin),this.visibility=X(e,CH,t.visibility),this.webkitTextStrokeColor=X(e,_H,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=X(e,PH,t.webkitTextStrokeWidth),this.wordBreak=X(e,yH,t.wordBreak),this.zIndex=X(e,QH,t.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},A.prototype.isTransparent=function(){return Lr(this.backgroundColor)},A.prototype.isTransformed=function(){return this.transform!==null},A.prototype.isPositioned=function(){return this.position!==0},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return this.float!==0},A.prototype.isInlineLevel=function(){return qA(this.display,4)||qA(this.display,33554432)||qA(this.display,268435456)||qA(this.display,536870912)||qA(this.display,67108864)||qA(this.display,134217728)},A}(),kH=function(){function A(e,t){this.content=X(e,DH,t.content),this.quotes=X(e,bH,t.quotes)}return A}(),$p=function(){function A(e,t){this.counterIncrement=X(e,TH,t.counterIncrement),this.counterReset=X(e,RH,t.counterReset)}return A}(),X=function(A,e,t){var r=new h0,n=t!==null&&typeof t<"u"?t.toString():e.initialValue;r.write(n);var i=new B0(r.read());switch(e.type){case 2:var s=i.parseComponentValue();return e.parse(A,yA(s)?s.value:e.initialValue);case 0:return e.parse(A,i.parseComponentValue());case 1:return e.parse(A,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(e.format){case"angle":return Gl.parse(A,i.parseComponentValue());case"color":return xr.parse(A,i.parseComponentValue());case"image":return gh.parse(A,i.parseComponentValue());case"length":var o=i.parseComponentValue();return Rr(o)?o:fe;case"length-percentage":var a=i.parseComponentValue();return XA(a)?a:fe;case"time":return T0.parse(A,i.parseComponentValue())}break}},VH="data-html2canvas-debug",GH=function(A){var e=A.getAttribute(VH);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Gf=function(A,e){var t=GH(A);return t===1||e===t},Tt=function(){function A(e,t){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Gf(t,3))debugger;this.styles=new NH(e,window.getComputedStyle(t,null)),zf(t)&&(this.styles.animationDuration.some(function(r){return r>0})&&(t.style.animationDuration="0s"),this.styles.transform!==null&&(t.style.transform="none")),this.bounds=kl(this.context,t),Gf(t,4)&&(this.flags|=16)}return A}(),jH="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ag="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$i=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Xo=0;Xo>4,u[n++]=(s&15)<<4|o>>2,u[n++]=(o&3)<<6|a&63;return l},zH=function(A){for(var e=A.length,t=[],r=0;r>sn,YH=1<>sn,qH=R0+ZH,$H=qH,Ax=32,ex=$H+Ax,tx=65536>>wh,rx=1<=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>sn],t=(t<>sn)],t=(t<>wh),t=this.index[t],t+=e>>sn&nx,t=this.index[t],t=(t<"u"?[]:new Uint8Array(256);for(var Jo=0;Jo=55296&&n<=56319&&t>10)+55296,s%1024+56320)),(n+1===t||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},dx=sx(jH),je="×",dc="÷",hx=function(A){return dx.get(A)},Bx=function(A,e,t){var r=t-2,n=e[r],i=e[t-1],s=e[t];if(i===ac&&s===lc)return je;if(i===ac||i===lc||i===rg||s===ac||s===lc||s===rg)return dc;if(i===ig&&[ig,uc,sg,og].indexOf(s)!==-1||(i===sg||i===uc)&&(s===uc||s===cc)||(i===og||i===cc)&&s===cc||s===ag||s===ng||s===ux||i===lx)return je;if(i===ag&&s===lg){for(;n===ng;)n=e[--r];if(n===lg)return je}if(i===fc&&s===fc){for(var o=0;n===fc;)o++,n=e[--r];if(o%2===0)return je}return dc},px=function(A){var e=cx(A),t=e.length,r=0,n=0,i=e.map(hx);return{next:function(){if(r>=t)return{done:!0,value:null};for(var s=je;rs.x||u.y>s.y;return s=u,l===0?!0:c});return A.body.removeChild(e),o},vx=function(){return typeof new Image().crossOrigin<"u"},Cx=function(){return typeof new XMLHttpRequest().responseType=="string"},yx=function(A){var e=new Image,t=A.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,";try{r.drawImage(e,0,0),t.toDataURL()}catch{return!1}return!0},ug=function(A){return A[0]===0&&A[1]===255&&A[2]===0&&A[3]===255},Qx=function(A){var e=A.createElement("canvas"),t=100;e.width=t,e.height=t;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,t,t);var n=new Image,i=e.toDataURL();n.src=i;var s=jf(t,t,0,0,n);return r.fillStyle="red",r.fillRect(0,0,t,t),cg(s).then(function(o){r.drawImage(o,0,0);var a=r.getImageData(0,0,t,t).data;r.fillStyle="red",r.fillRect(0,0,t,t);var l=A.createElement("div");return l.style.backgroundImage="url("+i+")",l.style.height=t+"px",ug(a)?cg(jf(t,t,0,0,l)):Promise.reject(!1)}).then(function(o){return r.drawImage(o,0,0),ug(r.getImageData(0,0,t,t).data)}).catch(function(){return!1})},jf=function(A,e,t,r,n){var i="http://www.w3.org/2000/svg",s=document.createElementNS(i,"svg"),o=document.createElementNS(i,"foreignObject");return s.setAttributeNS(null,"width",A.toString()),s.setAttributeNS(null,"height",e.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",t.toString()),o.setAttributeNS(null,"y",r.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(o),o.appendChild(n),s},cg=function(A){return new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},ue={get SUPPORT_RANGE_BOUNDS(){var A=wx(document);return Object.defineProperty(ue,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=ue.SUPPORT_RANGE_BOUNDS&&mx(document);return Object.defineProperty(ue,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=yx(document);return Object.defineProperty(ue,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A=typeof Array.from=="function"&&typeof window.fetch=="function"?Qx(document):Promise.resolve(!1);return Object.defineProperty(ue,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=vx();return Object.defineProperty(ue,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=Cx();return Object.defineProperty(ue,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(ue,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(ue,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},Bs=function(){function A(e,t){this.text=e,this.bounds=t}return A}(),Fx=function(A,e,t,r){var n=Sx(e,t),i=[],s=0;return n.forEach(function(o){if(t.textDecorationLine.length||o.trim().length>0)if(ue.SUPPORT_RANGE_BOUNDS){var a=fg(r,s,o.length).getClientRects();if(a.length>1){var l=mh(o),u=0;l.forEach(function(f){i.push(new Bs(f,Ar.fromDOMRectList(A,fg(r,u+s,f.length).getClientRects()))),u+=f.length})}else i.push(new Bs(o,Ar.fromDOMRectList(A,a)))}else{var c=r.splitText(o.length);i.push(new Bs(o,Ux(A,r))),r=c}else ue.SUPPORT_RANGE_BOUNDS||(r=r.splitText(o.length));s+=o.length}),i},Ux=function(A,e){var t=e.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var n=e.parentNode;if(n){n.replaceChild(r,e);var i=kl(A,r);return r.firstChild&&n.replaceChild(r.firstChild,r),i}}return Ar.EMPTY},fg=function(A,e,t){var r=A.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(A,e),n.setEnd(A,e+t),n},mh=function(A){if(ue.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map(function(t){return t.segment})}return gx(A)},Ex=function(A,e){if(ue.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(A)).map(function(r){return r.segment})}return Hx(A,e)},Sx=function(A,e){return e.letterSpacing!==0?mh(A):Ex(A,e)},Ix=[32,160,4961,65792,65793,4153,4241],Hx=function(A,e){for(var t=t1(A,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),r=[],n,i=function(){if(n.value){var s=n.value.slice(),o=Vl(s),a="";o.forEach(function(l){Ix.indexOf(l)===-1?a+=VA(l):(a.length&&r.push(a),r.push(VA(l)),a="")}),a.length&&r.push(a)}};!(n=t.next()).done;)i();return r},xx=function(){function A(e,t,r){this.text=Lx(t.data,r.textTransform),this.textBounds=Fx(e,this.text,r,t)}return A}(),Lx=function(A,e){switch(e){case 1:return A.toLowerCase();case 3:return A.replace(Dx,Tx);case 2:return A.toUpperCase();default:return A}},Dx=/(^|\s|:|-|\(|\))([a-z])/g,Tx=function(A,e,t){return A.length>0?e+t.toUpperCase():A},O0=function(A){vt(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.src=r.currentSrc||r.src,n.intrinsicWidth=r.naturalWidth,n.intrinsicHeight=r.naturalHeight,n.context.cache.addImage(n.src),n}return e}(Tt),b0=function(A){vt(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.canvas=r,n.intrinsicWidth=r.width,n.intrinsicHeight=r.height,n}return e}(Tt),M0=function(A){vt(e,A);function e(t,r){var n=A.call(this,t,r)||this,i=new XMLSerializer,s=kl(t,r);return r.setAttribute("width",s.width+"px"),r.setAttribute("height",s.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(r)),n.intrinsicWidth=r.width.baseVal.value,n.intrinsicHeight=r.height.baseVal.value,n.context.cache.addImage(n.svg),n}return e}(Tt),K0=function(A){vt(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.value=r.value,n}return e}(Tt),Wf=function(A){vt(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n.start=r.start,n.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,n}return e}(Tt),Rx=[{type:15,flags:0,unit:"px",number:3}],Ox=[{type:16,flags:0,number:50}],bx=function(A){return A.width>A.height?new Ar(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width0)t.textNodes.push(new xx(A,n,t.styles));else if(Gn(n))if(X0(n)&&n.assignedNodes)n.assignedNodes().forEach(function(o){return ma(A,o,t,r)});else{var s=k0(A,n);s.styles.isVisible()&&(Px(n,s,r)?s.flags|=4:Nx(s.styles)&&(s.flags|=2),_x.indexOf(n.tagName)!==-1&&(s.flags|=8),t.elements.push(s),n.slot,n.shadowRoot?ma(A,n.shadowRoot,s,r):!cl(n)&&!j0(n)&&!fl(n)&&ma(A,n,s,r))}},k0=function(A,e){return Xf(e)?new O0(A,e):W0(e)?new b0(A,e):j0(e)?new M0(A,e):kx(e)?new K0(A,e):Vx(e)?new Wf(A,e):Gx(e)?new vh(A,e):fl(e)?new _0(A,e):cl(e)?new P0(A,e):z0(e)?new N0(A,e):new Tt(A,e)},V0=function(A,e){var t=k0(A,e);return t.flags|=4,ma(A,e,t,t),t},Px=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Ch(A)&&t.styles.isTransparent()},Nx=function(A){return A.isPositioned()||A.isFloating()},G0=function(A){return A.nodeType===Node.TEXT_NODE},Gn=function(A){return A.nodeType===Node.ELEMENT_NODE},zf=function(A){return Gn(A)&&typeof A.style<"u"&&!va(A)},va=function(A){return typeof A.className=="object"},kx=function(A){return A.tagName==="LI"},Vx=function(A){return A.tagName==="OL"},Gx=function(A){return A.tagName==="INPUT"},jx=function(A){return A.tagName==="HTML"},j0=function(A){return A.tagName==="svg"},Ch=function(A){return A.tagName==="BODY"},W0=function(A){return A.tagName==="CANVAS"},hg=function(A){return A.tagName==="VIDEO"},Xf=function(A){return A.tagName==="IMG"},z0=function(A){return A.tagName==="IFRAME"},Bg=function(A){return A.tagName==="STYLE"},Wx=function(A){return A.tagName==="SCRIPT"},cl=function(A){return A.tagName==="TEXTAREA"},fl=function(A){return A.tagName==="SELECT"},X0=function(A){return A.tagName==="SLOT"},pg=function(A){return A.tagName.indexOf("-")>0},zx=function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},A.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},A.prototype.pop=function(e){var t=this;e.forEach(function(r){return t.counters[r].pop()})},A.prototype.parse=function(e){var t=this,r=e.counterIncrement,n=e.counterReset,i=!0;r!==null&&r.forEach(function(o){var a=t.counters[o.counter];a&&o.increment!==0&&(i=!1,a.length||a.push(1),a[Math.max(0,a.length-1)]+=o.increment)});var s=[];return i&&n.forEach(function(o){var a=t.counters[o.counter];s.push(o.counter),a||(a=t.counters[o.counter]=[]),a.push(o.reset)}),s},A}(),gg={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},wg={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Xx={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Jx={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Qn=function(A,e,t,r,n,i){return At?_s(A,n,i.length>0):r.integers.reduce(function(s,o,a){for(;A>=o;)A-=o,s+=r.values[a];return s},"")+i},J0=function(A,e,t,r){var n="";do t||A--,n=r(A)+n,A/=e;while(A*e>=e);return n},kA=function(A,e,t,r,n){var i=t-e+1;return(A<0?"-":"")+(J0(Math.abs(A),i,r,function(s){return VA(Math.floor(s%i)+e)})+n)},Vr=function(A,e,t){t===void 0&&(t=". ");var r=e.length;return J0(Math.abs(A),r,!1,function(n){return e[Math.floor(n%r)]})+t},Sn=1,or=2,ar=4,As=8,Pt=function(A,e,t,r,n,i){if(A<-9999||A>9999)return _s(A,4,n.length>0);var s=Math.abs(A),o=n;if(s===0)return e[0]+o;for(var a=0;s>0&&a<=4;a++){var l=s%10;l===0&&qA(i,Sn)&&o!==""?o=e[l]+o:l>1||l===1&&a===0||l===1&&a===1&&qA(i,or)||l===1&&a===1&&qA(i,ar)&&A>100||l===1&&a>1&&qA(i,As)?o=e[l]+(a>0?t[a-1]:"")+o:l===1&&a>0&&(o=t[a-1]+o),s=Math.floor(s/10)}return(A<0?r:"")+o},mg="十百千萬",vg="拾佰仟萬",Cg="マイナス",hc="마이너스",_s=function(A,e,t){var r=t?". ":"",n=t?"、":"",i=t?", ":"",s=t?" ":"";switch(e){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var o=kA(A,48,57,!0,r);return o.length<4?"0"+o:o;case 4:return Vr(A,"〇一二三四五六七八九",n);case 6:return Qn(A,1,3999,gg,3,r).toLowerCase();case 7:return Qn(A,1,3999,gg,3,r);case 8:return kA(A,945,969,!1,r);case 9:return kA(A,97,122,!1,r);case 10:return kA(A,65,90,!1,r);case 11:return kA(A,1632,1641,!0,r);case 12:case 49:return Qn(A,1,9999,wg,3,r);case 35:return Qn(A,1,9999,wg,3,r).toLowerCase();case 13:return kA(A,2534,2543,!0,r);case 14:case 30:return kA(A,6112,6121,!0,r);case 15:return Vr(A,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Vr(A,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return Pt(A,"零一二三四五六七八九",mg,"負",n,or|ar|As);case 47:return Pt(A,"零壹貳參肆伍陸柒捌玖",vg,"負",n,Sn|or|ar|As);case 42:return Pt(A,"零一二三四五六七八九",mg,"负",n,or|ar|As);case 41:return Pt(A,"零壹贰叁肆伍陆柒捌玖",vg,"负",n,Sn|or|ar|As);case 26:return Pt(A,"〇一二三四五六七八九","十百千万",Cg,n,0);case 25:return Pt(A,"零壱弐参四伍六七八九","拾百千万",Cg,n,Sn|or|ar);case 31:return Pt(A,"영일이삼사오육칠팔구","십백천만",hc,i,Sn|or|ar);case 33:return Pt(A,"零一二三四五六七八九","十百千萬",hc,i,0);case 32:return Pt(A,"零壹貳參四五六七八九","拾百千",hc,i,Sn|or|ar);case 18:return kA(A,2406,2415,!0,r);case 20:return Qn(A,1,19999,Jx,3,r);case 21:return kA(A,2790,2799,!0,r);case 22:return kA(A,2662,2671,!0,r);case 22:return Qn(A,1,10999,Xx,3,r);case 23:return Vr(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Vr(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return kA(A,3302,3311,!0,r);case 28:return Vr(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Vr(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return kA(A,3792,3801,!0,r);case 37:return kA(A,6160,6169,!0,r);case 38:return kA(A,4160,4169,!0,r);case 39:return kA(A,2918,2927,!0,r);case 40:return kA(A,1776,1785,!0,r);case 43:return kA(A,3046,3055,!0,r);case 44:return kA(A,3174,3183,!0,r);case 45:return kA(A,3664,3673,!0,r);case 46:return kA(A,3872,3881,!0,r);case 3:default:return kA(A,48,57,!0,r)}},Y0="data-html2canvas-ignore",yg=function(){function A(e,t,r){if(this.context=e,this.options=r,this.scrolledElements=[],this.referenceElement=t,this.counters=new zx,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(e,t){var r=this,n=Yx(e,t);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var i=e.defaultView.pageXOffset,s=e.defaultView.pageYOffset,o=n.contentWindow,a=o.document,l=$x(n).then(function(){return Fe(r,void 0,void 0,function(){var u,c;return me(this,function(f){switch(f.label){case 0:return this.scrolledElements.forEach(rL),o&&(o.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==t.top||o.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-t.left,o.scrollY-t.top,0,0))),u=this.options.onclone,c=this.clonedReferenceElement,typeof c>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:a.fonts&&a.fonts.ready?[4,a.fonts.ready]:[3,2];case 1:f.sent(),f.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,qx(a)]:[3,4];case 3:f.sent(),f.label=4;case 4:return typeof u=="function"?[2,Promise.resolve().then(function(){return u(a,c)}).then(function(){return n})]:[2,n]}})})});return a.open(),a.write(eL(document.doctype)+""),tL(this.referenceElement.ownerDocument,i,s),a.replaceChild(a.adoptNode(this.documentElement),a.documentElement),a.close(),l},A.prototype.createElementClone=function(e){if(Gf(e,2))debugger;if(W0(e))return this.createCanvasClone(e);if(hg(e))return this.createVideoClone(e);if(Bg(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Xf(t)&&(Xf(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager")),pg(t)?this.createCustomElementClone(t):t},A.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return Bc(e.style,t),t},A.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var r=[].slice.call(t.cssRules,0).reduce(function(i,s){return s&&typeof s.cssText=="string"?i+s.cssText:i},""),n=e.cloneNode(!1);return n.textContent=r,n}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return e.cloneNode(!1)},A.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var r=e.ownerDocument.createElement("img");try{return r.src=e.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var n=e.cloneNode(!1);try{n.width=e.width,n.height=e.height;var i=e.getContext("2d"),s=n.getContext("2d");if(s)if(!this.options.allowTaint&&i)s.putImageData(i.getImageData(0,0,e.width,e.height),0,0);else{var o=(t=e.getContext("webgl2"))!==null&&t!==void 0?t:e.getContext("webgl");if(o){var a=o.getContextAttributes();(a==null?void 0:a.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}s.drawImage(e,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return n},A.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var r=t.getContext("2d");try{return r&&(r.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||r.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var n=e.ownerDocument.createElement("canvas");return n.width=e.offsetWidth,n.height=e.offsetHeight,n},A.prototype.appendChildNode=function(e,t,r){(!Gn(t)||!Wx(t)&&!t.hasAttribute(Y0)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!Gn(t)||!Bg(t))&&e.appendChild(this.cloneNode(t,r))},A.prototype.cloneChildNodes=function(e,t,r){for(var n=this,i=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;i;i=i.nextSibling)if(Gn(i)&&X0(i)&&typeof i.assignedNodes=="function"){var s=i.assignedNodes();s.length&&s.forEach(function(o){return n.appendChildNode(t,o,r)})}else this.appendChildNode(t,i,r)},A.prototype.cloneNode=function(e,t){if(G0(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var r=e.ownerDocument.defaultView;if(r&&Gn(e)&&(zf(e)||va(e))){var n=this.createElementClone(e);n.style.transitionProperty="none";var i=r.getComputedStyle(e),s=r.getComputedStyle(e,":before"),o=r.getComputedStyle(e,":after");this.referenceElement===e&&zf(n)&&(this.clonedReferenceElement=n),Ch(n)&&sL(n);var a=this.counters.parse(new $p(this.context,i)),l=this.resolvePseudoContent(e,n,s,ps.BEFORE);pg(e)&&(t=!0),hg(e)||this.cloneChildNodes(e,n,t),l&&n.insertBefore(l,n.firstChild);var u=this.resolvePseudoContent(e,n,o,ps.AFTER);return u&&n.appendChild(u),this.counters.pop(a),(i&&(this.options.copyStyles||va(e))&&!z0(e)||t)&&Bc(i,n),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([n,e.scrollLeft,e.scrollTop]),(cl(e)||fl(e))&&(cl(n)||fl(n))&&(n.value=e.value),n}return e.cloneNode(!1)},A.prototype.resolvePseudoContent=function(e,t,r,n){var i=this;if(r){var s=r.content,o=t.ownerDocument;if(!(!o||!s||s==="none"||s==="-moz-alt-content"||r.display==="none")){this.counters.parse(new $p(this.context,r));var a=new kH(this.context,r),l=o.createElement("html2canvaspseudoelement");Bc(r,l),a.content.forEach(function(c){if(c.type===0)l.appendChild(o.createTextNode(c.value));else if(c.type===22){var f=o.createElement("img");f.src=c.value,f.style.opacity="1",l.appendChild(f)}else if(c.type===18){if(c.name==="attr"){var g=c.values.filter(yA);g.length&&l.appendChild(o.createTextNode(e.getAttribute(g[0].value)||""))}else if(c.name==="counter"){var B=c.values.filter(li),m=B[0],S=B[1];if(m&&yA(m)){var p=i.counters.getCounterValue(m.value),d=S&&yA(S)?Vf.parse(i.context,S.value):3;l.appendChild(o.createTextNode(_s(p,d,!1)))}}else if(c.name==="counters"){var w=c.values.filter(li),m=w[0],h=w[1],S=w[2];if(m&&yA(m)){var C=i.counters.getCounterValues(m.value),y=S&&yA(S)?Vf.parse(i.context,S.value):3,U=h&&h.type===0?h.value:"",v=C.map(function(b){return _s(b,y,!1)}).join(U);l.appendChild(o.createTextNode(v))}}}else if(c.type===20)switch(c.value){case"open-quote":l.appendChild(o.createTextNode(qp(a.quotes,i.quoteDepth++,!0)));break;case"close-quote":l.appendChild(o.createTextNode(qp(a.quotes,--i.quoteDepth,!1)));break;default:l.appendChild(o.createTextNode(c.value))}}),l.className=Jf+" "+Yf;var u=n===ps.BEFORE?" "+Jf:" "+Yf;return va(t)?t.className.baseValue+=u:t.className+=u,l}}},A.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},A}(),ps;(function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"})(ps||(ps={}));var Yx=function(A,e){var t=A.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(Y0,"true"),A.body.appendChild(t),t},Zx=function(A){return new Promise(function(e){if(A.complete){e();return}if(!A.src){e();return}A.onload=e,A.onerror=e})},qx=function(A){return Promise.all([].slice.call(A.images,0).map(Zx))},$x=function(A){return new Promise(function(e,t){var r=A.contentWindow;if(!r)return t("No window assigned for iframe");var n=r.document;r.onload=A.onload=function(){r.onload=A.onload=null;var i=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(i),e(A))},50)}})},AL=["all","d","content"],Bc=function(A,e){for(var t=A.length-1;t>=0;t--){var r=A.item(t);AL.indexOf(r)===-1&&e.style.setProperty(r,A.getPropertyValue(r))}return e},eL=function(A){var e="";return A&&(e+=""),e},tL=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},rL=function(A){var e=A[0],t=A[1],r=A[2];e.scrollLeft=t,e.scrollTop=r},nL=":before",iL=":after",Jf="___html2canvas___pseudoelement_before",Yf="___html2canvas___pseudoelement_after",Qg=`{ - content: "" !important; - display: none !important; -}`,sL=function(A){oL(A,"."+Jf+nL+Qg+` - .`+Yf+iL+Qg)},oL=function(A,e){var t=A.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e,A.appendChild(r)}},Z0=function(){function A(){}return A.getOrigin=function(e){var t=A._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A._origin="about:blank",A}(),aL=function(){function A(e,t){this.context=e,this._options=t,this._cache={}}return A.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(gc(e)||fL(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},A.prototype.match=function(e){return this._cache[e]},A.prototype.loadImage=function(e){return Fe(this,void 0,void 0,function(){var t,r,n,i,s=this;return me(this,function(o){switch(o.label){case 0:return t=Z0.isSameOrigin(e),r=!pc(e)&&this._options.useCORS===!0&&ue.SUPPORT_CORS_IMAGES&&!t,n=!pc(e)&&!t&&!gc(e)&&typeof this._options.proxy=="string"&&ue.SUPPORT_CORS_XHR&&!r,!t&&this._options.allowTaint===!1&&!pc(e)&&!gc(e)&&!n&&!r?[2]:(i=e,n?[4,this.proxy(i)]:[3,2]);case 1:i=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(a,l){var u=new Image;u.onload=function(){return a(u)},u.onerror=l,(dL(i)||r)&&(u.crossOrigin="anonymous"),u.src=i,u.complete===!0&&setTimeout(function(){return a(u)},500),s._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},A.prototype.has=function(e){return typeof this._cache[e]<"u"},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(e){var t=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=e.substring(0,256);return new Promise(function(i,s){var o=ue.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(a.status===200)if(o==="text")i(a.response);else{var c=new FileReader;c.addEventListener("load",function(){return i(c.result)},!1),c.addEventListener("error",function(f){return s(f)},!1),c.readAsDataURL(a.response)}else s("Failed to proxy resource "+n+" with status code "+a.status)},a.onerror=s;var l=r.indexOf("?")>-1?"&":"?";if(a.open("GET",""+r+l+"url="+encodeURIComponent(e)+"&responseType="+o),o!=="text"&&a instanceof XMLHttpRequest&&(a.responseType=o),t._options.imageTimeout){var u=t._options.imageTimeout;a.timeout=u,a.ontimeout=function(){return s("Timed out ("+u+"ms) proxying "+n)}}a.send()})},A}(),lL=/^data:image\/svg\+xml/i,uL=/^data:image\/.*;base64,/i,cL=/^data:image\/.*/i,fL=function(A){return ue.SUPPORT_SVG_DRAWING||!hL(A)},pc=function(A){return cL.test(A)},dL=function(A){return uL.test(A)},gc=function(A){return A.substr(0,4)==="blob"},hL=function(A){return A.substr(-3).toLowerCase()==="svg"||lL.test(A)},j=function(){function A(e,t){this.type=0,this.x=e,this.y=t}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A}(),Fn=function(A,e,t){return new j(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},Yo=function(){function A(e,t,r,n){this.type=1,this.start=e,this.startControl=t,this.endControl=r,this.end=n}return A.prototype.subdivide=function(e,t){var r=Fn(this.start,this.startControl,e),n=Fn(this.startControl,this.endControl,e),i=Fn(this.endControl,this.end,e),s=Fn(r,n,e),o=Fn(n,i,e),a=Fn(s,o,e);return t?new A(this.start,r,s,a):new A(a,o,i,this.end)},A.prototype.add=function(e,t){return new A(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),Ye=function(A){return A.type===1},BL=function(){function A(e){var t=e.styles,r=e.bounds,n=qi(t.borderTopLeftRadius,r.width,r.height),i=n[0],s=n[1],o=qi(t.borderTopRightRadius,r.width,r.height),a=o[0],l=o[1],u=qi(t.borderBottomRightRadius,r.width,r.height),c=u[0],f=u[1],g=qi(t.borderBottomLeftRadius,r.width,r.height),B=g[0],m=g[1],S=[];S.push((i+a)/r.width),S.push((B+c)/r.width),S.push((s+m)/r.height),S.push((l+f)/r.height);var p=Math.max.apply(Math,S);p>1&&(i/=p,s/=p,a/=p,l/=p,c/=p,f/=p,B/=p,m/=p);var d=r.width-a,w=r.height-f,h=r.width-c,C=r.height-m,y=t.borderTopWidth,U=t.borderRightWidth,v=t.borderBottomWidth,E=t.borderLeftWidth,H=UA(t.paddingTop,e.bounds.width),b=UA(t.paddingRight,e.bounds.width),T=UA(t.paddingBottom,e.bounds.width),x=UA(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?xA(r.left+E/3,r.top+y/3,i-E/3,s-y/3,gA.TOP_LEFT):new j(r.left+E/3,r.top+y/3),this.topRightBorderDoubleOuterBox=i>0||s>0?xA(r.left+d,r.top+y/3,a-U/3,l-y/3,gA.TOP_RIGHT):new j(r.left+r.width-U/3,r.top+y/3),this.bottomRightBorderDoubleOuterBox=c>0||f>0?xA(r.left+h,r.top+w,c-U/3,f-v/3,gA.BOTTOM_RIGHT):new j(r.left+r.width-U/3,r.top+r.height-v/3),this.bottomLeftBorderDoubleOuterBox=B>0||m>0?xA(r.left+E/3,r.top+C,B-E/3,m-v/3,gA.BOTTOM_LEFT):new j(r.left+E/3,r.top+r.height-v/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?xA(r.left+E*2/3,r.top+y*2/3,i-E*2/3,s-y*2/3,gA.TOP_LEFT):new j(r.left+E*2/3,r.top+y*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?xA(r.left+d,r.top+y*2/3,a-U*2/3,l-y*2/3,gA.TOP_RIGHT):new j(r.left+r.width-U*2/3,r.top+y*2/3),this.bottomRightBorderDoubleInnerBox=c>0||f>0?xA(r.left+h,r.top+w,c-U*2/3,f-v*2/3,gA.BOTTOM_RIGHT):new j(r.left+r.width-U*2/3,r.top+r.height-v*2/3),this.bottomLeftBorderDoubleInnerBox=B>0||m>0?xA(r.left+E*2/3,r.top+C,B-E*2/3,m-v*2/3,gA.BOTTOM_LEFT):new j(r.left+E*2/3,r.top+r.height-v*2/3),this.topLeftBorderStroke=i>0||s>0?xA(r.left+E/2,r.top+y/2,i-E/2,s-y/2,gA.TOP_LEFT):new j(r.left+E/2,r.top+y/2),this.topRightBorderStroke=i>0||s>0?xA(r.left+d,r.top+y/2,a-U/2,l-y/2,gA.TOP_RIGHT):new j(r.left+r.width-U/2,r.top+y/2),this.bottomRightBorderStroke=c>0||f>0?xA(r.left+h,r.top+w,c-U/2,f-v/2,gA.BOTTOM_RIGHT):new j(r.left+r.width-U/2,r.top+r.height-v/2),this.bottomLeftBorderStroke=B>0||m>0?xA(r.left+E/2,r.top+C,B-E/2,m-v/2,gA.BOTTOM_LEFT):new j(r.left+E/2,r.top+r.height-v/2),this.topLeftBorderBox=i>0||s>0?xA(r.left,r.top,i,s,gA.TOP_LEFT):new j(r.left,r.top),this.topRightBorderBox=a>0||l>0?xA(r.left+d,r.top,a,l,gA.TOP_RIGHT):new j(r.left+r.width,r.top),this.bottomRightBorderBox=c>0||f>0?xA(r.left+h,r.top+w,c,f,gA.BOTTOM_RIGHT):new j(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=B>0||m>0?xA(r.left,r.top+C,B,m,gA.BOTTOM_LEFT):new j(r.left,r.top+r.height),this.topLeftPaddingBox=i>0||s>0?xA(r.left+E,r.top+y,Math.max(0,i-E),Math.max(0,s-y),gA.TOP_LEFT):new j(r.left+E,r.top+y),this.topRightPaddingBox=a>0||l>0?xA(r.left+Math.min(d,r.width-U),r.top+y,d>r.width+U?0:Math.max(0,a-U),Math.max(0,l-y),gA.TOP_RIGHT):new j(r.left+r.width-U,r.top+y),this.bottomRightPaddingBox=c>0||f>0?xA(r.left+Math.min(h,r.width-E),r.top+Math.min(w,r.height-v),Math.max(0,c-U),Math.max(0,f-v),gA.BOTTOM_RIGHT):new j(r.left+r.width-U,r.top+r.height-v),this.bottomLeftPaddingBox=B>0||m>0?xA(r.left+E,r.top+Math.min(C,r.height-v),Math.max(0,B-E),Math.max(0,m-v),gA.BOTTOM_LEFT):new j(r.left+E,r.top+r.height-v),this.topLeftContentBox=i>0||s>0?xA(r.left+E+x,r.top+y+H,Math.max(0,i-(E+x)),Math.max(0,s-(y+H)),gA.TOP_LEFT):new j(r.left+E+x,r.top+y+H),this.topRightContentBox=a>0||l>0?xA(r.left+Math.min(d,r.width+E+x),r.top+y+H,d>r.width+E+x?0:a-E+x,l-(y+H),gA.TOP_RIGHT):new j(r.left+r.width-(U+b),r.top+y+H),this.bottomRightContentBox=c>0||f>0?xA(r.left+Math.min(h,r.width-(E+x)),r.top+Math.min(w,r.height+y+H),Math.max(0,c-(U+b)),f-(v+T),gA.BOTTOM_RIGHT):new j(r.left+r.width-(U+b),r.top+r.height-(v+T)),this.bottomLeftContentBox=B>0||m>0?xA(r.left+E+x,r.top+C,Math.max(0,B-(E+x)),m-(v+T),gA.BOTTOM_LEFT):new j(r.left+E+x,r.top+r.height-(v+T))}return A}(),gA;(function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(gA||(gA={}));var xA=function(A,e,t,r,n){var i=4*((Math.sqrt(2)-1)/3),s=t*i,o=r*i,a=A+t,l=e+r;switch(n){case gA.TOP_LEFT:return new Yo(new j(A,l),new j(A,l-o),new j(a-s,e),new j(a,e));case gA.TOP_RIGHT:return new Yo(new j(A,e),new j(A+s,e),new j(a,l-o),new j(a,l));case gA.BOTTOM_RIGHT:return new Yo(new j(a,e),new j(a,e+o),new j(A+s,l),new j(A,l));case gA.BOTTOM_LEFT:default:return new Yo(new j(a,l),new j(a-s,l),new j(A,e+o),new j(A,e))}},dl=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},pL=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},hl=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},gL=function(){function A(e,t,r){this.offsetX=e,this.offsetY=t,this.matrix=r,this.type=0,this.target=6}return A}(),Zo=function(){function A(e,t){this.path=e,this.target=t,this.type=1}return A}(),wL=function(){function A(e){this.opacity=e,this.type=2,this.target=6}return A}(),mL=function(A){return A.type===0},q0=function(A){return A.type===1},vL=function(A){return A.type===2},Fg=function(A,e){return A.length===e.length?A.some(function(t,r){return t===e[r]}):!1},CL=function(A,e,t,r,n){return A.map(function(i,s){switch(s){case 0:return i.add(e,t);case 1:return i.add(e+r,t);case 2:return i.add(e+r,t+n);case 3:return i.add(e,t+n)}return i})},$0=function(){function A(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A}(),AC=function(){function A(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new BL(this.container),this.container.styles.opacity<1&&this.effects.push(new wL(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new gL(r,n,i))}if(this.container.styles.overflowX!==0){var s=dl(this.curves),o=hl(this.curves);Fg(s,o)?this.effects.push(new Zo(s,6)):(this.effects.push(new Zo(s,2)),this.effects.push(new Zo(o,4)))}}return A.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,n=this.effects.slice(0);r;){var i=r.effects.filter(function(a){return!q0(a)});if(t||r.container.styles.position!==0||!r.parent){if(n.unshift.apply(n,i),t=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var s=dl(r.curves),o=hl(r.curves);Fg(s,o)||n.unshift(new Zo(o,6))}}else n.unshift.apply(n,i);r=r.parent}return n.filter(function(a){return qA(a.target,e)})},A}(),Zf=function(A,e,t,r){A.container.elements.forEach(function(n){var i=qA(n.flags,4),s=qA(n.flags,2),o=new AC(n,A);qA(n.styles.display,2048)&&r.push(o);var a=qA(n.flags,8)?[]:r;if(i||s){var l=i||n.styles.isPositioned()?t:e,u=new $0(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var c=n.styles.zIndex.order;if(c<0){var f=0;l.negativeZIndex.some(function(B,m){return c>B.element.container.styles.zIndex.order?(f=m,!1):f>0}),l.negativeZIndex.splice(f,0,u)}else if(c>0){var g=0;l.positiveZIndex.some(function(B,m){return c>=B.element.container.styles.zIndex.order?(g=m+1,!1):g>0}),l.positiveZIndex.splice(g,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else n.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);Zf(o,u,i?u:t,a)}else n.styles.isInlineLevel()?e.inlineLevel.push(o):e.nonInlineLevel.push(o),Zf(o,e,t,a);qA(n.flags,8)&&eC(n,a)})},eC=function(A,e){for(var t=A instanceof Wf?A.start:1,r=A instanceof Wf?A.reversed:!1,n=0;n"u"?A[0]:t},HL=function(A,e,t,r,n){var i=e[0],s=e[1],o=t[0],a=t[1];switch(A){case 2:return[new j(Math.round(r.left),Math.round(r.top+s)),new j(Math.round(r.left+r.width),Math.round(r.top+s)),new j(Math.round(r.left+r.width),Math.round(a+r.top+s)),new j(Math.round(r.left),Math.round(a+r.top+s))];case 3:return[new j(Math.round(r.left+i),Math.round(r.top)),new j(Math.round(r.left+i+o),Math.round(r.top)),new j(Math.round(r.left+i+o),Math.round(r.height+r.top)),new j(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new j(Math.round(r.left+i),Math.round(r.top+s)),new j(Math.round(r.left+i+o),Math.round(r.top+s)),new j(Math.round(r.left+i+o),Math.round(r.top+s+a)),new j(Math.round(r.left+i),Math.round(r.top+s+a))];default:return[new j(Math.round(n.left),Math.round(n.top)),new j(Math.round(n.left+n.width),Math.round(n.top)),new j(Math.round(n.left+n.width),Math.round(n.height+n.top)),new j(Math.round(n.left),Math.round(n.height+n.top))]}},xL="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Eg="Hidden Text",LL=function(){function A(e){this._data={},this._document=e}return A.prototype.parseMetrics=function(e,t){var r=this._document.createElement("div"),n=this._document.createElement("img"),i=this._document.createElement("span"),s=this._document.body;r.style.visibility="hidden",r.style.fontFamily=e,r.style.fontSize=t,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",s.appendChild(r),n.src=xL,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=t,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(Eg)),r.appendChild(i),r.appendChild(n);var o=n.offsetTop-i.offsetTop+2;r.removeChild(i),r.appendChild(this._document.createTextNode(Eg)),r.style.lineHeight="normal",n.style.verticalAlign="super";var a=n.offsetTop-r.offsetTop+2;return s.removeChild(r),{baseline:o,middle:a}},A.prototype.getMetrics=function(e,t){var r=e+" "+t;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(e,t)),this._data[r]},A}(),rC=function(){function A(e,t){this.context=e,this.options=t}return A}(),DL=1e4,TL=function(A){vt(e,A);function e(t,r){var n=A.call(this,t,r)||this;return n._activeEffects=[],n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),r.canvas||(n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px"),n.fontMetrics=new LL(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),n}return e.prototype.applyEffects=function(t){for(var r=this;this._activeEffects.length;)this.popEffect();t.forEach(function(n){return r.applyEffect(n)})},e.prototype.applyEffect=function(t){this.ctx.save(),vL(t)&&(this.ctx.globalAlpha=t.opacity),mL(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),q0(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(t){return Fe(this,void 0,void 0,function(){var r;return me(this,function(n){switch(n.label){case 0:return r=t.element.container.styles,r.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(t){return Fe(this,void 0,void 0,function(){return me(this,function(r){switch(r.label){case 0:if(qA(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(t)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(t,r,n){var i=this;if(r===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+n);else{var s=mh(t.text);s.reduce(function(o,a){return i.ctx.fillText(a,o,t.bounds.top+n),o+i.ctx.measureText(a).width},t.bounds.left)}},e.prototype.createFontStyle=function(t){var r=t.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),n=KL(t.fontFamily).join(", "),i=$s(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,r,t.fontWeight,i,n].join(" "),n,i]},e.prototype.renderTextNode=function(t,r){return Fe(this,void 0,void 0,function(){var n,i,s,o,a,l,u,c,f=this;return me(this,function(g){return n=this.createFontStyle(r),i=n[0],s=n[1],o=n[2],this.ctx.font=i,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",a=this.fontMetrics.getMetrics(s,o),l=a.baseline,u=a.middle,c=r.paintOrder,t.textBounds.forEach(function(B){c.forEach(function(m){switch(m){case 0:f.ctx.fillStyle=ne(r.color),f.renderTextWithLetterSpacing(B,r.letterSpacing,l);var S=r.textShadow;S.length&&B.text.trim().length&&(S.slice(0).reverse().forEach(function(p){f.ctx.shadowColor=ne(p.color),f.ctx.shadowOffsetX=p.offsetX.number*f.options.scale,f.ctx.shadowOffsetY=p.offsetY.number*f.options.scale,f.ctx.shadowBlur=p.blur.number,f.renderTextWithLetterSpacing(B,r.letterSpacing,l)}),f.ctx.shadowColor="",f.ctx.shadowOffsetX=0,f.ctx.shadowOffsetY=0,f.ctx.shadowBlur=0),r.textDecorationLine.length&&(f.ctx.fillStyle=ne(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(p){switch(p){case 1:f.ctx.fillRect(B.bounds.left,Math.round(B.bounds.top+l),B.bounds.width,1);break;case 2:f.ctx.fillRect(B.bounds.left,Math.round(B.bounds.top),B.bounds.width,1);break;case 3:f.ctx.fillRect(B.bounds.left,Math.ceil(B.bounds.top+u),B.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&B.text.trim().length&&(f.ctx.strokeStyle=ne(r.webkitTextStrokeColor),f.ctx.lineWidth=r.webkitTextStrokeWidth,f.ctx.lineJoin=window.chrome?"miter":"round",f.ctx.strokeText(B.text,B.bounds.left,B.bounds.top+l)),f.ctx.strokeStyle="",f.ctx.lineWidth=0,f.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(t,r,n){if(n&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var i=Bl(t),s=hl(r);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return Fe(this,void 0,void 0,function(){var r,n,i,s,o,a,d,d,l,u,c,f,h,g,B,C,m,S,p,d,w,h,C;return me(this,function(y){switch(y.label){case 0:this.applyEffects(t.getEffects(4)),r=t.container,n=t.curves,i=r.styles,s=0,o=r.textNodes,y.label=1;case 1:return s0&&N>0&&(v=i.ctx.createPattern(C,"repeat"),i.renderRepeat(H,v,eA,W))):vI(u)&&(E=wc(t,r,[null,null,null]),H=E[0],b=E[1],T=E[2],x=E[3],N=E[4],$=u.position.length===0?[ph]:u.position,eA=UA($[0],x),W=UA($[$.length-1],N),M=BI(u,eA,W,x,N),V=M[0],q=M[1],V>0&&q>0&&(dA=i.ctx.createRadialGradient(b+eA,T+W,0,b+eA,T+W,V),Xp(u.stops,V*2).forEach(function(Be){return dA.addColorStop(Be.stop,ne(Be.color))}),i.path(H),i.ctx.fillStyle=dA,V!==q?(pA=t.bounds.left+.5*t.bounds.width,te=t.bounds.top+.5*t.bounds.height,uA=q/V,_A=1/uA,i.ctx.save(),i.ctx.translate(pA,te),i.ctx.transform(1,0,0,uA,0,0),i.ctx.translate(-pA,-te),i.ctx.fillRect(b,_A*(T-te)+te,x,N*_A),i.ctx.restore()):i.ctx.fill())),PA.label=6;case 6:return r--,[2]}})},i=this,s=0,o=t.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return s0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,o,t.curves,2)]:[3,11]):[3,13];case 4:return f.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,o,t.curves,3)];case 6:return f.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,o,t.curves)];case 8:return f.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,o,t.curves)];case 10:f.sent(),f.label=11;case 11:o++,f.label=12;case 12:return a++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(t,r,n,i,s){return Fe(this,void 0,void 0,function(){var o,a,l,u,c,f,g,B,m,S,p,d,w,h,C,y,C,y;return me(this,function(U){return this.ctx.save(),o=UL(i,n),a=Ug(i,n),s===2&&(this.path(a),this.ctx.clip()),Ye(a[0])?(l=a[0].start.x,u=a[0].start.y):(l=a[0].x,u=a[0].y),Ye(a[1])?(c=a[1].end.x,f=a[1].end.y):(c=a[1].x,f=a[1].y),n===0||n===2?g=Math.abs(l-c):g=Math.abs(u-f),this.ctx.beginPath(),s===3?this.formatPath(o):this.formatPath(a.slice(0,2)),B=r<3?r*3:r*2,m=r<3?r*2:r,s===3&&(B=r,m=r),S=!0,g<=B*2?S=!1:g<=B*2+m?(p=g/(2*B+m),B*=p,m*=p):(d=Math.floor((g+m)/(B+m)),w=(g-d*B)/(d-1),h=(g-(d+1)*B)/d,m=h<=0||Math.abs(m-w)e=>{const t=WL.call(e);return A[t]||(A[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Rt=A=>(A=A.toLowerCase(),e=>ql(e)===A),$l=A=>e=>typeof e===A,{isArray:pi}=Array,Ps=$l("undefined");function zL(A){return A!==null&&!Ps(A)&&A.constructor!==null&&!Ps(A.constructor)&&et(A.constructor.isBuffer)&&A.constructor.isBuffer(A)}const iC=Rt("ArrayBuffer");function XL(A){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(A):e=A&&A.buffer&&iC(A.buffer),e}const JL=$l("string"),et=$l("function"),sC=$l("number"),Au=A=>A!==null&&typeof A=="object",YL=A=>A===!0||A===!1,Ca=A=>{if(ql(A)!=="object")return!1;const e=yh(A);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in A)&&!(Symbol.iterator in A)},ZL=Rt("Date"),qL=Rt("File"),$L=Rt("Blob"),A4=Rt("FileList"),e4=A=>Au(A)&&et(A.pipe),t4=A=>{let e;return A&&(typeof FormData=="function"&&A instanceof FormData||et(A.append)&&((e=ql(A))==="formdata"||e==="object"&&et(A.toString)&&A.toString()==="[object FormData]"))},r4=Rt("URLSearchParams"),n4=A=>A.trim?A.trim():A.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ao(A,e,{allOwnKeys:t=!1}={}){if(A===null||typeof A>"u")return;let r,n;if(typeof A!="object"&&(A=[A]),pi(A))for(r=0,n=A.length;r0;)if(n=t[r],e===n.toLowerCase())return n;return null}const aC=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),lC=A=>!Ps(A)&&A!==aC;function qf(){const{caseless:A}=lC(this)&&this||{},e={},t=(r,n)=>{const i=A&&oC(e,n)||n;Ca(e[i])&&Ca(r)?e[i]=qf(e[i],r):Ca(r)?e[i]=qf({},r):pi(r)?e[i]=r.slice():e[i]=r};for(let r=0,n=arguments.length;r(Ao(e,(n,i)=>{t&&et(n)?A[i]=nC(n,t):A[i]=n},{allOwnKeys:r}),A),s4=A=>(A.charCodeAt(0)===65279&&(A=A.slice(1)),A),o4=(A,e,t,r)=>{A.prototype=Object.create(e.prototype,r),A.prototype.constructor=A,Object.defineProperty(A,"super",{value:e.prototype}),t&&Object.assign(A.prototype,t)},a4=(A,e,t,r)=>{let n,i,s;const o={};if(e=e||{},A==null)return e;do{for(n=Object.getOwnPropertyNames(A),i=n.length;i-- >0;)s=n[i],(!r||r(s,A,e))&&!o[s]&&(e[s]=A[s],o[s]=!0);A=t!==!1&&yh(A)}while(A&&(!t||t(A,e))&&A!==Object.prototype);return e},l4=(A,e,t)=>{A=String(A),(t===void 0||t>A.length)&&(t=A.length),t-=e.length;const r=A.indexOf(e,t);return r!==-1&&r===t},u4=A=>{if(!A)return null;if(pi(A))return A;let e=A.length;if(!sC(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=A[e];return t},c4=(A=>e=>A&&e instanceof A)(typeof Uint8Array<"u"&&yh(Uint8Array)),f4=(A,e)=>{const r=(A&&A[Symbol.iterator]).call(A);let n;for(;(n=r.next())&&!n.done;){const i=n.value;e.call(A,i[0],i[1])}},d4=(A,e)=>{let t;const r=[];for(;(t=A.exec(e))!==null;)r.push(t);return r},h4=Rt("HTMLFormElement"),B4=A=>A.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),Sg=(({hasOwnProperty:A})=>(e,t)=>A.call(e,t))(Object.prototype),p4=Rt("RegExp"),uC=(A,e)=>{const t=Object.getOwnPropertyDescriptors(A),r={};Ao(t,(n,i)=>{e(n,i,A)!==!1&&(r[i]=n)}),Object.defineProperties(A,r)},g4=A=>{uC(A,(e,t)=>{if(et(A)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=A[t];if(et(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},w4=(A,e)=>{const t={},r=n=>{n.forEach(i=>{t[i]=!0})};return pi(A)?r(A):r(String(A).split(e)),t},m4=()=>{},v4=(A,e)=>(A=+A,Number.isFinite(A)?A:e),mc="abcdefghijklmnopqrstuvwxyz",Ig="0123456789",cC={DIGIT:Ig,ALPHA:mc,ALPHA_DIGIT:mc+mc.toUpperCase()+Ig},C4=(A=16,e=cC.ALPHA_DIGIT)=>{let t="";const{length:r}=e;for(;A--;)t+=e[Math.random()*r|0];return t};function y4(A){return!!(A&&et(A.append)&&A[Symbol.toStringTag]==="FormData"&&A[Symbol.iterator])}const Q4=A=>{const e=new Array(10),t=(r,n)=>{if(Au(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[n]=r;const i=pi(r)?[]:{};return Ao(r,(s,o)=>{const a=t(s,n+1);!Ps(a)&&(i[o]=a)}),e[n]=void 0,i}}return r};return t(A,0)},F4=Rt("AsyncFunction"),U4=A=>A&&(Au(A)||et(A))&&et(A.then)&&et(A.catch),R={isArray:pi,isArrayBuffer:iC,isBuffer:zL,isFormData:t4,isArrayBufferView:XL,isString:JL,isNumber:sC,isBoolean:YL,isObject:Au,isPlainObject:Ca,isUndefined:Ps,isDate:ZL,isFile:qL,isBlob:$L,isRegExp:p4,isFunction:et,isStream:e4,isURLSearchParams:r4,isTypedArray:c4,isFileList:A4,forEach:Ao,merge:qf,extend:i4,trim:n4,stripBOM:s4,inherits:o4,toFlatObject:a4,kindOf:ql,kindOfTest:Rt,endsWith:l4,toArray:u4,forEachEntry:f4,matchAll:d4,isHTMLForm:h4,hasOwnProperty:Sg,hasOwnProp:Sg,reduceDescriptors:uC,freezeMethods:g4,toObjectSet:w4,toCamelCase:B4,noop:m4,toFiniteNumber:v4,findKey:oC,global:aC,isContextDefined:lC,ALPHABET:cC,generateString:C4,isSpecCompliantForm:y4,toJSONObject:Q4,isAsyncFn:F4,isThenable:U4};function hA(A,e,t,r,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=A,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),r&&(this.request=r),n&&(this.response=n)}R.inherits(hA,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:R.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const fC=hA.prototype,dC={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(A=>{dC[A]={value:A}});Object.defineProperties(hA,dC);Object.defineProperty(fC,"isAxiosError",{value:!0});hA.from=(A,e,t,r,n,i)=>{const s=Object.create(fC);return R.toFlatObject(A,s,function(a){return a!==Error.prototype},o=>o!=="isAxiosError"),hA.call(s,A.message,e,t,r,n),s.cause=A,s.name=A.name,i&&Object.assign(s,i),s};const E4=null;function $f(A){return R.isPlainObject(A)||R.isArray(A)}function hC(A){return R.endsWith(A,"[]")?A.slice(0,-2):A}function Hg(A,e,t){return A?A.concat(e).map(function(n,i){return n=hC(n),!t&&i?"["+n+"]":n}).join(t?".":""):e}function S4(A){return R.isArray(A)&&!A.some($f)}const I4=R.toFlatObject(R,{},null,function(e){return/^is[A-Z]/.test(e)});function eu(A,e,t){if(!R.isObject(A))throw new TypeError("target must be an object");e=e||new FormData,t=R.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,S){return!R.isUndefined(S[m])});const r=t.metaTokens,n=t.visitor||u,i=t.dots,s=t.indexes,a=(t.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(e);if(!R.isFunction(n))throw new TypeError("visitor must be a function");function l(B){if(B===null)return"";if(R.isDate(B))return B.toISOString();if(!a&&R.isBlob(B))throw new hA("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(B)||R.isTypedArray(B)?a&&typeof Blob=="function"?new Blob([B]):Buffer.from(B):B}function u(B,m,S){let p=B;if(B&&!S&&typeof B=="object"){if(R.endsWith(m,"{}"))m=r?m:m.slice(0,-2),B=JSON.stringify(B);else if(R.isArray(B)&&S4(B)||(R.isFileList(B)||R.endsWith(m,"[]"))&&(p=R.toArray(B)))return m=hC(m),p.forEach(function(w,h){!(R.isUndefined(w)||w===null)&&e.append(s===!0?Hg([m],h,i):s===null?m:m+"[]",l(w))}),!1}return $f(B)?!0:(e.append(Hg(S,m,i),l(B)),!1)}const c=[],f=Object.assign(I4,{defaultVisitor:u,convertValue:l,isVisitable:$f});function g(B,m){if(!R.isUndefined(B)){if(c.indexOf(B)!==-1)throw Error("Circular reference detected in "+m.join("."));c.push(B),R.forEach(B,function(p,d){(!(R.isUndefined(p)||p===null)&&n.call(e,p,R.isString(d)?d.trim():d,m,f))===!0&&g(p,m?m.concat(d):[d])}),c.pop()}}if(!R.isObject(A))throw new TypeError("data must be an object");return g(A),e}function xg(A){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(A).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Qh(A,e){this._pairs=[],A&&eu(A,this,e)}const BC=Qh.prototype;BC.append=function(e,t){this._pairs.push([e,t])};BC.toString=function(e){const t=e?function(r){return e.call(this,r,xg)}:xg;return this._pairs.map(function(n){return t(n[0])+"="+t(n[1])},"").join("&")};function H4(A){return encodeURIComponent(A).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function pC(A,e,t){if(!e)return A;const r=t&&t.encode||H4,n=t&&t.serialize;let i;if(n?i=n(e,t):i=R.isURLSearchParams(e)?e.toString():new Qh(e,t).toString(r),i){const s=A.indexOf("#");s!==-1&&(A=A.slice(0,s)),A+=(A.indexOf("?")===-1?"?":"&")+i}return A}class x4{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){R.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Lg=x4,gC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},L4=typeof URLSearchParams<"u"?URLSearchParams:Qh,D4=typeof FormData<"u"?FormData:null,T4=typeof Blob<"u"?Blob:null,R4=(()=>{let A;return typeof navigator<"u"&&((A=navigator.product)==="ReactNative"||A==="NativeScript"||A==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),O4=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),St={isBrowser:!0,classes:{URLSearchParams:L4,FormData:D4,Blob:T4},isStandardBrowserEnv:R4,isStandardBrowserWebWorkerEnv:O4,protocols:["http","https","file","blob","url","data"]};function b4(A,e){return eu(A,new St.classes.URLSearchParams,Object.assign({visitor:function(t,r,n,i){return St.isNode&&R.isBuffer(t)?(this.append(r,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function M4(A){return R.matchAll(/\w+|\[(\w*)]/g,A).map(e=>e[0]==="[]"?"":e[1]||e[0])}function K4(A){const e={},t=Object.keys(A);let r;const n=t.length;let i;for(r=0;r=t.length;return s=!s&&R.isArray(n)?n.length:s,a?(R.hasOwnProp(n,s)?n[s]=[n[s],r]:n[s]=r,!o):((!n[s]||!R.isObject(n[s]))&&(n[s]=[]),e(t,r,n[s],i)&&R.isArray(n[s])&&(n[s]=K4(n[s])),!o)}if(R.isFormData(A)&&R.isFunction(A.entries)){const t={};return R.forEachEntry(A,(r,n)=>{e(M4(r),n,t,0)}),t}return null}const _4={"Content-Type":void 0};function P4(A,e,t){if(R.isString(A))try{return(e||JSON.parse)(A),R.trim(A)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(A)}const tu={transitional:gC,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=R.isObject(e);if(i&&R.isHTMLForm(e)&&(e=new FormData(e)),R.isFormData(e))return n&&n?JSON.stringify(wC(e)):e;if(R.isArrayBuffer(e)||R.isBuffer(e)||R.isStream(e)||R.isFile(e)||R.isBlob(e))return e;if(R.isArrayBufferView(e))return e.buffer;if(R.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return b4(e,this.formSerializer).toString();if((o=R.isFileList(e))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return eu(o?{"files[]":e}:e,a&&new a,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),P4(e)):e}],transformResponse:[function(e){const t=this.transitional||tu.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(e&&R.isString(e)&&(r&&!this.responseType||n)){const s=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(o){if(s)throw o.name==="SyntaxError"?hA.from(o,hA.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:St.classes.FormData,Blob:St.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};R.forEach(["delete","get","head"],function(e){tu.headers[e]={}});R.forEach(["post","put","patch"],function(e){tu.headers[e]=R.merge(_4)});const Fh=tu,N4=R.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),k4=A=>{const e={};let t,r,n;return A&&A.split(` -`).forEach(function(s){n=s.indexOf(":"),t=s.substring(0,n).trim().toLowerCase(),r=s.substring(n+1).trim(),!(!t||e[t]&&N4[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},Dg=Symbol("internals");function ki(A){return A&&String(A).trim().toLowerCase()}function ya(A){return A===!1||A==null?A:R.isArray(A)?A.map(ya):String(A)}function V4(A){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(A);)e[r[1]]=r[2];return e}const G4=A=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(A.trim());function vc(A,e,t,r,n){if(R.isFunction(r))return r.call(this,e,t);if(n&&(e=t),!!R.isString(e)){if(R.isString(r))return e.indexOf(r)!==-1;if(R.isRegExp(r))return r.test(e)}}function j4(A){return A.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function W4(A,e){const t=R.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(A,r+t,{value:function(n,i,s){return this[r].call(this,e,n,i,s)},configurable:!0})})}class ru{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function i(o,a,l){const u=ki(a);if(!u)throw new Error("header name must be a non-empty string");const c=R.findKey(n,u);(!c||n[c]===void 0||l===!0||l===void 0&&n[c]!==!1)&&(n[c||a]=ya(o))}const s=(o,a)=>R.forEach(o,(l,u)=>i(l,u,a));return R.isPlainObject(e)||e instanceof this.constructor?s(e,t):R.isString(e)&&(e=e.trim())&&!G4(e)?s(k4(e),t):e!=null&&i(t,e,r),this}get(e,t){if(e=ki(e),e){const r=R.findKey(this,e);if(r){const n=this[r];if(!t)return n;if(t===!0)return V4(n);if(R.isFunction(t))return t.call(this,n,r);if(R.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ki(e),e){const r=R.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||vc(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let n=!1;function i(s){if(s=ki(s),s){const o=R.findKey(r,s);o&&(!t||vc(r,r[o],o,t))&&(delete r[o],n=!0)}}return R.isArray(e)?e.forEach(i):i(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const i=t[r];(!e||vc(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){const t=this,r={};return R.forEach(this,(n,i)=>{const s=R.findKey(r,i);if(s){t[s]=ya(n),delete t[i];return}const o=e?j4(i):String(i).trim();o!==i&&delete t[i],t[o]=ya(n),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return R.forEach(this,(r,n)=>{r!=null&&r!==!1&&(t[n]=e&&R.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(n=>r.set(n)),r}static accessor(e){const r=(this[Dg]=this[Dg]={accessors:{}}).accessors,n=this.prototype;function i(s){const o=ki(s);r[o]||(W4(n,s),r[o]=!0)}return R.isArray(e)?e.forEach(i):i(e),this}}ru.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.freezeMethods(ru.prototype);R.freezeMethods(ru);const Jt=ru;function Cc(A,e){const t=this||Fh,r=e||t,n=Jt.from(r.headers);let i=r.data;return R.forEach(A,function(o){i=o.call(t,i,n.normalize(),e?e.status:void 0)}),n.normalize(),i}function mC(A){return!!(A&&A.__CANCEL__)}function eo(A,e,t){hA.call(this,A??"canceled",hA.ERR_CANCELED,e,t),this.name="CanceledError"}R.inherits(eo,hA,{__CANCEL__:!0});function z4(A,e,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?A(t):e(new hA("Request failed with status code "+t.status,[hA.ERR_BAD_REQUEST,hA.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const X4=St.isStandardBrowserEnv?function(){return{write:function(t,r,n,i,s,o){const a=[];a.push(t+"="+encodeURIComponent(r)),R.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),R.isString(i)&&a.push("path="+i),R.isString(s)&&a.push("domain="+s),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){const r=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function J4(A){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(A)}function Y4(A,e){return e?A.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):A}function vC(A,e){return A&&!J4(e)?Y4(A,e):e}const Z4=St.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(i){let s=i;return e&&(t.setAttribute("href",s),s=t.href),t.setAttribute("href",s),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(s){const o=R.isString(s)?n(s):s;return o.protocol===r.protocol&&o.host===r.host}}():function(){return function(){return!0}}();function q4(A){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(A);return e&&e[1]||""}function $4(A,e){A=A||10;const t=new Array(A),r=new Array(A);let n=0,i=0,s;return e=e!==void 0?e:1e3,function(a){const l=Date.now(),u=r[i];s||(s=l),t[n]=a,r[n]=l;let c=i,f=0;for(;c!==n;)f+=t[c++],c=c%A;if(n=(n+1)%A,n===i&&(i=(i+1)%A),l-s{const i=n.loaded,s=n.lengthComputable?n.total:void 0,o=i-t,a=r(o),l=i<=s;t=i;const u={loaded:i,total:s,progress:s?i/s:void 0,bytes:o,rate:a||void 0,estimated:a&&s&&l?(s-i)/a:void 0,event:n};u[e?"download":"upload"]=!0,A(u)}}const AD=typeof XMLHttpRequest<"u",eD=AD&&function(A){return new Promise(function(t,r){let n=A.data;const i=Jt.from(A.headers).normalize(),s=A.responseType;let o;function a(){A.cancelToken&&A.cancelToken.unsubscribe(o),A.signal&&A.signal.removeEventListener("abort",o)}R.isFormData(n)&&(St.isStandardBrowserEnv||St.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let l=new XMLHttpRequest;if(A.auth){const g=A.auth.username||"",B=A.auth.password?unescape(encodeURIComponent(A.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+B))}const u=vC(A.baseURL,A.url);l.open(A.method.toUpperCase(),pC(u,A.params,A.paramsSerializer),!0),l.timeout=A.timeout;function c(){if(!l)return;const g=Jt.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),m={data:!s||s==="text"||s==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:g,config:A,request:l};z4(function(p){t(p),a()},function(p){r(p),a()},m),l=null}if("onloadend"in l?l.onloadend=c:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(c)},l.onabort=function(){l&&(r(new hA("Request aborted",hA.ECONNABORTED,A,l)),l=null)},l.onerror=function(){r(new hA("Network Error",hA.ERR_NETWORK,A,l)),l=null},l.ontimeout=function(){let B=A.timeout?"timeout of "+A.timeout+"ms exceeded":"timeout exceeded";const m=A.transitional||gC;A.timeoutErrorMessage&&(B=A.timeoutErrorMessage),r(new hA(B,m.clarifyTimeoutError?hA.ETIMEDOUT:hA.ECONNABORTED,A,l)),l=null},St.isStandardBrowserEnv){const g=(A.withCredentials||Z4(u))&&A.xsrfCookieName&&X4.read(A.xsrfCookieName);g&&i.set(A.xsrfHeaderName,g)}n===void 0&&i.setContentType(null),"setRequestHeader"in l&&R.forEach(i.toJSON(),function(B,m){l.setRequestHeader(m,B)}),R.isUndefined(A.withCredentials)||(l.withCredentials=!!A.withCredentials),s&&s!=="json"&&(l.responseType=A.responseType),typeof A.onDownloadProgress=="function"&&l.addEventListener("progress",Tg(A.onDownloadProgress,!0)),typeof A.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Tg(A.onUploadProgress)),(A.cancelToken||A.signal)&&(o=g=>{l&&(r(!g||g.type?new eo(null,A,l):g),l.abort(),l=null)},A.cancelToken&&A.cancelToken.subscribe(o),A.signal&&(A.signal.aborted?o():A.signal.addEventListener("abort",o)));const f=q4(u);if(f&&St.protocols.indexOf(f)===-1){r(new hA("Unsupported protocol "+f+":",hA.ERR_BAD_REQUEST,A));return}l.send(n||null)})},Qa={http:E4,xhr:eD};R.forEach(Qa,(A,e)=>{if(A){try{Object.defineProperty(A,"name",{value:e})}catch{}Object.defineProperty(A,"adapterName",{value:e})}});const tD={getAdapter:A=>{A=R.isArray(A)?A:[A];const{length:e}=A;let t,r;for(let n=0;nA instanceof Jt?A.toJSON():A;function ui(A,e){e=e||{};const t={};function r(l,u,c){return R.isPlainObject(l)&&R.isPlainObject(u)?R.merge.call({caseless:c},l,u):R.isPlainObject(u)?R.merge({},u):R.isArray(u)?u.slice():u}function n(l,u,c){if(R.isUndefined(u)){if(!R.isUndefined(l))return r(void 0,l,c)}else return r(l,u,c)}function i(l,u){if(!R.isUndefined(u))return r(void 0,u)}function s(l,u){if(R.isUndefined(u)){if(!R.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function o(l,u,c){if(c in e)return r(l,u);if(c in A)return r(void 0,l)}const a={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:o,headers:(l,u)=>n(Og(l),Og(u),!0)};return R.forEach(Object.keys(Object.assign({},A,e)),function(u){const c=a[u]||n,f=c(A[u],e[u],u);R.isUndefined(f)&&c!==o||(t[u]=f)}),t}const CC="1.4.0",Uh={};["object","boolean","number","function","string","symbol"].forEach((A,e)=>{Uh[A]=function(r){return typeof r===A||"a"+(e<1?"n ":" ")+A}});const bg={};Uh.transitional=function(e,t,r){function n(i,s){return"[Axios v"+CC+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,o)=>{if(e===!1)throw new hA(n(s," has been removed"+(t?" in "+t:"")),hA.ERR_DEPRECATED);return t&&!bg[s]&&(bg[s]=!0,console.warn(n(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,s,o):!0}};function rD(A,e,t){if(typeof A!="object")throw new hA("options must be an object",hA.ERR_BAD_OPTION_VALUE);const r=Object.keys(A);let n=r.length;for(;n-- >0;){const i=r[n],s=e[i];if(s){const o=A[i],a=o===void 0||s(o,i,A);if(a!==!0)throw new hA("option "+i+" must be "+a,hA.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new hA("Unknown option "+i,hA.ERR_BAD_OPTION)}}const Ad={assertOptions:rD,validators:Uh},ir=Ad.validators;class pl{constructor(e){this.defaults=e,this.interceptors={request:new Lg,response:new Lg}}request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=ui(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:i}=t;r!==void 0&&Ad.assertOptions(r,{silentJSONParsing:ir.transitional(ir.boolean),forcedJSONParsing:ir.transitional(ir.boolean),clarifyTimeoutError:ir.transitional(ir.boolean)},!1),n!=null&&(R.isFunction(n)?t.paramsSerializer={serialize:n}:Ad.assertOptions(n,{encode:ir.function,serialize:ir.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s;s=i&&R.merge(i.common,i[t.method]),s&&R.forEach(["delete","get","head","post","put","patch","common"],B=>{delete i[B]}),t.headers=Jt.concat(s,i);const o=[];let a=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(t)===!1||(a=a&&m.synchronous,o.unshift(m.fulfilled,m.rejected))});const l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});let u,c=0,f;if(!a){const B=[Rg.bind(this),void 0];for(B.unshift.apply(B,o),B.push.apply(B,l),f=B.length,u=Promise.resolve(t);c{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](n);r._listeners=null}),this.promise.then=n=>{let i;const s=new Promise(o=>{r.subscribe(o),i=o}).then(n);return s.cancel=function(){r.unsubscribe(i)},s},e(function(i,s,o){r.reason||(r.reason=new eo(i,s,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new Eh(function(n){e=n}),cancel:e}}}const nD=Eh;function iD(A){return function(t){return A.apply(null,t)}}function sD(A){return R.isObject(A)&&A.isAxiosError===!0}const ed={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ed).forEach(([A,e])=>{ed[e]=A});const oD=ed;function yC(A){const e=new Fa(A),t=nC(Fa.prototype.request,e);return R.extend(t,Fa.prototype,e,{allOwnKeys:!0}),R.extend(t,e,null,{allOwnKeys:!0}),t.create=function(n){return yC(ui(A,n))},t}const ee=yC(Fh);ee.Axios=Fa;ee.CanceledError=eo;ee.CancelToken=nD;ee.isCancel=mC;ee.VERSION=CC;ee.toFormData=eu;ee.AxiosError=hA;ee.Cancel=ee.CanceledError;ee.all=function(e){return Promise.all(e)};ee.spread=iD;ee.isAxiosError=sD;ee.mergeConfig=ui;ee.AxiosHeaders=Jt;ee.formToJSON=A=>wC(R.isHTMLForm(A)?new FormData(A):A);ee.HttpStatusCode=oD;ee.default=ee;const Mg=ee,aD=()=>{const A=K.useRef(null),e=NF({mutationFn:async({img:r})=>{Mg.defaults.headers.common.Authorization=`Bearer ${vS}`;const n=await Mg.post(mS,{labelCode:Mi.labelId,page:1,frontPage:1,image:r.split(",")[1],articleList:[{articleId:Mi.productId,articleName:Mi.productName,nfcUrl:"http://www.solumesl.com",data:{ARTICLE_ID:Mi.productId,ARTICLE_NAME:Mi.productName,NFC_URL:"http://www.solum.com/p/JC000001",SALE_PRICE:"$100",DISCOUNT_PRICE:"$90"}}]},{headers:{"Content-Type":"application/json; charset=utf-8 "}});console.log(n)}});return{domRef:A,handleSendEslClick:async()=>{if(A.current){const r=await VL(A.current,{width:$v,height:A0,scale:1});e.mutate({img:r.toDataURL()})}}}},lD=({children:A})=>{const{domRef:e,handleSendEslClick:t}=aD();return F.jsxs(F.Fragment,{children:[F.jsx("div",{ref:e,style:{width:$v,height:A0},children:A}),F.jsx("button",{onClick:t,children:"Send esl"})]})},uD=()=>{const[A,e]=K.useState("A"),t=r=>{const n=r.target;e(n.dataset.type)};return F.jsxs("div",{className:"preview-choose-type-container",children:[F.jsx("div",{className:A==="A"?"preview-choose-type-box":"preview-not-choose-type-box",onClick:t,"data-type":"A",children:"CardMe Type A"}),F.jsx("div",{className:A==="B"?"preview-choose-type-box":"preview-not-choose-type-box",onClick:t,"data-type":"B",children:"CardMe Type B"})]})};var QC={},nu={},Sh={},Qc={},Fc={exports:{}},Uc,Kg;function cD(){if(Kg)return Uc;Kg=1;var A="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Uc=A,Uc}var Ec,_g;function fD(){if(_g)return Ec;_g=1;var A=cD();function e(){}function t(){}return t.resetWarningCache=e,Ec=function(){function r(s,o,a,l,u,c){if(c!==A){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function n(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:n,element:r,elementType:r,instanceOf:n,node:r,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:t,resetWarningCache:e};return i.PropTypes=i,i},Ec}var Pg;function dD(){return Pg||(Pg=1,Fc.exports=fD()()),Fc.exports}var Ng;function hD(){return Ng||(Ng=1,function(A){(function(e,t){t(A,K,dD())})(Xg,function(e,t,r){Object.defineProperty(e,"__esModule",{value:!0}),e.setHasSupportToCaptureOption=B;var n=s(t),i=s(r);function s(d){return d&&d.__esModule?d:{default:d}}var o=Object.assign||function(d){for(var w=1;w=0||Object.prototype.hasOwnProperty.call(d,C)&&(h[C]=d[C]);return h}function l(d,w){if(!(d instanceof w))throw new TypeError("Cannot call a class as a function")}var u=function(){function d(w,h){for(var C=0;C0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return g?d:d.capture}function S(d){if("touches"in d){var w=d.touches[0],h=w.pageX,C=w.pageY;return{x:h,y:C}}var y=d.screenX,U=d.screenY;return{x:y,y:U}}var p=function(d){f(w,d);function w(){var h;l(this,w);for(var C=arguments.length,y=Array(C),U=0;Uy&&this.props.onSwipeRight(1,C),this.movePosition.deltaY<-y?this.props.onSwipeUp(1,C):this.movePosition.deltaY>y&&this.props.onSwipeDown(1,C)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(C){this.swiper=C,this.props.innerRef(C)}},{key:"render",value:function(){var C=this.props;C.tagName;var y=C.className,U=C.style,v=C.children;C.allowMouseEvents,C.onSwipeUp,C.onSwipeDown,C.onSwipeLeft,C.onSwipeRight,C.onSwipeStart,C.onSwipeMove,C.onSwipeEnd,C.innerRef,C.tolerance;var E=a(C,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return n.default.createElement(this.props.tagName,o({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:y,style:U},E),v)}}]),w}(t.Component);p.displayName="ReactSwipe",p.propTypes={tagName:i.default.string,className:i.default.string,style:i.default.object,children:i.default.node,allowMouseEvents:i.default.bool,onSwipeUp:i.default.func,onSwipeDown:i.default.func,onSwipeLeft:i.default.func,onSwipeRight:i.default.func,onSwipeStart:i.default.func,onSwipeMove:i.default.func,onSwipeEnd:i.default.func,innerRef:i.default.func,tolerance:i.default.number.isRequired},p.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},e.default=p})}(Qc)),Qc}(function(A){(function(e,t){t(A,hD())})(Xg,function(e,t){Object.defineProperty(e,"__esModule",{value:!0});var r=n(t);function n(i){return i&&i.__esModule?i:{default:i}}e.default=r.default})})(Sh);var to={},FC={exports:{}};/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(A){(function(){var e={}.hasOwnProperty;function t(){for(var r=[],n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function gl(A){return gl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},gl(A)}function we(A,e,t){return e in A?Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):A[e]=t,A}var LD=function(e){return e.hasOwnProperty("key")},Ih=function(A){SD(t,A);var e=ID(t);function t(r){var n;return UD(this,t),n=e.call(this,r),we(Qe(n),"itemsWrapperRef",void 0),we(Qe(n),"itemsListRef",void 0),we(Qe(n),"thumbsRef",void 0),we(Qe(n),"setItemsWrapperRef",function(i){n.itemsWrapperRef=i}),we(Qe(n),"setItemsListRef",function(i){n.itemsListRef=i}),we(Qe(n),"setThumbsRef",function(i,s){n.thumbsRef||(n.thumbsRef=[]),n.thumbsRef[s]=i}),we(Qe(n),"updateSizes",function(){if(!(!n.props.children||!n.itemsWrapperRef||!n.thumbsRef)){var i=ot.Children.count(n.props.children),s=n.itemsWrapperRef.clientWidth,o=n.props.thumbWidth?n.props.thumbWidth:(0,yD.outerWidth)(n.thumbsRef[0]),a=Math.floor(s/o),l=a0&&(s=0),l===c&&s<0&&(s=0);var f=n.itemsWrapperRef.clientWidth,g=l+100/(f/s);return n.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(B){n.itemsListRef.style[B]=(0,kg.default)(g,"%",n.props.axis)}),!0}),we(Qe(n),"slideRight",function(i){n.moveTo(n.state.firstItem-(typeof i=="number"?i:1))}),we(Qe(n),"slideLeft",function(i){n.moveTo(n.state.firstItem+(typeof i=="number"?i:1))}),we(Qe(n),"moveTo",function(i){i=i<0?0:i,i=i>=n.state.lastPosition?n.state.lastPosition:i,n.setState({firstItem:i})}),n.state={selectedItem:r.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},n}return ED(t,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(n){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==n.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,Aa.default)().addEventListener("resize",this.updateSizes),(0,Aa.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,Aa.default)().removeEventListener("resize",this.updateSizes),(0,Aa.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(n){var i=n;return n>=this.state.lastPosition&&(i=this.state.lastPosition),n1,s=this.state.showArrows&&this.state.firstItem>0,o=this.state.showArrows&&this.state.firstItems);if(o)return i<0?e.centerMode&&e.centerSlidePercentage&&e.axis==="horizontal"?r.itemListStyle=(0,Ht.setPosition)(-(s+2)*e.centerSlidePercentage-(100-e.centerSlidePercentage)/2,e.axis):r.itemListStyle=(0,Ht.setPosition)(-(s+2)*100,e.axis):i>s&&(r.itemListStyle=(0,Ht.setPosition)(0,e.axis)),r;var a=(0,Ht.getPosition)(n,e),l=(0,ND.default)(a,"%",e.axis),u=e.transitionTime+"ms";return r.itemListStyle={WebkitTransform:l,msTransform:l,OTransform:l,transform:l},t.swiping||(r.itemListStyle=Xr(Xr({},r.itemListStyle),{},{WebkitTransitionDuration:u,MozTransitionDuration:u,OTransitionDuration:u,transitionDuration:u,msTransitionDuration:u})),r};It.slideAnimationHandler=GD;var jD=function(e,t,r,n){var i={},s=t.axis==="horizontal",o=EC.Children.count(t.children),a=0,l=(0,Ht.getPosition)(r.selectedItem,t),u=t.infiniteLoop?(0,Ht.getPosition)(o-1,t)-100:(0,Ht.getPosition)(o-1,t),c=s?e.x:e.y,f=c;l===a&&c>0&&(f=0),l===u&&c<0&&(f=0);var g=l+100/(r.itemSize/f),B=Math.abs(c)>t.swipeScrollTolerance;return t.infiniteLoop&&B&&(r.selectedItem===0&&g>-100?g-=o*100:r.selectedItem===o-1&&g<-o*100&&(g+=o*100)),(!t.preventMovementUntilSwipeScrollTolerance||B||r.swipeMovementStarted)&&(r.swipeMovementStarted||n({swipeMovementStarted:!0}),i.itemListStyle=(0,Ht.setPosition)(g,t.axis)),B&&!r.cancelClick&&n({cancelClick:!0}),i};It.slideSwipeAnimationHandler=jD;var WD=function(e,t){var r=(0,Ht.getPosition)(t.selectedItem,e),n=(0,Ht.setPosition)(r,e.axis);return{itemListStyle:n}};It.slideStopSwipingHandler=WD;var zD=function(e,t){var r=e.transitionTime+"ms",n="ease-in-out",i={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:n,msTransitionTimingFunction:n,MozTransitionTimingFunction:n,WebkitTransitionTimingFunction:n,OTransitionTimingFunction:n};return t.swiping||(i=Xr(Xr({},i),{},{WebkitTransitionDuration:r,MozTransitionDuration:r,OTransitionDuration:r,transitionDuration:r,msTransitionDuration:r})),{slideStyle:i,selectedStyle:Xr(Xr({},i),{},{opacity:1,position:"relative"}),prevStyle:Xr({},i)}};It.fadeAnimationHandler=zD;Object.defineProperty(nu,"__esModule",{value:!0});nu.default=void 0;var wA=YD(K),XD=io(Sh),Gt=io(to),JD=io(ro),ea=io(ou),ta=io(no),es=_e,wl=It;function io(A){return A&&A.__esModule?A:{default:A}}function SC(){if(typeof WeakMap!="function")return null;var A=new WeakMap;return SC=function(){return A},A}function YD(A){if(A&&A.__esModule)return A;if(A===null||ws(A)!=="object"&&typeof A!="function")return{default:A};var e=SC();if(e&&e.has(A))return e.get(A);var t={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in A)if(Object.prototype.hasOwnProperty.call(A,n)){var i=r?Object.getOwnPropertyDescriptor(A,n):null;i&&(i.get||i.set)?Object.defineProperty(t,n,i):t[n]=A[n]}return t.default=A,e&&e.set(A,t),t}function ws(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ws=function(t){return typeof t}:ws=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ws(A)}function nd(){return nd=Object.assign||function(A){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function ml(A){return ml=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ml(A)}function oA(A,e,t){return e in A?Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):A[e]=t,A}var Hh=function(A){$D(t,A);var e=AT(t);function t(r){var n;ZD(this,t),n=e.call(this,r),oA(lA(n),"thumbsRef",void 0),oA(lA(n),"carouselWrapperRef",void 0),oA(lA(n),"listRef",void 0),oA(lA(n),"itemsRef",void 0),oA(lA(n),"timer",void 0),oA(lA(n),"animationHandler",void 0),oA(lA(n),"setThumbsRef",function(s){n.thumbsRef=s}),oA(lA(n),"setCarouselWrapperRef",function(s){n.carouselWrapperRef=s}),oA(lA(n),"setListRef",function(s){n.listRef=s}),oA(lA(n),"setItemsRef",function(s,o){n.itemsRef||(n.itemsRef=[]),n.itemsRef[o]=s}),oA(lA(n),"autoPlay",function(){wA.Children.count(n.props.children)<=1||(n.clearAutoPlay(),n.props.autoPlay&&(n.timer=setTimeout(function(){n.increment()},n.props.interval)))}),oA(lA(n),"clearAutoPlay",function(){n.timer&&clearTimeout(n.timer)}),oA(lA(n),"resetAutoPlay",function(){n.clearAutoPlay(),n.autoPlay()}),oA(lA(n),"stopOnHover",function(){n.setState({isMouseEntered:!0},n.clearAutoPlay)}),oA(lA(n),"startOnLeave",function(){n.setState({isMouseEntered:!1},n.autoPlay)}),oA(lA(n),"isFocusWithinTheCarousel",function(){return n.carouselWrapperRef?!!((0,ea.default)().activeElement===n.carouselWrapperRef||n.carouselWrapperRef.contains((0,ea.default)().activeElement)):!1}),oA(lA(n),"navigateWithKeyboard",function(s){if(n.isFocusWithinTheCarousel()){var o=n.props.axis,a=o==="horizontal",l={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},u=a?l.ArrowRight:l.ArrowDown,c=a?l.ArrowLeft:l.ArrowUp;u===s.keyCode?n.increment():c===s.keyCode&&n.decrement()}}),oA(lA(n),"updateSizes",function(){if(!(!n.state.initialized||!n.itemsRef||n.itemsRef.length===0)){var s=n.props.axis==="horizontal",o=n.itemsRef[0];if(o){var a=s?o.clientWidth:o.clientHeight;n.setState({itemSize:a}),n.thumbsRef&&n.thumbsRef.updateSizes()}}}),oA(lA(n),"setMountState",function(){n.setState({hasMount:!0}),n.updateSizes()}),oA(lA(n),"handleClickItem",function(s,o){if(wA.Children.count(n.props.children)!==0){if(n.state.cancelClick){n.setState({cancelClick:!1});return}n.props.onClickItem(s,o),s!==n.state.selectedItem&&n.setState({selectedItem:s})}}),oA(lA(n),"handleOnChange",function(s,o){wA.Children.count(n.props.children)<=1||n.props.onChange(s,o)}),oA(lA(n),"handleClickThumb",function(s,o){n.props.onClickThumb(s,o),n.moveTo(s)}),oA(lA(n),"onSwipeStart",function(s){n.setState({swiping:!0}),n.props.onSwipeStart(s)}),oA(lA(n),"onSwipeEnd",function(s){n.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),n.props.onSwipeEnd(s),n.clearAutoPlay(),n.state.autoPlay&&n.autoPlay()}),oA(lA(n),"onSwipeMove",function(s,o){n.props.onSwipeMove(o);var a=n.props.swipeAnimationHandler(s,n.props,n.state,n.setState.bind(lA(n)));return n.setState(at({},a)),!!Object.keys(a).length}),oA(lA(n),"decrement",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;n.moveTo(n.state.selectedItem-(typeof s=="number"?s:1))}),oA(lA(n),"increment",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;n.moveTo(n.state.selectedItem+(typeof s=="number"?s:1))}),oA(lA(n),"moveTo",function(s){if(typeof s=="number"){var o=wA.Children.count(n.props.children)-1;s<0&&(s=n.props.infiniteLoop?o:0),s>o&&(s=n.props.infiniteLoop?0:o),n.selectItem({selectedItem:s}),n.state.autoPlay&&n.state.isMouseEntered===!1&&n.resetAutoPlay()}}),oA(lA(n),"onClickNext",function(){n.increment(1)}),oA(lA(n),"onClickPrev",function(){n.decrement(1)}),oA(lA(n),"onSwipeForward",function(){n.increment(1),n.props.emulateTouch&&n.setState({cancelClick:!0})}),oA(lA(n),"onSwipeBackwards",function(){n.decrement(1),n.props.emulateTouch&&n.setState({cancelClick:!0})}),oA(lA(n),"changeItem",function(s){return function(o){(!(0,es.isKeyboardEvent)(o)||o.key==="Enter")&&n.moveTo(s)}}),oA(lA(n),"selectItem",function(s){n.setState(at({previousItem:n.state.selectedItem},s),function(){n.setState(n.animationHandler(n.props,n.state))}),n.handleOnChange(s.selectedItem,wA.Children.toArray(n.props.children)[s.selectedItem])}),oA(lA(n),"getInitialImage",function(){var s=n.props.selectedItem,o=n.itemsRef&&n.itemsRef[s],a=o&&o.getElementsByTagName("img")||[];return a[0]}),oA(lA(n),"getVariableItemHeight",function(s){var o=n.itemsRef&&n.itemsRef[s];if(n.state.hasMount&&o&&o.children.length){var a=o.children[0].getElementsByTagName("img")||[];if(a.length>0){var l=a[0];if(!l.complete){var u=function g(){n.forceUpdate(),l.removeEventListener("load",g)};l.addEventListener("load",u)}}var c=a[0]||o.children[0],f=c.clientHeight;return f>0?f:null}return null});var i={initialized:!1,previousItem:r.selectedItem,selectedItem:r.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:r.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return n.animationHandler=typeof r.animationHandler=="function"&&r.animationHandler||r.animationHandler==="fade"&&wl.fadeAnimationHandler||wl.slideAnimationHandler,n.state=at(at({},i),n.animationHandler(r,i)),n}return qD(t,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(n,i){!n.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!n.autoFocus&&this.props.autoFocus&&this.forceFocus(),i.swiping&&!this.state.swiping&&this.setState(at({},this.props.stopSwipingHandler(this.props,this.state))),(n.selectedItem!==this.props.selectedItem||n.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),n.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var n=this;this.bindEvents(),this.state.autoPlay&&wA.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var i=n.getInitialImage();i&&!i.complete?i.addEventListener("load",n.setMountState):n.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var n=this.carouselWrapperRef;this.props.stopOnHover&&n&&(n.addEventListener("mouseenter",this.stopOnHover),n.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var n=this.carouselWrapperRef;this.props.stopOnHover&&n&&(n.removeEventListener("mouseenter",this.stopOnHover),n.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,ta.default)().addEventListener("resize",this.updateSizes),(0,ta.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,ea.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,ta.default)().removeEventListener("resize",this.updateSizes),(0,ta.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var n=this.getInitialImage();n&&n.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,ea.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var n;(n=this.carouselWrapperRef)===null||n===void 0||n.focus()}},{key:"renderItems",value:function(n){var i=this;return this.props.children?wA.Children.map(this.props.children,function(s,o){var a=o===i.state.selectedItem,l=o===i.state.previousItem,u=a&&i.state.selectedStyle||l&&i.state.prevStyle||i.state.slideStyle||{};i.props.centerMode&&i.props.axis==="horizontal"&&(u=at(at({},u),{},{minWidth:i.props.centerSlidePercentage+"%"})),i.state.swiping&&i.state.swipeMovementStarted&&(u=at(at({},u),{},{pointerEvents:"none"}));var c={ref:function(g){return i.setItemsRef(g,o)},key:"itemKey"+o+(n?"clone":""),className:Gt.default.ITEM(!0,o===i.state.selectedItem,o===i.state.previousItem),onClick:i.handleClickItem.bind(i,o,s),style:u};return wA.default.createElement("li",c,i.props.renderItem(s,{isSelected:o===i.state.selectedItem,isPrevious:o===i.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var n=this,i=this.props,s=i.showIndicators,o=i.labels,a=i.renderIndicator,l=i.children;return s?wA.default.createElement("ul",{className:"control-dots"},wA.Children.map(l,function(u,c){return a&&a(n.changeItem(c),c===n.state.selectedItem,c,o.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?wA.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,wA.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||wA.Children.count(this.props.children)===0?null:wA.default.createElement(JD.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var n=this;if(!this.props.children||wA.Children.count(this.props.children)===0)return null;var i=this.props.swipeable&&wA.Children.count(this.props.children)>1,s=this.props.axis==="horizontal",o=this.props.showArrows&&wA.Children.count(this.props.children)>1,a=o&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,l=o&&(this.state.selectedItem{const[A,e]=K.useState(0),t=[nT,iT,sT,oT,aT];return console.log(A),F.jsxs(F.Fragment,{children:[F.jsx("div",{className:"preview-image-container",children:F.jsx("div",{className:"preview-choose-carousel",children:F.jsx(QC.Carousel,{showArrows:!1,showThumbs:!1,showStatus:!1,showIndicators:!1,autoPlay:!0,infiniteLoop:!0,onChange:r=>{e(r)},children:t.map((r,n)=>F.jsx("div",{className:"preview-choose-carousel-img",children:F.jsx("img",{src:r})},n))})})}),F.jsx("div",{className:"preview-carousel-bar",children:t.map((r,n)=>F.jsx("div",{className:A===n?"preview-carousel-circle-black":"preview-carousel-circle-gray"},n))})]})},uT=()=>{const[,A]=be(hi),[,e]=be(ah);return K.useLayoutEffect(()=>(A({title:"CardMe Preview",back:!0}),e({text:"Modification"}),()=>{A({}),e({})}),[]),F.jsxs("div",{className:"preview-container",children:[F.jsx(uD,{}),F.jsx(lT,{}),F.jsx(gS,{}),F.jsx(lD,{children:"."})]})},IC="https://junction-asia-2023.github.io/just-label/svg/Calendar.svg",cT="https://junction-asia-2023.github.io/just-label/svg/Clock.svg",fT="https://junction-asia-2023.github.io/just-label/svg/Home.svg",dT="https://junction-asia-2023.github.io/just-label/svg/Users.svg",hT=({type:A})=>F.jsx("span",{className:`badge badge-${A}`}),BT=({type:A,title:e,date:t,time:r,place:n,people:i})=>F.jsxs("div",{className:"meeting-item",children:[F.jsxs("h2",{children:[F.jsx(hT,{type:A}),e]}),F.jsxs("p",{children:[F.jsx("img",{src:IC}),t]}),F.jsxs("p",{children:[F.jsx("img",{src:cT}),r]}),F.jsxs("p",{children:[F.jsx("img",{src:fT}),n]}),i&&F.jsxs("p",{children:[F.jsx("img",{src:dT}),i]})]}),zg="https://junction-asia-2023.github.io/just-label/svg/Arrow.svg",pT=({onClick:A})=>F.jsxs("div",{className:"week-selector",children:[F.jsx("img",{className:"arrow arrow-left",src:zg,onClick:A}),F.jsxs("h1",{children:[F.jsx("img",{src:IC}),"00.00  ~  00.00"]}),F.jsx("img",{className:"arrow arrow-right",src:zg,onClick:A})]});var ut=(A=>(A.Team="team",A.Business="business",A.Personal="personal",A))(ut||{});const Vi=[{type:ut.Team,title:"Team Meeting Title",date:"Wed, Aug 16th 2023",time:"14:00 ~ 17:00",place:"7F Conference Room A",people:"Andreas and 14 others"},{type:ut.Business,title:"Business Trip/Outside Work Title",date:"Wed, Aug 16th 2023",time:"14:00 ~ 17:00",place:"7F Conference Room A",people:"Andreas and 14 others"},{type:ut.Personal,title:"Personal Schedule Title",date:"Wed, Aug 16th 2023",time:"14:00 ~ 17:00",place:"7F Conference Room A"},{type:ut.Team,title:"Personal Schedule Title",date:"Wed, Aug 16th 2023",time:"14:00 ~ 17:00",place:"7F Conference Room A",people:"Andreas and 14 others"},{type:ut.Business,title:"Personal Schedule Title",date:"Wed, Aug 16th 2023",time:"14:00 ~ 17:00",place:"Hall A",people:"Andreas"},{type:ut.Business,title:"Business Trip/Outside Work Title",date:"Wed, Aug 16th 2023",time:"14:00 ~ 17:00",place:"7F Conference Room A",people:"Andreas and 14 others"},{type:ut.Personal,title:"Personal Schedule Title",date:"Wed, Aug 16th 2023",time:"14:00 ~ 17:00",place:"7F Conference Room A",people:"Andreas and 14 others"},{type:ut.Team,title:"Personal Schedule Title",date:"Wed, Aug 16th 2023",time:"14:00 ~ 17:00",place:"7F Conference Room A",people:"Andreas and 14 others"},{type:ut.Personal,title:"Personal Schedule Title",date:"Wed, Aug 16th 2023",time:"14:00 ~ 17:00",place:"7F Conference Room A",people:"Andreas and 14 others"},{type:ut.Personal,title:"Personal Schedule Title",date:"Wed, Aug 16th 2023",time:"14:00 ~ 17:00",place:"7F Conference Room A"}],gT=()=>{const[A,e]=K.useState([...Vi]);return{dummyMeetings:A,handleWeekChange:()=>{e([Vi[Math.floor(Math.random()*10)],Vi[Math.floor(Math.random()*10)],Vi[Math.floor(Math.random()*10)],Vi[Math.floor(Math.random()*10)]])}}},wT=()=>{const[,A]=be(hi),{dummyMeetings:e,handleWeekChange:t}=gT();return K.useLayoutEffect(()=>{A({title:"Schedule",back:!0})},[]),F.jsxs("div",{className:"schedule-container",children:[F.jsx(pT,{onClick:t}),(e||[]).map((r,n)=>F.jsx(BT,{...r},n))]})},mT=()=>{const[A,e]=K.useState(!1),[,t]=be(hi);return K.useLayoutEffect(()=>{t({back:!0,title:"Event"})},[]),{open:A,handleImageClick:()=>{e(!0)}}},vT="https://junction-asia-2023.github.io/just-label/svg/gift1.svg",CT="https://junction-asia-2023.github.io/just-label/svg/gift2.svg";const yT=()=>{const{open:A,handleImageClick:e}=mT();return F.jsx("div",{className:"event-container",children:F.jsxs("div",{className:"wrap",children:[F.jsxs("div",{className:`content ${A?"open":""}`,children:[F.jsx("span",{className:"label",children:"JUNCTION Event"}),F.jsx("div",{className:"title",children:"Who is the lucky one who got the winning gift?"})]}),F.jsx("div",{className:`gift ${A?"open":""}`,onClick:e,children:F.jsx("img",{width:A?"250":"170",height:A?"250":"170",src:A?CT:vT,alt:"gift"})}),F.jsx("div",{className:"description",children:"Press the gift box and check the winning results"})]})})},QT=Sf(F.jsxs(Nt,{path:"/",element:F.jsx(K.Suspense,{children:F.jsx(yE,{})}),errorElement:F.jsx(BS,{}),children:[F.jsx(Nt,{index:!0,element:F.jsx(OE,{})}),F.jsx(Nt,{path:"login",element:F.jsx(eS,{})}),F.jsx(Nt,{path:"setting",element:F.jsx(hS,{})}),F.jsx(Nt,{path:"preview",element:F.jsx(uT,{})}),F.jsx(Nt,{path:"schedule",element:F.jsx(wT,{})}),F.jsx(Nt,{path:"event",element:F.jsx(yT,{})}),F.jsx(Nt,{path:"*",element:F.jsx(pS,{})})]})),FT=qU(QT),UT=new QF,ET=()=>F.jsx(MF,{client:UT,children:F.jsx(_F,{children:F.jsx(zU,{router:FT})})});Sc.createRoot(document.getElementById("root")).render(F.jsx(TA.StrictMode,{children:F.jsx(ET,{})})); diff --git a/assets/index-581eae44.css b/assets/index-581eae44.css deleted file mode 100644 index 52684cd..0000000 --- a/assets/index-581eae44.css +++ /dev/null @@ -1 +0,0 @@ -.layout-container{width:480px;height:100%;background-color:#fff}.layout-title{display:flex;justify-content:space-between;align-items:center;height:61px;padding:0 8px;gap:8px}.layout-title.under-line{border-bottom:1px solid #e9e9f1}.layout-title .left{width:20px;height:48px;padding:0 14px;display:flex;align-items:center;justify-content:center}.layout-title .left.has{cursor:pointer}.layout-title .title{display:flex;align-items:center;justify-content:center;height:36px;padding:6px 8px;gap:10px;font-weight:700;font-size:16px;line-height:24px}.layout-title .title .logo{height:24px}.layout-bottom{display:flex;padding:16px;align-items:flex-start;gap:8px;align-self:stretch;border-top:1px solid #E9E9F1;background:#FFF;position:sticky;bottom:0;width:100%;box-sizing:border-box}.layout-bottom-btn{display:flex;height:48px;padding:0 14px;justify-content:center;align-items:center;flex:1 0 0;gap:8px;background:#191919;color:#fff;cursor:pointer}.home-container{height:calc(100vh - 77px)}.profile-box{display:flex;flex-direction:column;padding:24px 16px 16px;gap:24px}.profile-box .image-box{display:flex;justify-content:center}.profile-box .image-box .image{border-radius:50px;border:1px solid #E9E9F1;width:100px;height:100px}.profile-box .list-box{display:flex;flex-direction:column;gap:16px}.profile-box .list-box .list{display:flex;height:24px;gap:16px}.profile-box .list-box .list .name{width:100px}.profile-box .list-box .list .description{color:#7878b8}.gray-bar{height:12px;background-color:#e6e6e6}.active-box,.preview-box,.event-box,.schedule-box{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:72px;padding:0 16px;gap:16px}.active-box .icon-box,.preview-box .icon-box,.event-box .icon-box,.schedule-box .icon-box{width:36px;height:36px}.active-box .content,.preview-box .content,.event-box .content,.schedule-box .content{width:100%;padding:0}.active-box .content .title,.preview-box .content .title,.event-box .content .title,.schedule-box .content .title{font-weight:500;line-height:24px}.active-box .content .description,.preview-box .content .description,.event-box .content .description,.schedule-box .content .description{color:#7878b8;font-size:14px}.footer-box{display:flex;padding-top:24px;justify-content:center;align-items:center;background-color:#fff}.footer-box .description{cursor:pointer;text-decoration:underline;color:#1d1d6b;font-size:14px;font-weight:500;line-height:24px;letter-spacing:0em}.login-container{width:100%;height:calc(100vh - 25px);display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:-52px}.login-container img{margin-bottom:64px}.login-container form{display:flex;flex-direction:column;width:92%;margin:0 auto}.login-container input{border-radius:4px;border:1px solid #e3e3e3;background:#f7f7f7;padding:14px;width:100%;box-sizing:border-box}.login-container input::placeholder{color:#b2b2c8;font-size:16px;font-weight:400}.login-container .input-group{margin:10px 0}.login-container input[type=submit]{background-color:#191919;border:1px solid #191919;color:#fff;font-weight:500;font-size:16px;padding:6px 14px;width:100%;height:48px;margin:40px 0 26px}.login-container input[type=submit]:hover{cursor:pointer}.login-container form a{font-weight:400;text-decoration:none;justify-content:end;display:flex}.login-container a{color:#1d1d6b;text-decoration:underline;font-size:14px;font-weight:500}.login-container label{display:block;font-size:16px;font-weight:500;line-height:28px}.setting-container{width:100%;height:calc(100% - 159px);background:#F7F7F7}.setting-preview-container{display:flex;padding:24px 16px;flex-direction:column;align-items:center;align-self:stretch;background-color:#fff}.setting-preview-title-text{height:fit-content;margin-bottom:4px;color:#191919;text-align:center;font-size:24px;font-style:normal;font-weight:700;line-height:36px}.setting-preview-sub-text{margin-bottom:16px;color:#9797ae;font-size:14px;font-style:normal;font-weight:400;line-height:24px}.setting-preview-btn{display:flex;width:100%;height:48px;padding:0 14px;justify-content:center;align-items:center;align-self:stretch;border:1px solid #191919;color:#191919;background-color:#fff;cursor:pointer}.setting-word-container{height:68px;display:flex;gap:4px;padding:16px;margin:12px 0;flex-direction:column;align-items:flex-start;align-self:stretch;background:#FFFFFF}.setting-word-title{color:#000;font-size:14px;font-style:normal;font-weight:500;line-height:24px}.setting-word-input{display:flex;align-items:center;align-self:stretch;border:1px solid #191919;height:40px}.setting-sticker-container{display:flex;padding:16px;flex-direction:column;align-items:flex-start;gap:8px;flex:1 0 0;align-self:stretch;background:#FFF}.setting-sticker-title{color:#000;font-size:16px;font-style:normal;font-weight:500;line-height:24px;margin-bottom:8px}.setting-sticker-box{display:flex;height:100%;width:100%;justify-content:space-between;align-items:flex-start;align-content:flex-start;gap:8px;flex-wrap:wrap}.setting-sticker-box input{-moz-appearance:none;appearance:none;-webkit-appearance:none}.setting-sticker-box input:checked{outline:1px solid #000}.setting-sticker-width{width:48%}.setting-sticker-width img{width:100%}.not-found{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh}.not-found span{font-size:3rem;font-weight:600}.not-found button{border:none;cursor:pointer}.preview-container{height:calc(100% - 159px);padding:16px 16px 24px}.preview-choose-type-container{display:flex;margin-bottom:16px;justify-content:center;align-items:center;align-self:stretch;border-radius:4px;border:1px solid #E9E9F1;cursor:pointer;background:#F7F7F7}.preview-image-container{display:flex;padding:24px;justify-content:center;align-items:center;gap:10px;align-self:stretch;background:#F7F7F7}.preview-carousel-bar{display:flex;margin:16px 0;justify-content:center;align-items:center;gap:16px;align-self:stretch}.preview-carousel-circle-black{width:8px;height:8px;border-radius:50px;background-color:#191919}.preview-carousel-circle-gray{width:8px;height:8px;border-radius:50px;background-color:#d6d6d6}.preview-choose-type-box{display:flex;height:48px;padding:0 14px;justify-content:center;align-items:center;flex:1 0 0;border-radius:4px;background:#191919;color:#fff}.preview-not-choose-type-box{display:flex;height:48px;padding:0 14px;justify-content:center;align-items:center;flex:1 0 0;border-radius:4px;background:#FFF}.preview-bottom-text-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}.preview-bottom-title-text{color:#191919;font-size:16px;font-style:normal;font-weight:700;line-height:24px}.preview-bottom-sub-text{color:#9797ae;font-size:14px;font-style:normal;font-weight:500;line-height:24px}.carousel .control-arrow,.carousel.carousel-slider .control-arrow{-webkit-transition:all .25s ease-in;-moz-transition:all .25s ease-in;-ms-transition:all .25s ease-in;-o-transition:all .25s ease-in;transition:all .25s ease-in;opacity:.4;filter:alpha(opacity=40);position:absolute;z-index:2;top:20px;background:none;border:0;font-size:32px;cursor:pointer}.carousel .control-arrow:focus,.carousel .control-arrow:hover{opacity:1;filter:alpha(opacity=100)}.carousel .control-arrow:before,.carousel.carousel-slider .control-arrow:before{margin:0 5px;display:inline-block;border-top:8px solid transparent;border-bottom:8px solid transparent;content:""}.carousel .control-disabled.control-arrow{opacity:0;filter:alpha(opacity=0);cursor:inherit;display:none}.carousel .control-prev.control-arrow{left:0}.carousel .control-prev.control-arrow:before{border-right:8px solid #fff}.carousel .control-next.control-arrow{right:0}.carousel .control-next.control-arrow:before{border-left:8px solid #fff}.carousel-root{outline:none}.carousel{position:relative;width:100%}.carousel *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.carousel img{width:100%;display:inline-block;pointer-events:none}.carousel .carousel{position:relative}.carousel .control-arrow{outline:0;border:0;background:none;top:50%;margin-top:-13px;font-size:18px}.carousel .thumbs-wrapper{margin:20px;overflow:hidden}.carousel .thumbs{-webkit-transition:all .15s ease-in;-moz-transition:all .15s ease-in;-ms-transition:all .15s ease-in;-o-transition:all .15s ease-in;transition:all .15s ease-in;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translateZ(0);position:relative;list-style:none;white-space:nowrap}.carousel .thumb{-webkit-transition:border .15s ease-in;-moz-transition:border .15s ease-in;-ms-transition:border .15s ease-in;-o-transition:border .15s ease-in;transition:border .15s ease-in;display:inline-block;margin-right:6px;white-space:nowrap;overflow:hidden;border:3px solid #fff;padding:2px}.carousel .thumb:focus{border:3px solid #ccc;outline:none}.carousel .thumb.selected,.carousel .thumb:hover{border:3px solid #333}.carousel .thumb img{vertical-align:top}.carousel.carousel-slider{position:relative;margin:0;overflow:hidden}.carousel.carousel-slider .control-arrow{top:0;color:#fff;font-size:26px;bottom:0;margin-top:0;padding:5px}.carousel.carousel-slider .control-arrow:hover{background:rgba(0,0,0,.2)}.carousel .slider-wrapper{overflow:hidden;margin:auto;width:100%;-webkit-transition:height .15s ease-in;-moz-transition:height .15s ease-in;-ms-transition:height .15s ease-in;-o-transition:height .15s ease-in;transition:height .15s ease-in}.carousel .slider-wrapper.axis-horizontal .slider{-ms-box-orient:horizontal;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-moz-flex;display:-webkit-flex;display:flex}.carousel .slider-wrapper.axis-horizontal .slider .slide{flex-direction:column;flex-flow:column}.carousel .slider-wrapper.axis-vertical{-ms-box-orient:horizontal;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-moz-flex;display:-webkit-flex;display:flex}.carousel .slider-wrapper.axis-vertical .slider{-webkit-flex-direction:column;flex-direction:column}.carousel .slider{margin:0;padding:0;position:relative;list-style:none;width:100%}.carousel .slider.animated{-webkit-transition:all .35s ease-in-out;-moz-transition:all .35s ease-in-out;-ms-transition:all .35s ease-in-out;-o-transition:all .35s ease-in-out;transition:all .35s ease-in-out}.carousel .slide{min-width:100%;margin:0;position:relative;text-align:center}.carousel .slide img{width:100%;vertical-align:top;border:0}.carousel .slide iframe{display:inline-block;width:calc(100% - 80px);margin:0 40px 40px;border:0}.carousel .slide .legend{-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-ms-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;transition:all .5s ease-in-out;position:absolute;bottom:40px;left:50%;margin-left:-45%;width:90%;border-radius:10px;background:#000;color:#fff;padding:10px;font-size:12px;text-align:center;opacity:.25;-webkit-transition:opacity .35s ease-in-out;-moz-transition:opacity .35s ease-in-out;-ms-transition:opacity .35s ease-in-out;-o-transition:opacity .35s ease-in-out;transition:opacity .35s ease-in-out}.carousel .control-dots{position:absolute;bottom:0;margin:10px 0;padding:0;text-align:center;width:100%;z-index:1}@media (min-width: 960px){.carousel .control-dots{bottom:0}}.carousel .control-dots .dot{-webkit-transition:opacity .25s ease-in;-moz-transition:opacity .25s ease-in;-ms-transition:opacity .25s ease-in;-o-transition:opacity .25s ease-in;transition:opacity .25s ease-in;opacity:.3;filter:alpha(opacity=30);box-shadow:1px 1px 2px #000000e6;background:#fff;border-radius:50%;width:8px;height:8px;cursor:pointer;display:inline-block;margin:0 8px}.carousel .control-dots .dot.selected,.carousel .control-dots .dot:hover{opacity:1;filter:alpha(opacity=100)}.carousel .carousel-status{position:absolute;top:0;right:0;padding:5px;font-size:10px;text-shadow:1px 1px 1px rgba(0,0,0,.9);color:#fff}.carousel:hover .slide .legend{opacity:1}.schedule-container{width:100%;display:grid;gap:12px;background-color:#f7f7f7;position:relative}.schedule-container h1{color:#191919;font-size:16px;font-weight:500;display:flex;align-items:center}.schedule-container h1 img{width:20px;margin-right:8px}.schedule-container h2{color:#191919;font-size:16px;font-weight:700;padding:4px 0 6px;display:flex;align-items:center}.schedule-container .arrow{padding:0 24px}.schedule-container .arrow-left{transform:rotate(180deg)}.schedule-container p{color:#000;font-size:14px;font-weight:400;display:flex;align-items:center}.schedule-container p img{margin-right:8px;width:16px}.schedule-container .meeting-item{background-color:#fff;padding:8px 16px}.schedule-container .badge{width:12px;height:12px;border-radius:6px;display:inline-block;margin-right:8px}.schedule-container .badge-team{background-color:red}.schedule-container .badge-business{background-color:#24b277}.schedule-container .badge-personal{background-color:#0038ff}.schedule-container .week-selector{background-color:#fff;display:flex;justify-content:center;align-items:center;padding:6px 0}.schedule-container .button-area{border-top:1px solid #e9e9f1;padding:16px;background-color:#fff;position:fixed;bottom:0;width:288px}.schedule-container button{background-color:#191919;border:1px solid #191919;color:#fff;font-weight:500;font-size:16px;padding:6px 14px;width:100%;height:48px;border-radius:4px;display:flex;align-items:center;justify-content:center;gap:4px}@keyframes shake{0%{transform:rotate(0)}25%{transform:rotate(-3deg)}75%{transform:rotate(3deg)}to{transform:rotate(0)}}@keyframes open-top{0%{padding-top:7rem;padding-bottom:0rem}to{padding-top:4rem;padding-bottom:2rem}}@keyframes open-bottom{0%{padding-bottom:0rem}to{padding-bottom:4rem}}.event-container{height:calc(100vh - 77px)}.event-container .wrap{display:flex;flex-direction:column;justify-content:center;align-items:center}.event-container .wrap .content{padding-top:7rem;display:flex;flex-direction:column;justify-content:center;align-items:center}.event-container .wrap .content.open{animation:open-top .5s both}.event-container .wrap .content .label{color:#fff;background-color:#000;padding:3px 8px;font-size:14px;font-weight:500;line-height:24px;letter-spacing:0em;text-align:center}.event-container .wrap .content .title{padding:8px 0 24px;font-size:24px;font-weight:700;line-height:36px;letter-spacing:0em;text-align:center}.event-container .wrap .gift{cursor:pointer;height:250px}.event-container .wrap .gift.open{animation:open-bottom .5s both}.event-container .wrap .gift :hover{animation:shake 1s infinite ease-in}.event-container .wrap .description{padding-top:14px;color:#9797ae;font-size:14px;font-weight:400;line-height:24px;letter-spacing:0em;text-align:center}*{font-family:Spoqa Han Sans Neo,"sans-serif"}body{margin:0;display:flex;place-content:center;min-height:100vh;background-color:#e6e6e6}#root{width:100%;display:flex;justify-content:center} diff --git a/assets/index-58f727b7.js b/assets/index-58f727b7.js new file mode 100644 index 0000000..d0877b4 --- /dev/null +++ b/assets/index-58f727b7.js @@ -0,0 +1,82 @@ +function gy(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Gu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fh={exports:{}},hl={},Ih={exports:{}},fe={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var xo=Symbol.for("react.element"),wy=Symbol.for("react.portal"),Sy=Symbol.for("react.fragment"),Ey=Symbol.for("react.strict_mode"),xy=Symbol.for("react.profiler"),Cy=Symbol.for("react.provider"),_y=Symbol.for("react.context"),Ry=Symbol.for("react.forward_ref"),Py=Symbol.for("react.suspense"),ky=Symbol.for("react.memo"),Oy=Symbol.for("react.lazy"),Sf=Symbol.iterator;function Ty(e){return e===null||typeof e!="object"?null:(e=Sf&&e[Sf]||e["@@iterator"],typeof e=="function"?e:null)}var Uh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zh=Object.assign,Bh={};function di(e,t,n){this.props=e,this.context=t,this.refs=Bh,this.updater=n||Uh}di.prototype.isReactComponent={};di.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};di.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $h(){}$h.prototype=di.prototype;function Xu(e,t,n){this.props=e,this.context=t,this.refs=Bh,this.updater=n||Uh}var ec=Xu.prototype=new $h;ec.constructor=Xu;zh(ec,di.prototype);ec.isPureReactComponent=!0;var Ef=Array.isArray,Vh=Object.prototype.hasOwnProperty,tc={current:null},Wh={key:!0,ref:!0,__self:!0,__source:!0};function Hh(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Vh.call(t,r)&&!Wh.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1>>1,se=_[ne];if(0>>1;nei(Qe,K))Aei(rt,Qe)?(_[ne]=rt,_[Ae]=K,ne=Ae):(_[ne]=Qe,_[le]=K,ne=le);else if(Aei(rt,K))_[ne]=rt,_[Ae]=K,ne=Ae;else break e}}return U}function i(_,U){var K=_.sortIndex-U.sortIndex;return K!==0?K:_.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,d=null,p=3,g=!1,y=!1,x=!1,L=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(_){for(var U=n(u);U!==null;){if(U.callback===null)r(u);else if(U.startTime<=_)r(u),U.sortIndex=U.expirationTime,t(a,U);else break;U=n(u)}}function h(_){if(x=!1,m(_),!y)if(n(a)!==null)y=!0,W(E);else{var U=n(u);U!==null&&j(h,U.startTime-_)}}function E(_,U){y=!1,x&&(x=!1,v(w),w=-1),g=!0;var K=p;try{for(m(U),d=n(a);d!==null&&(!(d.expirationTime>U)||_&&!$());){var ne=d.callback;if(typeof ne=="function"){d.callback=null,p=d.priorityLevel;var se=ne(d.expirationTime<=U);U=e.unstable_now(),typeof se=="function"?d.callback=se:d===n(a)&&r(a),m(U)}else r(a);d=n(a)}if(d!==null)var Ee=!0;else{var le=n(u);le!==null&&j(h,le.startTime-U),Ee=!1}return Ee}finally{d=null,p=K,g=!1}}var R=!1,M=null,w=-1,O=5,k=-1;function $(){return!(e.unstable_now()-k_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(_){switch(p){case 1:case 2:case 3:var U=3;break;default:U=p}var K=p;p=U;try{return _()}finally{p=K}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,U){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var K=p;p=_;try{return U()}finally{p=K}},e.unstable_scheduleCallback=function(_,U,K){var ne=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0ne?(_.sortIndex=K,t(u,_),n(a)===null&&_===n(u)&&(x?(v(w),w=-1):x=!0,j(h,K-ne))):(_.sortIndex=se,t(a,_),y||g||(y=!0,W(E))),_},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(_){var U=p;return function(){var K=p;p=U;try{return _.apply(this,arguments)}finally{p=K}}}})(Yh);Kh.exports=Yh;var By=Kh.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Jh=B,Rt=By;function H(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Va=Object.prototype.hasOwnProperty,$y=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Cf={},_f={};function Vy(e){return Va.call(_f,e)?!0:Va.call(Cf,e)?!1:$y.test(e)?_f[e]=!0:(Cf[e]=!0,!1)}function Wy(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Hy(e,t,n,r){if(t===null||typeof t>"u"||Wy(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function mt(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var nt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){nt[e]=new mt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];nt[t]=new mt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){nt[e]=new mt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){nt[e]=new mt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){nt[e]=new mt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){nt[e]=new mt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){nt[e]=new mt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){nt[e]=new mt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){nt[e]=new mt(e,5,!1,e.toLowerCase(),null,!1,!1)});var rc=/[\-:]([a-z])/g;function ic(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(rc,ic);nt[t]=new mt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(rc,ic);nt[t]=new mt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(rc,ic);nt[t]=new mt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){nt[e]=new mt(e,1,!1,e.toLowerCase(),null,!1,!1)});nt.xlinkHref=new mt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){nt[e]=new mt(e,1,!1,e.toLowerCase(),null,!0,!0)});function oc(e,t,n,r){var i=nt.hasOwnProperty(t)?nt[t]:null;(i!==null?i.type!==0:r||!(2l||i[s]!==o[l]){var a=` +`+i[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{ea=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ui(e):""}function qy(e){switch(e.tag){case 5:return Ui(e.type);case 16:return Ui("Lazy");case 13:return Ui("Suspense");case 19:return Ui("SuspenseList");case 0:case 2:case 15:return e=ta(e.type,!1),e;case 11:return e=ta(e.type.render,!1),e;case 1:return e=ta(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 jr:return"Fragment";case Nr:return"Portal";case Wa:return"Profiler";case sc:return"StrictMode";case Ha:return"Suspense";case qa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xh:return(e.displayName||"Context")+".Consumer";case Gh:return(e._context.displayName||"Context")+".Provider";case lc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ac:return t=e.displayName||null,t!==null?t:Qa(e.type)||"Memo";case jn:t=e._payload,e=e._init;try{return Qa(e(t))}catch{}}return null}function Qy(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(t);case 8:return t===sc?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Zn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ky(e){var t=tp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $o(e){e._valueTracker||(e._valueTracker=Ky(e))}function np(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Os(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 Ka(e,t){var n=t.checked;return Me({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Pf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Zn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rp(e,t){t=t.checked,t!=null&&oc(e,"checked",t,!1)}function Ya(e,t){rp(e,t);var n=Zn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ja(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ja(e,t.type,Zn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function kf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ja(e,t,n){(t!=="number"||Os(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zi=Array.isArray;function Kr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Vo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ro(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wi={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},Yy=["Webkit","ms","Moz","O"];Object.keys(Wi).forEach(function(e){Yy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wi[t]=Wi[e]})});function lp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Wi.hasOwnProperty(e)&&Wi[e]?(""+t).trim():t+"px"}function ap(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=lp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Jy=Me({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 Xa(e,t){if(t){if(Jy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(H(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(H(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(H(61))}if(t.style!=null&&typeof t.style!="object")throw Error(H(62))}}function eu(e,t){if(e.indexOf("-")===-1)return typeof t.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 tu=null;function uc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var nu=null,Yr=null,Jr=null;function Df(e){if(e=Ro(e)){if(typeof nu!="function")throw Error(H(280));var t=e.stateNode;t&&(t=gl(t),nu(e.stateNode,e.type,t))}}function up(e){Yr?Jr?Jr.push(e):Jr=[e]:Yr=e}function cp(){if(Yr){var e=Yr,t=Jr;if(Jr=Yr=null,Df(e),t)for(e=0;e>>=0,e===0?32:31-(lg(e)/ag|0)|0}var Wo=64,Ho=4194304;function Bi(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 As(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Bi(l):(o&=s,o!==0&&(r=Bi(o)))}else s=n&~i,s!==0?r=Bi(s):o!==0&&(r=Bi(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Co(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Jt(t),e[t]=n}function dg(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=qi),Uf=String.fromCharCode(32),zf=!1;function Dp(e,t){switch(e){case"keyup":return zg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Lr=!1;function $g(e,t){switch(e){case"compositionend":return Mp(t);case"keypress":return t.which!==32?null:(zf=!0,Uf);case"textInput":return e=t.data,e===Uf&&zf?null:e;default:return null}}function Vg(e,t){if(Lr)return e==="compositionend"||!yc&&Dp(e,t)?(e=Op(),hs=pc=Un=null,Lr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Wf(n)}}function Lp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bp(){for(var e=window,t=Os();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Os(e.document)}return t}function gc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Gg(e){var t=bp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Lp(n.ownerDocument.documentElement,n)){if(r!==null&&gc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Hf(n,o);var s=Hf(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,br=null,au=null,Ki=null,uu=!1;function qf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;uu||br==null||br!==Os(r)||(r=br,"selectionStart"in r&&gc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ki&&uo(Ki,r)||(Ki=r,r=Ls(au,"onSelect"),0Ur||(e.current=mu[Ur],mu[Ur]=null,Ur--)}function Se(e,t){Ur++,mu[Ur]=e.current,e.current=t}var Gn={},at=er(Gn),gt=er(!1),wr=Gn;function ri(e,t){var n=e.type.contextTypes;if(!n)return Gn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function wt(e){return e=e.childContextTypes,e!=null}function Fs(){_e(gt),_e(at)}function Xf(e,t,n){if(at.current!==Gn)throw Error(H(168));Se(at,t),Se(gt,n)}function Hp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(H(108,Qy(e)||"Unknown",i));return Me({},n,r)}function Is(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gn,wr=at.current,Se(at,e),Se(gt,gt.current),!0}function ed(e,t,n){var r=e.stateNode;if(!r)throw Error(H(169));n?(e=Hp(e,t,wr),r.__reactInternalMemoizedMergedChildContext=e,_e(gt),_e(at),Se(at,e)):_e(gt),Se(gt,n)}var gn=null,wl=!1,ma=!1;function qp(e){gn===null?gn=[e]:gn.push(e)}function c0(e){wl=!0,qp(e)}function tr(){if(!ma&&gn!==null){ma=!0;var e=0,t=me;try{var n=gn;for(me=1;e>=s,i-=s,Sn=1<<32-Jt(t)+i|n<w?(O=M,M=null):O=M.sibling;var k=p(v,M,m[w],h);if(k===null){M===null&&(M=O);break}e&&M&&k.alternate===null&&t(v,M),f=o(k,f,w),R===null?E=k:R.sibling=k,R=k,M=O}if(w===m.length)return n(v,M),Pe&&ar(v,w),E;if(M===null){for(;ww?(O=M,M=null):O=M.sibling;var $=p(v,M,k.value,h);if($===null){M===null&&(M=O);break}e&&M&&$.alternate===null&&t(v,M),f=o($,f,w),R===null?E=$:R.sibling=$,R=$,M=O}if(k.done)return n(v,M),Pe&&ar(v,w),E;if(M===null){for(;!k.done;w++,k=m.next())k=d(v,k.value,h),k!==null&&(f=o(k,f,w),R===null?E=k:R.sibling=k,R=k);return Pe&&ar(v,w),E}for(M=r(v,M);!k.done;w++,k=m.next())k=g(M,v,w,k.value,h),k!==null&&(e&&k.alternate!==null&&M.delete(k.key===null?w:k.key),f=o(k,f,w),R===null?E=k:R.sibling=k,R=k);return e&&M.forEach(function(z){return t(v,z)}),Pe&&ar(v,w),E}function L(v,f,m,h){if(typeof m=="object"&&m!==null&&m.type===jr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Bo:e:{for(var E=m.key,R=f;R!==null;){if(R.key===E){if(E=m.type,E===jr){if(R.tag===7){n(v,R.sibling),f=i(R,m.props.children),f.return=v,v=f;break e}}else if(R.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===jn&&ld(E)===R.type){n(v,R.sibling),f=i(R,m.props),f.ref=ki(v,R,m),f.return=v,v=f;break e}n(v,R);break}else t(v,R);R=R.sibling}m.type===jr?(f=gr(m.props.children,v.mode,h,m.key),f.return=v,v=f):(h=Es(m.type,m.key,m.props,null,v.mode,h),h.ref=ki(v,f,m),h.return=v,v=h)}return s(v);case Nr:e:{for(R=m.key;f!==null;){if(f.key===R)if(f.tag===4&&f.stateNode.containerInfo===m.containerInfo&&f.stateNode.implementation===m.implementation){n(v,f.sibling),f=i(f,m.children||[]),f.return=v,v=f;break e}else{n(v,f);break}else t(v,f);f=f.sibling}f=Ca(m,v.mode,h),f.return=v,v=f}return s(v);case jn:return R=m._init,L(v,f,R(m._payload),h)}if(zi(m))return y(v,f,m,h);if(xi(m))return x(v,f,m,h);Go(v,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,f!==null&&f.tag===6?(n(v,f.sibling),f=i(f,m),f.return=v,v=f):(n(v,f),f=xa(m,v.mode,h),f.return=v,v=f),s(v)):n(v,f)}return L}var oi=em(!0),tm=em(!1),Po={},un=er(Po),po=er(Po),mo=er(Po);function hr(e){if(e===Po)throw Error(H(174));return e}function kc(e,t){switch(Se(mo,t),Se(po,e),Se(un,Po),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ga(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ga(t,e)}_e(un),Se(un,t)}function si(){_e(un),_e(po),_e(mo)}function nm(e){hr(mo.current);var t=hr(un.current),n=Ga(t,e.type);t!==n&&(Se(po,e),Se(un,n))}function Oc(e){po.current===e&&(_e(un),_e(po))}var Te=er(0);function Ws(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var va=[];function Tc(){for(var e=0;en?n:4,e(!0);var r=ya.transition;ya.transition={};try{e(!1),t()}finally{me=n,ya.transition=r}}function gm(){return Ft().memoizedState}function p0(e,t,n){var r=Kn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},wm(e))Sm(t,n);else if(n=Jp(e,t,n,r),n!==null){var i=ht();Zt(n,e,r,i),Em(n,t,r)}}function m0(e,t,n){var r=Kn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(wm(e))Sm(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,Gt(l,s)){var a=t.interleaved;a===null?(i.next=i,Rc(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Jp(e,t,i,r),n!==null&&(i=ht(),Zt(n,e,r,i),Em(n,t,r))}}function wm(e){var t=e.alternate;return e===De||t!==null&&t===De}function Sm(e,t){Yi=Hs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Em(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fc(e,n)}}var qs={readContext:bt,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useInsertionEffect:it,useLayoutEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useMutableSource:it,useSyncExternalStore:it,useId:it,unstable_isNewReconciler:!1},v0={readContext:bt,useCallback:function(e,t){return en().memoizedState=[e,t===void 0?null:t],e},useContext:bt,useEffect:ud,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ys(4194308,4,hm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ys(4194308,4,e,t)},useInsertionEffect:function(e,t){return ys(4,2,e,t)},useMemo:function(e,t){var n=en();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=en();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=p0.bind(null,De,e),[r.memoizedState,e]},useRef:function(e){var t=en();return e={current:e},t.memoizedState=e},useState:ad,useDebugValue:jc,useDeferredValue:function(e){return en().memoizedState=e},useTransition:function(){var e=ad(!1),t=e[0];return e=h0.bind(null,e[1]),en().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=De,i=en();if(Pe){if(n===void 0)throw Error(H(407));n=n()}else{if(n=t(),Je===null)throw Error(H(349));Er&30||om(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ud(lm.bind(null,r,o,e),[e]),r.flags|=2048,go(9,sm.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=en(),t=Je.identifierPrefix;if(Pe){var n=En,r=Sn;n=(r&~(1<<32-Jt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=vo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[nn]=t,e[ho]=r,Dm(e,t,!1,!1),t.stateNode=e;e:{switch(s=eu(n,r),n){case"dialog":Ce("cancel",e),Ce("close",e),i=r;break;case"iframe":case"object":case"embed":Ce("load",e),i=r;break;case"video":case"audio":for(i=0;i<$i.length;i++)Ce($i[i],e);i=r;break;case"source":Ce("error",e),i=r;break;case"img":case"image":case"link":Ce("error",e),Ce("load",e),i=r;break;case"details":Ce("toggle",e),i=r;break;case"input":Pf(e,r),i=Ka(e,r),Ce("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Me({},r,{value:void 0}),Ce("invalid",e);break;case"textarea":Of(e,r),i=Za(e,r),Ce("invalid",e);break;default:i=r}Xa(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?ap(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&sp(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&ro(e,a):typeof a=="number"&&ro(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(no.hasOwnProperty(o)?a!=null&&o==="onScroll"&&Ce("scroll",e):a!=null&&oc(e,o,a,s))}switch(n){case"input":$o(e),kf(e,r,!1);break;case"textarea":$o(e),Tf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Zn(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Kr(e,!!r.multiple,o,!1):r.defaultValue!=null&&Kr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=bs)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ot(t),null;case 6:if(e&&t.stateNode!=null)Am(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(H(166));if(n=hr(mo.current),hr(un.current),Zo(t)){if(r=t.stateNode,n=t.memoizedProps,r[nn]=t,(o=r.nodeValue!==n)&&(e=_t,e!==null))switch(e.tag){case 3:Jo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Jo(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[nn]=t,t.stateNode=r}return ot(t),null;case 13:if(_e(Te),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Pe&&Ct!==null&&t.mode&1&&!(t.flags&128))Yp(),ii(),t.flags|=98560,o=!1;else if(o=Zo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(H(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(H(317));o[nn]=t}else ii(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ot(t),o=!1}else Kt!==null&&(ju(Kt),Kt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Te.current&1?We===0&&(We=3):Bc())),t.updateQueue!==null&&(t.flags|=4),ot(t),null);case 4:return si(),Pu(e,t),e===null&&co(t.stateNode.containerInfo),ot(t),null;case 10:return _c(t.type._context),ot(t),null;case 17:return wt(t.type)&&Fs(),ot(t),null;case 19:if(_e(Te),o=t.memoizedState,o===null)return ot(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)Oi(o,!1);else{if(We!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Ws(e),s!==null){for(t.flags|=128,Oi(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Se(Te,Te.current&1|2),t.child}e=e.sibling}o.tail!==null&&Fe()>ai&&(t.flags|=128,r=!0,Oi(o,!1),t.lanes=4194304)}else{if(!r)if(e=Ws(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Oi(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Pe)return ot(t),null}else 2*Fe()-o.renderingStartTime>ai&&n!==1073741824&&(t.flags|=128,r=!0,Oi(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Fe(),t.sibling=null,n=Te.current,Se(Te,r?n&1|2:n&1),t):(ot(t),null);case 22:case 23:return zc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Et&1073741824&&(ot(t),t.subtreeFlags&6&&(t.flags|=8192)):ot(t),null;case 24:return null;case 25:return null}throw Error(H(156,t.tag))}function _0(e,t){switch(Sc(t),t.tag){case 1:return wt(t.type)&&Fs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return si(),_e(gt),_e(at),Tc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Oc(t),null;case 13:if(_e(Te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _e(Te),null;case 4:return si(),null;case 10:return _c(t.type._context),null;case 22:case 23:return zc(),null;case 24:return null;default:return null}}var es=!1,lt=!1,R0=typeof WeakSet=="function"?WeakSet:Set,J=null;function Vr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ne(e,t,r)}else n.current=null}function ku(e,t,n){try{n()}catch(r){Ne(e,t,r)}}var gd=!1;function P0(e,t){if(cu=Ns,e=bp(),gc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var g;d!==n||i!==0&&d.nodeType!==3||(l=s+i),d!==o||r!==0&&d.nodeType!==3||(a=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(g=d.firstChild)!==null;)p=d,d=g;for(;;){if(d===e)break t;if(p===n&&++u===i&&(l=s),p===o&&++c===r&&(a=s),(g=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=g}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(fu={focusedElem:e,selectionRange:n},Ns=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var x=y.memoizedProps,L=y.memoizedState,v=t.stateNode,f=v.getSnapshotBeforeUpdate(t.elementType===t.type?x:Wt(t.type,x),L);v.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(H(163))}}catch(h){Ne(t,t.return,h)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return y=gd,gd=!1,y}function Ji(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&ku(t,n,o)}i=i.next}while(i!==r)}}function xl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ou(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Nm(e){var t=e.alternate;t!==null&&(e.alternate=null,Nm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[nn],delete t[ho],delete t[pu],delete t[a0],delete t[u0])),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 jm(e){return e.tag===5||e.tag===3||e.tag===4}function wd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jm(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 Tu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=bs));else if(r!==4&&(e=e.child,e!==null))for(Tu(e,t,n),e=e.sibling;e!==null;)Tu(e,t,n),e=e.sibling}function Du(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Du(e,t,n),e=e.sibling;e!==null;)Du(e,t,n),e=e.sibling}var Xe=null,qt=!1;function Mn(e,t,n){for(n=n.child;n!==null;)Lm(e,t,n),n=n.sibling}function Lm(e,t,n){if(an&&typeof an.onCommitFiberUnmount=="function")try{an.onCommitFiberUnmount(pl,n)}catch{}switch(n.tag){case 5:lt||Vr(n,t);case 6:var r=Xe,i=qt;Xe=null,Mn(e,t,n),Xe=r,qt=i,Xe!==null&&(qt?(e=Xe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xe.removeChild(n.stateNode));break;case 18:Xe!==null&&(qt?(e=Xe,n=n.stateNode,e.nodeType===8?pa(e.parentNode,n):e.nodeType===1&&pa(e,n),lo(e)):pa(Xe,n.stateNode));break;case 4:r=Xe,i=qt,Xe=n.stateNode.containerInfo,qt=!0,Mn(e,t,n),Xe=r,qt=i;break;case 0:case 11:case 14:case 15:if(!lt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&ku(n,t,s),i=i.next}while(i!==r)}Mn(e,t,n);break;case 1:if(!lt&&(Vr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ne(n,t,l)}Mn(e,t,n);break;case 21:Mn(e,t,n);break;case 22:n.mode&1?(lt=(r=lt)||n.memoizedState!==null,Mn(e,t,n),lt=r):Mn(e,t,n);break;default:Mn(e,t,n)}}function Sd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new R0),t.forEach(function(r){var i=L0.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function zt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=Fe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*O0(r/1960))-r,10e?16:e,zn===null)var r=!1;else{if(e=zn,zn=null,Ys=0,he&6)throw Error(H(331));var i=he;for(he|=4,J=e.current;J!==null;){var o=J,s=o.child;if(J.flags&16){var l=o.deletions;if(l!==null){for(var a=0;aFe()-Ic?yr(e,0):Fc|=n),St(e,t)}function Vm(e,t){t===0&&(e.mode&1?(t=Ho,Ho<<=1,!(Ho&130023424)&&(Ho=4194304)):t=1);var n=ht();e=Pn(e,t),e!==null&&(Co(e,t,n),St(e,n))}function j0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vm(e,n)}function L0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(H(314))}r!==null&&r.delete(t),Vm(e,n)}var Wm;Wm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||gt.current)yt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return yt=!1,x0(e,t,n);yt=!!(e.flags&131072)}else yt=!1,Pe&&t.flags&1048576&&Qp(t,zs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;gs(e,t),e=t.pendingProps;var i=ri(t,at.current);Gr(t,n),i=Mc(null,t,r,e,i,n);var o=Ac();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,wt(r)?(o=!0,Is(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Pc(t),i.updater=Sl,t.stateNode=i,i._reactInternals=t,Su(t,r,e,n),t=Cu(null,t,r,!0,o,n)):(t.tag=0,Pe&&o&&wc(t),ft(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(gs(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=F0(r),e=Wt(r,e),i){case 0:t=xu(null,t,r,e,n);break e;case 1:t=md(null,t,r,e,n);break e;case 11:t=hd(null,t,r,e,n);break e;case 14:t=pd(null,t,r,Wt(r.type,e),n);break e}throw Error(H(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wt(r,i),xu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wt(r,i),md(e,t,r,i,n);case 3:e:{if(km(t),e===null)throw Error(H(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Zp(e,t),Vs(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=li(Error(H(423)),t),t=vd(e,t,r,n,i);break e}else if(r!==i){i=li(Error(H(424)),t),t=vd(e,t,r,n,i);break e}else for(Ct=Hn(t.stateNode.containerInfo.firstChild),_t=t,Pe=!0,Kt=null,n=tm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ii(),r===i){t=kn(e,t,n);break e}ft(e,t,r,n)}t=t.child}return t;case 5:return nm(t),e===null&&yu(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,du(r,i)?s=null:o!==null&&du(r,o)&&(t.flags|=32),Pm(e,t),ft(e,t,s,n),t.child;case 6:return e===null&&yu(t),null;case 13:return Om(e,t,n);case 4:return kc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=oi(t,null,r,n):ft(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wt(r,i),hd(e,t,r,i,n);case 7:return ft(e,t,t.pendingProps,n),t.child;case 8:return ft(e,t,t.pendingProps.children,n),t.child;case 12:return ft(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Se(Bs,r._currentValue),r._currentValue=s,o!==null)if(Gt(o.value,s)){if(o.children===i.children&&!gt.current){t=kn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=xn(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),gu(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(H(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),gu(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}ft(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Gr(t,n),i=bt(i),r=r(i),t.flags|=1,ft(e,t,r,n),t.child;case 14:return r=t.type,i=Wt(r,t.pendingProps),i=Wt(r.type,i),pd(e,t,r,i,n);case 15:return _m(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wt(r,i),gs(e,t),t.tag=1,wt(r)?(e=!0,Is(t)):e=!1,Gr(t,n),Xp(t,r,i),Su(t,r,i,n),Cu(null,t,r,!0,e,n);case 19:return Tm(e,t,n);case 22:return Rm(e,t,n)}throw Error(H(156,t.tag))};function Hm(e,t){return yp(e,t)}function b0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nt(e,t,n,r){return new b0(e,t,n,r)}function $c(e){return e=e.prototype,!(!e||!e.isReactComponent)}function F0(e){if(typeof e=="function")return $c(e)?1:0;if(e!=null){if(e=e.$$typeof,e===lc)return 11;if(e===ac)return 14}return 2}function Yn(e,t){var n=e.alternate;return n===null?(n=Nt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Es(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")$c(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case jr:return gr(n.children,i,o,t);case sc:s=8,i|=8;break;case Wa:return e=Nt(12,n,t,i|2),e.elementType=Wa,e.lanes=o,e;case Ha:return e=Nt(13,n,t,i),e.elementType=Ha,e.lanes=o,e;case qa:return e=Nt(19,n,t,i),e.elementType=qa,e.lanes=o,e;case ep:return _l(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Gh:s=10;break e;case Xh:s=9;break e;case lc:s=11;break e;case ac:s=14;break e;case jn:s=16,r=null;break e}throw Error(H(130,e==null?e:typeof e,""))}return t=Nt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function gr(e,t,n,r){return e=Nt(7,e,r,t),e.lanes=n,e}function _l(e,t,n,r){return e=Nt(22,e,r,t),e.elementType=ep,e.lanes=n,e.stateNode={isHidden:!1},e}function xa(e,t,n){return e=Nt(6,e,null,t),e.lanes=n,e}function Ca(e,t,n){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function I0(e,t,n,r,i){this.tag=t,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=ra(0),this.expirationTimes=ra(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ra(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Vc(e,t,n,r,i,o,s,l,a){return e=new I0(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Nt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pc(o),e}function U0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ym)}catch(e){console.error(e)}}Ym(),Qh.exports=Pt;var W0=Qh.exports,Od=W0;$a.createRoot=Od.createRoot,$a.hydrateRoot=Od.hydrateRoot;class ko{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Qc=typeof window>"u"||"Deno"in window;function Ht(){}function H0(e,t){return typeof e=="function"?e(t):e}function q0(e){return typeof e=="number"&&e>=0&&e!==1/0}function Q0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function rs(e,t,n){return Oo(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function K0(e,t,n){return Oo(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function bn(e,t,n){return Oo(e)?[{...t,queryKey:e},n]:[e||{},t]}function Td(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:l}=e;if(Oo(s)){if(r){if(t.queryHash!==Kc(s,t.options))return!1}else if(!Gs(t.queryKey,s))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof i<"u"&&i!==t.state.fetchStatus||o&&!o(t))}function Dd(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:o}=e;if(Oo(o)){if(!t.options.mutationKey)return!1;if(n){if(pr(t.options.mutationKey)!==pr(o))return!1}else if(!Gs(t.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function Kc(e,t){return((t==null?void 0:t.queryKeyHashFn)||pr)(e)}function pr(e){return JSON.stringify(e,(t,n)=>Lu(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Gs(e,t){return Jm(e,t)}function Jm(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Jm(e[n],t[n])):!1}function Zm(e,t){if(e===t)return e;const n=Md(e)&&Md(t);if(n||Lu(e)&&Lu(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,s=n?[]:{};let l=0;for(let a=0;a"u")return!0;const n=t.prototype;return!(!Ad(n)||!n.hasOwnProperty("isPrototypeOf"))}function Ad(e){return Object.prototype.toString.call(e)==="[object Object]"}function Oo(e){return Array.isArray(e)}function Gm(e){return new Promise(t=>{setTimeout(t,e)})}function Nd(e){Gm(0).then(e)}function J0(){if(typeof AbortController=="function")return new AbortController}function Z0(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Zm(e,t):t}class G0 extends ko{constructor(){super(),this.setup=t=>{if(!Qc&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const bu=new G0,jd=["online","offline"];class X0 extends ko{constructor(){super(),this.setup=t=>{if(!Qc&&window.addEventListener){const n=()=>t();return jd.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{jd.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Xs=new X0;function ew(e){return Math.min(1e3*2**e,3e4)}function Yc(e){return(e??"online")==="online"?Xs.isOnline():!0}class Xm{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function _a(e){return e instanceof Xm}function ev(e){let t=!1,n=0,r=!1,i,o,s;const l=new Promise((L,v)=>{o=L,s=v}),a=L=>{r||(g(new Xm(L)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!bu.isFocused()||e.networkMode!=="always"&&!Xs.isOnline(),p=L=>{r||(r=!0,e.onSuccess==null||e.onSuccess(L),i==null||i(),o(L))},g=L=>{r||(r=!0,e.onError==null||e.onError(L),i==null||i(),s(L))},y=()=>new Promise(L=>{i=v=>{const f=r||!d();return f&&L(v),f},e.onPause==null||e.onPause()}).then(()=>{i=void 0,r||e.onContinue==null||e.onContinue()}),x=()=>{if(r)return;let L;try{L=e.fn()}catch(v){L=Promise.reject(v)}Promise.resolve(L).then(p).catch(v=>{var f,m;if(r)return;const h=(f=e.retry)!=null?f:3,E=(m=e.retryDelay)!=null?m:ew,R=typeof E=="function"?E(n,v):E,M=h===!0||typeof h=="number"&&n{if(d())return y()}).then(()=>{t?g(v):x()})})};return Yc(e.networkMode)?x():y().then(x),{promise:l,cancel:a,continue:()=>(i==null?void 0:i())?l:Promise.resolve(),cancelRetry:u,continueRetry:c}}const Jc=console;function tw(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const i=c=>{let d;t++;try{d=c()}finally{t--,t||l()}return d},o=c=>{t?e.push(c):Nd(()=>{n(c)})},s=c=>(...d)=>{o(()=>{c(...d)})},l=()=>{const c=e;e=[],c.length&&Nd(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:i,batchCalls:s,schedule:o,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const et=tw();class tv{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),q0(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(Qc?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class nw extends tv{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||Jc,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||rw(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=Z0(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(Ht).catch(Ht):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Q0(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return(o=this.retryer)==null||o.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(y=>y.options.queryFn);g&&this.setOptions(g.options)}Array.isArray(this.options.queryKey);const s=J0(),l={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},a=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>{if(s)return this.abortSignalConsumed=!0,s.signal}})};a(l);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(l)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(a(c),(r=this.options.behavior)==null||r.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=c.fetchOptions)==null?void 0:i.meta)){var d;this.dispatch({type:"fetch",meta:(d=c.fetchOptions)==null?void 0:d.meta})}const p=g=>{if(_a(g)&&g.silent||this.dispatch({type:"error",error:g}),!_a(g)){var y,x,L,v;(y=(x=this.cache.config).onError)==null||y.call(x,g,this),(L=(v=this.cache.config).onSettled)==null||L.call(v,this.state.data,g,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=ev({fn:c.fetchFn,abort:s==null?void 0:s.abort.bind(s),onSuccess:g=>{var y,x,L,v;if(typeof g>"u"){p(new Error(this.queryHash+" data is undefined"));return}this.setData(g),(y=(x=this.cache.config).onSuccess)==null||y.call(x,g,this),(L=(v=this.cache.config).onSettled)==null||L.call(v,g,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:(g,y)=>{this.dispatch({type:"failed",failureCount:g,error:y})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var i,o;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=t.meta)!=null?i:null,fetchStatus:Yc(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(o=t.dataUpdatedAt)!=null?o:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return _a(s)&&s.revert&&this.revertState?{...this.revertState}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),et.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function rw(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class iw extends ko{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var i;const o=n.queryKey,s=(i=n.queryHash)!=null?i:Kc(o,n);let l=this.get(s);return l||(l=new nw({cache:this,logger:t.getLogger(),queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(l)),l}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){et.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=bn(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(i=>Td(r,i))}findAll(t,n){const[r]=bn(t,n);return Object.keys(r).length>0?this.queries.filter(i=>Td(r,i)):this.queries}notify(t){et.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){et.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){et.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class ow extends tv{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||Jc,this.observers=[],this.state=t.state||nv(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var M;return this.retryer=ev({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(w,O)=>{this.dispatch({type:"failed",failureCount:w,error:O})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(M=this.options.retry)!=null?M:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,i,o,s,l,a,u,c;if(!n){var d,p,g,y;this.dispatch({type:"loading",variables:this.options.variables}),await((d=(p=this.mutationCache.config).onMutate)==null?void 0:d.call(p,this.state.variables,this));const w=await((g=(y=this.options).onMutate)==null?void 0:g.call(y,this.state.variables));w!==this.state.context&&this.dispatch({type:"loading",context:w,variables:this.state.variables})}const M=await t();return await((r=(i=this.mutationCache.config).onSuccess)==null?void 0:r.call(i,M,this.state.variables,this.state.context,this)),await((o=(s=this.options).onSuccess)==null?void 0:o.call(s,M,this.state.variables,this.state.context)),await((l=(a=this.mutationCache.config).onSettled)==null?void 0:l.call(a,M,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,M,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:M}),M}catch(M){try{var x,L,v,f,m,h,E,R;throw await((x=(L=this.mutationCache.config).onError)==null?void 0:x.call(L,M,this.state.variables,this.state.context,this)),await((v=(f=this.options).onError)==null?void 0:v.call(f,M,this.state.variables,this.state.context)),await((m=(h=this.mutationCache.config).onSettled)==null?void 0:m.call(h,void 0,M,this.state.variables,this.state.context,this)),await((E=(R=this.options).onSettled)==null?void 0:E.call(R,void 0,M,this.state.variables,this.state.context)),M}finally{this.dispatch({type:"error",error:M})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Yc(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),et.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function nv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class sw extends ko{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const i=new ow({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(i),i}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){et.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>Dd(t,n))}findAll(t){return this.mutations.filter(n=>Dd(t,n))}notify(t){et.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return et.batch(()=>n.reduce((r,i)=>r.then(()=>i.continue().catch(Ht)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function lw(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,o,s;const l=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,a=(r=e.fetchOptions)==null||(i=r.meta)==null?void 0:i.fetchMore,u=a==null?void 0:a.pageParam,c=(a==null?void 0:a.direction)==="forward",d=(a==null?void 0:a.direction)==="backward",p=((o=e.state.data)==null?void 0:o.pages)||[],g=((s=e.state.data)==null?void 0:s.pageParams)||[];let y=g,x=!1;const L=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>{var M;if((M=e.signal)!=null&&M.aborted)x=!0;else{var w;(w=e.signal)==null||w.addEventListener("abort",()=>{x=!0})}return e.signal}})},v=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),f=(R,M,w,O)=>(y=O?[M,...y]:[...y,M],O?[w,...R]:[...R,w]),m=(R,M,w,O)=>{if(x)return Promise.reject("Cancelled");if(typeof w>"u"&&!M&&R.length)return Promise.resolve(R);const k={queryKey:e.queryKey,pageParam:w,meta:e.options.meta};L(k);const $=v(k);return Promise.resolve($).then(P=>f(R,w,P,O))};let h;if(!p.length)h=m([]);else if(c){const R=typeof u<"u",M=R?u:Ld(e.options,p);h=m(p,R,M)}else if(d){const R=typeof u<"u",M=R?u:aw(e.options,p);h=m(p,R,M,!0)}else{y=[];const R=typeof e.options.getNextPageParam>"u";h=(l&&p[0]?l(p[0],0,p):!0)?m([],R,g[0]):Promise.resolve(f([],g[0],p[0]));for(let w=1;w{if(l&&p[w]?l(p[w],w,p):!0){const $=R?g[w]:Ld(e.options,O);return m(O,R,$)}return Promise.resolve(f(O,g[w],p[w]))})}return h.then(R=>({pages:R,pageParams:y}))}}}}function Ld(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function aw(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class uw{constructor(t={}){this.queryCache=t.queryCache||new iw,this.mutationCache=t.mutationCache||new sw,this.logger=t.logger||Jc,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=bu.subscribe(()=>{bu.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Xs.subscribe(()=>{Xs.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=bn(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const i=rs(t,n,r),o=this.getQueryData(i.queryKey);return o?Promise.resolve(o):this.fetchQuery(i)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(t,n,r){const i=this.queryCache.find(t),o=i==null?void 0:i.state.data,s=H0(n,o);if(typeof s>"u")return;const l=rs(t),a=this.defaultQueryOptions(l);return this.queryCache.build(this,a).setData(s,{...r,manual:!0})}setQueriesData(t,n,r){return et.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=bn(t,n),i=this.queryCache;et.batch(()=>{i.findAll(r).forEach(o=>{i.remove(o)})})}resetQueries(t,n,r){const[i,o]=bn(t,n,r),s=this.queryCache,l={type:"active",...i};return et.batch(()=>(s.findAll(i).forEach(a=>{a.reset()}),this.refetchQueries(l,o)))}cancelQueries(t,n,r){const[i,o={}]=bn(t,n,r);typeof o.revert>"u"&&(o.revert=!0);const s=et.batch(()=>this.queryCache.findAll(i).map(l=>l.cancel(o)));return Promise.all(s).then(Ht).catch(Ht)}invalidateQueries(t,n,r){const[i,o]=bn(t,n,r);return et.batch(()=>{var s,l;if(this.queryCache.findAll(i).forEach(u=>{u.invalidate()}),i.refetchType==="none")return Promise.resolve();const a={...i,type:(s=(l=i.refetchType)!=null?l:i.type)!=null?s:"active"};return this.refetchQueries(a,o)})}refetchQueries(t,n,r){const[i,o]=bn(t,n,r),s=et.batch(()=>this.queryCache.findAll(i).filter(a=>!a.isDisabled()).map(a=>{var u;return a.fetch(void 0,{...o,cancelRefetch:(u=o==null?void 0:o.cancelRefetch)!=null?u:!0,meta:{refetchPage:i.refetchPage}})}));let l=Promise.all(s).then(Ht);return o!=null&&o.throwOnError||(l=l.catch(Ht)),l}fetchQuery(t,n,r){const i=rs(t,n,r),o=this.defaultQueryOptions(i);typeof o.retry>"u"&&(o.retry=!1);const s=this.queryCache.build(this,o);return s.isStaleByTime(o.staleTime)?s.fetch(o):Promise.resolve(s.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(Ht).catch(Ht)}fetchInfiniteQuery(t,n,r){const i=rs(t,n,r);return i.behavior=lw(),this.fetchQuery(i)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(Ht).catch(Ht)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(i=>pr(t)===pr(i.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>Gs(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(i=>pr(t)===pr(i.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>Gs(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=Kc(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}let cw=class extends ko{constructor(t,n){super(),this.client=t,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=this.client.defaultMutationOptions(t),Y0(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(n=this.currentMutation)==null||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:nv(),n={...t,isLoading:t.status==="loading",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(t){et.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,i,o;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(i=(o=this.mutateOptions).onSettled)==null||i.call(o,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var s,l,a,u;(s=(l=this.mutateOptions).onError)==null||s.call(l,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(a=(u=this.mutateOptions).onSettled)==null||a.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)})})}};var rv={exports:{}},iv={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ui=B;function fw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var dw=typeof Object.is=="function"?Object.is:fw,hw=ui.useState,pw=ui.useEffect,mw=ui.useLayoutEffect,vw=ui.useDebugValue;function yw(e,t){var n=t(),r=hw({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return mw(function(){i.value=n,i.getSnapshot=t,Ra(i)&&o({inst:i})},[e,n,t]),pw(function(){return Ra(i)&&o({inst:i}),e(function(){Ra(i)&&o({inst:i})})},[e]),vw(n),n}function Ra(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!dw(e,n)}catch{return!0}}function gw(e,t){return t()}var ww=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?gw:yw;iv.useSyncExternalStore=ui.useSyncExternalStore!==void 0?ui.useSyncExternalStore:ww;rv.exports=iv;var Sw=rv.exports;const Ew=Sw.useSyncExternalStore,bd=B.createContext(void 0),ov=B.createContext(!1);function sv(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=bd),window.ReactQueryClientContext):bd)}const xw=({context:e}={})=>{const t=B.useContext(sv(e,B.useContext(ov)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Cw=({client:e,children:t,context:n,contextSharing:r=!1})=>{B.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const i=sv(n,r);return B.createElement(ov.Provider,{value:!n&&r},B.createElement(i.Provider,{value:e},t))};function lv(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const _w=B.createContext(lv()),Rw=({children:e})=>{const[t]=B.useState(()=>lv());return B.createElement(_w.Provider,{value:t},typeof e=="function"?e(t):e)};function Pw(e,t){return typeof e=="function"?e(...t):!!e}function kw(e,t,n){const r=K0(e,t,n),i=xw({context:r.context}),[o]=B.useState(()=>new cw(i,r));B.useEffect(()=>{o.setOptions(r)},[o,r]);const s=Ew(B.useCallback(a=>o.subscribe(et.batchCalls(a)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),l=B.useCallback((a,u)=>{o.mutate(a,u).catch(Ow)},[o]);if(s.error&&Pw(o.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:l,mutateAsync:s.mutate}}function Ow(){}/** + * @remix-run/router v1.8.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Re(){return Re=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function ci(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Dw(){return Math.random().toString(36).substr(2,8)}function Id(e,t){return{usr:e.state,key:e.key,idx:t}}function So(e,t,n,r){return n===void 0&&(n=null),Re({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Tn(t):t,{state:n,key:t&&t.key||r||Dw()})}function To(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Tn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Mw(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,l=Ie.Pop,a=null,u=c();u==null&&(u=0,s.replaceState(Re({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){l=Ie.Pop;let L=c(),v=L==null?null:L-u;u=L,a&&a({action:l,location:x.location,delta:v})}function p(L,v){l=Ie.Push;let f=So(x.location,L,v);n&&n(f,L),u=c()+1;let m=Id(f,u),h=x.createHref(f);try{s.pushState(m,"",h)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(h)}o&&a&&a({action:l,location:x.location,delta:1})}function g(L,v){l=Ie.Replace;let f=So(x.location,L,v);n&&n(f,L),u=c();let m=Id(f,u),h=x.createHref(f);s.replaceState(m,"",h),o&&a&&a({action:l,location:x.location,delta:0})}function y(L){let v=i.location.origin!=="null"?i.location.origin:i.location.href,f=typeof L=="string"?L:To(L);return ue(v,"No window.location.(origin|href) available to create URL for href: "+f),new URL(f,v)}let x={get action(){return l},get location(){return e(i,s)},listen(L){if(a)throw new Error("A history only accepts one active listener");return i.addEventListener(Fd,d),a=L,()=>{i.removeEventListener(Fd,d),a=null}},createHref(L){return t(i,L)},createURL:y,encodeLocation(L){let v=y(L);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:p,replace:g,go(L){return s.go(L)}};return x}var Le;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Le||(Le={}));const Aw=new Set(["lazy","caseSensitive","path","id","index","children"]);function Nw(e){return e.index===!0}function Fu(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let s=[...n,o],l=typeof i.id=="string"?i.id:s.join("-");if(ue(i.index!==!0||!i.children,"Cannot specify children on an index route"),ue(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),Nw(i)){let a=Re({},i,t(i),{id:l});return r[l]=a,a}else{let a=Re({},i,t(i),{id:l,children:void 0});return r[l]=a,i.children&&(a.children=Fu(i.children,t,s,r)),a}})}function Hr(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Tn(t):t,i=Do(r.pathname||"/",n);if(i==null)return null;let o=av(e);jw(o);let s=null;for(let l=0;s==null&&l{let a={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};a.relativePath.startsWith("/")&&(ue(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=Jn([r,a.relativePath]),c=n.concat(a);o.children&&o.children.length>0&&(ue(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),av(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:Bw(u,o.index),routesMeta:c})};return e.forEach((o,s)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,s);else for(let a of uv(o.path))i(o,s,a)}),t}function uv(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=uv(r.join("/")),l=[];return l.push(...s.map(a=>a===""?o:[o,a].join("/"))),i&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function jw(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:$w(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Lw=/^:\w+$/,bw=3,Fw=2,Iw=1,Uw=10,zw=-2,Ud=e=>e==="*";function Bw(e,t){let n=e.split("/"),r=n.length;return n.some(Ud)&&(r+=zw),t&&(r+=Fw),n.filter(i=>!Ud(i)).reduce((i,o)=>i+(Lw.test(o)?bw:o===""?Iw:Uw),r)}function $w(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Vw(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let s=0;s{if(c==="*"){let p=l[d]||"";s=o.slice(0,o.length-p.length).replace(/(.)\/+$/,"$1")}return u[c]=Qw(l[d]||"",c),u},{}),pathname:o,pathnameBase:s,pattern:e}}function Hw(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ci(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(s,l)=>(r.push(l),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function qw(e){try{return decodeURI(e)}catch(t){return ci(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Qw(e,t){try{return decodeURIComponent(e)}catch(n){return ci(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Do(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Kw(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Tn(e):e;return{pathname:n?n.startsWith("/")?n:Yw(n,t):t,search:Zw(r),hash:Gw(i)}}function Yw(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Pa(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Zc(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function cv(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Tn(e):(i=Re({},e),ue(!i.pathname||!i.pathname.includes("?"),Pa("?","pathname","search",i)),ue(!i.pathname||!i.pathname.includes("#"),Pa("#","pathname","hash",i)),ue(!i.search||!i.search.includes("#"),Pa("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,l;if(r||s==null)l=n;else{let d=t.length-1;if(s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}l=d>=0?t[d]:"/"}let a=Kw(i,l),u=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||c)&&(a.pathname+="/"),a}const Jn=e=>e.join("/").replace(/\/\/+/g,"/"),Jw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Zw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Gw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Gc{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function fv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const dv=["post","put","patch","delete"],Xw=new Set(dv),eS=["get",...dv],tS=new Set(eS),nS=new Set([301,302,303,307,308]),rS=new Set([307,308]),ka={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},iS={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Di={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},hv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,oS=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function sS(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;ue(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let D=e.detectErrorBoundary;i=A=>({hasErrorBoundary:D(A)})}else i=oS;let o={},s=Fu(e.routes,i,void 0,o),l,a=e.basename||"/",u=Re({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),c=null,d=new Set,p=null,g=null,y=null,x=e.hydrationData!=null,L=Hr(s,e.history.location,a),v=null;if(L==null){let D=Tt(404,{pathname:e.history.location.pathname}),{matches:A,route:V}=Qd(s);L=A,v={[V.id]:D}}let f=!L.some(D=>D.route.lazy)&&(!L.some(D=>D.route.loader)||e.hydrationData!=null),m,h={historyAction:e.history.action,location:e.history.location,matches:L,initialized:f,navigation:ka,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},E=Ie.Pop,R=!1,M,w=!1,O=!1,k=[],$=[],z=new Map,P=0,T=-1,b=new Map,W=new Set,j=new Map,_=new Map,U=new Map,K=!1;function ne(){return c=e.history.listen(D=>{let{action:A,location:V,delta:Z}=D;if(K){K=!1;return}ci(U.size===0||Z!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let oe=Tr({currentLocation:h.location,nextLocation:V,historyAction:A});if(oe&&Z!=null){K=!0,e.history.go(Z*-1),Or(oe,{state:"blocked",location:V,proceed(){Or(oe,{state:"proceeding",proceed:void 0,reset:void 0,location:V}),e.history.go(Z)},reset(){let re=new Map(h.blockers);re.set(oe,Di),le({blockers:re})}});return}return ze(A,V)}),h.initialized||ze(Ie.Pop,h.location),m}function se(){c&&c(),d.clear(),M&&M.abort(),h.fetchers.forEach((D,A)=>G(A)),h.blockers.forEach((D,A)=>dn(A))}function Ee(D){return d.add(D),()=>d.delete(D)}function le(D){h=Re({},h,D),d.forEach(A=>A(h))}function Qe(D,A){var V,Z;let oe=h.actionData!=null&&h.navigation.formMethod!=null&&Qt(h.navigation.formMethod)&&h.navigation.state==="loading"&&((V=D.state)==null?void 0:V._isRedirect)!==!0,re;A.actionData?Object.keys(A.actionData).length>0?re=A.actionData:re=null:oe?re=h.actionData:re=null;let ie=A.loaderData?qd(h.loaderData,A.loaderData,A.matches||[],A.errors):h.loaderData,te=h.blockers;te.size>0&&(te=new Map(te),te.forEach((ge,Ze)=>te.set(Ze,Di)));let X=R===!0||h.navigation.formMethod!=null&&Qt(h.navigation.formMethod)&&((Z=D.state)==null?void 0:Z._isRedirect)!==!0;l&&(s=l,l=void 0),w||E===Ie.Pop||(E===Ie.Push?e.history.push(D,D.state):E===Ie.Replace&&e.history.replace(D,D.state)),le(Re({},A,{actionData:re,loaderData:ie,historyAction:E,location:D,initialized:!0,navigation:ka,revalidation:"idle",restoreScrollPosition:wi(D,A.matches||h.matches),preventScrollReset:X,blockers:te})),E=Ie.Pop,R=!1,w=!1,O=!1,k=[],$=[]}async function Ae(D,A){if(typeof D=="number"){e.history.go(D);return}let V=Iu(h.location,h.matches,a,u.v7_prependBasename,D,A==null?void 0:A.fromRouteId,A==null?void 0:A.relative),{path:Z,submission:oe,error:re}=zd(u.v7_normalizeFormMethod,!1,V,A),ie=h.location,te=So(h.location,Z,A&&A.state);te=Re({},te,e.history.encodeLocation(te));let X=A&&A.replace!=null?A.replace:void 0,ge=Ie.Push;X===!0?ge=Ie.Replace:X===!1||oe!=null&&Qt(oe.formMethod)&&oe.formAction===h.location.pathname+h.location.search&&(ge=Ie.Replace);let Ze=A&&"preventScrollReset"in A?A.preventScrollReset===!0:void 0,ve=Tr({currentLocation:ie,nextLocation:te,historyAction:ge});if(ve){Or(ve,{state:"blocked",location:te,proceed(){Or(ve,{state:"proceeding",proceed:void 0,reset:void 0,location:te}),Ae(D,A)},reset(){let je=new Map(h.blockers);je.set(ve,Di),le({blockers:je})}});return}return await ze(ge,te,{submission:oe,pendingError:re,preventScrollReset:Ze,replace:A&&A.replace})}function rt(){if(N(),le({revalidation:"loading"}),h.navigation.state!=="submitting"){if(h.navigation.state==="idle"){ze(h.historyAction,h.location,{startUninterruptedRevalidation:!0});return}ze(E||h.historyAction,h.navigation.location,{overrideNavigation:h.navigation})}}async function ze(D,A,V){M&&M.abort(),M=null,E=D,w=(V&&V.startUninterruptedRevalidation)===!0,ql(h.location,h.matches),R=(V&&V.preventScrollReset)===!0;let Z=l||s,oe=V&&V.overrideNavigation,re=Hr(Z,A,a);if(!re){let je=Tt(404,{pathname:A.pathname}),{matches:Ke,route:or}=Qd(Z);ir(),Qe(A,{matches:Ke,loaderData:{},errors:{[or.id]:je}});return}if(h.initialized&&!O&&fS(h.location,A)&&!(V&&V.submission&&Qt(V.submission.formMethod))){Qe(A,{matches:re});return}M=new AbortController;let ie=Ai(e.history,A,M.signal,V&&V.submission),te,X;if(V&&V.pendingError)X={[qr(re).route.id]:V.pendingError};else if(V&&V.submission&&Qt(V.submission.formMethod)){let je=await Be(ie,A,V.submission,re,{replace:V.replace});if(je.shortCircuited)return;te=je.pendingActionData,X=je.pendingActionError,oe=is(A,V.submission),ie=new Request(ie.url,{signal:ie.signal})}let{shortCircuited:ge,loaderData:Ze,errors:ve}=await Ot(ie,A,re,oe,V&&V.submission,V&&V.fetcherSubmission,V&&V.replace,te,X);ge||(M=null,Qe(A,Re({matches:re},te?{actionData:te}:{},{loaderData:Ze,errors:ve})))}async function Be(D,A,V,Z,oe){oe===void 0&&(oe={}),N();let re=vS(A,V);le({navigation:re});let ie,te=zu(Z,A);if(!te.route.action&&!te.route.lazy)ie={type:Le.error,error:Tt(405,{method:D.method,pathname:A.pathname,routeId:te.route.id})};else if(ie=await Mi("action",D,te,Z,o,i,a),D.signal.aborted)return{shortCircuited:!0};if(ei(ie)){let X;return oe&&oe.replace!=null?X=oe.replace:X=ie.location===h.location.pathname+h.location.search,await kr(h,ie,{submission:V,replace:X}),{shortCircuited:!0}}if(Xi(ie)){let X=qr(Z,te.route.id);return(oe&&oe.replace)!==!0&&(E=Ie.Push),{pendingActionData:{},pendingActionError:{[X.route.id]:ie.error}}}if(mr(ie))throw Tt(400,{type:"defer-action"});return{pendingActionData:{[te.route.id]:ie.data}}}async function Ot(D,A,V,Z,oe,re,ie,te,X){let ge=Z||is(A,oe),Ze=oe||re||Jd(ge),ve=l||s,[je,Ke]=Bd(e.history,h,V,Ze,A,O,k,$,j,W,ve,a,te,X);if(ir(ye=>!(V&&V.some(Ut=>Ut.route.id===ye))||je&&je.some(Ut=>Ut.route.id===ye)),T=++P,je.length===0&&Ke.length===0){let ye=ee();return Qe(A,Re({matches:V,loaderData:{},errors:X||null},te?{actionData:te}:{},ye?{fetchers:new Map(h.fetchers)}:{})),{shortCircuited:!0}}if(!w){Ke.forEach(Ut=>{let Dn=h.fetchers.get(Ut.key),Zl=Ni(void 0,Dn?Dn.data:void 0);h.fetchers.set(Ut.key,Zl)});let ye=te||h.actionData;le(Re({navigation:ge},ye?Object.keys(ye).length===0?{actionData:null}:{actionData:ye}:{},Ke.length>0?{fetchers:new Map(h.fetchers)}:{}))}Ke.forEach(ye=>{z.has(ye.key)&&Q(ye.key),ye.controller&&z.set(ye.key,ye.controller)});let or=()=>Ke.forEach(ye=>Q(ye.key));M&&M.signal.addEventListener("abort",or);let{results:sr,loaderResults:Si,fetcherResults:Ql}=await C(h.matches,V,je,Ke,D);if(D.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",or),Ke.forEach(ye=>z.delete(ye.key));let hn=Kd(sr);if(hn){if(hn.idx>=je.length){let ye=Ke[hn.idx-je.length].key;W.add(ye)}return await kr(h,hn.result,{replace:ie}),{shortCircuited:!0}}let{loaderData:pn,errors:Uo}=Hd(h,V,je,Si,X,Ke,Ql,_);_.forEach((ye,Ut)=>{ye.subscribe(Dn=>{(Dn||ye.done)&&_.delete(Ut)})});let Kl=ee(),Yl=xe(T),Jl=Kl||Yl||Ke.length>0;return Re({loaderData:pn,errors:Uo},Jl?{fetchers:new Map(h.fetchers)}:{})}function It(D){return h.fetchers.get(D)||iS}function fn(D,A,V,Z){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");z.has(D)&&Q(D);let oe=l||s,re=Iu(h.location,h.matches,a,u.v7_prependBasename,V,A,Z==null?void 0:Z.relative),ie=Hr(oe,re,a);if(!ie){I(D,A,Tt(404,{pathname:re}));return}let{path:te,submission:X,error:ge}=zd(u.v7_normalizeFormMethod,!0,re,Z);if(ge){I(D,A,ge);return}let Ze=zu(ie,te);if(R=(Z&&Z.preventScrollReset)===!0,X&&Qt(X.formMethod)){yf(D,A,te,Ze,ie,X);return}j.set(D,{routeId:A,path:te}),gf(D,A,te,Ze,ie,X)}async function yf(D,A,V,Z,oe,re){if(N(),j.delete(D),!Z.route.action&&!Z.route.lazy){let $e=Tt(405,{method:re.formMethod,pathname:V,routeId:A});I(D,A,$e);return}let ie=h.fetchers.get(D),te=yS(re,ie);h.fetchers.set(D,te),le({fetchers:new Map(h.fetchers)});let X=new AbortController,ge=Ai(e.history,V,X.signal,re);z.set(D,X);let Ze=P,ve=await Mi("action",ge,Z,oe,o,i,a);if(ge.signal.aborted){z.get(D)===X&&z.delete(D);return}if(ei(ve))if(z.delete(D),T>Ze){let $e=Ar(void 0);h.fetchers.set(D,$e),le({fetchers:new Map(h.fetchers)});return}else{W.add(D);let $e=Ni(re);return h.fetchers.set(D,$e),le({fetchers:new Map(h.fetchers)}),kr(h,ve,{submission:re,isFetchActionRedirect:!0})}if(Xi(ve)){I(D,A,ve.error);return}if(mr(ve))throw Tt(400,{type:"defer-action"});let je=h.navigation.location||h.location,Ke=Ai(e.history,je,X.signal),or=l||s,sr=h.navigation.state!=="idle"?Hr(or,h.navigation.location,a):h.matches;ue(sr,"Didn't find any matches after fetcher action");let Si=++P;b.set(D,Si);let Ql=Ni(re,ve.data);h.fetchers.set(D,Ql);let[hn,pn]=Bd(e.history,h,sr,re,je,O,k,$,j,W,or,a,{[Z.route.id]:ve.data},void 0);pn.filter($e=>$e.key!==D).forEach($e=>{let Ei=$e.key,wf=h.fetchers.get(Ei),yy=Ni(void 0,wf?wf.data:void 0);h.fetchers.set(Ei,yy),z.has(Ei)&&Q(Ei),$e.controller&&z.set(Ei,$e.controller)}),le({fetchers:new Map(h.fetchers)});let Uo=()=>pn.forEach($e=>Q($e.key));X.signal.addEventListener("abort",Uo);let{results:Kl,loaderResults:Yl,fetcherResults:Jl}=await C(h.matches,sr,hn,pn,Ke);if(X.signal.aborted)return;X.signal.removeEventListener("abort",Uo),b.delete(D),z.delete(D),pn.forEach($e=>z.delete($e.key));let ye=Kd(Kl);if(ye){if(ye.idx>=hn.length){let $e=pn[ye.idx-hn.length].key;W.add($e)}return kr(h,ye.result)}let{loaderData:Ut,errors:Dn}=Hd(h,h.matches,hn,Yl,void 0,pn,Jl,_);if(h.fetchers.has(D)){let $e=Ar(ve.data);h.fetchers.set(D,$e)}let Zl=xe(Si);h.navigation.state==="loading"&&Si>T?(ue(E,"Expected pending action"),M&&M.abort(),Qe(h.navigation.location,{matches:sr,loaderData:Ut,errors:Dn,fetchers:new Map(h.fetchers)})):(le(Re({errors:Dn,loaderData:qd(h.loaderData,Ut,sr,Dn)},Zl||pn.length>0?{fetchers:new Map(h.fetchers)}:{})),O=!1)}async function gf(D,A,V,Z,oe,re){let ie=h.fetchers.get(D),te=Ni(re,ie?ie.data:void 0);h.fetchers.set(D,te),le({fetchers:new Map(h.fetchers)});let X=new AbortController,ge=Ai(e.history,V,X.signal);z.set(D,X);let Ze=P,ve=await Mi("loader",ge,Z,oe,o,i,a);if(mr(ve)&&(ve=await vv(ve,ge.signal,!0)||ve),z.get(D)===X&&z.delete(D),ge.signal.aborted)return;if(ei(ve))if(T>Ze){let Ke=Ar(void 0);h.fetchers.set(D,Ke),le({fetchers:new Map(h.fetchers)});return}else{W.add(D),await kr(h,ve);return}if(Xi(ve)){let Ke=qr(h.matches,A);h.fetchers.delete(D),le({fetchers:new Map(h.fetchers),errors:{[Ke.route.id]:ve.error}});return}ue(!mr(ve),"Unhandled fetcher deferred data");let je=Ar(ve.data);h.fetchers.set(D,je),le({fetchers:new Map(h.fetchers)})}async function kr(D,A,V){let{submission:Z,replace:oe,isFetchActionRedirect:re}=V===void 0?{}:V;A.revalidate&&(O=!0);let ie=So(D.location,A.location,Re({_isRedirect:!0},re?{_isFetchActionRedirect:!0}:{}));if(ue(ie,"Expected a location on the redirect navigation"),n){let ge=!1;if(A.reloadDocument)ge=!0;else if(hv.test(A.location)){const Ze=e.history.createURL(A.location);ge=Ze.origin!==t.location.origin||Do(Ze.pathname,a)==null}if(ge){oe?t.location.replace(A.location):t.location.assign(A.location);return}}M=null;let te=oe===!0?Ie.Replace:Ie.Push,X=Z||Jd(D.navigation);if(rS.has(A.status)&&X&&Qt(X.formMethod))await ze(te,ie,{submission:Re({},X,{formAction:A.location}),preventScrollReset:R});else if(re)await ze(te,ie,{overrideNavigation:is(ie),fetcherSubmission:X,preventScrollReset:R});else{let ge=is(ie,X);await ze(te,ie,{overrideNavigation:ge,preventScrollReset:R})}}async function C(D,A,V,Z,oe){let re=await Promise.all([...V.map(X=>Mi("loader",oe,X,A,o,i,a)),...Z.map(X=>X.matches&&X.match&&X.controller?Mi("loader",Ai(e.history,X.path,X.controller.signal),X.match,X.matches,o,i,a):{type:Le.error,error:Tt(404,{pathname:X.path})})]),ie=re.slice(0,V.length),te=re.slice(V.length);return await Promise.all([Yd(D,V,ie,ie.map(()=>oe.signal),!1,h.loaderData),Yd(D,Z.map(X=>X.match),te,Z.map(X=>X.controller?X.controller.signal:null),!0)]),{results:re,loaderResults:ie,fetcherResults:te}}function N(){O=!0,k.push(...ir()),j.forEach((D,A)=>{z.has(A)&&($.push(A),Q(A))})}function I(D,A,V){let Z=qr(h.matches,A);G(D),le({errors:{[Z.route.id]:V},fetchers:new Map(h.fetchers)})}function G(D){let A=h.fetchers.get(D);z.has(D)&&!(A&&A.state==="loading"&&b.has(D))&&Q(D),j.delete(D),b.delete(D),W.delete(D),h.fetchers.delete(D)}function Q(D){let A=z.get(D);ue(A,"Expected fetch controller: "+D),A.abort(),z.delete(D)}function q(D){for(let A of D){let V=It(A),Z=Ar(V.data);h.fetchers.set(A,Z)}}function ee(){let D=[],A=!1;for(let V of W){let Z=h.fetchers.get(V);ue(Z,"Expected fetcher: "+V),Z.state==="loading"&&(W.delete(V),D.push(V),A=!0)}return q(D),A}function xe(D){let A=[];for(let[V,Z]of b)if(Z0}function Oe(D,A){let V=h.blockers.get(D)||Di;return U.get(D)!==A&&U.set(D,A),V}function dn(D){h.blockers.delete(D),U.delete(D)}function Or(D,A){let V=h.blockers.get(D)||Di;ue(V.state==="unblocked"&&A.state==="blocked"||V.state==="blocked"&&A.state==="blocked"||V.state==="blocked"&&A.state==="proceeding"||V.state==="blocked"&&A.state==="unblocked"||V.state==="proceeding"&&A.state==="unblocked","Invalid blocker state transition: "+V.state+" -> "+A.state);let Z=new Map(h.blockers);Z.set(D,A),le({blockers:Z})}function Tr(D){let{currentLocation:A,nextLocation:V,historyAction:Z}=D;if(U.size===0)return;U.size>1&&ci(!1,"A router only supports one blocker at a time");let oe=Array.from(U.entries()),[re,ie]=oe[oe.length-1],te=h.blockers.get(re);if(!(te&&te.state==="proceeding")&&ie({currentLocation:A,nextLocation:V,historyAction:Z}))return re}function ir(D){let A=[];return _.forEach((V,Z)=>{(!D||D(Z))&&(V.cancel(),A.push(Z),_.delete(Z))}),A}function Hl(D,A,V){if(p=D,y=A,g=V||null,!x&&h.navigation===ka){x=!0;let Z=wi(h.location,h.matches);Z!=null&&le({restoreScrollPosition:Z})}return()=>{p=null,y=null,g=null}}function gi(D,A){return g&&g(D,A.map(Z=>mS(Z,h.loaderData)))||D.key}function ql(D,A){if(p&&y){let V=gi(D,A);p[V]=y()}}function wi(D,A){if(p){let V=gi(D,A),Z=p[V];if(typeof Z=="number")return Z}return null}function vy(D){o={},l=Fu(D,i,void 0,o)}return m={get basename(){return a},get state(){return h},get routes(){return s},initialize:ne,subscribe:Ee,enableScrollRestoration:Hl,navigate:Ae,fetch:fn,revalidate:rt,createHref:D=>e.history.createHref(D),encodeLocation:D=>e.history.encodeLocation(D),getFetcher:It,deleteFetcher:G,dispose:se,getBlocker:Oe,deleteBlocker:dn,_internalFetchControllers:z,_internalActiveDeferreds:_,_internalSetRoutes:vy},m}function lS(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Iu(e,t,n,r,i,o,s){let l,a;if(o!=null&&s!=="path"){l=[];for(let c of t)if(l.push(c),c.route.id===o){a=c;break}}else l=t,a=t[t.length-1];let u=cv(i||".",Zc(l).map(c=>c.pathnameBase),Do(e.pathname,n)||e.pathname,s==="path");return i==null&&(u.search=e.search,u.hash=e.hash),(i==null||i===""||i===".")&&a&&a.route.index&&!Xc(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:Jn([n,u.pathname])),To(u)}function zd(e,t,n,r){if(!r||!lS(r))return{path:n};if(r.formMethod&&!pS(r.formMethod))return{path:n,error:Tt(405,{method:r.formMethod})};let i=()=>({path:n,error:Tt(400,{type:"invalid-body"})}),o=r.formMethod||"get",s=e?o.toUpperCase():o.toLowerCase(),l=mv(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Qt(s))return i();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,y)=>{let[x,L]=y;return""+g+x+"="+L+` +`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!Qt(s))return i();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:l,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}ue(typeof FormData=="function","FormData is not available in this environment");let a,u;if(r.formData)a=Uu(r.formData),u=r.formData;else if(r.body instanceof FormData)a=Uu(r.body),u=r.body;else if(r.body instanceof URLSearchParams)a=r.body,u=Wd(a);else if(r.body==null)a=new URLSearchParams,u=new FormData;else try{a=new URLSearchParams(r.body),u=Wd(a)}catch{return i()}let c={formMethod:s,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Qt(c.formMethod))return{path:n,submission:c};let d=Tn(n);return t&&d.search&&Xc(d.search)&&a.append("index",""),d.search="?"+a,{path:To(d),submission:c}}function aS(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Bd(e,t,n,r,i,o,s,l,a,u,c,d,p,g){let y=g?Object.values(g)[0]:p?Object.values(p)[0]:void 0,x=e.createURL(t.location),L=e.createURL(i),v=g?Object.keys(g)[0]:void 0,m=aS(n,v).filter((E,R)=>{if(E.route.lazy)return!0;if(E.route.loader==null)return!1;if(uS(t.loaderData,t.matches[R],E)||s.some(O=>O===E.route.id))return!0;let M=t.matches[R],w=E;return $d(E,Re({currentUrl:x,currentParams:M.params,nextUrl:L,nextParams:w.params},r,{actionResult:y,defaultShouldRevalidate:o||x.pathname+x.search===L.pathname+L.search||x.search!==L.search||pv(M,w)}))}),h=[];return a.forEach((E,R)=>{if(!n.some($=>$.route.id===E.routeId))return;let M=Hr(c,E.path,d);if(!M){h.push({key:R,routeId:E.routeId,path:E.path,matches:null,match:null,controller:null});return}let w=t.fetchers.get(R),O=zu(M,E.path),k=!1;u.has(R)?k=!1:l.includes(R)?k=!0:w&&w.state!=="idle"&&w.data===void 0?k=o:k=$d(O,Re({currentUrl:x,currentParams:t.matches[t.matches.length-1].params,nextUrl:L,nextParams:n[n.length-1].params},r,{actionResult:y,defaultShouldRevalidate:o})),k&&h.push({key:R,routeId:E.routeId,path:E.path,matches:M,match:O,controller:new AbortController})}),[m,h]}function uS(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function pv(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function $d(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Vd(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];ue(i,"No route found in manifest");let o={};for(let s in r){let a=i[s]!==void 0&&s!=="hasErrorBoundary";ci(!a,'Route "'+i.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!a&&!Aw.has(s)&&(o[s]=r[s])}Object.assign(i,o),Object.assign(i,Re({},t(i),{lazy:void 0}))}async function Mi(e,t,n,r,i,o,s,l){l===void 0&&(l={});let a,u,c,d=y=>{let x,L=new Promise((v,f)=>x=f);return c=()=>x(),t.signal.addEventListener("abort",c),Promise.race([y({request:t,params:n.params,context:l.requestContext}),L])};try{let y=n.route[e];if(n.route.lazy)if(y)u=(await Promise.all([d(y),Vd(n.route,o,i)]))[0];else if(await Vd(n.route,o,i),y=n.route[e],y)u=await d(y);else if(e==="action"){let x=new URL(t.url),L=x.pathname+x.search;throw Tt(405,{method:t.method,pathname:L,routeId:n.route.id})}else return{type:Le.data,data:void 0};else if(y)u=await d(y);else{let x=new URL(t.url),L=x.pathname+x.search;throw Tt(404,{pathname:L})}ue(u!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(y){a=Le.error,u=y}finally{c&&t.signal.removeEventListener("abort",c)}if(hS(u)){let y=u.status;if(nS.has(y)){let v=u.headers.get("Location");if(ue(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!hv.test(v))v=Iu(new URL(t.url),r.slice(0,r.indexOf(n)+1),s,!0,v);else if(!l.isStaticRequest){let f=new URL(t.url),m=v.startsWith("//")?new URL(f.protocol+v):new URL(v),h=Do(m.pathname,s)!=null;m.origin===f.origin&&h&&(v=m.pathname+m.search+m.hash)}if(l.isStaticRequest)throw u.headers.set("Location",v),u;return{type:Le.redirect,status:y,location:v,revalidate:u.headers.get("X-Remix-Revalidate")!==null,reloadDocument:u.headers.get("X-Remix-Reload-Document")!==null}}if(l.isRouteRequest)throw{type:a===Le.error?Le.error:Le.data,response:u};let x,L=u.headers.get("Content-Type");return L&&/\bapplication\/json\b/.test(L)?x=await u.json():x=await u.text(),a===Le.error?{type:a,error:new Gc(y,u.statusText,x),headers:u.headers}:{type:Le.data,data:x,statusCode:u.status,headers:u.headers}}if(a===Le.error)return{type:a,error:u};if(dS(u)){var p,g;return{type:Le.deferred,deferredData:u,statusCode:(p=u.init)==null?void 0:p.status,headers:((g=u.init)==null?void 0:g.headers)&&new Headers(u.init.headers)}}return{type:Le.data,data:u}}function Ai(e,t,n,r){let i=e.createURL(mv(t)).toString(),o={signal:n};if(r&&Qt(r.formMethod)){let{formMethod:s,formEncType:l}=r;o.method=s.toUpperCase(),l==="application/json"?(o.headers=new Headers({"Content-Type":l}),o.body=JSON.stringify(r.json)):l==="text/plain"?o.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?o.body=Uu(r.formData):o.body=r.formData}return new Request(i,o)}function Uu(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Wd(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function cS(e,t,n,r,i){let o={},s=null,l,a=!1,u={};return n.forEach((c,d)=>{let p=t[d].route.id;if(ue(!ei(c),"Cannot handle redirect results in processLoaderData"),Xi(c)){let g=qr(e,p),y=c.error;r&&(y=Object.values(r)[0],r=void 0),s=s||{},s[g.route.id]==null&&(s[g.route.id]=y),o[p]=void 0,a||(a=!0,l=fv(c.error)?c.error.status:500),c.headers&&(u[p]=c.headers)}else mr(c)?(i.set(p,c.deferredData),o[p]=c.deferredData.data):o[p]=c.data,c.statusCode!=null&&c.statusCode!==200&&!a&&(l=c.statusCode),c.headers&&(u[p]=c.headers)}),r&&(s=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:s,statusCode:l||200,loaderHeaders:u}}function Hd(e,t,n,r,i,o,s,l){let{loaderData:a,errors:u}=cS(t,n,r,i,l);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Qd(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Tt(e,t){let{pathname:n,routeId:r,method:i,type:o}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&n&&r?l="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?l="defer() is not supported in actions":o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",i&&n&&r?l="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new Gc(e||500,s,new Error(l),!0)}function Kd(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(ei(n))return{result:n,idx:t}}}function mv(e){let t=typeof e=="string"?Tn(e):e;return To(Re({},t,{hash:""}))}function fS(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function mr(e){return e.type===Le.deferred}function Xi(e){return e.type===Le.error}function ei(e){return(e&&e.type)===Le.redirect}function dS(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function hS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function pS(e){return tS.has(e.toLowerCase())}function Qt(e){return Xw.has(e.toLowerCase())}async function Yd(e,t,n,r,i,o){for(let s=0;sd.route.id===a.route.id),c=u!=null&&!pv(u,a)&&(o&&o[a.route.id])!==void 0;if(mr(l)&&(i||c)){let d=r[s];ue(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await vv(l,d,i).then(p=>{p&&(n[s]=p||n[s])})}}}async function vv(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Le.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Le.error,error:i}}return{type:Le.data,data:e.deferredData.data}}}function Xc(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function mS(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function zu(e,t){let n=typeof t=="string"?Tn(t).search:t.search;if(e[e.length-1].route.index&&Xc(n||""))return e[e.length-1];let r=Zc(e);return r[r.length-1]}function Jd(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:s}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function is(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function vS(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Ni(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}function yS(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0," _hasFetcherDoneAnything ":!0}}function Ar(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}/** + * React Router v6.15.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function el(){return el=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.pathnameBase)),s=B.useRef(!1);return Sv(()=>{s.current=!0}),B.useCallback(function(a,u){if(u===void 0&&(u={}),!s.current)return;if(typeof a=="number"){n.go(a);return}let c=cv(a,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Jn([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,o,i,e])}const wS=B.createContext(null);function SS(e){let t=B.useContext(Pr).outlet;return t&&B.createElement(wS.Provider,{value:e},t)}function ES(e,t,n){Al()||ue(!1);let{navigator:r}=B.useContext(Dl),{matches:i}=B.useContext(Pr),o=i[i.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let a=wv(),u;if(t){var c;let x=typeof t=="string"?Tn(t):t;l==="/"||(c=x.pathname)!=null&&c.startsWith(l)||ue(!1),u=x}else u=a;let d=u.pathname||"/",p=l==="/"?d:d.slice(l.length)||"/",g=Hr(e,{pathname:p}),y=PS(g&&g.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:Jn([l,r.encodeLocation?r.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Jn([l,r.encodeLocation?r.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,n);return t&&y?B.createElement(Ml.Provider,{value:{location:el({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Ie.Pop}},y):y}function xS(){let e=DS(),t=fv(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return B.createElement(B.Fragment,null,B.createElement("h2",null,"Unexpected Application Error!"),B.createElement("h3",{style:{fontStyle:"italic"}},t),n?B.createElement("pre",{style:i},n):null,o)}const CS=B.createElement(xS,null);class _S extends B.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?B.createElement(Pr.Provider,{value:this.props.routeContext},B.createElement(gv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function RS(e){let{routeContext:t,match:n,children:r}=e,i=B.useContext(Tl);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),B.createElement(Pr.Provider,{value:t},r)}function PS(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let o=e,s=(r=n)==null?void 0:r.errors;if(s!=null){let l=o.findIndex(a=>a.route.id&&(s==null?void 0:s[a.route.id]));l>=0||ue(!1),o=o.slice(0,Math.min(o.length,l+1))}return o.reduceRight((l,a,u)=>{let c=a.route.id?s==null?void 0:s[a.route.id]:null,d=null;n&&(d=a.route.errorElement||CS);let p=t.concat(o.slice(0,u+1)),g=()=>{let y;return c?y=d:a.route.Component?y=B.createElement(a.route.Component,null):a.route.element?y=a.route.element:y=l,B.createElement(RS,{match:a,routeContext:{outlet:l,matches:p,isDataRoute:n!=null},children:y})};return n&&(a.route.ErrorBoundary||a.route.errorElement||u===0)?B.createElement(_S,{location:n.location,revalidation:n.revalidation,component:d,error:c,children:g(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):g()},null)}var Ev=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Ev||{}),tl=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(tl||{});function kS(e){let t=B.useContext(Tl);return t||ue(!1),t}function OS(e){let t=B.useContext(yv);return t||ue(!1),t}function TS(e){let t=B.useContext(Pr);return t||ue(!1),t}function xv(e){let t=TS(),n=t.matches[t.matches.length-1];return n.route.id||ue(!1),n.route.id}function DS(){var e;let t=B.useContext(gv),n=OS(tl.UseRouteError),r=xv(tl.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function MS(){let{router:e}=kS(Ev.UseNavigateStable),t=xv(tl.UseNavigateStable),n=B.useRef(!1);return Sv(()=>{n.current=!0}),B.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,el({fromRouteId:t},o)))},[e,t])}const AS="startTransition",Zd=jy[AS];function NS(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=B.useState(n.state),{v7_startTransition:s}=r||{},l=B.useCallback(d=>{s&&Zd?Zd(()=>o(d)):o(d)},[o,s]);B.useLayoutEffect(()=>n.subscribe(l),[n,l]);let a=B.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:d=>n.navigate(d),push:(d,p,g)=>n.navigate(d,{state:p,preventScrollReset:g==null?void 0:g.preventScrollReset}),replace:(d,p,g)=>n.navigate(d,{replace:!0,state:p,preventScrollReset:g==null?void 0:g.preventScrollReset})}),[n]),u=n.basename||"/",c=B.useMemo(()=>({router:n,navigator:a,static:!1,basename:u}),[n,a,u]);return B.createElement(B.Fragment,null,B.createElement(Tl.Provider,{value:c},B.createElement(yv.Provider,{value:i},B.createElement(bS,{basename:u,location:i.location,navigationType:i.historyAction,navigator:a},i.initialized?B.createElement(jS,{routes:n.routes,state:i}):t))),null)}function jS(e){let{routes:t,state:n}=e;return ES(t,void 0,n)}function LS(e){return SS(e.context)}function vn(e){ue(!1)}function bS(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ie.Pop,navigator:o,static:s=!1}=e;Al()&&ue(!1);let l=t.replace(/^\/*/,"/"),a=B.useMemo(()=>({basename:l,navigator:o,static:s}),[l,o,s]);typeof r=="string"&&(r=Tn(r));let{pathname:u="/",search:c="",hash:d="",state:p=null,key:g="default"}=r,y=B.useMemo(()=>{let x=Do(u,l);return x==null?null:{location:{pathname:x,search:c,hash:d,state:p,key:g},navigationType:i}},[l,u,c,d,p,g,i]);return y==null?null:B.createElement(Dl.Provider,{value:a},B.createElement(Ml.Provider,{children:n,value:y}))}new Promise(()=>{});function Bu(e,t){t===void 0&&(t=[]);let n=[];return B.Children.forEach(e,(r,i)=>{if(!B.isValidElement(r))return;let o=[...t,i];if(r.type===B.Fragment){n.push.apply(n,Bu(r.props.children,o));return}r.type!==vn&&ue(!1),!r.props.index||!r.props.children||ue(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Bu(r.props.children,o)),n.push(s)}),n}function FS(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:B.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:B.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.15.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function nl(){return nl=Object.assign?Object.assign.bind():function(e){for(var t=1;tn};return typeof e=="function"?r.read=e:(r.init=e,r.read=i=>i(r),r.write=(i,o,s)=>o(r,typeof s=="function"?s(i(r)):s)),t&&(r.write=t),r}const eh=e=>"init"in e,th=e=>!!e.write,rl=new WeakMap,$S=(e,t)=>{rl.set(e,t),e.catch(()=>{}).finally(()=>rl.delete(e))},nh=(e,t)=>{const n=rl.get(e);n&&(rl.delete(e),n(t))},rh=(e,t)=>{e.status="fulfilled",e.value=t},ih=(e,t)=>{e.status="rejected",e.reason=t},VS=e=>typeof(e==null?void 0:e.then)=="function",os=(e,t)=>"v"in e&&"v"in t&&Object.is(e.v,t.v),oh=(e,t)=>"e"in e&&"e"in t&&Object.is(e.e,t.e),ji=e=>"v"in e&&e.v instanceof Promise,WS=(e,t)=>"v"in e&&"v"in t&&e.v.orig&&e.v.orig===t.v.orig,ss=e=>{if("e"in e)throw e.e;return e.v},HS=()=>{const e=new WeakMap,t=new WeakMap,n=new Map;let r,i;const o=w=>e.get(w),s=(w,O)=>{const k=e.get(w);if(e.set(w,O),n.has(w)||n.set(w,k),k&&ji(k)){const $="v"in O?O.v instanceof Promise?O.v:Promise.resolve(O.v):Promise.reject(O.e);nh(k.v,$)}},l=(w,O,k)=>{const $=new Map;let z=!1;k.forEach((P,T)=>{!P&&T===w&&(P=O),P&&($.set(T,P),O.d.get(T)!==P&&(z=!0))}),(z||O.d.size!==$.size)&&(O.d=$)},a=(w,O,k)=>{const $=o(w),z={d:($==null?void 0:$.d)||new Map,v:O};if(k&&l(w,z,k),$&&os($,z)&&$.d===z.d)return $;if($&&ji($)&&ji(z)&&WS($,z)){if($.d===z.d)return $;z.v=$.v}return s(w,z),z},u=(w,O,k,$)=>{if(VS(O)){let z;const P=new Promise((T,b)=>{let W=!1;O.then(j=>{if(!W){W=!0;const _=o(w),U=a(w,P,k);rh(P,j),T(j),(_==null?void 0:_.d)!==U.d&&E(w,U,_==null?void 0:_.d)}},j=>{if(!W){W=!0;const _=o(w),U=a(w,P,k);ih(P,j),b(j),(_==null?void 0:_.d)!==U.d&&E(w,U,_==null?void 0:_.d)}}),z=j=>{W||(W=!0,j.then(_=>rh(P,_),_=>ih(P,_)),T(j))}});return P.orig=O,P.status="pending",$S(P,T=>{T&&z(T),$==null||$()}),a(w,P,k)}return a(w,O,k)},c=(w,O,k)=>{const $=o(w),z={d:($==null?void 0:$.d)||new Map,e:O};return k&&l(w,z,k),$&&oh($,z)&&$.d===z.d?$:(s(w,z),z)},d=(w,O)=>{const k=o(w);if(!O&&k&&(t.has(w)||Array.from(k.d).every(([j,_])=>j===w||d(j)===_)))return k;const $=new Map;let z=!0;const P=j=>{if(j===w){const U=o(j);if(U)return $.set(j,U),ss(U);if(eh(j))return $.set(j,void 0),j.init;throw new Error("no atom init")}const _=d(j);return $.set(j,_),ss(_)};let T,b;const W={get signal(){return T||(T=new AbortController),T.signal},get setSelf(){return!b&&th(w)&&(b=(...j)=>{if(!z)return f(w,...j)}),b}};try{const j=w.read(P,W);return u(w,j,$,()=>T==null?void 0:T.abort())}catch(j){return c(w,j,$)}finally{z=!1}},p=w=>ss(d(w)),g=w=>{let O=t.get(w);return O||(O=m(w)),O},y=(w,O)=>!O.l.size&&(!O.t.size||O.t.size===1&&O.t.has(w)),x=w=>{const O=t.get(w);O&&y(w,O)&&h(w)},L=w=>{const O=new Map,k=new WeakMap,$=P=>{const T=t.get(P);T==null||T.t.forEach(b=>{b!==P&&(O.set(b,(O.get(b)||new Set).add(P)),k.set(b,(k.get(b)||0)+1),$(b))})};$(w);const z=P=>{const T=t.get(P);T==null||T.t.forEach(b=>{var W;if(b!==P){let j=k.get(b);if(j&&k.set(b,--j),!j){let _=!!((W=O.get(b))!=null&&W.size);if(_){const U=o(b),K=d(b,!0);_=!U||!os(U,K)}_||O.forEach(U=>U.delete(b))}z(b)}})};z(w)},v=(w,...O)=>{let k=!0;const $=T=>ss(d(T)),z=(T,...b)=>{let W;if(T===w){if(!eh(T))throw new Error("atom not writable");const j=o(T),_=u(T,b[0]);(!j||!os(j,_))&&L(T)}else W=v(T,...b);if(!k){const j=R()}return W},P=w.write($,z,...O);return k=!1,P},f=(w,...O)=>{const k=v(w,...O),$=R();return k},m=(w,O)=>{var k;(k=o(w))==null||k.d.forEach((z,P)=>{const T=t.get(P);T?T.t.add(w):P!==w&&m(P,w)}),d(w);const $={t:new Set(O&&[O]),l:new Set};if(t.set(w,$),th(w)&&w.onMount){const z=w.onMount((...P)=>f(w,...P));z&&($.u=z)}return $},h=w=>{var O;const k=(O=t.get(w))==null?void 0:O.u;k&&k(),t.delete(w);const $=o(w);$&&(ji($)&&nh($.v),$.d.forEach((z,P)=>{if(P!==w){const T=t.get(P);T&&(T.t.delete(w),y(P,T)&&h(P))}}))},E=(w,O,k)=>{const $=new Set(O.d.keys());k==null||k.forEach((z,P)=>{if($.has(P)){$.delete(P);return}const T=t.get(P);T&&(T.t.delete(w),y(P,T)&&h(P))}),$.forEach(z=>{const P=t.get(z);P?P.t.add(w):t.has(w)&&m(z,w)})},R=()=>{let w;for(;n.size;){const O=Array.from(n);n.clear(),O.forEach(([k,$])=>{const z=o(k);if(z){z.d!==($==null?void 0:$.d)&&E(k,z,$==null?void 0:$.d);const P=t.get(k);P&&!($&&!ji($)&&(os($,z)||oh($,z)))&&P.l.forEach(T=>T())}})}};return{get:p,set:f,sub:(w,O)=>{const k=g(w),$=R(),z=k.l;return z.add(O),()=>{z.delete(O),x(w)}}}};let Oa;const qS=()=>(Oa||(Oa=HS()),Oa),QS=B.createContext(void 0),Cv=e=>{const t=B.useContext(QS);return(e==null?void 0:e.store)||t||qS()},KS=e=>typeof(e==null?void 0:e.then)=="function",YS=ke.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)});function JS(e,t){const n=Cv(t),[[r,i,o],s]=B.useReducer(u=>{const c=n.get(e);return Object.is(u[0],c)&&u[1]===n&&u[2]===e?u:[c,n,e]},void 0,()=>[n.get(e),n,e]);let l=r;(i!==n||o!==e)&&(s(),l=n.get(e));const a=t==null?void 0:t.delay;return B.useEffect(()=>{const u=n.sub(e,()=>{if(typeof a=="number"){setTimeout(s,a);return}s()});return s(),u},[n,e,a]),B.useDebugValue(l),KS(l)?YS(l):l}function _v(e,t){const n=Cv(t);return B.useCallback((...i)=>n.set(e,...i),[n,e])}function ut(e,t){return[JS(e,t),_v(e,t)]}const Rv=Symbol();function Pv(e){const t=Nl(e,(n,r,i)=>{const o=typeof i=="function"?i(n(t)):i;r(t,o===Rv?e:o)});return t}function ZS(e,t){const n=_v(e,t);return B.useCallback(()=>n(Rv),[n])}const ef=Pv({}),GS=e=>{try{const t=window.localStorage.getItem(e);return t?JSON.parse(t):!1}catch(t){return console.error(t),!1}},XS=(e,t)=>{try{const n=JSON.stringify(t);return window.localStorage.setItem(e,n),!0}catch(n){return console.error(n),!1}},e1=e=>{try{return window.localStorage.removeItem(e),!0}catch(t){return console.error(t),!1}};var rr=(e=>(e.home="/",e.login="/login",e.setting="/setting",e.preview="/preview",e.schedule="/schedule",e.event="/event",e))(rr||{});const t1=()=>{const[,e]=ut(ef),t=nr();B.useEffect(()=>{const n=GS("user");if(!n){t(rr.login);return}e({...n})},[])},mi=Nl({}),tf=Nl({}),kv=Nl(!1),Ov="https://junction-asia-2023.github.io/just-label/svg/logo.svg",n1="https://junction-asia-2023.github.io/just-label/svg/back.svg",r1=()=>{const[{title:e,back:t}]=ut(mi),n=nr(),r=()=>{n(-1)};return e?S.jsxs("div",{className:"layout-title under-line",children:[S.jsx("div",{className:`left ${t?"has":""}`,children:t&&S.jsx("img",{src:n1,alt:"Back Logo",onClick:r})}),S.jsx("div",{className:"title",children:e==="CardMe"?S.jsx("div",{className:"logo",children:S.jsx("img",{className:"logo",src:Ov,alt:"logo"})}):e}),S.jsx("div",{className:"left"})]}):S.jsx("div",{className:"layout-title"})},i1="https://junction-asia-2023.github.io/just-label/svg/add.svg",o1=()=>{const[{text:e,add:t,disable:n}]=ut(tf),[,r]=ut(kv);return e?S.jsx("div",{className:"layout-bottom",children:S.jsxs("button",{className:"layout-bottom-btn",onClick:()=>r(!0),disabled:n,children:[S.jsx("div",{className:"left",children:t&&S.jsx("img",{src:i1,alt:"Add Logo",width:20,height:20})}),S.jsx("div",{className:"title",children:e}),S.jsx("div",{className:"left"})]})}):null},s1=()=>(t1(),S.jsxs("div",{className:"layout-container",children:[S.jsx(r1,{}),S.jsx(LS,{}),S.jsx(o1,{})]})),l1=()=>{const[,e]=ut(mi);B.useLayoutEffect(()=>{e({title:"CardMe"})},[])},a1="https://junction-asia-2023.github.io/just-label/png/yulim.png",u1=()=>{const[{email:e,department:t,name:n,position:r}]=ut(ef);return S.jsxs("section",{className:"profile-box",children:[S.jsx("div",{className:"image-box",children:S.jsx("img",{className:"image",src:a1,alt:"profile"})}),S.jsxs("div",{className:"list-box",children:[S.jsxs("div",{className:"list",children:[S.jsx("div",{className:"name",children:"Name"}),S.jsx("div",{className:"description",children:n})]}),S.jsxs("div",{className:"list",children:[S.jsx("div",{className:"name",children:"Department"}),S.jsx("div",{className:"description",children:t})]}),S.jsxs("div",{className:"list",children:[S.jsx("div",{className:"name",children:"Email"}),S.jsx("div",{className:"description",children:e})]}),S.jsxs("div",{className:"list",children:[S.jsx("div",{className:"name",children:"Position"}),S.jsx("div",{className:"description",children:r})]})]})]})};const c1="https://junction-asia-2023.github.io/just-label/svg/active.svg",jl="https://junction-asia-2023.github.io/just-label/svg/right.svg",f1=()=>{const e=nr(),t=()=>e(rr.setting);return S.jsxs("section",{className:"active-box",onClick:t,children:[S.jsx("div",{className:"icon-box",children:S.jsx("img",{className:"icon",src:c1,alt:"active icon"})}),S.jsxs("div",{className:"content",children:[S.jsx("div",{className:"title",children:"Active"}),S.jsx("div",{className:"description",children:"Expressing myself"})]}),S.jsx("div",{children:S.jsx("img",{src:jl,alt:"next"})})]})},sh=()=>S.jsx("div",{className:"gray-bar"}),d1="https://junction-asia-2023.github.io/just-label/svg/preview.svg",h1=()=>{const e=nr(),t=()=>e(rr.preview);return S.jsxs("section",{className:"preview-box",onClick:t,children:[S.jsx("div",{className:"icon-box",children:S.jsx("img",{className:"icon",src:d1,alt:"preview icon"})}),S.jsx("div",{className:"content",children:S.jsx("div",{className:"title",children:"CardMe Preview"})}),S.jsx("div",{children:S.jsx("img",{src:jl,alt:"next"})})]})},p1="https://junction-asia-2023.github.io/just-label/svg/schedule.svg",m1=()=>{const e=nr(),t=()=>e(rr.schedule);return S.jsxs("section",{className:"preview-box",onClick:t,children:[S.jsx("div",{className:"icon-box",children:S.jsx("img",{className:"icon",src:p1,alt:"schedule icon"})}),S.jsx("div",{className:"content",children:S.jsx("div",{className:"title",children:"Schedule"})}),S.jsx("div",{children:S.jsx("img",{src:jl,alt:"next"})})]})},v1="https://junction-asia-2023.github.io/just-label/svg/event.svg",y1=()=>{const e=nr(),t=()=>e(rr.event);return S.jsxs("section",{className:"preview-box",onClick:t,children:[S.jsx("div",{className:"icon-box",children:S.jsx("img",{className:"icon",src:v1,alt:"event icon"})}),S.jsx("div",{className:"content",children:S.jsx("div",{className:"title",children:"Event"})}),S.jsx("div",{children:S.jsx("img",{src:jl,alt:"next"})})]})},g1=()=>{const e=()=>{};return S.jsx("div",{className:"footer-box",children:S.jsx("div",{className:"description",onClick:e,children:"Do you need to modify information?"})})},w1=()=>(l1(),S.jsxs("div",{className:"home-container",children:[S.jsx(u1,{}),S.jsx(sh,{}),S.jsx(f1,{}),S.jsx(h1,{}),S.jsx(sh,{}),S.jsx(m1,{}),S.jsx(y1,{}),S.jsx(g1,{})]}));var Mo=e=>e.type==="checkbox",Qr=e=>e instanceof Date,dt=e=>e==null;const Tv=e=>typeof e=="object";var He=e=>!dt(e)&&!Array.isArray(e)&&Tv(e)&&!Qr(e),Dv=e=>He(e)&&e.target?Mo(e.target)?e.target.checked:e.target.value:e,S1=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Mv=(e,t)=>e.has(S1(t)),E1=e=>{const t=e.constructor&&e.constructor.prototype;return He(t)&&t.hasOwnProperty("isPrototypeOf")},nf=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function tn(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(nf&&(e instanceof Blob||e instanceof FileList))&&(n||He(e)))if(t=n?[]:{},!n&&!E1(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=tn(e[r]));else return e;return t}var Ao=e=>Array.isArray(e)?e.filter(Boolean):[],be=e=>e===void 0,Y=(e,t,n)=>{if(!t||!He(e))return n;const r=Ao(t.split(/[,[\].]+?/)).reduce((i,o)=>dt(i)?i:i[o],e);return be(r)||r===e?be(e[t])?n:e[t]:r};const il={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Yt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},mn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},x1=ke.createContext(null),rf=()=>ke.useContext(x1);var Av=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const s=o;return t._proxyFormState[s]!==Yt.all&&(t._proxyFormState[s]=!r||Yt.all),n&&(n[s]=!0),e[s]}});return i},Dt=e=>He(e)&&!Object.keys(e).length,Nv=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return Dt(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(s=>t[s]===(!r||Yt.all))},xs=e=>Array.isArray(e)?e:[e],jv=(e,t,n)=>n&&t?e===t:!e||!t||e===t||xs(e).some(r=>r&&(r.startsWith(t)||t.startsWith(r)));function of(e){const t=ke.useRef(e);t.current=e,ke.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function C1(e){const t=rf(),{control:n=t.control,disabled:r,name:i,exact:o}=e||{},[s,l]=ke.useState(n._formState),a=ke.useRef(!0),u=ke.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=ke.useRef(i);return c.current=i,of({disabled:r,next:d=>a.current&&jv(c.current,d.name,o)&&Nv(d,u.current,n._updateFormState)&&l({...n._formState,...d}),subject:n._subjects.state}),ke.useEffect(()=>(a.current=!0,u.current.isValid&&n._updateValid(!0),()=>{a.current=!1}),[n]),Av(s,n,u.current,!1)}var rn=e=>typeof e=="string",Lv=(e,t,n,r,i)=>rn(e)?(r&&t.watch.add(e),Y(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),Y(n,o))):(r&&(t.watchAll=!0),n);function _1(e){const t=rf(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:s}=e||{},l=ke.useRef(r);l.current=r,of({disabled:o,subject:n._subjects.values,next:c=>{jv(l.current,c.name,s)&&u(tn(Lv(l.current,n._names,c.values||n._formValues,!1,i)))}});const[a,u]=ke.useState(n._getWatch(r,i));return ke.useEffect(()=>n._removeUnmounted()),a}var sf=e=>/^\w*$/.test(e),bv=e=>Ao(e.replace(/["|']|\]/g,"").split(/\.|\[/));function we(e,t,n){let r=-1;const i=sf(t)?[t]:bv(t),o=i.length,s=o-1;for(;++r{const u=r._options.shouldUnregister||i,c=(d,p)=>{const g=Y(r._fields,d);g&&(g._f.mount=p)};if(c(n,!0),u){const d=tn(Y(r._options.defaultValues,n));we(r._defaultValues,n,d),be(Y(r._formValues,n))&&we(r._formValues,n,d)}return()=>{(o?u&&!r._state.action:u)?r.unregister(n):c(n,!1)}},[n,r,o,i]),{field:{name:n,value:s,onChange:ke.useCallback(u=>a.current.onChange({target:{value:Dv(u),name:n},type:il.CHANGE}),[n]),onBlur:ke.useCallback(()=>a.current.onBlur({target:{value:Y(r._formValues,n),name:n},type:il.BLUR}),[n,r]),ref:u=>{const c=Y(r._fields,n);c&&u&&(c._f.ref={focus:()=>u.focus(),select:()=>u.select(),setCustomValidity:d=>u.setCustomValidity(d),reportValidity:()=>u.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Y(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!Y(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Y(l.touchedFields,n)},error:{enumerable:!0,get:()=>Y(l.errors,n)}})}}const P1=e=>e.render(R1(e));var k1=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const $u=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=Y(e,r);if(i){const{_f:o,...s}=i;if(o&&t(o.name)){if(o.ref.focus){o.ref.focus();break}else if(o.refs&&o.refs[0].focus){o.refs[0].focus();break}}else He(s)&&$u(s,t)}}};var lh=e=>({isOnSubmit:!e||e===Yt.onSubmit,isOnBlur:e===Yt.onBlur,isOnChange:e===Yt.onChange,isOnAll:e===Yt.all,isOnTouch:e===Yt.onTouched}),ah=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),O1=(e,t,n)=>{const r=Ao(Y(e,n));return we(r,"root",t[n]),we(e,n,r),e},ti=e=>typeof e=="boolean",lf=e=>e.type==="file",Bn=e=>typeof e=="function",ol=e=>{if(!nf)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Cs=e=>rn(e),af=e=>e.type==="radio",sl=e=>e instanceof RegExp;const uh={value:!1,isValid:!1},ch={value:!0,isValid:!0};var Fv=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!be(e[0].attributes.value)?be(e[0].value)||e[0].value===""?ch:{value:e[0].value,isValid:!0}:ch:uh}return uh};const fh={isValid:!1,value:null};var Iv=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,fh):fh;function dh(e,t,n="validate"){if(Cs(e)||Array.isArray(e)&&e.every(Cs)||ti(e)&&!e)return{type:n,message:Cs(e)?e:"",ref:t}}var Mr=e=>He(e)&&!sl(e)?e:{value:e,message:""},hh=async(e,t,n,r,i)=>{const{ref:o,refs:s,required:l,maxLength:a,minLength:u,min:c,max:d,pattern:p,validate:g,name:y,valueAsNumber:x,mount:L,disabled:v}=e._f,f=Y(t,y);if(!L||v)return{};const m=s?s[0]:o,h=z=>{r&&m.reportValidity&&(m.setCustomValidity(ti(z)?"":z||""),m.reportValidity())},E={},R=af(o),M=Mo(o),w=R||M,O=(x||lf(o))&&be(o.value)&&be(f)||ol(o)&&o.value===""||f===""||Array.isArray(f)&&!f.length,k=k1.bind(null,y,n,E),$=(z,P,T,b=mn.maxLength,W=mn.minLength)=>{const j=z?P:T;E[y]={type:z?b:W,message:j,ref:o,...k(z?b:W,j)}};if(i?!Array.isArray(f)||!f.length:l&&(!w&&(O||dt(f))||ti(f)&&!f||M&&!Fv(s).isValid||R&&!Iv(s).isValid)){const{value:z,message:P}=Cs(l)?{value:!!l,message:l}:Mr(l);if(z&&(E[y]={type:mn.required,message:P,ref:m,...k(mn.required,P)},!n))return h(P),E}if(!O&&(!dt(c)||!dt(d))){let z,P;const T=Mr(d),b=Mr(c);if(!dt(f)&&!isNaN(f)){const W=o.valueAsNumber||f&&+f;dt(T.value)||(z=W>T.value),dt(b.value)||(P=Wnew Date(new Date().toDateString()+" "+K),_=o.type=="time",U=o.type=="week";rn(T.value)&&f&&(z=_?j(f)>j(T.value):U?f>T.value:W>new Date(T.value)),rn(b.value)&&f&&(P=_?j(f)+z.value,b=!dt(P.value)&&f.length<+P.value;if((T||b)&&($(T,z.message,P.message),!n))return h(E[y].message),E}if(p&&!O&&rn(f)){const{value:z,message:P}=Mr(p);if(sl(z)&&!f.match(z)&&(E[y]={type:mn.pattern,message:P,ref:o,...k(mn.pattern,P)},!n))return h(P),E}if(g){if(Bn(g)){const z=await g(f,t),P=dh(z,m);if(P&&(E[y]={...P,...k(mn.validate,P.message)},!n))return h(P.message),E}else if(He(g)){let z={};for(const P in g){if(!Dt(z)&&!n)break;const T=dh(await g[P](f,t),m,P);T&&(z={...T,...k(P,T.message)},h(T.message),n&&(E[y]=z))}if(!Dt(z)&&(E[y]={ref:m,...z},!n))return E}}return h(!0),E};function T1(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}}var ll=e=>dt(e)||!Tv(e);function vr(e,t){if(ll(e)||ll(t))return e===t;if(Qr(e)&&Qr(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const s=t[i];if(Qr(o)&&Qr(s)||He(o)&&He(s)||Array.isArray(o)&&Array.isArray(s)?!vr(o,s):o!==s)return!1}}return!0}var Uv=e=>e.type==="select-multiple",M1=e=>af(e)||Mo(e),Da=e=>ol(e)&&e.isConnected,zv=e=>{for(const t in e)if(Bn(e[t]))return!0;return!1};function al(e,t={}){const n=Array.isArray(e);if(He(e)||n)for(const r in e)Array.isArray(e[r])||He(e[r])&&!zv(e[r])?(t[r]=Array.isArray(e[r])?[]:{},al(e[r],t[r])):dt(e[r])||(t[r]=!0);return t}function Bv(e,t,n){const r=Array.isArray(e);if(He(e)||r)for(const i in e)Array.isArray(e[i])||He(e[i])&&!zv(e[i])?be(t)||ll(n[i])?n[i]=Array.isArray(e[i])?al(e[i],[]):{...al(e[i])}:Bv(e[i],dt(t)?{}:t[i],n[i]):n[i]=!vr(e[i],t[i]);return n}var Ma=(e,t)=>Bv(e,t,al(t)),$v=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>be(e)?e:t?e===""?NaN:e&&+e:n&&rn(e)?new Date(e):r?r(e):e;function Aa(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return lf(t)?t.files:af(t)?Iv(e.refs).value:Uv(t)?[...t.selectedOptions].map(({value:n})=>n):Mo(t)?Fv(e.refs).value:$v(be(t.value)?e.ref.value:t.value,e)}var A1=(e,t,n,r)=>{const i={};for(const o of e){const s=Y(t,o);s&&we(i,o,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Li=e=>be(e)?e:sl(e)?e.source:He(e)?sl(e.value)?e.value.source:e.value:e,N1=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ph(e,t,n){const r=Y(e,n);if(r||sf(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),s=Y(t,o),l=Y(e,o);if(s&&!Array.isArray(s)&&n!==o)return{name:n};if(l&&l.type)return{name:o,error:l};i.pop()}return{name:n}}var j1=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,L1=(e,t)=>!Ao(Y(e,t)).length&&Ge(e,t);const b1={mode:Yt.onSubmit,reValidateMode:Yt.onChange,shouldFocusError:!0};function F1(e={},t){let n={...b1,...e},r={submitCount:0,isDirty:!1,isLoading:Bn(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},o=He(n.defaultValues)||He(n.values)?tn(n.defaultValues||n.values)||{}:{},s=n.shouldUnregister?{}:tn(o),l={action:!1,mount:!1,watch:!1},a={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,c=0;const d={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:Ta(),array:Ta(),state:Ta()},g=e.resetOptions&&e.resetOptions.keepDirtyValues,y=lh(n.mode),x=lh(n.reValidateMode),L=n.criteriaMode===Yt.all,v=C=>N=>{clearTimeout(c),c=setTimeout(C,N)},f=async C=>{if(d.isValid||C){const N=n.resolver?Dt((await O()).errors):await $(i,!0);N!==r.isValid&&p.state.next({isValid:N})}},m=C=>d.isValidating&&p.state.next({isValidating:C}),h=(C,N=[],I,G,Q=!0,q=!0)=>{if(G&&I){if(l.action=!0,q&&Array.isArray(Y(i,C))){const ee=I(Y(i,C),G.argA,G.argB);Q&&we(i,C,ee)}if(q&&Array.isArray(Y(r.errors,C))){const ee=I(Y(r.errors,C),G.argA,G.argB);Q&&we(r.errors,C,ee),L1(r.errors,C)}if(d.touchedFields&&q&&Array.isArray(Y(r.touchedFields,C))){const ee=I(Y(r.touchedFields,C),G.argA,G.argB);Q&&we(r.touchedFields,C,ee)}d.dirtyFields&&(r.dirtyFields=Ma(o,s)),p.state.next({name:C,isDirty:P(C,N),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else we(s,C,N)},E=(C,N)=>{we(r.errors,C,N),p.state.next({errors:r.errors})},R=(C,N,I,G)=>{const Q=Y(i,C);if(Q){const q=Y(s,C,be(I)?Y(o,C):I);be(q)||G&&G.defaultChecked||N?we(s,C,N?q:Aa(Q._f)):W(C,q),l.mount&&f()}},M=(C,N,I,G,Q)=>{let q=!1,ee=!1;const xe={name:C};if(!I||G){d.isDirty&&(ee=r.isDirty,r.isDirty=xe.isDirty=P(),q=ee!==xe.isDirty);const Oe=vr(Y(o,C),N);ee=Y(r.dirtyFields,C),Oe?Ge(r.dirtyFields,C):we(r.dirtyFields,C,!0),xe.dirtyFields=r.dirtyFields,q=q||d.dirtyFields&&ee!==!Oe}if(I){const Oe=Y(r.touchedFields,C);Oe||(we(r.touchedFields,C,I),xe.touchedFields=r.touchedFields,q=q||d.touchedFields&&Oe!==I)}return q&&Q&&p.state.next(xe),q?xe:{}},w=(C,N,I,G)=>{const Q=Y(r.errors,C),q=d.isValid&&ti(N)&&r.isValid!==N;if(e.delayError&&I?(u=v(()=>E(C,I)),u(e.delayError)):(clearTimeout(c),u=null,I?we(r.errors,C,I):Ge(r.errors,C)),(I?!vr(Q,I):Q)||!Dt(G)||q){const ee={...G,...q&&ti(N)?{isValid:N}:{},errors:r.errors,name:C};r={...r,...ee},p.state.next(ee)}m(!1)},O=async C=>n.resolver(s,n.context,A1(C||a.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),k=async C=>{const{errors:N}=await O();if(C)for(const I of C){const G=Y(N,I);G?we(r.errors,I,G):Ge(r.errors,I)}else r.errors=N;return N},$=async(C,N,I={valid:!0})=>{for(const G in C){const Q=C[G];if(Q){const{_f:q,...ee}=Q;if(q){const xe=a.array.has(q.name),Oe=await hh(Q,s,L,n.shouldUseNativeValidation&&!N,xe);if(Oe[q.name]&&(I.valid=!1,N))break;!N&&(Y(Oe,q.name)?xe?O1(r.errors,Oe,q.name):we(r.errors,q.name,Oe[q.name]):Ge(r.errors,q.name))}ee&&await $(ee,N,I)}}return I.valid},z=()=>{for(const C of a.unMount){const N=Y(i,C);N&&(N._f.refs?N._f.refs.every(I=>!Da(I)):!Da(N._f.ref))&&Ae(C)}a.unMount=new Set},P=(C,N)=>(C&&N&&we(s,C,N),!vr(ne(),o)),T=(C,N,I)=>Lv(C,a,{...l.mount?s:be(N)?o:rn(C)?{[C]:N}:N},I,N),b=C=>Ao(Y(l.mount?s:o,C,e.shouldUnregister?Y(o,C,[]):[])),W=(C,N,I={})=>{const G=Y(i,C);let Q=N;if(G){const q=G._f;q&&(!q.disabled&&we(s,C,$v(N,q)),Q=ol(q.ref)&&dt(N)?"":N,Uv(q.ref)?[...q.ref.options].forEach(ee=>ee.selected=Q.includes(ee.value)):q.refs?Mo(q.ref)?q.refs.length>1?q.refs.forEach(ee=>(!ee.defaultChecked||!ee.disabled)&&(ee.checked=Array.isArray(Q)?!!Q.find(xe=>xe===ee.value):Q===ee.value)):q.refs[0]&&(q.refs[0].checked=!!Q):q.refs.forEach(ee=>ee.checked=ee.value===Q):lf(q.ref)?q.ref.value="":(q.ref.value=Q,q.ref.type||p.values.next({name:C,values:{...s}})))}(I.shouldDirty||I.shouldTouch)&&M(C,Q,I.shouldTouch,I.shouldDirty,!0),I.shouldValidate&&K(C)},j=(C,N,I)=>{for(const G in N){const Q=N[G],q=`${C}.${G}`,ee=Y(i,q);(a.array.has(C)||!ll(Q)||ee&&!ee._f)&&!Qr(Q)?j(q,Q,I):W(q,Q,I)}},_=(C,N,I={})=>{const G=Y(i,C),Q=a.array.has(C),q=tn(N);we(s,C,q),Q?(p.array.next({name:C,values:{...s}}),(d.isDirty||d.dirtyFields)&&I.shouldDirty&&p.state.next({name:C,dirtyFields:Ma(o,s),isDirty:P(C,q)})):G&&!G._f&&!dt(q)?j(C,q,I):W(C,q,I),ah(C,a)&&p.state.next({...r}),p.values.next({name:C,values:{...s}}),!l.mount&&t()},U=async C=>{const N=C.target;let I=N.name,G=!0;const Q=Y(i,I),q=()=>N.type?Aa(Q._f):Dv(C);if(Q){let ee,xe;const Oe=q(),dn=C.type===il.BLUR||C.type===il.FOCUS_OUT,Or=!N1(Q._f)&&!n.resolver&&!Y(r.errors,I)&&!Q._f.deps||j1(dn,Y(r.touchedFields,I),r.isSubmitted,x,y),Tr=ah(I,a,dn);we(s,I,Oe),dn?(Q._f.onBlur&&Q._f.onBlur(C),u&&u(0)):Q._f.onChange&&Q._f.onChange(C);const ir=M(I,Oe,dn,!1),Hl=!Dt(ir)||Tr;if(!dn&&p.values.next({name:I,type:C.type,values:{...s}}),Or)return d.isValid&&f(),Hl&&p.state.next({name:I,...Tr?{}:ir});if(!dn&&Tr&&p.state.next({...r}),m(!0),n.resolver){const{errors:gi}=await O([I]),ql=ph(r.errors,i,I),wi=ph(gi,i,ql.name||I);ee=wi.error,I=wi.name,xe=Dt(gi)}else ee=(await hh(Q,s,L,n.shouldUseNativeValidation))[I],G=isNaN(Oe)||Oe===Y(s,I,Oe),G&&(ee?xe=!1:d.isValid&&(xe=await $(i,!0)));G&&(Q._f.deps&&K(Q._f.deps),w(I,xe,ee,ir))}},K=async(C,N={})=>{let I,G;const Q=xs(C);if(m(!0),n.resolver){const q=await k(be(C)?C:Q);I=Dt(q),G=C?!Q.some(ee=>Y(q,ee)):I}else C?(G=(await Promise.all(Q.map(async q=>{const ee=Y(i,q);return await $(ee&&ee._f?{[q]:ee}:ee)}))).every(Boolean),!(!G&&!r.isValid)&&f()):G=I=await $(i);return p.state.next({...!rn(C)||d.isValid&&I!==r.isValid?{}:{name:C},...n.resolver||!C?{isValid:I}:{},errors:r.errors,isValidating:!1}),N.shouldFocus&&!G&&$u(i,q=>q&&Y(r.errors,q),C?Q:a.mount),G},ne=C=>{const N={...o,...l.mount?s:{}};return be(C)?N:rn(C)?Y(N,C):C.map(I=>Y(N,I))},se=(C,N)=>({invalid:!!Y((N||r).errors,C),isDirty:!!Y((N||r).dirtyFields,C),isTouched:!!Y((N||r).touchedFields,C),error:Y((N||r).errors,C)}),Ee=C=>{C&&xs(C).forEach(N=>Ge(r.errors,N)),p.state.next({errors:C?r.errors:{}})},le=(C,N,I)=>{const G=(Y(i,C,{_f:{}})._f||{}).ref;we(r.errors,C,{...N,ref:G}),p.state.next({name:C,errors:r.errors,isValid:!1}),I&&I.shouldFocus&&G&&G.focus&&G.focus()},Qe=(C,N)=>Bn(C)?p.values.subscribe({next:I=>C(T(void 0,N),I)}):T(C,N,!0),Ae=(C,N={})=>{for(const I of C?xs(C):a.mount)a.mount.delete(I),a.array.delete(I),N.keepValue||(Ge(i,I),Ge(s,I)),!N.keepError&&Ge(r.errors,I),!N.keepDirty&&Ge(r.dirtyFields,I),!N.keepTouched&&Ge(r.touchedFields,I),!n.shouldUnregister&&!N.keepDefaultValue&&Ge(o,I);p.values.next({values:{...s}}),p.state.next({...r,...N.keepDirty?{isDirty:P()}:{}}),!N.keepIsValid&&f()},rt=(C,N={})=>{let I=Y(i,C);const G=ti(N.disabled);return we(i,C,{...I||{},_f:{...I&&I._f?I._f:{ref:{name:C}},name:C,mount:!0,...N}}),a.mount.add(C),I?G&&we(s,C,N.disabled?void 0:Y(s,C,Aa(I._f))):R(C,!0,N.value),{...G?{disabled:N.disabled}:{},...n.progressive?{required:!!N.required,min:Li(N.min),max:Li(N.max),minLength:Li(N.minLength),maxLength:Li(N.maxLength),pattern:Li(N.pattern)}:{},name:C,onChange:U,onBlur:U,ref:Q=>{if(Q){rt(C,N),I=Y(i,C);const q=be(Q.value)&&Q.querySelectorAll&&Q.querySelectorAll("input,select,textarea")[0]||Q,ee=M1(q),xe=I._f.refs||[];if(ee?xe.find(Oe=>Oe===q):q===I._f.ref)return;we(i,C,{_f:{...I._f,...ee?{refs:[...xe.filter(Da),q,...Array.isArray(Y(o,C))?[{}]:[]],ref:{type:q.type,name:C}}:{ref:q}}}),R(C,!1,void 0,q)}else I=Y(i,C,{}),I._f&&(I._f.mount=!1),(n.shouldUnregister||N.shouldUnregister)&&!(Mv(a.array,C)&&l.action)&&a.unMount.add(C)}}},ze=()=>n.shouldFocusError&&$u(i,C=>C&&Y(r.errors,C),a.mount),Be=(C,N)=>async I=>{I&&(I.preventDefault&&I.preventDefault(),I.persist&&I.persist());let G=tn(s);if(p.state.next({isSubmitting:!0}),n.resolver){const{errors:Q,values:q}=await O();r.errors=Q,G=q}else await $(i);Ge(r.errors,"root"),Dt(r.errors)?(p.state.next({errors:{}}),await C(G,I)):(N&&await N({...r.errors},I),ze(),setTimeout(ze)),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Dt(r.errors),submitCount:r.submitCount+1,errors:r.errors})},Ot=(C,N={})=>{Y(i,C)&&(be(N.defaultValue)?_(C,Y(o,C)):(_(C,N.defaultValue),we(o,C,N.defaultValue)),N.keepTouched||Ge(r.touchedFields,C),N.keepDirty||(Ge(r.dirtyFields,C),r.isDirty=N.defaultValue?P(C,Y(o,C)):P()),N.keepError||(Ge(r.errors,C),d.isValid&&f()),p.state.next({...r}))},It=(C,N={})=>{const I=C||o,G=tn(I),Q=C&&!Dt(C)?G:o;if(N.keepDefaultValues||(o=I),!N.keepValues){if(N.keepDirtyValues||g)for(const q of a.mount)Y(r.dirtyFields,q)?we(Q,q,Y(s,q)):_(q,Y(Q,q));else{if(nf&&be(C))for(const q of a.mount){const ee=Y(i,q);if(ee&&ee._f){const xe=Array.isArray(ee._f.refs)?ee._f.refs[0]:ee._f.ref;if(ol(xe)){const Oe=xe.closest("form");if(Oe){Oe.reset();break}}}}i={}}s=e.shouldUnregister?N.keepDefaultValues?tn(o):{}:tn(Q),p.array.next({values:{...Q}}),p.values.next({values:{...Q}})}a={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!l.mount&&t(),l.mount=!d.isValid||!!N.keepIsValid,l.watch=!!e.shouldUnregister,p.state.next({submitCount:N.keepSubmitCount?r.submitCount:0,isDirty:N.keepDirty?r.isDirty:!!(N.keepDefaultValues&&!vr(C,o)),isSubmitted:N.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:N.keepDirtyValues?r.dirtyFields:N.keepDefaultValues&&C?Ma(o,C):{},touchedFields:N.keepTouched?r.touchedFields:{},errors:N.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},fn=(C,N)=>It(Bn(C)?C(s):C,N);return{control:{register:rt,unregister:Ae,getFieldState:se,handleSubmit:Be,setError:le,_executeSchema:O,_getWatch:T,_getDirty:P,_updateValid:f,_removeUnmounted:z,_updateFieldArray:h,_getFieldArray:b,_reset:It,_resetDefaultValues:()=>Bn(n.defaultValues)&&n.defaultValues().then(C=>{fn(C,n.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:C=>{r={...r,...C}},_subjects:p,_proxyFormState:d,get _fields(){return i},get _formValues(){return s},get _state(){return l},set _state(C){l=C},get _defaultValues(){return o},get _names(){return a},set _names(C){a=C},get _formState(){return r},set _formState(C){r=C},get _options(){return n},set _options(C){n={...n,...C}}},trigger:K,register:rt,handleSubmit:Be,watch:Qe,setValue:_,getValues:ne,reset:fn,resetField:Ot,clearErrors:Ee,unregister:Ae,setError:le,setFocus:(C,N={})=>{const I=Y(i,C),G=I&&I._f;if(G){const Q=G.refs?G.refs[0]:G.ref;Q.focus&&(Q.focus(),N.shouldSelect&&Q.select())}},getFieldState:se}}function Vv(e={}){const t=ke.useRef(),n=ke.useRef(),[r,i]=ke.useState({isDirty:!1,isValidating:!1,isLoading:Bn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Bn(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...F1(e,()=>i(s=>({...s}))),formState:r});const o=t.current.control;return o._options=e,of({subject:o._subjects.state,next:s=>{Nv(s,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),ke.useEffect(()=>{e.values&&!vr(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values):o._resetDefaultValues()},[e.values,o]),ke.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=Av(r,o),t.current}const Na={name:"Yulim",email:"1ilsang@naver.com",companyNo:"JS1234",password:"just",department:"Social Dev1",position:"Software Engineer"},I1=()=>{const[,e]=ut(ef),{register:t,handleSubmit:n,formState:{errors:r}}=Vv(),i=s=>{if(Na.email!==s.email||Na.password!==s.password){alert("'No user information'");return}const l={...Na};delete l.password,e({...l}),XS("user",l),o(rr.home)},o=nr();return{errors:r,register:t,handleSubmit:n,onSubmit:i}};const U1=()=>{const{errors:e,register:t,handleSubmit:n,onSubmit:r}=I1();return S.jsxs("div",{className:"login-container",children:[S.jsx("img",{src:Ov,alt:"cardme logo"}),S.jsxs("form",{onSubmit:n(r),children:[S.jsxs("div",{className:"input-group",children:[S.jsx("label",{children:"Email"}),S.jsx("input",{type:"text",placeholder:"Please enter your email",...t("email",{required:!0}),"area-invalid":e.email?"true":"false"})]}),S.jsxs("div",{className:"input-group",children:[S.jsx("label",{children:"Password"}),S.jsx("input",{type:"password",placeholder:"Please enter your password",...t("password",{required:!0}),"aria-invalid":e.password?"true":"false"})]}),(e.email||e.password)&&S.jsx("div",{children:"Please enter your email or password"}),S.jsx("a",{href:"#",children:"Forgot your password?"}),e.dataError&&S.jsx("div",{children:e.dataError.message}),S.jsx("input",{type:"submit",value:"Login"})]}),S.jsx("a",{href:"#",children:"Not signed up yet?"})]})};function Wv(e,t){return function(){return e.apply(t,arguments)}}const{toString:z1}=Object.prototype,{getPrototypeOf:uf}=Object,Ll=(e=>t=>{const n=z1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),cn=e=>(e=e.toLowerCase(),t=>Ll(t)===e),bl=e=>t=>typeof t===e,{isArray:vi}=Array,Eo=bl("undefined");function B1(e){return e!==null&&!Eo(e)&&e.constructor!==null&&!Eo(e.constructor)&&Lt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Hv=cn("ArrayBuffer");function $1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Hv(e.buffer),t}const V1=bl("string"),Lt=bl("function"),qv=bl("number"),Fl=e=>e!==null&&typeof e=="object",W1=e=>e===!0||e===!1,_s=e=>{if(Ll(e)!=="object")return!1;const t=uf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},H1=cn("Date"),q1=cn("File"),Q1=cn("Blob"),K1=cn("FileList"),Y1=e=>Fl(e)&&Lt(e.pipe),J1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Lt(e.append)&&((t=Ll(e))==="formdata"||t==="object"&&Lt(e.toString)&&e.toString()==="[object FormData]"))},Z1=cn("URLSearchParams"),G1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function No(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),vi(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Kv=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Yv=e=>!Eo(e)&&e!==Kv;function Vu(){const{caseless:e}=Yv(this)&&this||{},t={},n=(r,i)=>{const o=e&&Qv(t,i)||i;_s(t[o])&&_s(r)?t[o]=Vu(t[o],r):_s(r)?t[o]=Vu({},r):vi(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(No(t,(i,o)=>{n&&Lt(i)?e[o]=Wv(i,n):e[o]=i},{allOwnKeys:r}),e),eE=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),tE=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},nE=(e,t,n,r)=>{let i,o,s;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&uf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},rE=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},iE=e=>{if(!e)return null;if(vi(e))return e;let t=e.length;if(!qv(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},oE=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&uf(Uint8Array)),sE=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},lE=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},aE=cn("HTMLFormElement"),uE=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),mh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cE=cn("RegExp"),Jv=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};No(n,(i,o)=>{t(i,o,e)!==!1&&(r[o]=i)}),Object.defineProperties(e,r)},fE=e=>{Jv(e,(t,n)=>{if(Lt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Lt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},dE=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return vi(e)?r(e):r(String(e).split(t)),n},hE=()=>{},pE=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ja="abcdefghijklmnopqrstuvwxyz",vh="0123456789",Zv={DIGIT:vh,ALPHA:ja,ALPHA_DIGIT:ja+ja.toUpperCase()+vh},mE=(e=16,t=Zv.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function vE(e){return!!(e&&Lt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const yE=e=>{const t=new Array(10),n=(r,i)=>{if(Fl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=vi(r)?[]:{};return No(r,(s,l)=>{const a=n(s,i+1);!Eo(a)&&(o[l]=a)}),t[i]=void 0,o}}return r};return n(e,0)},gE=cn("AsyncFunction"),wE=e=>e&&(Fl(e)||Lt(e))&&Lt(e.then)&&Lt(e.catch),F={isArray:vi,isArrayBuffer:Hv,isBuffer:B1,isFormData:J1,isArrayBufferView:$1,isString:V1,isNumber:qv,isBoolean:W1,isObject:Fl,isPlainObject:_s,isUndefined:Eo,isDate:H1,isFile:q1,isBlob:Q1,isRegExp:cE,isFunction:Lt,isStream:Y1,isURLSearchParams:Z1,isTypedArray:oE,isFileList:K1,forEach:No,merge:Vu,extend:X1,trim:G1,stripBOM:eE,inherits:tE,toFlatObject:nE,kindOf:Ll,kindOfTest:cn,endsWith:rE,toArray:iE,forEachEntry:sE,matchAll:lE,isHTMLForm:aE,hasOwnProperty:mh,hasOwnProp:mh,reduceDescriptors:Jv,freezeMethods:fE,toObjectSet:dE,toCamelCase:uE,noop:hE,toFiniteNumber:pE,findKey:Qv,global:Kv,isContextDefined:Yv,ALPHABET:Zv,generateString:mE,isSpecCompliantForm:vE,toJSONObject:yE,isAsyncFn:gE,isThenable:wE};function de(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}F.inherits(de,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:F.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Gv=de.prototype,Xv={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Xv[e]={value:e}});Object.defineProperties(de,Xv);Object.defineProperty(Gv,"isAxiosError",{value:!0});de.from=(e,t,n,r,i,o)=>{const s=Object.create(Gv);return F.toFlatObject(e,s,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),de.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const SE=null;function Wu(e){return F.isPlainObject(e)||F.isArray(e)}function ey(e){return F.endsWith(e,"[]")?e.slice(0,-2):e}function yh(e,t,n){return e?e.concat(t).map(function(i,o){return i=ey(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function EE(e){return F.isArray(e)&&!e.some(Wu)}const xE=F.toFlatObject(F,{},null,function(t){return/^is[A-Z]/.test(t)});function Il(e,t,n){if(!F.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=F.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,L){return!F.isUndefined(L[x])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,s=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&F.isSpecCompliantForm(t);if(!F.isFunction(i))throw new TypeError("visitor must be a function");function u(y){if(y===null)return"";if(F.isDate(y))return y.toISOString();if(!a&&F.isBlob(y))throw new de("Blob is not supported. Use a Buffer instead.");return F.isArrayBuffer(y)||F.isTypedArray(y)?a&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function c(y,x,L){let v=y;if(y&&!L&&typeof y=="object"){if(F.endsWith(x,"{}"))x=r?x:x.slice(0,-2),y=JSON.stringify(y);else if(F.isArray(y)&&EE(y)||(F.isFileList(y)||F.endsWith(x,"[]"))&&(v=F.toArray(y)))return x=ey(x),v.forEach(function(m,h){!(F.isUndefined(m)||m===null)&&t.append(s===!0?yh([x],h,o):s===null?x:x+"[]",u(m))}),!1}return Wu(y)?!0:(t.append(yh(L,x,o),u(y)),!1)}const d=[],p=Object.assign(xE,{defaultVisitor:c,convertValue:u,isVisitable:Wu});function g(y,x){if(!F.isUndefined(y)){if(d.indexOf(y)!==-1)throw Error("Circular reference detected in "+x.join("."));d.push(y),F.forEach(y,function(v,f){(!(F.isUndefined(v)||v===null)&&i.call(t,v,F.isString(f)?f.trim():f,x,p))===!0&&g(v,x?x.concat(f):[f])}),d.pop()}}if(!F.isObject(e))throw new TypeError("data must be an object");return g(e),t}function gh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function cf(e,t){this._pairs=[],e&&Il(e,this,t)}const ty=cf.prototype;ty.append=function(t,n){this._pairs.push([t,n])};ty.toString=function(t){const n=t?function(r){return t.call(this,r,gh)}:gh;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function CE(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ny(e,t,n){if(!t)return e;const r=n&&n.encode||CE,i=n&&n.serialize;let o;if(i?o=i(t,n):o=F.isURLSearchParams(t)?t.toString():new cf(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class _E{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){F.forEach(this.handlers,function(r){r!==null&&t(r)})}}const wh=_E,ry={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},RE=typeof URLSearchParams<"u"?URLSearchParams:cf,PE=typeof FormData<"u"?FormData:null,kE=typeof Blob<"u"?Blob:null,OE=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),TE=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),on={isBrowser:!0,classes:{URLSearchParams:RE,FormData:PE,Blob:kE},isStandardBrowserEnv:OE,isStandardBrowserWebWorkerEnv:TE,protocols:["http","https","file","blob","url","data"]};function DE(e,t){return Il(e,new on.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return on.isNode&&F.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function ME(e){return F.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function AE(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return s=!s&&F.isArray(i)?i.length:s,a?(F.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!l):((!i[s]||!F.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&F.isArray(i[s])&&(i[s]=AE(i[s])),!l)}if(F.isFormData(e)&&F.isFunction(e.entries)){const n={};return F.forEachEntry(e,(r,i)=>{t(ME(r),i,n,0)}),n}return null}const NE={"Content-Type":void 0};function jE(e,t,n){if(F.isString(e))try{return(t||JSON.parse)(e),F.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ul={transitional:ry,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=F.isObject(t);if(o&&F.isHTMLForm(t)&&(t=new FormData(t)),F.isFormData(t))return i&&i?JSON.stringify(iy(t)):t;if(F.isArrayBuffer(t)||F.isBuffer(t)||F.isStream(t)||F.isFile(t)||F.isBlob(t))return t;if(F.isArrayBufferView(t))return t.buffer;if(F.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return DE(t,this.formSerializer).toString();if((l=F.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Il(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),jE(t)):t}],transformResponse:[function(t){const n=this.transitional||Ul.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&F.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?de.from(l,de.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:on.classes.FormData,Blob:on.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};F.forEach(["delete","get","head"],function(t){Ul.headers[t]={}});F.forEach(["post","put","patch"],function(t){Ul.headers[t]=F.merge(NE)});const ff=Ul,LE=F.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),bE=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&LE[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Sh=Symbol("internals");function bi(e){return e&&String(e).trim().toLowerCase()}function Rs(e){return e===!1||e==null?e:F.isArray(e)?e.map(Rs):String(e)}function FE(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const IE=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function La(e,t,n,r,i){if(F.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!F.isString(t)){if(F.isString(r))return t.indexOf(r)!==-1;if(F.isRegExp(r))return r.test(t)}}function UE(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function zE(e,t){const n=F.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}class zl{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(l,a,u){const c=bi(a);if(!c)throw new Error("header name must be a non-empty string");const d=F.findKey(i,c);(!d||i[d]===void 0||u===!0||u===void 0&&i[d]!==!1)&&(i[d||a]=Rs(l))}const s=(l,a)=>F.forEach(l,(u,c)=>o(u,c,a));return F.isPlainObject(t)||t instanceof this.constructor?s(t,n):F.isString(t)&&(t=t.trim())&&!IE(t)?s(bE(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=bi(t),t){const r=F.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return FE(i);if(F.isFunction(n))return n.call(this,i,r);if(F.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=bi(t),t){const r=F.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||La(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=bi(s),s){const l=F.findKey(r,s);l&&(!n||La(r,r[l],l,n))&&(delete r[l],i=!0)}}return F.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||La(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return F.forEach(this,(i,o)=>{const s=F.findKey(r,o);if(s){n[s]=Rs(i),delete n[o];return}const l=t?UE(o):String(o).trim();l!==o&&delete n[o],n[l]=Rs(i),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return F.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&F.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Sh]=this[Sh]={accessors:{}}).accessors,i=this.prototype;function o(s){const l=bi(s);r[l]||(zE(i,s),r[l]=!0)}return F.isArray(t)?t.forEach(o):o(t),this}}zl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);F.freezeMethods(zl.prototype);F.freezeMethods(zl);const Cn=zl;function ba(e,t){const n=this||ff,r=t||n,i=Cn.from(r.headers);let o=r.data;return F.forEach(e,function(l){o=l.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function oy(e){return!!(e&&e.__CANCEL__)}function jo(e,t,n){de.call(this,e??"canceled",de.ERR_CANCELED,t,n),this.name="CanceledError"}F.inherits(jo,de,{__CANCEL__:!0});function BE(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new de("Request failed with status code "+n.status,[de.ERR_BAD_REQUEST,de.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const $E=on.isStandardBrowserEnv?function(){return{write:function(n,r,i,o,s,l){const a=[];a.push(n+"="+encodeURIComponent(r)),F.isNumber(i)&&a.push("expires="+new Date(i).toGMTString()),F.isString(o)&&a.push("path="+o),F.isString(s)&&a.push("domain="+s),l===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function VE(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function WE(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function sy(e,t){return e&&!VE(t)?WE(e,t):t}const HE=on.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let s=o;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const l=F.isString(s)?i(s):s;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function qE(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function QE(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),c=r[o];s||(s=u),n[i]=a,r[i]=u;let d=o,p=0;for(;d!==i;)p+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-s{const o=i.loaded,s=i.lengthComputable?i.total:void 0,l=o-n,a=r(l),u=o<=s;n=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:a||void 0,estimated:a&&s&&u?(s-o)/a:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const KE=typeof XMLHttpRequest<"u",YE=KE&&function(e){return new Promise(function(n,r){let i=e.data;const o=Cn.from(e.headers).normalize(),s=e.responseType;let l;function a(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}F.isFormData(i)&&(on.isStandardBrowserEnv||on.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(g+":"+y))}const c=sy(e.baseURL,e.url);u.open(e.method.toUpperCase(),ny(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function d(){if(!u)return;const g=Cn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:g,config:e,request:u};BE(function(v){n(v),a()},function(v){r(v),a()},x),u=null}if("onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(d)},u.onabort=function(){u&&(r(new de("Request aborted",de.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new de("Network Error",de.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const x=e.transitional||ry;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),r(new de(y,x.clarifyTimeoutError?de.ETIMEDOUT:de.ECONNABORTED,e,u)),u=null},on.isStandardBrowserEnv){const g=(e.withCredentials||HE(c))&&e.xsrfCookieName&&$E.read(e.xsrfCookieName);g&&o.set(e.xsrfHeaderName,g)}i===void 0&&o.setContentType(null),"setRequestHeader"in u&&F.forEach(o.toJSON(),function(y,x){u.setRequestHeader(x,y)}),F.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&s!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Eh(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Eh(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=g=>{u&&(r(!g||g.type?new jo(null,e,u):g),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const p=qE(c);if(p&&on.protocols.indexOf(p)===-1){r(new de("Unsupported protocol "+p+":",de.ERR_BAD_REQUEST,e));return}u.send(i||null)})},Ps={http:SE,xhr:YE};F.forEach(Ps,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const JE={getAdapter:e=>{e=F.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let i=0;ie instanceof Cn?e.toJSON():e;function fi(e,t){t=t||{};const n={};function r(u,c,d){return F.isPlainObject(u)&&F.isPlainObject(c)?F.merge.call({caseless:d},u,c):F.isPlainObject(c)?F.merge({},c):F.isArray(c)?c.slice():c}function i(u,c,d){if(F.isUndefined(c)){if(!F.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function o(u,c){if(!F.isUndefined(c))return r(void 0,c)}function s(u,c){if(F.isUndefined(c)){if(!F.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function l(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const a={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(u,c)=>i(Ch(u),Ch(c),!0)};return F.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=a[c]||i,p=d(e[c],t[c],c);F.isUndefined(p)&&d!==l||(n[c]=p)}),n}const ly="1.4.0",df={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{df[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const _h={};df.transitional=function(t,n,r){function i(o,s){return"[Axios v"+ly+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,l)=>{if(t===!1)throw new de(i(s," has been removed"+(n?" in "+n:"")),de.ERR_DEPRECATED);return n&&!_h[s]&&(_h[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,l):!0}};function ZE(e,t,n){if(typeof e!="object")throw new de("options must be an object",de.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const l=e[o],a=l===void 0||s(l,o,e);if(a!==!0)throw new de("option "+o+" must be "+a,de.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new de("Unknown option "+o,de.ERR_BAD_OPTION)}}const Hu={assertOptions:ZE,validators:df},An=Hu.validators;class ul{constructor(t){this.defaults=t,this.interceptors={request:new wh,response:new wh}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=fi(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Hu.assertOptions(r,{silentJSONParsing:An.transitional(An.boolean),forcedJSONParsing:An.transitional(An.boolean),clarifyTimeoutError:An.transitional(An.boolean)},!1),i!=null&&(F.isFunction(i)?n.paramsSerializer={serialize:i}:Hu.assertOptions(i,{encode:An.function,serialize:An.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s;s=o&&F.merge(o.common,o[n.method]),s&&F.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),n.headers=Cn.concat(s,o);const l=[];let a=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(a=a&&x.synchronous,l.unshift(x.fulfilled,x.rejected))});const u=[];this.interceptors.response.forEach(function(x){u.push(x.fulfilled,x.rejected)});let c,d=0,p;if(!a){const y=[xh.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,u),p=y.length,c=Promise.resolve(n);d{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(l=>{r.subscribe(l),o=l}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,l){r.reason||(r.reason=new jo(o,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new hf(function(i){t=i}),cancel:t}}}const GE=hf;function XE(e){return function(n){return e.apply(null,n)}}function ex(e){return F.isObject(e)&&e.isAxiosError===!0}const qu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(qu).forEach(([e,t])=>{qu[t]=e});const tx=qu;function ay(e){const t=new ks(e),n=Wv(ks.prototype.request,t);return F.extend(n,ks.prototype,t,{allOwnKeys:!0}),F.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return ay(fi(e,i))},n}const qe=ay(ff);qe.Axios=ks;qe.CanceledError=jo;qe.CancelToken=GE;qe.isCancel=oy;qe.VERSION=ly;qe.toFormData=Il;qe.AxiosError=de;qe.Cancel=qe.CanceledError;qe.all=function(t){return Promise.all(t)};qe.spread=XE;qe.isAxiosError=ex;qe.mergeConfig=fi;qe.AxiosHeaders=Cn;qe.formToJSON=e=>iy(F.isHTMLForm(e)?new FormData(e):e);qe.HttpStatusCode=tx;qe.default=qe;const Rh=qe,nx="https://junction-asia-2023.github.io/just-label/png/badge_good.png",rx="https://junction-asia-2023.github.io/just-label/png/badge_bad.png",ix=["mood_GOOD","mood_BAD"],ox=["GOOD","BAD"],sx="What is the Active Mood?",lx="Express yourself on your employee ID card with your day that changes every day! You can write down what you want to say in words and choose a sticker that expresses your day and combine it!",ax="I feel like",ux="Today’s mood is",cx=[{labelId:"085C1B1FE1D7",productId:"JC000001",productName:"test_product_1"},{labelId:"085C1B25E1DE",productId:"JC000002",productName:"test_product_2"},{labelId:"085C1B45E1D8",productId:"JC000003",productName:"test_product_3"},{labelId:"085C1B47E1DA",productId:"JC000004",productName:"test_product_4"},{labelId:"085C1B46E1DB",productId:"JC000005",productName:"test_product_5"}],fx="https://stage00.common.solumesl.com/common/api/v2/common/labels/image?company=JC01&store=1111",dx="eyJhbGciOiJSUzI1NiIsImtpZCI6Ilg1ZVhrNHh5b2pORnVtMWtsMll0djhkbE5QNC1jNTdkTzZRR1RWQndhTmsiLCJ0eXAiOiJKV1QifQ.eyJpZHAiOiJMb2NhbEFjY291bnQiLCJvaWQiOiI3ZjViOTAxNy04ZDU0LTQ4OTYtYTZhNi03ZDQxMGM1MmJiMzAiLCJzdWIiOiI3ZjViOTAxNy04ZDU0LTQ4OTYtYTZhNi03ZDQxMGM1MmJiMzAiLCJuYW1lIjoiMTNwZnQxMyIsIm5ld1VzZXIiOmZhbHNlLCJleHRlbnNpb25fQWRtaW5BcHByb3ZlZCI6dHJ1ZSwiZXh0ZW5zaW9uX0N1c3RvbWVyQ29kZSI6IkpDMDEiLCJleHRlbnNpb25fQ3VzdG9tZXJMZXZlbCI6IjEiLCJlbWFpbHMiOlsiMTNwZnQxM0BnbWFpbC5jb20iXSwidGZwIjoiQjJDXzFfUk9QQ19BdXRoIiwiYXpwIjoiZTA4ZTU0ZmYtNWJiMS00YWU3LWFmZGUtYjljZGM4ZmEyM2FlIiwidmVyIjoiMS4wIiwiaWF0IjoxNjkyNDI0NTg5LCJhdWQiOiJlMDhlNTRmZi01YmIxLTRhZTctYWZkZS1iOWNkYzhmYTIzYWUiLCJleHAiOjE2OTI1MTA5ODksImlzcyI6Imh0dHBzOi8vc29sdW1iMmMuYjJjbG9naW4uY29tL2IwYzhlM2Q5LTA4ZmEtNDg3YS1hZmYxLTg1YmFlMTFmYzZjNS92Mi4wLyIsIm5iZiI6MTY5MjQyNDU4OX0.Zd_GeM7C8p03XKMH8gpo3QjeADeY6CW7t3ZLUA3V9NeF6sgHuf_nZGuT46L_9eca1JcbmrIZK1KbCyfVScSaRXhgQ71r627bC05NcJcxNHnsUGSBtihngLvegSNiyC_i7uARyIyEumYasMIUAyuHzVg5PrAyokgb_nY6WfkL2_6yyK5yHf1uNmEZkY-Kq_C4qhn_uplc3KWhXyLwKC_9dDT6ZF0_kBPowok87tAThH4VZNniWcxcTABHEMD9aNeIsCr9axUwU_J9yuMgF9OtKkTWZkWrvLcc8sEKYbGfyvxhtQ2AzyOHKg8re32S5YEVgvTcXVyFng5gIo-_WUm6Zg",Fi=cx[1],hx=()=>{const{register:e,handleSubmit:t,control:n,formState:r}=Vv({defaultValues:{mood:"",comment:""}}),i=nr(),o=async a=>{const u=document.createElement("img");u.src=a.mood==="mood_GOOD"?nx:rx,fetch(u.src).then(c=>(console.log("res",c),c.blob())).then(c=>{console.log("blob",c);const d=new FileReader;d.readAsDataURL(c),d.onloadend=async()=>{typeof d.result=="string"&&l.mutate({img:d.result})}})},s=()=>{i(rr.preview)},l=kw({mutationFn:async({img:a})=>{console.log("mutate img",a),Rh.defaults.headers.common.Authorization=`Bearer ${dx}`;const u=await Rh.post(fx,{labelCode:Fi.labelId,page:1,frontPage:1,image:a.split(",")[1],articleList:[{articleId:Fi.productId,articleName:Fi.productName,nfcUrl:"http://www.solumesl.com",data:{ARTICLE_ID:Fi.productId,ARTICLE_NAME:Fi.productName,NFC_URL:"http://www.solum.com/p/JC000001",SALE_PRICE:"$100",DISCOUNT_PRICE:"$90"}}]},{headers:{"Content-Type":"application/json; charset=utf-8 "}});console.log(u)}});return{register:e,handleSubmit:t,control:n,onSubmit:o,handlePreviewClick:s,formState:r}};const px=({handlePreviewClick:e,formState:t})=>S.jsxs("div",{className:"setting-preview-container",children:[S.jsx("div",{className:"setting-preview-title-text",children:sx}),S.jsx("div",{className:"setting-preview-sub-text",children:lx}),S.jsx("button",{className:"setting-preview-btn",onClick:e,disabled:!t.isValid,children:"Preview"})]}),mx="https://junction-asia-2023.github.io/just-label/png/mood_BAD.png",vx="https://junction-asia-2023.github.io/just-label/png/mood_GOOD.png",yx=({control:e})=>S.jsxs("div",{className:"setting-sticker-container",children:[S.jsx("span",{className:"setting-sticker-title",children:ux}),S.jsx(P1,{name:"mood",control:e,rules:{required:!0},render:({field:t})=>S.jsx("div",{className:"setting-sticker-box",...t,children:ix.map((n,r)=>S.jsxs("label",{htmlFor:n,className:"setting-sticker-width",children:[t.value===n&&S.jsx("div",{className:"setting-sticker-picked",children:S.jsx("span",{className:"setting-sticker-text",children:ox[r]})}),S.jsx("input",{type:"radio",id:n,name:t.name,value:n,checked:t.value===n,onChange:i=>{t.onChange(i.target.value)}}),S.jsx("img",{src:n==="mood_BAD"?mx:vx,className:"logo react",alt:"React logo"})]},n))})})]}),gx=({register:e})=>S.jsxs("div",{className:"setting-word-container",children:[S.jsx("span",{className:"setting-word-title",children:ax}),S.jsx("input",{className:"setting-word-input",placeholder:"Please write a word to describe you.",...e("comment",{required:!0})})]}),wx=({handleSubmit:e,onSubmit:t,register:n,control:r})=>{const[i,o]=ut(kv),s=B.useRef(null);return B.useEffect(()=>{var l;i&&(o(!1),(l=s.current)==null||l.click())},[i]),S.jsxs("form",{onSubmit:e(t),children:[S.jsx(gx,{register:n}),S.jsx(yx,{control:r}),S.jsx("input",{ref:s,type:"submit",style:{visibility:"hidden"}})]})},Sx=()=>{const[,e]=ut(mi),[,t]=ut(tf),{handlePreviewClick:n,handleSubmit:r,onSubmit:i,register:o,control:s,formState:l}=hx();return B.useLayoutEffect(()=>(e({title:"Active",back:!0}),t({text:"Save",disable:!l.isValid}),()=>{e({}),t({})}),[l.isValid]),S.jsxs("div",{className:"setting-container",children:[S.jsx(px,{handlePreviewClick:n,formState:l}),S.jsx(wx,{handleSubmit:r,onSubmit:i,register:o,control:s})]})},Ex=()=>S.jsx("div",{children:"Error!"});const xx=()=>{const e=()=>{e1("user"),window.location.reload()};return S.jsxs("div",{className:"not-found",children:[S.jsx("span",{children:"404"}),S.jsx("button",{onClick:e,children:"Go Home"})]})};const Cx=({curNum:e})=>{const t=["My Profile","Active Mood","Creating a Schedule","Cancellation","Schedule Notification"],n=["My basic information is displayed.","Express your day in various ways with text and stickers!","Sends an alert to the ID Card when you create a schedule.","Send a notification to the ID Card when the schedule is canceled.","Sends a notification to the ID Card when the schedule is imminent."];return S.jsxs("div",{className:"preview-bottom-text-container",children:[t.map((r,i)=>{if(i===e)return S.jsx("div",{className:"preview-bottom-title-text",children:r},i)}),n.map((r,i)=>{if(i===e)return S.jsx("div",{className:"preview-bottom-sub-text",children:r},i)})]})},_x=({seletedType:e,handleTypeClick:t})=>S.jsxs("div",{className:"preview-choose-type-container",children:[S.jsx("div",{className:e==="A"?"preview-choose-type-box":"preview-not-choose-type-box",onClick:t,"data-type":"A",children:"Type A"}),S.jsx("div",{className:e==="B"?"preview-choose-type-box":"preview-not-choose-type-box",onClick:t,"data-type":"B",children:"Type B"})]});var uy={},Bl={},pf={},Ia={},Ua={exports:{}},za,Ph;function Rx(){if(Ph)return za;Ph=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return za=e,za}var Ba,kh;function Px(){if(kh)return Ba;kh=1;var e=Rx();function t(){}function n(){}return n.resetWarningCache=t,Ba=function(){function r(s,l,a,u,c,d){if(d!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Ba}var Oh;function kx(){return Oh||(Oh=1,Ua.exports=Px()()),Ua.exports}var Th;function Ox(){return Th||(Th=1,function(e){(function(t,n){n(e,B,kx())})(Gu,function(t,n,r){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=y;var i=s(n),o=s(r);function s(f){return f&&f.__esModule?f:{default:f}}var l=Object.assign||function(f){for(var m=1;m=0||Object.prototype.hasOwnProperty.call(f,E)&&(h[E]=f[E]);return h}function u(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}var c=function(){function f(m,h){for(var E=0;E0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return g?f:f.capture}function L(f){if("touches"in f){var m=f.touches[0],h=m.pageX,E=m.pageY;return{x:h,y:E}}var R=f.screenX,M=f.screenY;return{x:R,y:M}}var v=function(f){p(m,f);function m(){var h;u(this,m);for(var E=arguments.length,R=Array(E),M=0;MR&&this.props.onSwipeRight(1,E),this.movePosition.deltaY<-R?this.props.onSwipeUp(1,E):this.movePosition.deltaY>R&&this.props.onSwipeDown(1,E)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(E){this.swiper=E,this.props.innerRef(E)}},{key:"render",value:function(){var E=this.props;E.tagName;var R=E.className,M=E.style,w=E.children;E.allowMouseEvents,E.onSwipeUp,E.onSwipeDown,E.onSwipeLeft,E.onSwipeRight,E.onSwipeStart,E.onSwipeMove,E.onSwipeEnd,E.innerRef,E.tolerance;var O=a(E,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return i.default.createElement(this.props.tagName,l({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:R,style:M},O),w)}}]),m}(n.Component);v.displayName="ReactSwipe",v.propTypes={tagName:o.default.string,className:o.default.string,style:o.default.object,children:o.default.node,allowMouseEvents:o.default.bool,onSwipeUp:o.default.func,onSwipeDown:o.default.func,onSwipeLeft:o.default.func,onSwipeRight:o.default.func,onSwipeStart:o.default.func,onSwipeMove:o.default.func,onSwipeEnd:o.default.func,innerRef:o.default.func,tolerance:o.default.number.isRequired},v.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},t.default=v})}(Ia)),Ia}(function(e){(function(t,n){n(e,Ox())})(Gu,function(t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=i(n);function i(o){return o&&o.__esModule?o:{default:o}}t.default=r.default})})(pf);var Lo={},cy={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function cl(e){return cl=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},cl(e)}function st(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hx=function(t){return t.hasOwnProperty("key")},mf=function(e){Bx(n,e);var t=$x(n);function n(r){var i;return Ux(this,n),i=t.call(this,r),st(ct(i),"itemsWrapperRef",void 0),st(ct(i),"itemsListRef",void 0),st(ct(i),"thumbsRef",void 0),st(ct(i),"setItemsWrapperRef",function(o){i.itemsWrapperRef=o}),st(ct(i),"setItemsListRef",function(o){i.itemsListRef=o}),st(ct(i),"setThumbsRef",function(o,s){i.thumbsRef||(i.thumbsRef=[]),i.thumbsRef[s]=o}),st(ct(i),"updateSizes",function(){if(!(!i.props.children||!i.itemsWrapperRef||!i.thumbsRef)){var o=Bt.Children.count(i.props.children),s=i.itemsWrapperRef.clientWidth,l=i.props.thumbWidth?i.props.thumbWidth:(0,bx.outerWidth)(i.thumbsRef[0]),a=Math.floor(s/l),u=a0&&(s=0),u===d&&s<0&&(s=0);var p=i.itemsWrapperRef.clientWidth,g=u+100/(p/s);return i.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(y){i.itemsListRef.style[y]=(0,Dh.default)(g,"%",i.props.axis)}),!0}),st(ct(i),"slideRight",function(o){i.moveTo(i.state.firstItem-(typeof o=="number"?o:1))}),st(ct(i),"slideLeft",function(o){i.moveTo(i.state.firstItem+(typeof o=="number"?o:1))}),st(ct(i),"moveTo",function(o){o=o<0?0:o,o=o>=i.state.lastPosition?i.state.lastPosition:o,i.setState({firstItem:o})}),i.state={selectedItem:r.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},i}return zx(n,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(i){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==i.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,ls.default)().addEventListener("resize",this.updateSizes),(0,ls.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,ls.default)().removeEventListener("resize",this.updateSizes),(0,ls.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(i){var o=i;return i>=this.state.lastPosition&&(o=this.state.lastPosition),i1,s=this.state.showArrows&&this.state.firstItem>0,l=this.state.showArrows&&this.state.firstItems);if(l)return o<0?t.centerMode&&t.centerSlidePercentage&&t.axis==="horizontal"?r.itemListStyle=(0,ln.setPosition)(-(s+2)*t.centerSlidePercentage-(100-t.centerSlidePercentage)/2,t.axis):r.itemListStyle=(0,ln.setPosition)(-(s+2)*100,t.axis):o>s&&(r.itemListStyle=(0,ln.setPosition)(0,t.axis)),r;var a=(0,ln.getPosition)(i,t),u=(0,tC.default)(a,"%",t.axis),c=t.transitionTime+"ms";return r.itemListStyle={WebkitTransform:u,msTransform:u,OTransform:u,transform:u},n.swiping||(r.itemListStyle=cr(cr({},r.itemListStyle),{},{WebkitTransitionDuration:c,MozTransitionDuration:c,OTransitionDuration:c,transitionDuration:c,msTransitionDuration:c})),r};sn.slideAnimationHandler=iC;var oC=function(t,n,r,i){var o={},s=n.axis==="horizontal",l=dy.Children.count(n.children),a=0,u=(0,ln.getPosition)(r.selectedItem,n),c=n.infiniteLoop?(0,ln.getPosition)(l-1,n)-100:(0,ln.getPosition)(l-1,n),d=s?t.x:t.y,p=d;u===a&&d>0&&(p=0),u===c&&d<0&&(p=0);var g=u+100/(r.itemSize/p),y=Math.abs(d)>n.swipeScrollTolerance;return n.infiniteLoop&&y&&(r.selectedItem===0&&g>-100?g-=l*100:r.selectedItem===l-1&&g<-l*100&&(g+=l*100)),(!n.preventMovementUntilSwipeScrollTolerance||y||r.swipeMovementStarted)&&(r.swipeMovementStarted||i({swipeMovementStarted:!0}),o.itemListStyle=(0,ln.setPosition)(g,n.axis)),y&&!r.cancelClick&&i({cancelClick:!0}),o};sn.slideSwipeAnimationHandler=oC;var sC=function(t,n){var r=(0,ln.getPosition)(n.selectedItem,t),i=(0,ln.setPosition)(r,t.axis);return{itemListStyle:i}};sn.slideStopSwipingHandler=sC;var lC=function(t,n){var r=t.transitionTime+"ms",i="ease-in-out",o={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:i,msTransitionTimingFunction:i,MozTransitionTimingFunction:i,WebkitTransitionTimingFunction:i,OTransitionTimingFunction:i};return n.swiping||(o=cr(cr({},o),{},{WebkitTransitionDuration:r,MozTransitionDuration:r,OTransitionDuration:r,transitionDuration:r,msTransitionDuration:r})),{slideStyle:o,selectedStyle:cr(cr({},o),{},{opacity:1,position:"relative"}),prevStyle:cr({},o)}};sn.fadeAnimationHandler=lC;Object.defineProperty(Bl,"__esModule",{value:!0});Bl.default=void 0;var pe=cC(B),aC=Io(pf),wn=Io(Lo),uC=Io(bo),as=Io(Wl),us=Io(Fo),Vi=xt,fl=sn;function Io(e){return e&&e.__esModule?e:{default:e}}function hy(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return hy=function(){return e},e}function cC(e){if(e&&e.__esModule)return e;if(e===null||to(e)!=="object"&&typeof e!="function")return{default:e};var t=hy();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function to(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?to=function(n){return typeof n}:to=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},to(e)}function Yu(){return Yu=Object.assign||function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function dl(e){return dl=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},dl(e)}function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vf=function(e){hC(n,e);var t=pC(n);function n(r){var i;fC(this,n),i=t.call(this,r),ae(ce(i),"thumbsRef",void 0),ae(ce(i),"carouselWrapperRef",void 0),ae(ce(i),"listRef",void 0),ae(ce(i),"itemsRef",void 0),ae(ce(i),"timer",void 0),ae(ce(i),"animationHandler",void 0),ae(ce(i),"setThumbsRef",function(s){i.thumbsRef=s}),ae(ce(i),"setCarouselWrapperRef",function(s){i.carouselWrapperRef=s}),ae(ce(i),"setListRef",function(s){i.listRef=s}),ae(ce(i),"setItemsRef",function(s,l){i.itemsRef||(i.itemsRef=[]),i.itemsRef[l]=s}),ae(ce(i),"autoPlay",function(){pe.Children.count(i.props.children)<=1||(i.clearAutoPlay(),i.props.autoPlay&&(i.timer=setTimeout(function(){i.increment()},i.props.interval)))}),ae(ce(i),"clearAutoPlay",function(){i.timer&&clearTimeout(i.timer)}),ae(ce(i),"resetAutoPlay",function(){i.clearAutoPlay(),i.autoPlay()}),ae(ce(i),"stopOnHover",function(){i.setState({isMouseEntered:!0},i.clearAutoPlay)}),ae(ce(i),"startOnLeave",function(){i.setState({isMouseEntered:!1},i.autoPlay)}),ae(ce(i),"isFocusWithinTheCarousel",function(){return i.carouselWrapperRef?!!((0,as.default)().activeElement===i.carouselWrapperRef||i.carouselWrapperRef.contains((0,as.default)().activeElement)):!1}),ae(ce(i),"navigateWithKeyboard",function(s){if(i.isFocusWithinTheCarousel()){var l=i.props.axis,a=l==="horizontal",u={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},c=a?u.ArrowRight:u.ArrowDown,d=a?u.ArrowLeft:u.ArrowUp;c===s.keyCode?i.increment():d===s.keyCode&&i.decrement()}}),ae(ce(i),"updateSizes",function(){if(!(!i.state.initialized||!i.itemsRef||i.itemsRef.length===0)){var s=i.props.axis==="horizontal",l=i.itemsRef[0];if(l){var a=s?l.clientWidth:l.clientHeight;i.setState({itemSize:a}),i.thumbsRef&&i.thumbsRef.updateSizes()}}}),ae(ce(i),"setMountState",function(){i.setState({hasMount:!0}),i.updateSizes()}),ae(ce(i),"handleClickItem",function(s,l){if(pe.Children.count(i.props.children)!==0){if(i.state.cancelClick){i.setState({cancelClick:!1});return}i.props.onClickItem(s,l),s!==i.state.selectedItem&&i.setState({selectedItem:s})}}),ae(ce(i),"handleOnChange",function(s,l){pe.Children.count(i.props.children)<=1||i.props.onChange(s,l)}),ae(ce(i),"handleClickThumb",function(s,l){i.props.onClickThumb(s,l),i.moveTo(s)}),ae(ce(i),"onSwipeStart",function(s){i.setState({swiping:!0}),i.props.onSwipeStart(s)}),ae(ce(i),"onSwipeEnd",function(s){i.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),i.props.onSwipeEnd(s),i.clearAutoPlay(),i.state.autoPlay&&i.autoPlay()}),ae(ce(i),"onSwipeMove",function(s,l){i.props.onSwipeMove(l);var a=i.props.swipeAnimationHandler(s,i.props,i.state,i.setState.bind(ce(i)));return i.setState($t({},a)),!!Object.keys(a).length}),ae(ce(i),"decrement",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;i.moveTo(i.state.selectedItem-(typeof s=="number"?s:1))}),ae(ce(i),"increment",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;i.moveTo(i.state.selectedItem+(typeof s=="number"?s:1))}),ae(ce(i),"moveTo",function(s){if(typeof s=="number"){var l=pe.Children.count(i.props.children)-1;s<0&&(s=i.props.infiniteLoop?l:0),s>l&&(s=i.props.infiniteLoop?0:l),i.selectItem({selectedItem:s}),i.state.autoPlay&&i.state.isMouseEntered===!1&&i.resetAutoPlay()}}),ae(ce(i),"onClickNext",function(){i.increment(1)}),ae(ce(i),"onClickPrev",function(){i.decrement(1)}),ae(ce(i),"onSwipeForward",function(){i.increment(1),i.props.emulateTouch&&i.setState({cancelClick:!0})}),ae(ce(i),"onSwipeBackwards",function(){i.decrement(1),i.props.emulateTouch&&i.setState({cancelClick:!0})}),ae(ce(i),"changeItem",function(s){return function(l){(!(0,Vi.isKeyboardEvent)(l)||l.key==="Enter")&&i.moveTo(s)}}),ae(ce(i),"selectItem",function(s){i.setState($t({previousItem:i.state.selectedItem},s),function(){i.setState(i.animationHandler(i.props,i.state))}),i.handleOnChange(s.selectedItem,pe.Children.toArray(i.props.children)[s.selectedItem])}),ae(ce(i),"getInitialImage",function(){var s=i.props.selectedItem,l=i.itemsRef&&i.itemsRef[s],a=l&&l.getElementsByTagName("img")||[];return a[0]}),ae(ce(i),"getVariableItemHeight",function(s){var l=i.itemsRef&&i.itemsRef[s];if(i.state.hasMount&&l&&l.children.length){var a=l.children[0].getElementsByTagName("img")||[];if(a.length>0){var u=a[0];if(!u.complete){var c=function g(){i.forceUpdate(),u.removeEventListener("load",g)};u.addEventListener("load",c)}}var d=a[0]||l.children[0],p=d.clientHeight;return p>0?p:null}return null});var o={initialized:!1,previousItem:r.selectedItem,selectedItem:r.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:r.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return i.animationHandler=typeof r.animationHandler=="function"&&r.animationHandler||r.animationHandler==="fade"&&fl.fadeAnimationHandler||fl.slideAnimationHandler,i.state=$t($t({},o),i.animationHandler(r,o)),i}return dC(n,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(i,o){!i.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!i.autoFocus&&this.props.autoFocus&&this.forceFocus(),o.swiping&&!this.state.swiping&&this.setState($t({},this.props.stopSwipingHandler(this.props,this.state))),(i.selectedItem!==this.props.selectedItem||i.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),i.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var i=this;this.bindEvents(),this.state.autoPlay&&pe.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var o=i.getInitialImage();o&&!o.complete?o.addEventListener("load",i.setMountState):i.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var i=this.carouselWrapperRef;this.props.stopOnHover&&i&&(i.addEventListener("mouseenter",this.stopOnHover),i.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var i=this.carouselWrapperRef;this.props.stopOnHover&&i&&(i.removeEventListener("mouseenter",this.stopOnHover),i.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,us.default)().addEventListener("resize",this.updateSizes),(0,us.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,as.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,us.default)().removeEventListener("resize",this.updateSizes),(0,us.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var i=this.getInitialImage();i&&i.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,as.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var i;(i=this.carouselWrapperRef)===null||i===void 0||i.focus()}},{key:"renderItems",value:function(i){var o=this;return this.props.children?pe.Children.map(this.props.children,function(s,l){var a=l===o.state.selectedItem,u=l===o.state.previousItem,c=a&&o.state.selectedStyle||u&&o.state.prevStyle||o.state.slideStyle||{};o.props.centerMode&&o.props.axis==="horizontal"&&(c=$t($t({},c),{},{minWidth:o.props.centerSlidePercentage+"%"})),o.state.swiping&&o.state.swipeMovementStarted&&(c=$t($t({},c),{},{pointerEvents:"none"}));var d={ref:function(g){return o.setItemsRef(g,l)},key:"itemKey"+l+(i?"clone":""),className:wn.default.ITEM(!0,l===o.state.selectedItem,l===o.state.previousItem),onClick:o.handleClickItem.bind(o,l,s),style:c};return pe.default.createElement("li",d,o.props.renderItem(s,{isSelected:l===o.state.selectedItem,isPrevious:l===o.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var i=this,o=this.props,s=o.showIndicators,l=o.labels,a=o.renderIndicator,u=o.children;return s?pe.default.createElement("ul",{className:"control-dots"},pe.Children.map(u,function(c,d){return a&&a(i.changeItem(d),d===i.state.selectedItem,d,l.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?pe.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,pe.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||pe.Children.count(this.props.children)===0?null:pe.default.createElement(uC.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var i=this;if(!this.props.children||pe.Children.count(this.props.children)===0)return null;var o=this.props.swipeable&&pe.Children.count(this.props.children)>1,s=this.props.axis==="horizontal",l=this.props.showArrows&&pe.Children.count(this.props.children)>1,a=l&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,u=l&&(this.state.selectedItem{const o=e==="A"?[gC,wC,SC,EC,xC]:[CC,_C,RC,PC,kC];return S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"preview-image-container",children:S.jsx("div",{className:"preview-choose-carousel",children:S.jsx(uy.Carousel,{showArrows:!1,showThumbs:!1,showStatus:!1,showIndicators:!1,autoPlay:!0,infiniteLoop:!0,selectedItem:t,onChange:(s,l)=>{n(s)},children:o.map((s,l)=>S.jsx("div",{className:"preview-choose-carousel-img",children:S.jsx("img",{src:s})},l))})})}),S.jsx("div",{className:"preview-carousel-bar",children:o.map((s,l)=>S.jsx("div",{className:t===l?"preview-carousel-circle-black":"preview-carousel-circle-gray",onClick:()=>{n(l)}},l))})]})},TC=()=>{const[e,t]=B.useState("A"),[n,r]=B.useState(0);return{seletedType:e,curNum:n,setCurNum:r,handleTypeClick:o=>{const s=o.target;t(s.dataset.type)}}},DC=()=>{const[,e]=ut(mi),[,t]=ut(tf),{seletedType:n,handleTypeClick:r,curNum:i,setCurNum:o}=TC();return B.useLayoutEffect(()=>(e({title:"CardMe Preview",back:!0}),t({text:"Modification",disable:i!==1}),()=>{e({}),t({})}),[i]),S.jsxs("div",{className:"preview-container",children:[S.jsx(_x,{seletedType:n,handleTypeClick:r}),S.jsx(OC,{seletedType:n,curNum:i,setCurNum:o}),S.jsx(Cx,{curNum:i})]})},py="https://junction-asia-2023.github.io/just-label/svg/Calendar.svg",MC="https://junction-asia-2023.github.io/just-label/svg/Clock.svg",AC="https://junction-asia-2023.github.io/just-label/svg/Home.svg",NC="https://junction-asia-2023.github.io/just-label/svg/Users.svg",jC=({type:e})=>S.jsx("span",{className:`badge badge-${e}`}),LC=({type:e,title:t,date:n,time:r,place:i,people:o})=>S.jsxs("div",{className:"meeting-item",children:[S.jsxs("h2",{children:[S.jsx(jC,{type:e}),t]}),S.jsxs("p",{children:[S.jsx("img",{src:py}),n]}),S.jsxs("p",{children:[S.jsx("img",{src:MC}),r]}),S.jsxs("p",{children:[S.jsx("img",{src:AC}),i]}),o&&S.jsxs("p",{children:[S.jsx("img",{src:NC}),o]})]});var my={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Gu,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",s="second",l="minute",a="hour",u="day",c="week",d="month",p="quarter",g="year",y="date",x="Invalid Date",L=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var T=["th","st","nd","rd"],b=P%100;return"["+P+(T[(b-20)%10]||T[b]||T[0])+"]"}},m=function(P,T,b){var W=String(P);return!W||W.length>=T?P:""+Array(T+1-W.length).join(b)+P},h={s:m,z:function(P){var T=-P.utcOffset(),b=Math.abs(T),W=Math.floor(b/60),j=b%60;return(T<=0?"+":"-")+m(W,2,"0")+":"+m(j,2,"0")},m:function P(T,b){if(T.date()1)return P(U[0])}else{var K=T.name;R[K]=T,j=K}return!W&&j&&(E=j),j||!W&&E},O=function(P,T){if(M(P))return P.clone();var b=typeof T=="object"?T:{};return b.date=P,b.args=arguments,new $(b)},k=h;k.l=w,k.i=M,k.w=function(P,T){return O(P,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var $=function(){function P(b){this.$L=w(b.locale,null,!0),this.parse(b)}var T=P.prototype;return T.parse=function(b){this.$d=function(W){var j=W.date,_=W.utc;if(j===null)return new Date(NaN);if(k.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var U=j.match(L);if(U){var K=U[2]-1||0,ne=(U[7]||"0").substring(0,3);return _?new Date(Date.UTC(U[1],K,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ne)):new Date(U[1],K,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ne)}}return new Date(j)}(b),this.$x=b.x||{},this.init()},T.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},T.$utils=function(){return k},T.isValid=function(){return this.$d.toString()!==x},T.isSame=function(b,W){var j=O(b);return this.startOf(W)<=j&&j<=this.endOf(W)},T.isAfter=function(b,W){return O(b){const[t,n]=B.useState(FC(new Date)),r=()=>{n(t.add(-8,"day")),e()},i=()=>{n(t.add(8,"day")),e()};return S.jsxs("div",{className:"week-selector",children:[S.jsx("img",{className:"arrow arrow-left",src:Lh,onClick:r}),S.jsxs("h1",{children:[S.jsx("img",{src:py}),t.format("MM.DD"),"  ~  ",t.add(7,"day").format("MM.DD")]}),S.jsx("img",{className:"arrow arrow-right",src:Lh,onClick:i})]})};var Vt=(e=>(e.Team="team",e.Business="business",e.Personal="personal",e))(Vt||{});const Ii=[{type:Vt.Team,title:"Team Meeting Title",date:"Wed, Aug 16th 2023",time:"14:00 ~ 17:00",place:"7F Conference Room A",people:"Andreas and 14 others"},{type:Vt.Business,title:"Business Trip/Outside Work Title",date:"Wed, Aug 16th 2023",time:"14:00 ~ 17:00",place:"7F Conference Room A",people:"Andreas and 14 others"},{type:Vt.Personal,title:"Personal Schedule Title",date:"Wed, Aug 16th 2023",time:"14:00 ~ 17:00",place:"7F Conference Room A"},{type:Vt.Team,title:"Personal Schedule Title",date:"Wed, Aug 16th 2023",time:"14:00 ~ 17:00",place:"7F Conference Room A",people:"Andreas and 14 others"},{type:Vt.Business,title:"Personal Schedule Title",date:"Wed, Aug 16th 2023",time:"14:00 ~ 17:00",place:"Hall A",people:"Andreas"},{type:Vt.Business,title:"Business Trip/Outside Work Title",date:"Wed, Aug 16th 2023",time:"14:00 ~ 17:00",place:"7F Conference Room A",people:"Andreas and 14 others"},{type:Vt.Personal,title:"Personal Schedule Title",date:"Wed, Aug 16th 2023",time:"14:00 ~ 17:00",place:"7F Conference Room A",people:"Andreas and 14 others"},{type:Vt.Team,title:"Personal Schedule Title",date:"Wed, Aug 16th 2023",time:"14:00 ~ 17:00",place:"7F Conference Room A",people:"Andreas and 14 others"},{type:Vt.Personal,title:"Personal Schedule Title",date:"Wed, Aug 16th 2023",time:"14:00 ~ 17:00",place:"7F Conference Room A",people:"Andreas and 14 others"},{type:Vt.Personal,title:"Personal Schedule Title",date:"Wed, Aug 16th 2023",time:"14:00 ~ 17:00",place:"7F Conference Room A"}],UC=()=>{const[e,t]=B.useState([...Ii]);return{dummyMeetings:e,handleWeekChange:()=>{t([Ii[Math.floor(Math.random()*10)],Ii[Math.floor(Math.random()*10)],Ii[Math.floor(Math.random()*10)],Ii[Math.floor(Math.random()*10)]])}}},zC=()=>{const[,e]=ut(mi),{dummyMeetings:t,handleWeekChange:n}=UC();return B.useLayoutEffect(()=>{e({title:"Schedule",back:!0})},[]),S.jsxs("div",{className:"schedule-container",children:[S.jsx(IC,{onClick:n}),(t||[]).map((r,i)=>S.jsx(LC,{...r},i))]})},Zu=Pv({}),BC=()=>{const[e,t]=B.useState(!1),[,n]=ut(mi),[,r]=ut(Zu);return B.useLayoutEffect(()=>{n({back:!0,title:"Event"})},[]),{open:e,handleImageClick:()=>{t(!0),setTimeout(()=>{const o={open:!0},s={...o,footer:!0,onConfirm:()=>{},imageType:"win",title:"Congratulations!",description:"Congratulations on winning! Press the button to get a gift."},l={...o,imageType:"next",title:"Sorry...",description:"I missed the opportunity this time, but try to get the prize for the next event."};r(Date.now()%2===0?l:s)},500)}}},$C="https://junction-asia-2023.github.io/just-label/svg/gift1.svg",VC="https://junction-asia-2023.github.io/just-label/svg/gift2.svg";const WC=()=>{const{open:e,handleImageClick:t}=BC();return S.jsx("div",{className:"event-container",children:S.jsxs("div",{className:"wrap",children:[S.jsxs("div",{className:`content ${e?"open":""}`,children:[S.jsx("span",{className:"label",children:"JUNCTION Event"}),S.jsx("div",{className:"title",children:"Who is the lucky one who got the winning gift?"})]}),S.jsx("div",{className:`gift ${e?"open":""}`,onClick:t,children:S.jsx("img",{width:e?"250":"170",height:e?"250":"170",src:e?VC:$C,alt:"gift"})}),S.jsx("div",{className:"description",children:"Press the gift box and check the winning results"})]})})},HC="https://junction-asia-2023.github.io/just-label/svg/win.svg",qC="https://junction-asia-2023.github.io/just-label/svg/next.svg";const QC=()=>{const[e]=ut(Zu),t=ZS(Zu);if(!e.open)return null;const{imageType:n,onClose:r,title:i,description:o,onConfirm:s}=e,l=(()=>{switch(n){case"win":return HC;case"next":return qC;default:return}})(),a=()=>{r==null||r(),t()},u=()=>{s==null||s(),t()};return S.jsx("div",{className:"modal-container",children:S.jsxs("div",{className:"content",children:[S.jsx("span",{className:"close-btn",onClick:a,children:"×"}),S.jsx("img",{src:l,alt:"win"}),S.jsxs("div",{children:[S.jsx("div",{className:"title",children:i}),S.jsx("div",{className:"description",children:o})]}),S.jsx("div",{className:"footer",children:s&&S.jsx("button",{className:"button",onClick:u,children:"Download"})})]})})},KC=Bu(S.jsxs(vn,{path:"/",element:S.jsxs(B.Suspense,{children:[S.jsx(s1,{}),S.jsx(QC,{})]}),errorElement:S.jsx(Ex,{}),children:[S.jsx(vn,{index:!0,element:S.jsx(w1,{})}),S.jsx(vn,{path:"login",element:S.jsx(U1,{})}),S.jsx(vn,{path:"setting",element:S.jsx(Sx,{})}),S.jsx(vn,{path:"preview",element:S.jsx(DC,{})}),S.jsx(vn,{path:"schedule",element:S.jsx(zC,{})}),S.jsx(vn,{path:"event",element:S.jsx(WC,{})}),S.jsx(vn,{path:"*",element:S.jsx(xx,{})})]})),YC=IS(KC),JC=new uw,ZC=()=>S.jsx(Cw,{client:JC,children:S.jsx(Rw,{children:S.jsx(NS,{router:YC})})});$a.createRoot(document.getElementById("root")).render(S.jsx(ke.StrictMode,{children:S.jsx(ZC,{})})); diff --git a/assets/index-b0eb65e6.css b/assets/index-b0eb65e6.css new file mode 100644 index 0000000..7e6bd8a --- /dev/null +++ b/assets/index-b0eb65e6.css @@ -0,0 +1 @@ +.layout-container{width:480px;height:100%;background-color:#fff}.layout-title{display:flex;justify-content:space-between;align-items:center;height:61px;padding:0 8px;gap:8px}.layout-title.under-line{border-bottom:1px solid #e9e9f1}.layout-title .left{width:20px;height:48px;padding:0 14px;display:flex;align-items:center;justify-content:center}.layout-title .left.has{cursor:pointer}.layout-title .title{display:flex;align-items:center;justify-content:center;height:36px;padding:6px 8px;gap:10px;font-weight:700;font-size:16px;line-height:24px}.layout-title .title .logo{height:24px}.layout-bottom{display:flex;padding:16px;align-items:flex-start;gap:8px;align-self:stretch;border-top:1px solid #E9E9F1;background:#FFF;position:sticky;bottom:0;width:100%;box-sizing:border-box}.layout-bottom-btn{display:flex;height:48px;padding:0 14px;justify-content:center;align-items:center;flex:1 0 0;gap:8px;background:#191919;color:#fff;cursor:pointer}.layout-bottom-btn:disabled{opacity:30%;cursor:default}.home-container{height:calc(100vh - 77px)}.profile-box{display:flex;flex-direction:column;padding:24px 16px 16px;gap:24px}.profile-box .image-box{display:flex;justify-content:center}.profile-box .image-box .image{border-radius:50px;border:1px solid #E9E9F1;width:100px;height:100px}.profile-box .list-box{display:flex;flex-direction:column;gap:16px}.profile-box .list-box .list{display:flex;height:24px;gap:16px}.profile-box .list-box .list .name{width:100px}.profile-box .list-box .list .description{color:#7878b8}.gray-bar{height:12px;background-color:#e6e6e6}.active-box,.preview-box,.event-box,.schedule-box{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:72px;padding:0 16px;gap:16px}.active-box .icon-box,.preview-box .icon-box,.event-box .icon-box,.schedule-box .icon-box{width:36px;height:36px}.active-box .content,.preview-box .content,.event-box .content,.schedule-box .content{width:100%;padding:0}.active-box .content .title,.preview-box .content .title,.event-box .content .title,.schedule-box .content .title{font-weight:500;line-height:24px}.active-box .content .description,.preview-box .content .description,.event-box .content .description,.schedule-box .content .description{color:#7878b8;font-size:14px}.footer-box{display:flex;padding-top:24px;justify-content:center;align-items:center;background-color:#fff}.footer-box .description{cursor:pointer;text-decoration:underline;color:#1d1d6b;font-size:14px;font-weight:500;line-height:24px;letter-spacing:0em}.login-container{width:100%;height:calc(100vh - 25px);display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:-52px}.login-container img{margin-bottom:64px}.login-container form{display:flex;flex-direction:column;width:92%;margin:0 auto}.login-container input{border-radius:4px;border:1px solid #e3e3e3;background:#f7f7f7;padding:14px;width:100%;box-sizing:border-box}.login-container input::placeholder{color:#b2b2c8;font-size:16px;font-weight:400}.login-container .input-group{margin:10px 0}.login-container input[type=submit]{background-color:#191919;border:1px solid #191919;color:#fff;font-weight:500;font-size:16px;padding:6px 14px;width:100%;height:48px;margin:40px 0 26px;border-radius:4px}.login-container input[type=submit]:hover{cursor:pointer}.login-container form a{font-weight:400;text-decoration:none;justify-content:end;display:flex}.login-container a{color:#1d1d6b;text-decoration:underline;font-size:14px;font-weight:500}.login-container label{display:block;font-size:16px;font-weight:500;line-height:28px}.setting-container{width:100%;height:calc(100% - 159px);background:#f7f7f7}.setting-preview-container{display:flex;padding:24px 16px;flex-direction:column;align-items:center;align-self:stretch;background-color:#fff}.setting-preview-title-text{height:fit-content;margin-bottom:4px;color:#191919;text-align:center;font-size:24px;font-style:normal;font-weight:700;line-height:36px}.setting-preview-sub-text{margin-bottom:16px;color:#9797ae;font-size:14px;font-style:normal;font-weight:400;line-height:24px}.setting-preview-btn{display:flex;width:100%;height:48px;padding:0 14px;justify-content:center;align-items:center;align-self:stretch;border:1px solid #191919;color:#191919;background-color:#fff;cursor:pointer}.setting-preview-btn:disabled{opacity:.3;cursor:default}.setting-word-container{height:68px;display:flex;gap:4px;padding:16px;margin:12px 0;flex-direction:column;align-items:flex-start;align-self:stretch;background:#ffffff}.setting-word-title{color:#191919;font-size:16px;font-style:normal;font-weight:700;line-height:24px}.setting-word-input{display:flex;align-items:center;align-self:stretch;border-radius:4px;border:1px solid #e3e3e3;background:#f7f7f7;height:40px;padding:0 14px}.setting-word-input::placeholder{color:#b2b2c8;font-size:16px;font-weight:400}.setting-sticker-container{display:flex;padding:16px;flex-direction:column;align-items:flex-start;gap:8px;flex:1 0 0;align-self:stretch;background:#fff}.setting-sticker-title{color:#191919;font-size:16px;font-style:normal;font-weight:700;line-height:24px;margin-bottom:8px}.setting-sticker-box{display:flex;height:100%;width:100%;justify-content:space-between;align-items:flex-start;align-content:flex-start;gap:8px;flex-wrap:wrap}.setting-sticker-box input{-moz-appearance:none;appearance:none;-webkit-appearance:none}.setting-sticker-width{width:48%;position:relative}.setting-sticker-width img{width:100%}.setting-sticker-picked{position:absolute;width:100%;height:100%;border:2px solid #5D8FFF;background:rgba(93,143,255,.4);display:flex;justify-content:center;align-items:center}.setting-sticker-text{color:#5d8fff;text-align:center;font-size:34px;font-style:normal;font-weight:700;line-height:100%}.not-found{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh}.not-found span{font-size:3rem;font-weight:600}.not-found button{border:none;cursor:pointer}.preview-container{height:calc(100% - 159px);padding:16px 16px 24px}.preview-choose-type-container{display:flex;margin-bottom:16px;justify-content:center;align-items:center;align-self:stretch;border-radius:4px;border:1px solid #E9E9F1;cursor:pointer;background:#F7F7F7}.preview-image-container{display:flex;height:670px;padding:24px;justify-content:center;align-items:center;gap:10px;align-self:stretch;background:#F7F7F7}.preview-carousel-bar{display:flex;margin:16px 0;justify-content:center;align-items:center;gap:16px;align-self:stretch}.preview-carousel-circle-black{width:8px;height:8px;border-radius:50px;background-color:#191919}.preview-carousel-circle-gray{width:8px;height:8px;border-radius:50px;background-color:#d6d6d6}.preview-choose-type-box{display:flex;height:48px;padding:0 14px;justify-content:center;align-items:center;flex:1 0 0;border-radius:4px;background:#191919;color:#fff}.preview-not-choose-type-box{display:flex;height:48px;padding:0 14px;justify-content:center;align-items:center;flex:1 0 0;border-radius:4px;background:#FFF}.preview-bottom-text-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}.preview-bottom-title-text{color:#191919;font-size:16px;font-style:normal;font-weight:700;line-height:24px}.preview-bottom-sub-text{color:#9797ae;font-size:14px;font-style:normal;font-weight:500;line-height:24px}.carousel .control-arrow,.carousel.carousel-slider .control-arrow{-webkit-transition:all .25s ease-in;-moz-transition:all .25s ease-in;-ms-transition:all .25s ease-in;-o-transition:all .25s ease-in;transition:all .25s ease-in;opacity:.4;filter:alpha(opacity=40);position:absolute;z-index:2;top:20px;background:none;border:0;font-size:32px;cursor:pointer}.carousel .control-arrow:focus,.carousel .control-arrow:hover{opacity:1;filter:alpha(opacity=100)}.carousel .control-arrow:before,.carousel.carousel-slider .control-arrow:before{margin:0 5px;display:inline-block;border-top:8px solid transparent;border-bottom:8px solid transparent;content:""}.carousel .control-disabled.control-arrow{opacity:0;filter:alpha(opacity=0);cursor:inherit;display:none}.carousel .control-prev.control-arrow{left:0}.carousel .control-prev.control-arrow:before{border-right:8px solid #fff}.carousel .control-next.control-arrow{right:0}.carousel .control-next.control-arrow:before{border-left:8px solid #fff}.carousel-root{outline:none}.carousel{position:relative;width:100%}.carousel *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.carousel img{width:100%;display:inline-block;pointer-events:none}.carousel .carousel{position:relative}.carousel .control-arrow{outline:0;border:0;background:none;top:50%;margin-top:-13px;font-size:18px}.carousel .thumbs-wrapper{margin:20px;overflow:hidden}.carousel .thumbs{-webkit-transition:all .15s ease-in;-moz-transition:all .15s ease-in;-ms-transition:all .15s ease-in;-o-transition:all .15s ease-in;transition:all .15s ease-in;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translateZ(0);position:relative;list-style:none;white-space:nowrap}.carousel .thumb{-webkit-transition:border .15s ease-in;-moz-transition:border .15s ease-in;-ms-transition:border .15s ease-in;-o-transition:border .15s ease-in;transition:border .15s ease-in;display:inline-block;margin-right:6px;white-space:nowrap;overflow:hidden;border:3px solid #fff;padding:2px}.carousel .thumb:focus{border:3px solid #ccc;outline:none}.carousel .thumb.selected,.carousel .thumb:hover{border:3px solid #333}.carousel .thumb img{vertical-align:top}.carousel.carousel-slider{position:relative;margin:0;overflow:hidden}.carousel.carousel-slider .control-arrow{top:0;color:#fff;font-size:26px;bottom:0;margin-top:0;padding:5px}.carousel.carousel-slider .control-arrow:hover{background:rgba(0,0,0,.2)}.carousel .slider-wrapper{overflow:hidden;margin:auto;width:100%;-webkit-transition:height .15s ease-in;-moz-transition:height .15s ease-in;-ms-transition:height .15s ease-in;-o-transition:height .15s ease-in;transition:height .15s ease-in}.carousel .slider-wrapper.axis-horizontal .slider{-ms-box-orient:horizontal;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-moz-flex;display:-webkit-flex;display:flex}.carousel .slider-wrapper.axis-horizontal .slider .slide{flex-direction:column;flex-flow:column}.carousel .slider-wrapper.axis-vertical{-ms-box-orient:horizontal;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-moz-flex;display:-webkit-flex;display:flex}.carousel .slider-wrapper.axis-vertical .slider{-webkit-flex-direction:column;flex-direction:column}.carousel .slider{margin:0;padding:0;position:relative;list-style:none;width:100%}.carousel .slider.animated{-webkit-transition:all .35s ease-in-out;-moz-transition:all .35s ease-in-out;-ms-transition:all .35s ease-in-out;-o-transition:all .35s ease-in-out;transition:all .35s ease-in-out}.carousel .slide{min-width:100%;margin:0;position:relative;text-align:center}.carousel .slide img{width:100%;vertical-align:top;border:0}.carousel .slide iframe{display:inline-block;width:calc(100% - 80px);margin:0 40px 40px;border:0}.carousel .slide .legend{-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-ms-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;transition:all .5s ease-in-out;position:absolute;bottom:40px;left:50%;margin-left:-45%;width:90%;border-radius:10px;background:#000;color:#fff;padding:10px;font-size:12px;text-align:center;opacity:.25;-webkit-transition:opacity .35s ease-in-out;-moz-transition:opacity .35s ease-in-out;-ms-transition:opacity .35s ease-in-out;-o-transition:opacity .35s ease-in-out;transition:opacity .35s ease-in-out}.carousel .control-dots{position:absolute;bottom:0;margin:10px 0;padding:0;text-align:center;width:100%;z-index:1}@media (min-width: 960px){.carousel .control-dots{bottom:0}}.carousel .control-dots .dot{-webkit-transition:opacity .25s ease-in;-moz-transition:opacity .25s ease-in;-ms-transition:opacity .25s ease-in;-o-transition:opacity .25s ease-in;transition:opacity .25s ease-in;opacity:.3;filter:alpha(opacity=30);box-shadow:1px 1px 2px #000000e6;background:#fff;border-radius:50%;width:8px;height:8px;cursor:pointer;display:inline-block;margin:0 8px}.carousel .control-dots .dot.selected,.carousel .control-dots .dot:hover{opacity:1;filter:alpha(opacity=100)}.carousel .carousel-status{position:absolute;top:0;right:0;padding:5px;font-size:10px;text-shadow:1px 1px 1px rgba(0,0,0,.9);color:#fff}.carousel:hover .slide .legend{opacity:1}.schedule-container{width:100%;display:grid;gap:12px;background-color:#f7f7f7;position:relative}.schedule-container h1{color:#191919;font-size:16px;font-weight:500;display:flex;align-items:center}.schedule-container h1 img{width:20px;margin-right:8px}.schedule-container h2{color:#191919;font-size:16px;font-weight:700;padding:4px 0 6px;display:flex;align-items:center}.schedule-container .arrow{padding:0 24px}.schedule-container .arrow-left{transform:rotate(180deg)}.schedule-container p{color:#000;font-size:14px;font-weight:400;display:flex;align-items:center}.schedule-container p img{margin-right:8px;width:16px}.schedule-container .meeting-item{background-color:#fff;padding:8px 16px}.schedule-container .badge{width:12px;height:12px;border-radius:6px;display:inline-block;margin-right:8px}.schedule-container .badge-team{background-color:red}.schedule-container .badge-business{background-color:#24b277}.schedule-container .badge-personal{background-color:#0038ff}.schedule-container .week-selector{background-color:#fff;display:flex;justify-content:center;align-items:center;padding:6px 0}.schedule-container .button-area{border-top:1px solid #e9e9f1;padding:16px;background-color:#fff;position:fixed;bottom:0;width:288px}.schedule-container button{background-color:#191919;border:1px solid #191919;color:#fff;font-weight:500;font-size:16px;padding:6px 14px;width:100%;height:48px;border-radius:4px;display:flex;align-items:center;justify-content:center;gap:4px}@keyframes shake{0%{transform:rotate(0)}25%{transform:rotate(-3deg)}75%{transform:rotate(3deg)}to{transform:rotate(0)}}@keyframes open-top{0%{padding-top:7rem;padding-bottom:0rem}to{padding-top:4rem;padding-bottom:2rem}}@keyframes open-bottom{0%{padding-bottom:0rem}to{padding-bottom:4rem}}.event-container{height:calc(100vh - 77px)}.event-container .wrap{display:flex;flex-direction:column;justify-content:center;align-items:center}.event-container .wrap .content{padding-top:7rem;display:flex;flex-direction:column;justify-content:center;align-items:center}.event-container .wrap .content.open{animation:open-top .5s both}.event-container .wrap .content .label{color:#fff;background-color:#000;padding:3px 8px;font-size:14px;font-weight:500;line-height:24px;letter-spacing:0em;text-align:center}.event-container .wrap .content .title{padding:8px 0 24px;font-size:24px;font-weight:700;line-height:36px;letter-spacing:0em;text-align:center}.event-container .wrap .gift{cursor:pointer;height:250px}.event-container .wrap .gift.open{animation:open-bottom .5s both}.event-container .wrap .gift :hover{animation:shake 1s infinite ease-in}.event-container .wrap .description{padding-top:14px;color:#9797ae;font-size:14px;font-weight:400;line-height:24px;letter-spacing:0em;text-align:center}.modal-container{position:fixed;z-index:1;padding-top:100px;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:#000c}.modal-container .content{display:flex;flex-direction:column;justify-content:space-between;max-width:320px;height:70vh;padding:30px;margin:0 auto;border:1px solid #777;background-color:#fff}.modal-container .content .title{color:#191919;font-size:20px;font-weight:700;line-height:32px;letter-spacing:0em;text-align:left}.modal-container .content .description{font-size:14px;font-weight:400;line-height:24px;letter-spacing:0em;text-align:left;color:#9797ae}.modal-container .content .footer{display:flex;align-items:center;width:100%;height:80px;border-top:1px #E9E9F1}.modal-container .content .footer .button{width:100%;border:none;border-radius:4px;height:48px;background-color:#191919;color:#fff}.modal-container .close-btn{text-align:right;font-weight:700;color:#777;font-size:25px;cursor:pointer}*{font-family:Spoqa Han Sans Neo,"sans-serif"}body{margin:0;display:flex;place-content:center;min-height:100vh;background-color:#e6e6e6}#root{width:100%;display:flex;justify-content:center} diff --git a/index.html b/index.html index 20abd0a..37f5ec7 100644 --- a/index.html +++ b/index.html @@ -10,8 +10,8 @@ /> CardMe - JUST - - + +
diff --git a/png/badge_bad.png b/png/badge_bad.png new file mode 100644 index 0000000..dcd7525 Binary files /dev/null and b/png/badge_bad.png differ diff --git a/png/badge_good.png b/png/badge_good.png new file mode 100644 index 0000000..8d16554 Binary files /dev/null and b/png/badge_good.png differ diff --git a/svg/idcard_basic_B.svg b/svg/idcard_basic_B.svg new file mode 100644 index 0000000..5283018 --- /dev/null +++ b/svg/idcard_basic_B.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/svg/idcard_mude_B.svg b/svg/idcard_mude_B.svg new file mode 100644 index 0000000..5060486 --- /dev/null +++ b/svg/idcard_mude_B.svg @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/svg/meeting_30_B.svg b/svg/meeting_30_B.svg new file mode 100644 index 0000000..79a284e --- /dev/null +++ b/svg/meeting_30_B.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/svg/meeting_add_B.svg b/svg/meeting_add_B.svg new file mode 100644 index 0000000..af78e08 --- /dev/null +++ b/svg/meeting_add_B.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/svg/meeting_cancel_B.svg b/svg/meeting_cancel_B.svg new file mode 100644 index 0000000..f0b14df --- /dev/null +++ b/svg/meeting_cancel_B.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/svg/next.svg b/svg/next.svg new file mode 100644 index 0000000..1d2ba9f --- /dev/null +++ b/svg/next.svg @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/svg/win.svg b/svg/win.svg new file mode 100644 index 0000000..e810e1b --- /dev/null +++ b/svg/win.svg @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +