diff --git a/assets/index-c8dffa5e.js b/assets/index-c8dffa5e.js deleted file mode 100644 index 27038c5..0000000 --- a/assets/index-c8dffa5e.js +++ /dev/null @@ -1,501 +0,0 @@ -function Uh(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 l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).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 jt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cd={exports:{}},go={},Od={exports:{}},L={};/** - * @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 Yr=Symbol.for("react.element"),Bh=Symbol.for("react.portal"),Vh=Symbol.for("react.fragment"),bh=Symbol.for("react.strict_mode"),Hh=Symbol.for("react.profiler"),Wh=Symbol.for("react.provider"),qh=Symbol.for("react.context"),Qh=Symbol.for("react.forward_ref"),Yh=Symbol.for("react.suspense"),Kh=Symbol.for("react.memo"),Gh=Symbol.for("react.lazy"),du=Symbol.iterator;function Xh(e){return e===null||typeof e!="object"?null:(e=du&&e[du]||e["@@iterator"],typeof e=="function"?e:null)}var Pd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_d=Object.assign,Rd={};function Xn(e,t,n){this.props=e,this.context=t,this.refs=Rd,this.updater=n||Pd}Xn.prototype.isReactComponent={};Xn.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")};Xn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function jd(){}jd.prototype=Xn.prototype;function ta(e,t,n){this.props=e,this.context=t,this.refs=Rd,this.updater=n||Pd}var na=ta.prototype=new jd;na.constructor=ta;_d(na,Xn.prototype);na.isPureReactComponent=!0;var fu=Array.isArray,Td=Object.prototype.hasOwnProperty,ra={current:null},Ad={key:!0,ref:!0,__self:!0,__source:!0};function Nd(e,t,n){var r,i={},o=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(o=""+t.key),t)Td.call(t,r)&&!Ad.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,Z=R[D];if(0>>1;Di(ut,I))Dei(tt,ut)?(R[D]=tt,R[De]=I,D=De):(R[D]=ut,R[ze]=I,D=ze);else if(Dei(tt,I))R[D]=tt,R[De]=I,D=De;else break e}}return N}function i(R,N){var I=R.sortIndex-N.sortIndex;return I!==0?I:R.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],u=[],d=1,c=null,f=3,m=!1,g=!1,y=!1,E=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(R){for(var N=n(u);N!==null;){if(N.callback===null)r(u);else if(N.startTime<=R)r(u),N.sortIndex=N.expirationTime,t(a,N);else break;N=n(u)}}function w(R){if(y=!1,v(R),!g)if(n(a)!==null)g=!0,rr(C);else{var N=n(u);N!==null&&Yt(w,N.startTime-R)}}function C(R,N){g=!1,y&&(y=!1,h(_),_=-1),m=!0;var I=f;try{for(v(N),c=n(a);c!==null&&(!(c.expirationTime>N)||R&&!q());){var D=c.callback;if(typeof D=="function"){c.callback=null,f=c.priorityLevel;var Z=D(c.expirationTime<=N);N=e.unstable_now(),typeof Z=="function"?c.callback=Z:c===n(a)&&r(a),v(N)}else r(a);c=n(a)}if(c!==null)var xt=!0;else{var ze=n(u);ze!==null&&Yt(w,ze.startTime-N),xt=!1}return xt}finally{c=null,f=I,m=!1}}var O=!1,x=null,_=-1,M=5,A=-1;function q(){return!(e.unstable_now()-AR||125D?(R.sortIndex=I,t(u,R),n(a)===null&&R===n(u)&&(y?(h(_),_=-1):y=!0,Yt(w,I-D))):(R.sortIndex=Z,t(a,R),g||m||(g=!0,rr(C))),R},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(R){var N=f;return function(){var I=f;f=N;try{return R.apply(this,arguments)}finally{f=I}}}})(Md);Ld.exports=Md;var um=Ld.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 zd=P,Fe=um;function k(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"),Xl=Object.prototype.hasOwnProperty,cm=/^[: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]*$/,hu={},mu={};function dm(e){return Xl.call(mu,e)?!0:Xl.call(hu,e)?!1:cm.test(e)?mu[e]=!0:(hu[e]=!0,!1)}function fm(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 pm(e,t,n,r){if(t===null||typeof t>"u"||fm(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 Ee(e,t,n,r,i,o,l){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=l}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pe[e]=new Ee(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pe[t]=new Ee(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pe[e]=new Ee(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pe[e]=new Ee(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){pe[e]=new Ee(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pe[e]=new Ee(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pe[e]=new Ee(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pe[e]=new Ee(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pe[e]=new Ee(e,5,!1,e.toLowerCase(),null,!1,!1)});var oa=/[\-:]([a-z])/g;function la(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(oa,la);pe[t]=new Ee(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(oa,la);pe[t]=new Ee(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(oa,la);pe[t]=new Ee(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pe[e]=new Ee(e,1,!1,e.toLowerCase(),null,!1,!1)});pe.xlinkHref=new Ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pe[e]=new Ee(e,1,!1,e.toLowerCase(),null,!0,!0)});function sa(e,t,n,r){var i=pe.hasOwnProperty(t)?pe[t]:null;(i!==null?i.type!==0:r||!(2s||i[l]!==o[s]){var a=` -`+i[l].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{Zo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?pr(e):""}function hm(e){switch(e.tag){case 5:return pr(e.type);case 16:return pr("Lazy");case 13:return pr("Suspense");case 19:return pr("SuspenseList");case 0:case 2:case 15:return e=el(e.type,!1),e;case 11:return e=el(e.type.render,!1),e;case 1:return e=el(e.type,!0),e;default:return""}}function ts(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 Sn:return"Fragment";case wn:return"Portal";case Jl:return"Profiler";case aa:return"StrictMode";case Zl:return"Suspense";case es:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ud:return(e.displayName||"Context")+".Consumer";case $d:return(e._context.displayName||"Context")+".Provider";case ua:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ca:return t=e.displayName||null,t!==null?t:ts(e.type)||"Memo";case Ot:t=e._payload,e=e._init;try{return ts(e(t))}catch{}}return null}function mm(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 ts(t);case 8:return t===aa?"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 Vt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vm(e){var t=Vd(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(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ii(e){e._valueTracker||(e._valueTracker=vm(e))}function bd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Vd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Bi(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 ns(e,t){var n=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function gu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Vt(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 Hd(e,t){t=t.checked,t!=null&&sa(e,"checked",t,!1)}function rs(e,t){Hd(e,t);var n=Vt(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")?is(e,t.type,n):t.hasOwnProperty("defaultValue")&&is(e,t.type,Vt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function yu(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 is(e,t,n){(t!=="number"||Bi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var hr=Array.isArray;function Nn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=oi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function jr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var yr={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},gm=["Webkit","ms","Moz","O"];Object.keys(yr).forEach(function(e){gm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),yr[t]=yr[e]})});function Yd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||yr.hasOwnProperty(e)&&yr[e]?(""+t).trim():t+"px"}function Kd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Yd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var ym=K({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 ss(e,t){if(t){if(ym[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function as(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 us=null;function da(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cs=null,In=null,Fn=null;function xu(e){if(e=Xr(e)){if(typeof cs!="function")throw Error(k(280));var t=e.stateNode;t&&(t=Eo(t),cs(e.stateNode,e.type,t))}}function Gd(e){In?Fn?Fn.push(e):Fn=[e]:In=e}function Xd(){if(In){var e=In,t=Fn;if(Fn=In=null,xu(e),t)for(e=0;e>>=0,e===0?32:31-(jm(e)/Tm|0)|0}var li=64,si=4194304;function mr(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 Wi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~i;s!==0?r=mr(s):(o&=l,o!==0&&(r=mr(o)))}else l=n&~i,l!==0?r=mr(l):o!==0&&(r=mr(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 Kr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ge(t),e[t]=n}function Fm(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=Sr),Tu=String.fromCharCode(32),Au=!1;function yf(e,t){switch(e){case"keyup":return a0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xn=!1;function c0(e,t){switch(e){case"compositionend":return wf(t);case"keypress":return t.which!==32?null:(Au=!0,Tu);case"textInput":return e=t.data,e===Tu&&Au?null:e;default:return null}}function d0(e,t){if(xn)return e==="compositionend"||!wa&&yf(e,t)?(e=vf(),Ci=va=Tt=null,xn=!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=Lu(n)}}function kf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cf(){for(var e=window,t=Bi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Bi(e.document)}return t}function Sa(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 S0(e){var t=Cf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&kf(n.ownerDocument.documentElement,n)){if(r!==null&&Sa(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=Mu(n,o);var l=Mu(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,En=null,vs=null,Er=null,gs=!1;function zu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gs||En==null||En!==Bi(r)||(r=En,"selectionStart"in r&&Sa(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}),Er&&Lr(Er,r)||(Er=r,r=Yi(vs,"onSelect"),0On||(e.current=ks[On],ks[On]=null,On--)}function B(e,t){On++,ks[On]=e.current,e.current=t}var bt={},ge=Wt(bt),Pe=Wt(!1),an=bt;function $n(e,t){var n=e.type.contextTypes;if(!n)return bt;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 _e(e){return e=e.childContextTypes,e!=null}function Gi(){H(Pe),H(ge)}function Hu(e,t,n){if(ge.current!==bt)throw Error(k(168));B(ge,t),B(Pe,n)}function If(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(k(108,mm(e)||"Unknown",i));return K({},n,r)}function Xi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||bt,an=ge.current,B(ge,e),B(Pe,Pe.current),!0}function Wu(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=If(e,t,an),r.__reactInternalMemoizedMergedChildContext=e,H(Pe),H(ge),B(ge,e)):H(Pe),B(Pe,n)}var ft=null,ko=!1,hl=!1;function Ff(e){ft===null?ft=[e]:ft.push(e)}function N0(e){ko=!0,Ff(e)}function qt(){if(!hl&&ft!==null){hl=!0;var e=0,t=U;try{var n=ft;for(U=1;e>=l,i-=l,pt=1<<32-Ge(t)+i|n<_?(M=x,x=null):M=x.sibling;var A=f(h,x,v[_],w);if(A===null){x===null&&(x=M);break}e&&x&&A.alternate===null&&t(h,x),p=o(A,p,_),O===null?C=A:O.sibling=A,O=A,x=M}if(_===v.length)return n(h,x),W&&Gt(h,_),C;if(x===null){for(;__?(M=x,x=null):M=x.sibling;var q=f(h,x,A.value,w);if(q===null){x===null&&(x=M);break}e&&x&&q.alternate===null&&t(h,x),p=o(q,p,_),O===null?C=q:O.sibling=q,O=q,x=M}if(A.done)return n(h,x),W&&Gt(h,_),C;if(x===null){for(;!A.done;_++,A=v.next())A=c(h,A.value,w),A!==null&&(p=o(A,p,_),O===null?C=A:O.sibling=A,O=A);return W&&Gt(h,_),C}for(x=r(h,x);!A.done;_++,A=v.next())A=m(x,h,_,A.value,w),A!==null&&(e&&A.alternate!==null&&x.delete(A.key===null?_:A.key),p=o(A,p,_),O===null?C=A:O.sibling=A,O=A);return e&&x.forEach(function(G){return t(h,G)}),W&&Gt(h,_),C}function E(h,p,v,w){if(typeof v=="object"&&v!==null&&v.type===Sn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ri:e:{for(var C=v.key,O=p;O!==null;){if(O.key===C){if(C=v.type,C===Sn){if(O.tag===7){n(h,O.sibling),p=i(O,v.props.children),p.return=h,h=p;break e}}else if(O.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Ot&&Ju(C)===O.type){n(h,O.sibling),p=i(O,v.props),p.ref=ur(h,O,v),p.return=h,h=p;break e}n(h,O);break}else t(h,O);O=O.sibling}v.type===Sn?(p=rn(v.props.children,h.mode,w,v.key),p.return=h,h=p):(w=Ni(v.type,v.key,v.props,null,h.mode,w),w.ref=ur(h,p,v),w.return=h,h=w)}return l(h);case wn:e:{for(O=v.key;p!==null;){if(p.key===O)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(h,p.sibling),p=i(p,v.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=El(v,h.mode,w),p.return=h,h=p}return l(h);case Ot:return O=v._init,E(h,p,O(v._payload),w)}if(hr(v))return g(h,p,v,w);if(ir(v))return y(h,p,v,w);hi(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(h,p.sibling),p=i(p,v),p.return=h,h=p):(n(h,p),p=xl(v,h.mode,w),p.return=h,h=p),l(h)):n(h,p)}return E}var Bn=Vf(!0),bf=Vf(!1),Jr={},st=Wt(Jr),$r=Wt(Jr),Ur=Wt(Jr);function en(e){if(e===Jr)throw Error(k(174));return e}function ja(e,t){switch(B(Ur,t),B($r,e),B(st,Jr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ls(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ls(t,e)}H(st),B(st,t)}function Vn(){H(st),H($r),H(Ur)}function Hf(e){en(Ur.current);var t=en(st.current),n=ls(t,e.type);t!==n&&(B($r,e),B(st,n))}function Ta(e){$r.current===e&&(H(st),H($r))}var Q=Wt(0);function ro(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 ml=[];function Aa(){for(var e=0;en?n:4,e(!0);var r=vl.transition;vl.transition={};try{e(!1),t()}finally{U=n,vl.transition=r}}function lp(){return He().memoizedState}function M0(e,t,n){var r=$t(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sp(e))ap(t,n);else if(n=Df(e,t,n,r),n!==null){var i=Se();Xe(n,e,r,i),up(n,t,r)}}function z0(e,t,n){var r=$t(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(sp(e))ap(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,s=o(l,n);if(i.hasEagerState=!0,i.eagerState=s,Ze(s,l)){var a=t.interleaved;a===null?(i.next=i,_a(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Df(e,t,i,r),n!==null&&(i=Se(),Xe(n,e,r,i),up(n,t,r))}}function sp(e){var t=e.alternate;return e===Y||t!==null&&t===Y}function ap(e,t){kr=io=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function up(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pa(e,n)}}var oo={readContext:be,useCallback:he,useContext:he,useEffect:he,useImperativeHandle:he,useInsertionEffect:he,useLayoutEffect:he,useMemo:he,useReducer:he,useRef:he,useState:he,useDebugValue:he,useDeferredValue:he,useTransition:he,useMutableSource:he,useSyncExternalStore:he,useId:he,unstable_isNewReconciler:!1},D0={readContext:be,useCallback:function(e,t){return rt().memoizedState=[e,t===void 0?null:t],e},useContext:be,useEffect:ec,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ri(4194308,4,tp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ri(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ri(4,2,e,t)},useMemo:function(e,t){var n=rt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rt();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=M0.bind(null,Y,e),[r.memoizedState,e]},useRef:function(e){var t=rt();return e={current:e},t.memoizedState=e},useState:Zu,useDebugValue:Ma,useDeferredValue:function(e){return rt().memoizedState=e},useTransition:function(){var e=Zu(!1),t=e[0];return e=L0.bind(null,e[1]),rt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Y,i=rt();if(W){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),ae===null)throw Error(k(349));cn&30||Qf(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ec(Kf.bind(null,r,o,e),[e]),r.flags|=2048,br(9,Yf.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=rt(),t=ae.identifierPrefix;if(W){var n=ht,r=pt;n=(r&~(1<<32-Ge(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Br++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ot]=t,e[Dr]=r,yp(e,t,!1,!1),t.stateNode=e;e:{switch(l=as(n,r),n){case"dialog":V("cancel",e),V("close",e),i=r;break;case"iframe":case"object":case"embed":V("load",e),i=r;break;case"video":case"audio":for(i=0;iHn&&(t.flags|=128,r=!0,cr(o,!1),t.lanes=4194304)}else{if(!r)if(e=ro(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),cr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!W)return me(t),null}else 2*ee()-o.renderingStartTime>Hn&&n!==1073741824&&(t.flags|=128,r=!0,cr(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ee(),t.sibling=null,n=Q.current,B(Q,r?n&1|2:n&1),t):(me(t),null);case 22:case 23:return Va(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ae&1073741824&&(me(t),t.subtreeFlags&6&&(t.flags|=8192)):me(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function q0(e,t){switch(Ea(t),t.tag){case 1:return _e(t.type)&&Gi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vn(),H(Pe),H(ge),Aa(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ta(t),null;case 13:if(H(Q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));Un()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(Q),null;case 4:return Vn(),null;case 10:return Pa(t.type._context),null;case 22:case 23:return Va(),null;case 24:return null;default:return null}}var vi=!1,ve=!1,Q0=typeof WeakSet=="function"?WeakSet:Set,j=null;function jn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){J(e,t,r)}else n.current=null}function Ls(e,t,n){try{n()}catch(r){J(e,t,r)}}var uc=!1;function Y0(e,t){if(ys=qi,e=Cf(),Sa(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 l=0,s=-1,a=-1,u=0,d=0,c=e,f=null;t:for(;;){for(var m;c!==n||i!==0&&c.nodeType!==3||(s=l+i),c!==o||r!==0&&c.nodeType!==3||(a=l+r),c.nodeType===3&&(l+=c.nodeValue.length),(m=c.firstChild)!==null;)f=c,c=m;for(;;){if(c===e)break t;if(f===n&&++u===i&&(s=l),f===o&&++d===r&&(a=l),(m=c.nextSibling)!==null)break;c=f,f=c.parentNode}c=m}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ws={focusedElem:e,selectionRange:n},qi=!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 g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,E=g.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Qe(t.type,y),E);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(w){J(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return g=uc,uc=!1,g}function Cr(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&&Ls(t,n,o)}i=i.next}while(i!==r)}}function Po(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 Ms(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 xp(e){var t=e.alternate;t!==null&&(e.alternate=null,xp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ot],delete t[Dr],delete t[Es],delete t[T0],delete t[A0])),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 Ep(e){return e.tag===5||e.tag===3||e.tag===4}function cc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ep(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 zs(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=Ki));else if(r!==4&&(e=e.child,e!==null))for(zs(e,t,n),e=e.sibling;e!==null;)zs(e,t,n),e=e.sibling}function Ds(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(Ds(e,t,n),e=e.sibling;e!==null;)Ds(e,t,n),e=e.sibling}var ce=null,Ye=!1;function kt(e,t,n){for(n=n.child;n!==null;)kp(e,t,n),n=n.sibling}function kp(e,t,n){if(lt&&typeof lt.onCommitFiberUnmount=="function")try{lt.onCommitFiberUnmount(yo,n)}catch{}switch(n.tag){case 5:ve||jn(n,t);case 6:var r=ce,i=Ye;ce=null,kt(e,t,n),ce=r,Ye=i,ce!==null&&(Ye?(e=ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ce.removeChild(n.stateNode));break;case 18:ce!==null&&(Ye?(e=ce,n=n.stateNode,e.nodeType===8?pl(e.parentNode,n):e.nodeType===1&&pl(e,n),Ir(e)):pl(ce,n.stateNode));break;case 4:r=ce,i=Ye,ce=n.stateNode.containerInfo,Ye=!0,kt(e,t,n),ce=r,Ye=i;break;case 0:case 11:case 14:case 15:if(!ve&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&Ls(n,t,l),i=i.next}while(i!==r)}kt(e,t,n);break;case 1:if(!ve&&(jn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){J(n,t,s)}kt(e,t,n);break;case 21:kt(e,t,n);break;case 22:n.mode&1?(ve=(r=ve)||n.memoizedState!==null,kt(e,t,n),ve=r):kt(e,t,n);break;default:kt(e,t,n)}}function dc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Q0),t.forEach(function(r){var i=rv.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function qe(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,r=ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*G0(r/1960))-r,10e?16:e,At===null)var r=!1;else{if(e=At,At=null,ao=0,z&6)throw Error(k(331));var i=z;for(z|=4,j=e.current;j!==null;){var o=j,l=o.child;if(j.flags&16){var s=o.deletions;if(s!==null){for(var a=0;aee()-Ua?nn(e,0):$a|=n),Re(e,t)}function Ap(e,t){t===0&&(e.mode&1?(t=si,si<<=1,!(si&130023424)&&(si=4194304)):t=1);var n=Se();e=yt(e,t),e!==null&&(Kr(e,t,n),Re(e,n))}function nv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ap(e,n)}function rv(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(k(314))}r!==null&&r.delete(t),Ap(e,n)}var Np;Np=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Pe.current)Ce=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ce=!1,H0(e,t,n);Ce=!!(e.flags&131072)}else Ce=!1,W&&t.flags&1048576&&Lf(t,Zi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ji(e,t),e=t.pendingProps;var i=$n(t,ge.current);Mn(t,n),i=Ia(null,t,r,e,i,n);var o=Fa();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,_e(r)?(o=!0,Xi(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ra(t),i.updater=Co,t.stateNode=i,i._reactInternals=t,Rs(t,r,e,n),t=As(null,t,r,!0,o,n)):(t.tag=0,W&&o&&xa(t),ye(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ji(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=ov(r),e=Qe(r,e),i){case 0:t=Ts(null,t,r,e,n);break e;case 1:t=lc(null,t,r,e,n);break e;case 11:t=ic(null,t,r,e,n);break e;case 14:t=oc(null,t,r,Qe(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qe(r,i),Ts(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qe(r,i),lc(e,t,r,i,n);case 3:e:{if(mp(t),e===null)throw Error(k(387));r=t.pendingProps,o=t.memoizedState,i=o.element,$f(e,t),no(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=bn(Error(k(423)),t),t=sc(e,t,r,n,i);break e}else if(r!==i){i=bn(Error(k(424)),t),t=sc(e,t,r,n,i);break e}else for(Ne=Mt(t.stateNode.containerInfo.firstChild),Ie=t,W=!0,Ke=null,n=bf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Un(),r===i){t=wt(e,t,n);break e}ye(e,t,r,n)}t=t.child}return t;case 5:return Hf(t),e===null&&Os(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,Ss(r,i)?l=null:o!==null&&Ss(r,o)&&(t.flags|=32),hp(e,t),ye(e,t,l,n),t.child;case 6:return e===null&&Os(t),null;case 13:return vp(e,t,n);case 4:return ja(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Bn(t,null,r,n):ye(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qe(r,i),ic(e,t,r,i,n);case 7:return ye(e,t,t.pendingProps,n),t.child;case 8:return ye(e,t,t.pendingProps.children,n),t.child;case 12:return ye(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,B(eo,r._currentValue),r._currentValue=l,o!==null)if(Ze(o.value,l)){if(o.children===i.children&&!Pe.current){t=wt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){l=o.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=mt(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ps(o.return,n,t),s.lanes|=n;break}a=a.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(k(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Ps(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}ye(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Mn(t,n),i=be(i),r=r(i),t.flags|=1,ye(e,t,r,n),t.child;case 14:return r=t.type,i=Qe(r,t.pendingProps),i=Qe(r.type,i),oc(e,t,r,i,n);case 15:return fp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qe(r,i),ji(e,t),t.tag=1,_e(r)?(e=!0,Xi(t)):e=!1,Mn(t,n),Bf(t,r,i),Rs(t,r,i,n),As(null,t,r,!0,e,n);case 19:return gp(e,t,n);case 22:return pp(e,t,n)}throw Error(k(156,t.tag))};function Ip(e,t){return of(e,t)}function iv(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 Be(e,t,n,r){return new iv(e,t,n,r)}function Ha(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ov(e){if(typeof e=="function")return Ha(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ua)return 11;if(e===ca)return 14}return 2}function Ut(e,t){var n=e.alternate;return n===null?(n=Be(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 Ni(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")Ha(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Sn:return rn(n.children,i,o,t);case aa:l=8,i|=8;break;case Jl:return e=Be(12,n,t,i|2),e.elementType=Jl,e.lanes=o,e;case Zl:return e=Be(13,n,t,i),e.elementType=Zl,e.lanes=o,e;case es:return e=Be(19,n,t,i),e.elementType=es,e.lanes=o,e;case Bd:return Ro(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $d:l=10;break e;case Ud:l=9;break e;case ua:l=11;break e;case ca:l=14;break e;case Ot:l=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Be(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function rn(e,t,n,r){return e=Be(7,e,r,t),e.lanes=n,e}function Ro(e,t,n,r){return e=Be(22,e,r,t),e.elementType=Bd,e.lanes=n,e.stateNode={isHidden:!1},e}function xl(e,t,n){return e=Be(6,e,null,t),e.lanes=n,e}function El(e,t,n){return t=Be(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lv(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=nl(0),this.expirationTimes=nl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Wa(e,t,n,r,i,o,l,s,a){return e=new lv(e,t,n,s,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Be(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ra(o),e}function sv(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zp)}catch(e){console.error(e)}}zp(),Fd.exports=Le;var fv=Fd.exports,wc=fv;Gl.createRoot=wc.createRoot,Gl.hydrateRoot=wc.hydrateRoot;/** - * @remix-run/router v1.11.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 Wr(){return Wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Ka(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function hv(){return Math.random().toString(36).substr(2,8)}function xc(e,t){return{usr:e.state,key:e.key,idx:t}}function bs(e,t,n,r){return n===void 0&&(n=null),Wr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?er(t):t,{state:n,key:t&&t.key||r||hv()})}function Dp(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 er(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 mv(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,l=i.history,s=Nt.Pop,a=null,u=d();u==null&&(u=0,l.replaceState(Wr({},l.state,{idx:u}),""));function d(){return(l.state||{idx:null}).idx}function c(){s=Nt.Pop;let E=d(),h=E==null?null:E-u;u=E,a&&a({action:s,location:y.location,delta:h})}function f(E,h){s=Nt.Push;let p=bs(y.location,E,h);n&&n(p,E),u=d()+1;let v=xc(p,u),w=y.createHref(p);try{l.pushState(v,"",w)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(w)}o&&a&&a({action:s,location:y.location,delta:1})}function m(E,h){s=Nt.Replace;let p=bs(y.location,E,h);n&&n(p,E),u=d();let v=xc(p,u),w=y.createHref(p);l.replaceState(v,"",w),o&&a&&a({action:s,location:y.location,delta:0})}function g(E){let h=i.location.origin!=="null"?i.location.origin:i.location.href,p=typeof E=="string"?E:Dp(E);return oe(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let y={get action(){return s},get location(){return e(i,l)},listen(E){if(a)throw new Error("A history only accepts one active listener");return i.addEventListener(Sc,c),a=E,()=>{i.removeEventListener(Sc,c),a=null}},createHref(E){return t(i,E)},createURL:g,encodeLocation(E){let h=g(E);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:f,replace:m,go(E){return l.go(E)}};return y}var Ec;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ec||(Ec={}));function vv(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?er(t):t,i=Bp(r.pathname||"/",n);if(i==null)return null;let o=$p(e);gv(o);let l=null;for(let s=0;l==null&&s{let a={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};a.relativePath.startsWith("/")&&(oe(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=on([r,a.relativePath]),d=n.concat(a);o.children&&o.children.length>0&&(oe(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),$p(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:Cv(u,o.index),routesMeta:d})};return e.forEach((o,l)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,l);else for(let a of Up(o.path))i(o,l,a)}),t}function Up(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 l=Up(r.join("/")),s=[];return s.push(...l.map(a=>a===""?o:[o,a].join("/"))),i&&s.push(...l),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function gv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Ov(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const yv=/^:\w+$/,wv=3,Sv=2,xv=1,Ev=10,kv=-2,kc=e=>e==="*";function Cv(e,t){let n=e.split("/"),r=n.length;return n.some(kc)&&(r+=kv),t&&(r+=Sv),n.filter(i=>!kc(i)).reduce((i,o)=>i+(yv.test(o)?wv:o===""?xv:Ev),r)}function Ov(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 Pv(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let l=0;l{let{paramName:f,isOptional:m}=d;if(f==="*"){let y=s[c]||"";l=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const g=s[c];return m&&!g?u[f]=void 0:u[f]=Tv(g||"",f),u},{}),pathname:o,pathnameBase:l,pattern:e}}function Rv(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ka(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,(l,s,a)=>(r.push({paramName:s,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function jv(e){try{return decodeURI(e)}catch(t){return Ka(!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 Tv(e,t){try{return decodeURIComponent(e)}catch(n){return Ka(!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 Bp(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 Av(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?er(e):e;return{pathname:n?n.startsWith("/")?n:Nv(n,t):t,search:Mv(r),hash:zv(i)}}function Nv(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 kl(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 Iv(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Fv(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=er(e):(i=Wr({},e),oe(!i.pathname||!i.pathname.includes("?"),kl("?","pathname","search",i)),oe(!i.pathname||!i.pathname.includes("#"),kl("#","pathname","hash",i)),oe(!i.search||!i.search.includes("#"),kl("#","search","hash",i)));let o=e===""||i.pathname==="",l=o?"/":i.pathname,s;if(r||l==null)s=n;else{let c=t.length-1;if(l.startsWith("..")){let f=l.split("/");for(;f[0]==="..";)f.shift(),c-=1;i.pathname=f.join("/")}s=c>=0?t[c]:"/"}let a=Av(i,s),u=l&&l!=="/"&&l.endsWith("/"),d=(o||l===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||d)&&(a.pathname+="/"),a}const on=e=>e.join("/").replace(/\/\/+/g,"/"),Lv=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Mv=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,zv=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Dv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Vp=["post","put","patch","delete"];new Set(Vp);const $v=["get",...Vp];new Set($v);/** - * React Router v6.18.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 fo(){return fo=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.pathnameBase)),l=P.useRef(!1);return Wp(()=>{l.current=!0}),P.useCallback(function(a,u){if(u===void 0&&(u={}),!l.current)return;if(typeof a=="number"){n.go(a);return}let d=Fv(a,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:on([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,o,i,e])}function bv(e,t){return Hv(e,t)}function Hv(e,t,n){Lo()||oe(!1);let{navigator:r}=P.useContext(Io),{matches:i}=P.useContext(tr),o=i[i.length-1],l=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let a=Hp(),u;if(t){var d;let y=typeof t=="string"?er(t):t;s==="/"||(d=y.pathname)!=null&&d.startsWith(s)||oe(!1),u=y}else u=a;let c=u.pathname||"/",f=s==="/"?c:c.slice(s.length)||"/",m=vv(e,{pathname:f}),g=Kv(m&&m.map(y=>Object.assign({},y,{params:Object.assign({},l,y.params),pathname:on([s,r.encodeLocation?r.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:on([s,r.encodeLocation?r.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n);return t&&g?P.createElement(Fo.Provider,{value:{location:fo({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Nt.Pop}},g):g}function Wv(){let e=Zv(),t=Dv(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 P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:i},n):null,o)}const qv=P.createElement(Wv,null);class Qv extends P.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?P.createElement(tr.Provider,{value:this.props.routeContext},P.createElement(bp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Yv(e){let{routeContext:t,match:n,children:r}=e,i=P.useContext(Ga);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),P.createElement(tr.Provider,{value:t},r)}function Kv(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,l=(r=n)==null?void 0:r.errors;if(l!=null){let s=o.findIndex(a=>a.route.id&&(l==null?void 0:l[a.route.id]));s>=0||oe(!1),o=o.slice(0,Math.min(o.length,s+1))}return o.reduceRight((s,a,u)=>{let d=a.route.id?l==null?void 0:l[a.route.id]:null,c=null;n&&(c=a.route.errorElement||qv);let f=t.concat(o.slice(0,u+1)),m=()=>{let g;return d?g=c:a.route.Component?g=P.createElement(a.route.Component,null):a.route.element?g=a.route.element:g=s,P.createElement(Yv,{match:a,routeContext:{outlet:s,matches:f,isDataRoute:n!=null},children:g})};return n&&(a.route.ErrorBoundary||a.route.errorElement||u===0)?P.createElement(Qv,{location:n.location,revalidation:n.revalidation,component:c,error:d,children:m(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):m()},null)}var qp=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(qp||{}),po=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}(po||{});function Gv(e){let t=P.useContext(Ga);return t||oe(!1),t}function Xv(e){let t=P.useContext(Uv);return t||oe(!1),t}function Jv(e){let t=P.useContext(tr);return t||oe(!1),t}function Qp(e){let t=Jv(),n=t.matches[t.matches.length-1];return n.route.id||oe(!1),n.route.id}function Zv(){var e;let t=P.useContext(bp),n=Xv(po.UseRouteError),r=Qp(po.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function eg(){let{router:e}=Gv(qp.UseNavigateStable),t=Qp(po.UseNavigateStable),n=P.useRef(!1);return Wp(()=>{n.current=!0}),P.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,fo({fromRouteId:t},o)))},[e,t])}function Ii(e){oe(!1)}function tg(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Nt.Pop,navigator:o,static:l=!1}=e;Lo()&&oe(!1);let s=t.replace(/^\/*/,"/"),a=P.useMemo(()=>({basename:s,navigator:o,static:l}),[s,o,l]);typeof r=="string"&&(r=er(r));let{pathname:u="/",search:d="",hash:c="",state:f=null,key:m="default"}=r,g=P.useMemo(()=>{let y=Bp(u,s);return y==null?null:{location:{pathname:y,search:d,hash:c,state:f,key:m},navigationType:i}},[s,u,d,c,f,m,i]);return g==null?null:P.createElement(Io.Provider,{value:a},P.createElement(Fo.Provider,{children:n,value:g}))}function ng(e){let{children:t,location:n}=e;return bv(Hs(t),n)}new Promise(()=>{});function Hs(e,t){t===void 0&&(t=[]);let n=[];return P.Children.forEach(e,(r,i)=>{if(!P.isValidElement(r))return;let o=[...t,i];if(r.type===P.Fragment){n.push.apply(n,Hs(r.props.children,o));return}r.type!==Ii&&oe(!1),!r.props.index||!r.props.children||oe(!1);let l={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&&(l.children=Hs(r.props.children,o)),n.push(l)}),n}/** - * React Router DOM v6.18.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 - */const rg="startTransition",Cc=nm[rg];function ig(e){let{basename:t,children:n,future:r,window:i}=e,o=P.useRef();o.current==null&&(o.current=pv({window:i,v5Compat:!0}));let l=o.current,[s,a]=P.useState({action:l.action,location:l.location}),{v7_startTransition:u}=r||{},d=P.useCallback(c=>{u&&Cc?Cc(()=>a(c)):a(c)},[a,u]);return P.useLayoutEffect(()=>l.listen(d),[l,d]),P.createElement(tg,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:l})}var Oc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Oc||(Oc={}));var Pc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Pc||(Pc={}));var Oe=function(){return Oe=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0?se(nr,--We):0,qn--,te===10&&(qn=1,zo--),te}function Je(){return te=We2||qs(te)>3?"":" "}function mg(e,t){for(;--t&&Je()&&!(te<48||te>102||te>57&&te<65||te>70&&te<97););return $o(e,Li()+(t<6&&ln()==32&&Je()==32))}function Qs(e){for(;Je();)switch(te){case e:return We;case 34:case 39:e!==34&&e!==39&&Qs(te);break;case 40:e===41&&Qs(e);break;case 92:Je();break}return We}function vg(e,t){for(;Je()&&e+te!==47+10;)if(e+te===42+42&&ln()===47)break;return"/*"+$o(t,We-1)+"*"+Ja(e===47?e:Je())}function gg(e){for(;!qs(ln());)Je();return $o(e,We)}function yg(e){return pg(Mi("",null,null,null,[""],e=fg(e),0,[0],e))}function Mi(e,t,n,r,i,o,l,s,a){for(var u=0,d=0,c=l,f=0,m=0,g=0,y=1,E=1,h=1,p=0,v="",w=i,C=o,O=r,x=v;E;)switch(g=p,p=Je()){case 40:if(g!=108&&se(x,c-1)==58){Fi(x+=F(Cl(p),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:x+=Cl(p);break;case 9:case 10:case 13:case 32:x+=hg(g);break;case 92:x+=mg(Li()-1,7);continue;case 47:switch(ln()){case 42:case 47:gr(wg(vg(Je(),Li()),t,n,a),a);break;default:x+="/"}break;case 123*y:s[u++]=it(x)*h;case 125*y:case 59:case 0:switch(p){case 0:case 125:E=0;case 59+d:h==-1&&(x=F(x,/\f/g,"")),m>0&&it(x)-c&&gr(m>32?jc(x+";",r,n,c-1,a):jc(F(x," ","")+";",r,n,c-2,a),a);break;case 59:x+=";";default:if(gr(O=Rc(x,t,n,u,d,i,s,v,w=[],C=[],c,o),o),p===123)if(d===0)Mi(x,t,O,O,w,o,c,s,C);else switch(f===99&&se(x,3)===110?100:f){case 100:case 108:case 109:case 115:Mi(e,O,O,r&&gr(Rc(e,O,O,0,0,i,s,v,i,w=[],c,C),C),i,C,c,s,r?w:C);break;default:Mi(x,O,O,O,[""],C,0,s,C)}}u=d=m=0,y=h=1,v=x="",c=l;break;case 58:c=1+it(x),m=g;default:if(y<1){if(p==123)--y;else if(p==125&&y++==0&&dg()==125)continue}switch(x+=Ja(p),p*y){case 38:h=d>0?1:(x+="\f",-1);break;case 44:s[u++]=(it(x)-1)*h,h=1;break;case 64:ln()===45&&(x+=Cl(Je())),f=ln(),d=c=it(v=x+=gg(Li())),p++;break;case 45:g===45&&it(x)==2&&(y=0)}}return o}function Rc(e,t,n,r,i,o,l,s,a,u,d,c){for(var f=i-1,m=i===0?o:[""],g=Xp(m),y=0,E=0,h=0;y0?m[p]+" "+v:F(v,/&\f/g,m[p])))&&(a[h++]=w);return Do(e,t,n,i===0?Mo:s,a,u,d,c)}function wg(e,t,n,r){return Do(e,t,n,Yp,Ja(cg()),Wn(e,2,-2),0,r)}function jc(e,t,n,r,i){return Do(e,t,n,Xa,Wn(e,0,r),Wn(e,r+1,-1),r,i)}function Zp(e,t,n){switch(ag(e,t)){case 5103:return $+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return $+e+e;case 4789:return _r+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $+e+_r+e+b+e+e;case 5936:switch(se(e,t+11)){case 114:return $+e+b+F(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $+e+b+F(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $+e+b+F(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return $+e+b+e+e;case 6165:return $+e+b+"flex-"+e+e;case 5187:return $+e+F(e,/(\w+).+(:[^]+)/,$+"box-$1$2"+b+"flex-$1$2")+e;case 5443:return $+e+b+"flex-item-"+F(e,/flex-|-self/g,"")+(dt(e,/flex-|baseline/)?"":b+"grid-row-"+F(e,/flex-|-self/g,""))+e;case 4675:return $+e+b+"flex-line-pack"+F(e,/align-content|flex-|-self/g,"")+e;case 5548:return $+e+b+F(e,"shrink","negative")+e;case 5292:return $+e+b+F(e,"basis","preferred-size")+e;case 6060:return $+"box-"+F(e,"-grow","")+$+e+b+F(e,"grow","positive")+e;case 4554:return $+F(e,/([^-])(transform)/g,"$1"+$+"$2")+e;case 6187:return F(F(F(e,/(zoom-|grab)/,$+"$1"),/(image-set)/,$+"$1"),e,"")+e;case 5495:case 3959:return F(e,/(image-set\([^]*)/,$+"$1$`$1");case 4968:return F(F(e,/(.+:)(flex-)?(.*)/,$+"box-pack:$3"+b+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$+e+e;case 4200:if(!dt(e,/flex-|baseline/))return b+"grid-column-align"+Wn(e,t)+e;break;case 2592:case 3360:return b+F(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,dt(r.props,/grid-\w+-end/)})?~Fi(e+(n=n[t].value),"span")?e:b+F(e,"-start","")+e+b+"grid-row-span:"+(~Fi(n,"span")?dt(n,/\d+/):+dt(n,/\d+/)-+dt(e,/\d+/))+";":b+F(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return dt(r.props,/grid-\w+-start/)})?e:b+F(F(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return F(e,/(.+)-inline(.+)/,$+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(it(e)-1-t>6)switch(se(e,t+1)){case 109:if(se(e,t+4)!==45)break;case 102:return F(e,/(.+:)(.+)-([^]+)/,"$1"+$+"$2-$3$1"+_r+(se(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Fi(e,"stretch")?Zp(F(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return F(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,l,s,a,u){return b+i+":"+o+u+(l?b+i+"-span:"+(s?a:+a-+o)+u:"")+e});case 4949:if(se(e,t+6)===121)return F(e,":",":"+$)+e;break;case 6444:switch(se(e,se(e,14)===45?18:11)){case 120:return F(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+$+(se(e,14)===45?"inline-":"")+"box$3$1"+$+"$2$3$1"+b+"$2box$3")+e;case 100:return F(e,":",":"+b)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return F(e,"scroll-","scroll-snap-")+e}return e}function mo(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case Xa:e.return=Zp(e.value,e.length,n);return;case Kp:return mo([Ct(e,{value:F(e.value,"@","@"+$)})],r);case Mo:if(e.length)return ug(n=e.props,function(i){switch(dt(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":vn(Ct(e,{props:[F(i,/:(read-\w+)/,":"+_r+"$1")]})),vn(Ct(e,{props:[i]})),Ws(e,{props:_c(n,r)});break;case"::placeholder":vn(Ct(e,{props:[F(i,/:(plac\w+)/,":"+$+"input-$1")]})),vn(Ct(e,{props:[F(i,/:(plac\w+)/,":"+_r+"$1")]})),vn(Ct(e,{props:[F(i,/:(plac\w+)/,b+"input-$1")]})),vn(Ct(e,{props:[i]})),Ws(e,{props:_c(n,r)});break}return""})}}var Cg={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Qn=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",Za=typeof window<"u"&&"HTMLElement"in window,Og=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==""?{}.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&{}.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.SC_DISABLE_SPEEDY!==void 0&&{}.SC_DISABLE_SPEEDY!==""&&{}.SC_DISABLE_SPEEDY!=="false"&&{}.SC_DISABLE_SPEEDY),Uo=Object.freeze([]),Yn=Object.freeze({});function Pg(e,t,n){return n===void 0&&(n=Yn),e.theme!==n.theme&&e.theme||t||n.theme}var eh=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),_g=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Rg=/(^-|-$)/g;function Tc(e){return e.replace(_g,"-").replace(Rg,"")}var jg=/(a)(d)/gi,Ac=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ys(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Ac(t%52)+n;return(Ac(t%52)+n).replace(jg,"$1-$2")}var Ol,An=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},th=function(e){return An(5381,e)};function Tg(e){return Ys(th(e)>>>0)}function Ag(e){return e.displayName||e.name||"Component"}function Pl(e){return typeof e=="string"&&!0}var nh=typeof Symbol=="function"&&Symbol.for,rh=nh?Symbol.for("react.memo"):60115,Ng=nh?Symbol.for("react.forward_ref"):60112,Ig={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Fg={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ih={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Lg=((Ol={})[Ng]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ol[rh]=ih,Ol);function Nc(e){return("type"in(t=e)&&t.type.$$typeof)===rh?ih:"$$typeof"in e?Lg[e.$$typeof]:Ig;var t}var Mg=Object.defineProperty,zg=Object.getOwnPropertyNames,Ic=Object.getOwnPropertySymbols,Dg=Object.getOwnPropertyDescriptor,$g=Object.getPrototypeOf,Fc=Object.prototype;function oh(e,t,n){if(typeof t!="string"){if(Fc){var r=$g(t);r&&r!==Fc&&oh(e,r,n)}var i=zg(t);Ic&&(i=i.concat(Ic(t)));for(var o=Nc(e),l=Nc(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}var Ug=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw Zr(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var l=i;l=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,l=i;l=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(E+="".concat(h,","))}),a+="".concat(g).concat(y,'{content:"').concat(E,'"}').concat(`/*!sc*/ -`)},d=0;d0?".".concat(t):f},d=a.slice();d.push(function(f){f.type===Mo&&f.value.includes("&")&&(f.props[0]=f.props[0].replace(Xg,n).replace(r,u))}),l.prefix&&d.push(kg),d.push(Sg);var c=function(f,m,g,y){m===void 0&&(m=""),g===void 0&&(g=""),y===void 0&&(y="&"),t=y,n=m,r=new RegExp("\\".concat(n,"\\b"),"g");var E=f.replace(Jg,""),h=yg(g||m?"".concat(g," ").concat(m," { ").concat(E," }"):E);l.namespace&&(h=ah(h,l.namespace));var p=[];return mo(h,xg(d.concat(Eg(function(v){return p.push(v)})))),p};return c.hash=a.length?a.reduce(function(f,m){return m.name||Zr(15),An(f,m.name)},5381).toString():"",c}var ey=new sh,Gs=Zg(),uh=we.createContext({shouldForwardProp:void 0,styleSheet:ey,stylis:Gs});uh.Consumer;we.createContext(void 0);function zc(){return P.useContext(uh)}var ty=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=Gs);var l=r.name+o.hash;i.hasNameForId(r.id,l)||i.insertRules(r.id,l,o(r.rules,l,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,tu(this,function(){throw Zr(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Gs),this.name+t.hash},e}(),ny=function(e){return e>="A"&&e<="Z"};function Dc(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,l)){var s=r(o,".".concat(l),void 0,this.componentId);n.insertRules(this.componentId,l,s)}i=tn(i,l),this.staticRulesId=l}else{for(var a=An(this.baseHash,r.hash),u="",d=0;d>>0);n.hasNameForId(this.componentId,m)||n.insertRules(this.componentId,m,r(u,".".concat(m),void 0,this.componentId)),i=tn(i,m)}}return i},e}(),fh=we.createContext(void 0);fh.Consumer;var _l={};function ly(e,t,n){var r=eu(e),i=e,o=!Pl(e),l=t.attrs,s=l===void 0?Uo:l,a=t.componentId,u=a===void 0?function(w,C){var O=typeof w!="string"?"sc":Tc(w);_l[O]=(_l[O]||0)+1;var x="".concat(O,"-").concat(Tg("6.1.1"+O+_l[O]));return C?"".concat(C,"-").concat(x):x}(t.displayName,t.parentComponentId):a,d=t.displayName,c=d===void 0?function(w){return Pl(w)?"styled.".concat(w):"Styled(".concat(Ag(w),")")}(e):d,f=t.displayName&&t.componentId?"".concat(Tc(t.displayName),"-").concat(t.componentId):t.componentId||u,m=r&&i.attrs?i.attrs.concat(s).filter(Boolean):s,g=t.shouldForwardProp;if(r&&i.shouldForwardProp){var y=i.shouldForwardProp;if(t.shouldForwardProp){var E=t.shouldForwardProp;g=function(w,C){return y(w,C)&&E(w,C)}}else g=y}var h=new oy(n,f,r?i.componentStyle:void 0);function p(w,C){return function(O,x,_){var M=O.attrs,A=O.componentStyle,q=O.defaultProps,G=O.foldedComponentIds,ue=O.styledComponentId,et=O.target,Ko=we.useContext(fh),rr=zc(),Yt=O.shouldForwardProp||rr.shouldForwardProp,R=function(ze,ut,De){for(var tt,Kt=Oe(Oe({},ut),{className:void 0,theme:De}),Go=0;Go{let t;const n=new Set,r=(a,u)=>{const d=typeof a=="function"?a(t):a;if(!Object.is(d,t)){const c=t;t=u??typeof d!="object"?d:Object.assign({},t,d),n.forEach(f=>f(t,c))}},i=()=>t,s={setState:r,getState:i,subscribe:a=>(n.add(a),()=>n.delete(a)),destroy:()=>{n.clear()}};return t=e(r,i,s),s},ay=e=>e?Bc(e):Bc;var hh={exports:{}},mh={},vh={exports:{}},gh={};/** - * @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 Gn=P;function uy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var cy=typeof Object.is=="function"?Object.is:uy,dy=Gn.useState,fy=Gn.useEffect,py=Gn.useLayoutEffect,hy=Gn.useDebugValue;function my(e,t){var n=t(),r=dy({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return py(function(){i.value=n,i.getSnapshot=t,Rl(i)&&o({inst:i})},[e,n,t]),fy(function(){return Rl(i)&&o({inst:i}),e(function(){Rl(i)&&o({inst:i})})},[e]),hy(n),n}function Rl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!cy(e,n)}catch{return!0}}function vy(e,t){return t()}var gy=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?vy:my;gh.useSyncExternalStore=Gn.useSyncExternalStore!==void 0?Gn.useSyncExternalStore:gy;vh.exports=gh;var yy=vh.exports;/** - * @license React - * use-sync-external-store-shim/with-selector.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 Bo=P,wy=yy;function Sy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xy=typeof Object.is=="function"?Object.is:Sy,Ey=wy.useSyncExternalStore,ky=Bo.useRef,Cy=Bo.useEffect,Oy=Bo.useMemo,Py=Bo.useDebugValue;mh.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=ky(null);if(o.current===null){var l={hasValue:!1,value:null};o.current=l}else l=o.current;o=Oy(function(){function a(m){if(!u){if(u=!0,d=m,m=r(m),i!==void 0&&l.hasValue){var g=l.value;if(i(g,m))return c=g}return c=m}if(g=c,xy(d,m))return g;var y=r(m);return i!==void 0&&i(g,y)?g:(d=m,c=y)}var u=!1,d,c,f=n===void 0?null:n;return[function(){return a(t())},f===null?void 0:function(){return a(f())}]},[t,n,r,i]);var s=Ey(e,o[0],o[1]);return Cy(function(){l.hasValue=!0,l.value=s},[s]),Py(s),s};hh.exports=mh;var _y=hh.exports;const Ry=kd(_y),{useDebugValue:jy}=we,{useSyncExternalStoreWithSelector:Ty}=Ry;function Ay(e,t=e.getState,n){const r=Ty(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return jy(r),r}const Vc=e=>{const t=typeof e=="function"?ay(e):e,n=(r,i)=>Ay(t,r,i);return Object.assign(n,t),n},yh=e=>e?Vc(e):Vc,Js=new Map,Si=e=>{const t=Js.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},Ny=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=Js.get(n.name);if(r)return{type:"tracked",store:e,...r};const i={connection:t.connect(n),stores:{}};return Js.set(n.name,i),{type:"tracked",store:e,...i}},Iy=(e,t={})=>(n,r,i)=>{const{enabled:o,anonymousActionType:l,store:s,...a}=t;let u;try{u=(o??!1)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return e(n,r,i);const{connection:d,...c}=Ny(s,u,a);let f=!0;i.setState=(y,E,h)=>{const p=n(y,E);if(!f)return p;const v=h===void 0?{type:l||"anonymous"}:typeof h=="string"?{type:h}:h;return s===void 0?(d==null||d.send(v,r()),p):(d==null||d.send({...v,type:`${s}/${v.type}`},{...Si(a.name),[s]:i.getState()}),p)};const m=(...y)=>{const E=f;f=!1,n(...y),f=E},g=e(i.setState,r,i);if(c.type==="untracked"?d==null||d.init(g):(c.stores[c.store]=i,d==null||d.init(Object.fromEntries(Object.entries(c.stores).map(([y,E])=>[y,y===c.store?g:E.getState()])))),i.dispatchFromDevtools&&typeof i.dispatch=="function"){let y=!1;const E=i.dispatch;i.dispatch=(...h)=>{E(...h)}}return d.subscribe(y=>{var E;switch(y.type){case"ACTION":if(typeof y.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return jl(y.payload,h=>{if(h.type==="__setState"){if(s===void 0){m(h.state);return}Object.keys(h.state).length!==1&&console.error(` - [zustand devtools middleware] Unsupported __setState action format. - When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), - and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } - `);const p=h.state[s];if(p==null)return;JSON.stringify(i.getState())!==JSON.stringify(p)&&m(p);return}i.dispatchFromDevtools&&typeof i.dispatch=="function"&&i.dispatch(h)});case"DISPATCH":switch(y.payload.type){case"RESET":return m(g),s===void 0?d==null?void 0:d.init(i.getState()):d==null?void 0:d.init(Si(a.name));case"COMMIT":if(s===void 0){d==null||d.init(i.getState());return}return d==null?void 0:d.init(Si(a.name));case"ROLLBACK":return jl(y.state,h=>{if(s===void 0){m(h),d==null||d.init(i.getState());return}m(h[s]),d==null||d.init(Si(a.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return jl(y.state,h=>{if(s===void 0){m(h);return}JSON.stringify(i.getState())!==JSON.stringify(h[s])&&m(h[s])});case"IMPORT_STATE":{const{nextLiftedState:h}=y.payload,p=(E=h.computedStates.slice(-1)[0])==null?void 0:E.state;if(!p)return;m(s===void 0?p:p[s]),d==null||d.send(null,h);return}case"PAUSE_RECORDING":return f=!f}return}}),g},wh=Iy,jl=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)},nu=yh()(wh(e=>({expressionData:[],cautionData:[],terminologyData:[],setExpressionData:t=>e({expressionData:t}),setCautionData:t=>e({cautionData:t}),setTerminologyData:t=>e({terminologyData:t})}))),Fy=()=>{const{expressionData:e,cautionData:t,terminologyData:n}=nu();return console.log("표현해석:",e),console.log("주의사항:",t),console.log("법률 단어:",n),S.jsxs(Ly,{children:[S.jsx(My,{children:S.jsxs(zy,{children:[S.jsx(Dy,{children:"Analytics"}),S.jsx($y,{children:"계약서 분석 자료"})]})}),S.jsx(Uy,{children:S.jsxs(By,{children:[e&&e.map((r,i)=>S.jsx(bc,{children:r},i)),t&&t.map((r,i)=>S.jsx(bc,{children:r},i))]})})]})},Ly=T.div` - /* width: 462px; - height: 330px; */ - width: 90%; - height: 80%; - padding: 2rem; - border-radius: 10px; - border: 1px solid #e4e4e7; - - display: flex; - flex-direction: column; - justify-content: space-between; -`,My=T.div` - width: 100%; - display: flex; - justify-content: space-between; -`,zy=T.div` - display: flex; - flex-direction: column; -`,Dy=T.p` - padding: 0; - margin: 0; - color: #000; - font-family: Pretendard; - font-size: 16px; - font-style: bold; - font-weight: 700; - line-height: normal; -`,$y=T.p` - padding: 0; - margin: 0; - color: #000; - color: #000; - - font-family: Pretendard; - font-size: 12px; - font-style: normal; - font-weight: 500; - line-height: normal; -`,bc=T.p` - padding: 0; - margin-bottom: 1rem; - color: #000; - font-family: Pretendard; - font-size: 14px; - font-style: normal; - font-weight: 600; - line-height: normal; -`,Uy=T.div` - height: 100%; - margin-top: 1rem; - overflow: auto; - padding-right: 0.5rem; - - &::-webkit-scrollbar { - width: 8px; /* Width of scrollbar */ - height: 0px; /* Set to 0 for horizontal scrollbar */ - } - - &::-webkit-scrollbar-thumb { - background-color: #000000; /* Scrollbar color */ - border-radius: 4px; /* Round the corners of the scrollbar */ - } - - &::-webkit-scrollbar-track { - background-color: #f1f1f1; /* Color of scrollbar track */ - } -`,By=T.div` - margin-bottom: 1rem; -`;var Qr={},Sh={},ru={exports:{}},xh=function(t,n){return function(){for(var i=new Array(arguments.length),o=0;o"u"}function by(e){return e!==null&&!Zs(e)&&e.constructor!==null&&!Zs(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Eh(e){return Qt.call(e)==="[object ArrayBuffer]"}function Hy(e){return Qt.call(e)==="[object FormData]"}function Wy(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Eh(e.buffer),t}function qy(e){return typeof e=="string"}function Qy(e){return typeof e=="number"}function kh(e){return e!==null&&typeof e=="object"}function $i(e){if(Qt.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Yy(e){return Qt.call(e)==="[object Date]"}function Ky(e){return Qt.call(e)==="[object File]"}function Gy(e){return Qt.call(e)==="[object Blob]"}function Ch(e){return Qt.call(e)==="[object Function]"}function Xy(e){return kh(e)&&Ch(e.pipe)}function Jy(e){return Qt.call(e)==="[object URLSearchParams]"}function Zy(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function e1(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function ou(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),iu(e))for(var n=0,r=e.length;n"u"||(gn.isArray(a)?u=u+"[]":a=[a],gn.forEach(a,function(c){gn.isDate(c)?c=c.toISOString():gn.isObject(c)&&(c=JSON.stringify(c)),o.push(Hc(u)+"="+Hc(c))}))}),i=o.join("&")}if(i){var l=t.indexOf("#");l!==-1&&(t=t.slice(0,l)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},r1=je;function Vo(){this.handlers=[]}Vo.prototype.use=function(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};Vo.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Vo.prototype.forEach=function(t){r1.forEach(this.handlers,function(r){r!==null&&t(r)})};var i1=Vo,o1=je,l1=function(t,n){o1.forEach(t,function(i,o){o!==n&&o.toUpperCase()===n.toUpperCase()&&(t[n]=i,delete t[o])})},Ph=function(t,n,r,i,o){return t.config=n,r&&(t.code=r),t.request=i,t.response=o,t.isAxiosError=!0,t.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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},_h={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Tl,Wc;function Rh(){if(Wc)return Tl;Wc=1;var e=Ph;return Tl=function(n,r,i,o,l){var s=new Error(n);return e(s,r,i,o,l)},Tl}var Al,qc;function s1(){if(qc)return Al;qc=1;var e=Rh();return Al=function(n,r,i){var o=i.config.validateStatus;!i.status||!o||o(i.status)?n(i):r(e("Request failed with status code "+i.status,i.config,null,i.request,i))},Al}var Nl,Qc;function a1(){if(Qc)return Nl;Qc=1;var e=je;return Nl=e.isStandardBrowserEnv()?function(){return{write:function(r,i,o,l,s,a){var u=[];u.push(r+"="+encodeURIComponent(i)),e.isNumber(o)&&u.push("expires="+new Date(o).toGMTString()),e.isString(l)&&u.push("path="+l),e.isString(s)&&u.push("domain="+s),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(r){var i=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Nl}var Il,Yc;function u1(){return Yc||(Yc=1,Il=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),Il}var Fl,Kc;function c1(){return Kc||(Kc=1,Fl=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}),Fl}var Ll,Gc;function d1(){if(Gc)return Ll;Gc=1;var e=u1(),t=c1();return Ll=function(r,i){return r&&!e(i)?t(r,i):i},Ll}var Ml,Xc;function f1(){if(Xc)return Ml;Xc=1;var e=je,t=["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"];return Ml=function(r){var i={},o,l,s;return r&&e.forEach(r.split(` -`),function(u){if(s=u.indexOf(":"),o=e.trim(u.substr(0,s)).toLowerCase(),l=e.trim(u.substr(s+1)),o){if(i[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?i[o]=(i[o]?i[o]:[]).concat([l]):i[o]=i[o]?i[o]+", "+l:l}}),i},Ml}var zl,Jc;function p1(){if(Jc)return zl;Jc=1;var e=je;return zl=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),i;function o(l){var s=l;return n&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=o(window.location.href),function(s){var a=e.isString(s)?o(s):s;return a.protocol===i.protocol&&a.host===i.host}}():function(){return function(){return!0}}(),zl}var Dl,Zc;function bo(){if(Zc)return Dl;Zc=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,Dl=e,Dl}var $l,ed;function td(){if(ed)return $l;ed=1;var e=je,t=s1(),n=a1(),r=Oh,i=d1(),o=f1(),l=p1(),s=Rh(),a=_h,u=bo();return $l=function(c){return new Promise(function(m,g){var y=c.data,E=c.headers,h=c.responseType,p;function v(){c.cancelToken&&c.cancelToken.unsubscribe(p),c.signal&&c.signal.removeEventListener("abort",p)}e.isFormData(y)&&delete E["Content-Type"];var w=new XMLHttpRequest;if(c.auth){var C=c.auth.username||"",O=c.auth.password?unescape(encodeURIComponent(c.auth.password)):"";E.Authorization="Basic "+btoa(C+":"+O)}var x=i(c.baseURL,c.url);w.open(c.method.toUpperCase(),r(x,c.params,c.paramsSerializer),!0),w.timeout=c.timeout;function _(){if(w){var A="getAllResponseHeaders"in w?o(w.getAllResponseHeaders()):null,q=!h||h==="text"||h==="json"?w.responseText:w.response,G={data:q,status:w.status,statusText:w.statusText,headers:A,config:c,request:w};t(function(et){m(et),v()},function(et){g(et),v()},G),w=null}}if("onloadend"in w?w.onloadend=_:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(_)},w.onabort=function(){w&&(g(s("Request aborted",c,"ECONNABORTED",w)),w=null)},w.onerror=function(){g(s("Network Error",c,null,w)),w=null},w.ontimeout=function(){var q=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",G=c.transitional||a;c.timeoutErrorMessage&&(q=c.timeoutErrorMessage),g(s(q,c,G.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",w)),w=null},e.isStandardBrowserEnv()){var M=(c.withCredentials||l(x))&&c.xsrfCookieName?n.read(c.xsrfCookieName):void 0;M&&(E[c.xsrfHeaderName]=M)}"setRequestHeader"in w&&e.forEach(E,function(q,G){typeof y>"u"&&G.toLowerCase()==="content-type"?delete E[G]:w.setRequestHeader(G,q)}),e.isUndefined(c.withCredentials)||(w.withCredentials=!!c.withCredentials),h&&h!=="json"&&(w.responseType=c.responseType),typeof c.onDownloadProgress=="function"&&w.addEventListener("progress",c.onDownloadProgress),typeof c.onUploadProgress=="function"&&w.upload&&w.upload.addEventListener("progress",c.onUploadProgress),(c.cancelToken||c.signal)&&(p=function(A){w&&(g(!A||A&&A.type?new u("canceled"):A),w.abort(),w=null)},c.cancelToken&&c.cancelToken.subscribe(p),c.signal&&(c.signal.aborted?p():c.signal.addEventListener("abort",p))),y||(y=null),w.send(y)})},$l}var de=je,nd=l1,h1=Ph,m1=_h,v1={"Content-Type":"application/x-www-form-urlencoded"};function rd(e,t){!de.isUndefined(e)&&de.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function g1(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=td()),e}function y1(e,t,n){if(de.isString(e))try{return(t||JSON.parse)(e),de.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var Ho={transitional:m1,adapter:g1(),transformRequest:[function(t,n){return nd(n,"Accept"),nd(n,"Content-Type"),de.isFormData(t)||de.isArrayBuffer(t)||de.isBuffer(t)||de.isStream(t)||de.isFile(t)||de.isBlob(t)?t:de.isArrayBufferView(t)?t.buffer:de.isURLSearchParams(t)?(rd(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):de.isObject(t)||n&&n["Content-Type"]==="application/json"?(rd(n,"application/json"),y1(t)):t}],transformResponse:[function(t){var n=this.transitional||Ho.transitional,r=n&&n.silentJSONParsing,i=n&&n.forcedJSONParsing,o=!r&&this.responseType==="json";if(o||i&&de.isString(t)&&t.length)try{return JSON.parse(t)}catch(l){if(o)throw l.name==="SyntaxError"?h1(l,this,"E_JSON_PARSE"):l}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};de.forEach(["delete","get","head"],function(t){Ho.headers[t]={}});de.forEach(["post","put","patch"],function(t){Ho.headers[t]=de.merge(v1)});var lu=Ho,w1=je,S1=lu,x1=function(t,n,r){var i=this||S1;return w1.forEach(r,function(l){t=l.call(i,t,n)}),t},Ul,id;function jh(){return id||(id=1,Ul=function(t){return!!(t&&t.__CANCEL__)}),Ul}var od=je,Bl=x1,E1=jh(),k1=lu,C1=bo();function Vl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new C1("canceled")}var O1=function(t){Vl(t),t.headers=t.headers||{},t.data=Bl.call(t,t.data,t.headers,t.transformRequest),t.headers=od.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),od.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var n=t.adapter||k1.adapter;return n(t).then(function(i){return Vl(t),i.data=Bl.call(t,i.data,i.headers,t.transformResponse),i},function(i){return E1(i)||(Vl(t),i&&i.response&&(i.response.data=Bl.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},Te=je,Th=function(t,n){n=n||{};var r={};function i(d,c){return Te.isPlainObject(d)&&Te.isPlainObject(c)?Te.merge(d,c):Te.isPlainObject(c)?Te.merge({},c):Te.isArray(c)?c.slice():c}function o(d){if(Te.isUndefined(n[d])){if(!Te.isUndefined(t[d]))return i(void 0,t[d])}else return i(t[d],n[d])}function l(d){if(!Te.isUndefined(n[d]))return i(void 0,n[d])}function s(d){if(Te.isUndefined(n[d])){if(!Te.isUndefined(t[d]))return i(void 0,t[d])}else return i(void 0,n[d])}function a(d){if(d in n)return i(t[d],n[d]);if(d in t)return i(void 0,t[d])}var u={url:l,method:l,data:l,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,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a};return Te.forEach(Object.keys(t).concat(Object.keys(n)),function(c){var f=u[c]||o,m=f(c);Te.isUndefined(m)&&f!==a||(r[c]=m)}),r},bl,ld;function Ah(){return ld||(ld=1,bl={version:"0.26.1"}),bl}var P1=Ah().version,su={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){su[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var sd={};su.transitional=function(t,n,r){function i(o,l){return"[Axios v"+P1+"] Transitional option '"+o+"'"+l+(r?". "+r:"")}return function(o,l,s){if(t===!1)throw new Error(i(l," has been removed"+(n?" in "+n:"")));return n&&!sd[l]&&(sd[l]=!0,console.warn(i(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,l,s):!0}};function _1(e,t,n){if(typeof e!="object")throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],l=t[o];if(l){var s=e[o],a=s===void 0||l(s,o,e);if(a!==!0)throw new TypeError("option "+o+" must be "+a);continue}if(n!==!0)throw Error("Unknown option "+o)}}var R1={assertOptions:_1,validators:su},Nh=je,j1=Oh,ad=i1,ud=O1,Wo=Th,Ih=R1,yn=Ih.validators;function ei(e){this.defaults=e,this.interceptors={request:new ad,response:new ad}}ei.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Wo(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&Ih.assertOptions(r,{silentJSONParsing:yn.transitional(yn.boolean),forcedJSONParsing:yn.transitional(yn.boolean),clarifyTimeoutError:yn.transitional(yn.boolean)},!1);var i=[],o=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(o=o&&m.synchronous,i.unshift(m.fulfilled,m.rejected))});var l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});var s;if(!o){var a=[ud,void 0];for(Array.prototype.unshift.apply(a,i),a=a.concat(l),s=Promise.resolve(n);a.length;)s=s.then(a.shift(),a.shift());return s}for(var u=n;i.length;){var d=i.shift(),c=i.shift();try{u=d(u)}catch(f){c(f);break}}try{s=ud(u)}catch(f){return Promise.reject(f)}for(;l.length;)s=s.then(l.shift(),l.shift());return s};ei.prototype.getUri=function(t){return t=Wo(this.defaults,t),j1(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};Nh.forEach(["delete","get","head","options"],function(t){ei.prototype[t]=function(n,r){return this.request(Wo(r||{},{method:t,url:n,data:(r||{}).data}))}});Nh.forEach(["post","put","patch"],function(t){ei.prototype[t]=function(n,r,i){return this.request(Wo(i||{},{method:t,url:n,data:r}))}});var T1=ei,Hl,cd;function A1(){if(cd)return Hl;cd=1;var e=bo();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(l){r=l});var i=this;this.promise.then(function(o){if(i._listeners){var l,s=i._listeners.length;for(l=0;l{const l=Object.assign(Object.assign({},e.options),{url:((r==null?void 0:r.basePath)||o)+e.url});return i.request(l)}};(function(e){var t=jt&&jt.__awaiter||function(l,s,a,u){function d(c){return c instanceof a?c:new a(function(f){f(c)})}return new(a||(a=Promise))(function(c,f){function m(E){try{y(u.next(E))}catch(h){f(h)}}function g(E){try{y(u.throw(E))}catch(h){f(h)}}function y(E){E.done?c(E.value):d(E.value).then(m,g)}y((u=u.apply(l,s||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.OpenAIApi=e.OpenAIApiFactory=e.OpenAIApiFp=e.OpenAIApiAxiosParamCreator=void 0;const n=Lh,r=X,i=au;e.OpenAIApiAxiosParamCreator=function(l){return{cancelFineTune:(s,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("cancelFineTune","fineTuneId",s);const u="/fine-tunes/{fine_tune_id}/cancel".replace("{fine_tune_id}",encodeURIComponent(String(s))),d=new URL(u,r.DUMMY_BASE_URL);let c;l&&(c=l.baseOptions);const f=Object.assign(Object.assign({method:"POST"},c),a),m={},g={};r.setSearchParams(d,g);let y=c&&c.headers?c.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},m),y),a.headers),{url:r.toPathString(d),options:f}}),createAnswer:(s,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("createAnswer","createAnswerRequest",s);const u="/answers",d=new URL(u,r.DUMMY_BASE_URL);let c;l&&(c=l.baseOptions);const f=Object.assign(Object.assign({method:"POST"},c),a),m={},g={};m["Content-Type"]="application/json",r.setSearchParams(d,g);let y=c&&c.headers?c.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},m),y),a.headers),f.data=r.serializeDataIfNeeded(s,f,l),{url:r.toPathString(d),options:f}}),createClassification:(s,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("createClassification","createClassificationRequest",s);const u="/classifications",d=new URL(u,r.DUMMY_BASE_URL);let c;l&&(c=l.baseOptions);const f=Object.assign(Object.assign({method:"POST"},c),a),m={},g={};m["Content-Type"]="application/json",r.setSearchParams(d,g);let y=c&&c.headers?c.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},m),y),a.headers),f.data=r.serializeDataIfNeeded(s,f,l),{url:r.toPathString(d),options:f}}),createCompletion:(s,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("createCompletion","createCompletionRequest",s);const u="/completions",d=new URL(u,r.DUMMY_BASE_URL);let c;l&&(c=l.baseOptions);const f=Object.assign(Object.assign({method:"POST"},c),a),m={},g={};m["Content-Type"]="application/json",r.setSearchParams(d,g);let y=c&&c.headers?c.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},m),y),a.headers),f.data=r.serializeDataIfNeeded(s,f,l),{url:r.toPathString(d),options:f}}),createEdit:(s,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("createEdit","createEditRequest",s);const u="/edits",d=new URL(u,r.DUMMY_BASE_URL);let c;l&&(c=l.baseOptions);const f=Object.assign(Object.assign({method:"POST"},c),a),m={},g={};m["Content-Type"]="application/json",r.setSearchParams(d,g);let y=c&&c.headers?c.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},m),y),a.headers),f.data=r.serializeDataIfNeeded(s,f,l),{url:r.toPathString(d),options:f}}),createEmbedding:(s,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("createEmbedding","createEmbeddingRequest",s);const u="/embeddings",d=new URL(u,r.DUMMY_BASE_URL);let c;l&&(c=l.baseOptions);const f=Object.assign(Object.assign({method:"POST"},c),a),m={},g={};m["Content-Type"]="application/json",r.setSearchParams(d,g);let y=c&&c.headers?c.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},m),y),a.headers),f.data=r.serializeDataIfNeeded(s,f,l),{url:r.toPathString(d),options:f}}),createFile:(s,a,u={})=>t(this,void 0,void 0,function*(){r.assertParamExists("createFile","file",s),r.assertParamExists("createFile","purpose",a);const d="/files",c=new URL(d,r.DUMMY_BASE_URL);let f;l&&(f=l.baseOptions);const m=Object.assign(Object.assign({method:"POST"},f),u),g={},y={},E=new(l&&l.formDataCtor||FormData);s!==void 0&&E.append("file",s),a!==void 0&&E.append("purpose",a),g["Content-Type"]="multipart/form-data",r.setSearchParams(c,y);let h=f&&f.headers?f.headers:{};return m.headers=Object.assign(Object.assign(Object.assign(Object.assign({},g),E.getHeaders()),h),u.headers),m.data=E,{url:r.toPathString(c),options:m}}),createFineTune:(s,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("createFineTune","createFineTuneRequest",s);const u="/fine-tunes",d=new URL(u,r.DUMMY_BASE_URL);let c;l&&(c=l.baseOptions);const f=Object.assign(Object.assign({method:"POST"},c),a),m={},g={};m["Content-Type"]="application/json",r.setSearchParams(d,g);let y=c&&c.headers?c.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},m),y),a.headers),f.data=r.serializeDataIfNeeded(s,f,l),{url:r.toPathString(d),options:f}}),createSearch:(s,a,u={})=>t(this,void 0,void 0,function*(){r.assertParamExists("createSearch","engineId",s),r.assertParamExists("createSearch","createSearchRequest",a);const d="/engines/{engine_id}/search".replace("{engine_id}",encodeURIComponent(String(s))),c=new URL(d,r.DUMMY_BASE_URL);let f;l&&(f=l.baseOptions);const m=Object.assign(Object.assign({method:"POST"},f),u),g={},y={};g["Content-Type"]="application/json",r.setSearchParams(c,y);let E=f&&f.headers?f.headers:{};return m.headers=Object.assign(Object.assign(Object.assign({},g),E),u.headers),m.data=r.serializeDataIfNeeded(a,m,l),{url:r.toPathString(c),options:m}}),deleteFile:(s,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("deleteFile","fileId",s);const u="/files/{file_id}".replace("{file_id}",encodeURIComponent(String(s))),d=new URL(u,r.DUMMY_BASE_URL);let c;l&&(c=l.baseOptions);const f=Object.assign(Object.assign({method:"DELETE"},c),a),m={},g={};r.setSearchParams(d,g);let y=c&&c.headers?c.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},m),y),a.headers),{url:r.toPathString(d),options:f}}),deleteModel:(s,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("deleteModel","model",s);const u="/models/{model}".replace("{model}",encodeURIComponent(String(s))),d=new URL(u,r.DUMMY_BASE_URL);let c;l&&(c=l.baseOptions);const f=Object.assign(Object.assign({method:"DELETE"},c),a),m={},g={};r.setSearchParams(d,g);let y=c&&c.headers?c.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},m),y),a.headers),{url:r.toPathString(d),options:f}}),downloadFile:(s,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("downloadFile","fileId",s);const u="/files/{file_id}/content".replace("{file_id}",encodeURIComponent(String(s))),d=new URL(u,r.DUMMY_BASE_URL);let c;l&&(c=l.baseOptions);const f=Object.assign(Object.assign({method:"GET"},c),a),m={},g={};r.setSearchParams(d,g);let y=c&&c.headers?c.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},m),y),a.headers),{url:r.toPathString(d),options:f}}),listEngines:(s={})=>t(this,void 0,void 0,function*(){const a="/engines",u=new URL(a,r.DUMMY_BASE_URL);let d;l&&(d=l.baseOptions);const c=Object.assign(Object.assign({method:"GET"},d),s),f={},m={};r.setSearchParams(u,m);let g=d&&d.headers?d.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},f),g),s.headers),{url:r.toPathString(u),options:c}}),listFiles:(s={})=>t(this,void 0,void 0,function*(){const a="/files",u=new URL(a,r.DUMMY_BASE_URL);let d;l&&(d=l.baseOptions);const c=Object.assign(Object.assign({method:"GET"},d),s),f={},m={};r.setSearchParams(u,m);let g=d&&d.headers?d.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},f),g),s.headers),{url:r.toPathString(u),options:c}}),listFineTuneEvents:(s,a,u={})=>t(this,void 0,void 0,function*(){r.assertParamExists("listFineTuneEvents","fineTuneId",s);const d="/fine-tunes/{fine_tune_id}/events".replace("{fine_tune_id}",encodeURIComponent(String(s))),c=new URL(d,r.DUMMY_BASE_URL);let f;l&&(f=l.baseOptions);const m=Object.assign(Object.assign({method:"GET"},f),u),g={},y={};a!==void 0&&(y.stream=a),r.setSearchParams(c,y);let E=f&&f.headers?f.headers:{};return m.headers=Object.assign(Object.assign(Object.assign({},g),E),u.headers),{url:r.toPathString(c),options:m}}),listFineTunes:(s={})=>t(this,void 0,void 0,function*(){const a="/fine-tunes",u=new URL(a,r.DUMMY_BASE_URL);let d;l&&(d=l.baseOptions);const c=Object.assign(Object.assign({method:"GET"},d),s),f={},m={};r.setSearchParams(u,m);let g=d&&d.headers?d.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},f),g),s.headers),{url:r.toPathString(u),options:c}}),listModels:(s={})=>t(this,void 0,void 0,function*(){const a="/models",u=new URL(a,r.DUMMY_BASE_URL);let d;l&&(d=l.baseOptions);const c=Object.assign(Object.assign({method:"GET"},d),s),f={},m={};r.setSearchParams(u,m);let g=d&&d.headers?d.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},f),g),s.headers),{url:r.toPathString(u),options:c}}),retrieveEngine:(s,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("retrieveEngine","engineId",s);const u="/engines/{engine_id}".replace("{engine_id}",encodeURIComponent(String(s))),d=new URL(u,r.DUMMY_BASE_URL);let c;l&&(c=l.baseOptions);const f=Object.assign(Object.assign({method:"GET"},c),a),m={},g={};r.setSearchParams(d,g);let y=c&&c.headers?c.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},m),y),a.headers),{url:r.toPathString(d),options:f}}),retrieveFile:(s,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("retrieveFile","fileId",s);const u="/files/{file_id}".replace("{file_id}",encodeURIComponent(String(s))),d=new URL(u,r.DUMMY_BASE_URL);let c;l&&(c=l.baseOptions);const f=Object.assign(Object.assign({method:"GET"},c),a),m={},g={};r.setSearchParams(d,g);let y=c&&c.headers?c.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},m),y),a.headers),{url:r.toPathString(d),options:f}}),retrieveFineTune:(s,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("retrieveFineTune","fineTuneId",s);const u="/fine-tunes/{fine_tune_id}".replace("{fine_tune_id}",encodeURIComponent(String(s))),d=new URL(u,r.DUMMY_BASE_URL);let c;l&&(c=l.baseOptions);const f=Object.assign(Object.assign({method:"GET"},c),a),m={},g={};r.setSearchParams(d,g);let y=c&&c.headers?c.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},m),y),a.headers),{url:r.toPathString(d),options:f}}),retrieveModel:(s,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("retrieveModel","model",s);const u="/models/{model}".replace("{model}",encodeURIComponent(String(s))),d=new URL(u,r.DUMMY_BASE_URL);let c;l&&(c=l.baseOptions);const f=Object.assign(Object.assign({method:"GET"},c),a),m={},g={};r.setSearchParams(d,g);let y=c&&c.headers?c.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},m),y),a.headers),{url:r.toPathString(d),options:f}})}},e.OpenAIApiFp=function(l){const s=e.OpenAIApiAxiosParamCreator(l);return{cancelFineTune(a,u){return t(this,void 0,void 0,function*(){const d=yield s.cancelFineTune(a,u);return r.createRequestFunction(d,n.default,i.BASE_PATH,l)})},createAnswer(a,u){return t(this,void 0,void 0,function*(){const d=yield s.createAnswer(a,u);return r.createRequestFunction(d,n.default,i.BASE_PATH,l)})},createClassification(a,u){return t(this,void 0,void 0,function*(){const d=yield s.createClassification(a,u);return r.createRequestFunction(d,n.default,i.BASE_PATH,l)})},createCompletion(a,u){return t(this,void 0,void 0,function*(){const d=yield s.createCompletion(a,u);return r.createRequestFunction(d,n.default,i.BASE_PATH,l)})},createEdit(a,u){return t(this,void 0,void 0,function*(){const d=yield s.createEdit(a,u);return r.createRequestFunction(d,n.default,i.BASE_PATH,l)})},createEmbedding(a,u){return t(this,void 0,void 0,function*(){const d=yield s.createEmbedding(a,u);return r.createRequestFunction(d,n.default,i.BASE_PATH,l)})},createFile(a,u,d){return t(this,void 0,void 0,function*(){const c=yield s.createFile(a,u,d);return r.createRequestFunction(c,n.default,i.BASE_PATH,l)})},createFineTune(a,u){return t(this,void 0,void 0,function*(){const d=yield s.createFineTune(a,u);return r.createRequestFunction(d,n.default,i.BASE_PATH,l)})},createSearch(a,u,d){return t(this,void 0,void 0,function*(){const c=yield s.createSearch(a,u,d);return r.createRequestFunction(c,n.default,i.BASE_PATH,l)})},deleteFile(a,u){return t(this,void 0,void 0,function*(){const d=yield s.deleteFile(a,u);return r.createRequestFunction(d,n.default,i.BASE_PATH,l)})},deleteModel(a,u){return t(this,void 0,void 0,function*(){const d=yield s.deleteModel(a,u);return r.createRequestFunction(d,n.default,i.BASE_PATH,l)})},downloadFile(a,u){return t(this,void 0,void 0,function*(){const d=yield s.downloadFile(a,u);return r.createRequestFunction(d,n.default,i.BASE_PATH,l)})},listEngines(a){return t(this,void 0,void 0,function*(){const u=yield s.listEngines(a);return r.createRequestFunction(u,n.default,i.BASE_PATH,l)})},listFiles(a){return t(this,void 0,void 0,function*(){const u=yield s.listFiles(a);return r.createRequestFunction(u,n.default,i.BASE_PATH,l)})},listFineTuneEvents(a,u,d){return t(this,void 0,void 0,function*(){const c=yield s.listFineTuneEvents(a,u,d);return r.createRequestFunction(c,n.default,i.BASE_PATH,l)})},listFineTunes(a){return t(this,void 0,void 0,function*(){const u=yield s.listFineTunes(a);return r.createRequestFunction(u,n.default,i.BASE_PATH,l)})},listModels(a){return t(this,void 0,void 0,function*(){const u=yield s.listModels(a);return r.createRequestFunction(u,n.default,i.BASE_PATH,l)})},retrieveEngine(a,u){return t(this,void 0,void 0,function*(){const d=yield s.retrieveEngine(a,u);return r.createRequestFunction(d,n.default,i.BASE_PATH,l)})},retrieveFile(a,u){return t(this,void 0,void 0,function*(){const d=yield s.retrieveFile(a,u);return r.createRequestFunction(d,n.default,i.BASE_PATH,l)})},retrieveFineTune(a,u){return t(this,void 0,void 0,function*(){const d=yield s.retrieveFineTune(a,u);return r.createRequestFunction(d,n.default,i.BASE_PATH,l)})},retrieveModel(a,u){return t(this,void 0,void 0,function*(){const d=yield s.retrieveModel(a,u);return r.createRequestFunction(d,n.default,i.BASE_PATH,l)})}}},e.OpenAIApiFactory=function(l,s,a){const u=e.OpenAIApiFp(l);return{cancelFineTune(d,c){return u.cancelFineTune(d,c).then(f=>f(a,s))},createAnswer(d,c){return u.createAnswer(d,c).then(f=>f(a,s))},createClassification(d,c){return u.createClassification(d,c).then(f=>f(a,s))},createCompletion(d,c){return u.createCompletion(d,c).then(f=>f(a,s))},createEdit(d,c){return u.createEdit(d,c).then(f=>f(a,s))},createEmbedding(d,c){return u.createEmbedding(d,c).then(f=>f(a,s))},createFile(d,c,f){return u.createFile(d,c,f).then(m=>m(a,s))},createFineTune(d,c){return u.createFineTune(d,c).then(f=>f(a,s))},createSearch(d,c,f){return u.createSearch(d,c,f).then(m=>m(a,s))},deleteFile(d,c){return u.deleteFile(d,c).then(f=>f(a,s))},deleteModel(d,c){return u.deleteModel(d,c).then(f=>f(a,s))},downloadFile(d,c){return u.downloadFile(d,c).then(f=>f(a,s))},listEngines(d){return u.listEngines(d).then(c=>c(a,s))},listFiles(d){return u.listFiles(d).then(c=>c(a,s))},listFineTuneEvents(d,c,f){return u.listFineTuneEvents(d,c,f).then(m=>m(a,s))},listFineTunes(d){return u.listFineTunes(d).then(c=>c(a,s))},listModels(d){return u.listModels(d).then(c=>c(a,s))},retrieveEngine(d,c){return u.retrieveEngine(d,c).then(f=>f(a,s))},retrieveFile(d,c){return u.retrieveFile(d,c).then(f=>f(a,s))},retrieveFineTune(d,c){return u.retrieveFineTune(d,c).then(f=>f(a,s))},retrieveModel(d,c){return u.retrieveModel(d,c).then(f=>f(a,s))}}};class o extends i.BaseAPI{cancelFineTune(s,a){return e.OpenAIApiFp(this.configuration).cancelFineTune(s,a).then(u=>u(this.axios,this.basePath))}createAnswer(s,a){return e.OpenAIApiFp(this.configuration).createAnswer(s,a).then(u=>u(this.axios,this.basePath))}createClassification(s,a){return e.OpenAIApiFp(this.configuration).createClassification(s,a).then(u=>u(this.axios,this.basePath))}createCompletion(s,a){return e.OpenAIApiFp(this.configuration).createCompletion(s,a).then(u=>u(this.axios,this.basePath))}createEdit(s,a){return e.OpenAIApiFp(this.configuration).createEdit(s,a).then(u=>u(this.axios,this.basePath))}createEmbedding(s,a){return e.OpenAIApiFp(this.configuration).createEmbedding(s,a).then(u=>u(this.axios,this.basePath))}createFile(s,a,u){return e.OpenAIApiFp(this.configuration).createFile(s,a,u).then(d=>d(this.axios,this.basePath))}createFineTune(s,a){return e.OpenAIApiFp(this.configuration).createFineTune(s,a).then(u=>u(this.axios,this.basePath))}createSearch(s,a,u){return e.OpenAIApiFp(this.configuration).createSearch(s,a,u).then(d=>d(this.axios,this.basePath))}deleteFile(s,a){return e.OpenAIApiFp(this.configuration).deleteFile(s,a).then(u=>u(this.axios,this.basePath))}deleteModel(s,a){return e.OpenAIApiFp(this.configuration).deleteModel(s,a).then(u=>u(this.axios,this.basePath))}downloadFile(s,a){return e.OpenAIApiFp(this.configuration).downloadFile(s,a).then(u=>u(this.axios,this.basePath))}listEngines(s){return e.OpenAIApiFp(this.configuration).listEngines(s).then(a=>a(this.axios,this.basePath))}listFiles(s){return e.OpenAIApiFp(this.configuration).listFiles(s).then(a=>a(this.axios,this.basePath))}listFineTuneEvents(s,a,u){return e.OpenAIApiFp(this.configuration).listFineTuneEvents(s,a,u).then(d=>d(this.axios,this.basePath))}listFineTunes(s){return e.OpenAIApiFp(this.configuration).listFineTunes(s).then(a=>a(this.axios,this.basePath))}listModels(s){return e.OpenAIApiFp(this.configuration).listModels(s).then(a=>a(this.axios,this.basePath))}retrieveEngine(s,a){return e.OpenAIApiFp(this.configuration).retrieveEngine(s,a).then(u=>u(this.axios,this.basePath))}retrieveFile(s,a){return e.OpenAIApiFp(this.configuration).retrieveFile(s,a).then(u=>u(this.axios,this.basePath))}retrieveFineTune(s,a){return e.OpenAIApiFp(this.configuration).retrieveFineTune(s,a).then(u=>u(this.axios,this.basePath))}retrieveModel(s,a){return e.OpenAIApiFp(this.configuration).retrieveModel(s,a).then(u=>u(this.axios,this.basePath))}}e.OpenAIApi=o})(Sh);var qo={};const $1="openai",U1="3.0.0",B1="Node.js library for the OpenAI API",V1=["openai","open","ai","gpt-3","gpt3"],b1={type:"git",url:"git@github.com:openai/openai-node.git"},H1="OpenAI",W1="MIT",q1="./dist/index.js",Q1="./dist/index.d.ts",Y1={build:"tsc --outDir dist/"},K1={axios:"^0.26.0","form-data":"^4.0.0"},G1={"@types/node":"^12.11.5",typescript:"^3.6.4"},X1={name:$1,version:U1,description:B1,keywords:V1,repository:b1,author:H1,license:W1,main:q1,types:Q1,scripts:Y1,dependencies:K1,devDependencies:G1};var Ql,hd;function J1(){return hd||(hd=1,Ql=typeof self=="object"?self.FormData:window.FormData),Ql}Object.defineProperty(qo,"__esModule",{value:!0});qo.Configuration=void 0;const Z1=X1;class ew{constructor(t={}){this.apiKey=t.apiKey,this.organization=t.organization,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.baseOptions=t.baseOptions,this.formDataCtor=t.formDataCtor,this.baseOptions||(this.baseOptions={}),this.baseOptions.headers=Object.assign({"User-Agent":`OpenAI/NodeJS/${Z1.version}`,Authorization:`Bearer ${this.apiKey}`},this.baseOptions.headers),this.organization&&(this.baseOptions.headers["OpenAI-Organization"]=this.organization),this.formDataCtor||(this.formDataCtor=J1())}isJsonMime(t){const n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(n.test(t)||t.toLowerCase()==="application/json-patch+json")}}qo.Configuration=ew;(function(e){var t=jt&&jt.__createBinding||(Object.create?function(r,i,o,l){l===void 0&&(l=o),Object.defineProperty(r,l,{enumerable:!0,get:function(){return i[o]}})}:function(r,i,o,l){l===void 0&&(l=o),r[l]=i[o]}),n=jt&&jt.__exportStar||function(r,i){for(var o in r)o!=="default"&&!i.hasOwnProperty(o)&&t(i,r,o)};Object.defineProperty(e,"__esModule",{value:!0}),n(Sh,e),n(qo,e)})(Qr);const tw={}.VITE_OPENAI_API_KEY,md=()=>{const[e,t]=P.useState(""),[n,r]=P.useState([]),[i,o]=P.useState([]),[l,s]=P.useState([]),[a,u]=P.useState([]),{setTerminologyData:d,setExpressionData:c,setCautionData:f}=nu(),m=new Qr.Configuration({apiKey:tw}),g=new Qr.OpenAIApi(m),[y,E]=P.useState(""),[h,p]=P.useState(""),[v,w]=P.useState(!1),C=_=>{t(_.target.value),p(_.target.value)},O=async _=>{_.preventDefault(),r([...n,e]),t(""),w(!0);const M=`${h}이 항목을 위의 예시처럼 분석해서 반드시 다음과 같은 형식으로 출력해줘.표현해석: {항목 분석내용}, - 유의사항: {모호하거나 주의가 필요한 문장알려주고 이유도 설명}, - 법률용어: {뜻 없이 단어만 리스트 형태로}`;try{const A=await g.createCompletion({model:"text-davinci-003",prompt:M,temperature:.5,max_tokens:1e3});console.log(A);const q=A.data.choices[0].text.split(` -`);console.log("lines: ",q),q.forEach(G=>{if(G.includes("표현해석")){let ue=G.replace("표현해석: ","");o([...i,ue]),c(i)}else if(G.includes("유의사항")){let ue=G.replace("유의사항: ","");s([...l,ue]),f(l)}else if(G.includes("법률용어")){let ue=G.replace("법률용어: ","");ue=ue.split(","),ue.map(et=>{u([...a,et])}),d(a)}}),console.log(i),console.log(l),console.log(a)}catch(A){console.error("Error:",A)}finally{w(!1)}},x=async()=>{w(!0);const _=`계약서 종류는${y}이다. 다음 내용은 계약서 내용이다.다음은 계약서 항목에 대한 해석, 해당 항목의 유의사항, 법률 용어에 대해서 정보를 제공하는 예시이다. 표현해석 : 1년의 의무기간을 채우지 못하고 중도 퇴사하는 경우, 100만원을 배상하여야 한다. 항목 해석: 1년을 못 채우고 퇴사하는 경우, 저는 회사에 100만원을 배상해야 한다. 유의사항 : 근로기준법은 손해배상액을 미리 정해두는 것을 금지하고 있다. 아무리 근로계약서에 서명했더라도 근로기준법에 위반된 조항은 효력이 없다.법률용어 : 근로기준법, 손해배상액, 근로계약서`;try{await g.createCompletion({model:"text-davinci-003",prompt:_,temperature:.5,max_tokens:1e3})}catch(M){console.error("Error:",M)}finally{w(!1)}};return P.useEffect(()=>{x()},[]),S.jsxs(nw,{children:[S.jsx(rw,{children:"Chat"}),S.jsxs(iw,{action:"",method:"",autoComplete:"off",onSubmit:O,children:[S.jsxs(ow,{children:[S.jsx(lw,{value:y,onChange:_=>E(_.target.value),type:"text",name:"type",required:!0,placeholder:"Please enter the contract type"}),S.jsx(sw,{children:n.map((_,M)=>S.jsx("p",{children:_},M))}),S.jsx(aw,{type:"text",name:"content",required:!0,placeholder:"Please include all information relevant to your issue.",value:e,onChange:C})]}),S.jsx(uw,{children:S.jsx(cw,{type:"submit",value:v?"Generating...":"Submit",disabled:v})})]})]})},nw=T.div` - /* width: 476px; - height: 905px; */ - width: 90%; - height: 93%; - border: 1px solid #e4e4e7; - border-radius: 10px; - padding: 2rem; - margin-top: 1rem; -`,rw=T.h4` - display: flex; - margin: 0px 0px 15px 0px; -`,iw=T.form` - display: flex; - flex-direction: column; - height: 98%; -`,ow=T.label` - display: flex; - flex-direction: column; - margin: 0; - width: 100%; - height: 100%; -`,lw=T.input` - /* width: 470px; */ - width: calc(100% - 2rem); - /* height: 44px; */ - height: 2rem; - background-color: #ffffff; - border: 1px solid #d7d7d7; - border-radius: 10px; - margin-bottom: 30px; - padding: 1rem; -`,sw=T.div` - width: calc(100% - 2rem); - height: calc(100% - 2rem); - border: 1px solid #d7d7d7; - border-radius: 10px; - margin-bottom: 18px; - padding: 1rem; - overflow: auto; - padding-right: 0.5rem; - - &::-webkit-scrollbar { - width: 8px; /* Width of scrollbar */ - height: 0px; /* Set to 0 for horizontal scrollbar */ - } - - &::-webkit-scrollbar-thumb { - background-color: #000000; /* Scrollbar color */ - border-radius: 4px; /* Round the corners of the scrollbar */ - } - - &::-webkit-scrollbar-track { - background-color: #f1f1f1; /* Color of scrollbar track */ - } -`,aw=T.textarea` - width: calc(100% - 2rem); - height: calc(60% - 2rem); - border: 1px solid #d7d7d7; - border-radius: 10px; - margin-bottom: 18px; - resize: none; - padding: 1rem; -`,uw=T.div` - display: flex; - justify-content: flex-end; -`,cw=T.input` - /* width: 102px; - height: 42px; */ - width: 6rem; - height: 3rem; - background-color: #000000; - color: #ffffff; - border-radius: 5px; -`;var Mh={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},vd=we.createContext&&we.createContext(Mh),Bt=globalThis&&globalThis.__assign||function(){return Bt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n({modalType:null,showModal:!1,setModalType:t=>e({modalType:t}),setShowModal:t=>e({showModal:t})}))),gw=({onChatClick:e})=>{const[t,n]=P.useState(["근로계약서","임대차계약서","대출계약서","기타계약서"]),r=()=>{const a=[...t,`계약서 ${t.length+1}`];n(a)},i=a=>{e(a)},{setModalType:o,setShowModal:l}=Yo(),s=()=>{o("MinWageCal"),l(!0)};return S.jsxs(yw,{children:[S.jsxs(Yl,{children:[S.jsx(hw,{size:"20",color:"#000000"}),S.jsx(fr,{children:"Chat List"})]}),S.jsxs(xw,{children:[S.jsxs(ww,{onClick:r,children:[S.jsx(fr,{children:"New Chat"}),S.jsx(pw,{size:"20",color:"#000000"})]}),t.map((a,u)=>S.jsx(Sw,{onClick:()=>i(u),children:S.jsx(fr,{children:a})},u))]}),S.jsxs(Yl,{children:[S.jsx(vw,{size:"20",color:"#000000"}),S.jsx(fr,{children:"For Help?"})]}),S.jsxs(Yl,{onClick:()=>s(),children:[S.jsx(mw,{size:"20",color:"#000000"}),S.jsx(fr,{children:"MinWage Calculator"})]})]})},yw=T.div` - display: flex; - flex-direction: column; - width: 286px; - height: 100vh; - border-right: 1px solid #e4e4e7; -`,Yl=T.div` - display: flex; - flex-direction: row; - width: 265px; - height: 23px; - padding: 20px 0px 20px 20px; - border-top: 1px solid #e4e4e7; - border-bottom: 1px solid #e4e4e7; - cursor: pointer; -`,ww=T.div` - display: flex; - flex-direction: row; - justify-content: space-between; - width: 245px; - height: 23px; - padding: 20px; - border-bottom: 1px solid #e4e4e7; - cursor: pointer; -`,Sw=T.div` - display: flex; - flex-direction: row; - width: 265px; - height: 23px; - padding: 20px 0px 20px 20px; - border-bottom: 1px solid #e4e4e7; -`,fr=T.h4` - display: flex; - flex-direction: column; - justify-content: center; - margin: 0px 0px 0px 6px; -`,xw=T.div` - width: 285px; - height: 100vh; - overflow: auto; - - &::-webkit-scrollbar { - width: 8px; /* Width of scrollbar */ - height: 0px; /* Set to 0 for horizontal scrollbar */ - } - - &::-webkit-scrollbar-thumb { - background-color: #000000; /* Scrollbar color */ - border-radius: 4px; /* Round the corners of the scrollbar */ - } - - &::-webkit-scrollbar-track { - background-color: #f1f1f1; /* Color of scrollbar track */ - } -`,Ew=[{id:"1",title:"임금(연봉)",content:"근로계약서에는 고용주와 근로자간 협의된 총 임금(연봉)이 반드시 표기되어 있어야 합니다. 기본급, 수당, 상여금 등 임금 구성항목과 임금 지급일, 지급 방법 등도 정해져 있어야 하고요! 임금 지급은 예금통장으로 지불받는 것이 좋습니다."},{id:"2",title:"소정 근로 시간&휴게 시간",content:"근로기준법에서는 휴게 시간 제외 근로시간을 주 40시간 이하로 규정하고 있어요. 특정한 사유가 있을 시에는 1일 최대 12시간, 주 최대 52시간까지 근로가 가능합니다."},{id:"3",title:"연차&휴가(무급/유급)",content:"2018년 6월 관련 법이 개정되면서 1년 미만 신입사원도 11일의 연차 휴가를 사용할 수 있게 되었습니다."},{id:"4",title:"상속",content:"상속은 죽은 사람으로부터 그의 재산, 채권, 부채 등의 권리와 의무를 그의 법정 상속인에게 이전하는 것을 말합니다. 상속은 법률에 따라 이뤄지며, 상속인은 상속에 따른 재산을 상속인 간 협의 또는 법정 분할에 따라 나눌 수 있습니다."},{id:"5",title:"계약 해지",content:"계약 해지는 어떤 계약이 정해진 기간 동안 유효하게 유지되지 않거나, 계약의 조건이 어기어졌을 때, 또는 당사자 중 하나가 계약을 위반했을 때 발생합니다. 계약 해지에는 서면 통지, 소송, 또는 양자 합의 등 다양한 방법이 포함될 수 있습니다."},{id:"6",title:"상표권",content:"상표권은 상표로 등록된 상표의 소유자에게 주어지는 권리를 의미합니다. 이 권리는 특정한 상표를 특정한 상품 또는 서비스에 사용할 수 있는 권리를 제공하며, 상표의 소유자는 다른 사람이 해당 상표를 무단으로 사용하는 것을 막을 수 있습니다."}],kw=()=>{const[e,t]=P.useState(1),[n,r]=P.useState(0),i=3,{terminologyData:o}=nu(),l=[];for(let d=1;d<=Math.ceil(Ew.length/i);d++)l.push(d);const s=Math.ceil(l.length/10),a=n*10,u=l.slice(a,a+10);return S.jsxs(Cw,{children:[S.jsx(Ow,{children:"Legal Terminology"}),S.jsx(Pw,{children:"법률 용어 해석"}),S.jsx(_w,{children:o.map((d,c)=>S.jsx(Rw,{children:S.jsx(jw,{children:d})},c))}),S.jsxs(Tw,{children:[n>0&&S.jsx(gd,{onClick:()=>r(n-1),children:"⬅️"}),u.map(d=>S.jsx(Dh,{active:d===e,onClick:()=>t(d),children:d},d)),nr(n+1),children:"➡️"})]})]})},Cw=T.div` - /* width: 462px; - height: 330px; */ - width: 90%; - height: 80%; - padding: 2rem; - border-radius: 10px; - border: 1px solid #e4e4e7; - /* padding: 30px; */ -`,Ow=T.h4` - display: flex; - justify-content: flex-start; - font-weight: bold; - margin: 0; -`,Pw=T.p` - display: flex; - justify-content: flex-start; - margin: 0; -`,_w=T.div` - display: flex; - flex-direction: column; - margin-top: 30px; - /* width: 476px; - width: 100%; - height: 230px; */ - height: 70%; - overflow: hidden; -`,Rw=T.div` - display: flex; - flex-direction: column; - margin-bottom: 24px; -`,jw=T.span` - font-size: 0.875rem; - font-weight: 700; - margin: 0; -`;T.p` - font-size: 0.75rem; - color: #83838b; - margin: 0; -`;const Tw=T.div` - display: flex; - flex-direction: row; - justify-content: center; -`,Dh=T.button` - border: 1px solid black; - background-color: ${e=>e.active?"black":"white"}; - color: ${e=>e.active?"white":"black"}; - border-radius: 50%; - width: 30px; - height: 30px; - margin: 5px; - &:focus { - outline: none; - } -`,gd=T(Dh)` - border-radius: 5px; - width: auto; - padding: 0 10px; -`,Aw=({children:e,onClick:t})=>(Yo(),S.jsx(Nw,{children:S.jsx("div",{children:e})})),Nw=T.div` - display: flex; - justify-content: center; - align-items: center; - width: 100vw; - height: 100vh; - position: fixed; - top: 0; - left: 0; - z-index: 1000; - background-color: rgba(0, 0, 0, 0.8); -`,Iw=9860,$h=()=>{const[e,t]=P.useState(0),[n,r]=P.useState(0),[i,o]=P.useState(0),{setShowModal:l}=Yo(),s=u=>u.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),a=()=>{const u=e,d=u*n;if(d/4>15){const f=u*n+4*n;o(f)}else o(d)};return S.jsx(Aw,{children:S.jsxs(Fw,{children:[S.jsxs(wd,{children:[S.jsx(yd,{htmlFor:"workDays",children:"4주 동안 총 근무 일수"}),S.jsx(Sd,{type:"number",id:"workDays",value:e,onChange:u=>t(u.target.value)})]}),S.jsxs(wd,{children:[S.jsx(yd,{htmlFor:"dailyWorkHours",children:"일일 근무시간"}),S.jsx(Sd,{type:"number",id:"dailyWorkHours",value:n,onChange:u=>r(u.target.value)})]}),S.jsx(Lw,{children:S.jsxs(Mw,{children:["계산된 최저임금(월): ",s(i*Iw)," 원"]})}),S.jsxs(zw,{children:[S.jsx($w,{onClick:()=>l(!1),children:"Cancel"}),S.jsx(Dw,{onClick:a,children:"최저임금 계산"})]})]})})},Fw=T.div` - width: 255px; - height: 255px; - background-color: #ffffff; - border-radius: 10px; - border: 2px solid #d7d7d7; - padding: 10px; - display: flex; - flex-direction: column; - justify-content: center; - /* align-items: center; */ -`,Lw=T.div` - width: 245px; - height: 30px; - border-radius: 5px; - display: flex; - flex-direction: row; - justify-content: center; - align-items: center; - background-color: #000000; - margin: 10px 3px 3px 3px; -`,Mw=T.strong` - color: #ffffff; - font-size: 0.85rem; -`,yd=T.label` - font-size: 1rem; - font-weight: bold; -`,zw=T.div` - display: flex; - flex-direction: row; - justify-content: space-between; -`,Dw=T.button` - width: 90px; - height: 30px; - border-radius: 5px; - font-size: 0.75rem; - background-color: #000000; - color: #ffffff; - margin: 20px 3px 5px 3px; - cursor: pointer; -`,$w=T.button` - width: 90px; - height: 30px; - border-radius: 5px; - font-size: 0.75rem; - border: 2px solid #d7d7d7; - font-weight: bold; - margin: 20px 3px 5px 3px; - cursor: pointer; -`,wd=T.div` - display: flex; - flex-direction: column; -`,Sd=T.input` - width: 235px; - height: 20px; - border-radius: 5px; - margin: 5px; -`,Uw=()=>{const e={MinWageCal:S.jsx($h,{})},[t,n]=P.useState(S.jsx(md,{})),{setShowModal:r,showModal:i,modalType:o}=Yo(),l=o?e[o]:null;return P.useEffect(()=>{r(!1)},[]),S.jsxs(Bw,{children:[i&&S.jsx(P.Suspense,{fallback:null,children:l}),S.jsx(Vw,{children:S.jsx(gw,{onChatClick:n})}),S.jsx(cu,{children:t!==null&&S.jsx(md,{chatIndex:t},t)}),S.jsxs(bw,{children:[S.jsx(Hw,{children:S.jsx(Fy,{})}),S.jsx(Ww,{children:S.jsx(kw,{})})]})]})},Bw=T.div` - display: grid; - grid-template-columns: 1.5fr 5fr 4fr; - grid-template-rows: 1fr; - gap: 1rem; - width: 100%; - height: 100%; - background-color: white; - @media (max-width: 768px) { - grid-template-columns: 1fr; - grid-template-rows: 1fr 2fr 1fr; - } -`,cu=T.div` - background-color: white; - margin: 1px; - @media (max-width: 768px) { - grid-row: 2; - } -`,Vw=T(cu)` - background-color: white; - grid-row: span 3; - @media (max-width: 768px) { - grid-row: 1; - } -`,bw=T(cu)` - background-color: white; - grid-row: span 3; - @media (max-width: 768px) { - grid-row: 3; - } - padding-top: 1rem; - padding-right: 1rem; -`,Hw=T.div` - flex: 1; - height: 51.5%; - width: 100%; - background-color: white; -`,Ww=T.div` - flex: 1; - height: 50%; - width: 100%; - background-color: white; -`,qw={}.VITE_OPENAI_API_KEY,Qw=()=>{const e=new Qr.Configuration({apiKey:qw}),t=new Qr.OpenAIApi(e),[n,r]=P.useState(""),[i,o]=P.useState(""),[l,s]=P.useState(""),[a,u]=P.useState(!1),d=async()=>{u(!0);const f=`계약서 종류는${n}이다. 다음 내용은 계약서 내용이다.다음은 계약서 항목에 대한 해석, 해당 항목의 유의사항, 법률 용어에 대해서 정보를 제공하는 예시이다. [표현해석] : 1년의 의무기간을 채우지 못하고 중도 퇴사하는 경우, 100만원을 배상하여야 한다. 항목 해석: 1년을 못 채우고 퇴사하는 경우, 저는 회사에 100만원을 배상해야 한다. [유의사항] : 근로기준법은 손해배상액을 미리 정해두는 것을 금지하고 있다. 아무리 근로계약서에 서명했더라도 근로기준법에 위반된 조항은 효력이 없다.[법률용어] : 근로기준법, 손해배상액, 근로계약서`;try{await t.createCompletion({model:"text-davinci-003",prompt:f,temperature:.5,max_tokens:1e3})}catch(m){console.error("Error:",m)}finally{u(!1)}},c=async f=>{f.preventDefault(),u(!0);const m=`${i}이 항목을 위의 예시처럼 분석해서 반드시 다음과 같은 형식으로 출력해줘.[표현해석] : {항목 분석내용}, [유의사항] : {모호하거나 주의가 필요한 문장알려주고 이유도 설명}, [법률용어] : {뜻 없이 단어만 리스트 형태로}`;try{const g=await t.createCompletion({model:"text-davinci-003",prompt:m,temperature:.5,max_tokens:1e3});s(g.data.choices[0].text)}catch(g){console.error("Error:",g)}finally{u(!1)}};return P.useEffect(()=>{d()},[]),S.jsx("div",{className:"all",children:S.jsxs("div",{className:"chat",children:[S.jsxs("form",{onSubmit:c,className:"question",children:[S.jsxs("div",{children:[S.jsx("label",{htmlFor:"Input1",children:"Input 1:"}),S.jsx("textarea",{className:"input1area",type:"text",value:n,placeholder:"계약서 종류",onChange:f=>r(f.target.value)})]}),S.jsxs("div",{children:[S.jsx("label",{htmlFor:"Input2",children:"Input 2:"}),S.jsx("textarea",{className:"input2area",type:"text",value:i,placeholder:"계약서 내용",onChange:f=>o(f.target.value)})]}),S.jsx("button",{disabled:a,type:"submit",children:a?"Generating...":"Generate"})]}),S.jsxs("div",{className:"answer",children:[S.jsxs("div",{className:"answerlist",children:[S.jsx("strong",{children:"Response:"})," ",l,S.jsx("br",{})]}),S.jsx($h,{children:"최저임금 계산기"})]})]})})},Yw=()=>{const e=Bv(),t=()=>{e("/home")};return S.jsxs(Kw,{children:[S.jsx(Gw,{children:"EZPT"}),S.jsxs(Xw,{action:"",method:"",autocomplete:"off",children:[S.jsxs(Kl,{children:[S.jsx(xd,{children:"ID"}),S.jsx(Ed,{type:"text",name:"id"})]}),S.jsxs(Kl,{children:[S.jsx(xd,{children:"Password"}),S.jsx(Ed,{type:"password",name:"password",required:!0})]}),S.jsx(Kl,{children:S.jsx(Jw,{type:"submit",value:"SignIn",onClick:t})}),S.jsx(Zw,{children:"Forgot your password?"})]})]})},Kw=T.div` - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); -`,Gw=T.h1` - display: flex; - flex-direction: row; - align-items: center; - justify-content: center; - text-align: center; -`,Xw=T.form` - display: flex; - flex-direction: column; -`,Kl=T.label` - display: flex; - flex-direction: column; - margin: 30px; -`,xd=T.p` - font-size: 1rem; - font-weight: 700; -`,Ed=T.input` - width: 380px; - height: 50px; - background-color: #ffffff; - border: 2px solid #000000; - border-radius: 15px; -`,Jw=T.input` - width: 380px; - height: 60px; - background-color: #000000; - color: #ffffff; - font-size: 1rem; - font-weight: 700; - border-radius: 15px; - margin: 60px 0px 0px 0px; -`,Zw=T.h4` - display: flex; - flex-direction: row; - align-items: center; - justify-content: center; - text-align: center; -`,eS=()=>S.jsx(S.Fragment,{children:S.jsx(Yw,{})}),tS=()=>S.jsxs(ng,{children:[S.jsx(Ii,{path:"/home",element:S.jsx(Uw,{})}),S.jsx(Ii,{path:"/",element:S.jsx(eS,{})}),S.jsx(Ii,{path:"/gpt",element:S.jsx(Qw,{})})]});function nS(){return S.jsx(tS,{})}Gl.createRoot(document.getElementById("root")).render(S.jsx(we.StrictMode,{children:S.jsx(ig,{basename:"/ContractAssistant_FE",children:S.jsx(nS,{})})})); diff --git a/assets/index-df1250ba.js b/assets/index-df1250ba.js new file mode 100644 index 0000000..2912cb6 --- /dev/null +++ b/assets/index-df1250ba.js @@ -0,0 +1,524 @@ +function r0(e,t){for(var n=0;nr[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)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 n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Dt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xf={exports:{}},$i={},Ef={exports:{}},$={};/** + * @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 lo=Symbol.for("react.element"),o0=Symbol.for("react.portal"),i0=Symbol.for("react.fragment"),s0=Symbol.for("react.strict_mode"),l0=Symbol.for("react.profiler"),a0=Symbol.for("react.provider"),u0=Symbol.for("react.context"),c0=Symbol.for("react.forward_ref"),d0=Symbol.for("react.suspense"),f0=Symbol.for("react.memo"),p0=Symbol.for("react.lazy"),Yu=Symbol.iterator;function h0(e){return e===null||typeof e!="object"?null:(e=Yu&&e[Yu]||e["@@iterator"],typeof e=="function"?e:null)}var Of={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Cf=Object.assign,kf={};function lr(e,t,n){this.props=e,this.context=t,this.refs=kf,this.updater=n||Of}lr.prototype.isReactComponent={};lr.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")};lr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Pf(){}Pf.prototype=lr.prototype;function Fa(e,t,n){this.props=e,this.context=t,this.refs=kf,this.updater=n||Of}var La=Fa.prototype=new Pf;La.constructor=Fa;Cf(La,lr.prototype);La.isPureReactComponent=!0;var Gu=Array.isArray,Rf=Object.prototype.hasOwnProperty,Ia={current:null},_f={key:!0,ref:!0,__self:!0,__source:!0};function Af(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Rf.call(t,r)&&!_f.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,te=A[z];if(0>>1;z<_t;){var be=2*(z+1)-1,mt=A[be],Be=be+1,it=A[Be];if(0>o(mt,L))Beo(it,mt)?(A[z]=it,A[Be]=L,z=Be):(A[z]=mt,A[be]=L,z=be);else if(Beo(it,L))A[z]=it,A[Be]=L,z=Be;else break e}}return F}function o(A,F){var L=A.sortIndex-F.sortIndex;return L!==0?L:A.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,d=null,f=3,v=!1,m=!1,g=!1,S=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(A){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=A)r(u),F.sortIndex=F.expirationTime,t(a,F);else break;F=n(u)}}function w(A){if(g=!1,y(A),!m)if(n(a)!==null)m=!0,nn(k);else{var F=n(u);F!==null&&rn(w,F.startTime-A)}}function k(A,F){m=!1,g&&(g=!1,h(_),_=-1),v=!0;var L=f;try{for(y(F),d=n(a);d!==null&&(!(d.expirationTime>F)||A&&!ee());){var z=d.callback;if(typeof z=="function"){d.callback=null,f=d.priorityLevel;var te=z(d.expirationTime<=F);F=e.unstable_now(),typeof te=="function"?d.callback=te:d===n(a)&&r(a),y(F)}else r(a);d=n(a)}if(d!==null)var _t=!0;else{var be=n(u);be!==null&&rn(w,be.startTime-F),_t=!1}return _t}finally{d=null,f=L,v=!1}}var P=!1,O=null,_=-1,D=5,N=-1;function ee(){return!(e.unstable_now()-NA||125z?(A.sortIndex=L,t(u,A),n(a)===null&&A===n(u)&&(g?(h(_),_=-1):g=!0,rn(w,L-z))):(A.sortIndex=te,t(a,A),m||v||(m=!0,nn(k))),A},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(A){var F=f;return function(){var L=f;f=F;try{return A.apply(this,arguments)}finally{f=L}}}})(Ff);Nf.exports=Ff;var P0=Nf.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 Lf=R,Ue=P0;function C(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"),Cl=Object.prototype.hasOwnProperty,R0=/^[: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]*$/,Xu={},Zu={};function _0(e){return Cl.call(Zu,e)?!0:Cl.call(Xu,e)?!1:R0.test(e)?Zu[e]=!0:(Xu[e]=!0,!1)}function A0(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 T0(e,t,n,r){if(t===null||typeof t>"u"||A0(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 Pe(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ge[e]=new Pe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ge[t]=new Pe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ge[e]=new Pe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ge[e]=new Pe(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){ge[e]=new Pe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ge[e]=new Pe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ge[e]=new Pe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ge[e]=new Pe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ge[e]=new Pe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Da=/[\-:]([a-z])/g;function Ua(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(Da,Ua);ge[t]=new Pe(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(Da,Ua);ge[t]=new Pe(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(Da,Ua);ge[t]=new Pe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ge[e]=new Pe(e,1,!1,e.toLowerCase(),null,!1,!1)});ge.xlinkHref=new Pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ge[e]=new Pe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ma(e,t,n,r){var o=ge.hasOwnProperty(t)?ge[t]:null;(o!==null?o.type!==0:r||!(2l||o[s]!==i[l]){var a=` +`+o[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Es=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?kr(e):""}function j0(e){switch(e.tag){case 5:return kr(e.type);case 16:return kr("Lazy");case 13:return kr("Suspense");case 19:return kr("SuspenseList");case 0:case 2:case 15:return e=Os(e.type,!1),e;case 11:return e=Os(e.type.render,!1),e;case 1:return e=Os(e.type,!0),e;default:return""}}function _l(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 An:return"Fragment";case _n:return"Portal";case kl:return"Profiler";case za:return"StrictMode";case Pl:return"Suspense";case Rl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Df:return(e.displayName||"Context")+".Consumer";case $f:return(e._context.displayName||"Context")+".Provider";case ba:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ba:return t=e.displayName||null,t!==null?t:_l(e.type)||"Memo";case Ft:t=e._payload,e=e._init;try{return _l(e(t))}catch{}}return null}function N0(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 _l(t);case 8:return t===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Gt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Mf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function F0(e){var t=Mf(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.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 So(e){e._valueTracker||(e._valueTracker=F0(e))}function zf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Mf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function si(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 Al(e,t){var n=t.checked;return G({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function tc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Gt(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 bf(e,t){t=t.checked,t!=null&&Ma(e,"checked",t,!1)}function Tl(e,t){bf(e,t);var n=Gt(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")?jl(e,t.type,n):t.hasOwnProperty("defaultValue")&&jl(e,t.type,Gt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function nc(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 jl(e,t,n){(t!=="number"||si(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pr=Array.isArray;function bn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=xo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function br(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Tr={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},L0=["Webkit","ms","Moz","O"];Object.keys(Tr).forEach(function(e){L0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tr[t]=Tr[e]})});function Wf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Tr.hasOwnProperty(e)&&Tr[e]?(""+t).trim():t+"px"}function qf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Wf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var I0=G({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 Ll(e,t){if(t){if(I0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function Il(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 $l=null;function Va(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Dl=null,Bn=null,Vn=null;function ic(e){if(e=co(e)){if(typeof Dl!="function")throw Error(C(280));var t=e.stateNode;t&&(t=bi(t),Dl(e.stateNode,e.type,t))}}function Qf(e){Bn?Vn?Vn.push(e):Vn=[e]:Bn=e}function Kf(){if(Bn){var e=Bn,t=Vn;if(Vn=Bn=null,ic(e),t)for(e=0;e>>=0,e===0?32:31-(q0(e)/Q0|0)|0}var Eo=64,Oo=4194304;function Rr(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 ci(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=Rr(l):(i&=s,i!==0&&(r=Rr(i)))}else s=n&~o,s!==0?r=Rr(s):i!==0&&(r=Rr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&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 ao(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-tt(t),e[t]=n}function J0(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=Nr),hc=String.fromCharCode(32),mc=!1;function hp(e,t){switch(e){case"keyup":return kv.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 Tn=!1;function Rv(e,t){switch(e){case"compositionend":return mp(t);case"keypress":return t.which!==32?null:(mc=!0,hc);case"textInput":return e=t.data,e===hc&&mc?null:e;default:return null}}function _v(e,t){if(Tn)return e==="compositionend"||!Ja&&hp(e,t)?(e=fp(),zo=Ka=Ut=null,Tn=!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=wc(n)}}function wp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sp(){for(var e=window,t=si();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=si(e.document)}return t}function Xa(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 Dv(e){var t=Sp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&wp(n.ownerDocument.documentElement,n)){if(r!==null&&Xa(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Sc(n,i);var s=Sc(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>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,jn=null,Vl=null,Lr=null,Hl=!1;function xc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hl||jn==null||jn!==si(r)||(r=jn,"selectionStart"in r&&Xa(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}),Lr&&Qr(Lr,r)||(Lr=r,r=pi(Vl,"onSelect"),0Ln||(e.current=Gl[Ln],Gl[Ln]=null,Ln--)}function V(e,t){Ln++,Gl[Ln]=e.current,e.current=t}var Jt={},xe=Zt(Jt),Te=Zt(!1),gn=Jt;function Kn(e,t){var n=e.type.contextTypes;if(!n)return Jt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function je(e){return e=e.childContextTypes,e!=null}function mi(){q(Te),q(xe)}function _c(e,t,n){if(xe.current!==Jt)throw Error(C(168));V(xe,t),V(Te,n)}function Ap(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(C(108,N0(e)||"Unknown",o));return G({},n,r)}function vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Jt,gn=xe.current,V(xe,e),V(Te,Te.current),!0}function Ac(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=Ap(e,t,gn),r.__reactInternalMemoizedMergedChildContext=e,q(Te),q(xe),V(xe,e)):q(Te),V(Te,n)}var yt=null,Bi=!1,Ds=!1;function Tp(e){yt===null?yt=[e]:yt.push(e)}function Yv(e){Bi=!0,Tp(e)}function en(){if(!Ds&&yt!==null){Ds=!0;var e=0,t=B;try{var n=yt;for(B=1;e>=s,o-=s,wt=1<<32-tt(t)+o|n<_?(D=O,O=null):D=O.sibling;var N=f(h,O,y[_],w);if(N===null){O===null&&(O=D);break}e&&O&&N.alternate===null&&t(h,O),p=i(N,p,_),P===null?k=N:P.sibling=N,P=N,O=D}if(_===y.length)return n(h,O),Q&&sn(h,_),k;if(O===null){for(;__?(D=O,O=null):D=O.sibling;var ee=f(h,O,N.value,w);if(ee===null){O===null&&(O=D);break}e&&O&&ee.alternate===null&&t(h,O),p=i(ee,p,_),P===null?k=ee:P.sibling=ee,P=ee,O=D}if(N.done)return n(h,O),Q&&sn(h,_),k;if(O===null){for(;!N.done;_++,N=y.next())N=d(h,N.value,w),N!==null&&(p=i(N,p,_),P===null?k=N:P.sibling=N,P=N);return Q&&sn(h,_),k}for(O=r(h,O);!N.done;_++,N=y.next())N=v(O,h,_,N.value,w),N!==null&&(e&&N.alternate!==null&&O.delete(N.key===null?_:N.key),p=i(N,p,_),P===null?k=N:P.sibling=N,P=N);return e&&O.forEach(function(J){return t(h,J)}),Q&&sn(h,_),k}function S(h,p,y,w){if(typeof y=="object"&&y!==null&&y.type===An&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case wo:e:{for(var k=y.key,P=p;P!==null;){if(P.key===k){if(k=y.type,k===An){if(P.tag===7){n(h,P.sibling),p=o(P,y.props.children),p.return=h,h=p;break e}}else if(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Ft&&$c(k)===P.type){n(h,P.sibling),p=o(P,y.props),p.ref=Sr(h,P,y),p.return=h,h=p;break e}n(h,P);break}else t(h,P);P=P.sibling}y.type===An?(p=pn(y.props.children,h.mode,w,y.key),p.return=h,h=p):(w=Ko(y.type,y.key,y.props,null,h.mode,w),w.ref=Sr(h,p,y),w.return=h,h=w)}return s(h);case _n:e:{for(P=y.key;p!==null;){if(p.key===P)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(h,p.sibling),p=o(p,y.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=Ws(y,h.mode,w),p.return=h,h=p}return s(h);case Ft:return P=y._init,S(h,p,P(y._payload),w)}if(Pr(y))return m(h,p,y,w);if(mr(y))return g(h,p,y,w);To(h,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(h,p.sibling),p=o(p,y),p.return=h,h=p):(n(h,p),p=Hs(y,h.mode,w),p.return=h,h=p),s(h)):n(h,p)}return S}var Gn=Up(!0),Mp=Up(!1),fo={},ft=Zt(fo),Jr=Zt(fo),Xr=Zt(fo);function cn(e){if(e===fo)throw Error(C(174));return e}function lu(e,t){switch(V(Xr,t),V(Jr,e),V(ft,fo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Fl(t,e)}q(ft),V(ft,t)}function Jn(){q(ft),q(Jr),q(Xr)}function zp(e){cn(Xr.current);var t=cn(ft.current),n=Fl(t,e.type);t!==n&&(V(Jr,e),V(ft,n))}function au(e){Jr.current===e&&(q(ft),q(Jr))}var K=Zt(0);function Ei(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 Us=[];function uu(){for(var e=0;en?n:4,e(!0);var r=Ms.transition;Ms.transition={};try{e(!1),t()}finally{B=n,Ms.transition=r}}function nh(){return Ye().memoizedState}function Zv(e,t,n){var r=Qt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rh(e))oh(t,n);else if(n=Lp(e,t,n,r),n!==null){var o=Ce();nt(n,e,r,o),ih(n,t,r)}}function eg(e,t,n){var r=Qt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rh(e))oh(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,ot(l,s)){var a=t.interleaved;a===null?(o.next=o,iu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Lp(e,t,o,r),n!==null&&(o=Ce(),nt(n,e,r,o),ih(n,t,r))}}function rh(e){var t=e.alternate;return e===Y||t!==null&&t===Y}function oh(e,t){Ir=Oi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ih(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Wa(e,n)}}var Ci={readContext:Ke,useCallback:ye,useContext:ye,useEffect:ye,useImperativeHandle:ye,useInsertionEffect:ye,useLayoutEffect:ye,useMemo:ye,useReducer:ye,useRef:ye,useState:ye,useDebugValue:ye,useDeferredValue:ye,useTransition:ye,useMutableSource:ye,useSyncExternalStore:ye,useId:ye,unstable_isNewReconciler:!1},tg={readContext:Ke,useCallback:function(e,t){return lt().memoizedState=[e,t===void 0?null:t],e},useContext:Ke,useEffect:Uc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ho(4194308,4,Jp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ho(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ho(4,2,e,t)},useMemo:function(e,t){var n=lt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lt();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=Zv.bind(null,Y,e),[r.memoizedState,e]},useRef:function(e){var t=lt();return e={current:e},t.memoizedState=e},useState:Dc,useDebugValue:hu,useDeferredValue:function(e){return lt().memoizedState=e},useTransition:function(){var e=Dc(!1),t=e[0];return e=Xv.bind(null,e[1]),lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Y,o=lt();if(Q){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),fe===null)throw Error(C(349));wn&30||Vp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Uc(Wp.bind(null,r,i,e),[e]),r.flags|=2048,to(9,Hp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=lt(),t=fe.identifierPrefix;if(Q){var n=St,r=wt;n=(r&~(1<<32-tt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Zr++,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[ut]=t,e[Gr]=r,hh(e,t,!1,!1),t.stateNode=e;e:{switch(s=Il(n,r),n){case"dialog":H("cancel",e),H("close",e),o=r;break;case"iframe":case"object":case"embed":H("load",e),o=r;break;case"video":case"audio":for(o=0;o<_r.length;o++)H(_r[o],e);o=r;break;case"source":H("error",e),o=r;break;case"img":case"image":case"link":H("error",e),H("load",e),o=r;break;case"details":H("toggle",e),o=r;break;case"input":tc(e,r),o=Al(e,r),H("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=G({},r,{value:void 0}),H("invalid",e);break;case"textarea":rc(e,r),o=Nl(e,r),H("invalid",e);break;default:o=r}Ll(n,o),l=o;for(i in l)if(l.hasOwnProperty(i)){var a=l[i];i==="style"?qf(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Hf(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&br(e,a):typeof a=="number"&&br(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(zr.hasOwnProperty(i)?a!=null&&i==="onScroll"&&H("scroll",e):a!=null&&Ma(e,i,a,s))}switch(n){case"input":So(e),nc(e,r,!1);break;case"textarea":So(e),oc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Gt(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?bn(e,!!r.multiple,i,!1):r.defaultValue!=null&&bn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=hi)}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 we(t),null;case 6:if(e&&t.stateNode!=null)vh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(C(166));if(n=cn(Xr.current),cn(ft.current),Ao(t)){if(r=t.stateNode,n=t.memoizedProps,r[ut]=t,(i=r.nodeValue!==n)&&(e=De,e!==null))switch(e.tag){case 3:_o(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&_o(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ut]=t,t.stateNode=r}return we(t),null;case 13:if(q(K),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Q&&$e!==null&&t.mode&1&&!(t.flags&128))Fp(),Yn(),t.flags|=98560,i=!1;else if(i=Ao(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(C(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(C(317));i[ut]=t}else Yn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;we(t),i=!1}else et!==null&&(ma(et),et=null),i=!0;if(!i)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||K.current&1?le===0&&(le=3):xu())),t.updateQueue!==null&&(t.flags|=4),we(t),null);case 4:return Jn(),la(e,t),e===null&&Kr(t.stateNode.containerInfo),we(t),null;case 10:return ou(t.type._context),we(t),null;case 17:return je(t.type)&&mi(),we(t),null;case 19:if(q(K),i=t.memoizedState,i===null)return we(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)xr(i,!1);else{if(le!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Ei(e),s!==null){for(t.flags|=128,xr(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return V(K,K.current&1|2),t.child}e=e.sibling}i.tail!==null&&ne()>Zn&&(t.flags|=128,r=!0,xr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ei(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),xr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Q)return we(t),null}else 2*ne()-i.renderingStartTime>Zn&&n!==1073741824&&(t.flags|=128,r=!0,xr(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ne(),t.sibling=null,n=K.current,V(K,r?n&1|2:n&1),t):(we(t),null);case 22:case 23:return Su(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ie&1073741824&&(we(t),t.subtreeFlags&6&&(t.flags|=8192)):we(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function ug(e,t){switch(eu(t),t.tag){case 1:return je(t.type)&&mi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Jn(),q(Te),q(xe),uu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return au(t),null;case 13:if(q(K),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));Yn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(K),null;case 4:return Jn(),null;case 10:return ou(t.type._context),null;case 22:case 23:return Su(),null;case 24:return null;default:return null}}var No=!1,Se=!1,cg=typeof WeakSet=="function"?WeakSet:Set,T=null;function Un(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Z(e,t,r)}else n.current=null}function aa(e,t,n){try{n()}catch(r){Z(e,t,r)}}var Qc=!1;function dg(e,t){if(Wl=di,e=Sp(),Xa(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var v;d!==n||o!==0&&d.nodeType!==3||(l=s+o),d!==i||r!==0&&d.nodeType!==3||(a=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(v=d.firstChild)!==null;)f=d,d=v;for(;;){if(d===e)break t;if(f===n&&++u===o&&(l=s),f===i&&++c===r&&(a=s),(v=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=v}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ql={focusedElem:e,selectionRange:n},di=!1,T=t;T!==null;)if(t=T,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,T=e;else for(;T!==null;){t=T;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,S=m.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?g:Xe(t.type,g),S);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(w){Z(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return m=Qc,Qc=!1,m}function $r(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&aa(t,n,i)}o=o.next}while(o!==r)}}function Wi(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 ua(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 gh(e){var t=e.alternate;t!==null&&(e.alternate=null,gh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ut],delete t[Gr],delete t[Yl],delete t[Qv],delete t[Kv])),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 yh(e){return e.tag===5||e.tag===3||e.tag===4}function Kc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yh(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 ca(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=hi));else if(r!==4&&(e=e.child,e!==null))for(ca(e,t,n),e=e.sibling;e!==null;)ca(e,t,n),e=e.sibling}function da(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(da(e,t,n),e=e.sibling;e!==null;)da(e,t,n),e=e.sibling}var he=null,Ze=!1;function Tt(e,t,n){for(n=n.child;n!==null;)wh(e,t,n),n=n.sibling}function wh(e,t,n){if(dt&&typeof dt.onCommitFiberUnmount=="function")try{dt.onCommitFiberUnmount(Di,n)}catch{}switch(n.tag){case 5:Se||Un(n,t);case 6:var r=he,o=Ze;he=null,Tt(e,t,n),he=r,Ze=o,he!==null&&(Ze?(e=he,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):he.removeChild(n.stateNode));break;case 18:he!==null&&(Ze?(e=he,n=n.stateNode,e.nodeType===8?$s(e.parentNode,n):e.nodeType===1&&$s(e,n),Wr(e)):$s(he,n.stateNode));break;case 4:r=he,o=Ze,he=n.stateNode.containerInfo,Ze=!0,Tt(e,t,n),he=r,Ze=o;break;case 0:case 11:case 14:case 15:if(!Se&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&aa(n,t,s),o=o.next}while(o!==r)}Tt(e,t,n);break;case 1:if(!Se&&(Un(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Z(n,t,l)}Tt(e,t,n);break;case 21:Tt(e,t,n);break;case 22:n.mode&1?(Se=(r=Se)||n.memoizedState!==null,Tt(e,t,n),Se=r):Tt(e,t,n);break;default:Tt(e,t,n)}}function Yc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new cg),t.forEach(function(r){var o=Sg.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Je(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*pg(r/1960))-r,10e?16:e,Mt===null)var r=!1;else{if(e=Mt,Mt=null,Ri=0,M&6)throw Error(C(331));var o=M;for(M|=4,T=e.current;T!==null;){var i=T,s=i.child;if(T.flags&16){var l=i.deletions;if(l!==null){for(var a=0;ane()-yu?fn(e,0):gu|=n),Ne(e,t)}function Rh(e,t){t===0&&(e.mode&1?(t=Oo,Oo<<=1,!(Oo&130023424)&&(Oo=4194304)):t=1);var n=Ce();e=kt(e,t),e!==null&&(ao(e,t,n),Ne(e,n))}function wg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Rh(e,n)}function Sg(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(C(314))}r!==null&&r.delete(t),Rh(e,n)}var _h;_h=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Te.current)_e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return _e=!1,lg(e,t,n);_e=!!(e.flags&131072)}else _e=!1,Q&&t.flags&1048576&&jp(t,yi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wo(e,t),e=t.pendingProps;var o=Kn(t,xe.current);Wn(t,n),o=du(null,t,r,e,o,n);var i=fu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,je(r)?(i=!0,vi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,su(t),o.updater=Vi,t.stateNode=o,o._reactInternals=t,ta(t,r,e,n),t=oa(null,t,r,!0,i,n)):(t.tag=0,Q&&i&&Za(t),Ee(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Eg(r),e=Xe(r,e),o){case 0:t=ra(null,t,r,e,n);break e;case 1:t=Hc(null,t,r,e,n);break e;case 11:t=Bc(null,t,r,e,n);break e;case 14:t=Vc(null,t,r,Xe(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xe(r,o),ra(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xe(r,o),Hc(e,t,r,o,n);case 3:e:{if(dh(t),e===null)throw Error(C(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Ip(e,t),xi(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Xn(Error(C(423)),t),t=Wc(e,t,r,n,o);break e}else if(r!==o){o=Xn(Error(C(424)),t),t=Wc(e,t,r,n,o);break e}else for($e=Ht(t.stateNode.containerInfo.firstChild),De=t,Q=!0,et=null,n=Mp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Yn(),r===o){t=Pt(e,t,n);break e}Ee(e,t,r,n)}t=t.child}return t;case 5:return zp(t),e===null&&Xl(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Ql(r,o)?s=null:i!==null&&Ql(r,i)&&(t.flags|=32),ch(e,t),Ee(e,t,s,n),t.child;case 6:return e===null&&Xl(t),null;case 13:return fh(e,t,n);case 4:return lu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Gn(t,null,r,n):Ee(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xe(r,o),Bc(e,t,r,o,n);case 7:return Ee(e,t,t.pendingProps,n),t.child;case 8:return Ee(e,t,t.pendingProps.children,n),t.child;case 12:return Ee(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,V(wi,r._currentValue),r._currentValue=s,i!==null)if(ot(i.value,s)){if(i.children===o.children&&!Te.current){t=Pt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=xt(-1,n&-n),a.tag=2;var u=i.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}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Zl(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(C(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Zl(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Ee(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Wn(t,n),o=Ke(o),r=r(o),t.flags|=1,Ee(e,t,r,n),t.child;case 14:return r=t.type,o=Xe(r,t.pendingProps),o=Xe(r.type,o),Vc(e,t,r,o,n);case 15:return ah(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xe(r,o),Wo(e,t),t.tag=1,je(r)?(e=!0,vi(t)):e=!1,Wn(t,n),Dp(t,r,o),ta(t,r,o,n),oa(null,t,r,!0,e,n);case 19:return ph(e,t,n);case 22:return uh(e,t,n)}throw Error(C(156,t.tag))};function Ah(e,t){return tp(e,t)}function xg(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 We(e,t,n,r){return new xg(e,t,n,r)}function Eu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Eg(e){if(typeof e=="function")return Eu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ba)return 11;if(e===Ba)return 14}return 2}function Kt(e,t){var n=e.alternate;return n===null?(n=We(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 Ko(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Eu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case An:return pn(n.children,o,i,t);case za:s=8,o|=8;break;case kl:return e=We(12,n,t,o|2),e.elementType=kl,e.lanes=i,e;case Pl:return e=We(13,n,t,o),e.elementType=Pl,e.lanes=i,e;case Rl:return e=We(19,n,t,o),e.elementType=Rl,e.lanes=i,e;case Uf:return Qi(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $f:s=10;break e;case Df:s=9;break e;case ba:s=11;break e;case Ba:s=14;break e;case Ft:s=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=We(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function pn(e,t,n,r){return e=We(7,e,r,t),e.lanes=n,e}function Qi(e,t,n,r){return e=We(22,e,r,t),e.elementType=Uf,e.lanes=n,e.stateNode={isHidden:!1},e}function Hs(e,t,n){return e=We(6,e,null,t),e.lanes=n,e}function Ws(e,t,n){return t=We(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Og(e,t,n,r,o){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=ks(0),this.expirationTimes=ks(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ks(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ou(e,t,n,r,o,i,s,l,a){return e=new Og(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=We(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},su(i),e}function Cg(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Fh)}catch(e){console.error(e)}}Fh(),jf.exports=Me;var Ag=jf.exports,rd=Ag;Ol.createRoot=rd.createRoot,Ol.hydrateRoot=rd.hydrateRoot;/** + * @remix-run/router v1.11.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 ro(){return ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Ru(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function jg(){return Math.random().toString(36).substr(2,8)}function id(e,t){return{usr:e.state,key:e.key,idx:t}}function va(e,t,n,r){return n===void 0&&(n=null),ro({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?cr(t):t,{state:n,key:t&&t.key||r||jg()})}function Lh(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 cr(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 Ng(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,l=zt.Pop,a=null,u=c();u==null&&(u=0,s.replaceState(ro({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){l=zt.Pop;let S=c(),h=S==null?null:S-u;u=S,a&&a({action:l,location:g.location,delta:h})}function f(S,h){l=zt.Push;let p=va(g.location,S,h);n&&n(p,S),u=c()+1;let y=id(p,u),w=g.createHref(p);try{s.pushState(y,"",w)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(w)}i&&a&&a({action:l,location:g.location,delta:1})}function v(S,h){l=zt.Replace;let p=va(g.location,S,h);n&&n(p,S),u=c();let y=id(p,u),w=g.createHref(p);s.replaceState(y,"",w),i&&a&&a({action:l,location:g.location,delta:0})}function m(S){let h=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof S=="string"?S:Lh(S);return ae(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let g={get action(){return l},get location(){return e(o,s)},listen(S){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(od,d),a=S,()=>{o.removeEventListener(od,d),a=null}},createHref(S){return t(o,S)},createURL:m,encodeLocation(S){let h=m(S);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:f,replace:v,go(S){return s.go(S)}};return g}var sd;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(sd||(sd={}));function Fg(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?cr(t):t,o=Dh(r.pathname||"/",n);if(o==null)return null;let i=Ih(e);Lg(i);let s=null;for(let l=0;s==null&&l{let a={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};a.relativePath.startsWith("/")&&(ae(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=hn([r,a.relativePath]),c=n.concat(a);i.children&&i.children.length>0&&(ae(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Ih(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:bg(u,i.index),routesMeta:c})};return e.forEach((i,s)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,s);else for(let a of $h(i.path))o(i,s,a)}),t}function $h(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=$h(r.join("/")),l=[];return l.push(...s.map(a=>a===""?i:[i,a].join("/"))),o&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function Lg(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Bg(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Ig=/^:\w+$/,$g=3,Dg=2,Ug=1,Mg=10,zg=-2,ld=e=>e==="*";function bg(e,t){let n=e.split("/"),r=n.length;return n.some(ld)&&(r+=zg),t&&(r+=Dg),n.filter(o=>!ld(o)).reduce((o,i)=>o+(Ig.test(i)?$g:i===""?Ug:Mg),r)}function Bg(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Vg(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let s=0;s{let{paramName:f,isOptional:v}=c;if(f==="*"){let g=l[d]||"";s=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const m=l[d];return v&&!m?u[f]=void 0:u[f]=Qg(m||"",f),u},{}),pathname:i,pathnameBase:s,pattern:e}}function Wg(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ru(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(s,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function qg(e){try{return decodeURI(e)}catch(t){return Ru(!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 Qg(e,t){try{return decodeURIComponent(e)}catch(n){return Ru(!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 Dh(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 Kg(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?cr(e):e;return{pathname:n?n.startsWith("/")?n:Yg(n,t):t,search:Zg(r),hash:ey(o)}}function Yg(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function qs(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 Gg(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Jg(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=cr(e):(o=ro({},e),ae(!o.pathname||!o.pathname.includes("?"),qs("?","pathname","search",o)),ae(!o.pathname||!o.pathname.includes("#"),qs("#","pathname","hash",o)),ae(!o.search||!o.search.includes("#"),qs("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,l;if(r||s==null)l=n;else{let d=t.length-1;if(s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}l=d>=0?t[d]:"/"}let a=Kg(o,l),u=s&&s!=="/"&&s.endsWith("/"),c=(i||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||c)&&(a.pathname+="/"),a}const hn=e=>e.join("/").replace(/\/\/+/g,"/"),Xg=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Zg=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ey=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function ty(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Uh=["post","put","patch","delete"];new Set(Uh);const ny=["get",...Uh];new Set(ny);/** + * React Router v6.18.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 Ti(){return Ti=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.pathnameBase)),s=R.useRef(!1);return bh(()=>{s.current=!0}),R.useCallback(function(a,u){if(u===void 0&&(u={}),!s.current)return;if(typeof a=="number"){n.go(a);return}let c=Jg(a,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:hn([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,i,o,e])}function sy(e,t){return ly(e,t)}function ly(e,t,n){es()||ae(!1);let{navigator:r}=R.useContext(Xi),{matches:o}=R.useContext(dr),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let a=zh(),u;if(t){var c;let g=typeof t=="string"?cr(t):t;l==="/"||(c=g.pathname)!=null&&c.startsWith(l)||ae(!1),u=g}else u=a;let d=u.pathname||"/",f=l==="/"?d:d.slice(l.length)||"/",v=Fg(e,{pathname:f}),m=fy(v&&v.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:hn([l,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:hn([l,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,n);return t&&m?R.createElement(Zi.Provider,{value:{location:Ti({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:zt.Pop}},m):m}function ay(){let e=vy(),t=ty(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},t),n?R.createElement("pre",{style:o},n):null,i)}const uy=R.createElement(ay,null);class cy extends R.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?R.createElement(dr.Provider,{value:this.props.routeContext},R.createElement(Mh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function dy(e){let{routeContext:t,match:n,children:r}=e,o=R.useContext(_u);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),R.createElement(dr.Provider,{value:t},r)}function fy(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,s=(r=n)==null?void 0:r.errors;if(s!=null){let l=i.findIndex(a=>a.route.id&&(s==null?void 0:s[a.route.id]));l>=0||ae(!1),i=i.slice(0,Math.min(i.length,l+1))}return i.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||uy);let f=t.concat(i.slice(0,u+1)),v=()=>{let m;return c?m=d:a.route.Component?m=R.createElement(a.route.Component,null):a.route.element?m=a.route.element:m=l,R.createElement(dy,{match:a,routeContext:{outlet:l,matches:f,isDataRoute:n!=null},children:m})};return n&&(a.route.ErrorBoundary||a.route.errorElement||u===0)?R.createElement(cy,{location:n.location,revalidation:n.revalidation,component:d,error:c,children:v(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):v()},null)}var Bh=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Bh||{}),ji=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}(ji||{});function py(e){let t=R.useContext(_u);return t||ae(!1),t}function hy(e){let t=R.useContext(ry);return t||ae(!1),t}function my(e){let t=R.useContext(dr);return t||ae(!1),t}function Vh(e){let t=my(),n=t.matches[t.matches.length-1];return n.route.id||ae(!1),n.route.id}function vy(){var e;let t=R.useContext(Mh),n=hy(ji.UseRouteError),r=Vh(ji.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function gy(){let{router:e}=py(Bh.UseNavigateStable),t=Vh(ji.UseNavigateStable),n=R.useRef(!1);return bh(()=>{n.current=!0}),R.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ti({fromRouteId:t},i)))},[e,t])}function Yo(e){ae(!1)}function yy(e){let{basename:t="/",children:n=null,location:r,navigationType:o=zt.Pop,navigator:i,static:s=!1}=e;es()&&ae(!1);let l=t.replace(/^\/*/,"/"),a=R.useMemo(()=>({basename:l,navigator:i,static:s}),[l,i,s]);typeof r=="string"&&(r=cr(r));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:v="default"}=r,m=R.useMemo(()=>{let g=Dh(u,l);return g==null?null:{location:{pathname:g,search:c,hash:d,state:f,key:v},navigationType:o}},[l,u,c,d,f,v,o]);return m==null?null:R.createElement(Xi.Provider,{value:a},R.createElement(Zi.Provider,{children:n,value:m}))}function wy(e){let{children:t,location:n}=e;return sy(ga(t),n)}new Promise(()=>{});function ga(e,t){t===void 0&&(t=[]);let n=[];return R.Children.forEach(e,(r,o)=>{if(!R.isValidElement(r))return;let i=[...t,o];if(r.type===R.Fragment){n.push.apply(n,ga(r.props.children,i));return}r.type!==Yo&&ae(!1),!r.props.index||!r.props.children||ae(!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=ga(r.props.children,i)),n.push(s)}),n}/** + * React Router DOM v6.18.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 + */const Sy="startTransition",ad=w0[Sy];function xy(e){let{basename:t,children:n,future:r,window:o}=e,i=R.useRef();i.current==null&&(i.current=Tg({window:o,v5Compat:!0}));let s=i.current,[l,a]=R.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=R.useCallback(d=>{u&&ad?ad(()=>a(d)):a(d)},[a,u]);return R.useLayoutEffect(()=>s.listen(c),[s,c]),R.createElement(yy,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s})}var ud;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ud||(ud={}));var cd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(cd||(cd={}));var Ae=function(){return Ae=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0?de(fr,--Ge):0,tr--,re===10&&(tr=1,ns--),re}function rt(){return re=Ge2||wa(re)>3?"":" "}function Ny(e,t){for(;--t&&rt()&&!(re<48||re>102||re>57&&re<65||re>70&&re<97););return os(e,Jo()+(t<6&&mn()==32&&rt()==32))}function Sa(e){for(;rt();)switch(re){case e:return Ge;case 34:case 39:e!==34&&e!==39&&Sa(re);break;case 40:e===41&&Sa(e);break;case 92:rt();break}return Ge}function Fy(e,t){for(;rt()&&e+re!==47+10;)if(e+re===42+42&&mn()===47)break;return"/*"+os(t,Ge-1)+"*"+Tu(e===47?e:rt())}function Ly(e){for(;!wa(mn());)rt();return os(e,Ge)}function Iy(e){return Ty(Xo("",null,null,null,[""],e=Ay(e),0,[0],e))}function Xo(e,t,n,r,o,i,s,l,a){for(var u=0,c=0,d=s,f=0,v=0,m=0,g=1,S=1,h=1,p=0,y="",w=o,k=i,P=r,O=y;S;)switch(m=p,p=rt()){case 40:if(m!=108&&de(O,d-1)==58){Go(O+=I(Qs(p),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:O+=Qs(p);break;case 9:case 10:case 13:case 32:O+=jy(m);break;case 92:O+=Ny(Jo()-1,7);continue;case 47:switch(mn()){case 42:case 47:Ar($y(Fy(rt(),Jo()),t,n,a),a);break;default:O+="/"}break;case 123*g:l[u++]=at(O)*h;case 125*g:case 59:case 0:switch(p){case 0:case 125:S=0;case 59+c:h==-1&&(O=I(O,/\f/g,"")),v>0&&at(O)-d&&Ar(v>32?pd(O+";",r,n,d-1,a):pd(I(O," ","")+";",r,n,d-2,a),a);break;case 59:O+=";";default:if(Ar(P=fd(O,t,n,u,c,o,l,y,w=[],k=[],d,i),i),p===123)if(c===0)Xo(O,t,P,P,w,i,d,l,k);else switch(f===99&&de(O,3)===110?100:f){case 100:case 108:case 109:case 115:Xo(e,P,P,r&&Ar(fd(e,P,P,0,0,o,l,y,o,w=[],d,k),k),o,k,d,l,r?w:k);break;default:Xo(O,P,P,P,[""],k,0,l,k)}}u=c=v=0,g=h=1,y=O="",d=s;break;case 58:d=1+at(O),v=m;default:if(g<1){if(p==123)--g;else if(p==125&&g++==0&&_y()==125)continue}switch(O+=Tu(p),p*g){case 38:h=c>0?1:(O+="\f",-1);break;case 44:l[u++]=(at(O)-1)*h,h=1;break;case 64:mn()===45&&(O+=Qs(rt())),f=mn(),c=d=at(y=O+=Ly(Jo())),p++;break;case 45:m===45&&at(O)==2&&(g=0)}}return i}function fd(e,t,n,r,o,i,s,l,a,u,c,d){for(var f=o-1,v=o===0?i:[""],m=Qh(v),g=0,S=0,h=0;g0?v[p]+" "+y:I(y,/&\f/g,v[p])))&&(a[h++]=w);return rs(e,t,n,o===0?ts:l,a,u,c,d)}function $y(e,t,n,r){return rs(e,t,n,Hh,Tu(Ry()),er(e,2,-2),0,r)}function pd(e,t,n,r,o){return rs(e,t,n,Au,er(e,0,r),er(e,r+1,-1),r,o)}function Yh(e,t,n){switch(ky(e,t)){case 5103:return b+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return b+e+e;case 4789:return Mr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return b+e+Mr+e+W+e+e;case 5936:switch(de(e,t+11)){case 114:return b+e+W+I(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return b+e+W+I(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return b+e+W+I(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return b+e+W+e+e;case 6165:return b+e+W+"flex-"+e+e;case 5187:return b+e+I(e,/(\w+).+(:[^]+)/,b+"box-$1$2"+W+"flex-$1$2")+e;case 5443:return b+e+W+"flex-item-"+I(e,/flex-|-self/g,"")+(gt(e,/flex-|baseline/)?"":W+"grid-row-"+I(e,/flex-|-self/g,""))+e;case 4675:return b+e+W+"flex-line-pack"+I(e,/align-content|flex-|-self/g,"")+e;case 5548:return b+e+W+I(e,"shrink","negative")+e;case 5292:return b+e+W+I(e,"basis","preferred-size")+e;case 6060:return b+"box-"+I(e,"-grow","")+b+e+W+I(e,"grow","positive")+e;case 4554:return b+I(e,/([^-])(transform)/g,"$1"+b+"$2")+e;case 6187:return I(I(I(e,/(zoom-|grab)/,b+"$1"),/(image-set)/,b+"$1"),e,"")+e;case 5495:case 3959:return I(e,/(image-set\([^]*)/,b+"$1$`$1");case 4968:return I(I(e,/(.+:)(flex-)?(.*)/,b+"box-pack:$3"+W+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+b+e+e;case 4200:if(!gt(e,/flex-|baseline/))return W+"grid-column-align"+er(e,t)+e;break;case 2592:case 3360:return W+I(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,gt(r.props,/grid-\w+-end/)})?~Go(e+(n=n[t].value),"span")?e:W+I(e,"-start","")+e+W+"grid-row-span:"+(~Go(n,"span")?gt(n,/\d+/):+gt(n,/\d+/)-+gt(e,/\d+/))+";":W+I(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return gt(r.props,/grid-\w+-start/)})?e:W+I(I(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return I(e,/(.+)-inline(.+)/,b+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(at(e)-1-t>6)switch(de(e,t+1)){case 109:if(de(e,t+4)!==45)break;case 102:return I(e,/(.+:)(.+)-([^]+)/,"$1"+b+"$2-$3$1"+Mr+(de(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Go(e,"stretch")?Yh(I(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return I(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,s,l,a,u){return W+o+":"+i+u+(s?W+o+"-span:"+(l?a:+a-+i)+u:"")+e});case 4949:if(de(e,t+6)===121)return I(e,":",":"+b)+e;break;case 6444:switch(de(e,de(e,14)===45?18:11)){case 120:return I(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+b+(de(e,14)===45?"inline-":"")+"box$3$1"+b+"$2$3$1"+W+"$2box$3")+e;case 100:return I(e,":",":"+W)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return I(e,"scroll-","scroll-snap-")+e}return e}function Fi(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case Au:e.return=Yh(e.value,e.length,n);return;case Wh:return Fi([Nt(e,{value:I(e.value,"@","@"+b)})],r);case ts:if(e.length)return Py(n=e.props,function(o){switch(gt(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":kn(Nt(e,{props:[I(o,/:(read-\w+)/,":"+Mr+"$1")]})),kn(Nt(e,{props:[o]})),ya(e,{props:dd(n,r)});break;case"::placeholder":kn(Nt(e,{props:[I(o,/:(plac\w+)/,":"+b+"input-$1")]})),kn(Nt(e,{props:[I(o,/:(plac\w+)/,":"+Mr+"$1")]})),kn(Nt(e,{props:[I(o,/:(plac\w+)/,W+"input-$1")]})),kn(Nt(e,{props:[o]})),ya(e,{props:dd(n,r)});break}return""})}}var by={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},nr=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",ju=typeof window<"u"&&"HTMLElement"in window,By=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==""?{}.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&{}.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.SC_DISABLE_SPEEDY!==void 0&&{}.SC_DISABLE_SPEEDY!==""&&{}.SC_DISABLE_SPEEDY!=="false"&&{}.SC_DISABLE_SPEEDY),is=Object.freeze([]),rr=Object.freeze({});function Vy(e,t,n){return n===void 0&&(n=rr),e.theme!==n.theme&&e.theme||t||n.theme}var Gh=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Hy=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Wy=/(^-|-$)/g;function hd(e){return e.replace(Hy,"-").replace(Wy,"")}var qy=/(a)(d)/gi,md=function(e){return String.fromCharCode(e+(e>25?39:97))};function xa(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=md(t%52)+n;return(md(t%52)+n).replace(qy,"$1-$2")}var Ks,zn=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Jh=function(e){return zn(5381,e)};function Qy(e){return xa(Jh(e)>>>0)}function Ky(e){return e.displayName||e.name||"Component"}function Ys(e){return typeof e=="string"&&!0}var Xh=typeof Symbol=="function"&&Symbol.for,Zh=Xh?Symbol.for("react.memo"):60115,Yy=Xh?Symbol.for("react.forward_ref"):60112,Gy={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Jy={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},em={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Xy=((Ks={})[Yy]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ks[Zh]=em,Ks);function vd(e){return("type"in(t=e)&&t.type.$$typeof)===Zh?em:"$$typeof"in e?Xy[e.$$typeof]:Gy;var t}var Zy=Object.defineProperty,e1=Object.getOwnPropertyNames,gd=Object.getOwnPropertySymbols,t1=Object.getOwnPropertyDescriptor,n1=Object.getPrototypeOf,yd=Object.prototype;function tm(e,t,n){if(typeof t!="string"){if(yd){var r=n1(t);r&&r!==yd&&tm(e,r,n)}var o=e1(t);gd&&(o=o.concat(gd(t)));for(var i=vd(e),s=vd(t),l=0;l0?" Args: ".concat(t.join(", ")):""))}var r1=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,i=o;t>=i;)if((i<<=1)<0)throw po(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var s=o;s=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),i=o+r,s=o;s=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(S+="".concat(h,","))}),a+="".concat(m).concat(g,'{content:"').concat(S,'"}').concat(`/*!sc*/ +`)},c=0;c0?".".concat(t):f},c=a.slice();c.push(function(f){f.type===ts&&f.value.includes("&")&&(f.props[0]=f.props[0].replace(h1,n).replace(r,u))}),s.prefix&&c.push(zy),c.push(Dy);var d=function(f,v,m,g){v===void 0&&(v=""),m===void 0&&(m=""),g===void 0&&(g="&"),t=g,n=v,r=new RegExp("\\".concat(n,"\\b"),"g");var S=f.replace(m1,""),h=Iy(m||v?"".concat(m," ").concat(v," { ").concat(S," }"):S);s.namespace&&(h=om(h,s.namespace));var p=[];return Fi(h,Uy(c.concat(My(function(y){return p.push(y)})))),p};return d.hash=a.length?a.reduce(function(f,v){return v.name||po(15),zn(f,v.name)},5381).toString():"",d}var g1=new rm,Oa=v1(),im=Oe.createContext({shouldForwardProp:void 0,styleSheet:g1,stylis:Oa});im.Consumer;Oe.createContext(void 0);function xd(){return R.useContext(im)}var y1=function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=Oa);var s=r.name+i.hash;o.hasNameForId(r.id,s)||o.insertRules(r.id,s,i(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Fu(this,function(){throw po(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Oa),this.name+t.hash},e}(),w1=function(e){return e>="A"&&e<="Z"};function Ed(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,s)){var l=r(i,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,l)}o=dn(o,s),this.staticRulesId=s}else{for(var a=zn(this.baseHash,r.hash),u="",c=0;c>>0);n.hasNameForId(this.componentId,v)||n.insertRules(this.componentId,v,r(u,".".concat(v),void 0,this.componentId)),o=dn(o,v)}}return o},e}(),am=Oe.createContext(void 0);am.Consumer;var Gs={};function O1(e,t,n){var r=Nu(e),o=e,i=!Ys(e),s=t.attrs,l=s===void 0?is:s,a=t.componentId,u=a===void 0?function(w,k){var P=typeof w!="string"?"sc":hd(w);Gs[P]=(Gs[P]||0)+1;var O="".concat(P,"-").concat(Qy("6.1.1"+P+Gs[P]));return k?"".concat(k,"-").concat(O):O}(t.displayName,t.parentComponentId):a,c=t.displayName,d=c===void 0?function(w){return Ys(w)?"styled.".concat(w):"Styled(".concat(Ky(w),")")}(e):c,f=t.displayName&&t.componentId?"".concat(hd(t.displayName),"-").concat(t.componentId):t.componentId||u,v=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(r&&o.shouldForwardProp){var g=o.shouldForwardProp;if(t.shouldForwardProp){var S=t.shouldForwardProp;m=function(w,k){return g(w,k)&&S(w,k)}}else m=g}var h=new E1(n,f,r?o.componentStyle:void 0);function p(w,k){return function(P,O,_){var D=P.attrs,N=P.componentStyle,ee=P.defaultProps,J=P.foldedComponentIds,pe=P.styledComponentId,ue=P.target,hr=Oe.useContext(am),nn=xd(),rn=P.shouldForwardProp||nn.shouldForwardProp,A=function(be,mt,Be){for(var it,on=Ae(Ae({},mt),{className:void 0,theme:Be}),ws=0;ws{let t;const n=new Set,r=(a,u)=>{const c=typeof a=="function"?a(t):a;if(!Object.is(c,t)){const d=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(f=>f(t,d))}},o=()=>t,l={setState:r,getState:o,subscribe:a=>(n.add(a),()=>n.delete(a)),destroy:()=>{n.clear()}};return t=e(r,o,l),l},k1=e=>e?kd(e):kd;var cm={exports:{}},dm={},fm={exports:{}},pm={};/** + * @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 ir=R;function P1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var R1=typeof Object.is=="function"?Object.is:P1,_1=ir.useState,A1=ir.useEffect,T1=ir.useLayoutEffect,j1=ir.useDebugValue;function N1(e,t){var n=t(),r=_1({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return T1(function(){o.value=n,o.getSnapshot=t,Js(o)&&i({inst:o})},[e,n,t]),A1(function(){return Js(o)&&i({inst:o}),e(function(){Js(o)&&i({inst:o})})},[e]),j1(n),n}function Js(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!R1(e,n)}catch{return!0}}function F1(e,t){return t()}var L1=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?F1:N1;pm.useSyncExternalStore=ir.useSyncExternalStore!==void 0?ir.useSyncExternalStore:L1;fm.exports=pm;var I1=fm.exports;/** + * @license React + * use-sync-external-store-shim/with-selector.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 ss=R,$1=I1;function D1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var U1=typeof Object.is=="function"?Object.is:D1,M1=$1.useSyncExternalStore,z1=ss.useRef,b1=ss.useEffect,B1=ss.useMemo,V1=ss.useDebugValue;dm.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=z1(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=B1(function(){function a(v){if(!u){if(u=!0,c=v,v=r(v),o!==void 0&&s.hasValue){var m=s.value;if(o(m,v))return d=m}return d=v}if(m=d,U1(c,v))return m;var g=r(v);return o!==void 0&&o(m,g)?m:(c=v,d=g)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return a(t())},f===null?void 0:function(){return a(f())}]},[t,n,r,o]);var l=M1(e,i[0],i[1]);return b1(function(){s.hasValue=!0,s.value=l},[l]),V1(l),l};cm.exports=dm;var H1=cm.exports;const W1=Sf(H1),{useDebugValue:q1}=Oe,{useSyncExternalStoreWithSelector:Q1}=W1;function K1(e,t=e.getState,n){const r=Q1(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return q1(r),r}const Pd=e=>{const t=typeof e=="function"?k1(e):e,n=(r,o)=>K1(t,r,o);return Object.assign(n,t),n},hm=e=>e?Pd(e):Pd,ka=new Map,$o=e=>{const t=ka.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},Y1=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=ka.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return ka.set(n.name,o),{type:"tracked",store:e,...o}},G1=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:s,store:l,...a}=t;let u;try{u=(i??!1)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return e(n,r,o);const{connection:c,...d}=Y1(l,u,a);let f=!0;o.setState=(g,S,h)=>{const p=n(g,S);if(!f)return p;const y=h===void 0?{type:s||"anonymous"}:typeof h=="string"?{type:h}:h;return l===void 0?(c==null||c.send(y,r()),p):(c==null||c.send({...y,type:`${l}/${y.type}`},{...$o(a.name),[l]:o.getState()}),p)};const v=(...g)=>{const S=f;f=!1,n(...g),f=S},m=e(o.setState,r,o);if(d.type==="untracked"?c==null||c.init(m):(d.stores[d.store]=o,c==null||c.init(Object.fromEntries(Object.entries(d.stores).map(([g,S])=>[g,g===d.store?m:S.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let g=!1;const S=o.dispatch;o.dispatch=(...h)=>{S(...h)}}return c.subscribe(g=>{var S;switch(g.type){case"ACTION":if(typeof g.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return Xs(g.payload,h=>{if(h.type==="__setState"){if(l===void 0){v(h.state);return}Object.keys(h.state).length!==1&&console.error(` + [zustand devtools middleware] Unsupported __setState action format. + When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), + and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } + `);const p=h.state[l];if(p==null)return;JSON.stringify(o.getState())!==JSON.stringify(p)&&v(p);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(h)});case"DISPATCH":switch(g.payload.type){case"RESET":return v(m),l===void 0?c==null?void 0:c.init(o.getState()):c==null?void 0:c.init($o(a.name));case"COMMIT":if(l===void 0){c==null||c.init(o.getState());return}return c==null?void 0:c.init($o(a.name));case"ROLLBACK":return Xs(g.state,h=>{if(l===void 0){v(h),c==null||c.init(o.getState());return}v(h[l]),c==null||c.init($o(a.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Xs(g.state,h=>{if(l===void 0){v(h);return}JSON.stringify(o.getState())!==JSON.stringify(h[l])&&v(h[l])});case"IMPORT_STATE":{const{nextLiftedState:h}=g.payload,p=(S=h.computedStates.slice(-1)[0])==null?void 0:S.state;if(!p)return;v(l===void 0?p:p[l]),c==null||c.send(null,h);return}case"PAUSE_RECORDING":return f=!f}return}}),m},mm=G1,Xs=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)},Lu=hm()(mm(e=>({expressionData:[],cautionData:[],terminologyData:[],setExpressionData:t=>e({expressionData:t}),setCautionData:t=>e({cautionData:t}),setTerminologyData:t=>e({terminologyData:t})}))),J1=()=>{const{expressionData:e,cautionData:t}=Lu();return x.jsxs(X1,{children:[x.jsx(Z1,{children:x.jsxs(ew,{children:[x.jsx(tw,{children:"Analytics"}),x.jsx(nw,{children:"계약서 분석 자료"})]})}),x.jsx(iw,{children:x.jsxs(sw,{children:[e.length!=0&&x.jsx(ow,{children:"표현해석"}),e&&e.map((n,r)=>x.jsx(Rd,{children:n},r)),t.length!=0&&x.jsx(rw,{children:"유의사항"}),t&&t.map((n,r)=>x.jsx(Rd,{children:n},r))]})})]})},X1=j.div` + /* width: 462px; + height: 330px; */ + width: 90%; + height: 80%; + padding: 2rem; + border-radius: 10px; + border: 1px solid #e4e4e7; + + display: flex; + flex-direction: column; + justify-content: space-between; +`,Z1=j.div` + width: 100%; + display: flex; + justify-content: space-between; +`,ew=j.div` + display: flex; + flex-direction: column; +`,tw=j.p` + padding: 0; + margin: 0; + color: #000; + font-family: Pretendard; + font-size: 16px; + font-style: bold; + font-weight: 700; + line-height: normal; +`,nw=j.p` + padding: 0; + margin: 0; + color: #000; + color: #000; + + font-family: Pretendard; + font-size: 12px; + font-style: normal; + font-weight: 500; + line-height: normal; +`,rw=j.p` + padding: 0; + margin-bottom: 1rem; + color: #ff0000; + font-family: Pretendard; + font-size: 18px; + font-style: normal; + font-weight: 600; + line-height: normal; +`,ow=j.p` + padding: 0; + margin-bottom: 1rem; + color: #000; + font-family: Pretendard; + font-size: 18px; + font-style: normal; + font-weight: 600; + line-height: normal; +`,Rd=j.p` + padding: 0; + margin-bottom: 1rem; + color: #000; + font-family: Pretendard; + font-size: 14px; + font-style: normal; + font-weight: 600; + line-height: normal; +`,iw=j.div` + height: 100%; + margin-top: 1rem; + overflow: auto; + padding-right: 0.5rem; + + &::-webkit-scrollbar { + width: 8px; /* Width of scrollbar */ + height: 0px; /* Set to 0 for horizontal scrollbar */ + } + + &::-webkit-scrollbar-thumb { + background-color: #000000; /* Scrollbar color */ + border-radius: 4px; /* Round the corners of the scrollbar */ + } + + &::-webkit-scrollbar-track { + background-color: #f1f1f1; /* Color of scrollbar track */ + } +`,sw=j.div` + margin-bottom: 1rem; +`;var io={},vm={},Iu={exports:{}},gm=function(t,n){return function(){for(var o=new Array(arguments.length),i=0;i"u"}function aw(e){return e!==null&&!Pa(e)&&e.constructor!==null&&!Pa(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function ym(e){return tn.call(e)==="[object ArrayBuffer]"}function uw(e){return tn.call(e)==="[object FormData]"}function cw(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ym(e.buffer),t}function dw(e){return typeof e=="string"}function fw(e){return typeof e=="number"}function wm(e){return e!==null&&typeof e=="object"}function ti(e){if(tn.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function pw(e){return tn.call(e)==="[object Date]"}function hw(e){return tn.call(e)==="[object File]"}function mw(e){return tn.call(e)==="[object Blob]"}function Sm(e){return tn.call(e)==="[object Function]"}function vw(e){return wm(e)&&Sm(e.pipe)}function gw(e){return tn.call(e)==="[object URLSearchParams]"}function yw(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function ww(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Du(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),$u(e))for(var n=0,r=e.length;n"u"||(Pn.isArray(a)?u=u+"[]":a=[a],Pn.forEach(a,function(d){Pn.isDate(d)?d=d.toISOString():Pn.isObject(d)&&(d=JSON.stringify(d)),i.push(_d(u)+"="+_d(d))}))}),o=i.join("&")}if(o){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t},Ew=Fe;function ls(){this.handlers=[]}ls.prototype.use=function(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};ls.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};ls.prototype.forEach=function(t){Ew.forEach(this.handlers,function(r){r!==null&&t(r)})};var Ow=ls,Cw=Fe,kw=function(t,n){Cw.forEach(t,function(o,i){i!==n&&i.toUpperCase()===n.toUpperCase()&&(t[n]=o,delete t[i])})},Em=function(t,n,r,o,i){return t.config=n,r&&(t.code=r),t.request=o,t.response=i,t.isAxiosError=!0,t.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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},Om={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Zs,Ad;function Cm(){if(Ad)return Zs;Ad=1;var e=Em;return Zs=function(n,r,o,i,s){var l=new Error(n);return e(l,r,o,i,s)},Zs}var el,Td;function Pw(){if(Td)return el;Td=1;var e=Cm();return el=function(n,r,o){var i=o.config.validateStatus;!o.status||!i||i(o.status)?n(o):r(e("Request failed with status code "+o.status,o.config,null,o.request,o))},el}var tl,jd;function Rw(){if(jd)return tl;jd=1;var e=Fe;return tl=e.isStandardBrowserEnv()?function(){return{write:function(r,o,i,s,l,a){var u=[];u.push(r+"="+encodeURIComponent(o)),e.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),e.isString(s)&&u.push("path="+s),e.isString(l)&&u.push("domain="+l),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(r){var o=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),tl}var nl,Nd;function _w(){return Nd||(Nd=1,nl=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),nl}var rl,Fd;function Aw(){return Fd||(Fd=1,rl=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}),rl}var ol,Ld;function Tw(){if(Ld)return ol;Ld=1;var e=_w(),t=Aw();return ol=function(r,o){return r&&!e(o)?t(r,o):o},ol}var il,Id;function jw(){if(Id)return il;Id=1;var e=Fe,t=["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"];return il=function(r){var o={},i,s,l;return r&&e.forEach(r.split(` +`),function(u){if(l=u.indexOf(":"),i=e.trim(u.substr(0,l)).toLowerCase(),s=e.trim(u.substr(l+1)),i){if(o[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?o[i]=(o[i]?o[i]:[]).concat([s]):o[i]=o[i]?o[i]+", "+s:s}}),o},il}var sl,$d;function Nw(){if($d)return sl;$d=1;var e=Fe;return sl=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),o;function i(s){var l=s;return n&&(r.setAttribute("href",l),l=r.href),r.setAttribute("href",l),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return o=i(window.location.href),function(l){var a=e.isString(l)?i(l):l;return a.protocol===o.protocol&&a.host===o.host}}():function(){return function(){return!0}}(),sl}var ll,Dd;function as(){if(Dd)return ll;Dd=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,ll=e,ll}var al,Ud;function Md(){if(Ud)return al;Ud=1;var e=Fe,t=Pw(),n=Rw(),r=xm,o=Tw(),i=jw(),s=Nw(),l=Cm(),a=Om,u=as();return al=function(d){return new Promise(function(v,m){var g=d.data,S=d.headers,h=d.responseType,p;function y(){d.cancelToken&&d.cancelToken.unsubscribe(p),d.signal&&d.signal.removeEventListener("abort",p)}e.isFormData(g)&&delete S["Content-Type"];var w=new XMLHttpRequest;if(d.auth){var k=d.auth.username||"",P=d.auth.password?unescape(encodeURIComponent(d.auth.password)):"";S.Authorization="Basic "+btoa(k+":"+P)}var O=o(d.baseURL,d.url);w.open(d.method.toUpperCase(),r(O,d.params,d.paramsSerializer),!0),w.timeout=d.timeout;function _(){if(w){var N="getAllResponseHeaders"in w?i(w.getAllResponseHeaders()):null,ee=!h||h==="text"||h==="json"?w.responseText:w.response,J={data:ee,status:w.status,statusText:w.statusText,headers:N,config:d,request:w};t(function(ue){v(ue),y()},function(ue){m(ue),y()},J),w=null}}if("onloadend"in w?w.onloadend=_:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(_)},w.onabort=function(){w&&(m(l("Request aborted",d,"ECONNABORTED",w)),w=null)},w.onerror=function(){m(l("Network Error",d,null,w)),w=null},w.ontimeout=function(){var ee=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",J=d.transitional||a;d.timeoutErrorMessage&&(ee=d.timeoutErrorMessage),m(l(ee,d,J.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",w)),w=null},e.isStandardBrowserEnv()){var D=(d.withCredentials||s(O))&&d.xsrfCookieName?n.read(d.xsrfCookieName):void 0;D&&(S[d.xsrfHeaderName]=D)}"setRequestHeader"in w&&e.forEach(S,function(ee,J){typeof g>"u"&&J.toLowerCase()==="content-type"?delete S[J]:w.setRequestHeader(J,ee)}),e.isUndefined(d.withCredentials)||(w.withCredentials=!!d.withCredentials),h&&h!=="json"&&(w.responseType=d.responseType),typeof d.onDownloadProgress=="function"&&w.addEventListener("progress",d.onDownloadProgress),typeof d.onUploadProgress=="function"&&w.upload&&w.upload.addEventListener("progress",d.onUploadProgress),(d.cancelToken||d.signal)&&(p=function(N){w&&(m(!N||N&&N.type?new u("canceled"):N),w.abort(),w=null)},d.cancelToken&&d.cancelToken.subscribe(p),d.signal&&(d.signal.aborted?p():d.signal.addEventListener("abort",p))),g||(g=null),w.send(g)})},al}var me=Fe,zd=kw,Fw=Em,Lw=Om,Iw={"Content-Type":"application/x-www-form-urlencoded"};function bd(e,t){!me.isUndefined(e)&&me.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function $w(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Md()),e}function Dw(e,t,n){if(me.isString(e))try{return(t||JSON.parse)(e),me.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var us={transitional:Lw,adapter:$w(),transformRequest:[function(t,n){return zd(n,"Accept"),zd(n,"Content-Type"),me.isFormData(t)||me.isArrayBuffer(t)||me.isBuffer(t)||me.isStream(t)||me.isFile(t)||me.isBlob(t)?t:me.isArrayBufferView(t)?t.buffer:me.isURLSearchParams(t)?(bd(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):me.isObject(t)||n&&n["Content-Type"]==="application/json"?(bd(n,"application/json"),Dw(t)):t}],transformResponse:[function(t){var n=this.transitional||us.transitional,r=n&&n.silentJSONParsing,o=n&&n.forcedJSONParsing,i=!r&&this.responseType==="json";if(i||o&&me.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?Fw(s,this,"E_JSON_PARSE"):s}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};me.forEach(["delete","get","head"],function(t){us.headers[t]={}});me.forEach(["post","put","patch"],function(t){us.headers[t]=me.merge(Iw)});var Uu=us,Uw=Fe,Mw=Uu,zw=function(t,n,r){var o=this||Mw;return Uw.forEach(r,function(s){t=s.call(o,t,n)}),t},ul,Bd;function km(){return Bd||(Bd=1,ul=function(t){return!!(t&&t.__CANCEL__)}),ul}var Vd=Fe,cl=zw,bw=km(),Bw=Uu,Vw=as();function dl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Vw("canceled")}var Hw=function(t){dl(t),t.headers=t.headers||{},t.data=cl.call(t,t.data,t.headers,t.transformRequest),t.headers=Vd.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Vd.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o]});var n=t.adapter||Bw.adapter;return n(t).then(function(o){return dl(t),o.data=cl.call(t,o.data,o.headers,t.transformResponse),o},function(o){return bw(o)||(dl(t),o&&o.response&&(o.response.data=cl.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})},Le=Fe,Pm=function(t,n){n=n||{};var r={};function o(c,d){return Le.isPlainObject(c)&&Le.isPlainObject(d)?Le.merge(c,d):Le.isPlainObject(d)?Le.merge({},d):Le.isArray(d)?d.slice():d}function i(c){if(Le.isUndefined(n[c])){if(!Le.isUndefined(t[c]))return o(void 0,t[c])}else return o(t[c],n[c])}function s(c){if(!Le.isUndefined(n[c]))return o(void 0,n[c])}function l(c){if(Le.isUndefined(n[c])){if(!Le.isUndefined(t[c]))return o(void 0,t[c])}else return o(void 0,n[c])}function a(c){if(c in n)return o(t[c],n[c]);if(c in t)return o(void 0,t[c])}var u={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:a};return Le.forEach(Object.keys(t).concat(Object.keys(n)),function(d){var f=u[d]||i,v=f(d);Le.isUndefined(v)&&f!==a||(r[d]=v)}),r},fl,Hd;function Rm(){return Hd||(Hd=1,fl={version:"0.26.1"}),fl}var Ww=Rm().version,Mu={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Mu[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var Wd={};Mu.transitional=function(t,n,r){function o(i,s){return"[Axios v"+Ww+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return function(i,s,l){if(t===!1)throw new Error(o(s," has been removed"+(n?" in "+n:"")));return n&&!Wd[s]&&(Wd[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,l):!0}};function qw(e,t,n){if(typeof e!="object")throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],s=t[i];if(s){var l=e[i],a=l===void 0||s(l,i,e);if(a!==!0)throw new TypeError("option "+i+" must be "+a);continue}if(n!==!0)throw Error("Unknown option "+i)}}var Qw={assertOptions:qw,validators:Mu},_m=Fe,Kw=xm,qd=Ow,Qd=Hw,cs=Pm,Am=Qw,Rn=Am.validators;function ho(e){this.defaults=e,this.interceptors={request:new qd,response:new qd}}ho.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=cs(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&Am.assertOptions(r,{silentJSONParsing:Rn.transitional(Rn.boolean),forcedJSONParsing:Rn.transitional(Rn.boolean),clarifyTimeoutError:Rn.transitional(Rn.boolean)},!1);var o=[],i=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(i=i&&v.synchronous,o.unshift(v.fulfilled,v.rejected))});var s=[];this.interceptors.response.forEach(function(v){s.push(v.fulfilled,v.rejected)});var l;if(!i){var a=[Qd,void 0];for(Array.prototype.unshift.apply(a,o),a=a.concat(s),l=Promise.resolve(n);a.length;)l=l.then(a.shift(),a.shift());return l}for(var u=n;o.length;){var c=o.shift(),d=o.shift();try{u=c(u)}catch(f){d(f);break}}try{l=Qd(u)}catch(f){return Promise.reject(f)}for(;s.length;)l=l.then(s.shift(),s.shift());return l};ho.prototype.getUri=function(t){return t=cs(this.defaults,t),Kw(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};_m.forEach(["delete","get","head","options"],function(t){ho.prototype[t]=function(n,r){return this.request(cs(r||{},{method:t,url:n,data:(r||{}).data}))}});_m.forEach(["post","put","patch"],function(t){ho.prototype[t]=function(n,r,o){return this.request(cs(o||{},{method:t,url:n,data:r}))}});var Yw=ho,pl,Kd;function Gw(){if(Kd)return pl;Kd=1;var e=as();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(s){r=s});var o=this;this.promise.then(function(i){if(o._listeners){var s,l=o._listeners.length;for(s=0;s{const s=Object.assign(Object.assign({},e.options),{url:((r==null?void 0:r.basePath)||i)+e.url});return o.request(s)}};(function(e){var t=Dt&&Dt.__awaiter||function(s,l,a,u){function c(d){return d instanceof a?d:new a(function(f){f(d)})}return new(a||(a=Promise))(function(d,f){function v(S){try{g(u.next(S))}catch(h){f(h)}}function m(S){try{g(u.throw(S))}catch(h){f(h)}}function g(S){S.done?d(S.value):c(S.value).then(v,m)}g((u=u.apply(s,l||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.OpenAIApi=e.OpenAIApiFactory=e.OpenAIApiFp=e.OpenAIApiAxiosParamCreator=void 0;const n=jm,r=X,o=zu;e.OpenAIApiAxiosParamCreator=function(s){return{cancelFineTune:(l,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("cancelFineTune","fineTuneId",l);const u="/fine-tunes/{fine_tune_id}/cancel".replace("{fine_tune_id}",encodeURIComponent(String(l))),c=new URL(u,r.DUMMY_BASE_URL);let d;s&&(d=s.baseOptions);const f=Object.assign(Object.assign({method:"POST"},d),a),v={},m={};r.setSearchParams(c,m);let g=d&&d.headers?d.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},v),g),a.headers),{url:r.toPathString(c),options:f}}),createAnswer:(l,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("createAnswer","createAnswerRequest",l);const u="/answers",c=new URL(u,r.DUMMY_BASE_URL);let d;s&&(d=s.baseOptions);const f=Object.assign(Object.assign({method:"POST"},d),a),v={},m={};v["Content-Type"]="application/json",r.setSearchParams(c,m);let g=d&&d.headers?d.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},v),g),a.headers),f.data=r.serializeDataIfNeeded(l,f,s),{url:r.toPathString(c),options:f}}),createClassification:(l,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("createClassification","createClassificationRequest",l);const u="/classifications",c=new URL(u,r.DUMMY_BASE_URL);let d;s&&(d=s.baseOptions);const f=Object.assign(Object.assign({method:"POST"},d),a),v={},m={};v["Content-Type"]="application/json",r.setSearchParams(c,m);let g=d&&d.headers?d.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},v),g),a.headers),f.data=r.serializeDataIfNeeded(l,f,s),{url:r.toPathString(c),options:f}}),createCompletion:(l,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("createCompletion","createCompletionRequest",l);const u="/completions",c=new URL(u,r.DUMMY_BASE_URL);let d;s&&(d=s.baseOptions);const f=Object.assign(Object.assign({method:"POST"},d),a),v={},m={};v["Content-Type"]="application/json",r.setSearchParams(c,m);let g=d&&d.headers?d.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},v),g),a.headers),f.data=r.serializeDataIfNeeded(l,f,s),{url:r.toPathString(c),options:f}}),createEdit:(l,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("createEdit","createEditRequest",l);const u="/edits",c=new URL(u,r.DUMMY_BASE_URL);let d;s&&(d=s.baseOptions);const f=Object.assign(Object.assign({method:"POST"},d),a),v={},m={};v["Content-Type"]="application/json",r.setSearchParams(c,m);let g=d&&d.headers?d.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},v),g),a.headers),f.data=r.serializeDataIfNeeded(l,f,s),{url:r.toPathString(c),options:f}}),createEmbedding:(l,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("createEmbedding","createEmbeddingRequest",l);const u="/embeddings",c=new URL(u,r.DUMMY_BASE_URL);let d;s&&(d=s.baseOptions);const f=Object.assign(Object.assign({method:"POST"},d),a),v={},m={};v["Content-Type"]="application/json",r.setSearchParams(c,m);let g=d&&d.headers?d.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},v),g),a.headers),f.data=r.serializeDataIfNeeded(l,f,s),{url:r.toPathString(c),options:f}}),createFile:(l,a,u={})=>t(this,void 0,void 0,function*(){r.assertParamExists("createFile","file",l),r.assertParamExists("createFile","purpose",a);const c="/files",d=new URL(c,r.DUMMY_BASE_URL);let f;s&&(f=s.baseOptions);const v=Object.assign(Object.assign({method:"POST"},f),u),m={},g={},S=new(s&&s.formDataCtor||FormData);l!==void 0&&S.append("file",l),a!==void 0&&S.append("purpose",a),m["Content-Type"]="multipart/form-data",r.setSearchParams(d,g);let h=f&&f.headers?f.headers:{};return v.headers=Object.assign(Object.assign(Object.assign(Object.assign({},m),S.getHeaders()),h),u.headers),v.data=S,{url:r.toPathString(d),options:v}}),createFineTune:(l,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("createFineTune","createFineTuneRequest",l);const u="/fine-tunes",c=new URL(u,r.DUMMY_BASE_URL);let d;s&&(d=s.baseOptions);const f=Object.assign(Object.assign({method:"POST"},d),a),v={},m={};v["Content-Type"]="application/json",r.setSearchParams(c,m);let g=d&&d.headers?d.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},v),g),a.headers),f.data=r.serializeDataIfNeeded(l,f,s),{url:r.toPathString(c),options:f}}),createSearch:(l,a,u={})=>t(this,void 0,void 0,function*(){r.assertParamExists("createSearch","engineId",l),r.assertParamExists("createSearch","createSearchRequest",a);const c="/engines/{engine_id}/search".replace("{engine_id}",encodeURIComponent(String(l))),d=new URL(c,r.DUMMY_BASE_URL);let f;s&&(f=s.baseOptions);const v=Object.assign(Object.assign({method:"POST"},f),u),m={},g={};m["Content-Type"]="application/json",r.setSearchParams(d,g);let S=f&&f.headers?f.headers:{};return v.headers=Object.assign(Object.assign(Object.assign({},m),S),u.headers),v.data=r.serializeDataIfNeeded(a,v,s),{url:r.toPathString(d),options:v}}),deleteFile:(l,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("deleteFile","fileId",l);const u="/files/{file_id}".replace("{file_id}",encodeURIComponent(String(l))),c=new URL(u,r.DUMMY_BASE_URL);let d;s&&(d=s.baseOptions);const f=Object.assign(Object.assign({method:"DELETE"},d),a),v={},m={};r.setSearchParams(c,m);let g=d&&d.headers?d.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},v),g),a.headers),{url:r.toPathString(c),options:f}}),deleteModel:(l,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("deleteModel","model",l);const u="/models/{model}".replace("{model}",encodeURIComponent(String(l))),c=new URL(u,r.DUMMY_BASE_URL);let d;s&&(d=s.baseOptions);const f=Object.assign(Object.assign({method:"DELETE"},d),a),v={},m={};r.setSearchParams(c,m);let g=d&&d.headers?d.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},v),g),a.headers),{url:r.toPathString(c),options:f}}),downloadFile:(l,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("downloadFile","fileId",l);const u="/files/{file_id}/content".replace("{file_id}",encodeURIComponent(String(l))),c=new URL(u,r.DUMMY_BASE_URL);let d;s&&(d=s.baseOptions);const f=Object.assign(Object.assign({method:"GET"},d),a),v={},m={};r.setSearchParams(c,m);let g=d&&d.headers?d.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},v),g),a.headers),{url:r.toPathString(c),options:f}}),listEngines:(l={})=>t(this,void 0,void 0,function*(){const a="/engines",u=new URL(a,r.DUMMY_BASE_URL);let c;s&&(c=s.baseOptions);const d=Object.assign(Object.assign({method:"GET"},c),l),f={},v={};r.setSearchParams(u,v);let m=c&&c.headers?c.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},f),m),l.headers),{url:r.toPathString(u),options:d}}),listFiles:(l={})=>t(this,void 0,void 0,function*(){const a="/files",u=new URL(a,r.DUMMY_BASE_URL);let c;s&&(c=s.baseOptions);const d=Object.assign(Object.assign({method:"GET"},c),l),f={},v={};r.setSearchParams(u,v);let m=c&&c.headers?c.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},f),m),l.headers),{url:r.toPathString(u),options:d}}),listFineTuneEvents:(l,a,u={})=>t(this,void 0,void 0,function*(){r.assertParamExists("listFineTuneEvents","fineTuneId",l);const c="/fine-tunes/{fine_tune_id}/events".replace("{fine_tune_id}",encodeURIComponent(String(l))),d=new URL(c,r.DUMMY_BASE_URL);let f;s&&(f=s.baseOptions);const v=Object.assign(Object.assign({method:"GET"},f),u),m={},g={};a!==void 0&&(g.stream=a),r.setSearchParams(d,g);let S=f&&f.headers?f.headers:{};return v.headers=Object.assign(Object.assign(Object.assign({},m),S),u.headers),{url:r.toPathString(d),options:v}}),listFineTunes:(l={})=>t(this,void 0,void 0,function*(){const a="/fine-tunes",u=new URL(a,r.DUMMY_BASE_URL);let c;s&&(c=s.baseOptions);const d=Object.assign(Object.assign({method:"GET"},c),l),f={},v={};r.setSearchParams(u,v);let m=c&&c.headers?c.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},f),m),l.headers),{url:r.toPathString(u),options:d}}),listModels:(l={})=>t(this,void 0,void 0,function*(){const a="/models",u=new URL(a,r.DUMMY_BASE_URL);let c;s&&(c=s.baseOptions);const d=Object.assign(Object.assign({method:"GET"},c),l),f={},v={};r.setSearchParams(u,v);let m=c&&c.headers?c.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},f),m),l.headers),{url:r.toPathString(u),options:d}}),retrieveEngine:(l,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("retrieveEngine","engineId",l);const u="/engines/{engine_id}".replace("{engine_id}",encodeURIComponent(String(l))),c=new URL(u,r.DUMMY_BASE_URL);let d;s&&(d=s.baseOptions);const f=Object.assign(Object.assign({method:"GET"},d),a),v={},m={};r.setSearchParams(c,m);let g=d&&d.headers?d.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},v),g),a.headers),{url:r.toPathString(c),options:f}}),retrieveFile:(l,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("retrieveFile","fileId",l);const u="/files/{file_id}".replace("{file_id}",encodeURIComponent(String(l))),c=new URL(u,r.DUMMY_BASE_URL);let d;s&&(d=s.baseOptions);const f=Object.assign(Object.assign({method:"GET"},d),a),v={},m={};r.setSearchParams(c,m);let g=d&&d.headers?d.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},v),g),a.headers),{url:r.toPathString(c),options:f}}),retrieveFineTune:(l,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("retrieveFineTune","fineTuneId",l);const u="/fine-tunes/{fine_tune_id}".replace("{fine_tune_id}",encodeURIComponent(String(l))),c=new URL(u,r.DUMMY_BASE_URL);let d;s&&(d=s.baseOptions);const f=Object.assign(Object.assign({method:"GET"},d),a),v={},m={};r.setSearchParams(c,m);let g=d&&d.headers?d.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},v),g),a.headers),{url:r.toPathString(c),options:f}}),retrieveModel:(l,a={})=>t(this,void 0,void 0,function*(){r.assertParamExists("retrieveModel","model",l);const u="/models/{model}".replace("{model}",encodeURIComponent(String(l))),c=new URL(u,r.DUMMY_BASE_URL);let d;s&&(d=s.baseOptions);const f=Object.assign(Object.assign({method:"GET"},d),a),v={},m={};r.setSearchParams(c,m);let g=d&&d.headers?d.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},v),g),a.headers),{url:r.toPathString(c),options:f}})}},e.OpenAIApiFp=function(s){const l=e.OpenAIApiAxiosParamCreator(s);return{cancelFineTune(a,u){return t(this,void 0,void 0,function*(){const c=yield l.cancelFineTune(a,u);return r.createRequestFunction(c,n.default,o.BASE_PATH,s)})},createAnswer(a,u){return t(this,void 0,void 0,function*(){const c=yield l.createAnswer(a,u);return r.createRequestFunction(c,n.default,o.BASE_PATH,s)})},createClassification(a,u){return t(this,void 0,void 0,function*(){const c=yield l.createClassification(a,u);return r.createRequestFunction(c,n.default,o.BASE_PATH,s)})},createCompletion(a,u){return t(this,void 0,void 0,function*(){const c=yield l.createCompletion(a,u);return r.createRequestFunction(c,n.default,o.BASE_PATH,s)})},createEdit(a,u){return t(this,void 0,void 0,function*(){const c=yield l.createEdit(a,u);return r.createRequestFunction(c,n.default,o.BASE_PATH,s)})},createEmbedding(a,u){return t(this,void 0,void 0,function*(){const c=yield l.createEmbedding(a,u);return r.createRequestFunction(c,n.default,o.BASE_PATH,s)})},createFile(a,u,c){return t(this,void 0,void 0,function*(){const d=yield l.createFile(a,u,c);return r.createRequestFunction(d,n.default,o.BASE_PATH,s)})},createFineTune(a,u){return t(this,void 0,void 0,function*(){const c=yield l.createFineTune(a,u);return r.createRequestFunction(c,n.default,o.BASE_PATH,s)})},createSearch(a,u,c){return t(this,void 0,void 0,function*(){const d=yield l.createSearch(a,u,c);return r.createRequestFunction(d,n.default,o.BASE_PATH,s)})},deleteFile(a,u){return t(this,void 0,void 0,function*(){const c=yield l.deleteFile(a,u);return r.createRequestFunction(c,n.default,o.BASE_PATH,s)})},deleteModel(a,u){return t(this,void 0,void 0,function*(){const c=yield l.deleteModel(a,u);return r.createRequestFunction(c,n.default,o.BASE_PATH,s)})},downloadFile(a,u){return t(this,void 0,void 0,function*(){const c=yield l.downloadFile(a,u);return r.createRequestFunction(c,n.default,o.BASE_PATH,s)})},listEngines(a){return t(this,void 0,void 0,function*(){const u=yield l.listEngines(a);return r.createRequestFunction(u,n.default,o.BASE_PATH,s)})},listFiles(a){return t(this,void 0,void 0,function*(){const u=yield l.listFiles(a);return r.createRequestFunction(u,n.default,o.BASE_PATH,s)})},listFineTuneEvents(a,u,c){return t(this,void 0,void 0,function*(){const d=yield l.listFineTuneEvents(a,u,c);return r.createRequestFunction(d,n.default,o.BASE_PATH,s)})},listFineTunes(a){return t(this,void 0,void 0,function*(){const u=yield l.listFineTunes(a);return r.createRequestFunction(u,n.default,o.BASE_PATH,s)})},listModels(a){return t(this,void 0,void 0,function*(){const u=yield l.listModels(a);return r.createRequestFunction(u,n.default,o.BASE_PATH,s)})},retrieveEngine(a,u){return t(this,void 0,void 0,function*(){const c=yield l.retrieveEngine(a,u);return r.createRequestFunction(c,n.default,o.BASE_PATH,s)})},retrieveFile(a,u){return t(this,void 0,void 0,function*(){const c=yield l.retrieveFile(a,u);return r.createRequestFunction(c,n.default,o.BASE_PATH,s)})},retrieveFineTune(a,u){return t(this,void 0,void 0,function*(){const c=yield l.retrieveFineTune(a,u);return r.createRequestFunction(c,n.default,o.BASE_PATH,s)})},retrieveModel(a,u){return t(this,void 0,void 0,function*(){const c=yield l.retrieveModel(a,u);return r.createRequestFunction(c,n.default,o.BASE_PATH,s)})}}},e.OpenAIApiFactory=function(s,l,a){const u=e.OpenAIApiFp(s);return{cancelFineTune(c,d){return u.cancelFineTune(c,d).then(f=>f(a,l))},createAnswer(c,d){return u.createAnswer(c,d).then(f=>f(a,l))},createClassification(c,d){return u.createClassification(c,d).then(f=>f(a,l))},createCompletion(c,d){return u.createCompletion(c,d).then(f=>f(a,l))},createEdit(c,d){return u.createEdit(c,d).then(f=>f(a,l))},createEmbedding(c,d){return u.createEmbedding(c,d).then(f=>f(a,l))},createFile(c,d,f){return u.createFile(c,d,f).then(v=>v(a,l))},createFineTune(c,d){return u.createFineTune(c,d).then(f=>f(a,l))},createSearch(c,d,f){return u.createSearch(c,d,f).then(v=>v(a,l))},deleteFile(c,d){return u.deleteFile(c,d).then(f=>f(a,l))},deleteModel(c,d){return u.deleteModel(c,d).then(f=>f(a,l))},downloadFile(c,d){return u.downloadFile(c,d).then(f=>f(a,l))},listEngines(c){return u.listEngines(c).then(d=>d(a,l))},listFiles(c){return u.listFiles(c).then(d=>d(a,l))},listFineTuneEvents(c,d,f){return u.listFineTuneEvents(c,d,f).then(v=>v(a,l))},listFineTunes(c){return u.listFineTunes(c).then(d=>d(a,l))},listModels(c){return u.listModels(c).then(d=>d(a,l))},retrieveEngine(c,d){return u.retrieveEngine(c,d).then(f=>f(a,l))},retrieveFile(c,d){return u.retrieveFile(c,d).then(f=>f(a,l))},retrieveFineTune(c,d){return u.retrieveFineTune(c,d).then(f=>f(a,l))},retrieveModel(c,d){return u.retrieveModel(c,d).then(f=>f(a,l))}}};class i extends o.BaseAPI{cancelFineTune(l,a){return e.OpenAIApiFp(this.configuration).cancelFineTune(l,a).then(u=>u(this.axios,this.basePath))}createAnswer(l,a){return e.OpenAIApiFp(this.configuration).createAnswer(l,a).then(u=>u(this.axios,this.basePath))}createClassification(l,a){return e.OpenAIApiFp(this.configuration).createClassification(l,a).then(u=>u(this.axios,this.basePath))}createCompletion(l,a){return e.OpenAIApiFp(this.configuration).createCompletion(l,a).then(u=>u(this.axios,this.basePath))}createEdit(l,a){return e.OpenAIApiFp(this.configuration).createEdit(l,a).then(u=>u(this.axios,this.basePath))}createEmbedding(l,a){return e.OpenAIApiFp(this.configuration).createEmbedding(l,a).then(u=>u(this.axios,this.basePath))}createFile(l,a,u){return e.OpenAIApiFp(this.configuration).createFile(l,a,u).then(c=>c(this.axios,this.basePath))}createFineTune(l,a){return e.OpenAIApiFp(this.configuration).createFineTune(l,a).then(u=>u(this.axios,this.basePath))}createSearch(l,a,u){return e.OpenAIApiFp(this.configuration).createSearch(l,a,u).then(c=>c(this.axios,this.basePath))}deleteFile(l,a){return e.OpenAIApiFp(this.configuration).deleteFile(l,a).then(u=>u(this.axios,this.basePath))}deleteModel(l,a){return e.OpenAIApiFp(this.configuration).deleteModel(l,a).then(u=>u(this.axios,this.basePath))}downloadFile(l,a){return e.OpenAIApiFp(this.configuration).downloadFile(l,a).then(u=>u(this.axios,this.basePath))}listEngines(l){return e.OpenAIApiFp(this.configuration).listEngines(l).then(a=>a(this.axios,this.basePath))}listFiles(l){return e.OpenAIApiFp(this.configuration).listFiles(l).then(a=>a(this.axios,this.basePath))}listFineTuneEvents(l,a,u){return e.OpenAIApiFp(this.configuration).listFineTuneEvents(l,a,u).then(c=>c(this.axios,this.basePath))}listFineTunes(l){return e.OpenAIApiFp(this.configuration).listFineTunes(l).then(a=>a(this.axios,this.basePath))}listModels(l){return e.OpenAIApiFp(this.configuration).listModels(l).then(a=>a(this.axios,this.basePath))}retrieveEngine(l,a){return e.OpenAIApiFp(this.configuration).retrieveEngine(l,a).then(u=>u(this.axios,this.basePath))}retrieveFile(l,a){return e.OpenAIApiFp(this.configuration).retrieveFile(l,a).then(u=>u(this.axios,this.basePath))}retrieveFineTune(l,a){return e.OpenAIApiFp(this.configuration).retrieveFineTune(l,a).then(u=>u(this.axios,this.basePath))}retrieveModel(l,a){return e.OpenAIApiFp(this.configuration).retrieveModel(l,a).then(u=>u(this.axios,this.basePath))}}e.OpenAIApi=i})(vm);var ds={};const oS="openai",iS="3.0.0",sS="Node.js library for the OpenAI API",lS=["openai","open","ai","gpt-3","gpt3"],aS={type:"git",url:"git@github.com:openai/openai-node.git"},uS="OpenAI",cS="MIT",dS="./dist/index.js",fS="./dist/index.d.ts",pS={build:"tsc --outDir dist/"},hS={axios:"^0.26.0","form-data":"^4.0.0"},mS={"@types/node":"^12.11.5",typescript:"^3.6.4"},vS={name:oS,version:iS,description:sS,keywords:lS,repository:aS,author:uS,license:cS,main:dS,types:fS,scripts:pS,dependencies:hS,devDependencies:mS};var vl,Xd;function gS(){return Xd||(Xd=1,vl=typeof self=="object"?self.FormData:window.FormData),vl}Object.defineProperty(ds,"__esModule",{value:!0});ds.Configuration=void 0;const yS=vS;class wS{constructor(t={}){this.apiKey=t.apiKey,this.organization=t.organization,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.baseOptions=t.baseOptions,this.formDataCtor=t.formDataCtor,this.baseOptions||(this.baseOptions={}),this.baseOptions.headers=Object.assign({"User-Agent":`OpenAI/NodeJS/${yS.version}`,Authorization:`Bearer ${this.apiKey}`},this.baseOptions.headers),this.organization&&(this.baseOptions.headers["OpenAI-Organization"]=this.organization),this.formDataCtor||(this.formDataCtor=gS())}isJsonMime(t){const n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(n.test(t)||t.toLowerCase()==="application/json-patch+json")}}ds.Configuration=wS;(function(e){var t=Dt&&Dt.__createBinding||(Object.create?function(r,o,i,s){s===void 0&&(s=i),Object.defineProperty(r,s,{enumerable:!0,get:function(){return o[i]}})}:function(r,o,i,s){s===void 0&&(s=i),r[s]=o[i]}),n=Dt&&Dt.__exportStar||function(r,o){for(var i in r)i!=="default"&&!o.hasOwnProperty(i)&&t(o,r,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(vm,e),n(ds,e)})(io);const SS={}.VITE_OPENAI_API_KEY,Zd=()=>{const[e,t]=R.useState(""),[n,r]=R.useState([]),[o,i]=R.useState([]),[s,l]=R.useState([]),[a,u]=R.useState([]),{setTerminologyData:c,setExpressionData:d,setCautionData:f}=Lu(),v=new io.Configuration({apiKey:SS}),m=new io.OpenAIApi(v),[g,S]=R.useState(""),[h,p]=R.useState(""),[y,w]=R.useState(!1),k=_=>{t(_.target.value),p(_.target.value)},P=async _=>{_.preventDefault(),r([...n,e]),t(""),w(!0);const D=`${h}이 항목을 위의 예시처럼 분석해서 반드시 다음과 같은 형식으로 출력해줘.표현해석: {항목 분석내용}, + 유의사항: {모호하거나 주의가 필요한 문장알려주고 이유도 설명}, + 법률용어: {뜻 없이 단어만 리스트 형태로}`;try{(await m.createCompletion({model:"text-davinci-003",prompt:D,temperature:.5,max_tokens:1e3})).data.choices[0].text.split(` +`).forEach(J=>{if(J.includes("표현해석: ")){let pe=J.replace("표현해석: ",""),ue=[...o,pe];i(ue),d(ue)}else if(J.includes("유의사항: ")){let pe=J.replace("유의사항: ",""),ue=[...s,pe];l(ue),f(ue)}else if(J.includes("법률용어: ")){let pe=J.replace("법률용어: ","");pe=pe.split(",");let ue=[...a];pe.map(hr=>{let nn=hr.trim();ue.push(nn)}),u(ue),c(ue)}})}catch(N){console.error("Error:",N)}finally{w(!1)}},O=async()=>{w(!0);const _=`계약서 종류는${g}이다. 다음 내용은 계약서 내용이다.다음은 계약서 항목에 대한 표현해석, 해당 항목의 유의사항, 법률 용어에 대해서 정보를 제공하는 예시이다. 표현해석 : 1년의 의무기간을 채우지 못하고 중도 퇴사하는 경우, 100만원을 배상하여야 한다. 항목 해석: 1년을 못 채우고 퇴사하는 경우, 저는 회사에 100만원을 배상해야 한다. 유의사항 : 근로기준법은 손해배상액을 미리 정해두는 것을 금지하고 있다. 아무리 근로계약서에 서명했더라도 근로기준법에 위반된 조항은 효력이 없다.법률용어 : 근로기준법, 손해배상액, 근로계약서`;try{await m.createCompletion({model:"text-davinci-003",prompt:_,temperature:.5,max_tokens:1e3})}catch(D){console.error("Error:",D)}finally{w(!1)}};return R.useEffect(()=>{O()},[]),x.jsxs(xS,{children:[x.jsx(ES,{children:"Chat"}),x.jsxs(OS,{action:"",method:"",autoComplete:"off",onSubmit:P,children:[x.jsxs(CS,{children:[x.jsx(kS,{value:g,onChange:_=>S(_.target.value),type:"text",name:"type",required:!0,placeholder:"Please enter the contract type"}),x.jsx(PS,{children:n.map((_,D)=>x.jsx("p",{children:_},D))}),x.jsx(RS,{type:"text",name:"content",required:!0,placeholder:"Please include all information relevant to your issue.",value:e,onChange:k})]}),x.jsx(_S,{children:x.jsx(AS,{type:"submit",value:y?"Generating...":"Submit",disabled:y})})]})]})},xS=j.div` + /* width: 476px; + height: 905px; */ + width: 90%; + height: 93%; + border: 1px solid #e4e4e7; + border-radius: 10px; + padding: 2rem; + margin-top: 1rem; +`,ES=j.h4` + display: flex; + margin: 0px 0px 15px 0px; +`,OS=j.form` + display: flex; + flex-direction: column; + height: 98%; +`,CS=j.label` + display: flex; + flex-direction: column; + margin: 0; + width: 100%; + height: 100%; +`,kS=j.input` + /* width: 470px; */ + width: calc(100% - 2rem); + /* height: 44px; */ + height: 2rem; + background-color: #ffffff; + border: 1px solid #d7d7d7; + border-radius: 10px; + margin-bottom: 30px; + padding: 1rem; +`,PS=j.div` + width: calc(100% - 2rem); + height: calc(100% - 2rem); + max-height: 60%; + border: 1px solid #d7d7d7; + border-radius: 10px; + margin-bottom: 18px; + padding: 1rem; + overflow: auto; + padding-right: 0.5rem; + + &::-webkit-scrollbar { + width: 8px; /* Width of scrollbar */ + height: 0px; /* Set to 0 for horizontal scrollbar */ + } + + &::-webkit-scrollbar-thumb { + background-color: #000000; /* Scrollbar color */ + border-radius: 4px; /* Round the corners of the scrollbar */ + } + + &::-webkit-scrollbar-track { + background-color: #f1f1f1; /* Color of scrollbar track */ + } +`,RS=j.textarea` + width: calc(100% - 2rem); + height: calc(60% - 2rem); + border: 1px solid #d7d7d7; + border-radius: 10px; + margin-bottom: 18px; + resize: none; + padding: 1rem; +`,_S=j.div` + display: flex; + justify-content: flex-end; +`,AS=j.input` + /* width: 102px; + height: 42px; */ + width: 6rem; + height: 3rem; + background-color: #000000; + color: #ffffff; + border-radius: 5px; +`;var Nm={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ef=Oe.createContext&&Oe.createContext(Nm),Yt=globalThis&&globalThis.__assign||function(){return Yt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n({modalType:null,showModal:!1,setModalType:t=>e({modalType:t}),setShowModal:t=>e({showModal:t})}))),$S=({onChatClick:e})=>{const[t,n]=R.useState(["근로계약서","임대차계약서","대출계약서","기타계약서"]),r=()=>{const a=[...t,`계약서 ${t.length+1}`];n(a)},o=a=>{e(a)},{setModalType:i,setShowModal:s}=ps(),l=()=>{i("MinWageCal"),s(!0)};return x.jsxs(DS,{children:[x.jsxs(gl,{children:[x.jsx(FS,{size:"20",color:"#000000"}),x.jsx(Or,{children:"Chat List"})]}),x.jsxs(zS,{children:[x.jsxs(US,{onClick:r,children:[x.jsx(Or,{children:"New Chat"}),x.jsx(NS,{size:"20",color:"#000000"})]}),t.map((a,u)=>x.jsx(MS,{onClick:()=>o(u),children:x.jsx(Or,{children:a})},u))]}),x.jsxs(gl,{children:[x.jsx(IS,{size:"20",color:"#000000"}),x.jsx(Or,{children:"For Help?"})]}),x.jsxs(gl,{onClick:()=>l(),children:[x.jsx(LS,{size:"20",color:"#000000"}),x.jsx(Or,{children:"MinWage Calculator"})]})]})},DS=j.div` + display: flex; + flex-direction: column; + width: 286px; + height: 100vh; + border-right: 1px solid #e4e4e7; +`,gl=j.div` + display: flex; + flex-direction: row; + width: 265px; + height: 23px; + padding: 20px 0px 20px 20px; + border-top: 1px solid #e4e4e7; + border-bottom: 1px solid #e4e4e7; + cursor: pointer; +`,US=j.div` + display: flex; + flex-direction: row; + justify-content: space-between; + width: 245px; + height: 23px; + padding: 20px; + border-bottom: 1px solid #e4e4e7; + cursor: pointer; +`,MS=j.div` + display: flex; + flex-direction: row; + width: 265px; + height: 23px; + padding: 20px 0px 20px 20px; + border-bottom: 1px solid #e4e4e7; +`,Or=j.h4` + display: flex; + flex-direction: column; + justify-content: center; + margin: 0px 0px 0px 6px; +`,zS=j.div` + width: 285px; + height: 100vh; + overflow: auto; + + &::-webkit-scrollbar { + width: 8px; /* Width of scrollbar */ + height: 0px; /* Set to 0 for horizontal scrollbar */ + } + + &::-webkit-scrollbar-thumb { + background-color: #000000; /* Scrollbar color */ + border-radius: 4px; /* Round the corners of the scrollbar */ + } + + &::-webkit-scrollbar-track { + background-color: #f1f1f1; /* Color of scrollbar track */ + } +`;function Lm(e,t){return function(){return e.apply(t,arguments)}}const{toString:bS}=Object.prototype,{getPrototypeOf:Bu}=Object,hs=(e=>t=>{const n=bS.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ht=e=>(e=e.toLowerCase(),t=>hs(t)===e),ms=e=>t=>typeof t===e,{isArray:pr}=Array,so=ms("undefined");function BS(e){return e!==null&&!so(e)&&e.constructor!==null&&!so(e.constructor)&&Qe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Im=ht("ArrayBuffer");function VS(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Im(e.buffer),t}const HS=ms("string"),Qe=ms("function"),$m=ms("number"),vs=e=>e!==null&&typeof e=="object",WS=e=>e===!0||e===!1,ri=e=>{if(hs(e)!=="object")return!1;const t=Bu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},qS=ht("Date"),QS=ht("File"),KS=ht("Blob"),YS=ht("FileList"),GS=e=>vs(e)&&Qe(e.pipe),JS=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Qe(e.append)&&((t=hs(e))==="formdata"||t==="object"&&Qe(e.toString)&&e.toString()==="[object FormData]"))},XS=ht("URLSearchParams"),ZS=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function mo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),pr(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Um=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Mm=e=>!so(e)&&e!==Um;function _a(){const{caseless:e}=Mm(this)&&this||{},t={},n=(r,o)=>{const i=e&&Dm(t,o)||o;ri(t[i])&&ri(r)?t[i]=_a(t[i],r):ri(r)?t[i]=_a({},r):pr(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(mo(t,(o,i)=>{n&&Qe(o)?e[i]=Lm(o,n):e[i]=o},{allOwnKeys:r}),e),tx=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),nx=(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)},rx=(e,t,n,r)=>{let o,i,s;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&Bu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ox=(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},ix=e=>{if(!e)return null;if(pr(e))return e;let t=e.length;if(!$m(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},sx=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Bu(Uint8Array)),lx=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},ax=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},ux=ht("HTMLFormElement"),cx=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),tf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),dx=ht("RegExp"),zm=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};mo(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},fx=e=>{zm(e,(t,n)=>{if(Qe(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Qe(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+"'")})}})},px=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return pr(e)?r(e):r(String(e).split(t)),n},hx=()=>{},mx=(e,t)=>(e=+e,Number.isFinite(e)?e:t),yl="abcdefghijklmnopqrstuvwxyz",nf="0123456789",bm={DIGIT:nf,ALPHA:yl,ALPHA_DIGIT:yl+yl.toUpperCase()+nf},vx=(e=16,t=bm.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function gx(e){return!!(e&&Qe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const yx=e=>{const t=new Array(10),n=(r,o)=>{if(vs(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=pr(r)?[]:{};return mo(r,(s,l)=>{const a=n(s,o+1);!so(a)&&(i[l]=a)}),t[o]=void 0,i}}return r};return n(e,0)},wx=ht("AsyncFunction"),Sx=e=>e&&(vs(e)||Qe(e))&&Qe(e.then)&&Qe(e.catch),E={isArray:pr,isArrayBuffer:Im,isBuffer:BS,isFormData:JS,isArrayBufferView:VS,isString:HS,isNumber:$m,isBoolean:WS,isObject:vs,isPlainObject:ri,isUndefined:so,isDate:qS,isFile:QS,isBlob:KS,isRegExp:dx,isFunction:Qe,isStream:GS,isURLSearchParams:XS,isTypedArray:sx,isFileList:YS,forEach:mo,merge:_a,extend:ex,trim:ZS,stripBOM:tx,inherits:nx,toFlatObject:rx,kindOf:hs,kindOfTest:ht,endsWith:ox,toArray:ix,forEachEntry:lx,matchAll:ax,isHTMLForm:ux,hasOwnProperty:tf,hasOwnProp:tf,reduceDescriptors:zm,freezeMethods:fx,toObjectSet:px,toCamelCase:cx,noop:hx,toFiniteNumber:mx,findKey:Dm,global:Um,isContextDefined:Mm,ALPHABET:bm,generateString:vx,isSpecCompliantForm:gx,toJSONObject:yx,isAsyncFn:wx,isThenable:Sx};function U(e,t,n,r,o){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),o&&(this.response=o)}E.inherits(U,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:E.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Bm=U.prototype,Vm={};["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=>{Vm[e]={value:e}});Object.defineProperties(U,Vm);Object.defineProperty(Bm,"isAxiosError",{value:!0});U.from=(e,t,n,r,o,i)=>{const s=Object.create(Bm);return E.toFlatObject(e,s,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),U.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const xx=null;function Aa(e){return E.isPlainObject(e)||E.isArray(e)}function Hm(e){return E.endsWith(e,"[]")?e.slice(0,-2):e}function rf(e,t,n){return e?e.concat(t).map(function(o,i){return o=Hm(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function Ex(e){return E.isArray(e)&&!e.some(Aa)}const Ox=E.toFlatObject(E,{},null,function(t){return/^is[A-Z]/.test(t)});function gs(e,t,n){if(!E.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=E.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,S){return!E.isUndefined(S[g])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,s=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&E.isSpecCompliantForm(t);if(!E.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(E.isDate(m))return m.toISOString();if(!a&&E.isBlob(m))throw new U("Blob is not supported. Use a Buffer instead.");return E.isArrayBuffer(m)||E.isTypedArray(m)?a&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,g,S){let h=m;if(m&&!S&&typeof m=="object"){if(E.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(E.isArray(m)&&Ex(m)||(E.isFileList(m)||E.endsWith(g,"[]"))&&(h=E.toArray(m)))return g=Hm(g),h.forEach(function(y,w){!(E.isUndefined(y)||y===null)&&t.append(s===!0?rf([g],w,i):s===null?g:g+"[]",u(y))}),!1}return Aa(m)?!0:(t.append(rf(S,g,i),u(m)),!1)}const d=[],f=Object.assign(Ox,{defaultVisitor:c,convertValue:u,isVisitable:Aa});function v(m,g){if(!E.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(m),E.forEach(m,function(h,p){(!(E.isUndefined(h)||h===null)&&o.call(t,h,E.isString(p)?p.trim():p,g,f))===!0&&v(h,g?g.concat(p):[p])}),d.pop()}}if(!E.isObject(e))throw new TypeError("data must be an object");return v(e),t}function of(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Vu(e,t){this._pairs=[],e&&gs(e,this,t)}const Wm=Vu.prototype;Wm.append=function(t,n){this._pairs.push([t,n])};Wm.toString=function(t){const n=t?function(r){return t.call(this,r,of)}:of;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Cx(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function qm(e,t,n){if(!t)return e;const r=n&&n.encode||Cx,o=n&&n.serialize;let i;if(o?i=o(t,n):i=E.isURLSearchParams(t)?t.toString():new Vu(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class kx{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){E.forEach(this.handlers,function(r){r!==null&&t(r)})}}const sf=kx,Qm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Px=typeof URLSearchParams<"u"?URLSearchParams:Vu,Rx=typeof FormData<"u"?FormData:null,_x=typeof Blob<"u"?Blob:null,Ax={isBrowser:!0,classes:{URLSearchParams:Px,FormData:Rx,Blob:_x},protocols:["http","https","file","blob","url","data"]},Km=typeof window<"u"&&typeof document<"u",Tx=(e=>Km&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),jx=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Nx=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Km,hasStandardBrowserEnv:Tx,hasStandardBrowserWebWorkerEnv:jx},Symbol.toStringTag,{value:"Module"})),ct={...Nx,...Ax};function Fx(e,t){return gs(e,new ct.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return ct.isNode&&E.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Lx(e){return E.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ix(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return s=!s&&E.isArray(o)?o.length:s,a?(E.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!E.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&E.isArray(o[s])&&(o[s]=Ix(o[s])),!l)}if(E.isFormData(e)&&E.isFunction(e.entries)){const n={};return E.forEachEntry(e,(r,o)=>{t(Lx(r),o,n,0)}),n}return null}function $x(e,t,n){if(E.isString(e))try{return(t||JSON.parse)(e),E.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Hu={transitional:Qm,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=E.isObject(t);if(i&&E.isHTMLForm(t)&&(t=new FormData(t)),E.isFormData(t))return o&&o?JSON.stringify(Ym(t)):t;if(E.isArrayBuffer(t)||E.isBuffer(t)||E.isStream(t)||E.isFile(t)||E.isBlob(t))return t;if(E.isArrayBufferView(t))return t.buffer;if(E.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Fx(t,this.formSerializer).toString();if((l=E.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return gs(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),$x(t)):t}],transformResponse:[function(t){const n=this.transitional||Hu.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&E.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?U.from(l,U.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:ct.classes.FormData,Blob:ct.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(["delete","get","head","post","put","patch"],e=>{Hu.headers[e]={}});const Wu=Hu,Dx=E.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"]),Ux=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&Dx[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},lf=Symbol("internals");function Cr(e){return e&&String(e).trim().toLowerCase()}function oi(e){return e===!1||e==null?e:E.isArray(e)?e.map(oi):String(e)}function Mx(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 zx=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function wl(e,t,n,r,o){if(E.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!E.isString(t)){if(E.isString(r))return t.indexOf(r)!==-1;if(E.isRegExp(r))return r.test(t)}}function bx(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Bx(e,t){const n=E.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}class ys{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(l,a,u){const c=Cr(a);if(!c)throw new Error("header name must be a non-empty string");const d=E.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||a]=oi(l))}const s=(l,a)=>E.forEach(l,(u,c)=>i(u,c,a));return E.isPlainObject(t)||t instanceof this.constructor?s(t,n):E.isString(t)&&(t=t.trim())&&!zx(t)?s(Ux(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=Cr(t),t){const r=E.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Mx(o);if(E.isFunction(n))return n.call(this,o,r);if(E.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Cr(t),t){const r=E.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||wl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=Cr(s),s){const l=E.findKey(r,s);l&&(!n||wl(r,r[l],l,n))&&(delete r[l],o=!0)}}return E.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||wl(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return E.forEach(this,(o,i)=>{const s=E.findKey(r,i);if(s){n[s]=oi(o),delete n[i];return}const l=t?bx(i):String(i).trim();l!==i&&delete n[i],n[l]=oi(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return E.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&E.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(o=>r.set(o)),r}static accessor(t){const r=(this[lf]=this[lf]={accessors:{}}).accessors,o=this.prototype;function i(s){const l=Cr(s);r[l]||(Bx(o,s),r[l]=!0)}return E.isArray(t)?t.forEach(i):i(t),this}}ys.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);E.reduceDescriptors(ys.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});E.freezeMethods(ys);const Et=ys;function Sl(e,t){const n=this||Wu,r=t||n,o=Et.from(r.headers);let i=r.data;return E.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Gm(e){return!!(e&&e.__CANCEL__)}function vo(e,t,n){U.call(this,e??"canceled",U.ERR_CANCELED,t,n),this.name="CanceledError"}E.inherits(vo,U,{__CANCEL__:!0});function Vx(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new U("Request failed with status code "+n.status,[U.ERR_BAD_REQUEST,U.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Hx=ct.hasStandardBrowserEnv?function(){return{write:function(n,r,o,i,s,l){const a=[];a.push(n+"="+encodeURIComponent(r)),E.isNumber(o)&&a.push("expires="+new Date(o).toGMTString()),E.isString(i)&&a.push("path="+i),E.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 Wx(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function qx(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Jm(e,t){return e&&!Wx(t)?qx(e,t):t}const Qx=ct.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;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=o(window.location.href),function(s){const l=E.isString(s)?o(s):s;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function Kx(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Yx(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),c=r[i];s||(s=u),n[o]=a,r[o]=u;let d=i,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-s{const i=o.loaded,s=o.lengthComputable?o.total:void 0,l=i-n,a=r(l),u=i<=s;n=i;const c={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:a||void 0,estimated:a&&s&&u?(s-i)/a:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const Gx=typeof XMLHttpRequest<"u",Jx=Gx&&function(e){return new Promise(function(n,r){let o=e.data;const i=Et.from(e.headers).normalize(),s=e.responseType;let l;function a(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let u;if(E.isFormData(o)){if(ct.hasStandardBrowserEnv||ct.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((u=i.getContentType())!==!1){const[m,...g]=u?u.split(";").map(S=>S.trim()).filter(Boolean):[];i.setContentType([m||"multipart/form-data",...g].join("; "))}}let c=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(m+":"+g))}const d=Jm(e.baseURL,e.url);c.open(e.method.toUpperCase(),qm(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function f(){if(!c)return;const m=Et.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),S={data:!s||s==="text"||s==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:m,config:e,request:c};Vx(function(p){n(p),a()},function(p){r(p),a()},S),c=null}if("onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(f)},c.onabort=function(){c&&(r(new U("Request aborted",U.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new U("Network Error",U.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const S=e.transitional||Qm;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),r(new U(g,S.clarifyTimeoutError?U.ETIMEDOUT:U.ECONNABORTED,e,c)),c=null},ct.hasStandardBrowserEnv){const m=Qx(d)&&e.xsrfCookieName&&Hx.read(e.xsrfCookieName);m&&i.set(e.xsrfHeaderName,m)}o===void 0&&i.setContentType(null),"setRequestHeader"in c&&E.forEach(i.toJSON(),function(g,S){c.setRequestHeader(S,g)}),E.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&s!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",af(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",af(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=m=>{c&&(r(!m||m.type?new vo(null,e,c):m),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const v=Kx(d);if(v&&ct.protocols.indexOf(v)===-1){r(new U("Unsupported protocol "+v+":",U.ERR_BAD_REQUEST,e));return}c.send(o||null)})},Ta={http:xx,xhr:Jx};E.forEach(Ta,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const uf=e=>`- ${e}`,Xx=e=>E.isFunction(e)||e===null||e===!1,Xm={getAdapter:e=>{e=E.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since : +`+i.map(uf).join(` +`):" "+uf(i[0]):"as no adapter specified";throw new U("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Ta};function xl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vo(null,e)}function cf(e){return xl(e),e.headers=Et.from(e.headers),e.data=Sl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xm.getAdapter(e.adapter||Wu.adapter)(e).then(function(r){return xl(e),r.data=Sl.call(e,e.transformResponse,r),r.headers=Et.from(r.headers),r},function(r){return Gm(r)||(xl(e),r&&r.response&&(r.response.data=Sl.call(e,e.transformResponse,r.response),r.response.headers=Et.from(r.response.headers))),Promise.reject(r)})}const df=e=>e instanceof Et?e.toJSON():e;function sr(e,t){t=t||{};const n={};function r(u,c,d){return E.isPlainObject(u)&&E.isPlainObject(c)?E.merge.call({caseless:d},u,c):E.isPlainObject(c)?E.merge({},c):E.isArray(c)?c.slice():c}function o(u,c,d){if(E.isUndefined(c)){if(!E.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function i(u,c){if(!E.isUndefined(c))return r(void 0,c)}function s(u,c){if(E.isUndefined(c)){if(!E.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: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:l,headers:(u,c)=>o(df(u),df(c),!0)};return E.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=a[c]||o,f=d(e[c],t[c],c);E.isUndefined(f)&&d!==l||(n[c]=f)}),n}const Zm="1.6.1",qu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{qu[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ff={};qu.transitional=function(t,n,r){function o(i,s){return"[Axios v"+Zm+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,l)=>{if(t===!1)throw new U(o(s," has been removed"+(n?" in "+n:"")),U.ERR_DEPRECATED);return n&&!ff[s]&&(ff[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,l):!0}};function Zx(e,t,n){if(typeof e!="object")throw new U("options must be an object",U.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const l=e[i],a=l===void 0||s(l,i,e);if(a!==!0)throw new U("option "+i+" must be "+a,U.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new U("Unknown option "+i,U.ERR_BAD_OPTION)}}const ja={assertOptions:Zx,validators:qu},jt=ja.validators;class Ii{constructor(t){this.defaults=t,this.interceptors={request:new sf,response:new sf}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=sr(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&ja.assertOptions(r,{silentJSONParsing:jt.transitional(jt.boolean),forcedJSONParsing:jt.transitional(jt.boolean),clarifyTimeoutError:jt.transitional(jt.boolean)},!1),o!=null&&(E.isFunction(o)?n.paramsSerializer={serialize:o}:ja.assertOptions(o,{encode:jt.function,serialize:jt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&E.merge(i.common,i[n.method]);i&&E.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Et.concat(s,i);const l=[];let a=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(a=a&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,d=0,f;if(!a){const m=[cf.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,u),f=m.length,c=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(l=>{r.subscribe(l),i=l}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,l){r.reason||(r.reason=new vo(i,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 Qu(function(o){t=o}),cancel:t}}}const eE=Qu;function tE(e){return function(n){return e.apply(null,n)}}function nE(e){return E.isObject(e)&&e.isAxiosError===!0}const Na={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(Na).forEach(([e,t])=>{Na[t]=e});const rE=Na;function e0(e){const t=new ii(e),n=Lm(ii.prototype.request,t);return E.extend(n,ii.prototype,t,{allOwnKeys:!0}),E.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return e0(sr(e,o))},n}const ie=e0(Wu);ie.Axios=ii;ie.CanceledError=vo;ie.CancelToken=eE;ie.isCancel=Gm;ie.VERSION=Zm;ie.toFormData=gs;ie.AxiosError=U;ie.Cancel=ie.CanceledError;ie.all=function(t){return Promise.all(t)};ie.spread=tE;ie.isAxiosError=nE;ie.mergeConfig=sr;ie.AxiosHeaders=Et;ie.formToJSON=e=>Ym(E.isHTMLForm(e)?new FormData(e):e);ie.getAdapter=Xm.getAdapter;ie.HttpStatusCode=rE;ie.default=ie;const oE=ie,iE=()=>{const[e,t]=R.useState(1),[n,r]=R.useState(0),o=4,{terminologyData:i}=Lu(),s=e*o,l=s-o,a=i.slice(l,s),u=[];for(let S=1;S<=Math.ceil(i.length/o);S++)u.push(S);const c=Math.ceil(u.length/10),d=n*10,f=u.slice(d,d+10),[v,m]=R.useState([]);R.useEffect(()=>{(async()=>{try{const h=await oE.get("http://15.165.159.196:8081/term/all");m(h.data)}catch(h){console.error("데이터를 불러오는데 실패했습니다.",h)}})()},[]);const g=v.reduce((S,h)=>(S[h.word]=h.meaning,S),{});return x.jsxs(sE,{children:[x.jsx(lE,{children:"Legal Terminology"}),x.jsx(aE,{children:"법률 용어 해석"}),x.jsx(uE,{children:a.map((S,h)=>{const p=g[S.replace(/\(.*\)|\.$/g,"").trim()];return x.jsxs(cE,{children:[x.jsx(dE,{children:S}),p&&x.jsx(pf,{children:p}),!p&&x.jsx(pf,{children:"해당 단어는 공공데이터 데이터베이스에서 제공하지 않는 단어 입니다!"})]},h)})}),x.jsxs(fE,{children:[n>0&&x.jsx(hf,{onClick:()=>r(n-1),children:"⬅️"}),f.map(S=>x.jsx(t0,{active:S===e,onClick:()=>t(S),children:S},S)),nr(n+1),children:"➡️"})]})]})},sE=j.div` + /* width: 462px; + height: 330px; */ + width: 90%; + height: 80%; + padding: 2rem; + border-radius: 10px; + border: 1px solid #e4e4e7; + /* padding: 30px; */ +`,lE=j.h4` + display: flex; + justify-content: flex-start; + font-weight: bold; + margin: 0; +`,aE=j.p` + display: flex; + justify-content: flex-start; + margin: 0; +`,uE=j.div` + display: flex; + flex-direction: column; + margin-top: 30px; + /* width: 476px; + width: 100%; + height: 230px; */ + height: 70%; + overflow: hidden; +`,cE=j.div` + display: flex; + flex-direction: column; + margin-bottom: 24px; +`,dE=j.span` + font-size: 0.875rem; + font-weight: 700; + margin-bottom: 0.2rem; +`,pf=j.p` + font-size: 0.75rem; + color: #83838b; + margin: 0; +`,fE=j.div` + display: flex; + flex-direction: row; + justify-content: center; +`,t0=j.button` + border: 1px solid black; + background-color: ${e=>e.active?"black":"white"}; + color: ${e=>e.active?"white":"black"}; + border-radius: 50%; + width: 30px; + height: 30px; + margin: 5px; + &:focus { + outline: none; + } +`,hf=j(t0)` + border-radius: 5px; + width: auto; + padding: 0 10px; +`,pE=({children:e,onClick:t})=>(ps(),x.jsx(hE,{children:x.jsx("div",{children:e})})),hE=j.div` + display: flex; + justify-content: center; + align-items: center; + width: 100vw; + height: 100vh; + position: fixed; + top: 0; + left: 0; + z-index: 1000; + background-color: rgba(0, 0, 0, 0.8); +`,mE=9860,n0=()=>{const[e,t]=R.useState(0),[n,r]=R.useState(0),[o,i]=R.useState(0),{setShowModal:s}=ps(),l=u=>u.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),a=()=>{const u=e,c=u*n;if(c/4>15){const f=u*n+4*n;i(f)}else i(c)};return x.jsx(pE,{children:x.jsxs(vE,{children:[x.jsxs(vf,{children:[x.jsx(mf,{htmlFor:"workDays",children:"4주 동안 총 근무 일수"}),x.jsx(gf,{type:"number",id:"workDays",value:e,onChange:u=>t(u.target.value)})]}),x.jsxs(vf,{children:[x.jsx(mf,{htmlFor:"dailyWorkHours",children:"일일 근무시간"}),x.jsx(gf,{type:"number",id:"dailyWorkHours",value:n,onChange:u=>r(u.target.value)})]}),x.jsx(gE,{children:x.jsxs(yE,{children:["계산된 최저임금(월): ",l(o*mE)," 원"]})}),x.jsxs(wE,{children:[x.jsx(xE,{onClick:()=>s(!1),children:"Cancel"}),x.jsx(SE,{onClick:a,children:"최저임금 계산"})]})]})})},vE=j.div` + width: 255px; + height: 255px; + background-color: #ffffff; + border-radius: 10px; + border: 2px solid #d7d7d7; + padding: 10px; + display: flex; + flex-direction: column; + justify-content: center; + /* align-items: center; */ +`,gE=j.div` + width: 245px; + height: 30px; + border-radius: 5px; + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + background-color: #000000; + margin: 10px 3px 3px 3px; +`,yE=j.strong` + color: #ffffff; + font-size: 0.85rem; +`,mf=j.label` + font-size: 1rem; + font-weight: bold; +`,wE=j.div` + display: flex; + flex-direction: row; + justify-content: space-between; +`,SE=j.button` + width: 90px; + height: 30px; + border-radius: 5px; + font-size: 0.75rem; + background-color: #000000; + color: #ffffff; + margin: 20px 3px 5px 3px; + cursor: pointer; +`,xE=j.button` + width: 90px; + height: 30px; + border-radius: 5px; + font-size: 0.75rem; + border: 2px solid #d7d7d7; + font-weight: bold; + margin: 20px 3px 5px 3px; + cursor: pointer; +`,vf=j.div` + display: flex; + flex-direction: column; +`,gf=j.input` + width: 235px; + height: 20px; + border-radius: 5px; + margin: 5px; +`,EE=()=>{const e={MinWageCal:x.jsx(n0,{})},[t,n]=R.useState(x.jsx(Zd,{})),{setShowModal:r,showModal:o,modalType:i}=ps(),s=i?e[i]:null;return R.useEffect(()=>{r(!1)},[]),x.jsxs(OE,{children:[o&&x.jsx(R.Suspense,{fallback:null,children:s}),x.jsx(CE,{children:x.jsx($S,{onChatClick:n})}),x.jsx(Ku,{children:t!==null&&x.jsx(Zd,{chatIndex:t},t)}),x.jsxs(kE,{children:[x.jsx(PE,{children:x.jsx(J1,{})}),x.jsx(RE,{children:x.jsx(iE,{})})]})]})},OE=j.div` + display: grid; + grid-template-columns: 1.5fr 5fr 4fr; + grid-template-rows: 1fr; + gap: 1rem; + width: 100%; + height: 100%; + background-color: white; + @media (max-width: 768px) { + grid-template-columns: 1fr; + grid-template-rows: 1fr 2fr 1fr; + } +`,Ku=j.div` + background-color: white; + margin: 1px; + @media (max-width: 768px) { + grid-row: 2; + } +`,CE=j(Ku)` + background-color: white; + grid-row: span 3; + @media (max-width: 768px) { + grid-row: 1; + } +`,kE=j(Ku)` + background-color: white; + grid-row: span 3; + @media (max-width: 768px) { + grid-row: 3; + } + padding-top: 1rem; + padding-right: 1rem; +`,PE=j.div` + flex: 1; + height: 51.5%; + width: 100%; + background-color: white; +`,RE=j.div` + flex: 1; + height: 50%; + width: 100%; + background-color: white; +`,_E={}.VITE_OPENAI_API_KEY,AE=()=>{const e=new io.Configuration({apiKey:_E}),t=new io.OpenAIApi(e),[n,r]=R.useState(""),[o,i]=R.useState(""),[s,l]=R.useState(""),[a,u]=R.useState(!1),c=async()=>{u(!0);const f=`계약서 종류는${n}이다. 다음 내용은 계약서 내용이다.다음은 계약서 항목에 대한 해석, 해당 항목의 유의사항, 법률 용어에 대해서 정보를 제공하는 예시이다. [표현해석] : 1년의 의무기간을 채우지 못하고 중도 퇴사하는 경우, 100만원을 배상하여야 한다. 항목 해석: 1년을 못 채우고 퇴사하는 경우, 저는 회사에 100만원을 배상해야 한다. [유의사항] : 근로기준법은 손해배상액을 미리 정해두는 것을 금지하고 있다. 아무리 근로계약서에 서명했더라도 근로기준법에 위반된 조항은 효력이 없다.[법률용어] : 근로기준법, 손해배상액, 근로계약서`;try{await t.createCompletion({model:"text-davinci-003",prompt:f,temperature:.5,max_tokens:1e3})}catch(v){console.error("Error:",v)}finally{u(!1)}},d=async f=>{f.preventDefault(),u(!0);const v=`${o}이 항목을 위의 예시처럼 분석해서 반드시 다음과 같은 형식으로 출력해줘.[표현해석] : {항목 분석내용}, [유의사항] : {모호하거나 주의가 필요한 문장알려주고 이유도 설명}, [법률용어] : {뜻 없이 단어만 리스트 형태로}`;try{const m=await t.createCompletion({model:"text-davinci-003",prompt:v,temperature:.5,max_tokens:1e3});l(m.data.choices[0].text)}catch(m){console.error("Error:",m)}finally{u(!1)}};return R.useEffect(()=>{c()},[]),x.jsx("div",{className:"all",children:x.jsxs("div",{className:"chat",children:[x.jsxs("form",{onSubmit:d,className:"question",children:[x.jsxs("div",{children:[x.jsx("label",{htmlFor:"Input1",children:"Input 1:"}),x.jsx("textarea",{className:"input1area",type:"text",value:n,placeholder:"계약서 종류",onChange:f=>r(f.target.value)})]}),x.jsxs("div",{children:[x.jsx("label",{htmlFor:"Input2",children:"Input 2:"}),x.jsx("textarea",{className:"input2area",type:"text",value:o,placeholder:"계약서 내용",onChange:f=>i(f.target.value)})]}),x.jsx("button",{disabled:a,type:"submit",children:a?"Generating...":"Generate"})]}),x.jsxs("div",{className:"answer",children:[x.jsxs("div",{className:"answerlist",children:[x.jsx("strong",{children:"Response:"})," ",s,x.jsx("br",{})]}),x.jsx(n0,{children:"최저임금 계산기"})]})]})})},TE=()=>{const e=oy(),t=()=>{e("/home")};return x.jsxs(jE,{children:[x.jsx(NE,{children:"EZPT"}),x.jsxs(FE,{action:"",method:"",autocomplete:"off",children:[x.jsxs(El,{children:[x.jsx(yf,{children:"ID"}),x.jsx(wf,{type:"text",name:"id"})]}),x.jsxs(El,{children:[x.jsx(yf,{children:"Password"}),x.jsx(wf,{type:"password",name:"password",required:!0})]}),x.jsx(El,{children:x.jsx(LE,{type:"submit",value:"SignIn",onClick:t})}),x.jsx(IE,{children:"Forgot your password?"})]})]})},jE=j.div` + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); +`,NE=j.h1` + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + text-align: center; +`,FE=j.form` + display: flex; + flex-direction: column; +`,El=j.label` + display: flex; + flex-direction: column; + margin: 30px; +`,yf=j.p` + font-size: 1rem; + font-weight: 700; +`,wf=j.input` + width: 380px; + height: 50px; + background-color: #ffffff; + border: 2px solid #000000; + border-radius: 15px; +`,LE=j.input` + width: 380px; + height: 60px; + background-color: #000000; + color: #ffffff; + font-size: 1rem; + font-weight: 700; + border-radius: 15px; + margin: 60px 0px 0px 0px; +`,IE=j.h4` + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + text-align: center; +`,$E=()=>x.jsx(x.Fragment,{children:x.jsx(TE,{})}),DE=()=>x.jsxs(wy,{children:[x.jsx(Yo,{path:"/home",element:x.jsx(EE,{})}),x.jsx(Yo,{path:"/",element:x.jsx($E,{})}),x.jsx(Yo,{path:"/gpt",element:x.jsx(AE,{})})]});function UE(){return x.jsx(DE,{})}Ol.createRoot(document.getElementById("root")).render(x.jsx(Oe.StrictMode,{children:x.jsx(xy,{basename:"/ContractAssistant_FE",children:x.jsx(UE,{})})})); diff --git a/index.html b/index.html index 2ba0d37..ee5b5ff 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Vite + React - +