(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("@keyframes bounce{0%,to{transform:translateY(-25%)}50%{transform:translateY(0)}}.dot{height:.5rem;width:.5rem;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity))}.animate-bounce{animation:bounce .6s infinite alternate}.animate-bounce200{animation:bounce .6s infinite alternate;animation-delay:.2s}.animate-bounce400{animation:bounce .6s infinite alternate;animation-delay:.4s}.wisepilot-copilot-container-5de2a4ad-21d2-4fd3-a2fe-1362d8cf6efc{z-index:2147483000;position:fixed;right:15px;bottom:15px}.wisepilot-copilot-container-5de2a4ad-21d2-4fd3-a2fe-1362d8cf6efc--embedded{display:flex;flex-direction:column;align-items:flex-end}.wisepilot-copilot-container-5de2a4ad-21d2-4fd3-a2fe-1362d8cf6efc--embedded .wisepilot-copilot-iframe-wrapper{bottom:15px;right:15px;transform-origin:right bottom;height:550px;min-height:550px;width:360px;box-shadow:#00000029 0 5px 40px;border-radius:10px;overflow:hidden;opacity:1;transition:width .2s ease 0s,height .2s ease 0s,max-height .2s ease 0s,transform .3s cubic-bezier(0,1.2,1,1) 0s,opacity 83ms ease-out 0s;pointer-events:all}.wisepilot-copilot-container-5de2a4ad-21d2-4fd3-a2fe-1362d8cf6efc .wisepilot-copilot-iframe-wrapper{animation:scale-large .08s ease-in-out;position:fixed;bottom:15px;right:15px;transform-origin:right bottom;height:550px;min-height:550px;width:360px;box-shadow:#00000029 0 5px 40px;border-radius:10px;overflow:hidden;opacity:1;transition:width .2s ease 0s,height .2s ease 0s,max-height .2s ease 0s,transform .3s cubic-bezier(0,1.2,1,1) 0s,opacity 83ms ease-out 0s;pointer-events:all}.wisepilot-copilot-container-5de2a4ad-21d2-4fd3-a2fe-1362d8cf6efc .wisepilot-copilot-iframe-wrapper>iframe{width:100%;height:100%;border:0px none transparent;border-radius:0}.wisepilot-copilot-container-5de2a4ad-21d2-4fd3-a2fe-1362d8cf6efc--embedded .wisepilot-copilot-iframe-wrapper>iframe{width:100%;height:100%;border:0px none transparent;border-radius:0}.wisepilot-copilot-trigger-button-5de2a4ad-21d2-4fd3-a2fe-1362d8cf6efc{animation:scale .2s ease-in-out;z-index:2147483000;height:48px;border-radius:30px;padding:0 8px 0 6px;cursor:pointer;border:none;transition:transform .16s linear 0s,opacity .08s linear 0s;display:flex;justify-content:center;align-items:center;box-shadow:#00000029 0 5px 40px;background-color:#2463EB;gap:6px}.wisepilot-copilot-trigger-button-5de2a4ad-21d2-4fd3-a2fe-1362d8cf6efc .wisepilot-copilot-trigger-button-circle{width:36px;height:36px;background-color:#fff;border-radius:50%;display:flex;justify-content:center;align-items:center;fill:#2463EB;color:#2463EB}.wisepilot-copilot-trigger-button-5de2a4ad-21d2-4fd3-a2fe-1362d8cf6efc .wisepilot-copilot-trigger-button-text{font-weight:600;font-size:14px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;color:#fff}.wisepilot-copilot-trigger-button:hover{transform:rotate(0) scale(1.05)}@media (max-width: 450px){.wisepilot-copilot-container-5de2a4ad-21d2-4fd3-a2fe-1362d8cf6efc--embedded .wisepilot-copilot-iframe-wrapper{width:100%}.wisepilot-copilot-container-5de2a4ad-21d2-4fd3-a2fe-1362d8cf6efc .wisepilot-copilot-iframe-wrapper{right:0;left:0;top:0;width:100%;height:100%;border-radius:0}.wisepilot-copilot-trigger-button-5de2a4ad-21d2-4fd3-a2fe-1362d8cf6efc{background-color:#fff;width:48px;border-radius:10px;padding:0}.wisepilot-copilot-trigger-button-5de2a4ad-21d2-4fd3-a2fe-1362d8cf6efc .wisepilot-copilot-trigger-button-text{display:none}}.wisepilot-overflow-hidden{overflow:hidden}@keyframes scale{0%{scale:.8}to{scale:1}}@keyframes scale-large{0%{scale:.2}to{scale:1}}")),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})(); function rs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ls={exports:{}},ol={},os={exports:{}},j={};/** * @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 qn=Symbol.for("react.element"),kc=Symbol.for("react.portal"),xc=Symbol.for("react.fragment"),Sc=Symbol.for("react.strict_mode"),Ec=Symbol.for("react.profiler"),Cc=Symbol.for("react.provider"),_c=Symbol.for("react.context"),Nc=Symbol.for("react.forward_ref"),zc=Symbol.for("react.suspense"),Pc=Symbol.for("react.memo"),Tc=Symbol.for("react.lazy"),Bi=Symbol.iterator;function Ic(e){return e===null||typeof e!="object"?null:(e=Bi&&e[Bi]||e["@@iterator"],typeof e=="function"?e:null)}var is={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},us=Object.assign,ss={};function an(e,t,n){this.props=e,this.context=t,this.refs=ss,this.updater=n||is}an.prototype.isReactComponent={};an.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")};an.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function as(){}as.prototype=an.prototype;function Qo(e,t,n){this.props=e,this.context=t,this.refs=ss,this.updater=n||is}var Yo=Qo.prototype=new as;Yo.constructor=Qo;us(Yo,an.prototype);Yo.isPureReactComponent=!0;var Wi=Array.isArray,cs=Object.prototype.hasOwnProperty,Jo={current:null},fs={key:!0,ref:!0,__self:!0,__source:!0};function ds(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)cs.call(t,r)&&!fs.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,X=E[A];if(0>>1;Al(Sl,T))ktl(lr,Sl)?(E[A]=lr,E[kt]=T,A=kt):(E[A]=Sl,E[wt]=T,A=wt);else if(ktl(lr,T))E[A]=lr,E[kt]=T,A=kt;else break e}}return P}function l(E,P){var T=E.sortIndex-P.sortIndex;return T!==0?T:E.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],c=[],h=1,m=null,p=3,w=!1,k=!1,S=!1,R=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(E){for(var P=n(c);P!==null;){if(P.callback===null)r(c);else if(P.startTime<=E)r(c),P.sortIndex=P.expirationTime,t(s,P);else break;P=n(c)}}function v(E){if(S=!1,f(E),!k)if(n(s)!==null)k=!0,De(x);else{var P=n(c);P!==null&&pn(v,P.startTime-E)}}function x(E,P){k=!1,S&&(S=!1,d(z),z=-1),w=!0;var T=p;try{for(f(P),m=n(s);m!==null&&(!(m.expirationTime>P)||E&&!he());){var A=m.callback;if(typeof A=="function"){m.callback=null,p=m.priorityLevel;var X=A(m.expirationTime<=P);P=e.unstable_now(),typeof X=="function"?m.callback=X:m===n(s)&&r(s),f(P)}else r(s);m=n(s)}if(m!==null)var rr=!0;else{var wt=n(c);wt!==null&&pn(v,wt.startTime-P),rr=!1}return rr}finally{m=null,p=T,w=!1}}var C=!1,N=null,z=-1,O=5,I=-1;function he(){return!(e.unstable_now()-IE||125A?(E.sortIndex=T,t(c,E),n(s)===null&&E===n(c)&&(S?(d(z),z=-1):S=!0,pn(v,T-A))):(E.sortIndex=X,t(s,E),k||w||(k=!0,De(x))),E},e.unstable_shouldYield=he,e.unstable_wrapCallback=function(E){var P=p;return function(){var T=p;p=P;try{return E.apply(this,arguments)}finally{p=T}}}})(vs);hs.exports=vs;var $c=hs.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 gs=Z,we=$c;function g(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"),Zl=Object.prototype.hasOwnProperty,Bc=/^[: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]*$/,Qi={},Yi={};function Wc(e){return Zl.call(Yi,e)?!0:Zl.call(Qi,e)?!1:Bc.test(e)?Yi[e]=!0:(Qi[e]=!0,!1)}function Hc(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 Qc(e,t,n,r){if(t===null||typeof t>"u"||Hc(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 ae(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var te={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){te[e]=new ae(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];te[t]=new ae(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){te[e]=new ae(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){te[e]=new ae(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){te[e]=new ae(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){te[e]=new ae(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){te[e]=new ae(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){te[e]=new ae(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){te[e]=new ae(e,5,!1,e.toLowerCase(),null,!1,!1)});var Xo=/[\-:]([a-z])/g;function Go(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(Xo,Go);te[t]=new ae(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(Xo,Go);te[t]=new ae(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(Xo,Go);te[t]=new ae(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){te[e]=new ae(e,1,!1,e.toLowerCase(),null,!1,!1)});te.xlinkHref=new ae("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){te[e]=new ae(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zo(e,t,n,r){var l=te.hasOwnProperty(t)?te[t]:null;(l!==null?l.type!==0:r||!(2u||l[i]!==o[u]){var s=` `+l[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{_l=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Sn(e):""}function Yc(e){switch(e.tag){case 5:return Sn(e.type);case 16:return Sn("Lazy");case 13:return Sn("Suspense");case 19:return Sn("SuspenseList");case 0:case 2:case 15:return e=Nl(e.type,!1),e;case 11:return e=Nl(e.type.render,!1),e;case 1:return e=Nl(e.type,!0),e;default:return""}}function to(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 Ut:return"Fragment";case Ft:return"Portal";case ql:return"Profiler";case qo:return"StrictMode";case bl:return"Suspense";case eo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ks:return(e.displayName||"Context")+".Consumer";case ws:return(e._context.displayName||"Context")+".Provider";case bo:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ei:return t=e.displayName||null,t!==null?t:to(e.type)||"Memo";case et:t=e._payload,e=e._init;try{return to(e(t))}catch{}}return null}function Jc(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 to(t);case 8:return t===qo?"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 mt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ss(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kc(e){var t=Ss(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 l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ur(e){e._valueTracker||(e._valueTracker=Kc(e))}function Es(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ss(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Rr(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 no(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ki(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=mt(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 Cs(e,t){t=t.checked,t!=null&&Zo(e,"checked",t,!1)}function ro(e,t){Cs(e,t);var n=mt(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")?lo(e,t.type,n):t.hasOwnProperty("defaultValue")&&lo(e,t.type,mt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xi(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 lo(e,t,n){(t!=="number"||Rr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var En=Array.isArray;function Xt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=sr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Dn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Nn={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},Xc=["Webkit","ms","Moz","O"];Object.keys(Nn).forEach(function(e){Xc.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nn[t]=Nn[e]})});function Ps(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Nn.hasOwnProperty(e)&&Nn[e]?(""+t).trim():t+"px"}function Ts(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Ps(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Gc=W({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 uo(e,t){if(t){if(Gc[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(g(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(g(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(g(61))}if(t.style!=null&&typeof t.style!="object")throw Error(g(62))}}function so(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 ao=null;function ti(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var co=null,Gt=null,Zt=null;function qi(e){if(e=tr(e)){if(typeof co!="function")throw Error(g(280));var t=e.stateNode;t&&(t=cl(t),co(e.stateNode,e.type,t))}}function Is(e){Gt?Zt?Zt.push(e):Zt=[e]:Gt=e}function js(){if(Gt){var e=Gt,t=Zt;if(Zt=Gt=null,qi(e),t)for(e=0;e>>=0,e===0?32:31-(sf(e)/af|0)|0}var ar=64,cr=4194304;function Cn(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 Ar(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~l;u!==0?r=Cn(u):(o&=i,o!==0&&(r=Cn(o)))}else i=n&~l,i!==0?r=Cn(i):o!==0&&(r=Cn(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===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 bn(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Oe(t),e[t]=n}function pf(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=Pn),uu=" ",su=!1;function Zs(e,t){switch(e){case"keyup":return $f.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var At=!1;function Wf(e,t){switch(e){case"compositionend":return qs(t);case"keypress":return t.which!==32?null:(su=!0,uu);case"textInput":return e=t.data,e===uu&&su?null:e;default:return null}}function Hf(e,t){if(At)return e==="compositionend"||!ai&&Zs(e,t)?(e=Xs(),_r=ii=lt=null,At=!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=du(n)}}function na(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?na(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ra(){for(var e=window,t=Rr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Rr(e.document)}return t}function ci(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 bf(e){var t=ra(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&na(n.ownerDocument.documentElement,n)){if(r!==null&&ci(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 l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=pu(n,o);var i=pu(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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,Vt=null,go=null,In=null,yo=!1;function mu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;yo||Vt==null||Vt!==Rr(r)||(r=Vt,"selectionStart"in r&&ci(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}),In&&Bn(In,r)||(In=r,r=Br(go,"onSelect"),0Wt||(e.current=Co[Wt],Co[Wt]=null,Wt--)}function D(e,t){Wt++,Co[Wt]=e.current,e.current=t}var ht={},oe=gt(ht),de=gt(!1),Tt=ht;function nn(e,t){var n=e.type.contextTypes;if(!n)return ht;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function pe(e){return e=e.childContextTypes,e!=null}function Hr(){U(de),U(oe)}function xu(e,t,n){if(oe.current!==ht)throw Error(g(168));D(oe,t),D(de,n)}function da(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(g(108,Jc(e)||"Unknown",l));return W({},n,r)}function Qr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ht,Tt=oe.current,D(oe,e),D(de,de.current),!0}function Su(e,t,n){var r=e.stateNode;if(!r)throw Error(g(169));n?(e=da(e,t,Tt),r.__reactInternalMemoizedMergedChildContext=e,U(de),U(oe),D(oe,e)):U(de),D(de,n)}var We=null,fl=!1,Vl=!1;function pa(e){We===null?We=[e]:We.push(e)}function fd(e){fl=!0,pa(e)}function yt(){if(!Vl&&We!==null){Vl=!0;var e=0,t=M;try{var n=We;for(M=1;e>=i,l-=i,He=1<<32-Oe(t)+l|n<z?(O=N,N=null):O=N.sibling;var I=p(d,N,f[z],v);if(I===null){N===null&&(N=O);break}e&&N&&I.alternate===null&&t(d,N),a=o(I,a,z),C===null?x=I:C.sibling=I,C=I,N=O}if(z===f.length)return n(d,N),V&&xt(d,z),x;if(N===null){for(;zz?(O=N,N=null):O=N.sibling;var he=p(d,N,I.value,v);if(he===null){N===null&&(N=O);break}e&&N&&he.alternate===null&&t(d,N),a=o(he,a,z),C===null?x=he:C.sibling=he,C=he,N=O}if(I.done)return n(d,N),V&&xt(d,z),x;if(N===null){for(;!I.done;z++,I=f.next())I=m(d,I.value,v),I!==null&&(a=o(I,a,z),C===null?x=I:C.sibling=I,C=I);return V&&xt(d,z),x}for(N=r(d,N);!I.done;z++,I=f.next())I=w(N,d,z,I.value,v),I!==null&&(e&&I.alternate!==null&&N.delete(I.key===null?z:I.key),a=o(I,a,z),C===null?x=I:C.sibling=I,C=I);return e&&N.forEach(function(qe){return t(d,qe)}),V&&xt(d,z),x}function R(d,a,f,v){if(typeof f=="object"&&f!==null&&f.type===Ut&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case ir:e:{for(var x=f.key,C=a;C!==null;){if(C.key===x){if(x=f.type,x===Ut){if(C.tag===7){n(d,C.sibling),a=l(C,f.props.children),a.return=d,d=a;break e}}else if(C.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===et&&Tu(x)===C.type){n(d,C.sibling),a=l(C,f.props),a.ref=wn(d,C,f),a.return=d,d=a;break e}n(d,C);break}else t(d,C);C=C.sibling}f.type===Ut?(a=Pt(f.props.children,d.mode,v,f.key),a.return=d,d=a):(v=Or(f.type,f.key,f.props,null,d.mode,v),v.ref=wn(d,a,f),v.return=d,d=v)}return i(d);case Ft:e:{for(C=f.key;a!==null;){if(a.key===C)if(a.tag===4&&a.stateNode.containerInfo===f.containerInfo&&a.stateNode.implementation===f.implementation){n(d,a.sibling),a=l(a,f.children||[]),a.return=d,d=a;break e}else{n(d,a);break}else t(d,a);a=a.sibling}a=Kl(f,d.mode,v),a.return=d,d=a}return i(d);case et:return C=f._init,R(d,a,C(f._payload),v)}if(En(f))return k(d,a,f,v);if(mn(f))return S(d,a,f,v);gr(d,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,a!==null&&a.tag===6?(n(d,a.sibling),a=l(a,f),a.return=d,d=a):(n(d,a),a=Jl(f,d.mode,v),a.return=d,d=a),i(d)):n(d,a)}return R}var ln=xa(!0),Sa=xa(!1),nr={},$e=gt(nr),Yn=gt(nr),Jn=gt(nr);function Nt(e){if(e===nr)throw Error(g(174));return e}function wi(e,t){switch(D(Jn,t),D(Yn,e),D($e,nr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:io(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=io(t,e)}U($e),D($e,t)}function on(){U($e),U(Yn),U(Jn)}function Ea(e){Nt(Jn.current);var t=Nt($e.current),n=io(t,e.type);t!==n&&(D(Yn,e),D($e,n))}function ki(e){Yn.current===e&&(U($e),U(Yn))}var $=gt(0);function Zr(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 $l=[];function xi(){for(var e=0;e<$l.length;e++)$l[e]._workInProgressVersionPrimary=null;$l.length=0}var Pr=Ze.ReactCurrentDispatcher,Bl=Ze.ReactCurrentBatchConfig,jt=0,B=null,J=null,G=null,qr=!1,jn=!1,Kn=0,pd=0;function ne(){throw Error(g(321))}function Si(e,t){if(t===null)return!1;for(var n=0;nn?n:4,e(!0);var r=Bl.transition;Bl.transition={};try{e(!1),t()}finally{M=n,Bl.transition=r}}function Aa(){return ze().memoizedState}function hd(e,t,n){var r=dt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Va(e))$a(t,n);else if(n=ga(e,t,n,r),n!==null){var l=ue();Me(n,e,r,l),Ba(n,t,r)}}function vd(e,t,n){var r=dt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Va(e))$a(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,u=o(i,n);if(l.hasEagerState=!0,l.eagerState=u,Re(u,i)){var s=t.interleaved;s===null?(l.next=l,gi(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=ga(e,t,l,r),n!==null&&(l=ue(),Me(n,e,r,l),Ba(n,t,r))}}function Va(e){var t=e.alternate;return e===B||t!==null&&t===B}function $a(e,t){jn=qr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ba(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ri(e,n)}}var br={readContext:Ne,useCallback:ne,useContext:ne,useEffect:ne,useImperativeHandle:ne,useInsertionEffect:ne,useLayoutEffect:ne,useMemo:ne,useReducer:ne,useRef:ne,useState:ne,useDebugValue:ne,useDeferredValue:ne,useTransition:ne,useMutableSource:ne,useSyncExternalStore:ne,useId:ne,unstable_isNewReconciler:!1},gd={readContext:Ne,useCallback:function(e,t){return Ue().memoizedState=[e,t===void 0?null:t],e},useContext:Ne,useEffect:ju,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Tr(4194308,4,Ma.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Tr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Tr(4,2,e,t)},useMemo:function(e,t){var n=Ue();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ue();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=hd.bind(null,B,e),[r.memoizedState,e]},useRef:function(e){var t=Ue();return e={current:e},t.memoizedState=e},useState:Iu,useDebugValue:Ni,useDeferredValue:function(e){return Ue().memoizedState=e},useTransition:function(){var e=Iu(!1),t=e[0];return e=md.bind(null,e[1]),Ue().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=B,l=Ue();if(V){if(n===void 0)throw Error(g(407));n=n()}else{if(n=t(),q===null)throw Error(g(349));jt&30||Na(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,ju(Pa.bind(null,r,o,e),[e]),r.flags|=2048,Gn(9,za.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ue(),t=q.identifierPrefix;if(V){var n=Qe,r=He;n=(r&~(1<<32-Oe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Kn++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Ae]=t,e[Qn]=r,Za(e,t,!1,!1),t.stateNode=e;e:{switch(i=so(n,r),n){case"dialog":F("cancel",e),F("close",e),l=r;break;case"iframe":case"object":case"embed":F("load",e),l=r;break;case"video":case"audio":for(l=0;l<_n.length;l++)F(_n[l],e);l=r;break;case"source":F("error",e),l=r;break;case"img":case"image":case"link":F("error",e),F("load",e),l=r;break;case"details":F("toggle",e),l=r;break;case"input":Ki(e,r),l=no(e,r),F("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=W({},r,{value:void 0}),F("invalid",e);break;case"textarea":Gi(e,r),l=oo(e,r),F("invalid",e);break;default:l=r}uo(n,l),u=l;for(o in u)if(u.hasOwnProperty(o)){var s=u[o];o==="style"?Ts(e,s):o==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&zs(e,s)):o==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&Dn(e,s):typeof s=="number"&&Dn(e,""+s):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Rn.hasOwnProperty(o)?s!=null&&o==="onScroll"&&F("scroll",e):s!=null&&Zo(e,o,s,i))}switch(n){case"input":ur(e),Xi(e,r,!1);break;case"textarea":ur(e),Zi(e);break;case"option":r.value!=null&&e.setAttribute("value",""+mt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Xt(e,!!r.multiple,o,!1):r.defaultValue!=null&&Xt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Wr)}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 re(t),null;case 6:if(e&&t.stateNode!=null)ba(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(g(166));if(n=Nt(Jn.current),Nt($e.current),vr(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ae]=t,(o=r.nodeValue!==n)&&(e=ye,e!==null))switch(e.tag){case 3:hr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&hr(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ae]=t,t.stateNode=r}return re(t),null;case 13:if(U($),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(V&&ge!==null&&t.mode&1&&!(t.flags&128))va(),rn(),t.flags|=98560,o=!1;else if(o=vr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(g(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(g(317));o[Ae]=t}else rn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;re(t),o=!1}else Le!==null&&(Wo(Le),Le=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||$.current&1?K===0&&(K=3):Oi())),t.updateQueue!==null&&(t.flags|=4),re(t),null);case 4:return on(),Ro(e,t),e===null&&Wn(t.stateNode.containerInfo),re(t),null;case 10:return vi(t.type._context),re(t),null;case 17:return pe(t.type)&&Hr(),re(t),null;case 19:if(U($),o=t.memoizedState,o===null)return re(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)kn(o,!1);else{if(K!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Zr(e),i!==null){for(t.flags|=128,kn(o,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return D($,$.current&1|2),t.child}e=e.sibling}o.tail!==null&&Q()>sn&&(t.flags|=128,r=!0,kn(o,!1),t.lanes=4194304)}else{if(!r)if(e=Zr(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),kn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!V)return re(t),null}else 2*Q()-o.renderingStartTime>sn&&n!==1073741824&&(t.flags|=128,r=!0,kn(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Q(),t.sibling=null,n=$.current,D($,r?n&1|2:n&1),t):(re(t),null);case 22:case 23:return Li(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ve&1073741824&&(re(t),t.subtreeFlags&6&&(t.flags|=8192)):re(t),null;case 24:return null;case 25:return null}throw Error(g(156,t.tag))}function _d(e,t){switch(di(t),t.tag){case 1:return pe(t.type)&&Hr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return on(),U(de),U(oe),xi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ki(t),null;case 13:if(U($),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(g(340));rn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U($),null;case 4:return on(),null;case 10:return vi(t.type._context),null;case 22:case 23:return Li(),null;case 24:return null;default:return null}}var wr=!1,le=!1,Nd=typeof WeakSet=="function"?WeakSet:Set,_=null;function Jt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){H(e,t,r)}else n.current=null}function Do(e,t,n){try{n()}catch(r){H(e,t,r)}}var Vu=!1;function zd(e,t){if(wo=Vr,e=ra(),ci(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 l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,u=-1,s=-1,c=0,h=0,m=e,p=null;t:for(;;){for(var w;m!==n||l!==0&&m.nodeType!==3||(u=i+l),m!==o||r!==0&&m.nodeType!==3||(s=i+r),m.nodeType===3&&(i+=m.nodeValue.length),(w=m.firstChild)!==null;)p=m,m=w;for(;;){if(m===e)break t;if(p===n&&++c===l&&(u=i),p===o&&++h===r&&(s=i),(w=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=w}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(ko={focusedElem:e,selectionRange:n},Vr=!1,_=t;_!==null;)if(t=_,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_=e;else for(;_!==null;){t=_;try{var k=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(k!==null){var S=k.memoizedProps,R=k.memoizedState,d=t.stateNode,a=d.getSnapshotBeforeUpdate(t.elementType===t.type?S:Ie(t.type,S),R);d.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(g(163))}}catch(v){H(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return k=Vu,Vu=!1,k}function Ln(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Do(t,n,o)}l=l.next}while(l!==r)}}function ml(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 Fo(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 ec(e){var t=e.alternate;t!==null&&(e.alternate=null,ec(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ae],delete t[Qn],delete t[Eo],delete t[ad],delete t[cd])),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 tc(e){return e.tag===5||e.tag===3||e.tag===4}function $u(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||tc(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 Uo(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=Wr));else if(r!==4&&(e=e.child,e!==null))for(Uo(e,t,n),e=e.sibling;e!==null;)Uo(e,t,n),e=e.sibling}function Ao(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(Ao(e,t,n),e=e.sibling;e!==null;)Ao(e,t,n),e=e.sibling}var b=null,je=!1;function be(e,t,n){for(n=n.child;n!==null;)nc(e,t,n),n=n.sibling}function nc(e,t,n){if(Ve&&typeof Ve.onCommitFiberUnmount=="function")try{Ve.onCommitFiberUnmount(il,n)}catch{}switch(n.tag){case 5:le||Jt(n,t);case 6:var r=b,l=je;b=null,be(e,t,n),b=r,je=l,b!==null&&(je?(e=b,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):b.removeChild(n.stateNode));break;case 18:b!==null&&(je?(e=b,n=n.stateNode,e.nodeType===8?Al(e.parentNode,n):e.nodeType===1&&Al(e,n),Vn(e)):Al(b,n.stateNode));break;case 4:r=b,l=je,b=n.stateNode.containerInfo,je=!0,be(e,t,n),b=r,je=l;break;case 0:case 11:case 14:case 15:if(!le&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Do(n,t,i),l=l.next}while(l!==r)}be(e,t,n);break;case 1:if(!le&&(Jt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){H(n,t,u)}be(e,t,n);break;case 21:be(e,t,n);break;case 22:n.mode&1?(le=(r=le)||n.memoizedState!==null,be(e,t,n),le=r):be(e,t,n);break;default:be(e,t,n)}}function Bu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Nd),t.forEach(function(r){var l=Dd.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Te(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=Q()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Td(r/1960))-r,10e?16:e,ot===null)var r=!1;else{if(e=ot,ot=null,nl=0,L&6)throw Error(g(331));var l=L;for(L|=4,_=e.current;_!==null;){var o=_,i=o.child;if(_.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sQ()-Ii?zt(e,0):Ti|=n),me(e,t)}function cc(e,t){t===0&&(e.mode&1?(t=cr,cr<<=1,!(cr&130023424)&&(cr=4194304)):t=1);var n=ue();e=Xe(e,t),e!==null&&(bn(e,t,n),me(e,n))}function Rd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),cc(e,n)}function Dd(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(g(314))}r!==null&&r.delete(t),cc(e,n)}var fc;fc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||de.current)fe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return fe=!1,Ed(e,t,n);fe=!!(e.flags&131072)}else fe=!1,V&&t.flags&1048576&&ma(t,Jr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ir(e,t),e=t.pendingProps;var l=nn(t,oe.current);bt(t,n),l=Ei(null,t,r,e,l,n);var o=Ci();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,pe(r)?(o=!0,Qr(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,yi(t),l.updater=dl,t.stateNode=l,l._reactInternals=t,To(t,r,e,n),t=Lo(null,t,r,!0,o,n)):(t.tag=0,V&&o&&fi(t),ie(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ir(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Ud(r),e=Ie(r,e),l){case 0:t=jo(null,t,r,e,n);break e;case 1:t=Fu(null,t,r,e,n);break e;case 11:t=Ru(null,t,r,e,n);break e;case 14:t=Du(null,t,r,Ie(r.type,e),n);break e}throw Error(g(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ie(r,l),jo(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ie(r,l),Fu(e,t,r,l,n);case 3:e:{if(Ka(t),e===null)throw Error(g(387));r=t.pendingProps,o=t.memoizedState,l=o.element,ya(e,t),Gr(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=un(Error(g(423)),t),t=Uu(e,t,r,n,l);break e}else if(r!==l){l=un(Error(g(424)),t),t=Uu(e,t,r,n,l);break e}else for(ge=at(t.stateNode.containerInfo.firstChild),ye=t,V=!0,Le=null,n=Sa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(rn(),r===l){t=Ge(e,t,n);break e}ie(e,t,r,n)}t=t.child}return t;case 5:return Ea(t),e===null&&No(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,xo(r,l)?i=null:o!==null&&xo(r,o)&&(t.flags|=32),Ja(e,t),ie(e,t,i,n),t.child;case 6:return e===null&&No(t),null;case 13:return Xa(e,t,n);case 4:return wi(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ln(t,null,r,n):ie(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ie(r,l),Ru(e,t,r,l,n);case 7:return ie(e,t,t.pendingProps,n),t.child;case 8:return ie(e,t,t.pendingProps.children,n),t.child;case 12:return ie(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,D(Kr,r._currentValue),r._currentValue=i,o!==null)if(Re(o.value,i)){if(o.children===l.children&&!de.current){t=Ge(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=Ye(-1,n&-n),s.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var h=c.pending;h===null?s.next=s:(s.next=h.next,h.next=s),c.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),zo(o.return,n,t),u.lanes|=n;break}s=s.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(g(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),zo(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ie(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,bt(t,n),l=Ne(l),r=r(l),t.flags|=1,ie(e,t,r,n),t.child;case 14:return r=t.type,l=Ie(r,t.pendingProps),l=Ie(r.type,l),Du(e,t,r,l,n);case 15:return Qa(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ie(r,l),Ir(e,t),t.tag=1,pe(r)?(e=!0,Qr(t)):e=!1,bt(t,n),ka(t,r,l),To(t,r,l,n),Lo(null,t,r,!0,e,n);case 19:return Ga(e,t,n);case 22:return Ya(e,t,n)}throw Error(g(156,t.tag))};function dc(e,t){return Us(e,t)}function Fd(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 Ce(e,t,n,r){return new Fd(e,t,n,r)}function Mi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ud(e){if(typeof e=="function")return Mi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===bo)return 11;if(e===ei)return 14}return 2}function pt(e,t){var n=e.alternate;return n===null?(n=Ce(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 Or(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Mi(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Ut:return Pt(n.children,l,o,t);case qo:i=8,l|=8;break;case ql:return e=Ce(12,n,t,l|2),e.elementType=ql,e.lanes=o,e;case bl:return e=Ce(13,n,t,l),e.elementType=bl,e.lanes=o,e;case eo:return e=Ce(19,n,t,l),e.elementType=eo,e.lanes=o,e;case xs:return vl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ws:i=10;break e;case ks:i=9;break e;case bo:i=11;break e;case ei:i=14;break e;case et:i=16,r=null;break e}throw Error(g(130,e==null?e:typeof e,""))}return t=Ce(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Pt(e,t,n,r){return e=Ce(7,e,r,t),e.lanes=n,e}function vl(e,t,n,r){return e=Ce(22,e,r,t),e.elementType=xs,e.lanes=n,e.stateNode={isHidden:!1},e}function Jl(e,t,n){return e=Ce(6,e,null,t),e.lanes=n,e}function Kl(e,t,n){return t=Ce(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ad(e,t,n,r,l){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=Pl(0),this.expirationTimes=Pl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Ri(e,t,n,r,l,o,i,u,s){return e=new Ad(e,t,n,u,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ce(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},yi(o),e}function Vd(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vc)}catch(e){console.error(e)}}vc(),ms.exports=ke;var Qd=ms.exports,Gu=Qd;Mr.createRoot=Gu.createRoot,Mr.hydrateRoot=Gu.hydrateRoot;function Yd({styles:e,children:t,...n}){const r=Z.useRef(null);return Z.useEffect(()=>{if(r.current){const l=r.current.contentDocument;l.open(),l.close();const o=l.createElement("style");o.textContent=e,l.head.appendChild(o),Mr.createRoot(l.body).render(t)}},[e,t]),y.jsx("iframe",{...n,ref:r})}class Xl{static saveItem(t,n){sessionStorage.setItem(t,n)}static getItem(t){return sessionStorage.getItem(t)}static removeItem(t){sessionStorage.removeItem(t)}}var Jd={VITE_TEST_COPILOT_ID:"5de2a4ad-21d2-4fd3-a2fe-1362d8cf6efc",VITE_SUPABASE_ANON_KEY:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inl3ZGJkemNkbnB1c2lqeWFubGJqIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MTgyOTgxOTMsImV4cCI6MjAzMzg3NDE5M30.u2VCX2k4aoOg2bly7c3TPA5UuuJS_GzH-hmLSQp5868",VITE_SUPABASE_FUNCTIONS_URL:"https://ywdbdzcdnpusijyanlbj.supabase.co",BASE_URL:"/jzai/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_SUPABASE_ANON_KEY:Zu}=Jd;var Ho=(e=>(e.GET="GET",e.POST="POST",e))(Ho||{});const qu=async({url:e,body:t,type:n="POST"})=>fetch(e,{method:n,headers:{"Content-Type":"application/json",Authorization:`Bearer ${Zu}`,apikey:Zu},body:t});var gc={VITE_TEST_COPILOT_ID:"5de2a4ad-21d2-4fd3-a2fe-1362d8cf6efc",VITE_SUPABASE_ANON_KEY:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inl3ZGJkemNkbnB1c2lqeWFubGJqIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MTgyOTgxOTMsImV4cCI6MjAzMzg3NDE5M30.u2VCX2k4aoOg2bly7c3TPA5UuuJS_GzH-hmLSQp5868",VITE_SUPABASE_FUNCTIONS_URL:"https://ywdbdzcdnpusijyanlbj.supabase.co",BASE_URL:"/jzai/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_SUPABASE_ANON_KEY:bu}=gc,Kd=[{role:"CHATBOT",content:"Hi there! I am a helpful copilot. Can I get you started down the right path?",created:new Date().toISOString()}],Ai=Et.createContext({});function Xd({children:e,setOpen:t}){const[n,r]=Et.useState(""),[l,o]=Et.useState(null),[i,u]=Et.useState([]),[s,c]=Et.useState(!1),[h,m]=Et.useState(null),{VITE_SUPABASE_FUNCTIONS_URL:p,VITE_TEST_COPILOT_ID:w}=gc,k=Z.useCallback(()=>Xl.getItem(w),[w]);Z.useEffect(()=>{const f=`${p}/rest/v1/copilots?id=eq.${w}&select=suggestedMessages`;qu({url:f,type:Ho.GET}).then(v=>v.json().then(x=>(x[0].suggestedMessages&&o(x[0].suggestedMessages),null))).catch(()=>{})},[w,p]),Z.useEffect(()=>{const f=k();if(f){const v=`${p}/rest/v1/messages?conversationId=eq.${f}&select=*&order=createdAt.desc&limit=30`;qu({url:v,type:Ho.GET}).then(x=>x.json().then(C=>u(C.reverse()))).catch(()=>{})}else S()},[p,k]),Z.useEffect(()=>{i.length>1&&o(null)},[i]);const S=async()=>{u([...Kd])},R=async f=>{if(s||n.length===0&&!f)return;const v=f||n,x={role:"USER",content:v,created:new Date().toISOString()};u(C=>[...C,x]),c(!0),r("");try{const C=k(),N=await d({prompt:v,conversationId:C});if(m(null),!N)throw"Error fetching response.";const z={role:"CHATBOT",content:N,created:new Date().toISOString()};u(O=>[...O,z])}catch{const z={role:"CHATBOT",content:"Sorry, we are experiencing technical difficulties. Please try again later.",created:new Date().toISOString()};return u(O=>[...O,z]),null}finally{c(!1)}},d=async({prompt:f,conversationId:v})=>{var qe;let x="",C="",N="";const z=`${p}/functions/v1/conversations?copilotId=${w}`,O=await fetch(z,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${bu}`,apikey:bu},body:JSON.stringify({content:f,conversationId:v})}),I=(qe=O.body)==null?void 0:qe.getReader(),he=new TextDecoder;if(I){let Pe,dn;for(;({done:Pe,value:dn}=await I.read())&&!Pe;){s&&c(!1);const xl=he.decode(dn,{stream:!0});x+=xl;try{const De=x.split(` `);for(let E=0;E{m(E=>(E??"")+pn)})}catch(De){console.log("fetchStream",De)}}}if(!v){const Pe=O.headers.get("x-wise-conversation-id");Pe&&Xl.saveItem(w,Pe)}return C},a={prompt:n,setPrompt:r,generatedPrompts:l,streamedMessage:h,submitPrompt:R,messages:i,setMessages:u,loading:s,setLoading:c,setOpen:t};return y.jsx(Ai.Provider,{value:a,children:e})}const Vi=()=>Z.useContext(Ai),yc=({size:e=20,className:t})=>y.jsxs("svg",{width:`${e}px`,height:`${e}px`,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",strokeWidth:"2",className:t,children:[y.jsx("g",{clipPath:"url(#clip0_4086_8473)",children:y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.84647 7.15123C1.54566 7.21608 1.31498 7.45811 1.26464 7.7617C1.2143 8.06528 1.35452 8.36881 1.6183 8.52729L8.13474 12.4421L14.3544 8.08705C14.6938 7.84947 15.1614 7.93193 15.399 8.27123C15.6366 8.61054 15.5541 9.0782 15.2148 9.31578L8.99537 13.6707L10.4455 21.1339C10.5042 21.436 10.7415 21.6715 11.044 21.7281C11.3465 21.7846 11.6528 21.6506 11.8166 21.3901L22.7919 3.93893C22.9526 3.68349 22.9445 3.35665 22.7714 3.10947C22.5983 2.86228 22.294 2.7429 21.999 2.80649L1.84647 7.15123Z",fill:"currentColor"})}),y.jsx("defs",{children:y.jsx("clipPath",{id:"clip0_4086_8473",children:y.jsx("rect",{width:"24",height:"24",fill:"white"})})})]}),Gd=()=>{const{prompt:e,setPrompt:t,submitPrompt:n}=Vi(),r=l=>{l.preventDefault(),n()};return y.jsxs("form",{onSubmit:r,className:"m-0 flex p-2",children:[y.jsx("input",{type:"text","aria-label":"Message to send",placeholder:"Type your message here...",value:e,maxLength:400,onChange:l=>t(l.target.value),className:"flex-1 rounded-md border-1 border-gray-200 bg-white p-1 text-sm text-black focus:border-brand-blue focus:outline-none md:text-xs"}),y.jsx("button",{type:"submit","aria-label":"Send message",className:"hover:bg-brand-blue-dark ml-2 rounded-md bg-brand-blue p-2 text-sm font-medium text-white focus:outline-none focus:ring-2 focus:ring-brand-blue focus:ring-opacity-50",children:y.jsx(yc,{})})]})},Zd=(e,t)=>y.jsxs("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"my-1 flex gap-1 text-blue-600",children:[t,y.jsx("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24","aria-hidden":"true",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]}),qd=e=>{const t=/\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)/g,n=[];let r=0;if(e.replace(t,(l,o,i,u)=>(u>r&&n.push(e.slice(r,u)),n.push(Zd(i,o)),r=u+l.length,l)),ry.jsxs("svg",{"aria-hidden":"true",width:`${e}px`,height:`${e}px`,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("path",{d:"M3.20166 13.0215V6.97852C3.20166 4.89262 4.89262 3.20166 6.97852 3.20166H13.0215C15.1074 3.20166 16.7983 4.89262 16.7983 6.97852V13.0215C16.7983 15.1074 15.1074 16.7983 13.0215 16.7983H6.97852C4.89262 16.7983 3.20166 15.1074 3.20166 13.0215Z",stroke:"currentColor",strokeWidth:"1.66667"}),y.jsx("path",{d:"M7.29305 10.4407C7.04963 10.4407 6.85229 10.2434 6.85229 9.99996C6.85229 9.75654 7.04963 9.5592 7.29305 9.5592C7.53647 9.5592 7.73381 9.75654 7.73381 9.99996C7.73381 10.2434 7.53647 10.4407 7.29305 10.4407Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),y.jsx("path",{d:"M12.691 10.4406C12.4564 10.4406 12.2661 10.2504 12.2661 10.0157C12.2661 9.78105 12.4564 9.59082 12.691 9.59082C12.9256 9.59082 13.1159 9.78105 13.1159 10.0157C13.1159 10.2504 12.9256 10.4406 12.691 10.4406Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),y.jsx("path",{d:"M1.14062 7.4884L1.14063 12.5116",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round"}),y.jsx("path",{d:"M18.8604 7.65747L18.8604 12.6807",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round"}),y.jsx("path",{d:"M9.99951 1.00732L10 1.00989",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),ts=({message:e})=>{const t=Z.useMemo(()=>qd(e.content),[e.content]),n=e.role==="USER",r=new Date(e.created).toLocaleTimeString();return y.jsxs("section",{"aria-label":r,className:es("flex flex-col text-xs",{"items-end":n,"items-start":!n}),children:[y.jsx("div",{className:"mb-1 text-xs text-slate-500",children:n?"You":y.jsxs("span",{className:"flex gap-1 items-center justify-center",children:[y.jsx($i,{size:18}),"WisePilot"]})}),y.jsx("div",{className:es("w-3/4 break-words rounded-lg rounded-tl-lg rounded-tr-lg p-2 text-left",{"self-end rounded-bl-lg rounded-br-none bg-brand-blue text-white":n,"self-start rounded-bl-none rounded-br bg-slate-100 text-black ":!n}),children:t})]})};const ep=()=>y.jsxs("div",{className:"w-fit flex gap-1 items-center justify-center rounded-bl-none rounded-br-lg rounded-tl-lg rounded-tr-lg bg-slate-100 p-3",children:[y.jsx("span",{className:"sr-only",children:"Loading"}),y.jsx("div",{className:"h-2 w-2 animate-bounce rounded-full bg-brand-blue [animation-delay:-0.3s]"}),y.jsx("div",{className:"h-2 w-2 animate-bounce rounded-full bg-brand-blue [animation-delay:-0.15s]"}),y.jsx("div",{className:"h-2 w-2 animate-bounce rounded-full bg-brand-blue"})]}),tp=({selectablePrompts:e})=>{const{submitPrompt:t}=Vi(),n=({e:r,selectablePrompt:l})=>{r.preventDefault(),t(l)};return y.jsx("div",{className:"absolute bottom-4 left-4 right-4 flex flex-col gap-1 rounded-lg",children:e.map((r,l)=>y.jsxs("button",{className:"flex w-fit gap-1 self-end rounded-2xl border-1 border-brand-blue border-opacity-40 bg-white p-2 text-left text-xs hover:bg-gray-100 ",onClick:o=>n({e:o,selectablePrompt:r}),children:[y.jsx("p",{children:r}),y.jsx(yc,{size:18,className:"min-w-fit text-brand-blue"})]},`prompt-${l}`))})},np=()=>{const{messages:e,loading:t,streamedMessage:n,generatedPrompts:r}=Vi(),l=Z.useRef(null),o=Z.useRef(null);return Z.useEffect(()=>{l.current&&o.current&&(o.current.scrollTop=l.current.offsetTop)},[e,n]),e?y.jsxs("section",{id:"message-container","aria-live":"polite",tabIndex:0,"aria-label":"Conversation",className:"relative flex flex-1 flex-col justify-start gap-3 overflow-y-scroll border-b-1 p-2",ref:o,children:[e.map((i,u)=>y.jsx(ts,{message:i},`message-${u}`)),n&&y.jsx(ts,{message:{role:"CHATBOT",content:n,created:""}}),y.jsxs("div",{className:"mt-4 flex w-full flex-col",children:[t&&!n&&y.jsx(ep,{}),y.jsx("div",{id:"scroll-to",ref:l})]}),r&&y.jsx(tp,{selectablePrompts:r})]}):"loading..."},rp=()=>y.jsxs("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",height:"18px",width:"18px",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("path",{fill:"none",d:"M0 0h24v24H0z"}),y.jsx("path",{d:"M14.69 2.21 4.33 11.49c-.64.58-.28 1.65.58 1.73L13 14l-4.85 6.76c-.22.31-.19.74.08 1.01.3.3.77.31 1.08.02l10.36-9.28c.64-.58.28-1.65-.58-1.73L11 10l4.85-6.76c.22-.31.19-.74-.08-1.01a.77.77 0 0 0-1.08-.02z"})]}),lp=()=>y.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"})}),op=()=>y.jsxs("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("path",{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M248 64C146.39 64 64 146.39 64 248s82.39 184 184 184 184-82.39 184-184S349.61 64 248 64z"}),y.jsx("path",{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M220 220h32v116"}),y.jsx("path",{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M208 340h88"}),y.jsx("path",{d:"M248 130a26 26 0 1 0 26 26 26 26 0 0 0-26-26z"})]}),ip=({children:e})=>{const[t,n]=Z.useState(!1);return y.jsxs("div",{className:"relative inline-block",children:[y.jsx("button",{onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),onFocus:()=>n(!0),onBlur:()=>n(!1),"aria-label":"Toggle tooltip",tabIndex:0,className:"text-gray-600",children:y.jsx(op,{})}),t&&y.jsx("div",{id:"tooltip",role:"tooltip",className:"absolute z-10 rounded-md bg-gray-50 p-2 text-gray-800 shadow-md w-[250px] text-xs font-normal border-1 border-brand-blue border-opacity-20",style:{top:"110%",transform:"translateX(-93%)"},children:e})]})},up=()=>{const{setOpen:e}=Z.useContext(Ai);return y.jsx("div",{className:"flex w-full justify-between border-b-1 p-2",children:y.jsxs("div",{className:"flex w-full items-center justify-between text-sm font-semibold text-black",children:[y.jsxs("div",{className:"flex items-center justify-center gap-2",children:[y.jsx($i,{})," WisePilot"]}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(ip,{children:y.jsxs("div",{className:"flex flex-col gap-1",children:[y.jsxs("div",{className:"flex gap-1 font-semibold text-brand-blue text-opacity-80",children:[y.jsx(rp,{})," ","Powered by WisePilot"]}),"Responses may be incorrect. Verify critical info independently."]})}),y.jsx("button",{className:"border-none",onClick:()=>e(!1),"aria-label":"Close copilot",children:y.jsx(lp,{})})]})]})})},sp=()=>y.jsxs("div",{className:"flex h-full flex-col bg-white",children:[y.jsx(up,{}),y.jsx(np,{}),y.jsx(Gd,{})]}),ap='*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.static{position:static}.absolute{position:absolute}.relative{position:relative}.bottom-4{bottom:1rem}.left-4{left:1rem}.right-4{right:1rem}.z-10{z-index:10}.m-0{margin:0}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-1{margin-bottom:.25rem}.ml-2{margin-left:.5rem}.mt-4{margin-top:1rem}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.h-2{height:.5rem}.h-full{height:100%}.w-2{width:.5rem}.w-3\\/4{width:75%}.w-\\[250px\\]{width:250px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.flex-1{flex:1 1 0%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.overflow-y-scroll{overflow-y:scroll}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-bl-lg{border-bottom-left-radius:.5rem}.rounded-bl-none{border-bottom-left-radius:0}.rounded-br{border-bottom-right-radius:.25rem}.rounded-br-lg{border-bottom-right-radius:.5rem}.rounded-br-none{border-bottom-right-radius:0}.rounded-tl-lg{border-top-left-radius:.5rem}.rounded-tr-lg{border-top-right-radius:.5rem}.border-1{border-width:1px}.border-b-1{border-bottom-width:1px}.border-none{border-style:none}.border-brand-blue{--tw-border-opacity: 1;border-color:rgb(36 99 235 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-opacity-20{--tw-border-opacity: .2}.border-opacity-40{--tw-border-opacity: .4}.bg-brand-blue{--tw-bg-opacity: 1;background-color:rgb(36 99 235 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.text-left{text-align:left}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-brand-blue{--tw-text-opacity: 1;color:rgb(36 99 235 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-opacity-80{--tw-text-opacity: .8}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}:root{font-size:clamp(1rem,1vw + 1rem,2.571rem);overflow:hidden}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.focus\\:border-brand-blue:focus{--tw-border-opacity: 1;border-color:rgb(36 99 235 / var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-brand-blue:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(36 99 235 / var(--tw-ring-opacity))}.focus\\:ring-opacity-50:focus{--tw-ring-opacity: .5}@media (min-width: 768px){.md\\:text-xs{font-size:.75rem;line-height:1rem}}';class cp extends Z.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,n){console.error("ErrorBoundary caught an error",t,n)}render(){return this.state.hasError?this.props.fallback:this.props.children}}const fp=()=>y.jsx("div",{className:"w-full h-full flex items-center justify-center",children:y.jsx("h1",{children:"Oops! Something went wrong :("})});var dp={VITE_TEST_COPILOT_ID:"5de2a4ad-21d2-4fd3-a2fe-1362d8cf6efc",VITE_SUPABASE_ANON_KEY:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inl3ZGJkemNkbnB1c2lqeWFubGJqIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MTgyOTgxOTMsImV4cCI6MjAzMzg3NDE5M30.u2VCX2k4aoOg2bly7c3TPA5UuuJS_GzH-hmLSQp5868",VITE_SUPABASE_FUNCTIONS_URL:"https://ywdbdzcdnpusijyanlbj.supabase.co",BASE_URL:"/jzai/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_TEST_COPILOT_ID:pp}=dp;function mp({isEmbedded:e}){const[t,n]=Z.useState(e);return y.jsxs(y.Fragment,{children:[t&&y.jsx("div",{className:"wisepilot-copilot-iframe-wrapper",children:y.jsx(Yd,{styles:ap,title:"WisePilot",tabindex:"0",children:y.jsx(cp,{fallback:y.jsx(fp,{}),children:y.jsx(Xd,{setOpen:n,children:y.jsx(sp,{})})})})}),!t&&y.jsxs("button",{className:`wisepilot-copilot-trigger-button-${pp}`,onClick:()=>n(!t),"aria-label":"Open WisePilot",children:[y.jsx("div",{className:"wisepilot-copilot-trigger-button-circle",children:y.jsx($i,{})}),y.jsx("span",{className:"wisepilot-copilot-trigger-button-text",children:"Looking for something?"})]})]})}var hp={VITE_TEST_COPILOT_ID:"5de2a4ad-21d2-4fd3-a2fe-1362d8cf6efc",VITE_SUPABASE_ANON_KEY:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inl3ZGJkemNkbnB1c2lqeWFubGJqIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MTgyOTgxOTMsImV4cCI6MjAzMzg3NDE5M30.u2VCX2k4aoOg2bly7c3TPA5UuuJS_GzH-hmLSQp5868",VITE_SUPABASE_FUNCTIONS_URL:"https://ywdbdzcdnpusijyanlbj.supabase.co",BASE_URL:"/jzai/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_TEST_COPILOT_ID:vp}=hp,Gl="wisepilot-copilot-host-5de2a4ad-21d2-4fd3-a2fe-1362d8cf6efc",ns=`wisepilot-copilot-container-${vp}`,gp=()=>{const e=document.getElementById(Gl);if(e)e.className=`${ns}--embedded`;else{const t=document.createElement("div");t.id=Gl,t.className=ns,document.body.appendChild(t)}Mr.createRoot(document.getElementById(Gl)).render(y.jsx(Et.StrictMode,{children:y.jsx(mp,{isEmbedded:!!e})}))};setTimeout(()=>gp(),500);