@dsrcjs/ai-widget 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-dana-chat.js +52 -52
- package/dist/i18n.d.ts +21 -1
- package/dist/index-DP5Wfj_A.js +19 -0
- package/dist/index.js +1 -1
- package/dist/{markdown-impl-DeMW_FqG.js → markdown-impl-6JgYKE4m.js} +1 -1
- package/dist/stream-entry-DGkNfqEy.js +8 -0
- package/package.json +1 -1
- package/dist/index-ve2JSWl1.js +0 -19
- package/dist/stream-entry-Cqex_Oyn.js +0 -8
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var ab=Object.defineProperty,ob=(r,a,o)=>a in r?ab(r,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[a]=o,sn=(r,a,o)=>ob(r,typeof a!="symbol"?a+"":a,o);function ib(r,a){for(var o=0;o<a.length;o++){const s=a[o];if(typeof s!="string"&&!Array.isArray(s)){for(const u in s)if(u!=="default"&&!(u in r)){const p=Object.getOwnPropertyDescriptor(s,u);p&&Object.defineProperty(r,u,p.get?p:{enumerable:!0,get:()=>s[u]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}function op(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var ip={exports:{}},ea={},sp={exports:{}},je={},lp;function sb(){if(lp)return je;lp=1;var r=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),S=Symbol.iterator;function w(k){return k===null||typeof k!="object"?null:(k=S&&k[S]||k["@@iterator"],typeof k=="function"?k:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,E={};function M(k,L,H){this.props=k,this.context=L,this.refs=E,this.updater=H||j}M.prototype.isReactComponent={},M.prototype.setState=function(k,L){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,L,"setState")},M.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function F(){}F.prototype=M.prototype;function Z(k,L,H){this.props=k,this.context=L,this.refs=E,this.updater=H||j}var oe=Z.prototype=new F;oe.constructor=Z,_(oe,M.prototype),oe.isPureReactComponent=!0;var J=Array.isArray,ne=Object.prototype.hasOwnProperty,$={current:null},X={key:!0,ref:!0,__self:!0,__source:!0};function K(k,L,H){var V,pe={},fe=null,Se=null;if(L!=null)for(V in L.ref!==void 0&&(Se=L.ref),L.key!==void 0&&(fe=""+L.key),L)ne.call(L,V)&&!X.hasOwnProperty(V)&&(pe[V]=L[V]);var ke=arguments.length-2;if(ke===1)pe.children=H;else if(1<ke){for(var xe=Array(ke),it=0;it<ke;it++)xe[it]=arguments[it+2];pe.children=xe}if(k&&k.defaultProps)for(V in ke=k.defaultProps,ke)pe[V]===void 0&&(pe[V]=ke[V]);return{$$typeof:r,type:k,key:fe,ref:Se,props:pe,_owner:$.current}}function he(k,L){return{$$typeof:r,type:k.type,key:L,ref:k.ref,props:k.props,_owner:k._owner}}function ee(k){return typeof k=="object"&&k!==null&&k.$$typeof===r}function ue(k){var L={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(H){return L[H]})}var W=/\/+/g;function Q(k,L){return typeof k=="object"&&k!==null&&k.key!=null?ue(""+k.key):L.toString(36)}function be(k,L,H,V,pe){var fe=typeof k;(fe==="undefined"||fe==="boolean")&&(k=null);var Se=!1;if(k===null)Se=!0;else switch(fe){case"string":case"number":Se=!0;break;case"object":switch(k.$$typeof){case r:case a:Se=!0}}if(Se)return Se=k,pe=pe(Se),k=V===""?"."+Q(Se,0):V,J(pe)?(H="",k!=null&&(H=k.replace(W,"$&/")+"/"),be(pe,L,H,"",function(it){return it})):pe!=null&&(ee(pe)&&(pe=he(pe,H+(!pe.key||Se&&Se.key===pe.key?"":(""+pe.key).replace(W,"$&/")+"/")+k)),L.push(pe)),1;if(Se=0,V=V===""?".":V+":",J(k))for(var ke=0;ke<k.length;ke++){fe=k[ke];var xe=V+Q(fe,ke);Se+=be(fe,L,H,xe,pe)}else if(xe=w(k),typeof xe=="function")for(k=xe.call(k),ke=0;!(fe=k.next()).done;)fe=fe.value,xe=V+Q(fe,ke++),Se+=be(fe,L,H,xe,pe);else if(fe==="object")throw L=String(k),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.");return Se}function Ne(k,L,H){if(k==null)return k;var V=[],pe=0;return be(k,V,"","",function(fe){return L.call(H,fe,pe++)}),V}function ve(k){if(k._status===-1){var L=k._result;L=L(),L.then(function(H){(k._status===0||k._status===-1)&&(k._status=1,k._result=H)},function(H){(k._status===0||k._status===-1)&&(k._status=2,k._result=H)}),k._status===-1&&(k._status=0,k._result=L)}if(k._status===1)return k._result.default;throw k._result}var ye={current:null},U={transition:null},D={ReactCurrentDispatcher:ye,ReactCurrentBatchConfig:U,ReactCurrentOwner:$};function I(){throw Error("act(...) is not supported in production builds of React.")}return je.Children={map:Ne,forEach:function(k,L,H){Ne(k,function(){L.apply(this,arguments)},H)},count:function(k){var L=0;return Ne(k,function(){L++}),L},toArray:function(k){return Ne(k,function(L){return L})||[]},only:function(k){if(!ee(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},je.Component=M,je.Fragment=o,je.Profiler=u,je.PureComponent=Z,je.StrictMode=s,je.Suspense=m,je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,je.act=I,je.cloneElement=function(k,L,H){if(k==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+k+".");var V=_({},k.props),pe=k.key,fe=k.ref,Se=k._owner;if(L!=null){if(L.ref!==void 0&&(fe=L.ref,Se=$.current),L.key!==void 0&&(pe=""+L.key),k.type&&k.type.defaultProps)var ke=k.type.defaultProps;for(xe in L)ne.call(L,xe)&&!X.hasOwnProperty(xe)&&(V[xe]=L[xe]===void 0&&ke!==void 0?ke[xe]:L[xe])}var xe=arguments.length-2;if(xe===1)V.children=H;else if(1<xe){ke=Array(xe);for(var it=0;it<xe;it++)ke[it]=arguments[it+2];V.children=ke}return{$$typeof:r,type:k.type,key:pe,ref:fe,props:V,_owner:Se}},je.createContext=function(k){return k={$$typeof:f,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},k.Provider={$$typeof:p,_context:k},k.Consumer=k},je.createElement=K,je.createFactory=function(k){var L=K.bind(null,k);return L.type=k,L},je.createRef=function(){return{current:null}},je.forwardRef=function(k){return{$$typeof:h,render:k}},je.isValidElement=ee,je.lazy=function(k){return{$$typeof:b,_payload:{_status:-1,_result:k},_init:ve}},je.memo=function(k,L){return{$$typeof:v,type:k,compare:L===void 0?null:L}},je.startTransition=function(k){var L=U.transition;U.transition={};try{k()}finally{U.transition=L}},je.unstable_act=I,je.useCallback=function(k,L){return ye.current.useCallback(k,L)},je.useContext=function(k){return ye.current.useContext(k)},je.useDebugValue=function(){},je.useDeferredValue=function(k){return ye.current.useDeferredValue(k)},je.useEffect=function(k,L){return ye.current.useEffect(k,L)},je.useId=function(){return ye.current.useId()},je.useImperativeHandle=function(k,L,H){return ye.current.useImperativeHandle(k,L,H)},je.useInsertionEffect=function(k,L){return ye.current.useInsertionEffect(k,L)},je.useLayoutEffect=function(k,L){return ye.current.useLayoutEffect(k,L)},je.useMemo=function(k,L){return ye.current.useMemo(k,L)},je.useReducer=function(k,L,H){return ye.current.useReducer(k,L,H)},je.useRef=function(k){return ye.current.useRef(k)},je.useState=function(k){return ye.current.useState(k)},je.useSyncExternalStore=function(k,L,H){return ye.current.useSyncExternalStore(k,L,H)},je.useTransition=function(){return ye.current.useTransition()},je.version="18.3.1",je}var cp;function Xs(){return cp||(cp=1,sp.exports=sb()),sp.exports}var dp;function lb(){if(dp)return ea;dp=1;var r=Xs(),a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,u=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function f(h,m,v){var b,S={},w=null,j=null;v!==void 0&&(w=""+v),m.key!==void 0&&(w=""+m.key),m.ref!==void 0&&(j=m.ref);for(b in m)s.call(m,b)&&!p.hasOwnProperty(b)&&(S[b]=m[b]);if(h&&h.defaultProps)for(b in m=h.defaultProps,m)S[b]===void 0&&(S[b]=m[b]);return{$$typeof:a,type:h,key:w,ref:j,props:S,_owner:u.current}}return ea.Fragment=o,ea.jsx=f,ea.jsxs=f,ea}var up;function cb(){return up||(up=1,ip.exports=lb()),ip.exports}var l=cb(),x=Xs();const db=op(x),ub=ib({__proto__:null,default:db},[x]);var Mo={},Ks={exports:{}},ot={},pp={exports:{}},fp={},hp;function pb(){return hp||(hp=1,(function(r){function a(U,D){var I=U.length;U.push(D);e:for(;0<I;){var k=I-1>>>1,L=U[k];if(0<u(L,D))U[k]=D,U[I]=L,I=k;else break e}}function o(U){return U.length===0?null:U[0]}function s(U){if(U.length===0)return null;var D=U[0],I=U.pop();if(I!==D){U[0]=I;e:for(var k=0,L=U.length,H=L>>>1;k<H;){var V=2*(k+1)-1,pe=U[V],fe=V+1,Se=U[fe];if(0>u(pe,I))fe<L&&0>u(Se,pe)?(U[k]=Se,U[fe]=I,k=fe):(U[k]=pe,U[V]=I,k=V);else if(fe<L&&0>u(Se,I))U[k]=Se,U[fe]=I,k=fe;else break e}}return D}function u(U,D){var I=U.sortIndex-D.sortIndex;return I!==0?I:U.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var p=performance;r.unstable_now=function(){return p.now()}}else{var f=Date,h=f.now();r.unstable_now=function(){return f.now()-h}}var m=[],v=[],b=1,S=null,w=3,j=!1,_=!1,E=!1,M=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function oe(U){for(var D=o(v);D!==null;){if(D.callback===null)s(v);else if(D.startTime<=U)s(v),D.sortIndex=D.expirationTime,a(m,D);else break;D=o(v)}}function J(U){if(E=!1,oe(U),!_)if(o(m)!==null)_=!0,ve(ne);else{var D=o(v);D!==null&&ye(J,D.startTime-U)}}function ne(U,D){_=!1,E&&(E=!1,F(K),K=-1),j=!0;var I=w;try{for(oe(D),S=o(m);S!==null&&(!(S.expirationTime>D)||U&&!ue());){var k=S.callback;if(typeof k=="function"){S.callback=null,w=S.priorityLevel;var L=k(S.expirationTime<=D);D=r.unstable_now(),typeof L=="function"?S.callback=L:S===o(m)&&s(m),oe(D)}else s(m);S=o(m)}if(S!==null)var H=!0;else{var V=o(v);V!==null&&ye(J,V.startTime-D),H=!1}return H}finally{S=null,w=I,j=!1}}var $=!1,X=null,K=-1,he=5,ee=-1;function ue(){return!(r.unstable_now()-ee<he)}function W(){if(X!==null){var U=r.unstable_now();ee=U;var D=!0;try{D=X(!0,U)}finally{D?Q():($=!1,X=null)}}else $=!1}var Q;if(typeof Z=="function")Q=function(){Z(W)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,Ne=be.port2;be.port1.onmessage=W,Q=function(){Ne.postMessage(null)}}else Q=function(){M(W,0)};function ve(U){X=U,$||($=!0,Q())}function ye(U,D){K=M(function(){U(r.unstable_now())},D)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(U){U.callback=null},r.unstable_continueExecution=function(){_||j||(_=!0,ve(ne))},r.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):he=0<U?Math.floor(1e3/U):5},r.unstable_getCurrentPriorityLevel=function(){return w},r.unstable_getFirstCallbackNode=function(){return o(m)},r.unstable_next=function(U){switch(w){case 1:case 2:case 3:var D=3;break;default:D=w}var I=w;w=D;try{return U()}finally{w=I}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(U,D){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var I=w;w=U;try{return D()}finally{w=I}},r.unstable_scheduleCallback=function(U,D,I){var k=r.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?k+I:k):I=k,U){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=I+L,U={id:b++,callback:D,priorityLevel:U,startTime:I,expirationTime:L,sortIndex:-1},I>k?(U.sortIndex=I,a(v,U),o(m)===null&&U===o(v)&&(E?(F(K),K=-1):E=!0,ye(J,I-k))):(U.sortIndex=L,a(m,U),_||j||(_=!0,ve(ne))),U},r.unstable_shouldYield=ue,r.unstable_wrapCallback=function(U){var D=w;return function(){var I=w;w=D;try{return U.apply(this,arguments)}finally{w=I}}}})(fp)),fp}var gp;function fb(){return gp||(gp=1,pp.exports=pb()),pp.exports}var mp;function hb(){if(mp)return ot;mp=1;var r=Xs(),a=fb();function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,u={};function p(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(u[e]=t,e=0;e<t.length;e++)s.add(t[e])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,v=/^[: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]*$/,b={},S={};function w(e){return m.call(S,e)?!0:m.call(b,e)?!1:v.test(e)?S[e]=!0:(b[e]=!0,!1)}function j(e,t,n,i){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _(e,t,n,i){if(t===null||typeof t>"u"||j(e,t,n,i))return!0;if(i)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 E(e,t,n,i,c,d,g){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=c,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=d,this.removeEmptyString=g}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){M[e]=new E(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];M[t]=new E(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){M[e]=new E(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){M[e]=new E(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){M[e]=new E(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){M[e]=new E(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){M[e]=new E(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){M[e]=new E(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){M[e]=new E(e,5,!1,e.toLowerCase(),null,!1,!1)});var F=/[\-:]([a-z])/g;function Z(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(F,Z);M[t]=new E(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(F,Z);M[t]=new E(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(F,Z);M[t]=new E(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){M[e]=new E(e,1,!1,e.toLowerCase(),null,!1,!1)}),M.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){M[e]=new E(e,1,!1,e.toLowerCase(),null,!0,!0)});function oe(e,t,n,i){var c=M.hasOwnProperty(t)?M[t]:null;(c!==null?c.type!==0:i||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(_(t,n,c,i)&&(n=null),i||c===null?w(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):c.mustUseProperty?e[c.propertyName]=n===null?c.type===3?!1:"":n:(t=c.attributeName,i=c.attributeNamespace,n===null?e.removeAttribute(t):(c=c.type,n=c===3||c===4&&n===!0?"":""+n,i?e.setAttributeNS(i,t,n):e.setAttribute(t,n))))}var J=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ne=Symbol.for("react.element"),$=Symbol.for("react.portal"),X=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),he=Symbol.for("react.profiler"),ee=Symbol.for("react.provider"),ue=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),be=Symbol.for("react.suspense_list"),Ne=Symbol.for("react.memo"),ve=Symbol.for("react.lazy"),ye=Symbol.for("react.offscreen"),U=Symbol.iterator;function D(e){return e===null||typeof e!="object"?null:(e=U&&e[U]||e["@@iterator"],typeof e=="function"?e:null)}var I=Object.assign,k;function L(e){if(k===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);k=t&&t[1]||""}return`
|
|
2
|
+
`+k+e}var H=!1;function V(e,t){if(!e||H)return"";H=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(P){var i=P}Reflect.construct(e,[],t)}else{try{t.call()}catch(P){i=P}e.call(t.prototype)}else{try{throw Error()}catch(P){i=P}e()}}catch(P){if(P&&i&&typeof P.stack=="string"){for(var c=P.stack.split(`
|
|
3
|
+
`),d=i.stack.split(`
|
|
4
|
+
`),g=c.length-1,y=d.length-1;1<=g&&0<=y&&c[g]!==d[y];)y--;for(;1<=g&&0<=y;g--,y--)if(c[g]!==d[y]){if(g!==1||y!==1)do if(g--,y--,0>y||c[g]!==d[y]){var C=`
|
|
5
|
+
`+c[g].replace(" at new "," at ");return e.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",e.displayName)),C}while(1<=g&&0<=y);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?L(e):""}function pe(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=V(e.type,!1),e;case 11:return e=V(e.type.render,!1),e;case 1:return e=V(e.type,!0),e;default:return""}}function fe(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 X:return"Fragment";case $:return"Portal";case he:return"Profiler";case K:return"StrictMode";case Q:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ue:return(e.displayName||"Context")+".Consumer";case ee:return(e._context.displayName||"Context")+".Provider";case W:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ne:return t=e.displayName||null,t!==null?t:fe(e.type)||"Memo";case ve:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}function Se(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 fe(t);case 8:return t===K?"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 ke(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function it(e){var t=xe(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var c=n.get,d=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(g){i=""+g,d.call(this,g)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(g){i=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ya(e){e._valueTracker||(e._valueTracker=it(e))}function dc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=xe(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function wa(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 ti(e,t){var n=t.checked;return I({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function uc(e,t){var n=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;n=ke(t.value!=null?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function pc(e,t){t=t.checked,t!=null&&oe(e,"checked",t,!1)}function ri(e,t){pc(e,t);var n=ke(t.value),i=t.type;if(n!=null)i==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ni(e,t.type,n):t.hasOwnProperty("defaultValue")&&ni(e,t.type,ke(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function fc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="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 ni(e,t,n){(t!=="number"||wa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var gn=Array.isArray;function Ir(e,t,n,i){if(e=e.options,t){t={};for(var c=0;c<n.length;c++)t["$"+n[c]]=!0;for(n=0;n<e.length;n++)c=t.hasOwnProperty("$"+e[n].value),e[n].selected!==c&&(e[n].selected=c),c&&i&&(e[n].defaultSelected=!0)}else{for(n=""+ke(n),t=null,c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,i&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function ai(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(o(91));return I({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function hc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(o(92));if(gn(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ke(n)}}function gc(e,t){var n=ke(t.value),i=ke(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),i!=null&&(e.defaultValue=""+i)}function mc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function bc(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function oi(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?bc(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ka,xc=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,i,c){MSApp.execUnsafeLocalFunction(function(){return e(t,n,i,c)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ka=ka||document.createElement("div"),ka.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ka.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function mn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var bn={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},lg=["Webkit","ms","Moz","O"];Object.keys(bn).forEach(function(e){lg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bn[t]=bn[e]})});function vc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||bn.hasOwnProperty(e)&&bn[e]?(""+t).trim():t+"px"}function yc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var i=n.indexOf("--")===0,c=vc(n,t[n],i);n==="float"&&(n="cssFloat"),i?e.setProperty(n,c):e[n]=c}}var cg=I({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 ii(e,t){if(t){if(cg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function si(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 li=null;function ci(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var di=null,Tr=null,Ar=null;function wc(e){if(e=$n(e)){if(typeof di!="function")throw Error(o(280));var t=e.stateNode;t&&(t=Wa(t),di(e.stateNode,e.type,t))}}function kc(e){Tr?Ar?Ar.push(e):Ar=[e]:Tr=e}function jc(){if(Tr){var e=Tr,t=Ar;if(Ar=Tr=null,wc(e),t)for(e=0;e<t.length;e++)wc(t[e])}}function Sc(e,t){return e(t)}function Cc(){}var ui=!1;function Nc(e,t,n){if(ui)return e(t,n);ui=!0;try{return Sc(e,t,n)}finally{ui=!1,(Tr!==null||Ar!==null)&&(Cc(),jc())}}function xn(e,t){var n=e.stateNode;if(n===null)return null;var i=Wa(n);if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var pi=!1;if(h)try{var vn={};Object.defineProperty(vn,"passive",{get:function(){pi=!0}}),window.addEventListener("test",vn,vn),window.removeEventListener("test",vn,vn)}catch{pi=!1}function dg(e,t,n,i,c,d,g,y,C){var P=Array.prototype.slice.call(arguments,3);try{t.apply(n,P)}catch(A){this.onError(A)}}var yn=!1,ja=null,Sa=!1,fi=null,ug={onError:function(e){yn=!0,ja=e}};function pg(e,t,n,i,c,d,g,y,C){yn=!1,ja=null,dg.apply(ug,arguments)}function fg(e,t,n,i,c,d,g,y,C){if(pg.apply(this,arguments),yn){if(yn){var P=ja;yn=!1,ja=null}else throw Error(o(198));Sa||(Sa=!0,fi=P)}}function hr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Ec(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function _c(e){if(hr(e)!==e)throw Error(o(188))}function hg(e){var t=e.alternate;if(!t){if(t=hr(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,i=t;;){var c=n.return;if(c===null)break;var d=c.alternate;if(d===null){if(i=c.return,i!==null){n=i;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===n)return _c(c),e;if(d===i)return _c(c),t;d=d.sibling}throw Error(o(188))}if(n.return!==i.return)n=c,i=d;else{for(var g=!1,y=c.child;y;){if(y===n){g=!0,n=c,i=d;break}if(y===i){g=!0,i=c,n=d;break}y=y.sibling}if(!g){for(y=d.child;y;){if(y===n){g=!0,n=d,i=c;break}if(y===i){g=!0,i=d,n=c;break}y=y.sibling}if(!g)throw Error(o(189))}}if(n.alternate!==i)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function zc(e){return e=hg(e),e!==null?Rc(e):null}function Rc(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Rc(e);if(t!==null)return t;e=e.sibling}return null}var Mc=a.unstable_scheduleCallback,Pc=a.unstable_cancelCallback,gg=a.unstable_shouldYield,mg=a.unstable_requestPaint,Ae=a.unstable_now,bg=a.unstable_getCurrentPriorityLevel,hi=a.unstable_ImmediatePriority,Lc=a.unstable_UserBlockingPriority,Ca=a.unstable_NormalPriority,xg=a.unstable_LowPriority,Dc=a.unstable_IdlePriority,Na=null,Rt=null;function vg(e){if(Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(Na,e,void 0,(e.current.flags&128)===128)}catch{}}var wt=Math.clz32?Math.clz32:kg,yg=Math.log,wg=Math.LN2;function kg(e){return e>>>=0,e===0?32:31-(yg(e)/wg|0)|0}var Ea=64,_a=4194304;function wn(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 za(e,t){var n=e.pendingLanes;if(n===0)return 0;var i=0,c=e.suspendedLanes,d=e.pingedLanes,g=n&268435455;if(g!==0){var y=g&~c;y!==0?i=wn(y):(d&=g,d!==0&&(i=wn(d)))}else g=n&~c,g!==0?i=wn(g):d!==0&&(i=wn(d));if(i===0)return 0;if(t!==0&&t!==i&&(t&c)===0&&(c=i&-i,d=t&-t,c>=d||c===16&&(d&4194240)!==0))return t;if((i&4)!==0&&(i|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0<t;)n=31-wt(t),c=1<<n,i|=e[n],t&=~c;return i}function jg(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Sg(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes;0<d;){var g=31-wt(d),y=1<<g,C=c[g];C===-1?((y&n)===0||(y&i)!==0)&&(c[g]=jg(y,t)):C<=t&&(e.expiredLanes|=y),d&=~y}}function gi(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ic(){var e=Ea;return Ea<<=1,(Ea&4194240)===0&&(Ea=64),e}function mi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function kn(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wt(t),e[t]=n}function Cg(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 i=e.eventTimes;for(e=e.expirationTimes;0<n;){var c=31-wt(n),d=1<<c;t[c]=0,i[c]=-1,e[c]=-1,n&=~d}}function bi(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-wt(n),c=1<<i;c&t|e[i]&t&&(e[i]|=t),n&=~c}}var _e=0;function Tc(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Ac,xi,Oc,$c,Fc,vi=!1,Ra=[],Wt=null,Ht=null,Xt=null,jn=new Map,Sn=new Map,Kt=[],Ng="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Uc(e,t){switch(e){case"focusin":case"focusout":Wt=null;break;case"dragenter":case"dragleave":Ht=null;break;case"mouseover":case"mouseout":Xt=null;break;case"pointerover":case"pointerout":jn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sn.delete(t.pointerId)}}function Cn(e,t,n,i,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:d,targetContainers:[c]},t!==null&&(t=$n(t),t!==null&&xi(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function Eg(e,t,n,i,c){switch(t){case"focusin":return Wt=Cn(Wt,e,t,n,i,c),!0;case"dragenter":return Ht=Cn(Ht,e,t,n,i,c),!0;case"mouseover":return Xt=Cn(Xt,e,t,n,i,c),!0;case"pointerover":var d=c.pointerId;return jn.set(d,Cn(jn.get(d)||null,e,t,n,i,c)),!0;case"gotpointercapture":return d=c.pointerId,Sn.set(d,Cn(Sn.get(d)||null,e,t,n,i,c)),!0}return!1}function qc(e){var t=gr(e.target);if(t!==null){var n=hr(t);if(n!==null){if(t=n.tag,t===13){if(t=Ec(n),t!==null){e.blockedOn=t,Fc(e.priority,function(){Oc(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ma(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=wi(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);li=i,n.target.dispatchEvent(i),li=null}else return t=$n(n),t!==null&&xi(t),e.blockedOn=n,!1;t.shift()}return!0}function Vc(e,t,n){Ma(e)&&n.delete(t)}function _g(){vi=!1,Wt!==null&&Ma(Wt)&&(Wt=null),Ht!==null&&Ma(Ht)&&(Ht=null),Xt!==null&&Ma(Xt)&&(Xt=null),jn.forEach(Vc),Sn.forEach(Vc)}function Nn(e,t){e.blockedOn===t&&(e.blockedOn=null,vi||(vi=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,_g)))}function En(e){function t(c){return Nn(c,e)}if(0<Ra.length){Nn(Ra[0],e);for(var n=1;n<Ra.length;n++){var i=Ra[n];i.blockedOn===e&&(i.blockedOn=null)}}for(Wt!==null&&Nn(Wt,e),Ht!==null&&Nn(Ht,e),Xt!==null&&Nn(Xt,e),jn.forEach(t),Sn.forEach(t),n=0;n<Kt.length;n++)i=Kt[n],i.blockedOn===e&&(i.blockedOn=null);for(;0<Kt.length&&(n=Kt[0],n.blockedOn===null);)qc(n),n.blockedOn===null&&Kt.shift()}var Or=J.ReactCurrentBatchConfig,Pa=!0;function zg(e,t,n,i){var c=_e,d=Or.transition;Or.transition=null;try{_e=1,yi(e,t,n,i)}finally{_e=c,Or.transition=d}}function Rg(e,t,n,i){var c=_e,d=Or.transition;Or.transition=null;try{_e=4,yi(e,t,n,i)}finally{_e=c,Or.transition=d}}function yi(e,t,n,i){if(Pa){var c=wi(e,t,n,i);if(c===null)Oi(e,t,i,La,n),Uc(e,i);else if(Eg(c,e,t,n,i))i.stopPropagation();else if(Uc(e,i),t&4&&-1<Ng.indexOf(e)){for(;c!==null;){var d=$n(c);if(d!==null&&Ac(d),d=wi(e,t,n,i),d===null&&Oi(e,t,i,La,n),d===c)break;c=d}c!==null&&i.stopPropagation()}else Oi(e,t,i,null,n)}}var La=null;function wi(e,t,n,i){if(La=null,e=ci(i),e=gr(e),e!==null)if(t=hr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ec(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return La=e,null}function Bc(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(bg()){case hi:return 1;case Lc:return 4;case Ca:case xg:return 16;case Dc:return 536870912;default:return 16}default:return 16}}var Qt=null,ki=null,Da=null;function Wc(){if(Da)return Da;var e,t=ki,n=t.length,i,c="value"in Qt?Qt.value:Qt.textContent,d=c.length;for(e=0;e<n&&t[e]===c[e];e++);var g=n-e;for(i=1;i<=g&&t[n-i]===c[d-i];i++);return Da=c.slice(e,1<i?1-i:void 0)}function Ia(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ta(){return!0}function Hc(){return!1}function st(e){function t(n,i,c,d,g){this._reactName=n,this._targetInst=c,this.type=i,this.nativeEvent=d,this.target=g,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(d):d[y]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Ta:Hc,this.isPropagationStopped=Hc,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ta)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ta)},persist:function(){},isPersistent:Ta}),t}var $r={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ji=st($r),_n=I({},$r,{view:0,detail:0}),Mg=st(_n),Si,Ci,zn,Aa=I({},_n,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ei,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==zn&&(zn&&e.type==="mousemove"?(Si=e.screenX-zn.screenX,Ci=e.screenY-zn.screenY):Ci=Si=0,zn=e),Si)},movementY:function(e){return"movementY"in e?e.movementY:Ci}}),Xc=st(Aa),Pg=I({},Aa,{dataTransfer:0}),Lg=st(Pg),Dg=I({},_n,{relatedTarget:0}),Ni=st(Dg),Ig=I({},$r,{animationName:0,elapsedTime:0,pseudoElement:0}),Tg=st(Ig),Ag=I({},$r,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Og=st(Ag),$g=I({},$r,{data:0}),Kc=st($g),Fg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ug={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},qg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=qg[e])?!!t[e]:!1}function Ei(){return Vg}var Bg=I({},_n,{key:function(e){if(e.key){var t=Fg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ia(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ug[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ei,charCode:function(e){return e.type==="keypress"?Ia(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ia(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Wg=st(Bg),Hg=I({},Aa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qc=st(Hg),Xg=I({},_n,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ei}),Kg=st(Xg),Qg=I({},$r,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yg=st(Qg),Zg=I({},Aa,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Jg=st(Zg),Gg=[9,13,27,32],_i=h&&"CompositionEvent"in window,Rn=null;h&&"documentMode"in document&&(Rn=document.documentMode);var em=h&&"TextEvent"in window&&!Rn,Yc=h&&(!_i||Rn&&8<Rn&&11>=Rn),Zc=" ",Jc=!1;function Gc(e,t){switch(e){case"keyup":return Gg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ed(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fr=!1;function tm(e,t){switch(e){case"compositionend":return ed(t);case"keypress":return t.which!==32?null:(Jc=!0,Zc);case"textInput":return e=t.data,e===Zc&&Jc?null:e;default:return null}}function rm(e,t){if(Fr)return e==="compositionend"||!_i&&Gc(e,t)?(e=Wc(),Da=ki=Qt=null,Fr=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Yc&&t.locale!=="ko"?null:t.data;default:return null}}var nm={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function td(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!nm[e.type]:t==="textarea"}function rd(e,t,n,i){kc(i),t=qa(t,"onChange"),0<t.length&&(n=new ji("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Mn=null,Pn=null;function am(e){yd(e,0)}function Oa(e){var t=Wr(e);if(dc(t))return e}function om(e,t){if(e==="change")return t}var nd=!1;if(h){var zi;if(h){var Ri="oninput"in document;if(!Ri){var ad=document.createElement("div");ad.setAttribute("oninput","return;"),Ri=typeof ad.oninput=="function"}zi=Ri}else zi=!1;nd=zi&&(!document.documentMode||9<document.documentMode)}function od(){Mn&&(Mn.detachEvent("onpropertychange",id),Pn=Mn=null)}function id(e){if(e.propertyName==="value"&&Oa(Pn)){var t=[];rd(t,Pn,e,ci(e)),Nc(am,t)}}function im(e,t,n){e==="focusin"?(od(),Mn=t,Pn=n,Mn.attachEvent("onpropertychange",id)):e==="focusout"&&od()}function sm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Oa(Pn)}function lm(e,t){if(e==="click")return Oa(t)}function cm(e,t){if(e==="input"||e==="change")return Oa(t)}function dm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kt=typeof Object.is=="function"?Object.is:dm;function Ln(e,t){if(kt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var c=n[i];if(!m.call(t,c)||!kt(e[c],t[c]))return!1}return!0}function sd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ld(e,t){var n=sd(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=sd(n)}}function cd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function dd(){for(var e=window,t=wa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=wa(e.document)}return t}function Mi(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 um(e){var t=dd(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&cd(n.ownerDocument.documentElement,n)){if(i!==null&&Mi(n)){if(t=i.start,e=i.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 c=n.textContent.length,d=Math.min(i.start,c);i=i.end===void 0?d:Math.min(i.end,c),!e.extend&&d>i&&(c=i,i=d,d=c),c=ld(n,d);var g=ld(n,i);c&&g&&(e.rangeCount!==1||e.anchorNode!==c.node||e.anchorOffset!==c.offset||e.focusNode!==g.node||e.focusOffset!==g.offset)&&(t=t.createRange(),t.setStart(c.node,c.offset),e.removeAllRanges(),d>i?(e.addRange(t),e.extend(g.node,g.offset)):(t.setEnd(g.node,g.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<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var pm=h&&"documentMode"in document&&11>=document.documentMode,Ur=null,Pi=null,Dn=null,Li=!1;function ud(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Li||Ur==null||Ur!==wa(i)||(i=Ur,"selectionStart"in i&&Mi(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Dn&&Ln(Dn,i)||(Dn=i,i=qa(Pi,"onSelect"),0<i.length&&(t=new ji("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=Ur)))}function $a(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var qr={animationend:$a("Animation","AnimationEnd"),animationiteration:$a("Animation","AnimationIteration"),animationstart:$a("Animation","AnimationStart"),transitionend:$a("Transition","TransitionEnd")},Di={},pd={};h&&(pd=document.createElement("div").style,"AnimationEvent"in window||(delete qr.animationend.animation,delete qr.animationiteration.animation,delete qr.animationstart.animation),"TransitionEvent"in window||delete qr.transitionend.transition);function Fa(e){if(Di[e])return Di[e];if(!qr[e])return e;var t=qr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in pd)return Di[e]=t[n];return e}var fd=Fa("animationend"),hd=Fa("animationiteration"),gd=Fa("animationstart"),md=Fa("transitionend"),bd=new Map,xd="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Yt(e,t){bd.set(e,t),p(t,[e])}for(var Ii=0;Ii<xd.length;Ii++){var Ti=xd[Ii],fm=Ti.toLowerCase(),hm=Ti[0].toUpperCase()+Ti.slice(1);Yt(fm,"on"+hm)}Yt(fd,"onAnimationEnd"),Yt(hd,"onAnimationIteration"),Yt(gd,"onAnimationStart"),Yt("dblclick","onDoubleClick"),Yt("focusin","onFocus"),Yt("focusout","onBlur"),Yt(md,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),p("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),p("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),p("onBeforeInput",["compositionend","keypress","textInput","paste"]),p("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var In="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),gm=new Set("cancel close invalid load scroll toggle".split(" ").concat(In));function vd(e,t,n){var i=e.type||"unknown-event";e.currentTarget=n,fg(i,t,void 0,e),e.currentTarget=null}function yd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],c=i.event;i=i.listeners;e:{var d=void 0;if(t)for(var g=i.length-1;0<=g;g--){var y=i[g],C=y.instance,P=y.currentTarget;if(y=y.listener,C!==d&&c.isPropagationStopped())break e;vd(c,y,P),d=C}else for(g=0;g<i.length;g++){if(y=i[g],C=y.instance,P=y.currentTarget,y=y.listener,C!==d&&c.isPropagationStopped())break e;vd(c,y,P),d=C}}}if(Sa)throw e=fi,Sa=!1,fi=null,e}function Re(e,t){var n=t[Bi];n===void 0&&(n=t[Bi]=new Set);var i=e+"__bubble";n.has(i)||(wd(t,e,2,!1),n.add(i))}function Ai(e,t,n){var i=0;t&&(i|=4),wd(n,e,i,t)}var Ua="_reactListening"+Math.random().toString(36).slice(2);function Tn(e){if(!e[Ua]){e[Ua]=!0,s.forEach(function(n){n!=="selectionchange"&&(gm.has(n)||Ai(n,!1,e),Ai(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ua]||(t[Ua]=!0,Ai("selectionchange",!1,t))}}function wd(e,t,n,i){switch(Bc(t)){case 1:var c=zg;break;case 4:c=Rg;break;default:c=yi}n=c.bind(null,t,n,e),c=void 0,!pi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),i?c!==void 0?e.addEventListener(t,n,{capture:!0,passive:c}):e.addEventListener(t,n,!0):c!==void 0?e.addEventListener(t,n,{passive:c}):e.addEventListener(t,n,!1)}function Oi(e,t,n,i,c){var d=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var g=i.tag;if(g===3||g===4){var y=i.stateNode.containerInfo;if(y===c||y.nodeType===8&&y.parentNode===c)break;if(g===4)for(g=i.return;g!==null;){var C=g.tag;if((C===3||C===4)&&(C=g.stateNode.containerInfo,C===c||C.nodeType===8&&C.parentNode===c))return;g=g.return}for(;y!==null;){if(g=gr(y),g===null)return;if(C=g.tag,C===5||C===6){i=d=g;continue e}y=y.parentNode}}i=i.return}Nc(function(){var P=d,A=ci(n),O=[];e:{var T=bd.get(e);if(T!==void 0){var Y=ji,re=e;switch(e){case"keypress":if(Ia(n)===0)break e;case"keydown":case"keyup":Y=Wg;break;case"focusin":re="focus",Y=Ni;break;case"focusout":re="blur",Y=Ni;break;case"beforeblur":case"afterblur":Y=Ni;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=Xc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=Lg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=Kg;break;case fd:case hd:case gd:Y=Tg;break;case md:Y=Yg;break;case"scroll":Y=Mg;break;case"wheel":Y=Jg;break;case"copy":case"cut":case"paste":Y=Og;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=Qc}var ae=(t&4)!==0,Oe=!ae&&e==="scroll",z=ae?T!==null?T+"Capture":null:T;ae=[];for(var N=P,R;N!==null;){R=N;var q=R.stateNode;if(R.tag===5&&q!==null&&(R=q,z!==null&&(q=xn(N,z),q!=null&&ae.push(An(N,q,R)))),Oe)break;N=N.return}0<ae.length&&(T=new Y(T,re,null,n,A),O.push({event:T,listeners:ae}))}}if((t&7)===0){e:{if(T=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",T&&n!==li&&(re=n.relatedTarget||n.fromElement)&&(gr(re)||re[It]))break e;if((Y||T)&&(T=A.window===A?A:(T=A.ownerDocument)?T.defaultView||T.parentWindow:window,Y?(re=n.relatedTarget||n.toElement,Y=P,re=re?gr(re):null,re!==null&&(Oe=hr(re),re!==Oe||re.tag!==5&&re.tag!==6)&&(re=null)):(Y=null,re=P),Y!==re)){if(ae=Xc,q="onMouseLeave",z="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(ae=Qc,q="onPointerLeave",z="onPointerEnter",N="pointer"),Oe=Y==null?T:Wr(Y),R=re==null?T:Wr(re),T=new ae(q,N+"leave",Y,n,A),T.target=Oe,T.relatedTarget=R,q=null,gr(A)===P&&(ae=new ae(z,N+"enter",re,n,A),ae.target=R,ae.relatedTarget=Oe,q=ae),Oe=q,Y&&re)t:{for(ae=Y,z=re,N=0,R=ae;R;R=Vr(R))N++;for(R=0,q=z;q;q=Vr(q))R++;for(;0<N-R;)ae=Vr(ae),N--;for(;0<R-N;)z=Vr(z),R--;for(;N--;){if(ae===z||z!==null&&ae===z.alternate)break t;ae=Vr(ae),z=Vr(z)}ae=null}else ae=null;Y!==null&&kd(O,T,Y,ae,!1),re!==null&&Oe!==null&&kd(O,Oe,re,ae,!0)}}e:{if(T=P?Wr(P):window,Y=T.nodeName&&T.nodeName.toLowerCase(),Y==="select"||Y==="input"&&T.type==="file")var ie=om;else if(td(T))if(nd)ie=cm;else{ie=sm;var ce=im}else(Y=T.nodeName)&&Y.toLowerCase()==="input"&&(T.type==="checkbox"||T.type==="radio")&&(ie=lm);if(ie&&(ie=ie(e,P))){rd(O,ie,n,A);break e}ce&&ce(e,T,P),e==="focusout"&&(ce=T._wrapperState)&&ce.controlled&&T.type==="number"&&ni(T,"number",T.value)}switch(ce=P?Wr(P):window,e){case"focusin":(td(ce)||ce.contentEditable==="true")&&(Ur=ce,Pi=P,Dn=null);break;case"focusout":Dn=Pi=Ur=null;break;case"mousedown":Li=!0;break;case"contextmenu":case"mouseup":case"dragend":Li=!1,ud(O,n,A);break;case"selectionchange":if(pm)break;case"keydown":case"keyup":ud(O,n,A)}var de;if(_i)e:{switch(e){case"compositionstart":var ge="onCompositionStart";break e;case"compositionend":ge="onCompositionEnd";break e;case"compositionupdate":ge="onCompositionUpdate";break e}ge=void 0}else Fr?Gc(e,n)&&(ge="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ge="onCompositionStart");ge&&(Yc&&n.locale!=="ko"&&(Fr||ge!=="onCompositionStart"?ge==="onCompositionEnd"&&Fr&&(de=Wc()):(Qt=A,ki="value"in Qt?Qt.value:Qt.textContent,Fr=!0)),ce=qa(P,ge),0<ce.length&&(ge=new Kc(ge,e,null,n,A),O.push({event:ge,listeners:ce}),de?ge.data=de:(de=ed(n),de!==null&&(ge.data=de)))),(de=em?tm(e,n):rm(e,n))&&(P=qa(P,"onBeforeInput"),0<P.length&&(A=new Kc("onBeforeInput","beforeinput",null,n,A),O.push({event:A,listeners:P}),A.data=de))}yd(O,t)})}function An(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qa(e,t){for(var n=t+"Capture",i=[];e!==null;){var c=e,d=c.stateNode;c.tag===5&&d!==null&&(c=d,d=xn(e,n),d!=null&&i.unshift(An(e,d,c)),d=xn(e,t),d!=null&&i.push(An(e,d,c))),e=e.return}return i}function Vr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function kd(e,t,n,i,c){for(var d=t._reactName,g=[];n!==null&&n!==i;){var y=n,C=y.alternate,P=y.stateNode;if(C!==null&&C===i)break;y.tag===5&&P!==null&&(y=P,c?(C=xn(n,d),C!=null&&g.unshift(An(n,C,y))):c||(C=xn(n,d),C!=null&&g.push(An(n,C,y)))),n=n.return}g.length!==0&&e.push({event:t,listeners:g})}var mm=/\r\n?/g,bm=/\u0000|\uFFFD/g;function jd(e){return(typeof e=="string"?e:""+e).replace(mm,`
|
|
6
|
+
`).replace(bm,"")}function Va(e,t,n){if(t=jd(t),jd(e)!==t&&n)throw Error(o(425))}function Ba(){}var $i=null,Fi=null;function Ui(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var qi=typeof setTimeout=="function"?setTimeout:void 0,xm=typeof clearTimeout=="function"?clearTimeout:void 0,Sd=typeof Promise=="function"?Promise:void 0,vm=typeof queueMicrotask=="function"?queueMicrotask:typeof Sd<"u"?function(e){return Sd.resolve(null).then(e).catch(ym)}:qi;function ym(e){setTimeout(function(){throw e})}function Vi(e,t){var n=t,i=0;do{var c=n.nextSibling;if(e.removeChild(n),c&&c.nodeType===8)if(n=c.data,n==="/$"){if(i===0){e.removeChild(c),En(t);return}i--}else n!=="$"&&n!=="$?"&&n!=="$!"||i++;n=c}while(n);En(t)}function Zt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Cd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Br=Math.random().toString(36).slice(2),Mt="__reactFiber$"+Br,On="__reactProps$"+Br,It="__reactContainer$"+Br,Bi="__reactEvents$"+Br,wm="__reactListeners$"+Br,km="__reactHandles$"+Br;function gr(e){var t=e[Mt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[It]||n[Mt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Cd(e);e!==null;){if(n=e[Mt])return n;e=Cd(e)}return t}e=n,n=e.parentNode}return null}function $n(e){return e=e[Mt]||e[It],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Wr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(o(33))}function Wa(e){return e[On]||null}var Wi=[],Hr=-1;function Jt(e){return{current:e}}function Me(e){0>Hr||(e.current=Wi[Hr],Wi[Hr]=null,Hr--)}function ze(e,t){Hr++,Wi[Hr]=e.current,e.current=t}var Gt={},Xe=Jt(Gt),et=Jt(!1),mr=Gt;function Xr(e,t){var n=e.type.contextTypes;if(!n)return Gt;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var c={},d;for(d in n)c[d]=t[d];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=c),c}function tt(e){return e=e.childContextTypes,e!=null}function Ha(){Me(et),Me(Xe)}function Nd(e,t,n){if(Xe.current!==Gt)throw Error(o(168));ze(Xe,t),ze(et,n)}function Ed(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var c in i)if(!(c in t))throw Error(o(108,Se(e)||"Unknown",c));return I({},n,i)}function Xa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gt,mr=Xe.current,ze(Xe,e),ze(et,et.current),!0}function _d(e,t,n){var i=e.stateNode;if(!i)throw Error(o(169));n?(e=Ed(e,t,mr),i.__reactInternalMemoizedMergedChildContext=e,Me(et),Me(Xe),ze(Xe,e)):Me(et),ze(et,n)}var Tt=null,Ka=!1,Hi=!1;function zd(e){Tt===null?Tt=[e]:Tt.push(e)}function jm(e){Ka=!0,zd(e)}function er(){if(!Hi&&Tt!==null){Hi=!0;var e=0,t=_e;try{var n=Tt;for(_e=1;e<n.length;e++){var i=n[e];do i=i(!0);while(i!==null)}Tt=null,Ka=!1}catch(c){throw Tt!==null&&(Tt=Tt.slice(e+1)),Mc(hi,er),c}finally{_e=t,Hi=!1}}return null}var Kr=[],Qr=0,Qa=null,Ya=0,ft=[],ht=0,br=null,At=1,Ot="";function xr(e,t){Kr[Qr++]=Ya,Kr[Qr++]=Qa,Qa=e,Ya=t}function Rd(e,t,n){ft[ht++]=At,ft[ht++]=Ot,ft[ht++]=br,br=e;var i=At;e=Ot;var c=32-wt(i)-1;i&=~(1<<c),n+=1;var d=32-wt(t)+c;if(30<d){var g=c-c%5;d=(i&(1<<g)-1).toString(32),i>>=g,c-=g,At=1<<32-wt(t)+c|n<<c|i,Ot=d+e}else At=1<<d|n<<c|i,Ot=e}function Xi(e){e.return!==null&&(xr(e,1),Rd(e,1,0))}function Ki(e){for(;e===Qa;)Qa=Kr[--Qr],Kr[Qr]=null,Ya=Kr[--Qr],Kr[Qr]=null;for(;e===br;)br=ft[--ht],ft[ht]=null,Ot=ft[--ht],ft[ht]=null,At=ft[--ht],ft[ht]=null}var lt=null,ct=null,Le=!1,jt=null;function Md(e,t){var n=xt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Pd(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,lt=e,ct=Zt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,lt=e,ct=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=br!==null?{id:At,overflow:Ot}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=xt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,lt=e,ct=null,!0):!1;default:return!1}}function Qi(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Yi(e){if(Le){var t=ct;if(t){var n=t;if(!Pd(e,t)){if(Qi(e))throw Error(o(418));t=Zt(n.nextSibling);var i=lt;t&&Pd(e,t)?Md(i,n):(e.flags=e.flags&-4097|2,Le=!1,lt=e)}}else{if(Qi(e))throw Error(o(418));e.flags=e.flags&-4097|2,Le=!1,lt=e}}}function Ld(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;lt=e}function Za(e){if(e!==lt)return!1;if(!Le)return Ld(e),Le=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ui(e.type,e.memoizedProps)),t&&(t=ct)){if(Qi(e))throw Dd(),Error(o(418));for(;t;)Md(e,t),t=Zt(t.nextSibling)}if(Ld(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ct=Zt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ct=null}}else ct=lt?Zt(e.stateNode.nextSibling):null;return!0}function Dd(){for(var e=ct;e;)e=Zt(e.nextSibling)}function Yr(){ct=lt=null,Le=!1}function Zi(e){jt===null?jt=[e]:jt.push(e)}var Sm=J.ReactCurrentBatchConfig;function Fn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(o(309));var i=n.stateNode}if(!i)throw Error(o(147,e));var c=i,d=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===d?t.ref:(t=function(g){var y=c.refs;g===null?delete y[d]:y[d]=g},t._stringRef=d,t)}if(typeof e!="string")throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Ja(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Id(e){var t=e._init;return t(e._payload)}function Td(e){function t(z,N){if(e){var R=z.deletions;R===null?(z.deletions=[N],z.flags|=16):R.push(N)}}function n(z,N){if(!e)return null;for(;N!==null;)t(z,N),N=N.sibling;return null}function i(z,N){for(z=new Map;N!==null;)N.key!==null?z.set(N.key,N):z.set(N.index,N),N=N.sibling;return z}function c(z,N){return z=lr(z,N),z.index=0,z.sibling=null,z}function d(z,N,R){return z.index=R,e?(R=z.alternate,R!==null?(R=R.index,R<N?(z.flags|=2,N):R):(z.flags|=2,N)):(z.flags|=1048576,N)}function g(z){return e&&z.alternate===null&&(z.flags|=2),z}function y(z,N,R,q){return N===null||N.tag!==6?(N=Us(R,z.mode,q),N.return=z,N):(N=c(N,R),N.return=z,N)}function C(z,N,R,q){var ie=R.type;return ie===X?A(z,N,R.props.children,q,R.key):N!==null&&(N.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===ve&&Id(ie)===N.type)?(q=c(N,R.props),q.ref=Fn(z,N,R),q.return=z,q):(q=jo(R.type,R.key,R.props,null,z.mode,q),q.ref=Fn(z,N,R),q.return=z,q)}function P(z,N,R,q){return N===null||N.tag!==4||N.stateNode.containerInfo!==R.containerInfo||N.stateNode.implementation!==R.implementation?(N=qs(R,z.mode,q),N.return=z,N):(N=c(N,R.children||[]),N.return=z,N)}function A(z,N,R,q,ie){return N===null||N.tag!==7?(N=Nr(R,z.mode,q,ie),N.return=z,N):(N=c(N,R),N.return=z,N)}function O(z,N,R){if(typeof N=="string"&&N!==""||typeof N=="number")return N=Us(""+N,z.mode,R),N.return=z,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case ne:return R=jo(N.type,N.key,N.props,null,z.mode,R),R.ref=Fn(z,null,N),R.return=z,R;case $:return N=qs(N,z.mode,R),N.return=z,N;case ve:var q=N._init;return O(z,q(N._payload),R)}if(gn(N)||D(N))return N=Nr(N,z.mode,R,null),N.return=z,N;Ja(z,N)}return null}function T(z,N,R,q){var ie=N!==null?N.key:null;if(typeof R=="string"&&R!==""||typeof R=="number")return ie!==null?null:y(z,N,""+R,q);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case ne:return R.key===ie?C(z,N,R,q):null;case $:return R.key===ie?P(z,N,R,q):null;case ve:return ie=R._init,T(z,N,ie(R._payload),q)}if(gn(R)||D(R))return ie!==null?null:A(z,N,R,q,null);Ja(z,R)}return null}function Y(z,N,R,q,ie){if(typeof q=="string"&&q!==""||typeof q=="number")return z=z.get(R)||null,y(N,z,""+q,ie);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case ne:return z=z.get(q.key===null?R:q.key)||null,C(N,z,q,ie);case $:return z=z.get(q.key===null?R:q.key)||null,P(N,z,q,ie);case ve:var ce=q._init;return Y(z,N,R,ce(q._payload),ie)}if(gn(q)||D(q))return z=z.get(R)||null,A(N,z,q,ie,null);Ja(N,q)}return null}function re(z,N,R,q){for(var ie=null,ce=null,de=N,ge=N=0,Be=null;de!==null&&ge<R.length;ge++){de.index>ge?(Be=de,de=null):Be=de.sibling;var Ee=T(z,de,R[ge],q);if(Ee===null){de===null&&(de=Be);break}e&&de&&Ee.alternate===null&&t(z,de),N=d(Ee,N,ge),ce===null?ie=Ee:ce.sibling=Ee,ce=Ee,de=Be}if(ge===R.length)return n(z,de),Le&&xr(z,ge),ie;if(de===null){for(;ge<R.length;ge++)de=O(z,R[ge],q),de!==null&&(N=d(de,N,ge),ce===null?ie=de:ce.sibling=de,ce=de);return Le&&xr(z,ge),ie}for(de=i(z,de);ge<R.length;ge++)Be=Y(de,z,ge,R[ge],q),Be!==null&&(e&&Be.alternate!==null&&de.delete(Be.key===null?ge:Be.key),N=d(Be,N,ge),ce===null?ie=Be:ce.sibling=Be,ce=Be);return e&&de.forEach(function(cr){return t(z,cr)}),Le&&xr(z,ge),ie}function ae(z,N,R,q){var ie=D(R);if(typeof ie!="function")throw Error(o(150));if(R=ie.call(R),R==null)throw Error(o(151));for(var ce=ie=null,de=N,ge=N=0,Be=null,Ee=R.next();de!==null&&!Ee.done;ge++,Ee=R.next()){de.index>ge?(Be=de,de=null):Be=de.sibling;var cr=T(z,de,Ee.value,q);if(cr===null){de===null&&(de=Be);break}e&&de&&cr.alternate===null&&t(z,de),N=d(cr,N,ge),ce===null?ie=cr:ce.sibling=cr,ce=cr,de=Be}if(Ee.done)return n(z,de),Le&&xr(z,ge),ie;if(de===null){for(;!Ee.done;ge++,Ee=R.next())Ee=O(z,Ee.value,q),Ee!==null&&(N=d(Ee,N,ge),ce===null?ie=Ee:ce.sibling=Ee,ce=Ee);return Le&&xr(z,ge),ie}for(de=i(z,de);!Ee.done;ge++,Ee=R.next())Ee=Y(de,z,ge,Ee.value,q),Ee!==null&&(e&&Ee.alternate!==null&&de.delete(Ee.key===null?ge:Ee.key),N=d(Ee,N,ge),ce===null?ie=Ee:ce.sibling=Ee,ce=Ee);return e&&de.forEach(function(nb){return t(z,nb)}),Le&&xr(z,ge),ie}function Oe(z,N,R,q){if(typeof R=="object"&&R!==null&&R.type===X&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case ne:e:{for(var ie=R.key,ce=N;ce!==null;){if(ce.key===ie){if(ie=R.type,ie===X){if(ce.tag===7){n(z,ce.sibling),N=c(ce,R.props.children),N.return=z,z=N;break e}}else if(ce.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===ve&&Id(ie)===ce.type){n(z,ce.sibling),N=c(ce,R.props),N.ref=Fn(z,ce,R),N.return=z,z=N;break e}n(z,ce);break}else t(z,ce);ce=ce.sibling}R.type===X?(N=Nr(R.props.children,z.mode,q,R.key),N.return=z,z=N):(q=jo(R.type,R.key,R.props,null,z.mode,q),q.ref=Fn(z,N,R),q.return=z,z=q)}return g(z);case $:e:{for(ce=R.key;N!==null;){if(N.key===ce)if(N.tag===4&&N.stateNode.containerInfo===R.containerInfo&&N.stateNode.implementation===R.implementation){n(z,N.sibling),N=c(N,R.children||[]),N.return=z,z=N;break e}else{n(z,N);break}else t(z,N);N=N.sibling}N=qs(R,z.mode,q),N.return=z,z=N}return g(z);case ve:return ce=R._init,Oe(z,N,ce(R._payload),q)}if(gn(R))return re(z,N,R,q);if(D(R))return ae(z,N,R,q);Ja(z,R)}return typeof R=="string"&&R!==""||typeof R=="number"?(R=""+R,N!==null&&N.tag===6?(n(z,N.sibling),N=c(N,R),N.return=z,z=N):(n(z,N),N=Us(R,z.mode,q),N.return=z,z=N),g(z)):n(z,N)}return Oe}var Zr=Td(!0),Ad=Td(!1),Ga=Jt(null),eo=null,Jr=null,Ji=null;function Gi(){Ji=Jr=eo=null}function es(e){var t=Ga.current;Me(Ga),e._currentValue=t}function ts(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Gr(e,t){eo=e,Ji=Jr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(rt=!0),e.firstContext=null)}function gt(e){var t=e._currentValue;if(Ji!==e)if(e={context:e,memoizedValue:t,next:null},Jr===null){if(eo===null)throw Error(o(308));Jr=e,eo.dependencies={lanes:0,firstContext:e}}else Jr=Jr.next=e;return t}var vr=null;function rs(e){vr===null?vr=[e]:vr.push(e)}function Od(e,t,n,i){var c=t.interleaved;return c===null?(n.next=n,rs(t)):(n.next=c.next,c.next=n),t.interleaved=n,$t(e,i)}function $t(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var tr=!1;function ns(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $d(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ft(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function rr(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Ce&2)!==0){var c=i.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),i.pending=t,$t(e,n)}return c=i.interleaved,c===null?(t.next=t,rs(i)):(t.next=c.next,c.next=t),i.interleaved=t,$t(e,n)}function to(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,bi(e,n)}}function Fd(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var c=null,d=null;if(n=n.firstBaseUpdate,n!==null){do{var g={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};d===null?c=d=g:d=d.next=g,n=n.next}while(n!==null);d===null?c=d=t:d=d.next=t}else c=d=t;n={baseState:i.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:i.shared,effects:i.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ro(e,t,n,i){var c=e.updateQueue;tr=!1;var d=c.firstBaseUpdate,g=c.lastBaseUpdate,y=c.shared.pending;if(y!==null){c.shared.pending=null;var C=y,P=C.next;C.next=null,g===null?d=P:g.next=P,g=C;var A=e.alternate;A!==null&&(A=A.updateQueue,y=A.lastBaseUpdate,y!==g&&(y===null?A.firstBaseUpdate=P:y.next=P,A.lastBaseUpdate=C))}if(d!==null){var O=c.baseState;g=0,A=P=C=null,y=d;do{var T=y.lane,Y=y.eventTime;if((i&T)===T){A!==null&&(A=A.next={eventTime:Y,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null});e:{var re=e,ae=y;switch(T=t,Y=n,ae.tag){case 1:if(re=ae.payload,typeof re=="function"){O=re.call(Y,O,T);break e}O=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=ae.payload,T=typeof re=="function"?re.call(Y,O,T):re,T==null)break e;O=I({},O,T);break e;case 2:tr=!0}}y.callback!==null&&y.lane!==0&&(e.flags|=64,T=c.effects,T===null?c.effects=[y]:T.push(y))}else Y={eventTime:Y,lane:T,tag:y.tag,payload:y.payload,callback:y.callback,next:null},A===null?(P=A=Y,C=O):A=A.next=Y,g|=T;if(y=y.next,y===null){if(y=c.shared.pending,y===null)break;T=y,y=T.next,T.next=null,c.lastBaseUpdate=T,c.shared.pending=null}}while(!0);if(A===null&&(C=O),c.baseState=C,c.firstBaseUpdate=P,c.lastBaseUpdate=A,t=c.shared.interleaved,t!==null){c=t;do g|=c.lane,c=c.next;while(c!==t)}else d===null&&(c.shared.lanes=0);kr|=g,e.lanes=g,e.memoizedState=O}}function Ud(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],c=i.callback;if(c!==null){if(i.callback=null,i=n,typeof c!="function")throw Error(o(191,c));c.call(i)}}}var Un={},Pt=Jt(Un),qn=Jt(Un),Vn=Jt(Un);function yr(e){if(e===Un)throw Error(o(174));return e}function as(e,t){switch(ze(Vn,t),ze(qn,e),ze(Pt,Un),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:oi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=oi(t,e)}Me(Pt),ze(Pt,t)}function en(){Me(Pt),Me(qn),Me(Vn)}function qd(e){yr(Vn.current);var t=yr(Pt.current),n=oi(t,e.type);t!==n&&(ze(qn,e),ze(Pt,n))}function os(e){qn.current===e&&(Me(Pt),Me(qn))}var De=Jt(0);function no(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)!==0)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 is=[];function ss(){for(var e=0;e<is.length;e++)is[e]._workInProgressVersionPrimary=null;is.length=0}var ao=J.ReactCurrentDispatcher,ls=J.ReactCurrentBatchConfig,wr=0,Ie=null,Fe=null,qe=null,oo=!1,Bn=!1,Wn=0,Cm=0;function Ke(){throw Error(o(321))}function cs(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!kt(e[n],t[n]))return!1;return!0}function ds(e,t,n,i,c,d){if(wr=d,Ie=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ao.current=e===null||e.memoizedState===null?zm:Rm,e=n(i,c),Bn){d=0;do{if(Bn=!1,Wn=0,25<=d)throw Error(o(301));d+=1,qe=Fe=null,t.updateQueue=null,ao.current=Mm,e=n(i,c)}while(Bn)}if(ao.current=lo,t=Fe!==null&&Fe.next!==null,wr=0,qe=Fe=Ie=null,oo=!1,t)throw Error(o(300));return e}function us(){var e=Wn!==0;return Wn=0,e}function Lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qe===null?Ie.memoizedState=qe=e:qe=qe.next=e,qe}function mt(){if(Fe===null){var e=Ie.alternate;e=e!==null?e.memoizedState:null}else e=Fe.next;var t=qe===null?Ie.memoizedState:qe.next;if(t!==null)qe=t,Fe=e;else{if(e===null)throw Error(o(310));Fe=e,e={memoizedState:Fe.memoizedState,baseState:Fe.baseState,baseQueue:Fe.baseQueue,queue:Fe.queue,next:null},qe===null?Ie.memoizedState=qe=e:qe=qe.next=e}return qe}function Hn(e,t){return typeof t=="function"?t(e):t}function ps(e){var t=mt(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var i=Fe,c=i.baseQueue,d=n.pending;if(d!==null){if(c!==null){var g=c.next;c.next=d.next,d.next=g}i.baseQueue=c=d,n.pending=null}if(c!==null){d=c.next,i=i.baseState;var y=g=null,C=null,P=d;do{var A=P.lane;if((wr&A)===A)C!==null&&(C=C.next={lane:0,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null}),i=P.hasEagerState?P.eagerState:e(i,P.action);else{var O={lane:A,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null};C===null?(y=C=O,g=i):C=C.next=O,Ie.lanes|=A,kr|=A}P=P.next}while(P!==null&&P!==d);C===null?g=i:C.next=y,kt(i,t.memoizedState)||(rt=!0),t.memoizedState=i,t.baseState=g,t.baseQueue=C,n.lastRenderedState=i}if(e=n.interleaved,e!==null){c=e;do d=c.lane,Ie.lanes|=d,kr|=d,c=c.next;while(c!==e)}else c===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function fs(e){var t=mt(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var i=n.dispatch,c=n.pending,d=t.memoizedState;if(c!==null){n.pending=null;var g=c=c.next;do d=e(d,g.action),g=g.next;while(g!==c);kt(d,t.memoizedState)||(rt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),n.lastRenderedState=d}return[d,i]}function Vd(){}function Bd(e,t){var n=Ie,i=mt(),c=t(),d=!kt(i.memoizedState,c);if(d&&(i.memoizedState=c,rt=!0),i=i.queue,hs(Xd.bind(null,n,i,e),[e]),i.getSnapshot!==t||d||qe!==null&&qe.memoizedState.tag&1){if(n.flags|=2048,Xn(9,Hd.bind(null,n,i,c,t),void 0,null),Ve===null)throw Error(o(349));(wr&30)!==0||Wd(n,t,c)}return c}function Wd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ie.updateQueue,t===null?(t={lastEffect:null,stores:null},Ie.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Hd(e,t,n,i){t.value=n,t.getSnapshot=i,Kd(t)&&Qd(e)}function Xd(e,t,n){return n(function(){Kd(t)&&Qd(e)})}function Kd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!kt(e,n)}catch{return!0}}function Qd(e){var t=$t(e,1);t!==null&&Et(t,e,1,-1)}function Yd(e){var t=Lt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Hn,lastRenderedState:e},t.queue=e,e=e.dispatch=_m.bind(null,Ie,e),[t.memoizedState,e]}function Xn(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},t=Ie.updateQueue,t===null?(t={lastEffect:null,stores:null},Ie.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e)),e}function Zd(){return mt().memoizedState}function io(e,t,n,i){var c=Lt();Ie.flags|=e,c.memoizedState=Xn(1|t,n,void 0,i===void 0?null:i)}function so(e,t,n,i){var c=mt();i=i===void 0?null:i;var d=void 0;if(Fe!==null){var g=Fe.memoizedState;if(d=g.destroy,i!==null&&cs(i,g.deps)){c.memoizedState=Xn(t,n,d,i);return}}Ie.flags|=e,c.memoizedState=Xn(1|t,n,d,i)}function Jd(e,t){return io(8390656,8,e,t)}function hs(e,t){return so(2048,8,e,t)}function Gd(e,t){return so(4,2,e,t)}function eu(e,t){return so(4,4,e,t)}function tu(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ru(e,t,n){return n=n!=null?n.concat([e]):null,so(4,4,tu.bind(null,t,e),n)}function gs(){}function nu(e,t){var n=mt();t=t===void 0?null:t;var i=n.memoizedState;return i!==null&&t!==null&&cs(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function au(e,t){var n=mt();t=t===void 0?null:t;var i=n.memoizedState;return i!==null&&t!==null&&cs(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)}function ou(e,t,n){return(wr&21)===0?(e.baseState&&(e.baseState=!1,rt=!0),e.memoizedState=n):(kt(n,t)||(n=Ic(),Ie.lanes|=n,kr|=n,e.baseState=!0),t)}function Nm(e,t){var n=_e;_e=n!==0&&4>n?n:4,e(!0);var i=ls.transition;ls.transition={};try{e(!1),t()}finally{_e=n,ls.transition=i}}function iu(){return mt().memoizedState}function Em(e,t,n){var i=ir(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},su(e))lu(t,n);else if(n=Od(e,t,n,i),n!==null){var c=Je();Et(n,e,i,c),cu(n,t,i)}}function _m(e,t,n){var i=ir(e),c={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(su(e))lu(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var g=t.lastRenderedState,y=d(g,n);if(c.hasEagerState=!0,c.eagerState=y,kt(y,g)){var C=t.interleaved;C===null?(c.next=c,rs(t)):(c.next=C.next,C.next=c),t.interleaved=c;return}}catch{}n=Od(e,t,c,i),n!==null&&(c=Je(),Et(n,e,i,c),cu(n,t,i))}}function su(e){var t=e.alternate;return e===Ie||t!==null&&t===Ie}function lu(e,t){Bn=oo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cu(e,t,n){if((n&4194240)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,bi(e,n)}}var lo={readContext:gt,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useInsertionEffect:Ke,useLayoutEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useMutableSource:Ke,useSyncExternalStore:Ke,useId:Ke,unstable_isNewReconciler:!1},zm={readContext:gt,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:Jd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,io(4194308,4,tu.bind(null,t,e),n)},useLayoutEffect:function(e,t){return io(4194308,4,e,t)},useInsertionEffect:function(e,t){return io(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 i=Lt();return t=n!==void 0?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=Em.bind(null,Ie,e),[i.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:Yd,useDebugValue:gs,useDeferredValue:function(e){return Lt().memoizedState=e},useTransition:function(){var e=Yd(!1),t=e[0];return e=Nm.bind(null,e[1]),Lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=Ie,c=Lt();if(Le){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Ve===null)throw Error(o(349));(wr&30)!==0||Wd(i,t,n)}c.memoizedState=n;var d={value:n,getSnapshot:t};return c.queue=d,Jd(Xd.bind(null,i,d,e),[e]),i.flags|=2048,Xn(9,Hd.bind(null,i,d,n,t),void 0,null),n},useId:function(){var e=Lt(),t=Ve.identifierPrefix;if(Le){var n=Ot,i=At;n=(i&~(1<<32-wt(i)-1)).toString(32)+n,t=":"+t+"R"+n,n=Wn++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Cm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Rm={readContext:gt,useCallback:nu,useContext:gt,useEffect:hs,useImperativeHandle:ru,useInsertionEffect:Gd,useLayoutEffect:eu,useMemo:au,useReducer:ps,useRef:Zd,useState:function(){return ps(Hn)},useDebugValue:gs,useDeferredValue:function(e){var t=mt();return ou(t,Fe.memoizedState,e)},useTransition:function(){var e=ps(Hn)[0],t=mt().memoizedState;return[e,t]},useMutableSource:Vd,useSyncExternalStore:Bd,useId:iu,unstable_isNewReconciler:!1},Mm={readContext:gt,useCallback:nu,useContext:gt,useEffect:hs,useImperativeHandle:ru,useInsertionEffect:Gd,useLayoutEffect:eu,useMemo:au,useReducer:fs,useRef:Zd,useState:function(){return fs(Hn)},useDebugValue:gs,useDeferredValue:function(e){var t=mt();return Fe===null?t.memoizedState=e:ou(t,Fe.memoizedState,e)},useTransition:function(){var e=fs(Hn)[0],t=mt().memoizedState;return[e,t]},useMutableSource:Vd,useSyncExternalStore:Bd,useId:iu,unstable_isNewReconciler:!1};function St(e,t){if(e&&e.defaultProps){t=I({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ms(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:I({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var co={isMounted:function(e){return(e=e._reactInternals)?hr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var i=Je(),c=ir(e),d=Ft(i,c);d.payload=t,n!=null&&(d.callback=n),t=rr(e,d,c),t!==null&&(Et(t,e,c,i),to(t,e,c))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=Je(),c=ir(e),d=Ft(i,c);d.tag=1,d.payload=t,n!=null&&(d.callback=n),t=rr(e,d,c),t!==null&&(Et(t,e,c,i),to(t,e,c))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Je(),i=ir(e),c=Ft(n,i);c.tag=2,t!=null&&(c.callback=t),t=rr(e,c,i),t!==null&&(Et(t,e,i,n),to(t,e,i))}};function du(e,t,n,i,c,d,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,d,g):t.prototype&&t.prototype.isPureReactComponent?!Ln(n,i)||!Ln(c,d):!0}function uu(e,t,n){var i=!1,c=Gt,d=t.contextType;return typeof d=="object"&&d!==null?d=gt(d):(c=tt(t)?mr:Xe.current,i=t.contextTypes,d=(i=i!=null)?Xr(e,c):Gt),t=new t(n,d),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=co,e.stateNode=t,t._reactInternals=e,i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=c,e.__reactInternalMemoizedMaskedChildContext=d),t}function pu(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&co.enqueueReplaceState(t,t.state,null)}function bs(e,t,n,i){var c=e.stateNode;c.props=n,c.state=e.memoizedState,c.refs={},ns(e);var d=t.contextType;typeof d=="object"&&d!==null?c.context=gt(d):(d=tt(t)?mr:Xe.current,c.context=Xr(e,d)),c.state=e.memoizedState,d=t.getDerivedStateFromProps,typeof d=="function"&&(ms(e,t,d,n),c.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(t=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),t!==c.state&&co.enqueueReplaceState(c,c.state,null),ro(e,n,c,i),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308)}function tn(e,t){try{var n="",i=t;do n+=pe(i),i=i.return;while(i);var c=n}catch(d){c=`
|
|
7
|
+
Error generating stack: `+d.message+`
|
|
8
|
+
`+d.stack}return{value:e,source:t,stack:c,digest:null}}function xs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function vs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Pm=typeof WeakMap=="function"?WeakMap:Map;function fu(e,t,n){n=Ft(-1,n),n.tag=3,n.payload={element:null};var i=t.value;return n.callback=function(){bo||(bo=!0,Ls=i),vs(e,t)},n}function hu(e,t,n){n=Ft(-1,n),n.tag=3;var i=e.type.getDerivedStateFromError;if(typeof i=="function"){var c=t.value;n.payload=function(){return i(c)},n.callback=function(){vs(e,t)}}var d=e.stateNode;return d!==null&&typeof d.componentDidCatch=="function"&&(n.callback=function(){vs(e,t),typeof i!="function"&&(ar===null?ar=new Set([this]):ar.add(this));var g=t.stack;this.componentDidCatch(t.value,{componentStack:g!==null?g:""})}),n}function gu(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new Pm;var c=new Set;i.set(t,c)}else c=i.get(t),c===void 0&&(c=new Set,i.set(t,c));c.has(n)||(c.add(n),e=Hm.bind(null,e,t,n),t.then(e,e))}function mu(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function bu(e,t,n,i,c){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ft(-1,1),t.tag=2,rr(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=c,e)}var Lm=J.ReactCurrentOwner,rt=!1;function Ze(e,t,n,i){t.child=e===null?Ad(t,null,n,i):Zr(t,e.child,n,i)}function xu(e,t,n,i,c){n=n.render;var d=t.ref;return Gr(t,c),i=ds(e,t,n,i,d,c),n=us(),e!==null&&!rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,Ut(e,t,c)):(Le&&n&&Xi(t),t.flags|=1,Ze(e,t,i,c),t.child)}function vu(e,t,n,i,c){if(e===null){var d=n.type;return typeof d=="function"&&!Fs(d)&&d.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=d,yu(e,t,d,i,c)):(e=jo(n.type,null,i,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,(e.lanes&c)===0){var g=d.memoizedProps;if(n=n.compare,n=n!==null?n:Ln,n(g,i)&&e.ref===t.ref)return Ut(e,t,c)}return t.flags|=1,e=lr(d,i),e.ref=t.ref,e.return=t,t.child=e}function yu(e,t,n,i,c){if(e!==null){var d=e.memoizedProps;if(Ln(d,i)&&e.ref===t.ref)if(rt=!1,t.pendingProps=i=d,(e.lanes&c)!==0)(e.flags&131072)!==0&&(rt=!0);else return t.lanes=e.lanes,Ut(e,t,c)}return ys(e,t,n,i,c)}function wu(e,t,n){var i=t.pendingProps,c=i.children,d=e!==null?e.memoizedState:null;if(i.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ze(nn,dt),dt|=n;else{if((n&1073741824)===0)return e=d!==null?d.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ze(nn,dt),dt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=d!==null?d.baseLanes:n,ze(nn,dt),dt|=i}else d!==null?(i=d.baseLanes|n,t.memoizedState=null):i=n,ze(nn,dt),dt|=i;return Ze(e,t,c,n),t.child}function ku(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ys(e,t,n,i,c){var d=tt(n)?mr:Xe.current;return d=Xr(t,d),Gr(t,c),n=ds(e,t,n,i,d,c),i=us(),e!==null&&!rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,Ut(e,t,c)):(Le&&i&&Xi(t),t.flags|=1,Ze(e,t,n,c),t.child)}function ju(e,t,n,i,c){if(tt(n)){var d=!0;Xa(t)}else d=!1;if(Gr(t,c),t.stateNode===null)po(e,t),uu(t,n,i),bs(t,n,i,c),i=!0;else if(e===null){var g=t.stateNode,y=t.memoizedProps;g.props=y;var C=g.context,P=n.contextType;typeof P=="object"&&P!==null?P=gt(P):(P=tt(n)?mr:Xe.current,P=Xr(t,P));var A=n.getDerivedStateFromProps,O=typeof A=="function"||typeof g.getSnapshotBeforeUpdate=="function";O||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(y!==i||C!==P)&&pu(t,g,i,P),tr=!1;var T=t.memoizedState;g.state=T,ro(t,i,g,c),C=t.memoizedState,y!==i||T!==C||et.current||tr?(typeof A=="function"&&(ms(t,n,A,i),C=t.memoizedState),(y=tr||du(t,n,y,i,T,C,P))?(O||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(t.flags|=4194308)):(typeof g.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=C),g.props=i,g.state=C,g.context=P,i=y):(typeof g.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{g=t.stateNode,$d(e,t),y=t.memoizedProps,P=t.type===t.elementType?y:St(t.type,y),g.props=P,O=t.pendingProps,T=g.context,C=n.contextType,typeof C=="object"&&C!==null?C=gt(C):(C=tt(n)?mr:Xe.current,C=Xr(t,C));var Y=n.getDerivedStateFromProps;(A=typeof Y=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(y!==O||T!==C)&&pu(t,g,i,C),tr=!1,T=t.memoizedState,g.state=T,ro(t,i,g,c);var re=t.memoizedState;y!==O||T!==re||et.current||tr?(typeof Y=="function"&&(ms(t,n,Y,i),re=t.memoizedState),(P=tr||du(t,n,P,i,T,re,C)||!1)?(A||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(i,re,C),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(i,re,C)),typeof g.componentDidUpdate=="function"&&(t.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof g.componentDidUpdate!="function"||y===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=re),g.props=i,g.state=re,g.context=C,i=P):(typeof g.componentDidUpdate!="function"||y===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),i=!1)}return ws(e,t,n,i,d,c)}function ws(e,t,n,i,c,d){ku(e,t);var g=(t.flags&128)!==0;if(!i&&!g)return c&&_d(t,n,!1),Ut(e,t,d);i=t.stateNode,Lm.current=t;var y=g&&typeof n.getDerivedStateFromError!="function"?null:i.render();return t.flags|=1,e!==null&&g?(t.child=Zr(t,e.child,null,d),t.child=Zr(t,null,y,d)):Ze(e,t,y,d),t.memoizedState=i.state,c&&_d(t,n,!0),t.child}function Su(e){var t=e.stateNode;t.pendingContext?Nd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Nd(e,t.context,!1),as(e,t.containerInfo)}function Cu(e,t,n,i,c){return Yr(),Zi(c),t.flags|=256,Ze(e,t,n,i),t.child}var ks={dehydrated:null,treeContext:null,retryLane:0};function js(e){return{baseLanes:e,cachePool:null,transitions:null}}function Nu(e,t,n){var i=t.pendingProps,c=De.current,d=!1,g=(t.flags&128)!==0,y;if((y=g)||(y=e!==null&&e.memoizedState===null?!1:(c&2)!==0),y?(d=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(c|=1),ze(De,c&1),e===null)return Yi(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(g=i.children,e=i.fallback,d?(i=t.mode,d=t.child,g={mode:"hidden",children:g},(i&1)===0&&d!==null?(d.childLanes=0,d.pendingProps=g):d=So(g,i,0,null),e=Nr(e,i,n,null),d.return=t,e.return=t,d.sibling=e,t.child=d,t.child.memoizedState=js(n),t.memoizedState=ks,e):Ss(t,g));if(c=e.memoizedState,c!==null&&(y=c.dehydrated,y!==null))return Dm(e,t,g,i,y,c,n);if(d){d=i.fallback,g=t.mode,c=e.child,y=c.sibling;var C={mode:"hidden",children:i.children};return(g&1)===0&&t.child!==c?(i=t.child,i.childLanes=0,i.pendingProps=C,t.deletions=null):(i=lr(c,C),i.subtreeFlags=c.subtreeFlags&14680064),y!==null?d=lr(y,d):(d=Nr(d,g,n,null),d.flags|=2),d.return=t,i.return=t,i.sibling=d,t.child=i,i=d,d=t.child,g=e.child.memoizedState,g=g===null?js(n):{baseLanes:g.baseLanes|n,cachePool:null,transitions:g.transitions},d.memoizedState=g,d.childLanes=e.childLanes&~n,t.memoizedState=ks,i}return d=e.child,e=d.sibling,i=lr(d,{mode:"visible",children:i.children}),(t.mode&1)===0&&(i.lanes=n),i.return=t,i.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Ss(e,t){return t=So({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function uo(e,t,n,i){return i!==null&&Zi(i),Zr(t,e.child,null,n),e=Ss(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Dm(e,t,n,i,c,d,g){if(n)return t.flags&256?(t.flags&=-257,i=xs(Error(o(422))),uo(e,t,g,i)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(d=i.fallback,c=t.mode,i=So({mode:"visible",children:i.children},c,0,null),d=Nr(d,c,g,null),d.flags|=2,i.return=t,d.return=t,i.sibling=d,t.child=i,(t.mode&1)!==0&&Zr(t,e.child,null,g),t.child.memoizedState=js(g),t.memoizedState=ks,d);if((t.mode&1)===0)return uo(e,t,g,null);if(c.data==="$!"){if(i=c.nextSibling&&c.nextSibling.dataset,i)var y=i.dgst;return i=y,d=Error(o(419)),i=xs(d,i,void 0),uo(e,t,g,i)}if(y=(g&e.childLanes)!==0,rt||y){if(i=Ve,i!==null){switch(g&-g){case 4:c=2;break;case 16:c=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:c=32;break;case 536870912:c=268435456;break;default:c=0}c=(c&(i.suspendedLanes|g))!==0?0:c,c!==0&&c!==d.retryLane&&(d.retryLane=c,$t(e,c),Et(i,e,c,-1))}return $s(),i=xs(Error(o(421))),uo(e,t,g,i)}return c.data==="$?"?(t.flags|=128,t.child=e.child,t=Xm.bind(null,e),c._reactRetry=t,null):(e=d.treeContext,ct=Zt(c.nextSibling),lt=t,Le=!0,jt=null,e!==null&&(ft[ht++]=At,ft[ht++]=Ot,ft[ht++]=br,At=e.id,Ot=e.overflow,br=t),t=Ss(t,i.children),t.flags|=4096,t)}function Eu(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),ts(e.return,t,n)}function Cs(e,t,n,i,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:c}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=i,d.tail=n,d.tailMode=c)}function _u(e,t,n){var i=t.pendingProps,c=i.revealOrder,d=i.tail;if(Ze(e,t,i.children,n),i=De.current,(i&2)!==0)i=i&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Eu(e,n,t);else if(e.tag===19)Eu(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}if(ze(De,i),(t.mode&1)===0)t.memoizedState=null;else switch(c){case"forwards":for(n=t.child,c=null;n!==null;)e=n.alternate,e!==null&&no(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),Cs(t,!1,c,n,d);break;case"backwards":for(n=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&no(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}Cs(t,!0,n,null,d);break;case"together":Cs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function po(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ut(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),kr|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=lr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=lr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Im(e,t,n){switch(t.tag){case 3:Su(t),Yr();break;case 5:qd(t);break;case 1:tt(t.type)&&Xa(t);break;case 4:as(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,c=t.memoizedProps.value;ze(Ga,i._currentValue),i._currentValue=c;break;case 13:if(i=t.memoizedState,i!==null)return i.dehydrated!==null?(ze(De,De.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?Nu(e,t,n):(ze(De,De.current&1),e=Ut(e,t,n),e!==null?e.sibling:null);ze(De,De.current&1);break;case 19:if(i=(n&t.childLanes)!==0,(e.flags&128)!==0){if(i)return _u(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),ze(De,De.current),i)break;return null;case 22:case 23:return t.lanes=0,wu(e,t,n)}return Ut(e,t,n)}var zu,Ns,Ru,Mu;zu=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ns=function(){},Ru=function(e,t,n,i){var c=e.memoizedProps;if(c!==i){e=t.stateNode,yr(Pt.current);var d=null;switch(n){case"input":c=ti(e,c),i=ti(e,i),d=[];break;case"select":c=I({},c,{value:void 0}),i=I({},i,{value:void 0}),d=[];break;case"textarea":c=ai(e,c),i=ai(e,i),d=[];break;default:typeof c.onClick!="function"&&typeof i.onClick=="function"&&(e.onclick=Ba)}ii(n,i);var g;n=null;for(P in c)if(!i.hasOwnProperty(P)&&c.hasOwnProperty(P)&&c[P]!=null)if(P==="style"){var y=c[P];for(g in y)y.hasOwnProperty(g)&&(n||(n={}),n[g]="")}else P!=="dangerouslySetInnerHTML"&&P!=="children"&&P!=="suppressContentEditableWarning"&&P!=="suppressHydrationWarning"&&P!=="autoFocus"&&(u.hasOwnProperty(P)?d||(d=[]):(d=d||[]).push(P,null));for(P in i){var C=i[P];if(y=c?.[P],i.hasOwnProperty(P)&&C!==y&&(C!=null||y!=null))if(P==="style")if(y){for(g in y)!y.hasOwnProperty(g)||C&&C.hasOwnProperty(g)||(n||(n={}),n[g]="");for(g in C)C.hasOwnProperty(g)&&y[g]!==C[g]&&(n||(n={}),n[g]=C[g])}else n||(d||(d=[]),d.push(P,n)),n=C;else P==="dangerouslySetInnerHTML"?(C=C?C.__html:void 0,y=y?y.__html:void 0,C!=null&&y!==C&&(d=d||[]).push(P,C)):P==="children"?typeof C!="string"&&typeof C!="number"||(d=d||[]).push(P,""+C):P!=="suppressContentEditableWarning"&&P!=="suppressHydrationWarning"&&(u.hasOwnProperty(P)?(C!=null&&P==="onScroll"&&Re("scroll",e),d||y===C||(d=[])):(d=d||[]).push(P,C))}n&&(d=d||[]).push("style",n);var P=d;(t.updateQueue=P)&&(t.flags|=4)}},Mu=function(e,t,n,i){n!==i&&(t.flags|=4)};function Kn(e,t){if(!Le)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,i|=c.subtreeFlags&14680064,i|=c.flags&14680064,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,i|=c.subtreeFlags,i|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Tm(e,t,n){var i=t.pendingProps;switch(Ki(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(t),null;case 1:return tt(t.type)&&Ha(),Qe(t),null;case 3:return i=t.stateNode,en(),Me(et),Me(Xe),ss(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Za(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,jt!==null&&(Ts(jt),jt=null))),Ns(e,t),Qe(t),null;case 5:os(t);var c=yr(Vn.current);if(n=t.type,e!==null&&t.stateNode!=null)Ru(e,t,n,i,c),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(o(166));return Qe(t),null}if(e=yr(Pt.current),Za(t)){i=t.stateNode,n=t.type;var d=t.memoizedProps;switch(i[Mt]=t,i[On]=d,e=(t.mode&1)!==0,n){case"dialog":Re("cancel",i),Re("close",i);break;case"iframe":case"object":case"embed":Re("load",i);break;case"video":case"audio":for(c=0;c<In.length;c++)Re(In[c],i);break;case"source":Re("error",i);break;case"img":case"image":case"link":Re("error",i),Re("load",i);break;case"details":Re("toggle",i);break;case"input":uc(i,d),Re("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!d.multiple},Re("invalid",i);break;case"textarea":hc(i,d),Re("invalid",i)}ii(n,d),c=null;for(var g in d)if(d.hasOwnProperty(g)){var y=d[g];g==="children"?typeof y=="string"?i.textContent!==y&&(d.suppressHydrationWarning!==!0&&Va(i.textContent,y,e),c=["children",y]):typeof y=="number"&&i.textContent!==""+y&&(d.suppressHydrationWarning!==!0&&Va(i.textContent,y,e),c=["children",""+y]):u.hasOwnProperty(g)&&y!=null&&g==="onScroll"&&Re("scroll",i)}switch(n){case"input":ya(i),fc(i,d,!0);break;case"textarea":ya(i),mc(i);break;case"select":case"option":break;default:typeof d.onClick=="function"&&(i.onclick=Ba)}i=c,t.updateQueue=i,i!==null&&(t.flags|=4)}else{g=c.nodeType===9?c:c.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=bc(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=g.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=g.createElement(n,{is:i.is}):(e=g.createElement(n),n==="select"&&(g=e,i.multiple?g.multiple=!0:i.size&&(g.size=i.size))):e=g.createElementNS(e,n),e[Mt]=t,e[On]=i,zu(e,t,!1,!1),t.stateNode=e;e:{switch(g=si(n,i),n){case"dialog":Re("cancel",e),Re("close",e),c=i;break;case"iframe":case"object":case"embed":Re("load",e),c=i;break;case"video":case"audio":for(c=0;c<In.length;c++)Re(In[c],e);c=i;break;case"source":Re("error",e),c=i;break;case"img":case"image":case"link":Re("error",e),Re("load",e),c=i;break;case"details":Re("toggle",e),c=i;break;case"input":uc(e,i),c=ti(e,i),Re("invalid",e);break;case"option":c=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},c=I({},i,{value:void 0}),Re("invalid",e);break;case"textarea":hc(e,i),c=ai(e,i),Re("invalid",e);break;default:c=i}ii(n,c),y=c;for(d in y)if(y.hasOwnProperty(d)){var C=y[d];d==="style"?yc(e,C):d==="dangerouslySetInnerHTML"?(C=C?C.__html:void 0,C!=null&&xc(e,C)):d==="children"?typeof C=="string"?(n!=="textarea"||C!=="")&&mn(e,C):typeof C=="number"&&mn(e,""+C):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(u.hasOwnProperty(d)?C!=null&&d==="onScroll"&&Re("scroll",e):C!=null&&oe(e,d,C,g))}switch(n){case"input":ya(e),fc(e,i,!1);break;case"textarea":ya(e),mc(e);break;case"option":i.value!=null&&e.setAttribute("value",""+ke(i.value));break;case"select":e.multiple=!!i.multiple,d=i.value,d!=null?Ir(e,!!i.multiple,d,!1):i.defaultValue!=null&&Ir(e,!!i.multiple,i.defaultValue,!0);break;default:typeof c.onClick=="function"&&(e.onclick=Ba)}switch(n){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Qe(t),null;case 6:if(e&&t.stateNode!=null)Mu(e,t,e.memoizedProps,i);else{if(typeof i!="string"&&t.stateNode===null)throw Error(o(166));if(n=yr(Vn.current),yr(Pt.current),Za(t)){if(i=t.stateNode,n=t.memoizedProps,i[Mt]=t,(d=i.nodeValue!==n)&&(e=lt,e!==null))switch(e.tag){case 3:Va(i.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Va(i.nodeValue,n,(e.mode&1)!==0)}d&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[Mt]=t,t.stateNode=i}return Qe(t),null;case 13:if(Me(De),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Le&&ct!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Dd(),Yr(),t.flags|=98560,d=!1;else if(d=Za(t),i!==null&&i.dehydrated!==null){if(e===null){if(!d)throw Error(o(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(o(317));d[Mt]=t}else Yr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),d=!1}else jt!==null&&(Ts(jt),jt=null),d=!0;if(!d)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(De.current&1)!==0?Ue===0&&(Ue=3):$s())),t.updateQueue!==null&&(t.flags|=4),Qe(t),null);case 4:return en(),Ns(e,t),e===null&&Tn(t.stateNode.containerInfo),Qe(t),null;case 10:return es(t.type._context),Qe(t),null;case 17:return tt(t.type)&&Ha(),Qe(t),null;case 19:if(Me(De),d=t.memoizedState,d===null)return Qe(t),null;if(i=(t.flags&128)!==0,g=d.rendering,g===null)if(i)Kn(d,!1);else{if(Ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(g=no(e),g!==null){for(t.flags|=128,Kn(d,!1),i=g.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)d=n,e=i,d.flags&=14680066,g=d.alternate,g===null?(d.childLanes=0,d.lanes=e,d.child=null,d.subtreeFlags=0,d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null,d.stateNode=null):(d.childLanes=g.childLanes,d.lanes=g.lanes,d.child=g.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=g.memoizedProps,d.memoizedState=g.memoizedState,d.updateQueue=g.updateQueue,d.type=g.type,e=g.dependencies,d.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ze(De,De.current&1|2),t.child}e=e.sibling}d.tail!==null&&Ae()>an&&(t.flags|=128,i=!0,Kn(d,!1),t.lanes=4194304)}else{if(!i)if(e=no(g),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Kn(d,!0),d.tail===null&&d.tailMode==="hidden"&&!g.alternate&&!Le)return Qe(t),null}else 2*Ae()-d.renderingStartTime>an&&n!==1073741824&&(t.flags|=128,i=!0,Kn(d,!1),t.lanes=4194304);d.isBackwards?(g.sibling=t.child,t.child=g):(n=d.last,n!==null?n.sibling=g:t.child=g,d.last=g)}return d.tail!==null?(t=d.tail,d.rendering=t,d.tail=t.sibling,d.renderingStartTime=Ae(),t.sibling=null,n=De.current,ze(De,i?n&1|2:n&1),t):(Qe(t),null);case 22:case 23:return Os(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&(t.mode&1)!==0?(dt&1073741824)!==0&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function Am(e,t){switch(Ki(t),t.tag){case 1:return tt(t.type)&&Ha(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return en(),Me(et),Me(Xe),ss(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return os(t),null;case 13:if(Me(De),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Yr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Me(De),null;case 4:return en(),null;case 10:return es(t.type._context),null;case 22:case 23:return Os(),null;case 24:return null;default:return null}}var fo=!1,Ye=!1,Om=typeof WeakSet=="function"?WeakSet:Set,te=null;function rn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){Te(e,t,i)}else n.current=null}function Pu(e,t,n){try{n()}catch(i){Te(e,t,i)}}var Lu=!1;function $m(e,t){if($i=Pa,e=dd(),Mi(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var c=i.anchorOffset,d=i.focusNode;i=i.focusOffset;try{n.nodeType,d.nodeType}catch{n=null;break e}var g=0,y=-1,C=-1,P=0,A=0,O=e,T=null;t:for(;;){for(var Y;O!==n||c!==0&&O.nodeType!==3||(y=g+c),O!==d||i!==0&&O.nodeType!==3||(C=g+i),O.nodeType===3&&(g+=O.nodeValue.length),(Y=O.firstChild)!==null;)T=O,O=Y;for(;;){if(O===e)break t;if(T===n&&++P===c&&(y=g),T===d&&++A===i&&(C=g),(Y=O.nextSibling)!==null)break;O=T,T=O.parentNode}O=Y}n=y===-1||C===-1?null:{start:y,end:C}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fi={focusedElem:e,selectionRange:n},Pa=!1,te=t;te!==null;)if(t=te,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,te=e;else for(;te!==null;){t=te;try{var re=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(re!==null){var ae=re.memoizedProps,Oe=re.memoizedState,z=t.stateNode,N=z.getSnapshotBeforeUpdate(t.elementType===t.type?ae:St(t.type,ae),Oe);z.__reactInternalSnapshotBeforeUpdate=N}break;case 3:var R=t.stateNode.containerInfo;R.nodeType===1?R.textContent="":R.nodeType===9&&R.documentElement&&R.removeChild(R.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(q){Te(t,t.return,q)}if(e=t.sibling,e!==null){e.return=t.return,te=e;break}te=t.return}return re=Lu,Lu=!1,re}function Qn(e,t,n){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var c=i=i.next;do{if((c.tag&e)===e){var d=c.destroy;c.destroy=void 0,d!==void 0&&Pu(t,n,d)}c=c.next}while(c!==i)}}function ho(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 i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function Es(e){var t=e.ref;if(t!==null){var n=e.stateNode;e.tag,e=n,typeof t=="function"?t(e):t.current=e}}function Du(e){var t=e.alternate;t!==null&&(e.alternate=null,Du(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mt],delete t[On],delete t[Bi],delete t[wm],delete t[km])),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 Iu(e){return e.tag===5||e.tag===3||e.tag===4}function Tu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Iu(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 _s(e,t,n){var i=e.tag;if(i===5||i===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=Ba));else if(i!==4&&(e=e.child,e!==null))for(_s(e,t,n),e=e.sibling;e!==null;)_s(e,t,n),e=e.sibling}function zs(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(zs(e,t,n),e=e.sibling;e!==null;)zs(e,t,n),e=e.sibling}var We=null,Ct=!1;function nr(e,t,n){for(n=n.child;n!==null;)Au(e,t,n),n=n.sibling}function Au(e,t,n){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(Na,n)}catch{}switch(n.tag){case 5:Ye||rn(n,t);case 6:var i=We,c=Ct;We=null,nr(e,t,n),We=i,Ct=c,We!==null&&(Ct?(e=We,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):We.removeChild(n.stateNode));break;case 18:We!==null&&(Ct?(e=We,n=n.stateNode,e.nodeType===8?Vi(e.parentNode,n):e.nodeType===1&&Vi(e,n),En(e)):Vi(We,n.stateNode));break;case 4:i=We,c=Ct,We=n.stateNode.containerInfo,Ct=!0,nr(e,t,n),We=i,Ct=c;break;case 0:case 11:case 14:case 15:if(!Ye&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){c=i=i.next;do{var d=c,g=d.destroy;d=d.tag,g!==void 0&&((d&2)!==0||(d&4)!==0)&&Pu(n,t,g),c=c.next}while(c!==i)}nr(e,t,n);break;case 1:if(!Ye&&(rn(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(y){Te(n,t,y)}nr(e,t,n);break;case 21:nr(e,t,n);break;case 22:n.mode&1?(Ye=(i=Ye)||n.memoizedState!==null,nr(e,t,n),Ye=i):nr(e,t,n);break;default:nr(e,t,n)}}function Ou(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Om),t.forEach(function(i){var c=Km.bind(null,e,i);n.has(i)||(n.add(i),i.then(c,c))})}}function Nt(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var c=n[i];try{var d=e,g=t,y=g;e:for(;y!==null;){switch(y.tag){case 5:We=y.stateNode,Ct=!1;break e;case 3:We=y.stateNode.containerInfo,Ct=!0;break e;case 4:We=y.stateNode.containerInfo,Ct=!0;break e}y=y.return}if(We===null)throw Error(o(160));Au(d,g,c),We=null,Ct=!1;var C=c.alternate;C!==null&&(C.return=null),c.return=null}catch(P){Te(c,t,P)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)$u(t,e),t=t.sibling}function $u(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Nt(t,e),Dt(e),i&4){try{Qn(3,e,e.return),ho(3,e)}catch(ae){Te(e,e.return,ae)}try{Qn(5,e,e.return)}catch(ae){Te(e,e.return,ae)}}break;case 1:Nt(t,e),Dt(e),i&512&&n!==null&&rn(n,n.return);break;case 5:if(Nt(t,e),Dt(e),i&512&&n!==null&&rn(n,n.return),e.flags&32){var c=e.stateNode;try{mn(c,"")}catch(ae){Te(e,e.return,ae)}}if(i&4&&(c=e.stateNode,c!=null)){var d=e.memoizedProps,g=n!==null?n.memoizedProps:d,y=e.type,C=e.updateQueue;if(e.updateQueue=null,C!==null)try{y==="input"&&d.type==="radio"&&d.name!=null&&pc(c,d),si(y,g);var P=si(y,d);for(g=0;g<C.length;g+=2){var A=C[g],O=C[g+1];A==="style"?yc(c,O):A==="dangerouslySetInnerHTML"?xc(c,O):A==="children"?mn(c,O):oe(c,A,O,P)}switch(y){case"input":ri(c,d);break;case"textarea":gc(c,d);break;case"select":var T=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!d.multiple;var Y=d.value;Y!=null?Ir(c,!!d.multiple,Y,!1):T!==!!d.multiple&&(d.defaultValue!=null?Ir(c,!!d.multiple,d.defaultValue,!0):Ir(c,!!d.multiple,d.multiple?[]:"",!1))}c[On]=d}catch(ae){Te(e,e.return,ae)}}break;case 6:if(Nt(t,e),Dt(e),i&4){if(e.stateNode===null)throw Error(o(162));c=e.stateNode,d=e.memoizedProps;try{c.nodeValue=d}catch(ae){Te(e,e.return,ae)}}break;case 3:if(Nt(t,e),Dt(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{En(t.containerInfo)}catch(ae){Te(e,e.return,ae)}break;case 4:Nt(t,e),Dt(e);break;case 13:Nt(t,e),Dt(e),c=e.child,c.flags&8192&&(d=c.memoizedState!==null,c.stateNode.isHidden=d,!d||c.alternate!==null&&c.alternate.memoizedState!==null||(Ps=Ae())),i&4&&Ou(e);break;case 22:if(A=n!==null&&n.memoizedState!==null,e.mode&1?(Ye=(P=Ye)||A,Nt(t,e),Ye=P):Nt(t,e),Dt(e),i&8192){if(P=e.memoizedState!==null,(e.stateNode.isHidden=P)&&!A&&(e.mode&1)!==0)for(te=e,A=e.child;A!==null;){for(O=te=A;te!==null;){switch(T=te,Y=T.child,T.tag){case 0:case 11:case 14:case 15:Qn(4,T,T.return);break;case 1:rn(T,T.return);var re=T.stateNode;if(typeof re.componentWillUnmount=="function"){i=T,n=T.return;try{t=i,re.props=t.memoizedProps,re.state=t.memoizedState,re.componentWillUnmount()}catch(ae){Te(i,n,ae)}}break;case 5:rn(T,T.return);break;case 22:if(T.memoizedState!==null){qu(O);continue}}Y!==null?(Y.return=T,te=Y):qu(O)}A=A.sibling}e:for(A=null,O=e;;){if(O.tag===5){if(A===null){A=O;try{c=O.stateNode,P?(d=c.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none"):(y=O.stateNode,C=O.memoizedProps.style,g=C!=null&&C.hasOwnProperty("display")?C.display:null,y.style.display=vc("display",g))}catch(ae){Te(e,e.return,ae)}}}else if(O.tag===6){if(A===null)try{O.stateNode.nodeValue=P?"":O.memoizedProps}catch(ae){Te(e,e.return,ae)}}else if((O.tag!==22&&O.tag!==23||O.memoizedState===null||O===e)&&O.child!==null){O.child.return=O,O=O.child;continue}if(O===e)break e;for(;O.sibling===null;){if(O.return===null||O.return===e)break e;A===O&&(A=null),O=O.return}A===O&&(A=null),O.sibling.return=O.return,O=O.sibling}}break;case 19:Nt(t,e),Dt(e),i&4&&Ou(e);break;case 21:break;default:Nt(t,e),Dt(e)}}function Dt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Iu(n)){var i=n;break e}n=n.return}throw Error(o(160))}switch(i.tag){case 5:var c=i.stateNode;i.flags&32&&(mn(c,""),i.flags&=-33);var d=Tu(e);zs(e,d,c);break;case 3:case 4:var g=i.stateNode.containerInfo,y=Tu(e);_s(e,y,g);break;default:throw Error(o(161))}}catch(C){Te(e,e.return,C)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Fm(e,t,n){te=e,Fu(e)}function Fu(e,t,n){for(var i=(e.mode&1)!==0;te!==null;){var c=te,d=c.child;if(c.tag===22&&i){var g=c.memoizedState!==null||fo;if(!g){var y=c.alternate,C=y!==null&&y.memoizedState!==null||Ye;y=fo;var P=Ye;if(fo=g,(Ye=C)&&!P)for(te=c;te!==null;)g=te,C=g.child,g.tag===22&&g.memoizedState!==null?Vu(c):C!==null?(C.return=g,te=C):Vu(c);for(;d!==null;)te=d,Fu(d),d=d.sibling;te=c,fo=y,Ye=P}Uu(e)}else(c.subtreeFlags&8772)!==0&&d!==null?(d.return=c,te=d):Uu(e)}}function Uu(e){for(;te!==null;){var t=te;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Ye||ho(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!Ye)if(n===null)i.componentDidMount();else{var c=t.elementType===t.type?n.memoizedProps:St(t.type,n.memoizedProps);i.componentDidUpdate(c,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var d=t.updateQueue;d!==null&&Ud(t,d,i);break;case 3:var g=t.updateQueue;if(g!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ud(t,g,n)}break;case 5:var y=t.stateNode;if(n===null&&t.flags&4){n=y;var C=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":C.autoFocus&&n.focus();break;case"img":C.src&&(n.src=C.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var P=t.alternate;if(P!==null){var A=P.memoizedState;if(A!==null){var O=A.dehydrated;O!==null&&En(O)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}Ye||t.flags&512&&Es(t)}catch(T){Te(t,t.return,T)}}if(t===e){te=null;break}if(n=t.sibling,n!==null){n.return=t.return,te=n;break}te=t.return}}function qu(e){for(;te!==null;){var t=te;if(t===e){te=null;break}var n=t.sibling;if(n!==null){n.return=t.return,te=n;break}te=t.return}}function Vu(e){for(;te!==null;){var t=te;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ho(4,t)}catch(C){Te(t,n,C)}break;case 1:var i=t.stateNode;if(typeof i.componentDidMount=="function"){var c=t.return;try{i.componentDidMount()}catch(C){Te(t,c,C)}}var d=t.return;try{Es(t)}catch(C){Te(t,d,C)}break;case 5:var g=t.return;try{Es(t)}catch(C){Te(t,g,C)}}}catch(C){Te(t,t.return,C)}if(t===e){te=null;break}var y=t.sibling;if(y!==null){y.return=t.return,te=y;break}te=t.return}}var Um=Math.ceil,go=J.ReactCurrentDispatcher,Rs=J.ReactCurrentOwner,bt=J.ReactCurrentBatchConfig,Ce=0,Ve=null,$e=null,He=0,dt=0,nn=Jt(0),Ue=0,Yn=null,kr=0,mo=0,Ms=0,Zn=null,nt=null,Ps=0,an=1/0,qt=null,bo=!1,Ls=null,ar=null,xo=!1,or=null,vo=0,Jn=0,Ds=null,yo=-1,wo=0;function Je(){return(Ce&6)!==0?Ae():yo!==-1?yo:yo=Ae()}function ir(e){return(e.mode&1)===0?1:(Ce&2)!==0&&He!==0?He&-He:Sm.transition!==null?(wo===0&&(wo=Ic()),wo):(e=_e,e!==0||(e=window.event,e=e===void 0?16:Bc(e.type)),e)}function Et(e,t,n,i){if(50<Jn)throw Jn=0,Ds=null,Error(o(185));kn(e,n,i),((Ce&2)===0||e!==Ve)&&(e===Ve&&((Ce&2)===0&&(mo|=n),Ue===4&&sr(e,He)),at(e,i),n===1&&Ce===0&&(t.mode&1)===0&&(an=Ae()+500,Ka&&er()))}function at(e,t){var n=e.callbackNode;Sg(e,t);var i=za(e,e===Ve?He:0);if(i===0)n!==null&&Pc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(n!=null&&Pc(n),t===1)e.tag===0?jm(Wu.bind(null,e)):zd(Wu.bind(null,e)),vm(function(){(Ce&6)===0&&er()}),n=null;else{switch(Tc(i)){case 1:n=hi;break;case 4:n=Lc;break;case 16:n=Ca;break;case 536870912:n=Dc;break;default:n=Ca}n=Gu(n,Bu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Bu(e,t){if(yo=-1,wo=0,(Ce&6)!==0)throw Error(o(327));var n=e.callbackNode;if(on()&&e.callbackNode!==n)return null;var i=za(e,e===Ve?He:0);if(i===0)return null;if((i&30)!==0||(i&e.expiredLanes)!==0||t)t=ko(e,i);else{t=i;var c=Ce;Ce|=2;var d=Xu();(Ve!==e||He!==t)&&(qt=null,an=Ae()+500,Sr(e,t));do try{Bm();break}catch(y){Hu(e,y)}while(!0);Gi(),go.current=d,Ce=c,$e!==null?t=0:(Ve=null,He=0,t=Ue)}if(t!==0){if(t===2&&(c=gi(e),c!==0&&(i=c,t=Is(e,c))),t===1)throw n=Yn,Sr(e,0),sr(e,i),at(e,Ae()),n;if(t===6)sr(e,i);else{if(c=e.current.alternate,(i&30)===0&&!qm(c)&&(t=ko(e,i),t===2&&(d=gi(e),d!==0&&(i=d,t=Is(e,d))),t===1))throw n=Yn,Sr(e,0),sr(e,i),at(e,Ae()),n;switch(e.finishedWork=c,e.finishedLanes=i,t){case 0:case 1:throw Error(o(345));case 2:Cr(e,nt,qt);break;case 3:if(sr(e,i),(i&130023424)===i&&(t=Ps+500-Ae(),10<t)){if(za(e,0)!==0)break;if(c=e.suspendedLanes,(c&i)!==i){Je(),e.pingedLanes|=e.suspendedLanes&c;break}e.timeoutHandle=qi(Cr.bind(null,e,nt,qt),t);break}Cr(e,nt,qt);break;case 4:if(sr(e,i),(i&4194240)===i)break;for(t=e.eventTimes,c=-1;0<i;){var g=31-wt(i);d=1<<g,g=t[g],g>c&&(c=g),i&=~d}if(i=c,i=Ae()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Um(i/1960))-i,10<i){e.timeoutHandle=qi(Cr.bind(null,e,nt,qt),i);break}Cr(e,nt,qt);break;case 5:Cr(e,nt,qt);break;default:throw Error(o(329))}}}return at(e,Ae()),e.callbackNode===n?Bu.bind(null,e):null}function Is(e,t){var n=Zn;return e.current.memoizedState.isDehydrated&&(Sr(e,t).flags|=256),e=ko(e,t),e!==2&&(t=nt,nt=n,t!==null&&Ts(t)),e}function Ts(e){nt===null?nt=e:nt.push.apply(nt,e)}function qm(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var i=0;i<n.length;i++){var c=n[i],d=c.getSnapshot;c=c.value;try{if(!kt(d(),c))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function sr(e,t){for(t&=~Ms,t&=~mo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-wt(t),i=1<<n;e[n]=-1,t&=~i}}function Wu(e){if((Ce&6)!==0)throw Error(o(327));on();var t=za(e,0);if((t&1)===0)return at(e,Ae()),null;var n=ko(e,t);if(e.tag!==0&&n===2){var i=gi(e);i!==0&&(t=i,n=Is(e,i))}if(n===1)throw n=Yn,Sr(e,0),sr(e,t),at(e,Ae()),n;if(n===6)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Cr(e,nt,qt),at(e,Ae()),null}function As(e,t){var n=Ce;Ce|=1;try{return e(t)}finally{Ce=n,Ce===0&&(an=Ae()+500,Ka&&er())}}function jr(e){or!==null&&or.tag===0&&(Ce&6)===0&&on();var t=Ce;Ce|=1;var n=bt.transition,i=_e;try{if(bt.transition=null,_e=1,e)return e()}finally{_e=i,bt.transition=n,Ce=t,(Ce&6)===0&&er()}}function Os(){dt=nn.current,Me(nn)}function Sr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,xm(n)),$e!==null)for(n=$e.return;n!==null;){var i=n;switch(Ki(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&Ha();break;case 3:en(),Me(et),Me(Xe),ss();break;case 5:os(i);break;case 4:en();break;case 13:Me(De);break;case 19:Me(De);break;case 10:es(i.type._context);break;case 22:case 23:Os()}n=n.return}if(Ve=e,$e=e=lr(e.current,null),He=dt=t,Ue=0,Yn=null,Ms=mo=kr=0,nt=Zn=null,vr!==null){for(t=0;t<vr.length;t++)if(n=vr[t],i=n.interleaved,i!==null){n.interleaved=null;var c=i.next,d=n.pending;if(d!==null){var g=d.next;d.next=c,i.next=g}n.pending=i}vr=null}return e}function Hu(e,t){do{var n=$e;try{if(Gi(),ao.current=lo,oo){for(var i=Ie.memoizedState;i!==null;){var c=i.queue;c!==null&&(c.pending=null),i=i.next}oo=!1}if(wr=0,qe=Fe=Ie=null,Bn=!1,Wn=0,Rs.current=null,n===null||n.return===null){Ue=1,Yn=t,$e=null;break}e:{var d=e,g=n.return,y=n,C=t;if(t=He,y.flags|=32768,C!==null&&typeof C=="object"&&typeof C.then=="function"){var P=C,A=y,O=A.tag;if((A.mode&1)===0&&(O===0||O===11||O===15)){var T=A.alternate;T?(A.updateQueue=T.updateQueue,A.memoizedState=T.memoizedState,A.lanes=T.lanes):(A.updateQueue=null,A.memoizedState=null)}var Y=mu(g);if(Y!==null){Y.flags&=-257,bu(Y,g,y,d,t),Y.mode&1&&gu(d,P,t),t=Y,C=P;var re=t.updateQueue;if(re===null){var ae=new Set;ae.add(C),t.updateQueue=ae}else re.add(C);break e}else{if((t&1)===0){gu(d,P,t),$s();break e}C=Error(o(426))}}else if(Le&&y.mode&1){var Oe=mu(g);if(Oe!==null){(Oe.flags&65536)===0&&(Oe.flags|=256),bu(Oe,g,y,d,t),Zi(tn(C,y));break e}}d=C=tn(C,y),Ue!==4&&(Ue=2),Zn===null?Zn=[d]:Zn.push(d),d=g;do{switch(d.tag){case 3:d.flags|=65536,t&=-t,d.lanes|=t;var z=fu(d,C,t);Fd(d,z);break e;case 1:y=C;var N=d.type,R=d.stateNode;if((d.flags&128)===0&&(typeof N.getDerivedStateFromError=="function"||R!==null&&typeof R.componentDidCatch=="function"&&(ar===null||!ar.has(R)))){d.flags|=65536,t&=-t,d.lanes|=t;var q=hu(d,y,t);Fd(d,q);break e}}d=d.return}while(d!==null)}Qu(n)}catch(ie){t=ie,$e===n&&n!==null&&($e=n=n.return);continue}break}while(!0)}function Xu(){var e=go.current;return go.current=lo,e===null?lo:e}function $s(){(Ue===0||Ue===3||Ue===2)&&(Ue=4),Ve===null||(kr&268435455)===0&&(mo&268435455)===0||sr(Ve,He)}function ko(e,t){var n=Ce;Ce|=2;var i=Xu();(Ve!==e||He!==t)&&(qt=null,Sr(e,t));do try{Vm();break}catch(c){Hu(e,c)}while(!0);if(Gi(),Ce=n,go.current=i,$e!==null)throw Error(o(261));return Ve=null,He=0,Ue}function Vm(){for(;$e!==null;)Ku($e)}function Bm(){for(;$e!==null&&!gg();)Ku($e)}function Ku(e){var t=Ju(e.alternate,e,dt);e.memoizedProps=e.pendingProps,t===null?Qu(e):$e=t,Rs.current=null}function Qu(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Tm(n,t,dt),n!==null){$e=n;return}}else{if(n=Am(n,t),n!==null){n.flags&=32767,$e=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ue=6,$e=null;return}}if(t=t.sibling,t!==null){$e=t;return}$e=t=e}while(t!==null);Ue===0&&(Ue=5)}function Cr(e,t,n){var i=_e,c=bt.transition;try{bt.transition=null,_e=1,Wm(e,t,n,i)}finally{bt.transition=c,_e=i}return null}function Wm(e,t,n,i){do on();while(or!==null);if((Ce&6)!==0)throw Error(o(327));n=e.finishedWork;var c=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var d=n.lanes|n.childLanes;if(Cg(e,d),e===Ve&&($e=Ve=null,He=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||xo||(xo=!0,Gu(Ca,function(){return on(),null})),d=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||d){d=bt.transition,bt.transition=null;var g=_e;_e=1;var y=Ce;Ce|=4,Rs.current=null,$m(e,n),$u(n,e),um(Fi),Pa=!!$i,Fi=$i=null,e.current=n,Fm(n),mg(),Ce=y,_e=g,bt.transition=d}else e.current=n;if(xo&&(xo=!1,or=e,vo=c),d=e.pendingLanes,d===0&&(ar=null),vg(n.stateNode),at(e,Ae()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)c=t[n],i(c.value,{componentStack:c.stack,digest:c.digest});if(bo)throw bo=!1,e=Ls,Ls=null,e;return(vo&1)!==0&&e.tag!==0&&on(),d=e.pendingLanes,(d&1)!==0?e===Ds?Jn++:(Jn=0,Ds=e):Jn=0,er(),null}function on(){if(or!==null){var e=Tc(vo),t=bt.transition,n=_e;try{if(bt.transition=null,_e=16>e?16:e,or===null)var i=!1;else{if(e=or,or=null,vo=0,(Ce&6)!==0)throw Error(o(331));var c=Ce;for(Ce|=4,te=e.current;te!==null;){var d=te,g=d.child;if((te.flags&16)!==0){var y=d.deletions;if(y!==null){for(var C=0;C<y.length;C++){var P=y[C];for(te=P;te!==null;){var A=te;switch(A.tag){case 0:case 11:case 15:Qn(8,A,d)}var O=A.child;if(O!==null)O.return=A,te=O;else for(;te!==null;){A=te;var T=A.sibling,Y=A.return;if(Du(A),A===P){te=null;break}if(T!==null){T.return=Y,te=T;break}te=Y}}}var re=d.alternate;if(re!==null){var ae=re.child;if(ae!==null){re.child=null;do{var Oe=ae.sibling;ae.sibling=null,ae=Oe}while(ae!==null)}}te=d}}if((d.subtreeFlags&2064)!==0&&g!==null)g.return=d,te=g;else e:for(;te!==null;){if(d=te,(d.flags&2048)!==0)switch(d.tag){case 0:case 11:case 15:Qn(9,d,d.return)}var z=d.sibling;if(z!==null){z.return=d.return,te=z;break e}te=d.return}}var N=e.current;for(te=N;te!==null;){g=te;var R=g.child;if((g.subtreeFlags&2064)!==0&&R!==null)R.return=g,te=R;else e:for(g=N;te!==null;){if(y=te,(y.flags&2048)!==0)try{switch(y.tag){case 0:case 11:case 15:ho(9,y)}}catch(ie){Te(y,y.return,ie)}if(y===g){te=null;break e}var q=y.sibling;if(q!==null){q.return=y.return,te=q;break e}te=y.return}}if(Ce=c,er(),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(Na,e)}catch{}i=!0}return i}finally{_e=n,bt.transition=t}}return!1}function Yu(e,t,n){t=tn(n,t),t=fu(e,t,1),e=rr(e,t,1),t=Je(),e!==null&&(kn(e,1,t),at(e,t))}function Te(e,t,n){if(e.tag===3)Yu(e,e,n);else for(;t!==null;){if(t.tag===3){Yu(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(ar===null||!ar.has(i))){e=tn(n,e),e=hu(t,e,1),t=rr(t,e,1),e=Je(),t!==null&&(kn(t,1,e),at(t,e));break}}t=t.return}}function Hm(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),t=Je(),e.pingedLanes|=e.suspendedLanes&n,Ve===e&&(He&n)===n&&(Ue===4||Ue===3&&(He&130023424)===He&&500>Ae()-Ps?Sr(e,0):Ms|=n),at(e,t)}function Zu(e,t){t===0&&((e.mode&1)===0?t=1:(t=_a,_a<<=1,(_a&130023424)===0&&(_a=4194304)));var n=Je();e=$t(e,t),e!==null&&(kn(e,t,n),at(e,n))}function Xm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Zu(e,n)}function Km(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(o(314))}i!==null&&i.delete(t),Zu(e,n)}var Ju;Ju=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||et.current)rt=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return rt=!1,Im(e,t,n);rt=(e.flags&131072)!==0}else rt=!1,Le&&(t.flags&1048576)!==0&&Rd(t,Ya,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;po(e,t),e=t.pendingProps;var c=Xr(t,Xe.current);Gr(t,n),c=ds(null,t,i,e,c,n);var d=us();return t.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,tt(i)?(d=!0,Xa(t)):d=!1,t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,ns(t),c.updater=co,t.stateNode=c,c._reactInternals=t,bs(t,i,e,n),t=ws(null,t,i,!0,d,n)):(t.tag=0,Le&&d&&Xi(t),Ze(null,t,c,n),t=t.child),t;case 16:i=t.elementType;e:{switch(po(e,t),e=t.pendingProps,c=i._init,i=c(i._payload),t.type=i,c=t.tag=Ym(i),e=St(i,e),c){case 0:t=ys(null,t,i,e,n);break e;case 1:t=ju(null,t,i,e,n);break e;case 11:t=xu(null,t,i,e,n);break e;case 14:t=vu(null,t,i,St(i.type,e),n);break e}throw Error(o(306,i,""))}return t;case 0:return i=t.type,c=t.pendingProps,c=t.elementType===i?c:St(i,c),ys(e,t,i,c,n);case 1:return i=t.type,c=t.pendingProps,c=t.elementType===i?c:St(i,c),ju(e,t,i,c,n);case 3:e:{if(Su(t),e===null)throw Error(o(387));i=t.pendingProps,d=t.memoizedState,c=d.element,$d(e,t),ro(t,i,null,n);var g=t.memoizedState;if(i=g.element,d.isDehydrated)if(d={element:i,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){c=tn(Error(o(423)),t),t=Cu(e,t,i,n,c);break e}else if(i!==c){c=tn(Error(o(424)),t),t=Cu(e,t,i,n,c);break e}else for(ct=Zt(t.stateNode.containerInfo.firstChild),lt=t,Le=!0,jt=null,n=Ad(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Yr(),i===c){t=Ut(e,t,n);break e}Ze(e,t,i,n)}t=t.child}return t;case 5:return qd(t),e===null&&Yi(t),i=t.type,c=t.pendingProps,d=e!==null?e.memoizedProps:null,g=c.children,Ui(i,c)?g=null:d!==null&&Ui(i,d)&&(t.flags|=32),ku(e,t),Ze(e,t,g,n),t.child;case 6:return e===null&&Yi(t),null;case 13:return Nu(e,t,n);case 4:return as(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Zr(t,null,i,n):Ze(e,t,i,n),t.child;case 11:return i=t.type,c=t.pendingProps,c=t.elementType===i?c:St(i,c),xu(e,t,i,c,n);case 7:return Ze(e,t,t.pendingProps,n),t.child;case 8:return Ze(e,t,t.pendingProps.children,n),t.child;case 12:return Ze(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,c=t.pendingProps,d=t.memoizedProps,g=c.value,ze(Ga,i._currentValue),i._currentValue=g,d!==null)if(kt(d.value,g)){if(d.children===c.children&&!et.current){t=Ut(e,t,n);break e}}else for(d=t.child,d!==null&&(d.return=t);d!==null;){var y=d.dependencies;if(y!==null){g=d.child;for(var C=y.firstContext;C!==null;){if(C.context===i){if(d.tag===1){C=Ft(-1,n&-n),C.tag=2;var P=d.updateQueue;if(P!==null){P=P.shared;var A=P.pending;A===null?C.next=C:(C.next=A.next,A.next=C),P.pending=C}}d.lanes|=n,C=d.alternate,C!==null&&(C.lanes|=n),ts(d.return,n,t),y.lanes|=n;break}C=C.next}}else if(d.tag===10)g=d.type===t.type?null:d.child;else if(d.tag===18){if(g=d.return,g===null)throw Error(o(341));g.lanes|=n,y=g.alternate,y!==null&&(y.lanes|=n),ts(g,n,t),g=d.sibling}else g=d.child;if(g!==null)g.return=d;else for(g=d;g!==null;){if(g===t){g=null;break}if(d=g.sibling,d!==null){d.return=g.return,g=d;break}g=g.return}d=g}Ze(e,t,c.children,n),t=t.child}return t;case 9:return c=t.type,i=t.pendingProps.children,Gr(t,n),c=gt(c),i=i(c),t.flags|=1,Ze(e,t,i,n),t.child;case 14:return i=t.type,c=St(i,t.pendingProps),c=St(i.type,c),vu(e,t,i,c,n);case 15:return yu(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,c=t.pendingProps,c=t.elementType===i?c:St(i,c),po(e,t),t.tag=1,tt(i)?(e=!0,Xa(t)):e=!1,Gr(t,n),uu(t,i,c),bs(t,i,c,n),ws(null,t,i,!0,e,n);case 19:return _u(e,t,n);case 22:return wu(e,t,n)}throw Error(o(156,t.tag))};function Gu(e,t){return Mc(e,t)}function Qm(e,t,n,i){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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xt(e,t,n,i){return new Qm(e,t,n,i)}function Fs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ym(e){if(typeof e=="function")return Fs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===W)return 11;if(e===Ne)return 14}return 2}function lr(e,t){var n=e.alternate;return n===null?(n=xt(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 jo(e,t,n,i,c,d){var g=2;if(i=e,typeof e=="function")Fs(e)&&(g=1);else if(typeof e=="string")g=5;else e:switch(e){case X:return Nr(n.children,c,d,t);case K:g=8,c|=8;break;case he:return e=xt(12,n,t,c|2),e.elementType=he,e.lanes=d,e;case Q:return e=xt(13,n,t,c),e.elementType=Q,e.lanes=d,e;case be:return e=xt(19,n,t,c),e.elementType=be,e.lanes=d,e;case ye:return So(n,c,d,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ee:g=10;break e;case ue:g=9;break e;case W:g=11;break e;case Ne:g=14;break e;case ve:g=16,i=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=xt(g,n,t,c),t.elementType=e,t.type=i,t.lanes=d,t}function Nr(e,t,n,i){return e=xt(7,e,i,t),e.lanes=n,e}function So(e,t,n,i){return e=xt(22,e,i,t),e.elementType=ye,e.lanes=n,e.stateNode={isHidden:!1},e}function Us(e,t,n){return e=xt(6,e,null,t),e.lanes=n,e}function qs(e,t,n){return t=xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zm(e,t,n,i,c){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=mi(0),this.expirationTimes=mi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mi(0),this.identifierPrefix=i,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function Vs(e,t,n,i,c,d,g,y,C){return e=new Zm(e,t,n,y,C),t===1?(t=1,d===!0&&(t|=8)):t=0,d=xt(3,null,null,t),e.current=d,d.stateNode=e,d.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ns(d),e}function Jm(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$,key:i==null?null:""+i,children:e,containerInfo:t,implementation:n}}function ep(e){if(!e)return Gt;e=e._reactInternals;e:{if(hr(e)!==e||e.tag!==1)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(tt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(o(171))}if(e.tag===1){var n=e.type;if(tt(n))return Ed(e,n,t)}return t}function tp(e,t,n,i,c,d,g,y,C){return e=Vs(n,i,!0,e,c,d,g,y,C),e.context=ep(null),n=e.current,i=Je(),c=ir(n),d=Ft(i,c),d.callback=t??null,rr(n,d,c),e.current.lanes=c,kn(e,c,i),at(e,i),e}function Co(e,t,n,i){var c=t.current,d=Je(),g=ir(c);return n=ep(n),t.context===null?t.context=n:t.pendingContext=n,t=Ft(d,g),t.payload={element:e},i=i===void 0?null:i,i!==null&&(t.callback=i),e=rr(c,t,g),e!==null&&(Et(e,c,g,d),to(e,c,g)),g}function No(e){return e=e.current,e.child?(e.child.tag,e.child.stateNode):null}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Bs(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function Gm(){return null}var np=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ws(e){this._internalRoot=e}Eo.prototype.render=Ws.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));Co(e,t,null,null)},Eo.prototype.unmount=Ws.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jr(function(){Co(null,e,null,null)}),t[It]=null}};function Eo(e){this._internalRoot=e}Eo.prototype.unstable_scheduleHydration=function(e){if(e){var t=$c();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Kt.length&&t!==0&&t<Kt[n].priority;n++);Kt.splice(n,0,e),n===0&&qc(e)}};function Hs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function _o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ap(){}function eb(e,t,n,i,c){if(c){if(typeof i=="function"){var d=i;i=function(){var P=No(g);d.call(P)}}var g=tp(t,i,e,0,null,!1,!1,"",ap);return e._reactRootContainer=g,e[It]=g.current,Tn(e.nodeType===8?e.parentNode:e),jr(),g}for(;c=e.lastChild;)e.removeChild(c);if(typeof i=="function"){var y=i;i=function(){var P=No(C);y.call(P)}}var C=Vs(e,0,!1,null,null,!1,!1,"",ap);return e._reactRootContainer=C,e[It]=C.current,Tn(e.nodeType===8?e.parentNode:e),jr(function(){Co(t,C,n,i)}),C}function zo(e,t,n,i,c){var d=n._reactRootContainer;if(d){var g=d;if(typeof c=="function"){var y=c;c=function(){var C=No(g);y.call(C)}}Co(t,g,e,c)}else g=eb(n,t,e,c,i);return No(g)}Ac=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=wn(t.pendingLanes);n!==0&&(bi(t,n|1),at(t,Ae()),(Ce&6)===0&&(an=Ae()+500,er()))}break;case 13:jr(function(){var i=$t(e,1);if(i!==null){var c=Je();Et(i,e,1,c)}}),Bs(e,1)}},xi=function(e){if(e.tag===13){var t=$t(e,134217728);if(t!==null){var n=Je();Et(t,e,134217728,n)}Bs(e,134217728)}},Oc=function(e){if(e.tag===13){var t=ir(e),n=$t(e,t);if(n!==null){var i=Je();Et(n,e,t,i)}Bs(e,t)}},$c=function(){return _e},Fc=function(e,t){var n=_e;try{return _e=e,t()}finally{_e=n}},di=function(e,t,n){switch(t){case"input":if(ri(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var c=Wa(i);if(!c)throw Error(o(90));dc(i),ri(i,c)}}}break;case"textarea":gc(e,n);break;case"select":t=n.value,t!=null&&Ir(e,!!n.multiple,t,!1)}},Sc=As,Cc=jr;var tb={usingClientEntryPoint:!1,Events:[$n,Wr,Wa,kc,jc,As]},Gn={findFiberByHostInstance:gr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},rb={bundleType:Gn.bundleType,version:Gn.version,rendererPackageName:Gn.rendererPackageName,rendererConfig:Gn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:J.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=zc(e),e===null?null:e.stateNode},findFiberByHostInstance:Gn.findFiberByHostInstance||Gm,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ro=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ro.isDisabled&&Ro.supportsFiber)try{Na=Ro.inject(rb),Rt=Ro}catch{}}return ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tb,ot.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Hs(t))throw Error(o(200));return Jm(e,t,null,n)},ot.createRoot=function(e,t){if(!Hs(e))throw Error(o(299));var n=!1,i="",c=np;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Vs(e,1,!1,null,null,n,!1,i,c),e[It]=t.current,Tn(e.nodeType===8?e.parentNode:e),new Ws(t)},ot.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=zc(t),e=e===null?null:e.stateNode,e},ot.flushSync=function(e){return jr(e)},ot.hydrate=function(e,t,n){if(!_o(t))throw Error(o(200));return zo(null,e,t,!0,n)},ot.hydrateRoot=function(e,t,n){if(!Hs(e))throw Error(o(405));var i=n!=null&&n.hydratedSources||null,c=!1,d="",g=np;if(n!=null&&(n.unstable_strictMode===!0&&(c=!0),n.identifierPrefix!==void 0&&(d=n.identifierPrefix),n.onRecoverableError!==void 0&&(g=n.onRecoverableError)),t=tp(t,null,e,1,n??null,c,!1,d,g),e[It]=t.current,Tn(e),i)for(e=0;e<i.length;e++)n=i[e],c=n._getVersion,c=c(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,c]:t.mutableSourceEagerHydrationData.push(n,c);return new Eo(t)},ot.render=function(e,t,n){if(!_o(t))throw Error(o(200));return zo(null,e,t,!1,n)},ot.unmountComponentAtNode=function(e){if(!_o(e))throw Error(o(40));return e._reactRootContainer?(jr(function(){zo(null,null,e,!1,function(){e._reactRootContainer=null,e[It]=null})}),!0):!1},ot.unstable_batchedUpdates=As,ot.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!_o(n))throw Error(o(200));if(e==null||e._reactInternals===void 0)throw Error(o(38));return zo(e,t,n,!1,i)},ot.version="18.3.1-next-f1338f8080-20240426",ot}var bp;function gb(){if(bp)return Ks.exports;bp=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(a){console.error(a)}}return r(),Ks.exports=hb(),Ks.exports}var xp;function mb(){if(xp)return Mo;xp=1;var r=gb();return Mo.createRoot=r.createRoot,Mo.hydrateRoot=r.hydrateRoot,Mo}var bb=mb();const xb=".aid-root{color-scheme:light;--background: 0 0% 100%;--background-secondary: 210, 40%, 96%;--foreground: 222.2 47.4% 11.2%;--foreground-secondary: 253, 40%, 16%;--scroll: 0, 0%, 78%;--sidebar-menu-background: 202, 100%, 18%;--sidebar: 210, 40%, 96%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 42%;--popover: 0 0% 100%;--popover-foreground: 222.2 47.4% 11.2%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--card: 0 0% 100%;--card-foreground: 222.2 47.4% 11.2%;--primary: 201, 100%, 29%;--primary-text: 201, 100%, 29%;--primary-foreground: 210, 40%, 96%;--primary-hovered: 202, 54%, 67%;--primary-pressed: 202, 100%, 18%;--disabled: 223, 8%, 18%, .15;--disabled-foreground: 223, 8%, 18%, .65;--main: 252, 39%, 16%;--main-foreground: 210, 40%, 96%;--secondary: 201, 95%, 36%, .1;--secondary-foreground: 201, 100%, 29%, 1;--secondary-hovered: 202, 54%, 67%;--secondary-pressed: 202, 100%, 18%;--accent: 223, 8%, 18%, .06;--accent-foreground: 223, 8%, 18%, 1;--destructive: 359, 84%, 50%, 1;--destructive-foreground: 0, 0%, 100%, 1;--destructive-background: 359, 84%, 50%, .1;--destructive-hovered: 359, 84%, 58%, 1;--destructive-pressed: 359, 84%, 44%, 1;--ring: 215 20.2% 65.1%;--radius: 12px;--header-height: 64px;--table-radius: 10px;--table-background: 202, 100%, 18%;--table-header-background: 223, 8%, 18%;--table-header-opacity: .02;--table-background-hover: 223, 8%, 18%;--chart-card: 210, 27%, 95%;--filled-filter: 343, 79%, 45%;--success: 100.24, 76.58%, 43.53%;--warning: 39.91, 95.83%, 52.94%;--error: 359, 84%, 50%;--processing: 201.2, 100%, 29.41%;--success-background: 90, 100%, 96%;--warning-background: 50, 100%, 95%, 1;--error-background: 8, 100%, 97%, 1;--processing-background: 204, 42%, 95%, 1;--default-background: 223, 8%, 18%, .02;--transfer-hovered: 223, 8%, 18%, .04;--transfer-selected: 204, 42%, 95%;--transfer-selected-hovered: 203, 55%, 91%;--toast-background: 204, 42%, 95%;--toast-border: 202, 55%, 85%;--toast-success-background: 90, 100%, 96%;--toast-success-border: 94, 70%, 74%;--toast-error-background: 8, 100%, 97%;--toast-error-border: 5, 100%, 89%, 1;--toast-warning-background: 50, 100%, 95%;--toast-warning-border: 46, 100%, 78%;--toast-info-background: 204, 42%, 95%;--toast-info-border: 202, 55%, 85%;--custom-magenta: 330 84% 33%;--custom-peach: 36 100% 94%;--custom-orange-soft: 18 100% 63%;--custom-orange-strong: 27, 95%, 55%;--chart-stroke: 0, 0%, 0%;--gray-soft: 220, 27%, 92%;--gray-softer: 0 0% 95%}.aid-root.dark{color-scheme:dark;--background: 222 47% 11%;--background-secondary: 217, 33%, 17%;--foreground: 210 40% 98%;--foreground-secondary: 210, 40%, 90%;--scroll: 215, 14%, 34%;--sidebar-menu-background: 222, 47%, 11%;--sidebar: 217, 33%, 17%;--muted: 217 33% 17%;--muted-foreground: 215 20.2% 65.1%;--popover: 222 47% 11%;--popover-foreground: 210 40% 98%;--border: 217 33% 25%;--input: 217 33% 25%;--card: 222 47% 11%;--card-foreground: 210 40% 98%;--primary: 201, 100%, 35%;--primary-text: 201, 90%, 60%;--primary-foreground: 210, 40%, 98%;--primary-hovered: 201, 100%, 39%;--primary-pressed: 201, 100%, 29%;--disabled: 215, 14%, 34%, .2;--disabled-foreground: 210, 40%, 90%, .5;--main: 210, 40%, 90%;--main-foreground: 222, 47%, 11%;--secondary: 201, 95%, 40%, .2;--secondary-foreground: 201, 100%, 70%, 1;--secondary-hovered: 201, 90%, 75%;--secondary-pressed: 201, 100%, 60%;--accent: 210, 40%, 90%, .1;--accent-foreground: 210, 40%, 90%, 1;--destructive: 0, 100%, 65%, 1;--destructive-foreground: 210, 40%, 98%, 1;--destructive-background: 359, 100%, 65%, .1;--destructive-hovered: 0, 100%, 70%, 1;--destructive-pressed: 0, 100%, 60%, 1;--ring: 215 20.2% 50%;--radius: 12px;--header-height: 64px;--table-radius: 10px;--table-background: 222, 47%, 15%;--table-header-background: 0, 0%, 100%;--table-header-opacity: .04;--table-background-hover: 0, 0%, 100%;--chart-card: 210, 25%, 18%;--filled-filter: 343, 79%, 55%;--success: 100.24, 76.58%, 43.53%;--warning: 39.91, 95.83%, 52.94%;--error: 359.33, 100%, 65.1%;--processing: 201, 90%, 60%;--success-background: 100, 77%, 44%, .12;--warning-background: 40, 96%, 53%, .12;--error-background: 359, 100%, 65%, .12;--processing-background: 201, 90%, 60%, .12;--default-background: 0, 0%, 100%, .04;--transfer-hovered: 0, 0%, 100%, .06;--transfer-selected: 201, 95%, 40%, .2;--transfer-selected-hovered: 201, 95%, 40%, .3;--toast-background: 222, 47%, 15%;--toast-border: 217, 33%, 25%;--toast-success-background: 142, 70%, 15%;--toast-success-border: 142, 70%, 25%;--toast-error-background: 0, 70%, 15%;--toast-error-border: 0, 70%, 25%;--toast-warning-background: 48, 70%, 15%;--toast-warning-border: 48, 70%, 25%;--toast-info-background: 201, 70%, 15%;--toast-info-border: 201, 70%, 25%;--custom-magenta: 330 84% 33%;--custom-peach: 36 100% 94%;--custom-orange-soft: 18 100% 63%;--custom-orange-strong: 27, 95%, 55%;--chart-stroke: 0, 0%, 100%;--gray-soft: 217, 33%, 22%;--gray-softer: 217 33% 17%}.aid-root{--chart-1: 12 76% 61%;--chart-2: 173 58% 39%;--chart-3: 197 37% 24%;--chart-4: 43 74% 66%;--chart-5: 27 87% 67%}",Qs=25,vb={ru:"ru-RU",kk:"kk-KZ",en:"en-US"};function _t(r,a,o){return r===null?"\u2014":new Intl.NumberFormat(vb[a],{minimumFractionDigits:o,maximumFractionDigits:o}).format(r).replace(new RegExp("\\u202F","g"),"\xA0")}const Ys=r=>typeof r=="number"&&Number.isFinite(r)?r:null;function yb(r,a,o){const s=o==="asc"?1:-1,u=a.type==="number"||a.type==="integer",p=[],f=[];for(const h of r){const m=h[a.key];((u?Ys(m)===null:m==null)?f:p).push(h)}return p.sort((h,m)=>u?s*((Ys(h[a.key])??0)-(Ys(m[a.key])??0)):s*String(h[a.key]).localeCompare(String(m[a.key]))),[...p,...f]}function wb(r,a){let o=r.data;const s=a.query?.trim().toLowerCase();if(s){const b=r.columns.filter(S=>S.type==="string").map(S=>S.key);o=o.filter(S=>b.some(w=>String(S[w]??"").toLowerCase().includes(s)))}const u=r.columns.find(b=>b.key===a.sortKey);u&&(o=yb(o,u,a.dir??"asc"));const p=o.length,f=Math.max(1,Math.ceil(p/Qs)),h=Math.min(Math.max(1,Math.trunc(a.page)||1),f),m=(h-1)*Qs,v=o.slice(m,m+Qs);return{rows:v,page:h,pages:f,from:p===0?0:m+1,to:m+v.length,total:p}}function kb(r){return r.split(`
|
|
9
|
+
`).map(a=>{const o=a.trim();return o.startsWith("|")?/^\|[\s:|-]+\|?$/.test(o)?null:o.replace(/^\||\|$/g,"").split("|").map(s=>s.trim()).join(" \u2014 "):a}).filter(a=>a!==null).join(`
|
|
10
|
+
`).replace(/^\s{0,3}#+\s*/gm,"").replace(/[*_`]/g,"").trim()}function jb(r){const a=r.blocks.find(s=>s.kind==="plan"),o=[];return a&&a.passport.length>0&&o.push(a.passport.join(`
|
|
11
|
+
`)),o.push(kb(r.content)),a?.source&&o.push(`\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A: ${a.source.name}`),o.join(`
|
|
12
|
+
|
|
13
|
+
`)}function vp(r,a){return a.isLastInBranch?a.now.getTime()>Date.parse(r.expires_at)?"expired":"open":"answered"}function Sb(r,a){const o=a.trim().toLowerCase();return o?r.filter(s=>s.label.toLowerCase().includes(o)):r}function ta(r){return[...new Set(r.data.map(a=>a.period))].sort((a,o)=>a.localeCompare(o,void 0,{numeric:!0}))}const yp=r=>r.value_kind!=="level",wp=(r,a)=>{const o=ta(r),s=o.indexOf(a);return s>0?o[s-1]:void 0},kp=(r,a)=>r.national?.period===a?r.national.value:null,Cb=r=>{if(r.length===0)return null;const a=[...r].sort((s,u)=>s-u),o=Math.floor(a.length/2);return a.length%2?a[o]:(a[o-1]+a[o])/2},Nb=r=>[r.territory_code??r.territory_name,r.item].filter(a=>!!a).join("|"),Eb=r=>[r.territory_name??r.territory_code,r.item].filter(a=>!!a).join(", ");function Zs(r,a){const o=new Map;for(const s of r.data)s.period===a&&o.set(Nb(s),{name:Eb(s),value:s.value});return o}function _b(r,a,o){return a===null||o===null||o===void 0?null:yp(r)?a-o:o<=0?null:(a/o-1)*100}const jp=r=>r!==null&&Number.isFinite(r)?r:null;function zb(r,a){const o=Zs(r,a.period),s=wp(r,a.period),u=s?Zs(r,s):void 0,p=[...o.values()].map(m=>m.value).filter(m=>m!==null),f=p.reduce((m,v)=>m+v,0),h=a.base==="national"?kp(r,a.period):Cb(p);return[...o].map(([m,{name:v,value:b}])=>{const S=jp(u?_b(r,b,u.get(m)?.value):null);let w=b;a.mode==="deviation"?w=b===null||h===null?null:b-h:a.mode==="change"&&(w=S);const j=r.value_kind==="level"&&b!==null&&f!==0?b/f*100:null;return{key:m,name:v,value:b,display:jp(w),share:j,delta:S}}).sort((m,v)=>m.display===null||v.display===null?+(m.display===null)-+(v.display===null):v.display-m.display)}function Rb(r,a){return{deviation:[...Zs(r,a).values()].filter(o=>o.value!==null).length>=2,national:kp(r,a)!==null,change:wp(r,a)!==void 0}}function Mb(r,a){return a==="value"?r.unit.label:yp(r)?"\u043F.\u043F.":a==="deviation"?r.unit.label:"%"}function Pb(r){const a=r.filter(Number.isFinite);if(a.length<2)return!0;const o=Math.max(...a),s=Math.min(...a);return o<=0||o===s?!0:(o-s)/o>=.2}function Sp(r){switch(r){case"pdf":return"report";case"docx":return"document";case"pptx":return"presentation";case"xlsx":return"excel";case"csv":return"csv"}}const vt=r=>typeof r=="object"&&r!==null&&!Array.isArray(r),se=r=>typeof r=="string",Vt=r=>typeof r=="number"&&Number.isFinite(r),Js=r=>r===null||se(r),yt=(r,a)=>Array.isArray(r)&&r.every(o=>vt(o)&&a(o)),Po=r=>Array.isArray(r)&&r.every(se),Lb=["self","regions","districts"],Db=["string","number","integer","period"],Ib=["indicator","territory","topic","period","scope","plan_confirm"];function Tb(r){const{period:a}=r;return yt(r.indicators,o=>se(o.id)&&se(o.name)&&se(o.unit))&&yt(r.alternatives,o=>se(o.id)&&se(o.name))&&yt(r.territories,o=>se(o.code)&&se(o.name))&&se(r.scope)&&Lb.includes(r.scope)&&vt(a)&&se(a.label)&&typeof a.substituted=="boolean"&&Js(a.reason)&&se(r.breakdown)&&Po(r.passport)&&(r.source===void 0||vt(r.source)&&se(r.source.name))&&(r.methodology===void 0||vt(r.methodology)&&se(r.methodology.title)&&se(r.methodology.url))}function Ab(r){return se(r.section_id)&&yt(r.columns,a=>se(a.key)&&se(a.title)&&se(a.type)&&Db.includes(a.type))&&yt(r.data,()=>!0)&&typeof r.truncated=="boolean"&&Vt(r.total_rows)}function Ob(r){return se(r.topic)&&yt(r.sections,a=>se(a.id)&&Po(a.path)&&Vt(a.count))&&yt(r.indicators,a=>se(a.entity_id)&&se(a.name)&&se(a.unit)&&se(a.years)&&se(a.section))&&Vt(r.total)&&Po(r.examples)}function $b(r){return se(r.id)&&se(r.type)&&Ib.includes(r.type)&&se(r.slot)&&se(r.question)&&yt(r.options,a=>se(a.value)&&se(a.label)&&Js(a.hint))&&Js(r.default)&&typeof r.allow_free_text=="boolean"&&Vt(r.round)&&se(r.expires_at)}const Fb=["regional","trend","breakdown","multi"],Ub=["level","percent","index","rate"],qb=["pdf","docx","pptx","xlsx","csv"],Vb=["queued","running","done","failed","expired"],Cp=["territory_code","territory_name","item"],ra=r=>r==null,ln=r=>ra(r)||se(r),Bb=r=>se(r.period)&&(r.value===null||Vt(r.value))&&Cp.every(a=>ln(r[a])),Wb=r=>vt(r)&&se(r.title)&&se(r.url);function Hb(r){return ra(r)?!0:!vt(r)||!ln(r.label)?!1:ra(r.editions)?!0:vt(r.editions)&&Object.values(r.editions).every(Wb)}function Xb(r){const{unit:a,national:o}=r;return se(r.id)&&se(r.title)&&se(r.shape)&&Fb.includes(r.shape)&&vt(a)&&se(a.code)&&se(a.label)&&se(r.value_kind)&&Ub.includes(r.value_kind)&&Vt(r.decimals)&&se(r.freq)&&se(r.period)&&se(r.latest_period)&&yt(r.data,Bb)&&(ra(o)||vt(o)&&se(o.period)&&Vt(o.value))&&yt(r.kpis,s=>se(s.label)&&se(s.value)&&ln(s.sub)&&ln(s.tone))&&Po(r.findings)&&typeof r.truncated=="boolean"&&Vt(r.total_rows)&&Hb(r.methodology)&&ln(r.source_url)&&ln(r.source_name)}function Kb(r){const a={...r};for(const o of Cp)a[o]===null&&delete a[o];return a}function Qb(r){if(!se(r.title)||!Array.isArray(r.sections))return;const a=r.sections.filter(o=>vt(o)&&Xb(o)).map(o=>({...o,national:o.national??null,data:o.data.map(Kb)}));if(a.length!==0)return{kind:"dashboard",title:r.title,auto_open:r.auto_open===!0,sections:a}}const Np=r=>se(r.format)&&qb.includes(r.format)&&se(r.filename)&&se(r.title)&&se(r.download_url)&&Vt(r.size_bytes);function Yb(r){const{error:a}=r;return se(r.job_id)&&se(r.status)&&Vb.includes(r.status)&&yt(r.files,Np)&&(ra(a)||vt(a)&&se(a.code)&&se(a.message))}function Ep(r){if(vt(r))switch(r.kind){case"plan":return Tb(r)?r:void 0;case"table":return Ab(r)?r:void 0;case"catalog":return Ob(r)?r:void 0;case"clarification":return $b(r)?r:void 0;case"dashboard":return Qb(r);case"export":return yt(r.files,Np)?r:void 0;case"report":return Yb(r)?r:void 0;default:return}}const Gs="/chat/stream",Zb=100;class Ge extends Error{constructor(a,o,s=null){super(o),sn(this,"status"),sn(this,"code"),sn(this,"body"),this.name="ApiError",this.status=a,this.code=o,this.body=s}get resetAt(){const a=this.body;if(a&&typeof a=="object"&&"reset_at"in a&&typeof a.reset_at=="string")return a.reset_at}}function Jb(r,a){if(r&&typeof r=="object"){if("detail"in r&&typeof r.detail=="string"&&r.detail)return r.detail;if("errors"in r&&Array.isArray(r.errors)){const o=r.errors[0];if(o&&typeof o=="object"&&"code"in o&&typeof o.code=="string"&&o.code)return o.code}}return`http_${a}`}async function Gb(r){const a=await r.text();if(!a)return null;try{return JSON.parse(a)}catch{return null}}async function el(r){const a=await Gb(r);return new Ge(r.status,Jb(a,r.status),a)}const na=r=>typeof r=="string"&&r.trim()!==""?r.trim():void 0,e0=["\u041E \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435: ","\u041A\u0430\u043A \u043E\u0442\u0432\u0435\u0447\u0430\u0442\u044C: "],t0="\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u0434\u0438\u0430\u043B\u043E\u0433:",_p=`
|
|
14
|
+
\u041D\u043E\u0432\u044B\u0439 \u0432\u043E\u043F\u0440\u043E\u0441: `;function r0(r){let a=r;if(e0.some(o=>a.startsWith(o))){const o=a.indexOf(`
|
|
15
|
+
|
|
16
|
+
`);o!==-1&&(a=a.slice(o+2))}if(a.startsWith(t0)){const o=a.lastIndexOf(_p);o!==-1&&(a=a.slice(o+_p.length))}return a}const n0=["streaming","done","stopped","error"];function a0(r){return{...typeof r.id=="string"?{id:r.id}:{},node:typeof r.node=="string"?r.node:"",status:r.status==="running"?"running":"done",attempt:typeof r.attempt=="number"?r.attempt:1,...typeof r.durationMs=="number"?{durationMs:r.durationMs}:{},...typeof r.label=="string"?{label:r.label}:{},...typeof r.total=="number"||r.total===null?{total:r.total}:{},...na(r.detail)!==void 0?{detail:na(r.detail)}:{},...na(r.result)!==void 0?{result:na(r.result)}:{},...typeof r.startedAt=="number"?{startedAt:r.startedAt}:{}}}function zp(r){return{id:r.id,parentId:r.parent_id,role:r.role==="user"?"user":"assistant",content:r.role==="user"?r0(r.content):r.content,mode:r.mode,status:n0.find(a=>a===r.status)??"done",steps:r.steps.map(a0),durationMs:r.duration_ms,rating:r.rating,feedback:r.feedback,feedbackReason:r.feedback_reason??"",attachments:r.attachments??[],blocks:(r.blocks??[]).flatMap(a=>{const o=Ep(a);return o!=null?[o]:[]}),createdAt:r.created_at}}const o0=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Rp=r=>o0.test(r);class Mp extends Error{constructor(a){super(a),this.name="StreamFailure"}}const i0=(r,a)=>Date.parse(r.createdAt)-Date.parse(a.createdAt)||(r.id<a.id?-1:r.id>a.id?1:0);function Pp(r){const a=new Map,o=new Map;for(const s of r){a.set(s.id,s);const u=o.get(s.parentId);u?u.push(s):o.set(s.parentId,[s])}for(const s of o.values())s.sort(i0);return{byId:a,children:o}}function s0(r,a){const o=[],s=new Set;let u=r.byId.get(a);for(;u&&!s.has(u.id);)s.add(u.id),o.push(u),u=u.parentId===null?void 0:r.byId.get(u.parentId);return o.reverse()}function Lp(r,a){if(!r.byId.has(a))return null;let o=a;for(;;){const s=r.children.get(o),u=s?.[s.length-1];if(!u)return o;o=u.id}}function l0(r,a){const o=r.byId.get(a);if(!o)return{list:[],position:-1};const s=r.children.get(o.parentId)??[];return{list:s,position:s.findIndex(u=>u.id===a)}}function Dp(r,a){if(a&&r.byId.has(a))return a;const o=r.children.get(null),s=o?.[o.length-1];return s?Lp(r,s.id):null}let c0=0;const d0=r=>`temp-${r}-${Date.now().toString(36)}-${(c0++).toString(36)}`;function tl(r,a,o){return{id:d0(r==="user"?"user":"stream"),parent_id:o,role:r,content:"",mode:a,status:r==="user"?"done":"streaming",steps:[],duration_ms:null,rating:null,feedback:"",created_at:new Date().toISOString()}}function u0(r){return!r||r.messages.length===0?null:Dp(Pp(r.messages.map(zp)),r.current_leaf_id)}function p0(r,a){if(r.regenerateOf!=null){const u=a?.messages.find(p=>p.id===r.regenerateOf);return{assistant:tl("assistant",r.mode,u?.parent_id??null)}}const o=r.parentId===void 0?u0(a):r.parentId||null,s={...tl("user",r.mode,o),content:r.query,...r.file?{attachments:[{name:r.file.name,url:""}]}:{}};return{user:s,assistant:tl("assistant",r.mode,s.id)}}function f0(r,a,o){const s=new Map([[a.assistantId,o.assistantMessageId]]);a.userId!=null&&s.set(a.userId,o.userMessageId);const u=p=>p!=null?s.get(p)??p:p;return{...r,id:o.threadId,current_leaf_id:u(r.current_leaf_id),messages:r.messages.map(p=>s.has(p.id)||p.parent_id!=null&&s.has(p.parent_id)?{...p,id:u(p.id)??p.id,parent_id:u(p.parent_id)}:p)}}function h0(r,a){return{...r,content:a.text,steps:a.steps.map(o=>({...o})),...a.attachments.length>0?{attachments:a.attachments}:{},...a.blocks.length>0?{blocks:a.blocks.map(o=>({...o}))}:{}}}function g0(r,a,o,s){const u={...r,status:a,duration_ms:Date.now()-s};return a==="error"&&!r.content?{...u,content:o}:u}const m0=["thread_busy","mode_overloaded","daily_limit","rate_limit","concurrency_limit","file_too_large","file_not_allowed","invalid_query","invalid_parent","mode_not_found","thread_not_found","interrupted"],b0=r=>m0.includes(r);function x0(r){if(r instanceof Ge)return r.code;if(r instanceof Mp)return r.message}function Lo(r){const a=x0(r);return a!=null&&b0(a)?{kind:"code",code:a}:r instanceof Ge?{kind:"status",status:r.status}:{kind:"generic"}}async function Do(r,a,o={}){const s=o.method??"GET",u=new Headers(o.headers),p=await r.headers?.({method:s})??{};for(const[f,h]of Object.entries(p))u.set(f,h);return(r.fetch??fetch)(`${r.baseUrl}${a}`,{...o,method:s,headers:u,...r.credentials?{credentials:r.credentials}:{}})}const Ip="text/event-stream";function v0({query:r,mode:a,file:o,parentId:s,regenerateOf:u,clarification:p},f){const h=new FormData;return h.set("mode",a),u==null&&h.set("query",r),f!=null&&h.set("thread_id",f),s!==void 0&&h.set("parent_id",s),u!=null&&h.set("regenerate_of",u),o&&h.set("file",o),p&&h.set("clarification",JSON.stringify(p)),h}function y0(r,a,o){return Do(r,Gs,{method:"POST",body:a,headers:{Accept:Ip},signal:o})}function w0(r,a,o){return Do(r,`${Gs}/${a}`,{headers:{Accept:Ip},signal:o})}async function k0(r,a){const o=await Do(r,`${Gs}/${a}/stop`,{method:"POST"});if(!o.ok)throw await el(o)}async function j0(r){if(!r.ok)throw await el(r);if(r.body==null)throw new Error("empty_stream");return r.body}const rl="/api/v1/widget",nl="aid_visitor",Tp=4e3,al=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Ap=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}:[\w-]{10,100}$/i,S0=()=>{if(typeof crypto<"u"&&typeof crypto.randomUUID=="function")return crypto.randomUUID();const r=new Uint8Array(16);crypto.getRandomValues(r),r[6]=(r[6]??0)&15|64,r[8]=(r[8]??0)&63|128;const a=Array.from(r,o=>o.toString(16).padStart(2,"0")).join("");return`${a.slice(0,8)}-${a.slice(8,12)}-${a.slice(12,16)}-${a.slice(16,20)}-${a.slice(20)}`},C0=(r,a)=>{if(r&&al.test(r))return r;try{const s=a?.getItem(nl);if(s&&(al.test(s)||Ap.test(s)))return s}catch{}const o=S0();try{a?.setItem(nl,o)}catch{}return o},N0=/\/api\/v1\/attachments\/([0-9a-f-]{36})\/?(?:[?#].*)?$/i,Io=(r,a)=>{const o=N0.exec(r);if(!o?.[1]){const s=/\/api\/v1\/widget\/attachments\/([0-9a-f-]{36})\/?$/i.exec(r);return s?.[1]?`${ol(a)}/attachments/${s[1]}`:null}return`${ol(a)}/attachments/${o[1]}`},ol=r=>`${r.replace(/\/+$/,"")}${rl}`,E0=r=>{if(r==="")return r;let a;try{a=new URL(r)}catch{throw new TypeError(`AiDanaChat: api-url must be an absolute http(s) URL, got "${r}"`)}if(a.protocol!=="https:"&&a.protocol!=="http:")throw new TypeError(`AiDanaChat: api-url must be an http(s) URL, got "${r}"`);return r},il=r=>r&&(/^https:\/\//i.test(r)||/^\/(?!\/)/.test(r)||/^data:image\/(?:png|jpeg|webp|gif);/i.test(r))?r:void 0,To=r=>typeof r=="object"&&r!==null&&!Array.isArray(r),_0=r=>{if(!To(r)||!To(r.site)||!Array.isArray(r.modes)||!r.modes.every(a=>To(a)&&typeof a.slug=="string")||!To(r.visitor))throw new Error("bad config");return r},z0=r=>{const a={};if(!r||typeof r!="object")return a;const o=j=>{const _=r[j];return typeof _=="string"&&_?_:void 0},s=o("primary"),u=o("font"),p=il(o("logoUrl")),f=o("title"),h=o("scheme");s&&(a.primary=s),u&&(a.font=u),p&&(a.logoUrl=p),f&&(a.title=f),(h==="light"||h==="dark"||h==="auto")&&(a.scheme=h);const m=o("launcher");(m==="icon"||m==="label")&&(a.launcher=m);const v=o("launcherLabel");v&&(a.launcherLabel=v);const b=o("launcherShape");(b==="circle"||b==="rounded"||b==="square")&&(a.launcherShape=b),(typeof r.radius=="number"||typeof r.radius=="string"&&r.radius)&&(a.radius=r.radius);for(const j of["background","foreground","bubble","border"]){const _=o(j);_&&(a[j]=_)}const S=j=>{const _=r[j],E=typeof _=="number"?_:typeof _=="string"&&_?Number(_):NaN;return Number.isFinite(E)?E:void 0};for(const j of["windowWidth","windowHeight","offsetX","offsetY"]){const _=S(j);_!==void 0&&(a[j]=_)}const w=o("position");return(w==="bottom-right"||w==="bottom-left")&&(a.position=w),a},Op=r=>{throw r instanceof Ge||r instanceof Error&&r.name==="AbortError"?r:new Ge(0,"network",null)},R0=({apiUrl:r,siteKey:a,visitorId:o,rememberVisitor:s,fetch:u})=>{let p=o;const f=E0(r),h=encodeURIComponent,m={baseUrl:ol(f),headers:()=>({"X-Visitor-Id":p,...a?{"X-Widget-Key":a}:{}}),credentials:"omit",...u?{fetch:u}:{}},v=async(w,j={})=>{const _=await Do(m,w,j).catch(Op);if(!_.ok)throw await el(_);return _},b=async(w,j)=>(await v(w,j)).json(),S=(w,j)=>({method:w,headers:{"Content-Type":"application/json"},body:JSON.stringify(j)});return{transport:m,apiUrl:f,config:async()=>_0(await b("/config")),health:()=>b("/modes/health"),threads:()=>b("/threads?limit=50"),thread:w=>b(`/threads/${h(w)}`),setLeaf:async(w,j)=>{await v(`/threads/${h(w)}`,S("PATCH",{current_leaf_id:j}))},deleteThread:async w=>{await v(`/threads/${h(w)}`,{method:"DELETE"})},rate:async(w,j)=>{await v(`/messages/${h(w)}/rating`,S("POST",{rating:j}))},feedback:async(w,j,_)=>{await v(`/messages/${h(w)}/feedback`,S("POST",_?{feedback:j,reason:_}:{feedback:j}))},stop:w=>k0(m,h(w)).catch(Op),createReport:(w,j)=>b(`/messages/${h(w)}/report`,S("POST",{language:j})),reportStatus:w=>al.test(w)?b(`/report-jobs/${w}`):Promise.reject(new Ge(0,"bad_job_id",null)),request:w=>v(w),attachment:async w=>{const j=Io(w,f);if(!j)throw new Ge(0,"not_attachment",null);const _=j.slice(m.baseUrl.length),E=await(await v(_)).blob();return URL.createObjectURL(E)},adoptVisitor:w=>!w||!Ap.test(w)||w===p?!1:(p=w,s?.(w),!0)}},sl=["kk","ru","en"],M0=r=>sl.includes(r),$p=r=>{const a=[r,typeof document<"u"?document.documentElement.lang:void 0,typeof navigator<"u"?navigator.language:void 0];for(const o of a){const s=o?.toLowerCase().split("-")[0];if(M0(s))return s}return"ru"},Fp={title:"AI-Dana",open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0447\u0430\u0442",unreadAnswers:"\u043D\u043E\u0432\u044B\u0445 \u043E\u0442\u0432\u0435\u0442\u043E\u0432: {count}",ask:"\u0417\u0430\u0434\u0430\u0442\u044C \u0432\u043E\u043F\u0440\u043E\u0441",close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",history:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F",closeHistory:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u0441\u0442\u043E\u0440\u0438\u044E",newChat:"\u041D\u043E\u0432\u044B\u0439 \u0447\u0430\u0442",untitled:"\u041D\u043E\u0432\u044B\u0439 \u0447\u0430\u0442",historyEmpty:"\u041F\u043E\u043A\u0430 \u043D\u0435\u0442 \u0447\u0430\u0442\u043E\u0432",historyError:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0441\u0442\u043E\u0440\u0438\u044E",delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",deleteConfirm:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0447\u0430\u0442?",deleteYes:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",deleteNo:"\u041E\u0442\u043C\u0435\u043D\u0430",deleteError:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u0447\u0430\u0442",modeLabel:"\u0420\u0435\u0436\u0438\u043C \u043E\u0442\u0432\u0435\u0442\u0430","health.idle":"\u0421\u0432\u043E\u0431\u043E\u0434\u0435\u043D","health.busy":"\u0417\u0430\u043D\u044F\u0442","health.unavailable":"\u041D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",placeholder:"\u0417\u0430\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B",inputLabel:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435",send:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",stop:"\u041E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C",attach:"\u041F\u0440\u0438\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0444\u0430\u0439\u043B",attachOne:"\u041C\u043E\u0436\u043D\u043E \u043F\u0440\u0438\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \u043E\u0434\u0438\u043D \u0444\u0430\u0439\u043B",attachHint:"\u041C\u043E\u0436\u043D\u043E \u043F\u0440\u0438\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u043E\u0434\u0438\u043D \u0444\u0430\u0439\u043B: XLS, XLSX, CSV, TXT \u0438\u043B\u0438 MD \u0434\u043E {size} \u041C\u0411",disclaimer:"\u0418\u0418 \u043C\u043E\u0436\u0435\u0442 \u043E\u0448\u0438\u0431\u0430\u0442\u044C\u0441\u044F \u2014 \u043F\u0440\u043E\u0432\u0435\u0440\u044F\u0439\u0442\u0435 \u0432\u0430\u0436\u043D\u0443\u044E \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E",removeFile:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B",counter:"{count} / {max}",counterLimit:"\u0414\u043E\u0441\u0442\u0438\u0433\u043D\u0443\u0442 \u043F\u0440\u0435\u0434\u0435\u043B \u0437\u043D\u0430\u043A\u043E\u0432",counterOver:"\u041F\u0440\u0435\u0432\u044B\u0448\u0435\u043D \u043F\u0440\u0435\u0434\u0435\u043B \u0437\u043D\u0430\u043A\u043E\u0432",fileTooLarge:"\u0424\u0430\u0439\u043B \xAB{name}\xBB \u0431\u043E\u043B\u044C\u0448\u0435 {size} \u041C\u0411",fileType:"\u0424\u0430\u0439\u043B \xAB{name}\xBB \u043D\u0435 \u043F\u043E\u0434\u0445\u043E\u0434\u0438\u0442. \u041C\u043E\u0436\u043D\u043E \u043F\u0440\u0438\u043A\u0440\u0435\u043F\u0438\u0442\u044C XLS, XLSX, CSV, TXT \u0438\u043B\u0438 MD",modeUnavailable:"\u0420\u0435\u0436\u0438\u043C \u0441\u0435\u0439\u0447\u0430\u0441 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439",greeting:"\u0427\u0435\u043C \u043C\u043E\u0433\u0443 \u043F\u043E\u043C\u043E\u0447\u044C?",loading:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430\u2026",configError:"\u0427\u0430\u0442 \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",overloaded:"\u0421\u0435\u0440\u0432\u0438\u0441 \u0441\u0435\u0439\u0447\u0430\u0441 \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043D. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0437\u0436\u0435.",retry:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C",dismiss:"\u0421\u043A\u0440\u044B\u0442\u044C",scrollDown:"\u041F\u0440\u043E\u043A\u0440\u0443\u0442\u0438\u0442\u044C \u0432\u043D\u0438\u0437",settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438","settings.language":"\u042F\u0437\u044B\u043A","settings.theme":"\u0422\u0435\u043C\u0430","settings.themeLight":"\u0421\u0432\u0435\u0442\u043B\u0430\u044F","settings.themeDark":"\u0422\u0451\u043C\u043D\u0430\u044F","settings.themeAuto":"\u041A\u0430\u043A \u0432 \u0441\u0438\u0441\u0442\u0435\u043C\u0435","settings.model":"\u041C\u043E\u0434\u0435\u043B\u044C \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E","settings.modelHint":"\u0421 \u043D\u0435\u0451 \u043D\u0430\u0447\u0438\u043D\u0430\u0435\u0442\u0441\u044F \u043A\u0430\u0436\u0434\u044B\u0439 \u043D\u043E\u0432\u044B\u0439 \u0447\u0430\u0442","settings.shortcuts":"\u0413\u043E\u0440\u044F\u0447\u0438\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438","shortcut.search":"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0447\u0430\u0442\u0430\u043C","shortcut.newChat":"\u041D\u043E\u0432\u044B\u0439 \u0447\u0430\u0442","shortcut.sidebar":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0438\u043B\u0438 \u0441\u043A\u0440\u044B\u0442\u044C \u043F\u0430\u043D\u0435\u043B\u044C","shortcut.close":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043E\u043A\u043D\u043E",search:"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0447\u0430\u0442\u0430\u043C",searchEmpty:"\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E",collapseSidebar:"\u0421\u043A\u0440\u044B\u0442\u044C \u043F\u0430\u043D\u0435\u043B\u044C",expandSidebar:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043F\u0430\u043D\u0435\u043B\u044C",expand:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043D\u0430 \u0432\u0441\u044E \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443",shrink:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",examples:"\u041F\u0440\u0438\u043C\u0435\u0440\u044B \u0437\u0430\u043F\u0440\u043E\u0441\u043E\u0432","examples.whatCanDo":"\u0427\u0442\u043E \u043C\u043E\u0436\u043D\u043E \u0441\u0434\u0435\u043B\u0430\u0442\u044C","group.pinned":"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0451\u043D\u043D\u044B\u0435","group.today":"\u0421\u0435\u0433\u043E\u0434\u043D\u044F","group.yesterday":"\u0412\u0447\u0435\u0440\u0430","group.week":"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435 7 \u0434\u043D\u0435\u0439","group.earlier":"\u0420\u0430\u043D\u0435\u0435","errors.thread_busy":"AI-Dana \u0435\u0449\u0451 \u043E\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0432 \u044D\u0442\u043E\u043C \u0447\u0430\u0442\u0435. \u0414\u043E\u0436\u0434\u0438\u0442\u0435\u0441\u044C \u043E\u0442\u0432\u0435\u0442\u0430 \u0438\u043B\u0438 \u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0435 \u0435\u0433\u043E.","errors.mode_overloaded":"AI-Dana \u0441\u0435\u0439\u0447\u0430\u0441 \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043D\u0430, \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0447\u0443\u0442\u044C \u043F\u043E\u0437\u0436\u0435","errors.daily_limit":"\u041B\u0438\u043C\u0438\u0442 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u043D\u0430 \u0441\u0435\u0433\u043E\u0434\u043D\u044F \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D","errors.rate_limit":"\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u043D\u043E\u0433\u043E \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u043F\u043E\u0434\u0440\u044F\u0434. \u041F\u043E\u0434\u043E\u0436\u0434\u0438\u0442\u0435 \u043C\u0438\u043D\u0443\u0442\u0443.","errors.ip_limit":"\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u043D\u043E\u0433\u043E \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u0438\u0437 \u0432\u0430\u0448\u0435\u0439 \u0441\u0435\u0442\u0438 \u0441\u0435\u0433\u043E\u0434\u043D\u044F. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0437\u0430\u0432\u0442\u0440\u0430.","errors.concurrency_limit":"\u0414\u043E\u0436\u0434\u0438\u0442\u0435\u0441\u044C \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0433\u043E \u043E\u0442\u0432\u0435\u0442\u0430","errors.file_too_large":"\u0424\u0430\u0439\u043B \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0439","errors.file_not_allowed":"\u042D\u0442\u043E\u0442 \u0444\u0430\u0439\u043B \u043D\u0435\u043B\u044C\u0437\u044F \u043F\u0440\u0438\u043A\u0440\u0435\u043F\u0438\u0442\u044C. \u041F\u043E\u0434\u0445\u043E\u0434\u044F\u0442 XLS, XLSX, CSV, TXT \u0438 MD","errors.invalid_query":"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u043F\u0443\u0441\u0442\u043E\u0435 \u0438\u043B\u0438 \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u0434\u043B\u0438\u043D\u043D\u043E\u0435","errors.invalid_parent":"\u042D\u0442\u043E \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0431\u043E\u043B\u044C\u0448\u0435 \u043D\u0435\u043B\u044C\u0437\u044F \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C","errors.mode_not_found":"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C \u0441\u0435\u0439\u0447\u0430\u0441 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D. \u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0440\u0435\u0436\u0438\u043C.","errors.thread_not_found":"\u0427\u0430\u0442 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D","errors.interrupted":"\u041E\u0442\u0432\u0435\u0442 \u043F\u0440\u0435\u0440\u0432\u0430\u043D","errors.code":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043E\u0442\u0432\u0435\u0442 (\u043A\u043E\u0434 {code}).","errors.generic":"\u041F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F.","errors.network":"\u041D\u0435\u0442 \u0441\u0432\u044F\u0437\u0438 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043E\u043C. \u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435.","errors.render":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u044D\u0442\u043E \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435.","agent.thinking":"\u0414\u0443\u043C\u0430\u044E\u2026","agent.done":"\u0413\u043E\u0442\u043E\u0432\u043E","agent.stopped":"\u041E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E","agent.stopping":"\u041E\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u044E\u2026","agent.interrupted":"\u041E\u0442\u0432\u0435\u0442 \u043F\u0440\u0435\u0440\u0432\u0430\u043D","agent.answerStopped":"\u041E\u0442\u0432\u0435\u0442 \u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D. \u0417\u0430\u0434\u0430\u0439\u0442\u0435 \u0432\u043E\u043F\u0440\u043E\u0441 \u0437\u0430\u043D\u043E\u0432\u043E, \u0435\u0441\u043B\u0438 \u043D\u0443\u0436\u043D\u043E","agent.seconds":"{value} \u0441","agent.attempt":"\u043F\u043E\u043F\u044B\u0442\u043A\u0430 {count}","agent.showSteps":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0448\u0430\u0433\u0438","agent.hideSteps":"\u0421\u043A\u0440\u044B\u0442\u044C \u0448\u0430\u0433\u0438","steps.router":"\u0420\u0430\u0437\u0431\u0438\u0440\u0430\u044E \u0432\u043E\u043F\u0440\u043E\u0441","steps.context_builder":"\u0418\u0449\u0443 \u043D\u0443\u0436\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435","steps.sql_architect":"\u0413\u043E\u0442\u043E\u0432\u043B\u044E \u0440\u0430\u0441\u0447\u0451\u0442","steps.executor":"\u0421\u0447\u0438\u0442\u0430\u044E \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u0438","steps.responder":"\u0413\u043E\u0442\u043E\u0432\u043B\u044E \u043E\u0442\u0432\u0435\u0442","steps.rag":"\u0418\u0449\u0443 \u0432 \u0441\u043F\u0440\u0430\u0432\u043E\u0447\u043D\u044B\u0445 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u0430\u0445","steps.sql":"\u0418\u0449\u0443 \u0434\u0430\u043D\u043D\u044B\u0435 \u0432 \u043E\u0442\u043A\u0440\u044B\u0442\u044B\u0445 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0430\u0445","steps.document":"\u0427\u0438\u0442\u0430\u044E \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442","steps.understand":"\u0420\u0430\u0437\u0431\u0438\u0440\u0430\u044E \u0432\u043E\u043F\u0440\u043E\u0441","steps.search_law":"\u0418\u0449\u0443 \u0432 \u0437\u0430\u043A\u043E\u043D\u0430\u0445","steps.run_sql":"\u0421\u0447\u0438\u0442\u0430\u044E \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u0438","steps.run_query":"\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0434\u0430\u043D\u043D\u044B\u0435","steps.data":"\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0434\u0430\u043D\u043D\u044B\u0435","steps.lookup_taxpayer":"\u0418\u0449\u0443 \u043D\u0430\u043B\u043E\u0433\u043E\u043F\u043B\u0430\u0442\u0435\u043B\u044C\u0449\u0438\u043A\u0430","steps.find_taxpayer":"\u0418\u0449\u0443 \u043A\u043E\u043C\u043F\u0430\u043D\u0438\u044E \u043F\u043E \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u044E","steps.ask_clarification":"\u0423\u0442\u043E\u0447\u043D\u044F\u044E \u0432\u043E\u043F\u0440\u043E\u0441","steps.answer":"\u0413\u043E\u0442\u043E\u0432\u043B\u044E \u043E\u0442\u0432\u0435\u0442","steps.think":"\u0410\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u044E \u043D\u0430\u0439\u0434\u0435\u043D\u043D\u043E\u0435","steps.file":"\u0427\u0438\u0442\u0430\u044E \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442","waiting.router.1":"\u0412\u044B\u0431\u0438\u0440\u0430\u044E, \u0433\u0434\u0435 \u0438\u0441\u043A\u0430\u0442\u044C \u043E\u0442\u0432\u0435\u0442\u2026","waiting.router.2":"\u0421\u043E\u043F\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u044E \u0432\u043E\u043F\u0440\u043E\u0441 \u0441 \u0434\u0430\u043D\u043D\u044B\u043C\u0438 \u0438 \u043D\u043E\u0440\u043C\u0430\u043C\u0438\u2026","waiting.responder.1":"\u0421\u0432\u0435\u0440\u044F\u044E \u0446\u0438\u0444\u0440\u044B \u0441 \u0434\u0430\u043D\u043D\u044B\u043C\u0438\u2026","waiting.responder.2":"\u041F\u0440\u043E\u0432\u0435\u0440\u044F\u044E \u0441\u0441\u044B\u043B\u043A\u0438 \u043D\u0430 \u043D\u043E\u0440\u043C\u044B\u2026","waiting.responder.3":"\u041F\u0440\u0438\u0432\u043E\u0436\u0443 \u043E\u0442\u0432\u0435\u0442 \u0432 \u043F\u043E\u0440\u044F\u0434\u043E\u043A\u2026","waiting.law.1":"\u0427\u0438\u0442\u0430\u044E \u043D\u0430\u0439\u0434\u0435\u043D\u043D\u044B\u0435 \u0441\u0442\u0430\u0442\u044C\u0438\u2026","waiting.law.2":"\u0421\u0432\u0435\u0440\u044F\u044E \u0440\u0435\u0434\u0430\u043A\u0446\u0438\u0438 \u043D\u043E\u0440\u043C\u2026","waiting.data.1":"\u0421\u0447\u0438\u0442\u0430\u044E \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u0438\u2026","waiting.data.2":"\u0421\u0432\u0435\u0440\u044F\u044E \u0438\u0442\u043E\u0433\u0438\u2026","waiting.executor.1":"\u0421\u0432\u0435\u0440\u044F\u044E \u0438\u0442\u043E\u0433\u0438\u2026","waiting.executor.2":"\u041F\u0440\u0438\u0432\u043E\u0436\u0443 \u0442\u0430\u0431\u043B\u0438\u0446\u0443 \u0432 \u043F\u043E\u0440\u044F\u0434\u043E\u043A\u2026","waiting.taxpayer.1":"\u0421\u043E\u0431\u0438\u0440\u0430\u044E \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0443\u2026","waiting.taxpayer.2":"\u0421\u043C\u043E\u0442\u0440\u044E \u043F\u043E\u0441\u0442\u0443\u043F\u043B\u0435\u043D\u0438\u044F \u043F\u043E \u0433\u043E\u0434\u0430\u043C\u2026","waiting.findCompany.1":"\u0421\u0432\u0435\u0440\u044F\u044E \u043F\u043E\u0445\u043E\u0436\u0438\u0435 \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u044F\u2026","waiting.findCompany.2":"\u0412\u044B\u0431\u0438\u0440\u0430\u044E \u0441\u0430\u043C\u043E\u0435 \u0442\u043E\u0447\u043D\u043E\u0435 \u0441\u043E\u0432\u043F\u0430\u0434\u0435\u043D\u0438\u0435\u2026","waiting.think.1":"\u0421\u043E\u043F\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u044E \u043D\u0430\u0439\u0434\u0435\u043D\u043D\u043E\u0435 \u0441 \u0432\u043E\u043F\u0440\u043E\u0441\u043E\u043C\u2026","waiting.think.2":"\u0420\u0435\u0448\u0430\u044E, \u0447\u0442\u043E \u043F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0435\u0449\u0451\u2026","waiting.unknown.1":"\u0415\u0449\u0451 \u043D\u0435\u043C\u043D\u043E\u0433\u043E\u2026","waiting.unknown.2":"\u041F\u0440\u043E\u0432\u0435\u0440\u044F\u044E \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u2026","steps.unknown":"\u0420\u0430\u0431\u043E\u0442\u0430\u044E \u043D\u0430\u0434 \u043E\u0442\u0432\u0435\u0442\u043E\u043C",copy:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",copied:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E",download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C",regenerate:"\u041E\u0442\u0432\u0435\u0442\u0438\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",edit:"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435",editLabel:"\u0422\u0435\u043A\u0441\u0442 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F",cancel:"\u041E\u0442\u043C\u0435\u043D\u0430",actionsLabel:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0441 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435\u043C",rate:"\u041E\u0446\u0435\u043D\u0438\u0442\u044C \u043D\u0430 {count} \u0438\u0437 5",ratingError:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043E\u0446\u0435\u043D\u043A\u0443",feedbackOpen:"\u041E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u0437\u044B\u0432",feedbackEdit:"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043E\u0442\u0437\u044B\u0432",feedbackLabel:"\u041E\u0442\u0437\u044B\u0432 \u043E\u0431 \u043E\u0442\u0432\u0435\u0442\u0435",feedbackPlaceholder:"\u0427\u0442\u043E \u0431\u044B\u043B\u043E \u043D\u0435 \u0442\u0430\u043A \u0441 \u043E\u0442\u0432\u0435\u0442\u043E\u043C?",save:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C","branch.label":"\u0412\u0430\u0440\u0438\u0430\u043D\u0442\u044B","branch.prev":"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442","branch.next":"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442","branch.error":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0432\u0430\u0440\u0438\u0430\u043D\u0442","limit.remaining":"\u0421\u0435\u0433\u043E\u0434\u043D\u044F \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C {count} \u0438\u0437 {limit} \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439","limit.exhausted":"\u041B\u0438\u043C\u0438\u0442 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u043D\u0430 \u0441\u0435\u0433\u043E\u0434\u043D\u044F \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D","limit.until":"\u041B\u0438\u043C\u0438\u0442 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D. \u041D\u043E\u0432\u044B\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u2014 \u043F\u043E\u0441\u043B\u0435 {time}.","blocks.data":"\u0414\u0430\u043D\u043D\u044B\u0435","blocks.hideData":"\u0421\u043A\u0440\u044B\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435","blocks.methodology":"\u041C\u0435\u0442\u043E\u0434\u043E\u043B\u043E\u0433\u0438\u044F","blocks.passport":"\u0427\u0442\u043E \u043F\u043E\u0441\u0447\u0438\u0442\u0430\u043D\u043E","blocks.indicator":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u044C","blocks.territory":"\u0422\u0435\u0440\u0440\u0438\u0442\u043E\u0440\u0438\u044F","blocks.period":"\u041F\u0435\u0440\u0438\u043E\u0434","blocks.breakdown":"\u0420\u0430\u0437\u0440\u0435\u0437","blocks.breakdown.sex":"\u043F\u043E \u043F\u043E\u043B\u0443","blocks.breakdown.age":"\u043F\u043E \u0432\u043E\u0437\u0440\u0430\u0441\u0442\u0443","blocks.breakdown.urban_rural":"\u0433\u043E\u0440\u043E\u0434 \u0438 \u0441\u0435\u043B\u043E","blocks.breakdown.activity":"\u043F\u043E \u0432\u0438\u0434\u0430\u043C \u0434\u0435\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438","blocks.breakdown.item":"\u043F\u043E \u0442\u043E\u0432\u0430\u0440\u0430\u043C","blocks.substituted":"\u043F\u043E\u0434\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0430","blocks.alternatives":"\u041F\u043E\u0445\u043E\u0436\u0438\u0435 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u0438","blocks.table":"\u0422\u0430\u0431\u043B\u0438\u0446\u0430 \u0434\u0430\u043D\u043D\u044B\u0445","blocks.tableSearch":"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0442\u0430\u0431\u043B\u0438\u0446\u0435\u2026","blocks.tableEmpty":"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445","blocks.page":"{a} \u0438\u0437 {b}","blocks.prevPage":"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430","blocks.nextPage":"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430","blocks.truncated":"\u041F\u043E\u043A\u0430\u0437\u0430\u043D\u044B \u043F\u0435\u0440\u0432\u044B\u0435 {n} \u0441\u0442\u0440\u043E\u043A \u2014 \u043F\u043E\u043B\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435 \u0432 Excel","blocks.catalogMore":"\u2026\u0438 \u0435\u0449\u0451 {count} \u0432 \u043A\u0430\u0442\u0430\u043B\u043E\u0433\u0435","blocks.catalogExamples":"\u041C\u043E\u0436\u043D\u043E \u0441\u043F\u0440\u043E\u0441\u0438\u0442\u044C","blocks.options":"\u0412\u0430\u0440\u0438\u0430\u043D\u0442\u044B \u043E\u0442\u0432\u0435\u0442\u0430","blocks.default":"\u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E","blocks.freeTextHint":"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u0438\u043B\u0438 \u043D\u0430\u043F\u0438\u0448\u0438\u0442\u0435 \u0441\u0432\u043E\u0439 \u0432 \u043F\u043E\u043B\u0435 \u043D\u0438\u0436\u0435","blocks.findOption":"\u041D\u0430\u0439\u0442\u0438 \u0432 \u0441\u043F\u0438\u0441\u043A\u0435\u2026","blocks.chosen":"\u0412\u044B\u0431\u0440\u0430\u043D\u043E: {label}","blocks.continue":"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C","blocks.cancelPlan":"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C","blocks.expired":"\u0423\u0442\u043E\u0447\u043D\u0435\u043D\u0438\u0435 \u0443\u0441\u0442\u0430\u0440\u0435\u043B\u043E","blocks.askAgain":"\u0417\u0430\u0434\u0430\u0442\u044C \u0432\u043E\u043F\u0440\u043E\u0441 \u0437\u0430\u043D\u043E\u0432\u043E","blocks.dashboard":"\u0414\u0430\u0448\u0431\u043E\u0440\u0434","blocks.hideDashboard":"\u0421\u043A\u0440\u044B\u0442\u044C \u0434\u0430\u0448\u0431\u043E\u0440\u0434","chart.kinds":"\u0412\u0438\u0434 \u0434\u0438\u0430\u0433\u0440\u0430\u043C\u043C\u044B","chart.kind.bar":"\u041F\u043E\u043B\u043E\u0441\u044B","chart.kind.column":"\u0421\u0442\u043E\u043B\u0431\u0446\u044B","chart.kind.pie":"\u041A\u0440\u0443\u0433\u043E\u0432\u0430\u044F","chart.kind.line":"\u041B\u0438\u043D\u0438\u0438","chart.kind.area":"\u041E\u0431\u043B\u0430\u0441\u0442\u0438","chart.national":"\u0420\u041A {value}","chart.top":"\u0422\u043E\u043F-{n} \u0438\u0437 {total} \u2014 \u0432\u0441\u0451 \u0432 \u0434\u0430\u0448\u0431\u043E\u0440\u0434\u0435","chart.label":"{title}, {period}","files.list":"\u0424\u0430\u0439\u043B\u044B","files.report":"\u0413\u043E\u0442\u043E\u0432\u044B\u0439 \u043E\u0442\u0447\u0451\u0442","files.document":"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u0443\u0435\u043C\u044B\u0439 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442","files.presentation":"\u041F\u0440\u0435\u0437\u0435\u043D\u0442\u0430\u0446\u0438\u044F","files.excel":"\u0414\u0430\u043D\u043D\u044B\u0435 Excel","files.csv":"\u0414\u0430\u043D\u043D\u044B\u0435 CSV","files.failed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043A\u0430\u0447\u0430\u0442\u044C \u0444\u0430\u0439\u043B","report.create":"\u0421\u0444\u043E\u0440\u043C\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0442\u0447\u0451\u0442","report.pending":"\u0424\u0430\u0439\u043B\u044B \u043E\u0442\u0447\u0451\u0442\u0430 \u0444\u043E\u0440\u043C\u0438\u0440\u0443\u044E\u0442\u0441\u044F\u2026","report.failed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u0444\u043E\u0440\u043C\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0444\u0430\u0439\u043B\u044B \u043E\u0442\u0447\u0451\u0442\u0430","report.retry":"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C","report.expired":"\u0421\u0440\u043E\u043A \u0444\u0430\u0439\u043B\u043E\u0432 \u0438\u0441\u0442\u0451\u043A","dashboard.eyebrow":"\u0410\u043D\u0430\u043B\u0438\u0442\u0438\u043A\u0430","dashboard.label":"\u0414\u0430\u0448\u0431\u043E\u0440\u0434","dashboard.sections":"\u0420\u0430\u0437\u0434\u0435\u043B\u044B \u0434\u0430\u0448\u0431\u043E\u0440\u0434\u0430","dashboard.regions":"\u0440\u0435\u0433\u0438\u043E\u043D\u043E\u0432: {n}","dashboard.items":"\u043F\u043E\u0437\u0438\u0446\u0438\u0439: {n}","dashboard.openSource":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0435","dashboard.methodology":"\u041C\u0435\u0442\u043E\u0434\u043E\u043B\u043E\u0433\u0438\u044F","dashboard.fullscreen":"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D","dashboard.collapse":"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C","dashboard.close":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C","dashboard.chatTab":"\u0427\u0430\u0442","dashboard.dashboardTab":"\u0414\u0430\u0448\u0431\u043E\u0440\u0434","dashboard.view":"\u0427\u0430\u0442 \u0438\u043B\u0438 \u0434\u0430\u0448\u0431\u043E\u0440\u0434","dashboard.region":"\u0420\u0435\u0433\u0438\u043E\u043D","dashboard.allRegions":"\u0412\u0441\u0435 \u0440\u0435\u0433\u0438\u043E\u043D\u044B","dashboard.period":"\u041F\u0435\u0440\u0438\u043E\u0434","dashboard.mode.label":"\u0420\u0435\u0436\u0438\u043C","dashboard.mode.value":"\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435","dashboard.mode.deviation":"\u041E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u0435","dashboard.mode.change":"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435","dashboard.base.label":"\u0411\u0430\u0437\u0430 \u043E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F","dashboard.base.median":"\u043E\u0442 \u043C\u0435\u0434\u0438\u0430\u043D\u044B","dashboard.base.national":"\u043E\u0442 \u0420\u041A","dashboard.noPrevious":"\u041D\u0435\u0442 \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0433\u043E \u043F\u0435\u0440\u0438\u043E\u0434\u0430","dashboard.noNational":"\u041D\u0435\u0442 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u043F\u043E \u0441\u0442\u0440\u0430\u043D\u0435 \u0437\u0430 \u044D\u0442\u043E\u0442 \u043F\u0435\u0440\u0438\u043E\u0434","dashboard.fewRegions":"\u041D\u0443\u0436\u043D\u043E \u0445\u043E\u0442\u044F \u0431\u044B \u0434\u0432\u0430 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F","dashboard.ranking":"\u0420\u0435\u0439\u0442\u0438\u043D\u0433","dashboard.trend":"\u0414\u0438\u043D\u0430\u043C\u0438\u043A\u0430","dashboard.findings":"\u0412\u044B\u0432\u043E\u0434\u044B","dashboard.data":"\u0414\u0430\u043D\u043D\u044B\u0435","dashboard.kpis":"\u041A\u043B\u044E\u0447\u0435\u0432\u044B\u0435 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u0438","dashboard.table.rank":"\u2116","dashboard.table.position":"\u041F\u043E\u0437\u0438\u0446\u0438\u044F","dashboard.table.value":"\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435, {unit}","dashboard.table.share":"\u0414\u043E\u043B\u044F, %","dashboard.table.deviation":"\u041E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u0435, {unit}","dashboard.table.change":"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435, {unit}","dashboard.source":"\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A: {name}","dashboard.points":"\u043F.\u043F.","dashboard.kpi.national":"\u0420\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u041A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D","dashboard.kpi.max":"\u041C\u0430\u043A\u0441\u0438\u043C\u0443\u043C","dashboard.kpi.min":"\u041C\u0438\u043D\u0438\u043C\u0443\u043C","dashboard.kpi.median":"\u041C\u0435\u0434\u0438\u0430\u043D\u0430 \u043F\u043E \u0440\u0435\u0433\u0438\u043E\u043D\u0430\u043C","dashboard.kpi.spread":"\u0420\u0430\u0437\u043C\u0430\u0445","dashboard.kpi.gap":"\u0420\u0430\u0437\u0440\u044B\u0432","dashboard.kpi.last":"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435","dashboard.kpi.first":"\u041D\u0430\u0447\u0430\u043B\u043E \u043F\u0435\u0440\u0438\u043E\u0434\u0430","dashboard.kpi.change":"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435","dashboard.kpi.place":"\u041C\u0435\u0441\u0442\u043E","dashboard.kpi.placeOf":"{n} \u0438\u0437 {m}","dashboard.kpi.deviation":"\u041E\u0442\u043A\u043B. \u043E\u0442 \u043C\u0435\u0434\u0438\u0430\u043D\u044B","dashboard.kpi.previous":"\u041A \u043F\u0440\u043E\u0448\u043B\u043E\u043C\u0443 \u043F\u0435\u0440\u0438\u043E\u0434\u0443","steps.counter":"{done} \u0438\u0437 {total}","feedback.reasonsLabel":"\u0427\u0442\u043E \u043D\u0435 \u0442\u0430\u043A?","feedback.reason.wrong_number":"\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0446\u0438\u0444\u0440\u0430","feedback.reason.wrong_indicator":"\u041D\u0435 \u0442\u043E\u0442 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u044C","feedback.reason.wrong_territory":"\u041D\u0435 \u0442\u0430 \u0442\u0435\u0440\u0440\u0438\u0442\u043E\u0440\u0438\u044F","feedback.reason.wrong_period":"\u041D\u0435 \u0442\u043E\u0442 \u043F\u0435\u0440\u0438\u043E\u0434","feedback.reason.not_answered":"\u041D\u0435\u0442 \u043E\u0442\u0432\u0435\u0442\u0430 \u043D\u0430 \u0432\u043E\u043F\u0440\u043E\u0441","feedback.reason.language":"\u042F\u0437\u044B\u043A \u043E\u0442\u0432\u0435\u0442\u0430","feedback.reason.slow":"\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0434\u043E\u043B\u0433\u043E","feedback.reason.other":"\u0414\u0440\u0443\u0433\u043E\u0435","intro.title":"\u041F\u0435\u0440\u0435\u0434 \u043D\u0430\u0447\u0430\u043B\u043E\u043C","intro.continue":"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C",source:"\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A: {name}","shell.siteBlocked":"\u0427\u0430\u0442 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D \u043D\u0430 \u044D\u0442\u043E\u043C \u0441\u0430\u0439\u0442\u0435","shell.siteBlockedHint":"\u0412\u043B\u0430\u0434\u0435\u043B\u0435\u0446 \u0441\u0430\u0439\u0442\u0430 \u0435\u0449\u0451 \u043D\u0435 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u043B AI-Dana \u0438\u043B\u0438 \u0434\u043E\u0441\u0442\u0443\u043F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D.","modes.none":"\u0420\u0435\u0436\u0438\u043C\u044B \u043E\u0442\u0432\u0435\u0442\u0430 \u0441\u0435\u0439\u0447\u0430\u0441 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0437\u0436\u0435.","attachment.sending":"\u043E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u0435\u0442\u0441\u044F","agent.steps":"\u0428\u0430\u0433\u0438","agent.unfinished":"\u043D\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043D",rateGroup:"\u041E\u0446\u0435\u043D\u043A\u0430 \u043E\u0442\u0432\u0435\u0442\u0430","blocks.catalogTitle":"\u041A\u0430\u0442\u0430\u043B\u043E\u0433: {topic}","blocks.catalogSections":"\u0420\u0430\u0437\u0434\u0435\u043B\u044B","blocks.catalogIndicators":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u0438","blocks.catalogSendHint":"\u0412\u043E\u043F\u0440\u043E\u0441 \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u0441\u044F \u0441\u0440\u0430\u0437\u0443 \u043F\u043E\u0441\u043B\u0435 \u0432\u044B\u0431\u043E\u0440\u0430","blocks.clarification":"\u0423\u0442\u043E\u0447\u043D\u0435\u043D\u0438\u0435","files.expired":"\u0421\u0440\u043E\u043A \u0444\u0430\u0439\u043B\u0430 \u0438\u0441\u0442\u0451\u043A","files.notFound":"\u0424\u0430\u0439\u043B \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D","files.unavailable":"\u0424\u0430\u0439\u043B \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D"},P0={title:"AI-Dana",open:"\u0427\u0430\u0442\u0442\u044B \u0430\u0448\u0443",unreadAnswers:"\u0436\u0430\u04A3\u0430 \u0436\u0430\u0443\u0430\u043F\u0442\u0430\u0440: {count}",ask:"\u0421\u04B1\u0440\u0430\u049B \u049B\u043E\u044E",close:"\u0416\u0430\u0431\u0443",history:"\u0422\u0430\u0440\u0438\u0445",closeHistory:"\u0422\u0430\u0440\u0438\u0445\u0442\u044B \u0436\u0430\u0441\u044B\u0440\u0443",newChat:"\u0416\u0430\u04A3\u0430 \u0447\u0430\u0442",untitled:"\u0416\u0430\u04A3\u0430 \u0447\u0430\u0442",historyEmpty:"\u04D8\u0437\u0456\u0440\u0433\u0435 \u0447\u0430\u0442\u0442\u0430\u0440 \u0436\u043E\u049B",historyError:"\u0422\u0430\u0440\u0438\u0445\u0442\u044B \u0436\u04AF\u043A\u0442\u0435\u0443 \u043C\u04AF\u043C\u043A\u0456\u043D \u0431\u043E\u043B\u043C\u0430\u0434\u044B",delete:"\u0416\u043E\u044E",deleteConfirm:"\u0427\u0430\u0442\u0442\u044B \u0436\u043E\u044E \u043A\u0435\u0440\u0435\u043A \u043F\u0435?",deleteYes:"\u0416\u043E\u044E",deleteNo:"\u0411\u0430\u0441 \u0442\u0430\u0440\u0442\u0443",deleteError:"\u0427\u0430\u0442\u0442\u044B \u0436\u043E\u044E \u043C\u04AF\u043C\u043A\u0456\u043D \u0431\u043E\u043B\u043C\u0430\u0434\u044B",modeLabel:"\u0416\u0430\u0443\u0430\u043F \u0440\u0435\u0436\u0438\u043C\u0456","health.idle":"\u0411\u043E\u0441","health.busy":"\u0411\u043E\u0441 \u0435\u043C\u0435\u0441","health.unavailable":"\u049A\u043E\u043B\u0436\u0435\u0442\u0456\u043C\u0441\u0456\u0437",placeholder:"\u0421\u04B1\u0440\u0430\u049B\u0442\u0430\u0440\u044B\u04A3\u044B\u0437\u0434\u044B \u049B\u043E\u0439\u044B\u04A3\u044B\u0437",inputLabel:"\u0425\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430",send:"\u0416\u0456\u0431\u0435\u0440\u0443",stop:"\u0422\u043E\u049B\u0442\u0430\u0442\u0443",attach:"\u0424\u0430\u0439\u043B \u0442\u0456\u0440\u043A\u0435\u0443",attachOne:"\u0422\u0435\u043A \u0431\u0456\u0440 \u0444\u0430\u0439\u043B \u0442\u0456\u0440\u043A\u0435\u0443\u0433\u0435 \u0431\u043E\u043B\u0430\u0434\u044B",attachHint:"\u0411\u0456\u0440 \u0444\u0430\u0439\u043B \u0442\u0456\u0440\u043A\u0435\u0443\u0433\u0435 \u0431\u043E\u043B\u0430\u0434\u044B: XLS, XLSX, CSV, TXT \u043D\u0435\u043C\u0435\u0441\u0435 MD, {size} \u041C\u0411-\u049B\u0430 \u0434\u0435\u0439\u0456\u043D",disclaimer:"\u0416\u0418 \u049B\u0430\u0442\u0435\u043B\u0435\u0441\u0443\u0456 \u043C\u04AF\u043C\u043A\u0456\u043D \u2014 \u043C\u0430\u04A3\u044B\u0437\u0434\u044B \u0430\u049B\u043F\u0430\u0440\u0430\u0442\u0442\u044B \u0442\u0435\u043A\u0441\u0435\u0440\u0456\u04A3\u0456\u0437",removeFile:"\u0424\u0430\u0439\u043B\u0434\u044B \u0436\u043E\u044E",counter:"{count} / {max}",counterLimit:"\u0422\u0430\u04A3\u0431\u0430 \u0448\u0435\u0433\u0456\u043D\u0435 \u0436\u0435\u0442\u0442\u0456\u04A3\u0456\u0437",counterOver:"\u0422\u0430\u04A3\u0431\u0430 \u0448\u0435\u0433\u0456\u043D\u0435\u043D \u0430\u0441\u044B\u043F \u043A\u0435\u0442\u0442\u0456\u04A3\u0456\u0437",fileTooLarge:"\xAB{name}\xBB \u0444\u0430\u0439\u043B\u044B {size} \u041C\u0411-\u0442\u0430\u043D \u04AF\u043B\u043A\u0435\u043D",fileType:"\xAB{name}\xBB \u0444\u0430\u0439\u043B\u044B \u0436\u0430\u0440\u0430\u043C\u0430\u0439\u0434\u044B. XLS, XLSX, CSV, TXT \u043D\u0435\u043C\u0435\u0441\u0435 MD \u0442\u0456\u0440\u043A\u0435\u0443\u0433\u0435 \u0431\u043E\u043B\u0430\u0434\u044B",modeUnavailable:"\u0420\u0435\u0436\u0438\u043C \u049B\u0430\u0437\u0456\u0440 \u049B\u043E\u043B\u0436\u0435\u0442\u0456\u043C\u0441\u0456\u0437, \u0431\u0430\u0441\u049B\u0430\u0441\u044B\u043D \u0442\u0430\u04A3\u0434\u0430\u04A3\u044B\u0437",greeting:"\u049A\u0430\u043B\u0430\u0439 \u043A\u04E9\u043C\u0435\u043A\u0442\u0435\u0441\u0435 \u0430\u043B\u0430\u043C\u044B\u043D?",loading:"\u0416\u04AF\u043A\u0442\u0435\u043B\u0443\u0434\u0435\u2026",configError:"\u0427\u0430\u0442 \u0443\u0430\u049B\u044B\u0442\u0448\u0430 \u049B\u043E\u043B\u0436\u0435\u0442\u0456\u043C\u0441\u0456\u0437",overloaded:"\u049A\u044B\u0437\u043C\u0435\u0442 \u049B\u0430\u0437\u0456\u0440 \u0448\u0430\u043C\u0430\u0434\u0430\u043D \u0442\u044B\u0441 \u0436\u04AF\u043A\u0442\u0435\u043B\u0433\u0435\u043D. \u041A\u0435\u0439\u0456\u043D\u0456\u0440\u0435\u043A \u049B\u0430\u0439\u0442\u0430\u043B\u0430\u043F \u043A\u04E9\u0440\u0456\u04A3\u0456\u0437.",retry:"\u049A\u0430\u0439\u0442\u0430\u043B\u0430\u0443",dismiss:"\u0416\u0430\u0441\u044B\u0440\u0443",scrollDown:"\u0422\u04E9\u043C\u0435\u043D\u0433\u0435 \u0430\u0439\u043D\u0430\u043B\u0434\u044B\u0440\u0443",settings:"\u0411\u0430\u043F\u0442\u0430\u0443\u043B\u0430\u0440","settings.language":"\u0422\u0456\u043B","settings.theme":"\u0422\u0430\u049B\u044B\u0440\u044B\u043F","settings.themeLight":"\u0410\u0448\u044B\u049B","settings.themeDark":"\u049A\u0430\u0440\u0430\u04A3\u0493\u044B","settings.themeAuto":"\u0416\u04AF\u0439\u0435\u0434\u0435\u0433\u0456\u0434\u0435\u0439","settings.model":"\u04D8\u0434\u0435\u043F\u043A\u0456 \u043C\u043E\u0434\u0435\u043B\u044C","settings.modelHint":"\u04D8\u0440 \u0436\u0430\u04A3\u0430 \u0447\u0430\u0442 \u043E\u0441\u044B\u0434\u0430\u043D \u0431\u0430\u0441\u0442\u0430\u043B\u0430\u0434\u044B","settings.shortcuts":"\u0416\u044B\u043B\u0434\u0430\u043C \u043F\u0435\u0440\u043D\u0435\u043B\u0435\u0440","shortcut.search":"\u0427\u0430\u0442\u0442\u0430\u0440\u0434\u0430\u043D \u0456\u0437\u0434\u0435\u0443","shortcut.newChat":"\u0416\u0430\u04A3\u0430 \u0447\u0430\u0442","shortcut.sidebar":"\u041F\u0430\u043D\u0435\u043B\u044C\u0434\u0456 \u043A\u04E9\u0440\u0441\u0435\u0442\u0443 \u043D\u0435 \u0436\u0430\u0441\u044B\u0440\u0443","shortcut.close":"\u0422\u0435\u0440\u0435\u0437\u0435\u043D\u0456 \u0436\u0430\u0431\u0443",search:"\u0427\u0430\u0442\u0442\u0430\u0440\u0434\u0430\u043D \u0456\u0437\u0434\u0435\u0443",searchEmpty:"\u0415\u0448\u0442\u0435\u04A3\u0435 \u0442\u0430\u0431\u044B\u043B\u043C\u0430\u0434\u044B",collapseSidebar:"\u041F\u0430\u043D\u0435\u043B\u044C\u0434\u0456 \u0436\u0430\u0441\u044B\u0440\u0443",expandSidebar:"\u041F\u0430\u043D\u0435\u043B\u044C\u0434\u0456 \u043A\u04E9\u0440\u0441\u0435\u0442\u0443",expand:"\u0411\u04AF\u043A\u0456\u043B \u0431\u0435\u0442\u043A\u0435 \u0436\u0430\u044E",shrink:"\u041A\u0456\u0448\u0456\u0440\u0435\u0439\u0442\u0443",examples:"\u0421\u04B1\u0440\u0430\u0443 \u043C\u044B\u0441\u0430\u043B\u0434\u0430\u0440\u044B","examples.whatCanDo":"\u041D\u0435 \u0456\u0441\u0442\u0435\u0439 \u0430\u043B\u0430\u0441\u044B\u0437","group.pinned":"\u0411\u0435\u043A\u0456\u0442\u0456\u043B\u0433\u0435\u043D\u0434\u0435\u0440","group.today":"\u0411\u04AF\u0433\u0456\u043D","group.yesterday":"\u041A\u0435\u0448\u0435","group.week":"\u0421\u043E\u04A3\u0493\u044B 7 \u043A\u04AF\u043D","group.earlier":"\u0411\u04B1\u0440\u044B\u043D\u044B\u0440\u0430\u049B","errors.thread_busy":"AI-Dana \u0431\u04B1\u043B \u0447\u0430\u0442\u0442\u0430 \u04D9\u043B\u0456 \u0436\u0430\u0443\u0430\u043F \u0431\u0435\u0440\u0456\u043F \u0436\u0430\u0442\u044B\u0440. \u0416\u0430\u0443\u0430\u043F\u0442\u044B \u043A\u04AF\u0442\u0456\u04A3\u0456\u0437 \u043D\u0435\u043C\u0435\u0441\u0435 \u0442\u043E\u049B\u0442\u0430\u0442\u044B\u04A3\u044B\u0437.","errors.mode_overloaded":"AI-Dana \u049B\u0430\u0437\u0456\u0440 \u0448\u0430\u043C\u0430\u0434\u0430\u043D \u0442\u044B\u0441 \u0436\u04AF\u043A\u0442\u0435\u043B\u0433\u0435\u043D, \u0441\u04D9\u043B \u043A\u0435\u0439\u0456\u043D\u0456\u0440\u0435\u043A \u049B\u0430\u0439\u0442\u0430\u043B\u0430\u043F \u043A\u04E9\u0440\u0456\u04A3\u0456\u0437","errors.daily_limit":"\u0411\u04AF\u0433\u0456\u043D\u0433\u0456 \u0445\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430 \u043B\u0438\u043C\u0438\u0442\u0456 \u0442\u0430\u0443\u0441\u044B\u043B\u0434\u044B","errors.rate_limit":"\u0425\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430\u043B\u0430\u0440 \u0442\u044B\u043C \u0436\u0438\u0456 \u0436\u0456\u0431\u0435\u0440\u0456\u043B\u0434\u0456. \u0411\u0456\u0440 \u043C\u0438\u043D\u0443\u0442 \u043A\u04AF\u0442\u0456\u04A3\u0456\u0437.","errors.ip_limit":"\u0411\u04AF\u0433\u0456\u043D \u0441\u0456\u0437\u0434\u0456\u04A3 \u0436\u0435\u043B\u0456\u04A3\u0456\u0437\u0434\u0435\u043D \u0445\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430\u043B\u0430\u0440 \u0442\u044B\u043C \u043A\u04E9\u043F \u0436\u0456\u0431\u0435\u0440\u0456\u043B\u0434\u0456. \u0415\u0440\u0442\u0435\u04A3 \u049B\u0430\u0439\u0442\u0430\u043B\u0430\u043F \u043A\u04E9\u0440\u0456\u04A3\u0456\u0437.","errors.concurrency_limit":"\u0410\u043B\u0434\u044B\u04A3\u0493\u044B \u0436\u0430\u0443\u0430\u043F\u0442\u044B\u04A3 \u0430\u044F\u049B\u0442\u0430\u043B\u0443\u044B\u043D \u043A\u04AF\u0442\u0456\u04A3\u0456\u0437","errors.file_too_large":"\u0424\u0430\u0439\u043B \u0442\u044B\u043C \u04AF\u043B\u043A\u0435\u043D","errors.file_not_allowed":"\u0411\u04B1\u043B \u0444\u0430\u0439\u043B\u0434\u044B \u0442\u0456\u0440\u043A\u0435\u0443\u0433\u0435 \u0431\u043E\u043B\u043C\u0430\u0439\u0434\u044B. XLS, XLSX, CSV, TXT \u0436\u04D9\u043D\u0435 MD \u0436\u0430\u0440\u0430\u0439\u0434\u044B","errors.invalid_query":"\u0425\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430 \u0431\u043E\u0441 \u043D\u0435\u043C\u0435\u0441\u0435 \u0442\u044B\u043C \u04B1\u0437\u044B\u043D","errors.invalid_parent":"\u0411\u04B1\u043B \u0445\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430\u043D\u044B \u0435\u043D\u0434\u0456 \u04E9\u0437\u0433\u0435\u0440\u0442\u0443\u0433\u0435 \u0431\u043E\u043B\u043C\u0430\u0439\u0434\u044B","errors.mode_not_found":"\u0422\u0430\u04A3\u0434\u0430\u043B\u0493\u0430\u043D \u0440\u0435\u0436\u0438\u043C \u049B\u0430\u0437\u0456\u0440 \u049B\u043E\u043B\u0436\u0435\u0442\u0456\u043C\u0441\u0456\u0437. \u0411\u0430\u0441\u049B\u0430 \u0440\u0435\u0436\u0438\u043C\u0434\u0456 \u0442\u0430\u04A3\u0434\u0430\u04A3\u044B\u0437.","errors.thread_not_found":"\u0427\u0430\u0442 \u0442\u0430\u0431\u044B\u043B\u043C\u0430\u0434\u044B","errors.interrupted":"\u0416\u0430\u0443\u0430\u043F \u04AF\u0437\u0456\u043B\u0434\u0456","errors.code":"\u0416\u0430\u0443\u0430\u043F \u0430\u043B\u0443 \u043C\u04AF\u043C\u043A\u0456\u043D \u0431\u043E\u043B\u043C\u0430\u0434\u044B (\u043A\u043E\u0434 {code}).","errors.generic":"\u0425\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430 \u0436\u0456\u0431\u0435\u0440\u0443 \u043A\u0435\u0437\u0456\u043D\u0434\u0435 \u049B\u0430\u0442\u0435 \u043E\u0440\u044B\u043D \u0430\u043B\u0434\u044B.","errors.network":"\u0421\u0435\u0440\u0432\u0435\u0440\u043C\u0435\u043D \u0431\u0430\u0439\u043B\u0430\u043D\u044B\u0441 \u0436\u043E\u049B. \u049A\u043E\u0441\u044B\u043B\u044B\u043C\u0434\u044B \u0442\u0435\u043A\u0441\u0435\u0440\u0456\u04A3\u0456\u0437.","errors.render":"\u0411\u04B1\u043B \u0445\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430\u043D\u044B \u043A\u04E9\u0440\u0441\u0435\u0442\u0443 \u043C\u04AF\u043C\u043A\u0456\u043D \u0431\u043E\u043B\u043C\u0430\u0434\u044B.","agent.thinking":"\u041E\u0439\u043B\u0430\u043D\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","agent.done":"\u0414\u0430\u0439\u044B\u043D","agent.stopped":"\u0422\u043E\u049B\u0442\u0430\u0442\u044B\u043B\u0434\u044B","agent.stopping":"\u0422\u043E\u049B\u0442\u0430\u0442\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","agent.interrupted":"\u0416\u0430\u0443\u0430\u043F \u04AF\u0437\u0456\u043B\u0434\u0456","agent.answerStopped":"\u0416\u0430\u0443\u0430\u043F \u0442\u043E\u049B\u0442\u0430\u0442\u044B\u043B\u0434\u044B. \u049A\u0430\u0436\u0435\u0442 \u0431\u043E\u043B\u0441\u0430, \u0441\u04B1\u0440\u0430\u049B\u0442\u044B \u049B\u0430\u0439\u0442\u0430 \u049B\u043E\u0439\u044B\u04A3\u044B\u0437","agent.seconds":"{value} \u0441","agent.attempt":"{count}-\u04D9\u0440\u0435\u043A\u0435\u0442","agent.showSteps":"\u049A\u0430\u0434\u0430\u043C\u0434\u0430\u0440\u0434\u044B \u043A\u04E9\u0440\u0441\u0435\u0442\u0443","agent.hideSteps":"\u049A\u0430\u0434\u0430\u043C\u0434\u0430\u0440\u0434\u044B \u0436\u0430\u0441\u044B\u0440\u0443","steps.router":"\u0421\u04B1\u0440\u0430\u049B\u0442\u044B \u0442\u0430\u043B\u0434\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.context_builder":"\u049A\u0430\u0436\u0435\u0442 \u0434\u0435\u0440\u0435\u043A\u0442\u0435\u0440\u0434\u0456 \u0456\u0437\u0434\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.sql_architect":"\u0415\u0441\u0435\u043F\u0442\u0435\u0443\u0434\u0456 \u0434\u0430\u0439\u044B\u043D\u0434\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.executor":"\u041A\u04E9\u0440\u0441\u0435\u0442\u043A\u0456\u0448\u0442\u0435\u0440\u0434\u0456 \u0435\u0441\u0435\u043F\u0442\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.responder":"\u0416\u0430\u0443\u0430\u043F \u0434\u0430\u0439\u044B\u043D\u0434\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.rag":"\u0410\u043D\u044B\u049B\u0442\u0430\u043C\u0430\u043B\u044B\u049B \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u0434\u0430\u0440\u0434\u0430\u043D \u0456\u0437\u0434\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.sql":"\u0410\u0448\u044B\u049B \u0434\u0435\u0440\u0435\u043A\u043A\u04E9\u0437\u0434\u0435\u0440\u0434\u0435\u043D \u0434\u0435\u0440\u0435\u043A\u0442\u0435\u0440 \u0456\u0437\u0434\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.document":"\u049A\u04B1\u0436\u0430\u0442\u0442\u044B \u043E\u049B\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.understand":"\u0421\u04B1\u0440\u0430\u049B\u0442\u044B \u0442\u0430\u043B\u0434\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.search_law":"\u0417\u0430\u04A3\u043D\u0430\u043C\u0430\u0434\u0430\u043D \u0456\u0437\u0434\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.run_sql":"\u041A\u04E9\u0440\u0441\u0435\u0442\u043A\u0456\u0448\u0442\u0435\u0440\u0434\u0456 \u0435\u0441\u0435\u043F\u0442\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.run_query":"\u0414\u0435\u0440\u0435\u043A\u0442\u0435\u0440\u0434\u0456 \u0430\u043B\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.data":"\u0414\u0435\u0440\u0435\u043A\u0442\u0435\u0440\u0434\u0456 \u0430\u043B\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.lookup_taxpayer":"\u0421\u0430\u043B\u044B\u049B \u0442\u04E9\u043B\u0435\u0443\u0448\u0456\u043D\u0456 \u0456\u0437\u0434\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.find_taxpayer":"\u041A\u043E\u043C\u043F\u0430\u043D\u0438\u044F\u043D\u044B \u0430\u0442\u0430\u0443\u044B \u0431\u043E\u0439\u044B\u043D\u0448\u0430 \u0456\u0437\u0434\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.ask_clarification":"\u0421\u04B1\u0440\u0430\u049B\u0442\u044B \u043D\u0430\u049B\u0442\u044B\u043B\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.answer":"\u0416\u0430\u0443\u0430\u043F \u0434\u0430\u0439\u044B\u043D\u0434\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.think":"\u0422\u0430\u0431\u044B\u043B\u0493\u0430\u043D\u0434\u044B \u0442\u0430\u043B\u0434\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.file":"\u049A\u04B1\u0436\u0430\u0442\u0442\u044B \u043E\u049B\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","waiting.router.1":"\u0416\u0430\u0443\u0430\u043F\u0442\u044B \u049B\u0430\u0439\u0434\u0430\u043D \u0456\u0437\u0434\u0435\u0443 \u043A\u0435\u0440\u0435\u0433\u0456\u043D \u0442\u0430\u04A3\u0434\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.router.2":"\u0421\u04B1\u0440\u0430\u049B\u0442\u044B \u0434\u0435\u0440\u0435\u043A\u0442\u0435\u0440\u043C\u0435\u043D \u0436\u04D9\u043D\u0435 \u043D\u043E\u0440\u043C\u0430\u043B\u0430\u0440\u043C\u0435\u043D \u0441\u0430\u043B\u044B\u0441\u0442\u044B\u0440\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.responder.1":"\u0421\u0430\u043D\u0434\u0430\u0440\u0434\u044B \u0434\u0435\u0440\u0435\u043A\u0442\u0435\u0440\u043C\u0435\u043D \u0441\u0430\u043B\u044B\u0441\u0442\u044B\u0440\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.responder.2":"\u041D\u043E\u0440\u043C\u0430\u043B\u0430\u0440\u0493\u0430 \u0441\u0456\u043B\u0442\u0435\u043C\u0435\u043B\u0435\u0440\u0434\u0456 \u0442\u0435\u043A\u0441\u0435\u0440\u0456\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.responder.3":"\u0416\u0430\u0443\u0430\u043F\u0442\u044B \u0440\u0435\u0442\u043A\u0435 \u043A\u0435\u043B\u0442\u0456\u0440\u0456\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.law.1":"\u0422\u0430\u0431\u044B\u043B\u0493\u0430\u043D \u0431\u0430\u043F\u0442\u0430\u0440\u0434\u044B \u043E\u049B\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.law.2":"\u041D\u043E\u0440\u043C\u0430 \u0440\u0435\u0434\u0430\u043A\u0446\u0438\u044F\u043B\u0430\u0440\u044B\u043D \u0441\u0430\u043B\u044B\u0441\u0442\u044B\u0440\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.data.1":"\u041A\u04E9\u0440\u0441\u0435\u0442\u043A\u0456\u0448\u0442\u0435\u0440\u0434\u0456 \u0435\u0441\u0435\u043F\u0442\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.data.2":"\u049A\u043E\u0440\u044B\u0442\u044B\u043D\u0434\u044B\u043B\u0430\u0440\u0434\u044B \u0442\u0435\u043A\u0441\u0435\u0440\u0456\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.executor.1":"\u049A\u043E\u0440\u044B\u0442\u044B\u043D\u0434\u044B\u043B\u0430\u0440\u0434\u044B \u0442\u0435\u043A\u0441\u0435\u0440\u0456\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.executor.2":"\u041A\u0435\u0441\u0442\u0435\u043D\u0456 \u0440\u0435\u0442\u043A\u0435 \u043A\u0435\u043B\u0442\u0456\u0440\u0456\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.taxpayer.1":"\u041A\u0430\u0440\u0442\u043E\u0447\u043A\u0430\u043D\u044B \u0436\u0438\u043D\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.taxpayer.2":"\u0416\u044B\u043B\u0434\u0430\u0440 \u0431\u043E\u0439\u044B\u043D\u0448\u0430 \u0442\u04AF\u0441\u0456\u043C\u0434\u0435\u0440\u0434\u0456 \u049B\u0430\u0440\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.findCompany.1":"\u04B0\u049B\u0441\u0430\u0441 \u0430\u0442\u0430\u0443\u043B\u0430\u0440\u0434\u044B \u0441\u0430\u043B\u044B\u0441\u0442\u044B\u0440\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.findCompany.2":"\u0415\u04A3 \u0434\u04D9\u043B \u0441\u04D9\u0439\u043A\u0435\u0441\u0442\u0456\u043A\u0442\u0456 \u0442\u0430\u04A3\u0434\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.think.1":"\u0422\u0430\u0431\u044B\u043B\u0493\u0430\u043D\u0434\u044B \u0441\u04B1\u0440\u0430\u049B\u043F\u0435\u043D \u0441\u0430\u043B\u044B\u0441\u0442\u044B\u0440\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.think.2":"\u0422\u0430\u0493\u044B \u043D\u0435 \u049B\u0430\u0440\u0430\u0443 \u043A\u0435\u0440\u0435\u0433\u0456\u043D \u0448\u0435\u0448\u0456\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.unknown.1":"\u0422\u0430\u0493\u044B \u0430\u0437 \u0493\u0430\u043D\u0430\u2026","waiting.unknown.2":"\u041D\u04D9\u0442\u0438\u0436\u0435\u043D\u0456 \u0442\u0435\u043A\u0441\u0435\u0440\u0456\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","steps.unknown":"\u0416\u0430\u0443\u0430\u043F \u04AF\u0441\u0442\u0456\u043D\u0434\u0435 \u0436\u04B1\u043C\u044B\u0441 \u0456\u0441\u0442\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D",copy:"\u041A\u04E9\u0448\u0456\u0440\u0443",copied:"\u041A\u04E9\u0448\u0456\u0440\u0456\u043B\u0434\u0456",download:"\u0416\u04AF\u043A\u0442\u0435\u0443",regenerate:"\u049A\u0430\u0439\u0442\u0430 \u0436\u0430\u0443\u0430\u043F \u0431\u0435\u0440\u0443",edit:"\u0425\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430\u043D\u044B \u04E9\u0437\u0433\u0435\u0440\u0442\u0443",editLabel:"\u0425\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430 \u043C\u04D9\u0442\u0456\u043D\u0456",cancel:"\u0411\u043E\u043B\u0434\u044B\u0440\u043C\u0430\u0443",actionsLabel:"\u0425\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430 \u04D9\u0440\u0435\u043A\u0435\u0442\u0442\u0435\u0440\u0456",rate:"5-\u0442\u0435\u043D {count} \u0434\u0435\u043F \u0431\u0430\u0493\u0430\u043B\u0430\u0443",ratingError:"\u0411\u0430\u0493\u0430\u043D\u044B \u0441\u0430\u049B\u0442\u0430\u0443 \u043C\u04AF\u043C\u043A\u0456\u043D \u0431\u043E\u043B\u043C\u0430\u0434\u044B",feedbackOpen:"\u041F\u0456\u043A\u0456\u0440 \u049B\u0430\u043B\u0434\u044B\u0440\u0443",feedbackEdit:"\u041F\u0456\u043A\u0456\u0440\u0434\u0456 \u04E9\u0437\u0433\u0435\u0440\u0442\u0443",feedbackLabel:"\u0416\u0430\u0443\u0430\u043F \u0442\u0443\u0440\u0430\u043B\u044B \u043F\u0456\u043A\u0456\u0440",feedbackPlaceholder:"\u0416\u0430\u0443\u0430\u043F\u0442\u044B\u04A3 \u049B\u0430\u0439 \u0436\u0435\u0440\u0456 \u0434\u04B1\u0440\u044B\u0441 \u0435\u043C\u0435\u0441?",save:"\u0421\u0430\u049B\u0442\u0430\u0443","branch.label":"\u041D\u04B1\u0441\u049B\u0430\u043B\u0430\u0440","branch.prev":"\u0410\u043B\u0434\u044B\u04A3\u0493\u044B \u043D\u04B1\u0441\u049B\u0430","branch.next":"\u041A\u0435\u043B\u0435\u0441\u0456 \u043D\u04B1\u0441\u049B\u0430","branch.error":"\u041D\u04B1\u0441\u049B\u0430\u043D\u044B \u0430\u0443\u044B\u0441\u0442\u044B\u0440\u0443 \u043C\u04AF\u043C\u043A\u0456\u043D \u0431\u043E\u043B\u043C\u0430\u0434\u044B","limit.remaining":"\u0411\u04AF\u0433\u0456\u043D {limit} \u0445\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430\u043D\u044B\u04A3 {count} \u049B\u0430\u043B\u0434\u044B","limit.exhausted":"\u0411\u04AF\u0433\u0456\u043D\u0433\u0456 \u0445\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430 \u043B\u0438\u043C\u0438\u0442\u0456 \u0442\u0430\u0443\u0441\u044B\u043B\u0434\u044B","limit.until":"\u0425\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430 \u043B\u0438\u043C\u0438\u0442\u0456 \u0442\u0430\u0443\u0441\u044B\u043B\u0434\u044B. \u0416\u0430\u04A3\u0430 \u0445\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430\u043B\u0430\u0440\u0434\u044B {time} \u043A\u0435\u0439\u0456\u043D \u0436\u0456\u0431\u0435\u0440\u0443\u0433\u0435 \u0431\u043E\u043B\u0430\u0434\u044B.","blocks.data":"\u0414\u0435\u0440\u0435\u043A\u0442\u0435\u0440","blocks.hideData":"\u0414\u0435\u0440\u0435\u043A\u0442\u0435\u0440\u0434\u0456 \u0436\u0430\u0441\u044B\u0440\u0443","blocks.methodology":"\u04D8\u0434\u0456\u0441\u0442\u0435\u043C\u0435","blocks.passport":"\u041D\u0435 \u0435\u0441\u0435\u043F\u0442\u0435\u043B\u0434\u0456","blocks.indicator":"\u041A\u04E9\u0440\u0441\u0435\u0442\u043A\u0456\u0448","blocks.territory":"\u0410\u0443\u043C\u0430\u049B","blocks.period":"\u041A\u0435\u0437\u0435\u04A3","blocks.breakdown":"\u049A\u0438\u043C\u0430","blocks.breakdown.sex":"\u0436\u044B\u043D\u044B\u0441\u044B \u0431\u043E\u0439\u044B\u043D\u0448\u0430","blocks.breakdown.age":"\u0436\u0430\u0441\u044B \u0431\u043E\u0439\u044B\u043D\u0448\u0430","blocks.breakdown.urban_rural":"\u049B\u0430\u043B\u0430 \u0436\u04D9\u043D\u0435 \u0430\u0443\u044B\u043B","blocks.breakdown.activity":"\u049B\u044B\u0437\u043C\u0435\u0442 \u0442\u04AF\u0440\u043B\u0435\u0440\u0456 \u0431\u043E\u0439\u044B\u043D\u0448\u0430","blocks.breakdown.item":"\u0442\u0430\u0443\u0430\u0440\u043B\u0430\u0440 \u0431\u043E\u0439\u044B\u043D\u0448\u0430","blocks.substituted":"\u0430\u043B\u043C\u0430\u0441\u0442\u044B\u0440\u044B\u043B\u0434\u044B","blocks.alternatives":"\u04B0\u049B\u0441\u0430\u0441 \u043A\u04E9\u0440\u0441\u0435\u0442\u043A\u0456\u0448\u0442\u0435\u0440","blocks.table":"\u0414\u0435\u0440\u0435\u043A\u0442\u0435\u0440 \u043A\u0435\u0441\u0442\u0435\u0441\u0456","blocks.tableSearch":"\u041A\u0435\u0441\u0442\u0435\u0434\u0435\u043D \u0456\u0437\u0434\u0435\u0443\u2026","blocks.tableEmpty":"\u0414\u0435\u0440\u0435\u043A\u0442\u0435\u0440 \u0436\u043E\u049B","blocks.page":"{b} \u0456\u0448\u0456\u043D\u0435\u043D {a}","blocks.prevPage":"\u0410\u043B\u0434\u044B\u04A3\u0493\u044B \u0431\u0435\u0442","blocks.nextPage":"\u041A\u0435\u043B\u0435\u0441\u0456 \u0431\u0435\u0442","blocks.truncated":"\u0410\u043B\u0493\u0430\u0448\u049B\u044B {n} \u0436\u043E\u043B \u043A\u04E9\u0440\u0441\u0435\u0442\u0456\u043B\u0434\u0456 \u2014 \u0442\u043E\u043B\u044B\u049B \u0434\u0435\u0440\u0435\u043A\u0442\u0435\u0440 Excel-\u0434\u0435","blocks.catalogMore":"\u2026\u0436\u04D9\u043D\u0435 \u043A\u0430\u0442\u0430\u043B\u043E\u0433\u0442\u0430 \u0442\u0430\u0493\u044B {count}","blocks.catalogExamples":"\u0421\u04B1\u0440\u0430\u0443\u0493\u0430 \u0431\u043E\u043B\u0430\u0434\u044B","blocks.options":"\u0416\u0430\u0443\u0430\u043F \u043D\u04B1\u0441\u049B\u0430\u043B\u0430\u0440\u044B","blocks.default":"\u04D9\u0434\u0435\u043F\u043A\u0456","blocks.freeTextHint":"\u041D\u04B1\u0441\u049B\u0430\u043D\u044B \u0442\u0430\u04A3\u0434\u0430\u04A3\u044B\u0437 \u043D\u0435\u043C\u0435\u0441\u0435 \u0442\u04E9\u043C\u0435\u043D\u0434\u0435\u0433\u0456 \u04E9\u0440\u0456\u0441\u043A\u0435 \u04E9\u0437\u0456\u04A3\u0456\u0437\u0434\u0456\u043A\u0456\u043D \u0436\u0430\u0437\u044B\u04A3\u044B\u0437","blocks.findOption":"\u0422\u0456\u0437\u0456\u043C\u043D\u0435\u043D \u0456\u0437\u0434\u0435\u0443\u2026","blocks.chosen":"\u0422\u0430\u04A3\u0434\u0430\u043B\u0434\u044B: {label}","blocks.continue":"\u0416\u0430\u043B\u0493\u0430\u0441\u0442\u044B\u0440\u0443","blocks.cancelPlan":"\u0411\u0430\u0441 \u0442\u0430\u0440\u0442\u0443","blocks.expired":"\u041D\u0430\u049B\u0442\u044B\u043B\u0430\u0443\u0434\u044B\u04A3 \u043C\u0435\u0440\u0437\u0456\u043C\u0456 \u04E9\u0442\u0442\u0456","blocks.askAgain":"\u0421\u04B1\u0440\u0430\u049B\u0442\u044B \u049B\u0430\u0439\u0442\u0430 \u049B\u043E\u044E","blocks.dashboard":"\u0414\u0430\u0448\u0431\u043E\u0440\u0434\u0442\u044B \u0430\u0448\u0443","blocks.hideDashboard":"\u0414\u0430\u0448\u0431\u043E\u0440\u0434\u0442\u044B \u0436\u0430\u0441\u044B\u0440\u0443","chart.kinds":"\u0414\u0438\u0430\u0433\u0440\u0430\u043C\u043C\u0430 \u0442\u04AF\u0440\u0456","chart.kind.bar":"\u0416\u043E\u043B\u0430\u049B\u0442\u0430\u0440","chart.kind.column":"\u0411\u0430\u0493\u0430\u043D\u0434\u0430\u0440","chart.kind.pie":"\u0414\u04E9\u04A3\u0433\u0435\u043B\u0435\u043A","chart.kind.line":"\u0421\u044B\u0437\u044B\u049B\u0442\u0430\u0440","chart.kind.area":"\u0410\u0439\u043C\u0430\u049B\u0442\u0430\u0440","chart.national":"\u049A\u0420 {value}","chart.top":"\u04AE\u0437\u0434\u0456\u043A {n}, \u0431\u0430\u0440\u043B\u044B\u0493\u044B {total} \u2014 \u0442\u043E\u043B\u044B\u0493\u044B \u0434\u0430\u0448\u0431\u043E\u0440\u0434\u0442\u0430","chart.label":"{title}, {period}","files.list":"\u0424\u0430\u0439\u043B\u0434\u0430\u0440","files.report":"\u0414\u0430\u0439\u044B\u043D \u0435\u0441\u0435\u043F","files.document":"\u04E8\u04A3\u0434\u0435\u043B\u0435\u0442\u0456\u043D \u049B\u04B1\u0436\u0430\u0442","files.presentation":"\u0422\u0430\u043D\u044B\u0441\u0442\u044B\u0440\u044B\u043B\u044B\u043C","files.excel":"Excel \u0434\u0435\u0440\u0435\u043A\u0442\u0435\u0440\u0456","files.csv":"CSV \u0434\u0435\u0440\u0435\u043A\u0442\u0435\u0440\u0456","files.failed":"\u0424\u0430\u0439\u043B\u0434\u044B \u0436\u04AF\u043A\u0442\u0435\u0443 \u043C\u04AF\u043C\u043A\u0456\u043D \u0431\u043E\u043B\u043C\u0430\u0434\u044B","report.create":"\u0415\u0441\u0435\u043F \u049B\u04B1\u0440\u0443","report.pending":"\u0415\u0441\u0435\u043F \u0444\u0430\u0439\u043B\u0434\u0430\u0440\u044B \u0434\u0430\u0439\u044B\u043D\u0434\u0430\u043B\u0443\u0434\u0430\u2026","report.failed":"\u0415\u0441\u0435\u043F \u0444\u0430\u0439\u043B\u0434\u0430\u0440\u044B\u043D \u049B\u04B1\u0440\u0443 \u043C\u04AF\u043C\u043A\u0456\u043D \u0431\u043E\u043B\u043C\u0430\u0434\u044B","report.retry":"\u049A\u0430\u0439\u0442\u0430\u043B\u0430\u0443","report.expired":"\u0424\u0430\u0439\u043B\u0434\u0430\u0440\u0434\u044B\u04A3 \u043C\u0435\u0440\u0437\u0456\u043C\u0456 \u04E9\u0442\u0442\u0456","dashboard.eyebrow":"\u0422\u0430\u043B\u0434\u0430\u0443","dashboard.label":"\u0414\u0430\u0448\u0431\u043E\u0440\u0434 \u0442\u0430\u049B\u0442\u0430\u0441\u044B","dashboard.sections":"\u0414\u0430\u0448\u0431\u043E\u0440\u0434 \u0431\u04E9\u043B\u0456\u043C\u0434\u0435\u0440\u0456","dashboard.regions":"\u04E9\u04A3\u0456\u0440\u043B\u0435\u0440: {n}","dashboard.items":"\u043F\u043E\u0437\u0438\u0446\u0438\u044F\u043B\u0430\u0440: {n}","dashboard.openSource":"\u0414\u0435\u0440\u0435\u043A\u043A\u04E9\u0437\u0434\u0435 \u0430\u0448\u0443","dashboard.methodology":"\u04D8\u0434\u0456\u0441\u0442\u0435\u043C\u0435","dashboard.fullscreen":"\u0422\u043E\u043B\u044B\u049B \u044D\u043A\u0440\u0430\u043D","dashboard.collapse":"\u041A\u0456\u0448\u0456\u0440\u0435\u0439\u0442\u0443","dashboard.close":"\u0416\u0430\u0431\u0443","dashboard.chatTab":"\u0421\u04B1\u0445\u0431\u0430\u0442","dashboard.dashboardTab":"\u0414\u0430\u0448\u0431\u043E\u0440\u0434 \u0442\u0430\u049B\u0442\u0430\u0441\u044B","dashboard.view":"\u0421\u04B1\u0445\u0431\u0430\u0442 \u043D\u0435\u043C\u0435\u0441\u0435 \u0434\u0430\u0448\u0431\u043E\u0440\u0434","dashboard.region":"\u04E8\u04A3\u0456\u0440","dashboard.allRegions":"\u0411\u0430\u0440\u043B\u044B\u049B \u04E9\u04A3\u0456\u0440\u043B\u0435\u0440","dashboard.period":"\u041A\u0435\u0437\u0435\u04A3","dashboard.mode.label":"\u041A\u04E9\u0440\u0456\u043D\u0456\u0441","dashboard.mode.value":"\u041C\u04D9\u043D","dashboard.mode.deviation":"\u0410\u0443\u044B\u0442\u049B\u0443","dashboard.mode.change":"\u04E8\u0437\u0433\u0435\u0440\u0456\u0441","dashboard.base.label":"\u0410\u0443\u044B\u0442\u049B\u0443 \u0431\u0430\u0437\u0430\u0441\u044B","dashboard.base.median":"\u043C\u0435\u0434\u0438\u0430\u043D\u0430\u0434\u0430\u043D","dashboard.base.national":"\u049A\u0420-\u0434\u0430\u043D","dashboard.noPrevious":"\u0410\u043B\u0434\u044B\u04A3\u0493\u044B \u043A\u0435\u0437\u0435\u04A3 \u0436\u043E\u049B","dashboard.noNational":"\u0411\u04B1\u043B \u043A\u0435\u0437\u0435\u04A3\u0433\u0435 \u0435\u043B \u0431\u043E\u0439\u044B\u043D\u0448\u0430 \u043C\u04D9\u043D \u0436\u043E\u049B","dashboard.fewRegions":"\u041A\u0435\u043C\u0456\u043D\u0434\u0435 \u0435\u043A\u0456 \u043C\u04D9\u043D \u049B\u0430\u0436\u0435\u0442","dashboard.ranking":"\u041E\u0440\u044B\u043D\u0434\u0430\u0440 \u0440\u0435\u0439\u0442\u0438\u043D\u0433\u0456","dashboard.trend":"\u0421\u0435\u0440\u043F\u0456\u043D","dashboard.findings":"\u049A\u043E\u0440\u044B\u0442\u044B\u043D\u0434\u044B\u043B\u0430\u0440","dashboard.data":"\u0414\u0435\u0440\u0435\u043A\u0442\u0435\u0440","dashboard.kpis":"\u041D\u0435\u0433\u0456\u0437\u0433\u0456 \u043A\u04E9\u0440\u0441\u0435\u0442\u043A\u0456\u0448\u0442\u0435\u0440","dashboard.table.rank":"\u2116","dashboard.table.position":"\u0410\u0442\u0430\u0443\u044B","dashboard.table.value":"\u041C\u04D9\u043D\u0456, {unit}","dashboard.table.share":"\u04AE\u043B\u0435\u0441\u0456, %","dashboard.table.deviation":"\u0410\u0443\u044B\u0442\u049B\u0443, {unit}","dashboard.table.change":"\u04E8\u0437\u0433\u0435\u0440\u0456\u0441, {unit}","dashboard.source":"\u0414\u0435\u0440\u0435\u043A\u043A\u04E9\u0437: {name}","dashboard.points":"\u043F.\u0442.","dashboard.kpi.national":"\u049A\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D \u0420\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0441\u044B","dashboard.kpi.max":"\u0415\u04A3 \u0436\u043E\u0493\u0430\u0440\u044B","dashboard.kpi.min":"\u0415\u04A3 \u0442\u04E9\u043C\u0435\u043D","dashboard.kpi.median":"\u04E8\u04A3\u0456\u0440\u043B\u0435\u0440 \u043C\u0435\u0434\u0438\u0430\u043D\u0430\u0441\u044B","dashboard.kpi.spread":"\u049A\u04B1\u043B\u0430\u0448","dashboard.kpi.gap":"\u0410\u043B\u0448\u0430\u049B\u0442\u044B\u049B","dashboard.kpi.last":"\u0421\u043E\u04A3\u0493\u044B \u043C\u04D9\u043D","dashboard.kpi.first":"\u041A\u0435\u0437\u0435\u04A3 \u0431\u0430\u0441\u044B","dashboard.kpi.change":"\u04E8\u0437\u0433\u0435\u0440\u0456\u0441","dashboard.kpi.place":"\u041E\u0440\u044B\u043D","dashboard.kpi.placeOf":"{m} \u0456\u0448\u0456\u043D\u0435\u043D {n}","dashboard.kpi.deviation":"\u041C\u0435\u0434\u0438\u0430\u043D\u0430\u0434\u0430\u043D \u0430\u0443\u044B\u0442\u049B\u0443","dashboard.kpi.previous":"\u0410\u043B\u0434\u044B\u04A3\u0493\u044B \u043A\u0435\u0437\u0435\u04A3\u0433\u0435","steps.counter":"{total} \u0456\u0448\u0456\u043D\u0435\u043D {done}","feedback.reasonsLabel":"\u041D\u0435 \u049B\u0430\u0442\u0435 \u0431\u043E\u043B\u0434\u044B?","feedback.reason.wrong_number":"\u0421\u0430\u043D \u049B\u0430\u0442\u0435","feedback.reason.wrong_indicator":"\u041A\u04E9\u0440\u0441\u0435\u0442\u043A\u0456\u0448 \u0431\u0430\u0441\u049B\u0430","feedback.reason.wrong_territory":"\u0410\u0443\u043C\u0430\u049B \u0431\u0430\u0441\u049B\u0430","feedback.reason.wrong_period":"\u041A\u0435\u0437\u0435\u04A3 \u0431\u0430\u0441\u049B\u0430","feedback.reason.not_answered":"\u0421\u04B1\u0440\u0430\u049B\u049B\u0430 \u0436\u0430\u0443\u0430\u043F \u0436\u043E\u049B","feedback.reason.language":"\u0416\u0430\u0443\u0430\u043F \u0442\u0456\u043B\u0456","feedback.reason.slow":"\u0422\u044B\u043C \u04B1\u0437\u0430\u049B","feedback.reason.other":"\u0411\u0430\u0441\u049B\u0430","intro.title":"\u0411\u0430\u0441\u0442\u0430\u043C\u0430\u0441 \u0431\u04B1\u0440\u044B\u043D","intro.continue":"\u0416\u0430\u043B\u0493\u0430\u0441\u0442\u044B\u0440\u0443",source:"\u0414\u0435\u0440\u0435\u043A\u043A\u04E9\u0437: {name}","shell.siteBlocked":"\u0411\u04B1\u043B \u0441\u0430\u0439\u0442\u0442\u0430 \u0447\u0430\u0442 \u049B\u043E\u043B\u0436\u0435\u0442\u0456\u043C\u0441\u0456\u0437","shell.siteBlockedHint":"\u0421\u0430\u0439\u0442 \u0438\u0435\u0441\u0456 AI-Dana-\u043D\u044B \u04D9\u043B\u0456 \u049B\u043E\u0441\u043F\u0430\u0493\u0430\u043D \u043D\u0435\u043C\u0435\u0441\u0435 \u049B\u043E\u043B\u0436\u0435\u0442\u0456\u043C\u0434\u0456\u043B\u0456\u043A \u0442\u043E\u049B\u0442\u0430\u0442\u044B\u043B\u0493\u0430\u043D.","modes.none":"\u0416\u0430\u0443\u0430\u043F \u0440\u0435\u0436\u0438\u043C\u0434\u0435\u0440\u0456 \u049B\u0430\u0437\u0456\u0440 \u049B\u043E\u043B\u0436\u0435\u0442\u0456\u043C\u0441\u0456\u0437. \u041A\u0435\u0439\u0456\u043D\u0456\u0440\u0435\u043A \u049B\u0430\u0439\u0442\u0430\u043B\u0430\u043F \u043A\u04E9\u0440\u0456\u04A3\u0456\u0437.","attachment.sending":"\u0436\u0456\u0431\u0435\u0440\u0456\u043B\u0443\u0434\u0435","agent.steps":"\u049A\u0430\u0434\u0430\u043C\u0434\u0430\u0440","agent.unfinished":"\u0430\u044F\u049B\u0442\u0430\u043B\u043C\u0430\u0434\u044B",rateGroup:"\u0416\u0430\u0443\u0430\u043F\u0442\u044B \u0431\u0430\u0493\u0430\u043B\u0430\u0443","blocks.catalogTitle":"\u041A\u0430\u0442\u0430\u043B\u043E\u0433: {topic}","blocks.catalogSections":"\u0411\u04E9\u043B\u0456\u043C\u0434\u0435\u0440","blocks.catalogIndicators":"\u041A\u04E9\u0440\u0441\u0435\u0442\u043A\u0456\u0448\u0442\u0435\u0440","blocks.catalogSendHint":"\u0421\u04B1\u0440\u0430\u049B \u0442\u0430\u04A3\u0434\u0430\u043B\u0493\u0430\u043D \u0431\u043E\u0439\u0434\u0430 \u0436\u0456\u0431\u0435\u0440\u0456\u043B\u0435\u0434\u0456","blocks.clarification":"\u041D\u0430\u049B\u0442\u044B\u043B\u0430\u0443","files.expired":"\u0424\u0430\u0439\u043B \u043C\u0435\u0440\u0437\u0456\u043C\u0456 \u04E9\u0442\u0442\u0456","files.notFound":"\u0424\u0430\u0439\u043B \u0442\u0430\u0431\u044B\u043B\u043C\u0430\u0434\u044B","files.unavailable":"\u0424\u0430\u0439\u043B \u049B\u043E\u043B\u0436\u0435\u0442\u0456\u043C\u0441\u0456\u0437"},L0={title:"AI-Dana",open:"Open chat",unreadAnswers:"new answers: {count}",ask:"Ask a question",close:"Close",history:"History",closeHistory:"Hide history",newChat:"New chat",untitled:"New chat",historyEmpty:"No chats yet",historyError:"Could not load the history",delete:"Delete",deleteConfirm:"Delete this chat?",deleteYes:"Delete",deleteNo:"Cancel",deleteError:"Could not delete the chat",modeLabel:"Answer mode","health.idle":"Available","health.busy":"Busy","health.unavailable":"Unavailable",placeholder:"Ask your questions",inputLabel:"Message",send:"Send",stop:"Stop",attach:"Attach file",attachOne:"Only one file can be attached",attachHint:"You can attach one file: XLS, XLSX, CSV, TXT or MD, up to {size} MB",disclaimer:"AI can make mistakes \u2014 check important information",removeFile:"Remove file",counter:"{count} / {max}",counterLimit:"Character limit reached",counterOver:"Character limit exceeded",fileTooLarge:"File \u201C{name}\u201D is larger than {size} MB",fileType:"File \u201C{name}\u201D is not supported. You can attach XLS, XLSX, CSV, TXT or MD",modeUnavailable:"This mode is unavailable right now, choose another one",greeting:"How can I help?",loading:"Loading\u2026",configError:"The chat is temporarily unavailable",overloaded:"The service is overloaded right now. Please try again later.",retry:"Retry",dismiss:"Dismiss",scrollDown:"Scroll to bottom",settings:"Settings","settings.language":"Language","settings.theme":"Theme","settings.themeLight":"Light","settings.themeDark":"Dark","settings.themeAuto":"System","settings.model":"Default model","settings.modelHint":"Every new chat starts with it","settings.shortcuts":"Keyboard shortcuts","shortcut.search":"Search chats","shortcut.newChat":"New chat","shortcut.sidebar":"Show or hide the sidebar","shortcut.close":"Close the window",search:"Search chats",searchEmpty:"Nothing found",collapseSidebar:"Hide sidebar",expandSidebar:"Show sidebar",expand:"Expand to the whole page",shrink:"Shrink",examples:"Example queries","examples.whatCanDo":"What you can do","group.pinned":"Pinned","group.today":"Today","group.yesterday":"Yesterday","group.week":"Previous 7 days","group.earlier":"Earlier","errors.thread_busy":"AI-Dana is still answering in this chat. Wait for the answer or stop it.","errors.mode_overloaded":"AI-Dana is overloaded right now, please try again a bit later","errors.daily_limit":"You have used up today's message limit","errors.rate_limit":"Too many messages in a row. Please wait a minute.","errors.ip_limit":"Too many messages from your network today. Please try again tomorrow.","errors.concurrency_limit":"Wait for the previous answer to finish","errors.file_too_large":"The file is too large","errors.file_not_allowed":"This file cannot be attached. XLS, XLSX, CSV, TXT and MD are allowed","errors.invalid_query":"The message is empty or too long","errors.invalid_parent":"This message can no longer be changed","errors.mode_not_found":"The selected mode is unavailable right now. Choose another mode.","errors.thread_not_found":"Chat not found","errors.interrupted":"The answer was interrupted","errors.code":"Could not get an answer (code {code}).","errors.generic":"Something went wrong while sending the message.","errors.network":"No connection to the server. Check your network.","errors.render":"This message could not be shown.","agent.thinking":"Thinking\u2026","agent.done":"Done","agent.stopped":"Stopped","agent.stopping":"Stopping\u2026","agent.interrupted":"Answer interrupted","agent.answerStopped":"Answer stopped. Ask again if needed","agent.seconds":"{value} s","agent.attempt":"attempt {count}","agent.showSteps":"Show steps","agent.hideSteps":"Hide steps","steps.router":"Understanding the question","steps.context_builder":"Looking for the data","steps.sql_architect":"Preparing the calculation","steps.executor":"Calculating the figures","steps.responder":"Preparing the answer","steps.rag":"Looking in reference materials","steps.sql":"Looking for data in open sources","steps.document":"Reading the document","steps.understand":"Understanding the question","steps.search_law":"Searching the law","steps.run_sql":"Calculating the figures","steps.run_query":"Getting the data","steps.data":"Getting the data","steps.lookup_taxpayer":"Looking up the taxpayer","steps.find_taxpayer":"Finding the company by name","steps.ask_clarification":"Clarifying the question","steps.answer":"Preparing the answer","steps.think":"Analysing the findings","steps.file":"Reading the document","waiting.router.1":"Choosing where to look\u2026","waiting.router.2":"Matching the question to data and law\u2026","waiting.responder.1":"Checking the figures against the data\u2026","waiting.responder.2":"Checking the references to the law\u2026","waiting.responder.3":"Tidying up the answer\u2026","waiting.law.1":"Reading the articles found\u2026","waiting.law.2":"Comparing versions of the law\u2026","waiting.data.1":"Calculating the figures\u2026","waiting.data.2":"Checking the totals\u2026","waiting.executor.1":"Checking the totals\u2026","waiting.executor.2":"Tidying up the table\u2026","waiting.taxpayer.1":"Putting the profile together\u2026","waiting.taxpayer.2":"Looking at receipts by year\u2026","waiting.findCompany.1":"Comparing similar names\u2026","waiting.findCompany.2":"Picking the closest match\u2026","waiting.think.1":"Matching the findings to the question\u2026","waiting.think.2":"Deciding what else to look at\u2026","waiting.unknown.1":"Almost there\u2026","waiting.unknown.2":"Checking the result\u2026","steps.unknown":"Working on the answer",copy:"Copy",copied:"Copied",download:"Download",regenerate:"Regenerate",edit:"Edit message",editLabel:"Message text",cancel:"Cancel",actionsLabel:"Message actions",rate:"Rate {count} out of 5",ratingError:"Could not save the rating",feedbackOpen:"Leave feedback",feedbackEdit:"Edit feedback",feedbackLabel:"Feedback on the answer",feedbackPlaceholder:"What was wrong with the answer?",save:"Save","branch.label":"Versions","branch.prev":"Previous version","branch.next":"Next version","branch.error":"Could not switch the version","limit.remaining":"{count} of {limit} messages left today","limit.exhausted":"You have used up today's message limit","limit.until":"Message limit reached. You can write again after {time}.","blocks.data":"Data","blocks.hideData":"Hide data","blocks.methodology":"Methodology","blocks.passport":"What was calculated","blocks.indicator":"Indicator","blocks.territory":"Territory","blocks.period":"Period","blocks.breakdown":"Breakdown","blocks.breakdown.sex":"by sex","blocks.breakdown.age":"by age","blocks.breakdown.urban_rural":"urban and rural","blocks.breakdown.activity":"by economic activity","blocks.breakdown.item":"by item","blocks.substituted":"substituted","blocks.alternatives":"Similar indicators","blocks.table":"Data table","blocks.tableSearch":"Search the table\u2026","blocks.tableEmpty":"No data","blocks.page":"{a} of {b}","blocks.prevPage":"Previous page","blocks.nextPage":"Next page","blocks.truncated":"Showing the first {n} rows \u2014 full data in Excel","blocks.catalogMore":"\u2026and {count} more in the catalog","blocks.catalogExamples":"You can ask","blocks.options":"Answer options","blocks.default":"default","blocks.freeTextHint":"Choose an option or type your own below","blocks.findOption":"Find in the list\u2026","blocks.chosen":"Selected: {label}","blocks.continue":"Continue","blocks.cancelPlan":"Cancel","blocks.expired":"This clarification has expired","blocks.askAgain":"Ask the question again","blocks.dashboard":"Dashboard","blocks.hideDashboard":"Hide dashboard","chart.kinds":"Chart type","chart.kind.bar":"Bars","chart.kind.column":"Columns","chart.kind.pie":"Pie","chart.kind.line":"Lines","chart.kind.area":"Areas","chart.national":"KZ {value}","chart.top":"Top {n} of {total} \u2014 all in the dashboard","chart.label":"{title}, {period}","files.list":"Files","files.report":"Final report","files.document":"Editable document","files.presentation":"Presentation","files.excel":"Excel data","files.csv":"CSV data","files.failed":"Could not download the file","report.create":"Generate report","report.pending":"Report files are being prepared\u2026","report.failed":"Could not generate the report files","report.retry":"Retry","report.expired":"The files have expired","dashboard.eyebrow":"Analytics","dashboard.label":"Dashboard","dashboard.sections":"Dashboard sections","dashboard.regions":"regions: {n}","dashboard.items":"items: {n}","dashboard.openSource":"Open in source","dashboard.methodology":"Methodology","dashboard.fullscreen":"Full screen","dashboard.collapse":"Collapse","dashboard.close":"Close","dashboard.chatTab":"Chat","dashboard.dashboardTab":"Dashboard","dashboard.view":"Chat or dashboard","dashboard.region":"Region","dashboard.allRegions":"All regions","dashboard.period":"Period","dashboard.mode.label":"Mode","dashboard.mode.value":"Value","dashboard.mode.deviation":"Deviation","dashboard.mode.change":"Change","dashboard.base.label":"Deviation base","dashboard.base.median":"from median","dashboard.base.national":"from KZ","dashboard.noPrevious":"No previous period","dashboard.noNational":"No national value for this period","dashboard.fewRegions":"At least two values are needed","dashboard.ranking":"Ranking","dashboard.trend":"Trend","dashboard.findings":"Findings","dashboard.data":"Data","dashboard.kpis":"Key figures","dashboard.table.rank":"#","dashboard.table.position":"Item","dashboard.table.value":"Value, {unit}","dashboard.table.share":"Share, %","dashboard.table.deviation":"Deviation, {unit}","dashboard.table.change":"Change, {unit}","dashboard.source":"Source: {name}","dashboard.points":"p.p.","dashboard.kpi.national":"Republic of Kazakhstan","dashboard.kpi.max":"Maximum","dashboard.kpi.min":"Minimum","dashboard.kpi.median":"Regional median","dashboard.kpi.spread":"Range","dashboard.kpi.gap":"Gap","dashboard.kpi.last":"Latest value","dashboard.kpi.first":"Start of period","dashboard.kpi.change":"Change","dashboard.kpi.place":"Rank","dashboard.kpi.placeOf":"{n} of {m}","dashboard.kpi.deviation":"Deviation from median","dashboard.kpi.previous":"vs previous period","steps.counter":"{done} of {total}","feedback.reasonsLabel":"What went wrong?","feedback.reason.wrong_number":"Wrong number","feedback.reason.wrong_indicator":"Wrong indicator","feedback.reason.wrong_territory":"Wrong territory","feedback.reason.wrong_period":"Wrong period","feedback.reason.not_answered":"Question not answered","feedback.reason.language":"Answer language","feedback.reason.slow":"Too slow","feedback.reason.other":"Other","intro.title":"Before you start","intro.continue":"Continue",source:"Source: {name}","shell.siteBlocked":"The chat is not available on this site","shell.siteBlockedHint":"The site owner has not connected AI-Dana yet or access is suspended.","modes.none":"Answer modes are unavailable right now. Please try again later.","attachment.sending":"sending","agent.steps":"Steps","agent.unfinished":"not finished",rateGroup:"Rate the answer","blocks.catalogTitle":"Catalog: {topic}","blocks.catalogSections":"Sections","blocks.catalogIndicators":"Indicators","blocks.catalogSendHint":"The question is sent as soon as you pick it","blocks.clarification":"Clarification","files.expired":"The file has expired","files.notFound":"File not found","files.unavailable":"File unavailable"},D0={kk:P0,ru:Fp,en:L0},zt=(r,a,o)=>{const s=D0[r][a];return o?s.replace(/\{(\w+)\}/g,(u,p)=>String(o[p]??u)):s},ll=r=>r in Fp,aa=(r,a)=>{if(!r)return"";for(const o of[r[a],r.ru,...Object.values(r)])if(o)return o;return""},Up="aid_prefs",I0=["light","dark","auto"],qp=r=>{try{const a=JSON.parse(r?.getItem(Up)??"{}"),o={};return sl.includes(a.lang)&&(o.lang=a.lang),I0.includes(a.scheme)&&(o.scheme=a.scheme),o}catch{return{}}},T0=(r,a)=>{try{r?.setItem(Up,JSON.stringify(a))}catch{}},Vp=({scheme:r})=>r?{scheme:r}:{},A0=(r,a,o)=>a?!o||r.expanded?r:{expanded:!0,byDashboard:!0}:r.byDashboard?{expanded:!1,byDashboard:!1}:r,cl=x.createContext(null),dl=()=>{const r=x.useContext(cl);if(!r)throw new Error("usePrefs outside PrefsContext");return r},O0=r=>{let a=r;const o=new Set;return{get:()=>a,set:s=>{a={...a,...s};for(const u of o)u()},subscribe:s=>(o.add(s),()=>o.delete(s))}};class ul extends x.Component{constructor(){super(...arguments),sn(this,"state",{failed:!1})}static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}}const $0='*,: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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--aid-c-border)}: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:var(--aid-c-font);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;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([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]:where(:not([hidden=until-found])){display:none}.\\!container{width:100%!important;margin-right:auto!important;margin-left:auto!important;padding-right:32px!important;padding-left:32px!important}.container{width:100%;margin-right:auto;margin-left:auto;padding-right:32px;padding-left:32px}@media(min-width:1400px){.\\!container{max-width:1400px!important}.container{max-width:1400px}}.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}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-\\[3px\\]{inset:3px}.inset-y-0{top:0;bottom:0}.bottom-3{bottom:12px}.bottom-\\[3\\.2rem\\]{bottom:51.2px}.bottom-\\[calc\\(100\\%\\+6px\\)\\]{bottom:calc(100% + 6px)}.left-0{left:0}.left-1\\/2{left:50%}.left-4{left:16px}.left-\\[11px\\]{left:11px}.right-1{right:4px}.right-2{right:8px}.top-0{top:0}.top-1\\/2{top:50%}.top-\\[calc\\(100\\%\\+6px\\)\\]{top:calc(100% + 6px)}.top-full{top:100%}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.m-0{margin:0}.mx-1\\.5{margin-left:6px;margin-right:6px}.mx-auto{margin-left:auto;margin-right:auto}.my-0\\.5{margin-top:2px;margin-bottom:2px}.my-4{margin-top:16px;margin-bottom:16px}.-ml-2{margin-left:-8px}.mb-2{margin-bottom:8px}.ml-0\\.5{margin-left:2px}.ml-1\\.5{margin-left:6px}.mr-1{margin-right:4px}.mr-auto{margin-right:auto}.mt-0\\.5{margin-top:2px}.mt-1{margin-top:4px}.mt-3{margin-top:12px}.mt-4{margin-top:16px}.mt-5{margin-top:20px}.mt-\\[18px\\]{margin-top:18px}.mt-px{margin-top:1px}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.\\!block{display:block!important}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.size-10{width:40px;height:40px}.size-2{width:8px;height:8px}.size-3{width:12px;height:12px}.size-3\\.5{width:14px;height:14px}.size-4{width:16px;height:16px}.size-6{width:24px;height:24px}.size-7{width:28px;height:28px}.size-8{width:32px;height:32px}.size-9{width:36px;height:36px}.size-\\[26px\\]{width:26px;height:26px}.size-\\[30px\\]{width:30px;height:30px}.size-\\[34px\\]{width:34px;height:34px}.size-\\[52px\\]{width:52px;height:52px}.h-10{height:40px}.h-3{height:12px}.h-4{height:16px}.h-5{height:20px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-9{height:36px}.h-\\[11px\\]{height:11px}.h-\\[17px\\]{height:17px}.h-\\[18px\\]{height:18px}.h-\\[22px\\]{height:22px}.h-\\[30px\\]{height:30px}.h-\\[38px\\]{height:38px}.h-full{height:100%}.h-side-head{height:var(--aid-c-side-head-height)}.h-toolbar{height:var(--aid-c-toolbar-height)}.max-h-56{max-height:224px}.max-h-\\[28rem\\]{max-height:448px}.max-h-full{max-height:100%}.min-h-0{min-height:0px}.min-h-10{min-height:40px}.min-h-11{min-height:44px}.min-h-6{min-height:24px}.min-h-7{min-height:28px}.min-h-8{min-height:32px}.min-h-9{min-height:36px}.min-h-\\[30px\\]{min-height:30px}.min-h-\\[34px\\]{min-height:34px}.min-h-\\[76px\\]{min-height:76px}.w-1\\/2{width:50%}.w-10{width:40px}.w-\\[18px\\]{width:18px}.w-\\[340px\\]{width:340px}.w-\\[62\\%\\]{width:62%}.w-\\[7px\\]{width:7px}.w-\\[max-content\\]{width:-moz-max-content;width:max-content}.w-\\[min\\(400px\\,100\\%\\)\\]{width:min(400px,100%)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.w-side{width:var(--aid-c-side-width)}.w-side-over{width:var(--aid-c-side-over-width)}.min-w-0{min-width:0px}.min-w-16{min-width:64px}.min-w-24{min-width:96px}.min-w-32{min-width:128px}.min-w-4{min-width:16px}.min-w-40{min-width:160px}.min-w-5{min-width:20px}.min-w-\\[220px\\]{min-width:220px}.min-w-\\[22px\\]{min-width:22px}.min-w-\\[30px\\]{min-width:30px}.min-w-\\[480px\\]{min-width:480px}.min-w-full{min-width:100%}.max-w-60{max-width:240px}.max-w-\\[300px\\]{max-width:300px}.max-w-\\[340px\\]{max-width:340px}.max-w-\\[420px\\]{max-width:420px}.max-w-\\[440px\\]{max-width:440px}.max-w-\\[520px\\]{max-width:520px}.max-w-\\[640px\\]{max-width:640px}.max-w-\\[78\\%\\]{max-width:78%}.max-w-\\[820px\\]{max-width:820px}.max-w-\\[844px\\]{max-width:844px}.max-w-\\[calc\\(100\\%-2rem\\)\\]{max-width:calc(100% - 32px)}.max-w-\\[min\\(360px\\,100\\%\\)\\]{max-width:min(360px,100%)}.max-w-\\[min\\(360px\\,80vw\\)\\]{max-width:min(360px,80vw)}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.-translate-x-1\\/2{--tw-translate-x: -50%;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))}.-translate-y-1\\/2{--tw-translate-y: -50%;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))}.translate-y-0{--tw-translate-y: 0px;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))}.translate-y-2{--tw-translate-y: 8px;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))}.translate-y-\\[3px\\]{--tw-translate-y: 3px;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))}.rotate-180{--tw-rotate: 180deg;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))}.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 pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.resize{resize:both}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\\[repeat\\(auto-fit\\,minmax\\(9\\.5rem\\,1fr\\)\\)\\]{grid-template-columns:repeat(auto-fit,minmax(152px,1fr))}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\\.5{gap:2px}.gap-1{gap:4px}.gap-1\\.5{gap:6px}.gap-2{gap:8px}.gap-2\\.5{gap:10px}.gap-3{gap:12px}.gap-3\\.5{gap:14px}.gap-4{gap:16px}.gap-5{gap:20px}.gap-\\[22px\\]{gap:22px}.gap-\\[3px\\]{gap:3px}.gap-\\[7px\\]{gap:7px}.gap-px{gap:1px}.gap-x-3\\.5{-moz-column-gap:14px;column-gap:14px}.gap-y-1{row-gap:4px}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.overscroll-x-contain{overscroll-behavior-x:contain}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:var(--aid-c-radius)}.rounded-2xl{border-radius:16px}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[14px\\]{border-radius:14px}.rounded-\\[18px\\]{border-radius:18px}.rounded-\\[22\\.5\\%\\]{border-radius:22.5%}.rounded-\\[3px\\]{border-radius:3px}.rounded-\\[5px\\]{border-radius:5px}.rounded-\\[7px\\]{border-radius:7px}.rounded-\\[calc\\(var\\(--aid-c-radius\\)\\+6px\\)\\]{border-radius:calc(var(--aid-c-radius) + 6px)}.rounded-aid-field{border-radius:var(--aid-c-radius-field)}.rounded-aid-window{border-radius:var(--aid-c-radius-window)}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--aid-c-radius)}.rounded-md{border-radius:calc(var(--aid-c-radius) - 2px)}.rounded-sm{border-radius:calc(var(--aid-c-radius) - 4px)}.rounded-xl{border-radius:12px}.rounded-br-\\[6px\\]{border-bottom-right-radius:6px}.border{border-width:1px}.border-0{border-width:0px}.border-\\[1\\.5px\\]{border-width:1.5px}.border-\\[3px\\]{border-width:3px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-l-\\[3px\\]{border-left-width:3px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-border{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--aid-c-border) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.border-current{border-color:currentColor}.border-destructive{border-color:hsl(var(--destructive))}.border-destructive\\/30{border-color:hsl(var(--destructive) / .3)}.border-error\\/30{border-color:hsl(var(--error),.3)}.border-error\\/35{border-color:hsl(var(--error),.35)}.border-input{border-color:hsl(var(--input))}.border-muted-foreground{border-color:hsl(var(--muted-foreground))}.border-primary{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--aid-c-primary) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.border-primary-30{border-color:color-mix(in srgb,var(--aid-c-primary) 30%,transparent)}.border-primary-35{border-color:color-mix(in srgb,var(--aid-c-primary) 35%,transparent)}.border-primary-50{border-color:color-mix(in srgb,var(--aid-c-primary) 50%,transparent)}.border-primary-pressed{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--aid-c-primary-pressed) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.border-processing\\/25{border-color:hsl(var(--processing),.25)}.border-warning\\/40{border-color:hsl(var(--warning),.4)}.border-r-transparent{border-right-color:transparent}.bg-\\[\\#F3F5FA\\]{--tw-bg-opacity: 1;background-color:rgb(243 245 250 / var(--tw-bg-opacity, 1))}.bg-\\[hsl\\(var\\(--chart-card\\)\\)\\]{background-color:hsl(var(--chart-card))}.bg-accent{background-color:hsl(var(--accent))}.bg-background{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-background) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-border{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-border) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-card{background-color:hsl(var(--card))}.bg-current{background-color:currentColor}.bg-destructive{background-color:hsl(var(--destructive))}.bg-destructive-background{background-color:hsla(var(--destructive-background))}.bg-destructive-pressed{background-color:hsl(var(--destructive-pressed))}.bg-error-background{background-color:hsla(var(--error-background))}.bg-file-csv{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--file-csv)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-file-doc{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--file-doc)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-file-other{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--file-other)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-file-pdf{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--file-pdf)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-file-ppt{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--file-ppt)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-file-xls{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--file-xls)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-foreground{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-foreground) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-hl{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--hl)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-mode-busy{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--mode-busy)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-mode-down{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--mode-down)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-mode-idle{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--mode-idle)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-muted{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-muted) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-muted-foreground\\/40{background-color:hsl(var(--muted-foreground) / .4)}.bg-muted\\/60{background-color:color-mix(in srgb,var(--aid-c-muted) 60%,transparent)}.bg-primary{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-primary) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-primary-pressed{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-primary-pressed) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-processing-background{background-color:hsla(var(--processing-background))}.bg-scrim{background-color:var(--scrim)}.bg-secondary{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-secondary) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-transparent{background-color:transparent}.bg-warning-background{background-color:hsla(var(--warning-background))}.fill-current{fill:currentColor}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-0\\.5{padding:2px}.p-1{padding:4px}.p-1\\.5{padding:6px}.p-2{padding:8px}.p-2\\.5{padding:10px}.p-3{padding:12px}.p-3\\.5{padding:14px}.p-4{padding:16px}.p-6{padding:24px}.p-8{padding:32px}.px-0{padding-left:0;padding-right:0}.px-0\\.5{padding-left:2px;padding-right:2px}.px-1{padding-left:4px;padding-right:4px}.px-1\\.5{padding-left:6px;padding-right:6px}.px-2{padding-left:8px;padding-right:8px}.px-2\\.5{padding-left:10px;padding-right:10px}.px-3{padding-left:12px;padding-right:12px}.px-3\\.5{padding-left:14px;padding-right:14px}.px-4{padding-left:16px;padding-right:16px}.px-5{padding-left:20px;padding-right:20px}.px-\\[18px\\]{padding-left:18px;padding-right:18px}.px-\\[5px\\]{padding-left:5px;padding-right:5px}.px-px{padding-left:1px;padding-right:1px}.py-0{padding-top:0;padding-bottom:0}.py-0\\.5{padding-top:2px;padding-bottom:2px}.py-1{padding-top:4px;padding-bottom:4px}.py-1\\.5{padding-top:6px;padding-bottom:6px}.py-2{padding-top:8px;padding-bottom:8px}.py-2\\.5{padding-top:10px;padding-bottom:10px}.py-3{padding-top:12px;padding-bottom:12px}.py-3\\.5{padding-top:14px;padding-bottom:14px}.py-6{padding-top:24px;padding-bottom:24px}.py-\\[7px\\]{padding-top:7px;padding-bottom:7px}.py-\\[9px\\]{padding-top:9px;padding-bottom:9px}.py-px{padding-top:1px;padding-bottom:1px}.pb-1{padding-bottom:4px}.pb-1\\.5{padding-bottom:6px}.pb-2{padding-bottom:8px}.pb-2\\.5{padding-bottom:10px}.pb-3{padding-bottom:12px}.pb-4{padding-bottom:16px}.pb-5{padding-bottom:20px}.pb-\\[18px\\]{padding-bottom:18px}.pl-0\\.5{padding-left:2px}.pl-2{padding-left:8px}.pl-2\\.5{padding-left:10px}.pl-3{padding-left:12px}.pl-3\\.5{padding-left:14px}.pl-4{padding-left:16px}.pl-5{padding-left:20px}.pl-\\[18px\\]{padding-left:18px}.pl-\\[22px\\]{padding-left:22px}.pl-\\[34px\\]{padding-left:34px}.pr-1\\.5{padding-right:6px}.pr-2{padding-right:8px}.pr-2\\.5{padding-right:10px}.pr-3{padding-right:12px}.pr-3\\.5{padding-right:14px}.pr-4{padding-right:16px}.pr-7{padding-right:28px}.pr-9{padding-right:36px}.pt-0\\.5{padding-top:2px}.pt-1{padding-top:4px}.pt-1\\.5{padding-top:6px}.pt-14{padding-top:56px}.pt-2{padding-top:8px}.pt-3{padding-top:12px}.pt-3\\.5{padding-top:14px}.pt-7{padding-top:28px}.pt-\\[18px\\]{padding-top:18px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:var(--aid-c-font)}.text-2xl{font-size:20px}.text-2xs{font-size:12px}.text-3xl{font-size:24px}.text-\\[11px\\]{font-size:11px}.text-\\[13\\.5px\\]{font-size:13.5px}.text-\\[13px\\]{font-size:13px}.text-\\[15px\\]{font-size:15px}.text-\\[17px\\]{font-size:17px}.text-\\[9\\.5px\\]{font-size:9.5px}.text-base{font-size:15px}.text-lg{font-size:16px}.text-sm{font-size:14px}.text-xl{font-size:18px}.text-xs{font-size:13px}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-6{line-height:24px}.leading-\\[1\\.35\\]{line-height:1.35}.leading-\\[1\\.3\\]{line-height:1.3}.leading-\\[1\\.55\\]{line-height:1.55}.leading-\\[1\\.65\\]{line-height:1.65}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-\\[0\\.02em\\]{letter-spacing:.02em}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.text-\\[hsl\\(var\\(--foreground\\)\\)\\]{color:hsl(var(--foreground))}.text-background{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-background) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-foreground) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.text-inherit{color:inherit}.text-mode-busy{--tw-text-opacity: 1;color:color-mix(in srgb,hsl(var(--mode-busy)) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.text-mode-down{--tw-text-opacity: 1;color:color-mix(in srgb,hsl(var(--mode-down)) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.text-mode-idle{--tw-text-opacity: 1;color:color-mix(in srgb,hsl(var(--mode-idle)) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--muted-foreground) / .7)}.text-primary{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-primary) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.text-primary-foreground{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-primary-foreground) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-warn-text{--tw-text-opacity: 1;color:color-mix(in srgb,hsl(var(--warn-text)) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.text-warning{--tw-text-opacity: 1;color:hsl(var(--warning),var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0_0_0_3px_var\\(--aid-c-secondary\\)\\]{--tw-shadow: 0 0 0 3px var(--aid-c-secondary);--tw-shadow-colored: 0 0 0 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[inset_0_0_0_1px_var\\(--aid-c-border\\)\\]{--tw-shadow: inset 0 0 0 1px var(--aid-c-border);--tw-shadow-colored: inset 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-panel{--tw-shadow: var(--aid-c-shadow-panel);--tw-shadow-colored: var(--aid-c-shadow-panel);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-pop{--tw-shadow: var(--shadow-pop);--tw-shadow-colored: var(--shadow-pop);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-side{--tw-shadow: var(--aid-c-shadow-side);--tw-shadow-colored: var(--aid-c-shadow-side);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-window{--tw-shadow: var(--aid-c-shadow-window);--tw-shadow-colored: var(--aid-c-shadow-window);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring{--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(3px + 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)}.ring-1{--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(1px + 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)}.ring-\\[3px\\]{--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(3px + 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)}.ring-border{--tw-ring-opacity: 1;--tw-ring-color: color-mix(in srgb, var(--aid-c-border) calc(var(--tw-ring-opacity, 1) * 100%), transparent)}.ring-secondary{--tw-ring-opacity: 1;--tw-ring-color: color-mix(in srgb, var(--aid-c-secondary) calc(var(--tw-ring-opacity, 1) * 100%), transparent)}.ring-offset-background{--tw-ring-offset-color: color-mix(in srgb, var(--aid-c-background) 100% , transparent)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in{--tw-enter-opacity: 0}.slide-in-from-left-2{--tw-enter-translate-x: -8px}.duration-150{animation-duration:.15s}.duration-200{animation-duration:.2s}.running{animation-play-state:running}.paused{animation-play-state:paused}:host{display:block}:host([hidden]){display:none!important}.aid-root{all:initial;display:block;width:100%;height:100%;box-sizing:border-box;--aid-d-primary-hovered: color-mix(in oklch, var(--aid-primary) 84%, white);--aid-d-primary-pressed: color-mix(in oklch, var(--aid-primary) 80%, black);--aid-d-primary-foreground: oklch(from var(--aid-primary) clamp(0, (.62 - l) * 1000, 1) 0 0);--aid-d-secondary: color-mix(in srgb, var(--aid-primary) 10%, transparent);--aid-d-ring: color-mix(in srgb, var(--aid-primary) 50%, transparent);--aid-c-primary: var(--aid-primary, hsl(var(--primary)));--aid-c-primary-hovered: var(--aid-primary-hovered, var(--aid-d-primary-hovered, hsl(var(--primary-hovered))));--aid-c-primary-pressed: var(--aid-primary-pressed, var(--aid-d-primary-pressed, hsl(var(--primary-pressed))));--aid-c-primary-foreground: var( --aid-primary-foreground, var(--aid-d-primary-foreground, hsl(var(--primary-foreground))) );--aid-c-secondary: var(--aid-secondary, var(--aid-d-secondary, hsl(var(--secondary))));--aid-c-ring: var(--aid-ring, var(--aid-d-ring, hsl(var(--ring))));--aid-c-background: var(--aid-background, hsl(var(--background)));--aid-c-foreground: var(--aid-foreground, hsl(var(--foreground)));--aid-c-muted: var(--aid-muted, hsl(var(--muted)));--aid-c-border: var(--aid-border, hsl(var(--border)));--aid-c-radius: var(--aid-radius, var(--radius));--aid-c-font: var( --aid-font, var( --aid-theme-font, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif ) );--aid-c-z: var(--aid-z-index, 2147483000);font-family:var(--aid-c-font);font-size:15px;line-height:1.5;color:var(--aid-c-foreground);-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;text-align:left}.aid-root{--warning: 21, 90%, 48%;--warning-background: 27, 96%, 61%, .2;--ring: 201 100% 35%;--chart-1: 201 100% 35%;--chart-2: 174 72% 30%;--chart-3: 27 95% 46%;--chart-4: 330 70% 42%;--chart-5: 252 45% 52%;--chart-ref: 222 47% 11%;--chart-neg: 359 72% 48%;--chart-dim: 201 45% 80%;--chart-grid: 214 32% 88%;--mode-idle: 142 72% 29%;--mode-busy: 32 95% 36%;--mode-down: 359 78% 44%;--file-pdf: 0 72% 45%;--file-doc: 214 80% 44%;--file-ppt: 18 88% 44%;--file-xls: 145 63% 30%;--file-csv: 174 70% 28%;--file-other: 215 16% 42%;--warn-text: 24 90% 30%;--hl: 45 100% 55% / .45;--scrim: rgb(2 6 23 / .48);--persona-ring: 214 32% 88%;--shadow-pop: 0 10px 28px -10px rgb(15 23 42 / .28);--aid-c-radius-window: calc(var(--aid-c-radius) + 6px);--aid-c-radius-field: calc(var(--aid-c-radius) + 4px);--aid-c-radius-bubble-corner: 6px;--aid-c-side-width: 248px;--aid-c-side-over-width: 290px;--aid-c-toolbar-height: 52px;--aid-c-side-head-height: 56px;--aid-c-shadow-launcher: 0 10px 30px -8px rgb(2 6 23 / .45), 0 2px 6px rgb(2 6 23 / .2);--aid-c-shadow-launcher-drag: 0 22px 44px -10px rgb(2 6 23 / .55);--aid-c-shadow-window: 0 30px 70px -20px rgb(2 6 23 / .55);--aid-c-shadow-panel: 0 20px 50px -16px rgb(2 6 23 / .5);--aid-c-shadow-side: 12px 0 30px -12px rgb(2 6 23 / .45)}.aid-root.dark{--ring: 201 90% 60%;--chart-1: 201 90% 60%;--chart-2: 170 60% 52%;--chart-3: 30 95% 62%;--chart-4: 330 75% 70%;--chart-5: 252 75% 76%;--chart-ref: 210 40% 98%;--chart-neg: 359 92% 70%;--chart-dim: 201 30% 32%;--chart-grid: 217 33% 25%;--mode-idle: 142 60% 55%;--mode-busy: 35 95% 62%;--mode-down: 359 95% 72%;--file-pdf: 0 80% 62%;--file-doc: 214 85% 62%;--file-ppt: 20 92% 60%;--file-xls: 145 55% 48%;--file-csv: 172 55% 46%;--file-other: 215 20% 60%;--warn-text: 32 95% 66%;--hl: 45 100% 55% / .35;--scrim: rgb(0 0 0 / .6);--persona-ring: 217 33% 30%;--shadow-pop: 0 12px 32px -10px rgb(0 0 0 / .6)}:where(.aid-root svg.lucide){width:16px;height:16px;flex-shrink:0}:where(.aid-root *),:where(.aid-root *):before,:where(.aid-root *):after{border-color:var(--aid-c-border)}.aid-root[data-mode=launcher]{width:0;height:0}.aid-root{--aid-c-launcher-size: 60px}@media(max-width:639px){.aid-root{--aid-c-launcher-size: 56px}}.aid-launcher{position:fixed;z-index:var(--aid-c-z);display:inline-flex;align-items:center;justify-content:center;gap:10px;box-sizing:border-box;min-width:var(--aid-c-launcher-size);height:var(--aid-c-launcher-size);padding:0;border:0;border-radius:9999px;background:var(--aid-c-primary);color:var(--aid-c-primary-foreground);box-shadow:var(--aid-c-shadow-launcher);font:600 15px/1 var(--aid-c-font);cursor:pointer;outline:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;transition:background-color .12s ease-out,transform .12s ease-out,box-shadow .12s ease-out}.aid-launcher[data-variant=label]{max-width:300px;padding:0 20px 0 8px}.aid-launcher[data-shape=rounded]{border-radius:16px}.aid-launcher[data-shape=square]{border-radius:4px}@media(hover:hover){.aid-launcher:hover{background:var(--aid-c-primary-hovered);transform:translateY(-2px)}}.aid-launcher:active{transform:scale(.96)}.aid-launcher:focus-visible{outline:3px solid var(--aid-c-ring);outline-offset:3px}.aid-launcher[data-dragging=true]{transform:scale(1.06);box-shadow:var(--aid-c-shadow-launcher-drag)}@media(prefers-reduced-motion:reduce){.aid-launcher,.aid-launcher:hover,.aid-launcher:active,.aid-launcher[data-dragging=true]{transition:none;transform:none}}.aid-launcher[data-dragging=true],.aid-window-header[data-dragging=true]{cursor:grabbing}.aid-launcher-origin{position:fixed;z-index:calc(var(--aid-c-z) - 1);box-sizing:border-box;border:1.5px dashed hsl(var(--muted-foreground) / .55);border-radius:9999px;pointer-events:none}.aid-launcher-origin[data-shape=rounded]{border-radius:16px}.aid-launcher-origin[data-shape=square]{border-radius:4px}.aid-root{--aid-c-window-gap: 24px;--aid-c-overlay: var(--aid-overlay, rgb(2 6 23 / .35))}.aid-window{position:fixed;z-index:var(--aid-c-z);display:flex;flex-direction:column;overflow:hidden;transition:opacity .2s ease-out,transform .26s cubic-bezier(.32,.72,0,1),visibility 0s linear 0s}.dana-av{position:relative;display:inline-block;flex-shrink:0;overflow:hidden}.dana-av>*{position:absolute;inset:0;width:100%;height:100%;display:block}.dana-av-body{transform-origin:50% 100%}.dana-av-dot{transform-box:fill-box;transform-origin:50% 50%}.dana-av[data-animated][data-mood=calm] .dana-av-body,.dana-av[data-animated][data-mood=listen] .dana-av-body{animation:dana-breathe 3.6s ease-in-out infinite alternate}.dana-av[data-animated][data-mood=typing] .dana-av-body{animation:dana-bob .34s ease-in-out infinite}.dana-av[data-animated][data-mood=think] .dana-av-body{animation:dana-sway 3.4s ease-in-out infinite alternate}.dana-av[data-animated][data-mood=eureka] .dana-av-body{animation:dana-lift 1.3s cubic-bezier(.3,0,.4,1) infinite}.dana-av[data-animated][data-mood=sorry] .dana-av-body{animation:dana-slump 2.8s ease-in-out infinite}.dana-av[data-animated] .dana-av-bubble,.dana-av[data-animated] .dana-av-dots{animation:dana-float 2.2s ease-in-out infinite alternate}.dana-av[data-animated] .dana-av-dot{animation:dana-dot 1.1s ease-in-out infinite}.dana-av[data-animated] .dana-av-dot:nth-child(3n+2){animation-delay:.18s}.dana-av[data-animated] .dana-av-dot:nth-child(3n){animation-delay:.36s}.dana-av[data-animated] .dana-av-spark{transform-origin:13% 30%;animation:dana-twinkle 1.3s ease-in-out infinite}.dana-av[data-animated] .dana-av-drop{animation:dana-drip 1.8s ease-in infinite}@keyframes dana-breathe{to{transform:translateY(-.5%) scale(1.004,1.01)}}@keyframes dana-bob{50%{transform:translateY(.5%)}}@keyframes dana-sway{0%{transform:rotate(-1.2deg)}to{transform:rotate(1.2deg)}}@keyframes dana-lift{15%{transform:scale(1.02,.98)}42%{transform:translateY(-2.5%) scale(.99,1.015)}65%{transform:scale(1.01,.99)}80%{transform:none}}@keyframes dana-slump{8%{transform:translate(-.7%) rotate(-.6deg)}16%{transform:translate(.7%) rotate(.6deg)}24%{transform:none}60%{transform:translateY(1%) rotate(-.8deg)}}@keyframes dana-float{to{transform:translateY(-1.5%)}}@keyframes dana-dot{0%,60%,to{transform:translateY(0);opacity:.45}30%{transform:translateY(-40%);opacity:1}}@keyframes dana-twinkle{0%,to{transform:scale(.75);opacity:.6}45%{transform:scale(1.08) rotate(12deg);opacity:1}}@keyframes dana-drip{0%{transform:translateY(-1.5%);opacity:0}15%{opacity:1}70%{transform:translateY(3.5%);opacity:1}to{transform:translateY(5.5%);opacity:0}}@media(prefers-reduced-motion:reduce){.dana-av *{animation:none!important}}.aid-overlay{position:fixed;inset:0;z-index:var(--aid-c-z);background:var(--aid-c-overlay);transition:opacity .2s ease-out,visibility 0s linear 0s}.aid-overlay[data-state=closed]{opacity:0;visibility:hidden;transition:opacity .2s ease-in,visibility 0s linear .2s}.aid-root[data-mode=launcher] .aid-window{top:var(--aid-c-window-gap);right:var(--aid-c-window-gap);bottom:var(--aid-c-window-gap);width:min(calc(100vw - 2 * var(--aid-c-window-gap)),max(720px,var(--aid-window-width, 60vw)));transition:opacity .2s ease-out,transform .26s cubic-bezier(.32,.72,0,1),width .26s cubic-bezier(.32,.72,0,1),visibility 0s linear 0s}.aid-root[data-mode=launcher] .aid-window[data-expanded=true]{width:calc(100vw - 2 * var(--aid-c-window-gap))}.aid-root .aid-window[data-state=closed]{opacity:0;transform:translateY(8px);visibility:hidden;pointer-events:none;transition:opacity .16s ease-in,transform .2s ease-in,visibility 0s linear .2s}.aid-root[data-mode=launcher] .aid-window[data-fullscreen=true]{inset:0;width:100%;border-width:0;border-radius:0;box-shadow:none}.aid-root[data-mode=window] .aid-window{position:relative;width:100%;height:100%;box-shadow:none}@media(prefers-reduced-motion:reduce){.aid-root .aid-window,.aid-root .aid-window[data-state=closed],.aid-overlay,.aid-overlay[data-state=closed]{transition:none}}.aid-launcher-badge{position:absolute;top:-4px;right:-4px;box-sizing:content-box;display:flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border:2px solid var(--aid-c-background);border-radius:9999px;background:hsl(var(--destructive));color:hsl(var(--destructive-foreground));font:700 11px/1 var(--aid-c-font)}.placeholder\\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.first\\:mt-0:first-child{margin-top:0}.last\\:border-b-0:last-child{border-bottom-width:0px}.empty\\:hidden:empty{display:none}.focus-within\\:border-destructive:focus-within{border-color:hsl(var(--destructive))}.focus-within\\:border-primary:focus-within{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--aid-c-primary) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.focus-within\\:ring-\\[3px\\]:focus-within{--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(3px + 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-within\\:ring-secondary:focus-within{--tw-ring-opacity: 1;--tw-ring-color: color-mix(in srgb, var(--aid-c-secondary) calc(var(--tw-ring-opacity, 1) * 100%), transparent)}.hover\\:border-primary:hover{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--aid-c-primary) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.hover\\:border-primary\\/50:hover{border-color:color-mix(in srgb,var(--aid-c-primary) 50%,transparent)}.hover\\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:bg-background:hover{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-background) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.hover\\:bg-background\\/60:hover{background-color:color-mix(in srgb,var(--aid-c-background) 60%,transparent)}.hover\\:bg-destructive-hovered:hover{background-color:hsl(var(--destructive-hovered))}.hover\\:bg-muted:hover{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-muted) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.hover\\:bg-primary-hovered:hover{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-primary-hovered) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.hover\\:bg-secondary-hovered:hover{--tw-bg-opacity: 1;background-color:hsl(var(--secondary-hovered),var(--tw-bg-opacity, 1))}.hover\\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:text-foreground:hover{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-foreground) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.hover\\:text-primary-foreground:hover{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-primary-foreground) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.hover\\:text-primary-hovered:hover{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-primary-hovered) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.hover\\:text-primary\\/80:hover{color:color-mix(in srgb,var(--aid-c-primary) 80%,transparent)}.hover\\:underline:hover{text-decoration-line:underline}.focus\\:border-primary:focus{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--aid-c-primary) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.focus\\:ring-\\[3px\\]: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(3px + 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-secondary:focus{--tw-ring-opacity: 1;--tw-ring-color: color-mix(in srgb, var(--aid-c-secondary) calc(var(--tw-ring-opacity, 1) * 100%), transparent)}.focus-visible\\:border-primary:focus-visible{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--aid-c-primary) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.focus-visible\\:bg-accent:focus-visible{background-color:hsl(var(--accent))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--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-visible\\:ring-\\[3px\\]:focus-visible{--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(3px + 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-visible\\:ring-inset:focus-visible{--tw-ring-inset: inset}.focus-visible\\:ring-destructive:focus-visible{--tw-ring-color: hsl(var(--destructive))}.focus-visible\\:ring-primary:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: color-mix(in srgb, var(--aid-c-primary) calc(var(--tw-ring-opacity, 1) * 100%), transparent)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: color-mix(in srgb, var(--aid-c-ring) calc(var(--tw-ring-opacity, 1) * 100%), transparent)}.focus-visible\\:ring-secondary:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: color-mix(in srgb, var(--aid-c-secondary) calc(var(--tw-ring-opacity, 1) * 100%), transparent)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.active\\:border-primary-pressed:active{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--aid-c-primary-pressed) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.active\\:bg-destructive-pressed:active{background-color:hsl(var(--destructive-pressed))}.active\\:bg-primary-pressed:active{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-primary-pressed) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.active\\:bg-secondary-pressed:active{--tw-bg-opacity: 1;background-color:hsl(var(--secondary-pressed),var(--tw-bg-opacity, 1))}.active\\:text-primary-foreground:active{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-primary-foreground) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.active\\:text-primary-pressed:active{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-primary-pressed) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-disabled:disabled{background-color:hsl(var(--disabled))}.disabled\\:bg-muted:disabled{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-muted) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.disabled\\:bg-transparent:disabled{background-color:transparent}.disabled\\:text-disabled-foreground:disabled{color:hsl(var(--disabled-foreground))}.disabled\\:text-muted-foreground:disabled{color:hsl(var(--muted-foreground))}.disabled\\:opacity-100:disabled{opacity:1}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:opacity-60:disabled{opacity:.6}.group\\/attach:focus-within .group-focus-within\\/attach\\:block{display:block}.group:focus-within .group-focus-within\\:opacity-100{opacity:1}.group\\/attach:hover .group-hover\\/attach\\:block{display:block}.group:hover .group-hover\\:opacity-100{opacity:1}.aria-disabled\\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\\:opacity-50[aria-disabled=true]{opacity:.5}@media(prefers-reduced-motion:reduce){.motion-reduce\\:animate-none{animation:none}.motion-reduce\\:transition-none{transition-property:none}}.\\[\\&\\:\\:-webkit-search-cancel-button\\]\\:hidden::-webkit-search-cancel-button{display:none}.\\[\\&_a\\]\\:no-underline a{text-decoration-line:none}.\\[\\&_li\\+li\\]\\:mt-1 li+li{margin-top:4px}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_ul\\]\\:mt-1 ul{margin-top:4px}@media(hover:none){.\\[\\@media\\(hover\\:none\\)\\]\\:opacity-100{opacity:1}}',Bp=3e3,pl=6*6e4,Wp={phase:"idle"},Hp={phase:"pending"},oa={phase:"failed"},Xp={phase:"expired"},F0=new Set(["pdf","docx","pptx","xlsx","csv"]),fl=r=>{switch(r.status){case"queued":case"running":return Hp;case"done":{const a=r.files.filter(o=>F0.has(o.format));return a.length>0?{phase:"done",files:a}:oa}case"expired":return Xp;default:return oa}},ut=new Map,Ao=new Set,U0=new Set(["done","failed","expired"]),Oo=new Set;let Er=0;const dr=(r,a)=>{const o=ut.get(r)??{view:Wp};ut.set(r,{...o,...a});for(const s of Oo)s()},q0=r=>{const a=ut.get(r);if(a?.jobId===void 0||a.deadline===void 0||a.api===void 0)return;if(clearTimeout(a.timer),Date.now()+Bp>a.deadline){dr(r,{view:oa,timer:void 0});return}const{jobId:o,api:s}=a,u=Er,p=setTimeout(()=>{s.reportStatus(o).then(f=>{u===Er&&ut.get(r)?.jobId===o&&hl(r,f)},()=>{u===Er&&ut.get(r)?.jobId===o&&dr(r,{view:oa,timer:void 0})})},Bp);dr(r,{timer:p})},hl=(r,a)=>{const o=fl(a),s=ut.get(r)?.jobId;s!==void 0&&s!==a.job_id&&Ao.add(s);const u=ut.get(r)?.deadline??Date.now()+pl;dr(r,{view:o,jobId:a.job_id,deadline:u,timer:void 0}),o.phase==="pending"&&q0(r)},ia={subscribe:r=>(Oo.add(r),()=>{Oo.delete(r)}),view:r=>ut.get(r)?.view,adopt:(r,a,o)=>{if(Ao.has(a.job_id))return;const s=ut.get(r);if(s!==void 0&&(s.jobId!==void 0||s.view.phase!=="idle")){if(s.view.phase==="pending")return;const u=a.job_id===s.jobId;if(u&&(!U0.has(a.status)||fl(a).phase===s.view.phase)||u&&s.view.phase==="expired")return}clearTimeout(s?.timer),dr(r,{deadline:Date.now()+pl,timer:void 0,api:o}),hl(r,a)},start:(r,a,o)=>{const s=ut.get(r);if(s?.view.phase==="pending")return;clearTimeout(s?.timer),s?.jobId!==void 0&&Ao.add(s.jobId),dr(r,{view:Hp,jobId:void 0,deadline:Date.now()+pl,timer:void 0,api:a});const u=Er;a.createReport(r,o).then(p=>{u===Er&&hl(r,p)},()=>{u===Er&&dr(r,{view:oa})})},expire:r=>{ut.get(r)?.view.phase==="done"&&dr(r,{view:Xp})}},V0=()=>{Er+=1;for(const r of ut.values())clearTimeout(r.timer);ut.clear(),Ao.clear();for(const r of Oo)r()},B0={calm:"idle",listen:"idle",think:"thinking",typing:"typing",eureka:"success",sorry:"fail"},W0={think:"bubble",eureka:"spark",sorry:"drop"},H0=(r,a)=>r==="error"?"sorry":r==="streaming"?a?"typing":"think":"calm",Kp=r=>`${r.replace(/\/+$/,"")}/static/avatars/dana`,X0={animated:!0,assetsBase:Kp("")},gl=x.createContext(X0),K0=()=>x.useContext(gl),Qp=({mood:r="calm",size:a=40,animated:o=!0,label:s,className:u,bare:p})=>{const{animated:f,assetsBase:h}=K0(),m=W0[r],v=b=>`${h}/${b}.webp`;return l.jsxs("span",{className:`dana-av ${p?"":"rounded-[22.5%] bg-[#F3F5FA] ring-1 ring-border"} ${u??""}`.trim(),style:{width:a,height:a},"data-mood":r,"data-animated":o&&f?"":void 0,role:s?"img":void 0,"aria-label":s,"aria-hidden":s?void 0:!0,children:[l.jsx("img",{className:"dana-av-body",src:v(B0[r]),alt:"",decoding:"async",draggable:!1}),m&&l.jsx("img",{className:`dana-av-${m}`,src:v(m),alt:"",decoding:"async",draggable:!1}),r==="typing"&&l.jsxs("svg",{className:"dana-av-dots",viewBox:"0 0 240 240","aria-hidden":"true",focusable:"false",children:[l.jsx("rect",{x:"189",y:"32",width:"38.4",height:"18.6",rx:"9.3",fill:"#fff",stroke:"#1F3F75",strokeWidth:"1.3"}),[199.9,208.3,216.6].map(b=>l.jsx("circle",{className:"dana-av-dot",cx:b,cy:"41.3",r:"2.6",fill:"#1F3F75"},b))]}),r==="think"&&l.jsx("svg",{className:"dana-av-dots",viewBox:"0 0 240 240","aria-hidden":"true",focusable:"false",children:[26.1,34.4,43.4].map(b=>l.jsx("circle",{className:"dana-av-dot",cx:b,cy:"31.7",r:"1.8",fill:"#1C2B4A"},b))})]})},Q0="data:image/webp;base64,UklGRpYIAABXRUJQVlA4IIoIAADQIwCdASpwAHAAPm0uk0akIqGhK9Y72IANiWQAxuvVyV/S/1j9kvbRsf+g5AVFELnbV+aTzb/S5/gPTA6lr0AOl7/vdBQ6Rfgygp2zwU8AJ5XaBQJV0zyK0e/or6Ffqj2D/16POXfH888gDRu18u1KNmLjeGZLr4ZqVBsgkMVoc7x041yO1f02tSm9bXIEMheVf/RC95sCsVfjmj6ZpRJaU0EfkyhyLIKL+4RI2eN+9oPYg2GHTILNrqgZdg1SBnFHnA1Smd6iSfn5pyVe3ojxs8c/LfQnYkJ+3wLZ9OdUZVABr9W6TXOW8qsrvaf/wRx85mXHieeHFKrMQw2YU2wWKYDYaMHzZ8twg9q12hBQ79ZvuvOBUZuIcnX1p+t0A3fD5ZcoLWFAAP737520S//JE2oOadP/5Q45B1okw2bCtFaM+O748Wjvux3RAtWs04/kNzKk8ppPo7yePNJ+AxmgjXPzjaeUNmvG2UQ2x8TUO0Edi4VSjdmoWQ5Vd4+xsz54cTpxyLUlHuEyUiUyryG+WmSkpXT6mxujFjRjxEG1tCbMQVVOfChvnfC8V1rItnZvA7NfHwOA75r6n02xxiv/qbe70ddBODl041drqrVudxVRWfgEhEd7DIL9ok2TdcacHsGGTrvAybKHdFfgZcykgIEHslkMSmxkTB8IoDiH613vvKir02MksykRXvJZjfut5+2IYL6xf+R4g6GNqXNiXitNngYZj/N+cE+Do2m1y2V03crdiRU/5qSn/6ZodaMpMsd3vy8mI1Q1H7rsg+AR2W8D6KaNKIZjkaeeVaB8Qmp87cnwiN6+7hTmWE37fUEcRazbLbFO748ZXg39mzeY7uTvKvoAIzjSEeGX1FzXUZJ4s3+w1IR7c9uP6ATBaNfRJzexpmKP1QVVLzOYKe2NBz8go9mrf8m9lVcADhUVr8BOXG+fMy46SWi6ny/wuDJNbhSMwtqTxcIUAQjWYa1DAE6M93iSC2DUkjdqrEyaURKLpqbowpeHHcMRqhQ3+AHoCEFi0vLc2nCoxfK4WJtPgpPlEcSKUPm7iyiKvPkL1QRHlfdBXno/05iednD/vQtgcTaL1uOdOjD/Sx6ZDh0RooGvKVW+Vttsz2xXhmKPX6Jd7Kl79psRWr7stM2zgdS8kWReL/lI/1BBTnVRzDYZ6fH+fv9lSMhM0GQW36rKIX+/FhQNOc7VR42UaQkam2KJl7HIQX1dPgJUSfnmJwRb6Uc/TUn0/ZaK6kNKrL04IeBGDGC4498SpKPVhJZJ7sjxmJcq9Eq7JCMIF9ZCBBJhT+xedmBqkQoqRomT9viuclt2H6nOtcrEfkdW1QZXwekmNNztzTFFKyjLGjZ9ZX7T9Y87Nrfq/73NX4R7yVR7uDRHH9Z+0rNEJI+peKTZYzPnz6/36AsVNtSuicFfh1b1v0NFT3j31Du9Jdk2hcaCucJwGEAC0c7IIlMXoj9Z0jIeuAwybKlAhd21JC846LajEuSjwTopQ5S7tto3ON6TVq8z5hg7OUq85HTUjcPVWKKvfJFsBljn03iJ/sfIidkMJ/uVS5CXRYuWpR/bryfsfwWdTJyj2f1uve5+qoieJcituK6wtoOXykZvpDQfJ4U9zlojaU93OYITNLrfN/AYJRQV2jcTLK0nOYgn+kvprvetp9RnfQ0VHs94F6/hng2wbFDm9b6mUAg3Hf5nYhvMlfY/Qbdh3ijqNVigPYfw+ix9GjswaLcejjxDgmhuzd4QyBoLvm7v4VT03vKwBk+Gv7ZuLsx8FaYtIYzJCA7Kl8poIDOBqYkMomDkEP5ievaDin4jO246dw4OlZIq3Y+Wira7W5xiEQeVrkuHwPP2eUM1nADmbNfuYbuP0MnNINp7eKOiznGTEThnhJwTWh0f49LlBXl2oYISvB/+X9BadPoy+evraDwmhC+Z5XYaQ6Tvv4GwsRUcjZdzdJsjJuBME2S62+TihY1X6vZMAgjp5R0d8nIy8+pLivBB0RPrqVnceBl8NMpe6yU2vDGpO0TCRd9/UqYMo6gUaVYrS1l7POCpczA0KZHXLjSV5a/fzt/5Z/LzR3dJSaJn3PsUHgXZ4P7z8M1+VF2KShO0wFRx1IZ7KKNb5S6NOUbIrT6+1pzfjwCY/RVV8O9atS1k/ceAStA4rjXzrrbpPTcd3Lk0WuYYe+U2ZOHaQwCFVPo+l0WCK8y5ihO9ync70xx+C6Lq9Df/2C4hz04w8/YyV0Q+5Wsmz0I5ExOL8f5+ji7XEjEZdPLEBLl8kdWWpuR3A0/cfEY5jr1a2o1O+V41P+m194wHcTICK7bDbBUb+/ICvLe1AcyhQ+9yaV7vYFiTy6awXdJEhy65yekSv6TfowRyEHbtJsJezXehZLybqO9HDGzsdFXRBIiVsqvZiUiPhGUejFZ+lF0nJziqfCpnCtUIC9rSN8M+aFckWUJ8vKCA6NKgGkqqVEEG4+vC40rhqgsUXRJ0H/9+y7C6ZGq1ENXqTTXJRWLD83CI8JN2nwOmAMO25yQ6cXpmxjy0inoyoUOZSVsm7MDvbO5vaSJCSvmcZtv7Uat401+l7V6/LB1RZu+iPnSqam3uw/fO44/eI4mLSfsQ7OLArFZQ1ylKfoB/HcgGo7iD+fB6acnYezP3w2NxJLvjc5UtXTlJPMuvkF0Nxyg1QbcjBtUasNt7rvvCTy9lgz8JV0CcH64235Mn4BoBcntan44xuSr8UN58yw/DcWuMjuFt7A3U8U7g2hfjIhJctCIGyLSiInT3A1rZOBW/bGVCM7U7iSdIkwMKpFvtjl/f1cfTlcmVEJolcZLmJWbYIhDbeLnCcbMt3abT1Krt8aNGIzDpLWS2ExTquZsm1ovhXMZgUce3eGDgDEvKs57tBvAZfoWOxP61pG1esNYGstg70/AoPBegAA==",Yp=({size:r,className:a})=>l.jsx("img",{src:Q0,alt:"",width:r,height:r,decoding:"async",draggable:!1,className:`shrink-0 rounded-full object-cover ${a??""}`.trim()}),Y0=2500,Z0=(r,a)=>{const[o,s]=x.useState(!1),[u,p]=x.useState(r);return u!==r&&(p(r),u&&!r&&a==="done"&&s(!0)),x.useEffect(()=>{if(!o)return;const f=window.setTimeout(()=>{s(!1)},Y0);return()=>{window.clearTimeout(f)}},[o]),o},J0=12e3,G0=5e3,Zp="aid_mode",Jp=x.createContext(null),G=()=>{const r=x.useContext(Jp);if(!r)throw new Error("useChat outside ChatProvider");return r},ml=(r,a)=>a.kind==="code"?zt(r,`errors.${a.code}`):a.kind==="status"?a.status===0?zt(r,"errors.network"):zt(r,"errors.code",{code:a.status}):zt(r,"errors.generic"),cn="temp-thread",ex=(r=null)=>({config:null,configError:!1,configErrorCode:null,health:{},mode:r,threads:[],threadsError:!1,threadsLoaded:!1,thread:null,loadingThread:null,turn:null,limit:{remaining:null,daily:null,blocked:!1,overloaded:!1},notice:null}),bl=(r,a,o)=>r&&{...r,messages:r.messages.map(s=>s.id===a?o(s):s)},tx=(r,a,o)=>{const s=new Map;for(const u of r?.steps??[])typeof u.id=="string"&&typeof u.startedAt=="number"&&s.set(u.id,u.startedAt);return{...a,steps:a.steps.map(u=>({...u,startedAt:s.get(u.id)??o}))}},rx=(r,a)=>{const o=new Date(a).toISOString();return{id:cn,title:r.query.slice(0,80),mode:r.mode,pinned:!1,created_at:o,updated_at:o,current_leaf_id:null,messages:[]}},nx=r=>({id:r.id,title:r.title,mode:r.mode,pinned:r.pinned,created_at:r.created_at,updated_at:r.updated_at}),ax=["widget_unauthorized","origin_not_allowed","origin_blocked"],ox=r=>r.configError?r.limit.overloaded?"overloaded":r.configErrorCode!==null&&ax.includes(r.configErrorCode)?"siteBlocked":"unavailable":r.config?null:"loading",ix=(r,a)=>{switch(a.type){case"config":{const{config:o}=a,s=o.modes.map(f=>f.slug),u=r.mode&&s.includes(r.mode)?r.mode:s[0]??null,p=o.visitor.remaining_today;return{...r,config:o,configError:!1,configErrorCode:null,mode:u,limit:{remaining:p,daily:o.visitor.daily_limit,blocked:p<=0,overloaded:!1,...p<=0&&(o.visitor.resets_at??r.limit.resetAt)?{resetAt:o.visitor.resets_at??r.limit.resetAt}:{}}}}case"configError":return{...r,configError:!0,configErrorCode:a.code??null,...a.overloaded?{limit:{...r.limit,blocked:!0,overloaded:!0}}:{}};case"health":return{...r,health:a.health};case"mode":return{...r,mode:a.mode};case"threads":return{...r,threads:a.threads,threadsError:!1,threadsLoaded:!0};case"threadsError":return{...r,threadsError:!0,threadsLoaded:!0};case"threadLoading":return{...r,loadingThread:a.id};case"thread":{if(r.turn&&r.thread?.id===a.thread.id||r.loadingThread!==a.thread.id&&r.thread?.id!==a.thread.id)return r;const o=r.config?.modes.map(s=>s.slug)??[];return{...r,thread:a.thread,loadingThread:null,mode:o.includes(a.thread.mode)?a.thread.mode:r.mode}}case"threadFailed":return r.loadingThread===a.id?{...r,loadingThread:null,notice:{kind:"error",reason:a.reason}}:r;case"newChat":return{...r,thread:null,loadingThread:null,turn:null,notice:null};case"threadDeleted":{const o=r.thread?.id===a.id;return{...r,threads:r.threads.filter(s=>s.id!==a.id),...o?{thread:null,turn:null}:{}}}case"turnStart":{const{request:o,token:s,at:u}=a,p=r.thread??rx(o,u),{user:f,assistant:h}=p0(o,p);return{...r,notice:null,thread:{...p,current_leaf_id:h.id,messages:[...p.messages,...f?[f]:[],h]},turn:{token:s,assistantId:h.id,...f?{userId:f.id}:{},startedAt:u,adopted:!1,previousLeaf:p.current_leaf_id,optimisticIds:[h.id,...f?[f.id]:[]]}}}case"resumeStart":return{...r,turn:{token:a.token,assistantId:a.messageId,startedAt:a.at,adopted:!0,previousLeaf:r.thread?.current_leaf_id??null,optimisticIds:[]}};case"adopt":{const{turn:o,thread:s}=r;if(o?.token!==a.token||o.adopted||!s)return r;const{metadata:u}=a,p=s.id===cn,f=f0(s,{...o.userId?{userId:o.userId}:{},assistantId:o.assistantId},u),h=r.limit.remaining===null?null:Math.max(0,r.limit.remaining-1);return{...r,thread:f,threads:p?[nx(f),...r.threads.filter(m=>m.id!==f.id)]:r.threads,turn:{...o,adopted:!0,assistantId:u.assistantMessageId,...o.userId?{userId:u.userMessageId}:{}},limit:{...r.limit,remaining:h}}}case"snapshot":{const{turn:o}=r;if(o?.token!==a.token)return r;const s=r.thread?.messages.find(p=>p.id===o.assistantId),u=tx(s,a.snapshot,a.at);return{...r,thread:bl(r.thread,o.assistantId,p=>h0(p,u))}}case"turnEnd":{const{turn:o}=r;if(o?.token!==a.token)return r;const s=a.status==="detached"?r.thread:bl(r.thread,o.assistantId,u=>g0(u,a.status,a.errorText,o.startedAt));return{...r,thread:s,turn:null,limit:{...r.limit,blocked:r.limit.blocked||r.limit.remaining===0}}}case"turnStopping":return r.turn?.token===a.token?{...r,turn:{...r.turn,stopping:!0}}:r;case"turnRejected":{const{turn:o,thread:s}=r;if(o?.token!==a.token)return r;const u=new Set(o.optimisticIds),p=s?.messages.filter(S=>!u.has(S.id))??[],f=s&&(s.id!==cn||p.length>0)?{...s,current_leaf_id:o.previousLeaf,messages:p}:null,{error:h}=a,m=h.status===429&&h.code==="daily_limit",v=h.status===503&&h.code==="anon_budget";let b=r.limit;return m?b={...b,remaining:0,blocked:!0,...h.resetAt?{resetAt:h.resetAt}:{}}:v&&(b={...b,blocked:!0,overloaded:!0}),{...r,thread:f,turn:null,notice:m||v?null:{kind:"error",reason:h.reason},limit:b}}case"leaf":return r.thread?{...r,thread:{...r.thread,current_leaf_id:a.leafId}}:r;case"rating":return{...r,thread:bl(r.thread,a.messageId,o=>({...o,rating:a.rating,...a.feedback!==void 0?{feedback:a.feedback}:{},...a.feedbackReason!==void 0?{feedback_reason:a.feedbackReason}:{}}))};case"notice":return{...r,notice:a.notice}}},xl=r=>{const a=r?r.messages.map(zp):[],o=Pp(a),s=Dp(o,r?.current_leaf_id??null);return{index:o,path:s?s0(o,s):[]}},$o={text:2e5,steps:500,blocks:100,attachments:50},Gp=r=>r.text.length>$o.text||r.steps.length>$o.steps||r.blocks.length>$o.blocks||r.attachments.length>$o.attachments,sx=r=>r.code==="ip_limit"?{kind:"code",code:"ip_limit"}:Lo(r),ef=()=>{try{return window.localStorage}catch{return null}},lx=()=>{try{return ef()?.getItem(Zp)??null}catch{return null}},cx=r=>r instanceof TypeError,dx=({api:r,lang:a,open:o,onAdminTheme:s,children:u})=>{const[p,f]=x.useReducer(ix,null,()=>ex(lx())),h=x.useRef(p),m=x.useRef(null),v=x.useRef(0),b=x.useRef(a),S=x.useRef(s);x.useLayoutEffect(()=>{h.current=p,b.current=a,S.current=s});const w=x.useCallback(()=>{r.threads().then(D=>{f({type:"threads",threads:D})},()=>{f({type:"threadsError"})})},[r]),j=x.useCallback(()=>{r.config().then(D=>{f({type:"config",config:D}),S.current(z0(D.site.theme)),r.adoptVisitor(D.visitor.token)&&w()},D=>{const I=D instanceof Ge&&D.status===503,k=D instanceof Ge?D.code:null;f({type:"configError",...I?{overloaded:I}:{},...k?{code:k}:{}})})},[r,w]),_=x.useCallback(D=>{r.thread(D).then(I=>{f({type:"thread",thread:I})},()=>{})},[r]);x.useEffect(()=>{j(),w()},[j,w]);const E=p.config!==null;x.useEffect(()=>{if(!o||!E)return;const D=()=>{typeof document<"u"&&document.visibilityState==="hidden"||r.health().then(k=>{f({type:"health",health:k})},()=>{})};D();const I=window.setInterval(D,J0);return window.addEventListener("focus",D),()=>{window.clearInterval(I),window.removeEventListener("focus",D)}},[r,o,E]);const M=x.useCallback(()=>{m.current?.controller.abort(),m.current=null},[]);x.useEffect(()=>M,[M]);const F=D=>{const I={token:++v.current,controller:new AbortController,stopRequested:!1,...D?{assistantId:D}:{}};return m.current=I,I},Z=(D,I)=>D.stopRequested?"stopped":D.tooBig?"error":D.controller.signal.aborted?"detached":I?"error":"done",oe=D=>{m.current===D&&(m.current=null)},J=(D,I,k)=>{oe(D),w(),k&&I&&I!==cn&&_(I)},ne=x.useCallback(async D=>{const I=h.current;if(I.turn||m.current||I.limit.blocked)return"busy";const k=I.thread&&I.thread.id!==cn?I.thread.id:void 0,L=F(),{token:H}=L;f({type:"turnStart",token:H,request:D,at:Date.now()});let V=k;const pe=xe=>{if(Gp(xe)){L.tooBig=!0,L.controller.abort();return}xe.metadata&&L.assistantId===void 0&&(L.assistantId=xe.metadata.assistantMessageId,V=xe.metadata.threadId,f({type:"adopt",token:H,metadata:xe.metadata})),f({type:"snapshot",token:H,snapshot:xe,at:Date.now()})};let fe,Se=!1;try{const{streamChatAnswer:xe}=await import("./stream-entry-DGkNfqEy.js");await xe({transport:r.transport,request:D,...k?{threadId:k}:{},signal:L.controller.signal,onSnapshot:pe})}catch(xe){Se=!0,fe=xe}if(L.assistantId===void 0&&(fe instanceof Ge||cx(fe))){const xe=fe instanceof Ge?fe:new Ge(0,"network",null);return f({type:"turnRejected",token:H,error:{status:xe.status,code:xe.code,resetAt:xe.resetAt,reason:sx(xe)}}),oe(L),xe.status===429&&j(),"rejected"}const ke=Z(L,Se);return f({type:"turnEnd",token:H,status:ke,errorText:ke==="error"?ml(b.current,Lo(fe)):""}),J(L,V,ke==="done"||ke==="stopped"),"sent"},[r,j,w,_]),$=x.useCallback(async(D,I)=>{if(m.current)return;const k=F(I),{token:L}=k;f({type:"resumeStart",token:L,messageId:I,at:Date.now()});let H,V=!1;try{const{resumeChatAnswer:fe}=await import("./stream-entry-DGkNfqEy.js");await fe(r.transport,I,k.controller.signal,Se=>{if(Gp(Se)){k.tooBig=!0,k.controller.abort();return}f({type:"snapshot",token:L,snapshot:Se,at:Date.now()})})}catch(fe){V=!0,H=fe}if(H instanceof Ge){f({type:"turnEnd",token:L,status:"detached",errorText:""}),J(k,D.id,!0);return}const pe=Z(k,V);f({type:"turnEnd",token:L,status:pe,errorText:pe==="error"?ml(b.current,Lo(H)):""}),J(k,D.id,pe==="done"||pe==="stopped")},[r,w,_]),X=x.useCallback(()=>{const D=m.current;if(!D)return;if(D.stopRequested=!0,f({type:"turnStopping",token:D.token}),D.assistantId===void 0){D.controller.abort();return}const I=window.setTimeout(()=>{D.controller.abort()},G0);D.controller.signal.addEventListener("abort",()=>{window.clearTimeout(I)},{once:!0}),r.stop(D.assistantId).catch(()=>{D.controller.abort()})},[r]),K=x.useCallback(D=>{h.current.thread?.id!==D&&(M(),f({type:"newChat"}),f({type:"threadLoading",id:D}),r.thread(D).then(I=>{f({type:"thread",thread:I});const{path:k}=xl(I),L=k[k.length-1];L?.role==="assistant"&&L.status==="streaming"&&$(I,L.id)},I=>{f({type:"threadFailed",id:D,reason:Lo(I)})}))},[r,M,$]),he=x.useCallback(()=>{M(),f({type:"newChat"})},[M]),ee=x.useCallback(async D=>{try{await r.deleteThread(D),h.current.thread?.id===D&&M(),f({type:"threadDeleted",id:D})}catch{f({type:"notice",notice:{kind:"text",key:"deleteError"}})}},[r,M]),ue=x.useMemo(()=>xl(p.thread),[p.thread]),W=x.useCallback(D=>{const{thread:I}=h.current;if(!I||h.current.turn)return;const k=Lp(xl(I).index,D),L=I.current_leaf_id;!k||k===L||(f({type:"leaf",leafId:k}),r.setLeaf(I.id,k).catch(()=>{f({type:"leaf",leafId:L}),f({type:"notice",notice:{kind:"text",key:"branch.error"}})}))},[r]),Q=x.useCallback((D,I)=>{const k=h.current.thread?.messages.find(V=>V.id===D);if(!k)return;const L=k.rating,H=I===L?null:I;f({type:"rating",messageId:D,rating:H}),r.rate(D,H).catch(()=>{f({type:"rating",messageId:D,rating:L}),f({type:"notice",notice:{kind:"text",key:"ratingError"}})})},[r]),be=x.useCallback(async(D,I,k)=>{const L=h.current.thread?.messages.find(H=>H.id===D);try{return await r.feedback(D,I,k),f({type:"rating",messageId:D,rating:L?.rating??null,feedback:I,feedbackReason:k??""}),!0}catch{return!1}},[r]),Ne=x.useCallback(D=>{f({type:"mode",mode:D});try{ef()?.setItem(Zp,D)}catch{}},[]),ve=x.useCallback(()=>{f({type:"notice",notice:null})},[]),ye=x.useCallback((D,I)=>zt(a,D,I),[a]),U=x.useMemo(()=>({state:p,lang:a,api:r,t:ye,path:ue.path,index:ue.index,send:ne,stop:X,openThread:K,newChat:he,deleteThread:ee,refreshThreads:w,switchBranch:W,rate:Q,saveFeedback:be,selectMode:Ne,reload:()=>{j(),w()},dismissNotice:ve}),[p,a,r,ye,ue,ne,X,K,he,ee,w,W,Q,be,Ne,j,ve]);return l.jsx(Jp.Provider,{value:U,children:u})},vl=r=>x.useSyncExternalStore(a=>{if(typeof matchMedia>"u")return()=>{};const o=matchMedia(r);return o.addEventListener("change",a),()=>{o.removeEventListener("change",a)}},()=>typeof matchMedia<"u"&&matchMedia(r).matches,()=>!1),ux=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),px=(r,a)=>{if(r.getAttribute("tabindex")==="-1"||r.getAttribute("aria-hidden")==="true"||getComputedStyle(r).visibility==="hidden")return!1;for(let o=r;o;o=o.parentElement){if(o.hasAttribute("inert")||o.hasAttribute("hidden")||getComputedStyle(o).display==="none")return!1;if(o===a)break}return!a.closest("[inert]")},tf=r=>Array.from(r.querySelectorAll(ux)).filter(a=>px(a,r)),_r=(r,a)=>{x.useLayoutEffect(()=>{r.current?.toggleAttribute("inert",a)},[r,a])},rf=r=>{const a=r.getRootNode();return a instanceof ShadowRoot||a instanceof Document?a.activeElement:null},Fo=(r,a,o)=>{const s=x.useRef(o);x.useEffect(()=>{s.current=o}),x.useEffect(()=>{const u=r.current;if(!a||!u)return;const p=rf(u);(u.querySelector("[data-autofocus]")??tf(u)[0])?.focus({preventScroll:!0});const f=h=>{if(h.key!=="Tab")return;const m=tf(u),v=m[0],b=m[m.length-1];if(!v||!b){h.preventDefault();return}const S=rf(u);h.shiftKey&&(S===v||!u.contains(S))?(h.preventDefault(),b.focus()):!h.shiftKey&&(S===b||!u.contains(S))&&(h.preventDefault(),v.focus())};return u.addEventListener("keydown",f),()=>{u.removeEventListener("keydown",f),((p instanceof HTMLElement&&p.tagName!=="BODY"&&p.isConnected&&!u.contains(p)?p:null)??s.current?.())?.focus({preventScroll:!0})}},[r,a])},fx=8,hx=9,ur=(r,a)=>r.find(o=>o.kind===a),nf=r=>r.filter(a=>a.kind==="report").at(-1),gx=r=>r.filter(a=>a.kind==="export").flatMap(a=>a.files),mx=(r,a)=>{const o=r.findIndex(p=>p.id===a),s=o>0?r[o-1]:void 0,u=o>=0?r[o+1]:void 0;return{question:s?.role==="user"?s.content:"",reply:u?.role==="user"?u.content:""}},bx=500,xx=(r,a,o)=>{const s=a.trim();if(s.length<1||s.length>bx)return;const u=r[r.length-1];if(u?.role!=="assistant")return;const p=ur(u.blocks,"clarification");if(p?.allow_free_text&&vp(p,{isLastInBranch:!0,now:o})==="open")return{clarification_id:p.id,slot:p.slot,value:null,free_text:s}},vx=r=>{if(!(r instanceof HTMLElement))return!1;if(r.isContentEditable)return!0;const a=r.tagName;return a==="TEXTAREA"||a==="SELECT"||a==="INPUT"&&!["button","checkbox","radio"].includes(r.type)},yx=r=>typeof r=="number"&&Number.isFinite(r)?r:null,yl=r=>typeof r=="string"?r:typeof r=="number"&&Number.isFinite(r)?String(r):"",sa={messageId:null,sectionId:null,fullscreen:!1,view:"chat"},wl=(r,a=null)=>({messageId:r,sectionId:a,fullscreen:!1,view:"dashboard"}),af=x.createContext(null),zr=()=>{},wx={state:sa,open:zr,toggle:zr,autoOpen:zr,close:zr,setSection:zr,setFullscreen:zr,setView:zr},Rr=()=>x.useContext(af)??wx,kx=1200;function jx(r){const{state:a,setFullscreen:o,close:s}=Rr(),u=x.useRef({fullscreen:a.fullscreen,setFullscreen:o,close:s});x.useEffect(()=>{u.current={fullscreen:a.fullscreen,setFullscreen:o,close:s}}),x.useEffect(()=>{if(!r)return;const p=f=>{if(f.key!=="Escape"||f.defaultPrevented)return;f.preventDefault();const h=u.current;h.fullscreen?h.setFullscreen(!1):h.close()};return document.addEventListener("keydown",p),()=>{document.removeEventListener("keydown",p)}},[r])}const Sx=(r,a,o)=>r&&!a&&!o,Cx=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Nx=r=>r.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,o,s)=>s?s.toUpperCase():o.toLowerCase()),of=r=>{const a=Nx(r);return a.charAt(0).toUpperCase()+a.slice(1)},sf=(...r)=>r.filter((a,o,s)=>!!a&&a.trim()!==""&&s.indexOf(a)===o).join(" ").trim(),Ex=r=>{for(const a in r)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};var _x={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const zx=x.forwardRef(({color:r="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:u="",children:p,iconNode:f,...h},m)=>x.createElement("svg",{ref:m,..._x,width:a,height:a,stroke:r,strokeWidth:s?Number(o)*24/Number(a):o,className:sf("lucide",u),...!p&&!Ex(h)&&{"aria-hidden":"true"},...h},[...f.map(([v,b])=>x.createElement(v,b)),...Array.isArray(p)?p:[p]])),le=(r,a)=>{const o=x.forwardRef(({className:s,...u},p)=>x.createElement(zx,{ref:p,iconNode:a,className:sf(`lucide-${Cx(of(r))}`,`lucide-${r}`,s),...u}));return o.displayName=of(r),o},Rx=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],lf=le("arrow-down",Rx),Mx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Px=le("arrow-right",Mx),Lx=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],Dx=le("arrow-up-down",Lx),Ix=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],cf=le("arrow-up",Ix),Tx=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Uo=le("book-open",Tx),Ax=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Ox=le("bot",Ax),$x=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["rect",{x:"15",y:"5",width:"4",height:"12",rx:"1",key:"q8uenq"}],["rect",{x:"7",y:"8",width:"4",height:"9",rx:"1",key:"sr5ea"}]],Fx=le("chart-column-big",$x),Ux=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Mr=le("check",Ux),qx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],dn=le("chevron-down",qx),Vx=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],df=le("chevron-left",Vx),Bx=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],qo=le("chevron-right",Bx),Wx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Pr=le("circle-alert",Wx),Hx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],uf=le("circle-minus",Hx),Xx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],kl=le("clock",Xx),Kx=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],jl=le("copy",Kx),Qx=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Yx=le("database",Qx),Zx=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],pf=le("download",Zx),Jx=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Sl=le("external-link",Jx),Gx=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["path",{d:"M12 18v-4",key:"q1q25u"}],["path",{d:"M16 18v-6",key:"15y0np"}]],ev=le("file-chart-column-increasing",Gx),tv=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]],rv=le("file-down",tv),nv=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],av=le("file-text",nv),ov=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],iv=le("globe",ov),sv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],ff=le("info",sv),lv=[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]],cv=le("landmark",lv),dv=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Lr=le("loader-circle",dv),uv=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],hf=le("lock",uv),pv=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],fv=le("map",pv),hv=[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]],gf=le("maximize-2",hv),gv=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],mv=le("message-circle-question",gv),bv=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],xv=le("message-circle",bv),vv=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M13 8H7",key:"14i4kc"}],["path",{d:"M17 12H7",key:"16if0g"}]],mf=le("message-square-text",vv),yv=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],bf=le("message-square",yv),wv=[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]],xf=le("minimize-2",wv),kv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],jv=le("panel-left-close",kv),Sv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Cv=le("panel-left",Sv),Nv=[["path",{d:"M13.234 20.252 21 12.3",key:"1cbrk9"}],["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 0 2.828 2 2 0 0 0 2.828 0l8.414-8.586a4 4 0 0 0 0-5.656 4 4 0 0 0-5.656 0l-8.415 8.585a6 6 0 1 0 8.486 8.486",key:"1pkts6"}]],Ev=le("paperclip",Nv),_v=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]],vf=le("pen-line",_v),zv=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Rv=le("pencil",zv),Mv=[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]],Pv=le("receipt",Mv),Lv=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],yf=le("rotate-ccw",Lv),Dv=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],wf=le("rotate-cw",Dv),Iv=[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]],Tv=le("scale",Iv),Av=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],la=le("search",Av),Ov=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],$v=le("settings",Ov),Fv=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],Cl=le("sparkles",Fv),Uv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],kf=le("square",Uv),qv=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Vv=le("star",qv),Bv=[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]],Wv=le("table-2",Bv),Hv=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Xv=le("trash-2",Hv),Kv=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Vo=le("triangle-alert",Kv),Qv=[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]],Yv=le("trending-up",Qv),Zv=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],Jv=le("users",Zv),Gv=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ca=le("x",Gv);function jf(r){var a,o,s="";if(typeof r=="string"||typeof r=="number")s+=r;else if(typeof r=="object")if(Array.isArray(r))for(a=0;a<r.length;a++)r[a]&&(o=jf(r[a]))&&(s&&(s+=" "),s+=o);else for(a in r)r[a]&&(s&&(s+=" "),s+=a);return s}function e1(){for(var r,a,o=0,s="";o<arguments.length;)(r=arguments[o++])&&(a=jf(r))&&(s&&(s+=" "),s+=a);return s}const Nl="-",t1=r=>{const a=n1(r),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=r;return{getClassGroupId:u=>{const p=u.split(Nl);return p[0]===""&&p.length!==1&&p.shift(),Sf(p,a)||r1(u)},getConflictingClassGroupIds:(u,p)=>{const f=o[u]||[];return p&&s[u]?[...f,...s[u]]:f}}},Sf=(r,a)=>{if(r.length===0)return a.classGroupId;const o=r[0],s=a.nextPart.get(o),u=s?Sf(r.slice(1),s):void 0;if(u)return u;if(a.validators.length===0)return;const p=r.join(Nl);return a.validators.find(({validator:f})=>f(p))?.classGroupId},Cf=/^\[(.+)\]$/,r1=r=>{if(Cf.test(r)){const a=Cf.exec(r)[1],o=a?.substring(0,a.indexOf(":"));if(o)return"arbitrary.."+o}},n1=r=>{const{theme:a,prefix:o}=r,s={nextPart:new Map,validators:[]};return o1(Object.entries(r.classGroups),o).forEach(([u,p])=>{El(p,s,u,a)}),s},El=(r,a,o,s)=>{r.forEach(u=>{if(typeof u=="string"){const p=u===""?a:Nf(a,u);p.classGroupId=o;return}if(typeof u=="function"){if(a1(u)){El(u(s),a,o,s);return}a.validators.push({validator:u,classGroupId:o});return}Object.entries(u).forEach(([p,f])=>{El(f,Nf(a,p),o,s)})})},Nf=(r,a)=>{let o=r;return a.split(Nl).forEach(s=>{o.nextPart.has(s)||o.nextPart.set(s,{nextPart:new Map,validators:[]}),o=o.nextPart.get(s)}),o},a1=r=>r.isThemeGetter,o1=(r,a)=>a?r.map(([o,s])=>{const u=s.map(p=>typeof p=="string"?a+p:typeof p=="object"?Object.fromEntries(Object.entries(p).map(([f,h])=>[a+f,h])):p);return[o,u]}):r,i1=r=>{if(r<1)return{get:()=>{},set:()=>{}};let a=0,o=new Map,s=new Map;const u=(p,f)=>{o.set(p,f),a++,a>r&&(a=0,s=o,o=new Map)};return{get(p){let f=o.get(p);if(f!==void 0)return f;if((f=s.get(p))!==void 0)return u(p,f),f},set(p,f){o.has(p)?o.set(p,f):u(p,f)}}},Ef="!",s1=r=>{const{separator:a,experimentalParseClassName:o}=r,s=a.length===1,u=a[0],p=a.length,f=h=>{const m=[];let v=0,b=0,S;for(let M=0;M<h.length;M++){let F=h[M];if(v===0){if(F===u&&(s||h.slice(M,M+p)===a)){m.push(h.slice(b,M)),b=M+p;continue}if(F==="/"){S=M;continue}}F==="["?v++:F==="]"&&v--}const w=m.length===0?h:h.substring(b),j=w.startsWith(Ef),_=j?w.substring(1):w,E=S&&S>b?S-b:void 0;return{modifiers:m,hasImportantModifier:j,baseClassName:_,maybePostfixModifierPosition:E}};return o?h=>o({className:h,parseClassName:f}):f},l1=r=>{if(r.length<=1)return r;const a=[];let o=[];return r.forEach(s=>{s[0]==="["?(a.push(...o.sort(),s),o=[]):o.push(s)}),a.push(...o.sort()),a},c1=r=>({cache:i1(r.cacheSize),parseClassName:s1(r),...t1(r)}),d1=/\s+/,u1=(r,a)=>{const{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:u}=a,p=[],f=r.trim().split(d1);let h="";for(let m=f.length-1;m>=0;m-=1){const v=f[m],{modifiers:b,hasImportantModifier:S,baseClassName:w,maybePostfixModifierPosition:j}=o(v);let _=!!j,E=s(_?w.substring(0,j):w);if(!E){if(!_){h=v+(h.length>0?" "+h:h);continue}if(E=s(w),!E){h=v+(h.length>0?" "+h:h);continue}_=!1}const M=l1(b).join(":"),F=S?M+Ef:M,Z=F+E;if(p.includes(Z))continue;p.push(Z);const oe=u(E,_);for(let J=0;J<oe.length;++J){const ne=oe[J];p.push(F+ne)}h=v+(h.length>0?" "+h:h)}return h};function p1(){let r=0,a,o,s="";for(;r<arguments.length;)(a=arguments[r++])&&(o=_f(a))&&(s&&(s+=" "),s+=o);return s}const _f=r=>{if(typeof r=="string")return r;let a,o="";for(let s=0;s<r.length;s++)r[s]&&(a=_f(r[s]))&&(o&&(o+=" "),o+=a);return o};function f1(r,...a){let o,s,u,p=f;function f(m){const v=a.reduce((b,S)=>S(b),r());return o=c1(v),s=o.cache.get,u=o.cache.set,p=h,h(m)}function h(m){const v=s(m);if(v)return v;const b=u1(m,o);return u(m,b),b}return function(){return p(p1.apply(null,arguments))}}const Pe=r=>{const a=o=>o[r]||[];return a.isThemeGetter=!0,a},zf=/^\[(?:([a-z-]+):)?(.+)\]$/i,h1=/^\d+\/\d+$/,g1=new Set(["px","full","screen"]),m1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,b1=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,x1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,v1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,y1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Bt=r=>un(r)||g1.has(r)||h1.test(r),pr=r=>pn(r,"length",_1),un=r=>!!r&&!Number.isNaN(Number(r)),_l=r=>pn(r,"number",un),da=r=>!!r&&Number.isInteger(Number(r)),w1=r=>r.endsWith("%")&&un(r.slice(0,-1)),we=r=>zf.test(r),fr=r=>m1.test(r),k1=new Set(["length","size","percentage"]),j1=r=>pn(r,k1,Rf),S1=r=>pn(r,"position",Rf),C1=new Set(["image","url"]),N1=r=>pn(r,C1,R1),E1=r=>pn(r,"",z1),ua=()=>!0,pn=(r,a,o)=>{const s=zf.exec(r);return s?s[1]?typeof a=="string"?s[1]===a:a.has(s[1]):o(s[2]):!1},_1=r=>b1.test(r)&&!x1.test(r),Rf=()=>!1,z1=r=>v1.test(r),R1=r=>y1.test(r),M1=()=>{const r=Pe("colors"),a=Pe("spacing"),o=Pe("blur"),s=Pe("brightness"),u=Pe("borderColor"),p=Pe("borderRadius"),f=Pe("borderSpacing"),h=Pe("borderWidth"),m=Pe("contrast"),v=Pe("grayscale"),b=Pe("hueRotate"),S=Pe("invert"),w=Pe("gap"),j=Pe("gradientColorStops"),_=Pe("gradientColorStopPositions"),E=Pe("inset"),M=Pe("margin"),F=Pe("opacity"),Z=Pe("padding"),oe=Pe("saturate"),J=Pe("scale"),ne=Pe("sepia"),$=Pe("skew"),X=Pe("space"),K=Pe("translate"),he=()=>["auto","contain","none"],ee=()=>["auto","hidden","clip","visible","scroll"],ue=()=>["auto",we,a],W=()=>[we,a],Q=()=>["",Bt,pr],be=()=>["auto",un,we],Ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ve=()=>["solid","dashed","dotted","double","none"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",we],I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>[un,we];return{cacheSize:500,separator:":",theme:{colors:[ua],spacing:[Bt,pr],blur:["none","",fr,we],brightness:k(),borderColor:[r],borderRadius:["none","","full",fr,we],borderSpacing:W(),borderWidth:Q(),contrast:k(),grayscale:D(),hueRotate:k(),invert:D(),gap:W(),gradientColorStops:[r],gradientColorStopPositions:[w1,pr],inset:ue(),margin:ue(),opacity:k(),padding:W(),saturate:k(),scale:k(),sepia:D(),skew:k(),space:W(),translate:W()},classGroups:{aspect:[{aspect:["auto","square","video",we]}],container:["container"],columns:[{columns:[fr]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Ne(),we]}],overflow:[{overflow:ee()}],"overflow-x":[{"overflow-x":ee()}],"overflow-y":[{"overflow-y":ee()}],overscroll:[{overscroll:he()}],"overscroll-x":[{"overscroll-x":he()}],"overscroll-y":[{"overscroll-y":he()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",da,we]}],basis:[{basis:ue()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",we]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",da,we]}],"grid-cols":[{"grid-cols":[ua]}],"col-start-end":[{col:["auto",{span:["full",da,we]},we]}],"col-start":[{"col-start":be()}],"col-end":[{"col-end":be()}],"grid-rows":[{"grid-rows":[ua]}],"row-start-end":[{row:["auto",{span:[da,we]},we]}],"row-start":[{"row-start":be()}],"row-end":[{"row-end":be()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",we]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",we]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...U()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...U(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...U(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[Z]}],px:[{px:[Z]}],py:[{py:[Z]}],ps:[{ps:[Z]}],pe:[{pe:[Z]}],pt:[{pt:[Z]}],pr:[{pr:[Z]}],pb:[{pb:[Z]}],pl:[{pl:[Z]}],m:[{m:[M]}],mx:[{mx:[M]}],my:[{my:[M]}],ms:[{ms:[M]}],me:[{me:[M]}],mt:[{mt:[M]}],mr:[{mr:[M]}],mb:[{mb:[M]}],ml:[{ml:[M]}],"space-x":[{"space-x":[X]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[X]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",we,a]}],"min-w":[{"min-w":[we,a,"min","max","fit"]}],"max-w":[{"max-w":[we,a,"none","full","min","max","fit","prose",{screen:[fr]},fr]}],h:[{h:[we,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[we,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[we,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[we,a,"auto","min","max","fit"]}],"font-size":[{text:["base",fr,pr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",_l]}],"font-family":[{font:[ua]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",we]}],"line-clamp":[{"line-clamp":["none",un,_l]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Bt,we]}],"list-image":[{"list-image":["none",we]}],"list-style-type":[{list:["none","disc","decimal",we]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[F]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[F]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Bt,pr]}],"underline-offset":[{"underline-offset":["auto",Bt,we]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:W()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[F]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ne(),S1]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",j1]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},N1]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[_]}],"gradient-via-pos":[{via:[_]}],"gradient-to-pos":[{to:[_]}],"gradient-from":[{from:[j]}],"gradient-via":[{via:[j]}],"gradient-to":[{to:[j]}],rounded:[{rounded:[p]}],"rounded-s":[{"rounded-s":[p]}],"rounded-e":[{"rounded-e":[p]}],"rounded-t":[{"rounded-t":[p]}],"rounded-r":[{"rounded-r":[p]}],"rounded-b":[{"rounded-b":[p]}],"rounded-l":[{"rounded-l":[p]}],"rounded-ss":[{"rounded-ss":[p]}],"rounded-se":[{"rounded-se":[p]}],"rounded-ee":[{"rounded-ee":[p]}],"rounded-es":[{"rounded-es":[p]}],"rounded-tl":[{"rounded-tl":[p]}],"rounded-tr":[{"rounded-tr":[p]}],"rounded-br":[{"rounded-br":[p]}],"rounded-bl":[{"rounded-bl":[p]}],"border-w":[{border:[h]}],"border-w-x":[{"border-x":[h]}],"border-w-y":[{"border-y":[h]}],"border-w-s":[{"border-s":[h]}],"border-w-e":[{"border-e":[h]}],"border-w-t":[{"border-t":[h]}],"border-w-r":[{"border-r":[h]}],"border-w-b":[{"border-b":[h]}],"border-w-l":[{"border-l":[h]}],"border-opacity":[{"border-opacity":[F]}],"border-style":[{border:[...ve(),"hidden"]}],"divide-x":[{"divide-x":[h]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[h]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[F]}],"divide-style":[{divide:ve()}],"border-color":[{border:[u]}],"border-color-x":[{"border-x":[u]}],"border-color-y":[{"border-y":[u]}],"border-color-s":[{"border-s":[u]}],"border-color-e":[{"border-e":[u]}],"border-color-t":[{"border-t":[u]}],"border-color-r":[{"border-r":[u]}],"border-color-b":[{"border-b":[u]}],"border-color-l":[{"border-l":[u]}],"divide-color":[{divide:[u]}],"outline-style":[{outline:["",...ve()]}],"outline-offset":[{"outline-offset":[Bt,we]}],"outline-w":[{outline:[Bt,pr]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[F]}],"ring-offset-w":[{"ring-offset":[Bt,pr]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",fr,E1]}],"shadow-color":[{shadow:[ua]}],opacity:[{opacity:[F]}],"mix-blend":[{"mix-blend":[...ye(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ye()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[s]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",fr,we]}],grayscale:[{grayscale:[v]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[S]}],saturate:[{saturate:[oe]}],sepia:[{sepia:[ne]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[S]}],"backdrop-opacity":[{"backdrop-opacity":[F]}],"backdrop-saturate":[{"backdrop-saturate":[oe]}],"backdrop-sepia":[{"backdrop-sepia":[ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[f]}],"border-spacing-x":[{"border-spacing-x":[f]}],"border-spacing-y":[{"border-spacing-y":[f]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",we]}],duration:[{duration:k()}],ease:[{ease:["linear","in","out","in-out",we]}],delay:[{delay:k()}],animate:[{animate:["none","spin","ping","pulse","bounce",we]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[J]}],"scale-x":[{"scale-x":[J]}],"scale-y":[{"scale-y":[J]}],rotate:[{rotate:[da,we]}],"translate-x":[{"translate-x":[K]}],"translate-y":[{"translate-y":[K]}],"skew-x":[{"skew-x":[$]}],"skew-y":[{"skew-y":[$]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",we]}],accent:[{accent:["auto",r]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",we]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":W()}],"scroll-mx":[{"scroll-mx":W()}],"scroll-my":[{"scroll-my":W()}],"scroll-ms":[{"scroll-ms":W()}],"scroll-me":[{"scroll-me":W()}],"scroll-mt":[{"scroll-mt":W()}],"scroll-mr":[{"scroll-mr":W()}],"scroll-mb":[{"scroll-mb":W()}],"scroll-ml":[{"scroll-ml":W()}],"scroll-p":[{"scroll-p":W()}],"scroll-px":[{"scroll-px":W()}],"scroll-py":[{"scroll-py":W()}],"scroll-ps":[{"scroll-ps":W()}],"scroll-pe":[{"scroll-pe":W()}],"scroll-pt":[{"scroll-pt":W()}],"scroll-pr":[{"scroll-pr":W()}],"scroll-pb":[{"scroll-pb":W()}],"scroll-pl":[{"scroll-pl":W()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",we]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[Bt,pr,_l]}],stroke:[{stroke:[r,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},P1=f1(M1),B=(...r)=>P1(e1(r));x.createContext(!0),x.createContext(!1);const zl="opacity-0 transition-opacity motion-reduce:transition-none group-focus-within:opacity-100 group-hover:opacity-100 [@media(hover:none)]:opacity-100",Mf=120,L1=200,Pf=".xls,.xlsx,.csv,.txt,.md",Rl=2e3,D1=4,pa=["wrong_number","wrong_indicator","wrong_territory","wrong_period","not_answered","language","slow","other"],I1=[1,2,3,4,5],fn=r=>{const a=r?.trim();if(!a)return null;if(a.startsWith("#"))return a;if(!/^https?:\/\//i.test(a))return null;try{return new URL(a),a}catch{return null}},Lf=r=>r.replace(/[\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),Ml=async r=>{try{return await navigator.clipboard.writeText(r),!0}catch{return T1(r)}},T1=r=>{const a=document.createElement("textarea");a.value=r,a.setAttribute("readonly",""),a.style.cssText="position:fixed;top:0;left:0;opacity:0;pointer-events:none",document.body.appendChild(a),a.select();try{return document.execCommand("copy")}catch{return!1}finally{a.remove()}},A1=(r,a)=>{const o=document.createElement("a");o.href=r,o.download=a,o.rel="noopener",o.style.display="none",document.body.append(o),o.click(),o.remove(),window.setTimeout(()=>{URL.revokeObjectURL(r)},6e4)},O1=["group.pinned","group.today","group.yesterday","group.week","group.earlier"],Df=864e5,$1=(r,a=new Date)=>{const o=new Date(a.getFullYear(),a.getMonth(),a.getDate()).getTime(),s=new Map;for(const u of r){const p=new Date(u.updated_at).getTime();let f;u.pinned?f="group.pinned":p>=o?f="group.today":p>=o-Df?f="group.yesterday":p>=o-7*Df?f="group.week":f="group.earlier",s.set(f,[...s.get(f)??[],u])}return O1.flatMap(u=>{const p=s.get(u);return p?[[u,p]]:[]})},F1=()=>{const{t:r}=G(),{state:a,setView:o}=Rr(),s=(u,p)=>l.jsx("button",{type:"button",role:"tab","aria-selected":a.view===u,onClick:()=>{o(u)},className:B("inline-flex h-7 items-center whitespace-nowrap rounded-[7px] px-2.5 text-[13px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",a.view===u?"bg-secondary text-secondary-foreground":"text-muted-foreground hover:text-foreground"),children:p});return l.jsxs("div",{part:"dashboard-tabs",role:"tablist","aria-label":r("dashboard.view"),className:"inline-flex shrink-0 gap-0.5 rounded-md border bg-background p-0.5",children:[s("chat",r("dashboard.chatTab")),s("dashboard",r("dashboard.dashboardTab"))]})},U1=({wide:r,chat:a,panel:o,onPanelFocusChange:s})=>{const{state:u}=Rr(),{view:p,fullscreen:f}=u,h=o!=null,m=h&&!r&&p==="dashboard",v=h&&!r&&p==="chat"&&!f,b=x.useRef(null);return _r(b,h&&f),l.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1",children:[l.jsx("div",{ref:b,hidden:m,className:B("relative min-h-0 min-w-0 flex-1 flex-col",m?"hidden":"flex"),children:a}),h?l.jsx("aside",{part:"dashboard","data-fullscreen":f,hidden:v,onFocus:()=>{s?.(!0)},onBlur:S=>{S.currentTarget.contains(S.relatedTarget)||s?.(!1)},className:B("min-h-0 min-w-0 flex-col bg-background",v?"hidden":"flex",f&&"absolute inset-0 z-30",!f&&r&&"w-1/2 min-w-[480px] shrink-0 border-l",!f&&!r&&"flex-1 border-t"),children:o}):null]})};var q1=Object.defineProperty,Pl=(r,a)=>q1(r,"name",{value:a,configurable:!0});function Ll(r,a){if(typeof r=="function")return r(a);r!=null&&(r.current=a)}Pl(Ll,"setRef");function If(...r){return a=>{let o=!1;const s=r.map(u=>{const p=Ll(u,a);return!o&&typeof p=="function"&&(o=!0),p});if(o)return()=>{for(let u=0;u<s.length;u++){const p=s[u];typeof p=="function"?p():Ll(r[u],null)}}}}Pl(If,"composeRefs");function Tf(...r){return x.useCallback(If(...r),r)}Pl(Tf,"useComposedRefs");var V1=Object.defineProperty,pt=(r,a)=>V1(r,"name",{value:a,configurable:!0});function Af(r){const a=x.forwardRef((o,s)=>{let{children:u,...p}=o,f=null,h=!1;const m=[];u=Vf(u),x.Children.forEach(u,w=>{if(Uf(w)){h=!0;const j=w;let _="child"in j.props?j.props.child:j.props.children;for(;Dl(_)&&typeof Bo=="function";)_=Bo(_._payload);f=H1(j,_),m.push(f?.props?.children)}else m.push(w)}),f?f=x.cloneElement(f,void 0,m):!h&&x.Children.count(u)===1&&x.isValidElement(u)&&(f=u);const v=f?Ff(f):void 0,b=Tf(s,v);if(!f){if(u||u===0)throw new Error(h?Q1(r):K1(r));return u}const S=$f(p,f.props??{});return f.type!==x.Fragment&&(S.ref=s?b:v),x.cloneElement(f,S)});return a.displayName=`${r}.Slot`,a}pt(Af,"createSlot");var B1=Af("Slot"),Of=Symbol.for("radix.slottable");function W1(r){const a=pt(o=>"child"in o?o.children(o.child):o.children,"Slottable");return a.displayName=`${r}.Slottable`,a.__radixId=Of,a}pt(W1,"createSlottable");var H1=pt((r,a)=>"child"in r.props?x.isValidElement(a)?x.cloneElement(a,void 0,r.props.children(a.props.children)):null:x.isValidElement(a)?a:null,"getSlottableElementFromSlottable");function $f(r,a){const o={...a};for(const s in a){const u=r[s],p=a[s];/^on[A-Z]/.test(s)?u&&p?o[s]=(...f)=>{const h=p(...f);return u(...f),h}:u&&(o[s]=u):s==="style"?o[s]={...u,...p}:s==="className"?o[s]=[u,p].filter(Boolean).join(" "):s==="aria-describedby"&&(o[s]=Bf(p,u))}return{...r,...o}}pt($f,"mergeProps");function Ff(r){let a=Object.getOwnPropertyDescriptor(r.props,"ref")?.get,o=a&&"isReactWarning"in a&&a.isReactWarning;return o?r.ref:(a=Object.getOwnPropertyDescriptor(r,"ref")?.get,o=a&&"isReactWarning"in a&&a.isReactWarning,o?r.props.ref:r.props.ref||r.ref)}pt(Ff,"getElementRef");function Uf(r){return x.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===Of}pt(Uf,"isSlottable");var X1=Symbol.for("react.lazy");function Dl(r){return r!=null&&typeof r=="object"&&"$$typeof"in r&&r.$$typeof===X1&&"_payload"in r&&qf(r._payload)}pt(Dl,"isLazyComponent");function qf(r){return typeof r=="object"&&r!==null&&"then"in r}pt(qf,"isPromiseLike");function Vf(r){let a=r;for(;Dl(a)&&typeof Bo=="function";)a=Bo(a._payload);return a}pt(Vf,"useUnwrappedLazy");function Bf(...r){const a=new Set;for(const o of r)if(typeof o=="string")for(const s of String(o).trim().split(/\s+/))s&&a.add(s);return a.size>0?Array.from(a).join(" "):void 0}pt(Bf,"concatAriaDescribedby");var K1=pt(r=>`${r} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),Q1=pt(r=>`${r} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Bo=ub[" use ".trim().toString()];function Wf(r){var a,o,s="";if(typeof r=="string"||typeof r=="number")s+=r;else if(typeof r=="object")if(Array.isArray(r)){var u=r.length;for(a=0;a<u;a++)r[a]&&(o=Wf(r[a]))&&(s&&(s+=" "),s+=o)}else for(o in r)r[o]&&(s&&(s+=" "),s+=o);return s}function Y1(){for(var r,a,o=0,s="",u=arguments.length;o<u;o++)(r=arguments[o])&&(a=Wf(r))&&(s&&(s+=" "),s+=a);return s}const Hf=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,Xf=Y1,Z1=(r,a)=>o=>{var s;if(a?.variants==null)return Xf(r,o?.class,o?.className);const{variants:u,defaultVariants:p}=a,f=Object.keys(u).map(v=>{const b=o?.[v],S=p?.[v];if(b===null)return null;const w=Hf(b)||Hf(S);return u[v][w]}),h=o&&Object.entries(o).reduce((v,b)=>{let[S,w]=b;return w===void 0||(v[S]=w),v},{}),m=a==null||(s=a.compoundVariants)===null||s===void 0?void 0:s.reduce((v,b)=>{let{class:S,className:w,...j}=b;return Object.entries(j).every(_=>{let[E,M]=_;return Array.isArray(M)?M.includes({...p,...h}[E]):{...p,...h}[E]===M})?[...v,S,w]:v},[]);return Xf(r,f,m,o?.class,o?.className)},Kf=Z1("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 w-[max-content] disabled:bg-disabled disabled:text-disabled-foreground overflow-hidden shrink-0 whitespace-nowrap [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary-hovered focus-visible:ring-primary active:bg-primary-pressed",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive-hovered focus-visible:ring-destructive active:bg-destructive-pressed",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary-hovered focus-visible:ring-primary active:bg-secondary-pressed hover:text-primary-foreground active:text-primary-foreground",ghost:"hover:bg-accent hover:text-accent-foreground focus-visible:ring-primary disabled:bg-transparent",link:"overflow-visible text-primary underline-offset-4 hover:text-primary-hovered focus-visible:ring-primary active:text-primary-pressed disabled:bg-transparent",outline:"bg-secondary text-secondary-foreground hover:bg-secondary-hovered focus-visible:ring-primary active:bg-secondary-pressed hover:text-primary-foreground active:text-primary-foreground",input:"bg-background border border-input focus-visible:ring-primary hover:border-primary active:border-primary-pressed"},size:{default:"h-10 px-4 text-base",xsm:"h-5 px-1 text-xs",xs:"h-6 px-3",sm:"h-8 px-3",md:"h-9 px-4",icon:"size-8 text-base",smIcon:"size-6 rounded-full text-base",lgIcon:"size-10 text-base"},isMenu:{true:"w-full justify-start"}},defaultVariants:{variant:"default",size:"default",isMenu:!1}}),me=x.forwardRef(({className:r,variant:a,size:o,asChild:s=!1,loading:u=!1,isMenu:p=!1,type:f,...h},m)=>{const v=s?{}:{type:f??"button"};return l.jsx(s?B1:"button",u?{className:B(Kf({variant:a,size:o,className:r,isMenu:p})),ref:m,...v,...h,disabled:!0,children:l.jsx(Lr,{className:"size-4 animate-spin min-w-16"})}:{className:B(Kf({variant:a,size:o,className:r,isMenu:p})),ref:m,...v,...h})});me.displayName="Button";function Il(r,a,o){if(r===null)return _t(null,a);const s=_t(r,a,o);return r>0?`+${s}`:s}function Qf(r){return[r.territory_code??r.territory_name,r.item].filter(Boolean).join("|")}function Yf(r,a){return r.national?.period===a?r.national.value:null}function J1(r,a,o){const s=ta(r);return fa(r,{period:a,mode:"value",base:"median"}).filter(u=>u.value!==null).slice(0,o).map(u=>{const p=new Map(r.data.filter(f=>Qf(f)===u.key).map(f=>[f.period,f.value]));return{key:u.key,name:u.name,points:s.map(f=>({period:f,value:p.get(f)??null}))}})}function G1(r,a){if(new Set(r.data.map(s=>s.territory_code??s.territory_name??"")).size!==1||!r.data.every(s=>s.item!=null&&s.item!==""))return a;const o=new Map(r.data.map(s=>[Qf(s),s.item??""]));return a.map(s=>({...s,name:o.get(s.key)??s.name}))}function fa(r,a){return G1(r,zb(r,a))}function Zf(r,a,o){const s=Yf(r,a);if(s===null||r.value_kind!=="level")return s;const u=o.filter(p=>p!==null&&Number.isFinite(p));return u.length===0?null:s<=Math.max(...u)*1.05?s:null}const ey=["12 76% 61%","173 58% 39%","197 37% 24%","43 74% 66%","27 87% 67%"],Tl=r=>r.clientWidth>0&&r.clientWidth<ty,ty=360;function Al(r){const a=document.createElement("span");r.appendChild(a);const o=u=>(a.style.color=u,getComputedStyle(a).color),s={series:ey.map((u,p)=>o(`hsl(var(--chart-${p+1}, ${u}))`)),text:o("hsl(var(--foreground))"),muted:o("hsl(var(--muted-foreground))"),border:o("hsl(var(--chart-grid, var(--border)))"),negative:o("hsl(var(--chart-neg, var(--destructive)))"),reference:o("hsl(var(--chart-ref, var(--foreground)))"),font:getComputedStyle(r).fontFamily,narrow:Tl(r)};return a.remove(),s}function ry({option:r,signature:a,label:o,height:s}){const u=x.useRef(null),p=x.useRef(null),f=x.useRef(r);return x.useEffect(()=>{f.current=r}),x.useEffect(()=>{const h=u.current;if(!h)return;let m=!0,v;return import("./echarts-3nlHlFS7.js").then(({init:b})=>{if(!m)return;p.current=b(h),p.current.setOption(f.current(Al(h)));let S=Tl(h);v=new ResizeObserver(()=>{Tl(h)!==S&&(S=!S,p.current?.setOption(f.current(Al(h)),!0)),p.current?.resize()}),v.observe(h)}).catch(()=>{}),()=>{m=!1,v?.disconnect(),p.current?.dispose(),p.current=null}},[]),x.useEffect(()=>{const h=u.current;h&&p.current&&p.current.setOption(f.current(Al(h)),!0)},[a]),l.jsx("div",{ref:u,role:"img","aria-label":o,style:{height:s},className:"w-full min-w-0"})}const ny=[[/товариществ[оа] с ограниченной ответственностью/giu,"\u0422\u041E\u041E"],[/республиканско(е|го) государственно(е|го) учреждени[ея]/giu,"\u0420\u0413\u0423"],[/республиканско(е|го) государственно(е|го) предприяти[ея]/giu,"\u0420\u0413\u041F"],[/государственно(е|го) учреждени[ея]/giu,"\u0413\u0423"],[/акционерно(е|го) обществ[оа]/giu,"\u0410\u041E"],[/индивидуальный предприниматель/giu,"\u0418\u041F"]],Jf=r=>ny.reduce((a,[o,s])=>a.replace(o,s),r).replace(/\s+/g," ").trim(),ay=7.6,oy=56,iy=160,sy=r=>Math.min(iy,Math.max(oy,Math.ceil(r.reduce((a,o)=>Math.max(a,o.length),0)*ay)));function ly(r){if(r.trend)return["line","area","column"];const a=["bar","column"],o=r.rows.map(s=>s.value).filter(s=>s!==null);return!r.signed&&o.length>1&&o.every(s=>s>0)&&a.push("pie"),!r.signed&&r.periods.length>1&&r.series.length>0&&a.push("line"),a}const cy=.3;function dy(r,a,o,s){const{lang:u,decimals:p}=s,f=$=>typeof $=="number"?a.signed?Il($,u,p):_t($,u,p):"\u2014",h=new Intl.NumberFormat(u,{notation:"compact",maximumFractionDigits:1}),m={color:o.muted,formatter:$=>h.format($)},v={lineStyle:{color:o.border}},b=$=>X=>{const K=Jf(X);return K.length>$?`${K.slice(0,$-1)}\u2026`:K},S={color:o.muted,formatter:b(o.narrow?12:22)},w={animationDuration:400,color:o.series,textStyle:{fontFamily:o.font,color:o.text},tooltip:{trigger:r==="pie"?"item":"axis",confine:!0,valueFormatter:f}},j=a.rows.map($=>$.value).filter($=>$!==null),_=!a.signed&&j.every($=>$>0)&&!Pb(j);if(r==="pie")return{...w,legend:{type:"scroll",bottom:0,textStyle:{color:o.muted},formatter:Jf,tooltip:{show:!0}},series:[{type:"pie",radius:["40%","68%"],center:["50%","44%"],itemStyle:{borderColor:"transparent",borderRadius:4},label:{show:!1},data:a.rows.filter($=>$.value!==null).map($=>({name:$.name,value:$.value}))}]};if(a.trend||r==="line"||r==="area")return{...w,legend:{type:"scroll",bottom:0,textStyle:{color:o.muted}},grid:{left:8,right:16,top:12,bottom:32,containLabel:!0},xAxis:{type:"category",data:a.periods,axisLabel:{color:o.muted},boundaryGap:r==="column"},yAxis:{type:"value",scale:r!=="column",axisLabel:m,splitLine:v},series:a.series.map($=>({type:r==="column"?"bar":"line",name:$.name,data:a.periods.map(X=>$.points.find(K=>K.period===X)?.value??null),symbolSize:6,...r==="area"?{areaStyle:{opacity:.15}}:{}}))};const E=r==="bar",M=E?[...a.rows].reverse():a.rows,F=M.map($=>$.name),Z=a.national??null,oe=sy(M.map($=>$.value===null?"\u2014":f($.value))),J={type:"value",scale:_,axisLabel:m,splitLine:v,...o.narrow?{splitNumber:2}:{}},ne={type:"category",data:F,axisTick:{show:!1},axisLabel:E?S:{...S,formatter:b(14),rotate:30,interval:0}};return{...w,tooltip:{...w.tooltip,axisPointer:{type:"shadow"}},grid:{left:8,right:E?oe:16,top:Z===null?12:24,bottom:8,containLabel:!0},xAxis:E?J:ne,yAxis:E?ne:J,series:[{type:"bar",barMaxWidth:28,data:M.map($=>({value:$.value,itemStyle:{color:$.value!==null&&$.value<0?o.negative:o.series[0],opacity:a.highlightKey!==void 0&&$.key!==a.highlightKey?cy:1,borderRadius:E?[0,4,4,0]:[4,4,0,0]}})),label:{show:E,position:"right",color:o.text,formatter:$=>f($.value)},...Z===null?{}:{markLine:{symbol:"none",silent:!0,lineStyle:{type:"dashed",color:o.reference},label:{formatter:s.nationalLabel(f(Z)),color:o.reference,position:E?"end":"insideEndTop"},data:[E?{xAxis:Z}:{yAxis:Z}]}}}]}}const uy=5,Gf=({section:r,period:a,rows:o,national:s=null,signed:u=!1,highlightKey:p,compact:f=!1,label:h})=>{const{lang:m,t:v}=G(),b={rows:o,series:J1(r,a,uy),periods:ta(r),trend:r.shape==="trend",national:s,signed:u,highlightKey:p},S=ly(b),[w,j]=x.useState(S[0]),_=S.includes(w)?w:S[0],E=_==="bar"&&!b.trend?Math.max(f?180:240,o.length*24+40):f?240:320;return l.jsxs("div",{part:"section-chart",className:"flex min-w-0 flex-col gap-2",children:[S.length>1?l.jsx("div",{role:"group","aria-label":v("chart.kinds"),className:"inline-flex flex-wrap gap-0.5 self-start rounded-md border bg-background p-0.5",children:S.map(M=>l.jsx("button",{type:"button","aria-pressed":M===_,onClick:()=>{j(M)},className:B("inline-flex h-7 items-center whitespace-nowrap rounded-[7px] px-2.5 text-[13px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",M===_?"bg-secondary text-secondary-foreground":"text-muted-foreground hover:text-foreground"),children:v(`chart.kind.${M}`)},M))}):null,l.jsx(ry,{label:h,height:E,signature:JSON.stringify([_,m,b]),option:M=>dy(_,b,M,{lang:m,decimals:r.decimals,nationalLabel:F=>v("chart.national",{value:F})})})]})},eh=(r,a)=>{const{api:o,lang:s}=G(),u=x.useSyncExternalStore(ia.subscribe,()=>ia.view(r))??(a?fl(a):Wp);x.useEffect(()=>{a&&ia.adopt(r,a,o)},[r,a,o]);const p=x.useCallback(()=>{ia.start(r,o,s)},[r,o,s]),f=x.useCallback(()=>{ia.expire(r)},[r]);return{view:u,start:p,expire:f}},th=({messageId:r,block:a,disabled:o=!1,className:s})=>{const{t:u}=G(),{view:p,start:f}=eh(r,a);return p.phase!=="idle"?null:l.jsxs(me,{part:"report",variant:"input",size:"sm",className:B("gap-1.5 text-[13px]",s),disabled:o,onClick:f,children:[l.jsx(rv,{"aria-hidden":"true"}),u("report.create")]})},rh={pdf:"pdf",doc:"doc",docx:"doc",ppt:"ppt",pptx:"ppt",xls:"xls",xlsx:"xls",csv:"csv"},Ol=r=>{const a=r.lastIndexOf(".");return a<0?"":r.slice(a+1).toLowerCase()},nh=r=>Object.hasOwn(rh,r)?rh[r]??"other":"other",py={pdf:"bg-file-pdf",doc:"bg-file-doc",ppt:"bg-file-ppt",xls:"bg-file-xls",csv:"bg-file-csv",other:"bg-file-other"},$l=({ext:r,className:a})=>l.jsx("span",{part:"file-type","data-kind":nh(r),"aria-hidden":"true",className:B("flex size-[34px] shrink-0 items-center justify-center rounded-lg text-[9.5px] font-bold leading-none tracking-[0.02em] text-background",py[nh(r)],a),children:r?r.slice(0,4).toUpperCase():"FILE"}),ah=["byte","kilobyte","megabyte","gigabyte"];function Fl(r,a){let o=r,s=0;for(;o>=1024&&s<ah.length-1;)o/=1024,s+=1;return new Intl.NumberFormat(a,{style:"unit",unit:ah[s]??"byte",unitDisplay:"short",maximumFractionDigits:s===0?0:1}).format(o)}const fy=/^\/api\/v1\/((?:report-jobs|messages)\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\/files\/\d{1,4})$/i,oh=r=>{const a=fy.exec(r);return a?.[1]?`${rl}/${a[1]}`:null},hy=1e3,gy=async(r,a,o,s)=>{const u=oh(a);if(!u)return"unavailable";let p;try{p=await(await r.request(u.slice(rl.length))).blob()}catch(m){return m instanceof Ge&&m.status===410?"expired":m instanceof Ge&&m.status===404?"notFound":"unavailable"}const f=URL.createObjectURL(p),h=document.createElement("a");h.href=f,h.download=Lf(o),h.hidden=!0,s.appendChild(h);try{h.click()}finally{h.remove(),window.setTimeout(()=>{URL.revokeObjectURL(f)},hy)}return"ok"},my=["pdf","docx","pptx","xlsx","csv"],by=r=>{const a=r.getRootNode();return a instanceof ShadowRoot?a:r.parentElement??r},ih=({files:r,onExpired:a,className:o})=>{const{api:s,lang:u,t:p}=G(),[f,h]=x.useState(null),[m,v]=x.useState({}),b=x.useRef(m);x.useEffect(()=>{b.current=m});const S=r.filter(j=>my.includes(j.format)&&oh(j.download_url)!==null);if(S.length===0)return null;const w=(j,_)=>{f===null&&(h(j.download_url),v(E=>Object.fromEntries(Object.entries(E).filter(([M])=>M!==j.download_url))),gy(s,j.download_url,j.filename,by(_.currentTarget)).then(E=>{if(h(null),E==="ok")return;const M={...b.current,[j.download_url]:E};v(M),S.every(F=>M[F.download_url]==="expired")&&a?.()}))};return l.jsxs("div",{part:"files",role:"group","aria-label":p("files.list"),className:B("flex flex-col gap-1.5",o),children:[l.jsx("div",{className:"text-2xs text-muted-foreground",children:p("files.list")}),l.jsx("ul",{"aria-label":p("files.list"),className:"m-0 flex list-none flex-col gap-1.5 p-0",children:S.map(j=>{const _=f===j.download_url,E=m[j.download_url];return l.jsxs("li",{"data-state":m[j.download_url]??void 0,className:B("flex min-w-0 items-center gap-3 rounded-xl border bg-card p-2",m[j.download_url]&&"border-error/35 bg-error-background"),children:[l.jsx($l,{ext:j.format}),l.jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[l.jsx("span",{className:"truncate text-sm font-medium leading-tight",title:j.filename,children:p(`files.${Sp(j.format)}`)}),l.jsxs("span",{className:"text-2xs leading-tight text-muted-foreground",children:[j.format.toUpperCase(),j.size_bytes>0?` \xB7 ${Fl(j.size_bytes,u)}`:null]})]}),E?l.jsxs("span",{role:"alert",className:"flex shrink-0 items-center gap-1.5 text-[13px]",children:[l.jsx(Pr,{className:"text-destructive","aria-hidden":"true"}),p(`files.${E}`)]}):l.jsxs(me,{variant:"ghost",size:"sm",className:"gap-1.5",title:j.filename,"aria-busy":_,disabled:f!==null,"aria-label":`${p("download")}: ${p(`files.${Sp(j.format)}`)}`,onClick:M=>{w(j,M)},children:[_?l.jsx(Lr,{className:"animate-spin motion-reduce:animate-none","aria-hidden":"true"}):l.jsx(pf,{"aria-hidden":"true"}),p("download")]})]},`${j.format}-${j.download_url}`)})})]})},Ul="flex items-center gap-2.5 rounded-xl border px-3 py-2.5 text-sm",sh=({messageId:r,block:a,className:o})=>{const{t:s}=G(),{view:u,start:p,expire:f}=eh(r,a);switch(u.phase){case"idle":return null;case"pending":return l.jsxs("div",{part:"report",role:"status","data-state":"pending",className:B(Ul,"border-processing/25 bg-processing-background",o),children:[l.jsx(Lr,{className:"shrink-0 animate-spin text-primary-text motion-reduce:animate-none","aria-hidden":"true"}),l.jsx("span",{className:"min-w-0 flex-1",children:s("report.pending")})]});case"done":return l.jsx(ih,{files:u.files,onExpired:f,className:o});case"expired":return l.jsxs("div",{part:"report",role:"status","data-state":"expired",className:B(Ul,"bg-card",o),children:[l.jsx(kl,{className:"shrink-0 text-muted-foreground","aria-hidden":"true"}),l.jsx("span",{className:"min-w-0 flex-1",children:s("report.expired")}),l.jsx(me,{variant:"input",size:"sm",className:"gap-1.5 text-[13px]",onClick:p,children:s("report.create")})]});case"failed":return l.jsxs("div",{part:"report",role:"alert","data-state":"failed",className:B(Ul,"border-error/30 bg-error-background",o),children:[l.jsx(Pr,{className:"shrink-0 text-destructive","aria-hidden":"true"}),l.jsx("span",{className:"min-w-0 flex-1",children:s("report.failed")}),l.jsx(me,{variant:"input",size:"sm",className:"gap-1.5 text-[13px]",onClick:p,children:s("report.retry")})]})}},xy=4;function Wo(r,a,o){const s=Mb(r,a);return s==="\u043F.\u043F."?o("dashboard.points"):s}function lh(r){if(r.length===0)return null;const a=[...r].sort((s,u)=>s-u),o=Math.floor(a.length/2);return a.length%2?a[o]??null:((a[o-1]??0)+(a[o]??0))/2}function ha(r){const a=new Set;return r.filter(o=>!a.has(o.label)&&a.add(o.label)).slice(0,xy)}function vy(r,{period:a,region:o,lang:s,t:u}){if(o===void 0&&a===r.latest_period&&r.kpis.length>0)return ha(r.kpis.map(_=>({label:_.label,value:_.value,sub:_.sub??null})));const p=_=>`${_t(_,s,r.decimals)} ${r.unit.label}`,f=(_,E)=>_===null?_t(null,s):`${Il(_,s,r.decimals)} ${E}`,h=fa(r,{period:a,mode:"value",base:"median"}).filter(_=>_.value!==null),m=h.map(_=>_.value??0),v=h[0],b=h[h.length-1];if(v===void 0||b===void 0)return[];if(o!==void 0){const _=h.findIndex(F=>F.key===o),E=h[_];if(E===void 0)return[];const M=lh(m);return ha([{label:E.name,value:p(E.value),sub:a},{label:u("dashboard.kpi.place"),value:u("dashboard.kpi.placeOf",{n:_+1,m:h.length})},{label:u("dashboard.kpi.deviation"),value:f(M===null||E.value===null?null:E.value-M,Wo(r,"deviation",u))},{label:u("dashboard.kpi.previous"),value:f(E.delta,Wo(r,"change",u))}])}if(r.shape==="trend"){const _=ta(r).filter(J=>J<=a),E=J=>r.data.find(ne=>ne.period===J&&ne.value!==null)?.value??null,M=_[0],F=E(a),Z=M===void 0?null:E(M);let oe=null;return F!==null&&Z!==null&&M!==a&&(oe=r.value_kind==="level"?Z>0?(F/Z-1)*100:null:F-Z),ha([{label:u("dashboard.kpi.last"),value:p(F),sub:a},...M!==void 0&&M!==a?[{label:u("dashboard.kpi.first"),value:p(Z),sub:M},{label:u("dashboard.kpi.change"),value:f(oe,Wo(r,"change",u))}]:[]])}if(r.shape==="breakdown")return ha([...h.slice(0,3).map(_=>({label:_.name,value:p(_.value),sub:_.share===null?a:`${_t(_.share,s,1)} %`})),...h.length>1?[{label:u("dashboard.kpi.gap"),value:p((v.value??0)-(b.value??0)),sub:`${v.name} \u2212 ${b.name}`}]:[]]);const S=Yf(r,a),w=lh(m),j=[{label:u("dashboard.kpi.max"),value:p(v.value),sub:v.name},{label:u("dashboard.kpi.min"),value:p(b.value),sub:b.name},{label:u("dashboard.kpi.median"),value:p(w),sub:a}];return ha(S!==null?[{label:u("dashboard.kpi.national"),value:p(S),sub:a},...j]:[...j,{label:u("dashboard.kpi.spread"),value:p((v.value??0)-(b.value??0)),sub:`${v.name} \u2212 ${b.name}`}])}const yy=({kpis:r})=>{const{t:a}=G();return r.length===0?null:l.jsx("ul",{"aria-label":a("dashboard.kpis"),className:"m-0 grid list-none grid-cols-[repeat(auto-fit,minmax(9.5rem,1fr))] gap-2.5 p-0",children:r.map((o,s)=>l.jsxs("li",{className:"flex min-w-0 flex-col gap-0.5 rounded-xl border bg-card px-3.5 py-3",children:[l.jsx("span",{"data-kpi-label":"",className:"truncate text-2xs text-muted-foreground",title:o.label,children:o.label}),l.jsx("span",{className:"text-xl font-semibold tabular-nums leading-snug",children:o.value}),o.sub!=null&&o.sub!==""?l.jsx("span",{className:"truncate text-2xs text-muted-foreground",title:o.sub,children:o.sub}):null]},s))})};function ch({label:r,value:a,options:o,onChange:s}){return l.jsx("div",{role:"group","aria-label":r,className:"inline-flex gap-0.5 rounded-md border bg-background p-0.5",children:o.map(u=>{const p=u.value===a,f=u.disabledHint!==void 0;return l.jsx("button",{type:"button","aria-pressed":p,"aria-disabled":f||void 0,title:u.disabledHint,onClick:()=>{f||s(u.value)},className:B("h-7 whitespace-nowrap rounded-[7px] px-2.5 text-[13px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",p?"bg-secondary text-secondary-foreground":"text-muted-foreground",f?"cursor-not-allowed opacity-50":!p&&"hover:text-foreground"),children:u.label},u.value)})})}const ga="whitespace-nowrap px-3 py-[7px] text-[13px] font-semibold text-foreground",hn="whitespace-nowrap text-right tabular-nums",wy=({section:r,rows:a,mode:o,lang:s,highlightKey:u})=>{const{t:p}=G(),f=r.value_kind==="level",h=o==="value"?null:p(o==="change"?"dashboard.table.change":"dashboard.table.deviation",{unit:Wo(r,o,p)});return l.jsx("div",{className:"max-h-[28rem] overflow-auto overscroll-contain rounded-[10px] border bg-card",children:l.jsxs("table",{className:"w-full border-collapse text-[13.5px]",children:[l.jsx("thead",{className:"sticky top-0 bg-muted",children:l.jsxs("tr",{className:"border-b",children:[l.jsx("th",{scope:"col",className:B(ga,"w-10 text-right"),children:p("dashboard.table.rank")}),l.jsx("th",{scope:"col",className:B(ga,"text-left"),children:p("dashboard.table.position")}),l.jsx("th",{scope:"col",className:B(ga,hn),children:p("dashboard.table.value",{unit:r.unit.label})}),h!==null?l.jsx("th",{scope:"col",className:B(ga,hn),children:h}):null,f?l.jsx("th",{scope:"col",className:B(ga,hn),children:p("dashboard.table.share")}):null]})}),l.jsx("tbody",{children:a.map((m,v)=>l.jsxs("tr",{className:B("h-9 border-b last:border-b-0",m.key===u&&"bg-accent"),children:[l.jsx("td",{className:"px-3 text-right tabular-nums text-muted-foreground",children:v+1}),l.jsx("td",{className:"px-3",children:m.name}),l.jsx("td",{className:B("px-3",hn),children:_t(m.value,s,r.decimals)}),h!==null?l.jsx("td",{className:B("px-3",hn),children:Il(m.display,s,r.decimals)}):null,f?l.jsx("td",{className:B("px-3",hn),children:_t(m.share,s,1)}):null]},m.key))})]})})},ql="__all__",Vl="size-8 text-muted-foreground hover:text-foreground",ky=({message:r})=>{const{t:a}=G(),{state:o,setSection:s}=Rr(),u=ur(r.blocks,"dashboard")?.sections??[],p=u.find(h=>h.id===o.sectionId)??u[0];if(p===void 0)return null;const f=u.length>1?l.jsx("div",{role:"tablist","aria-label":a("dashboard.sections"),className:"flex gap-1 self-start overflow-x-auto rounded-md bg-secondary p-1",children:u.map(h=>{const m=h.id===p.id;return l.jsx("button",{type:"button",role:"tab","aria-selected":m,onClick:()=>{s(h.id)},className:B("min-h-8 shrink-0 rounded-lg px-3 py-1.5 text-left text-sm font-medium leading-snug transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",m?"bg-background text-foreground shadow-sm":"text-secondary-foreground hover:text-foreground"),children:h.title},h.id)})}):null;return l.jsx("section",{"aria-label":a("dashboard.label"),className:"flex h-full min-h-0 min-w-0 flex-1 flex-col bg-background",children:l.jsx(jy,{section:p,message:r,tabs:f},p.id)})},dh=({label:r,value:a,onChange:o,children:s,className:u})=>l.jsxs("div",{className:B("flex flex-col gap-1",u),children:[l.jsx("span",{className:"text-2xs text-muted-foreground","aria-hidden":"true",children:r}),l.jsxs("span",{className:"relative inline-flex",children:[l.jsx("select",{"aria-label":r,value:a,onChange:p=>{o(p.target.value)},className:"h-8 w-full min-w-0 appearance-none truncate rounded-md border border-input bg-background py-0 pl-2.5 pr-7 text-sm text-foreground transition-colors hover:bg-muted focus-visible:border-primary focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-secondary motion-reduce:transition-none",children:s}),l.jsx(dn,{className:"pointer-events-none absolute right-2 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground","aria-hidden":"true"})]})]}),uh=({label:r,children:a})=>l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsx("span",{className:"text-2xs text-muted-foreground","aria-hidden":"true",children:r}),a]}),jy=({section:r,message:a,tabs:o})=>{const{lang:s,t:u}=G(),{state:p,setFullscreen:f,close:h}=Rr(),{fullscreen:m}=p,v=ta(r),[b,S]=x.useState(()=>v.includes(r.latest_period)?r.latest_period:v.at(-1)??r.latest_period),[w,j]=x.useState(),[_,E]=x.useState("value"),[M,F]=x.useState("median"),Z=Rb(r,b),oe=r.shape==="trend",J=oe||_==="change"&&!Z.change||_==="deviation"&&!Z.deviation?"value":_,ne=M==="national"&&Z.national?"national":"median",$=fa(r,{period:b,mode:J,base:ne}),X=J==="value"?$:fa(r,{period:b,mode:"value",base:ne}),K=[...X].sort((k,L)=>k.name.localeCompare(L.name,s)),he=w!==void 0&&K.some(k=>k.key===w)?w:void 0,ee=vy(r,{period:b,region:he,lang:s,t:u}),ue=b===r.latest_period&&he===void 0?r.findings:[],W=r.shape==="regional",Q=X.filter(k=>k.value!==null).length,be=[b,r.unit.label,u(W?"dashboard.regions":"dashboard.items",{n:Q})].join(" \xB7 "),Ne=fn(r.source_url),ve=r.methodology?.editions,ye=ve?.[s]??ve?.ru,U=fn(ye?.url),D=`${u(oe?"dashboard.trend":"dashboard.ranking")}: ${r.title}, ${b}`,I=nf(a.blocks);return l.jsxs(l.Fragment,{children:[l.jsxs("header",{className:"flex shrink-0 flex-col gap-2 border-b py-3.5 pl-5 pr-4",children:[l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx("span",{className:"min-w-0 flex-1 text-2xs font-semibold uppercase tracking-wide text-primary-text",children:u("dashboard.eyebrow")}),U!==null?l.jsx(me,{variant:"ghost",size:"icon",className:Vl,asChild:!0,children:l.jsx("a",{href:U,target:"_blank",rel:"noopener noreferrer","aria-label":u("dashboard.methodology"),title:ye?.title??u("dashboard.methodology"),children:l.jsx(Uo,{"aria-hidden":"true"})})}):null,Ne!==null?l.jsx(me,{variant:"ghost",size:"icon",className:Vl,asChild:!0,children:l.jsx("a",{href:Ne,target:"_blank",rel:"noopener noreferrer","aria-label":u("dashboard.openSource"),title:u("dashboard.openSource"),children:l.jsx(Sl,{"aria-hidden":"true"})})}):null,l.jsxs(me,{variant:"ghost",size:"sm",className:"gap-1.5 text-muted-foreground hover:text-foreground","aria-pressed":m,onClick:()=>{f(!m)},children:[m?l.jsx(xf,{"aria-hidden":"true"}):l.jsx(gf,{"aria-hidden":"true"}),u(m?"dashboard.collapse":"dashboard.fullscreen")]}),l.jsx(me,{variant:"ghost",size:"icon",className:Vl,"aria-label":u("dashboard.close"),title:u("dashboard.close"),onClick:h,children:l.jsx(ca,{"aria-hidden":"true"})})]}),l.jsx("h2",{className:"m-0 text-xl font-semibold leading-snug",children:r.title}),l.jsx("span",{className:"text-xs text-muted-foreground",children:be})]}),l.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-3.5 overflow-y-auto overscroll-contain px-5 pb-5 pt-3.5",children:[o,l.jsxs("div",{className:"flex flex-wrap items-end gap-3",children:[W&&K.length>1?l.jsxs(dh,{label:u("dashboard.region"),value:he??ql,onChange:k=>{j(k===ql?void 0:k)},className:"min-w-40 max-w-60",children:[l.jsx("option",{value:ql,children:u("dashboard.allRegions")}),K.map(k=>l.jsx("option",{value:k.key,children:k.name},k.key))]}):null,v.length>1?l.jsx(dh,{label:u("dashboard.period"),value:b,onChange:S,className:"min-w-24",children:[...v].reverse().map(k=>l.jsx("option",{value:k,children:k},k))}):null,oe?null:l.jsx(uh,{label:u("dashboard.mode.label"),children:l.jsx(ch,{label:u("dashboard.mode.label"),value:J,onChange:E,options:[{value:"value",label:u("dashboard.mode.value")},{value:"deviation",label:u("dashboard.mode.deviation"),disabledHint:Z.deviation?void 0:u("dashboard.fewRegions")},{value:"change",label:u("dashboard.mode.change"),disabledHint:Z.change?void 0:u("dashboard.noPrevious")}]})}),J==="deviation"?l.jsx(uh,{label:u("dashboard.base.label"),children:l.jsx(ch,{label:u("dashboard.base.label"),value:ne,onChange:F,options:[{value:"median",label:u("dashboard.base.median")},{value:"national",label:u("dashboard.base.national"),disabledHint:Z.national?void 0:u("dashboard.noNational")}]})}):null]}),l.jsx(yy,{kpis:ee}),l.jsx(Bl,{title:u(oe?"dashboard.trend":"dashboard.ranking"),card:!0,children:l.jsx(Gf,{section:r,period:b,label:D,rows:$.map(k=>({key:k.key,name:k.name,value:k.display})),national:J==="value"?Zf(r,b,$.map(k=>k.value)):null,signed:J!=="value",highlightKey:he})}),ue.length>0?l.jsx(Bl,{title:u("dashboard.findings"),children:l.jsx("ul",{className:"flex list-disc flex-col gap-1 pl-5 text-sm",children:ue.map((k,L)=>l.jsx("li",{children:k},L))})}):null,l.jsx(Bl,{title:u("dashboard.data"),children:l.jsx(wy,{section:r,rows:$,mode:J,lang:s,highlightKey:he})}),l.jsxs("footer",{className:"flex flex-col gap-3 border-t pt-3.5",children:[r.source_name!=null&&r.source_name!==""?l.jsx("p",{className:"text-xs text-muted-foreground",children:u("dashboard.source",{name:r.source_name})}):null,l.jsx("div",{className:"-ml-2 empty:hidden",children:l.jsx(th,{messageId:a.id,block:I})}),l.jsx(sh,{messageId:a.id,block:I})]})]})]})},Bl=({title:r,children:a,card:o=!1})=>l.jsxs("section",{className:"flex flex-col gap-2",children:[l.jsx("h3",{className:"m-0 text-sm font-semibold",children:r}),o?l.jsx("div",{className:"rounded-xl bg-[hsl(var(--chart-card))] px-4 py-3.5",children:a}):a]}),Sy=({threadId:r,children:a})=>{const[o,s]=x.useState(sa),[u,p]=x.useState(r);u!==r&&(p(r),u!==void 0&&s(sa));const f=x.useRef(new Set),h=x.useCallback((E,M)=>{s(wl(E,M??null))},[]),m=x.useCallback(E=>{s(M=>M.messageId===E?sa:wl(E))},[]),v=x.useCallback(E=>{f.current.has(E)||(f.current.add(E),s(wl(E)))},[]),b=x.useCallback(()=>{s(sa)},[]),S=x.useCallback(E=>{s(M=>({...M,sectionId:E}))},[]),w=x.useCallback(E=>{s(M=>({...M,fullscreen:E}))},[]),j=x.useCallback(E=>{s(M=>({...M,view:E}))},[]),_=x.useMemo(()=>({state:o,open:h,toggle:m,autoOpen:v,close:b,setSection:S,setFullscreen:w,setView:j}),[o,h,m,v,b,S,w,j]);return l.jsx(af.Provider,{value:_,children:a})},ph="aid_intro_ack",Cy=()=>{try{return window.localStorage.getItem(ph)!==null}catch{return!1}},Ny=({active:r=!0})=>{const{state:a,lang:o,t:s}=G(),u=aa(a.config?.intro_notice??void 0,o).trim(),[p,f]=x.useState(Cy),h=r&&u!==""&&!p,m=x.useId(),v=u.split(`
|
|
17
|
+
`).filter(w=>w.trim()!==""),b=x.useRef(null);_r(b,!h),Fo(b,h,()=>{const w=b.current?.getRootNode();return w instanceof ShadowRoot||w instanceof Document?w.querySelector('[part="input"]'):null});const S=x.useCallback(()=>{f(!0);try{window.localStorage.setItem(ph,"1")}catch{}},[]);return x.useEffect(()=>{if(!h)return;const w=j=>{j.key==="Escape"&&(j.preventDefault(),S())};return window.addEventListener("keydown",w,!0),()=>{window.removeEventListener("keydown",w,!0)}},[h,S]),u===""?null:l.jsxs("div",{ref:b,className:B("absolute inset-0 z-50 flex items-center justify-center p-4 transition-opacity duration-150 motion-reduce:transition-none",h?"opacity-100":"pointer-events-none opacity-0"),"aria-hidden":!h,children:[l.jsx("div",{"aria-hidden":"true",className:"absolute inset-0 bg-scrim"}),l.jsxs("div",{part:"intro",role:"dialog","aria-modal":"true","aria-labelledby":m,className:B("relative flex max-h-full w-[min(400px,100%)] flex-col overflow-hidden rounded-aid-field border bg-background shadow-panel transition-transform duration-200 motion-reduce:transition-none",h?"translate-y-0":"translate-y-2"),children:[l.jsx("h2",{id:m,className:"m-0 py-3.5 pl-[18px] pr-3 pb-2.5 text-lg font-semibold",children:s("intro.title")}),l.jsx("div",{className:"flex min-h-0 flex-col gap-2.5 overflow-y-auto px-[18px] pt-1",children:v.map((w,j)=>l.jsx("p",{className:"text-[13px] leading-[1.55]",children:w},`${j}-${w}`))}),l.jsx("footer",{className:"flex shrink-0 justify-end px-[18px] pb-[18px] pt-3.5",children:l.jsx(me,{"data-autofocus":!0,size:"md",onClick:S,children:s("intro.continue")})})]})]})},ma=r=>r?!r.available||r.status==="down"||r.status==="overloaded"?"unavailable":r.status==="idle"?"idle":r.status==="busy"||r.status==="degraded"?"busy":"unknown":"unknown",Ey={idle:"text-mode-idle",busy:"text-mode-busy",unavailable:"text-mode-down",unknown:"text-muted-foreground"},_y={idle:"health.idle",busy:"health.busy",unavailable:"health.unavailable"},fh=r=>_y[r],zy={bot:Ox,"book-open":Uo,database:Yx,"file-text":av,globe:iv,lock:hf,"message-circle":xv,"message-square":bf,search:la,sparkles:Cl},Wl=({name:r,className:a})=>{const o=zy[r]??Cl;return l.jsx(o,{className:B("size-4 shrink-0",a),"aria-hidden":"true"})},Hl=({level:r,lang:a})=>r==="unknown"?null:l.jsxs("span",{part:"mode-health","data-level":r,className:B("inline-flex shrink-0 items-center gap-1.5 text-2xs font-semibold",Ey[r]),children:[l.jsx("span",{"aria-hidden":"true",className:"size-2 shrink-0 rounded-full bg-current"}),zt(a,fh(r))]}),hh="inline-flex h-8 min-w-0 max-w-[min(360px,100%)] items-center gap-[7px] rounded-full border bg-background pl-2.5 pr-2 text-[13px] font-medium text-foreground",gh=(r,a)=>aa(r.title,a)||r.slug,mh=({modes:r,health:a,value:o,onChange:s,lang:u,label:p,variant:f="field",placement:h="top"})=>{const m=f==="pill",[v,b]=x.useState(!1),S=Math.max(0,r.findIndex(ee=>ee.slug===o)),[w,j]=x.useState(S),_=x.useId(),E=x.useRef(null),M=x.useRef(null),F=r[S],Z=ma(F?a[F.slug]:void 0),oe=x.useRef(null);x.useEffect(()=>{v&&M.current?.focus()},[v]),x.useEffect(()=>{if(!v)return;const ee=W=>{W.key==="Escape"&&(W.preventDefault(),W.stopPropagation(),b(!1),E.current?.focus())},ue=W=>{oe.current&&!W.composedPath().includes(oe.current)&&b(!1)};return window.addEventListener("keydown",ee,!0),window.addEventListener("pointerdown",ue,!0),()=>{window.removeEventListener("keydown",ee,!0),window.removeEventListener("pointerdown",ue,!0)}},[v]);const J=ee=>{b(!1),ee&&E.current?.focus()},ne=()=>{j(S),b(!0)},$=ee=>{const ue=r[ee];ue&&s(ue.slug),J(!0)},X=ee=>{switch(ee.key){case"ArrowDown":ee.preventDefault(),j(ue=>Math.min(r.length-1,ue+1));break;case"ArrowUp":ee.preventDefault(),j(ue=>Math.max(0,ue-1));break;case"Home":ee.preventDefault(),j(0);break;case"End":ee.preventDefault(),j(r.length-1);break;case"Enter":case" ":ee.preventDefault(),$(w);break;case"Tab":J(!1);break}},K=F?gh(F,u):"",he=Z==="unknown"?"":zt(u,fh(Z));return l.jsxs("div",{ref:oe,className:B(m?"min-w-0":"flex flex-col gap-1.5"),onBlur:ee=>{v&&ee.relatedTarget instanceof Node&&!ee.currentTarget.contains(ee.relatedTarget)&&b(!1)},children:[l.jsxs("button",{ref:E,part:m?"mode-select":void 0,type:"button","aria-haspopup":"listbox","aria-expanded":v,"aria-controls":v?`${_}-list`:void 0,"aria-label":`${p}: ${K}${m&&he?`, ${he}`:""}`,onClick:()=>{v?J(!1):ne()},onKeyDown:ee=>{ee.key==="ArrowDown"&&!v&&(ee.preventDefault(),ne())},className:B(m?B(hh,"transition-colors hover:bg-muted motion-reduce:transition-none"):"inline-flex h-8 w-full items-center justify-between gap-2 rounded-md border bg-background pl-2.5 pr-2 text-xs","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",v&&"border-primary shadow-[0_0_0_3px_var(--aid-c-secondary)]"),children:[m&&F?l.jsx(Wl,{name:F.icon}):null,l.jsx("span",{className:B("truncate",m&&"min-w-0"),children:K}),m?l.jsx(Hl,{level:Z,lang:u}):null,l.jsx(dn,{className:B("size-3.5 shrink-0 text-muted-foreground transition-transform motion-reduce:transition-none",(m?h==="top"!==v:v)&&"rotate-180"),"aria-hidden":"true"})]}),v?l.jsxs("ul",{ref:M,id:`${_}-list`,part:m?"mode-list":void 0,role:"listbox",tabIndex:-1,"aria-label":p,"aria-activedescendant":`${_}-${w}`,onKeyDown:X,className:B("flex max-h-56 flex-col overflow-y-auto rounded-md border bg-background p-1 shadow-pop focus-visible:outline-none",m&&B("absolute left-0 z-20 w-[340px] max-w-full duration-150 animate-in fade-in motion-reduce:animate-none",h==="top"?"bottom-[calc(100%+6px)]":"top-[calc(100%+6px)]")),children:[m?l.jsx("li",{role:"presentation",className:"px-2.5 pb-1 pt-1.5 text-2xs text-muted-foreground",children:p}):null,r.map((ee,ue)=>{const W=ma(a[ee.slug]),Q=aa(ee.description,u);return l.jsxs("li",{id:`${_}-${ue}`,part:m?"mode-option":void 0,role:"option","aria-selected":ue===S,onMouseDown:be=>{be.preventDefault()},onMouseEnter:()=>{j(ue)},onClick:()=>{$(ue)},className:B("flex cursor-pointer items-start gap-2.5 rounded-lg px-2.5 py-2",ue===w&&"bg-accent",ue===S&&"bg-secondary"),children:[l.jsx("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-lg bg-muted",children:l.jsx(Wl,{name:ee.icon})}),l.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[l.jsx("span",{className:"truncate text-sm font-medium leading-[1.35]",children:gh(ee,u)}),Q?l.jsx("span",{className:"line-clamp-2 text-2xs leading-[1.35] text-muted-foreground",children:Q}):null,l.jsx(Hl,{level:W,lang:u})]}),l.jsx(Mr,{className:B("mt-1 size-4 shrink-0 text-primary",ue!==S&&"invisible"),"aria-hidden":"true"})]},ee.slug)})]}):null]})},Xl=(r,a)=>r===(a>=0?a:0)?0:-1,Ry={ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1,Home:"start",End:"end"},Kl=(r,a=!1)=>{const o=Ry[r.key];if(o===void 0)return;const s=Array.from(r.currentTarget.querySelectorAll('[role="radio"]:not(:disabled)')),u=r.currentTarget.getRootNode(),p=s.findIndex(h=>h===u.activeElement);if(s.length===0)return;r.preventDefault();const f=o==="start"?0:o==="end"?s.length-1:(Math.max(p,0)+o+s.length)%s.length;s[f]?.focus(),a&&s[f]?.click()},My=({label:r,className:a,children:o})=>l.jsx("div",{role:"radiogroup","aria-label":r,className:a,onKeyDown:s=>{Kl(s,!0)},children:o}),Py=()=>typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.userAgent),Ly=["search","newChat","sidebar","close"],Dy=r=>{const a=r?"\u2318":"Ctrl",o=r?"\u21E7":"Shift",s=u=>r?[o,a,u]:[a,o,u];return{search:[a,"K"],newChat:s("O"),sidebar:s("S"),close:["Esc"]}},Iy={kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English"},Ho=({title:r,hint:a,children:o})=>l.jsxs("section",{className:"flex flex-col gap-2",children:[l.jsx("h3",{className:"text-xs font-semibold text-muted-foreground",children:r}),o,a?l.jsx("p",{className:"text-xs text-muted-foreground",children:a}):null]}),bh=({value:r,options:a,onChange:o,label:s})=>{const u=a.findIndex(p=>p.value===r);return l.jsx(My,{label:s,className:"grid grid-cols-3 gap-2",children:a.map((p,f)=>{const h=p.value===r;return l.jsxs("button",{type:"button",role:"radio","aria-checked":h,tabIndex:Xl(f,u),lang:p.lang,onClick:()=>{o(p.value)},className:B("flex min-w-0 items-center gap-2.5 rounded-md border px-3 py-2.5 text-left text-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",h?"border-primary bg-secondary":"bg-background hover:border-primary/50"),children:[l.jsx("span",{"aria-hidden":"true",className:B("relative size-4 shrink-0 rounded-full border-[1.5px] bg-background",h?"border-primary":"border-muted-foreground"),children:h?l.jsx("span",{className:"absolute inset-[3px] rounded-full bg-primary"}):null}),l.jsx("span",{className:"truncate",children:p.label})]},p.value)})})},Ty=({children:r})=>l.jsx("kbd",{className:"inline-flex h-5 min-w-5 items-center justify-center rounded border bg-background px-[5px] font-sans text-[11px] font-medium leading-none text-muted-foreground",children:r}),Ay=({open:r,onClose:a})=>{const{state:o,lang:s,t:u,selectMode:p}=G(),f=dl(),h=x.useRef(null);_r(h,!r),Fo(h,r),x.useEffect(()=>{if(!r)return;const w=j=>{j.key==="Escape"&&(h.current?.querySelector('[aria-haspopup="listbox"][aria-expanded="true"]')||(j.preventDefault(),a()))};return window.addEventListener("keydown",w,!0),()=>{window.removeEventListener("keydown",w,!0)}},[r,a]);const m=o.config?.modes??[],v=[{value:"light",label:u("settings.themeLight")},{value:"dark",label:u("settings.themeDark")},{value:"auto",label:u("settings.themeAuto")}],b=Dy(Py()),S={search:u("shortcut.search"),newChat:u("shortcut.newChat"),sidebar:u("shortcut.sidebar"),close:u("shortcut.close")};return l.jsxs("div",{ref:h,className:B("absolute inset-0 z-40 flex items-start justify-center p-6 transition-opacity duration-150 motion-reduce:transition-none",r?"opacity-100":"pointer-events-none opacity-0"),"aria-hidden":!r,children:[l.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:"absolute inset-0 bg-scrim",onClick:a}),l.jsxs("div",{part:"settings",role:"dialog","aria-modal":"true","aria-label":u("settings"),className:B("relative flex max-h-full w-full max-w-[520px] flex-col overflow-hidden rounded-aid-field border bg-background shadow-panel transition-transform duration-200 motion-reduce:transition-none",r?"translate-y-0":"translate-y-2"),children:[l.jsxs("header",{className:"flex shrink-0 items-center justify-between pb-2.5 pl-[18px] pr-3 pt-3.5",children:[l.jsx("h2",{className:"text-lg font-semibold",children:u("settings")}),l.jsx(me,{"data-autofocus":!0,variant:"ghost",size:"icon","aria-label":u("close"),onClick:a,children:l.jsx(ca,{"aria-hidden":"true"})})]}),l.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto px-[18px] pb-[18px] pt-1",children:[l.jsx(Ho,{title:u("settings.language"),children:l.jsx(bh,{label:u("settings.language"),value:s,options:sl.map(w=>({value:w,label:Iy[w],lang:w})),onChange:w=>{f.update({lang:w})}})}),l.jsx(Ho,{title:u("settings.theme"),children:l.jsx(bh,{label:u("settings.theme"),value:f.scheme,options:v,onChange:w=>{f.update({scheme:w})}})}),m.length>0?l.jsx(Ho,{title:u("settings.model"),hint:u("settings.modelHint"),children:l.jsx(mh,{modes:m,health:o.health,value:o.mode,onChange:p,lang:s,label:u("settings.model")})}):null,l.jsx(Ho,{title:u("settings.shortcuts"),children:l.jsx("div",{className:"flex flex-col",children:Ly.map(w=>l.jsxs("div",{className:"flex items-center justify-between py-1 text-xs",children:[l.jsx("span",{children:S[w]}),l.jsx("span",{className:"flex gap-[3px]",children:b[w].map(j=>l.jsx(Ty,{children:j},j))})]},w))})})]})]})]})},Oy={muted:"rounded-[10px] border bg-muted px-3 py-2",blocked:"rounded-[10px] border border-processing/25 bg-processing-background px-3 py-2",overloaded:"rounded-[10px] border border-warning/40 bg-warning-background px-3 py-2",hint:"px-1 pb-2 text-warn-text"},Xo=({tone:r,icon:a,children:o,role:s="status",part:u,state:p})=>l.jsxs("div",{part:u,role:s,"data-tone":r,"data-state":p,className:B("mb-2 flex items-center gap-2.5 text-xs leading-snug",Oy[r]),children:[l.jsx("span",{className:"flex shrink-0",children:a}),l.jsx("span",{className:"min-w-0 flex-1",children:o})]}),xh=({children:r,onDismiss:a,dismissLabel:o,part:s})=>l.jsxs("div",{part:s,role:"alert",className:"mb-2 flex items-center gap-2.5 rounded-[10px] border border-error/30 bg-error-background py-2 pl-3 pr-2 text-xs leading-snug text-[hsl(var(--foreground))]",children:[l.jsx(Pr,{className:"shrink-0 text-destructive","aria-hidden":"true"}),l.jsx("span",{className:"min-w-0 flex-1",children:r}),l.jsx(me,{variant:"ghost",size:"xs",onClick:a,children:o})]}),$y=r=>new Intl.DateTimeFormat(r,{hour:"2-digit",minute:"2-digit"}),Fy=()=>{const{state:r,lang:a,t:o}=G(),{remaining:s,daily:u,blocked:p,resetAt:f,overloaded:h}=r.limit;if(h&&r.config)return l.jsx(Xo,{tone:"overloaded",part:"limit-banner",state:"overloaded",icon:l.jsx(Vo,{"aria-hidden":"true"}),children:o("overloaded")});if(p){const m=f?new Date(f):null,v=m&&!Number.isNaN(m.getTime())?o("limit.until",{time:$y(a).format(m)}):o("limit.exhausted");return l.jsx(Xo,{tone:"blocked",part:"limit-banner",state:"blocked",icon:l.jsx(kl,{"aria-hidden":"true"}),children:v})}return s===null||u===null||s>3?null:l.jsx(Xo,{tone:"muted",part:"limit-banner",state:"low",icon:l.jsx(ff,{"aria-hidden":"true"}),children:o("limit.remaining",{count:s,limit:u})})},Uy=()=>{const{state:r,lang:a,t:o,dismissNotice:s}=G(),{notice:u}=r;if(!u)return null;const p=u.kind==="error"?ml(a,u.reason):o(u.key);return l.jsx(xh,{part:"notice",onDismiss:s,dismissLabel:o("dismiss"),children:p})},Ql=({value:r,onChange:a,onSubmit:o,maxHeight:s=L1,className:u,onKeyDown:p,...f})=>{const h=x.useRef(null),m=x.useCallback(()=>{const b=h.current;b&&(b.style.height="auto",b.style.height=`${Math.min(b.scrollHeight,s)}px`,b.style.overflowY=b.scrollHeight>s?"auto":"hidden")},[s]);x.useLayoutEffect(m,[r,m]),x.useEffect(()=>{const b=h.current;if(!b||typeof ResizeObserver>"u")return;let S=b.clientWidth;const w=new ResizeObserver(()=>{b.clientWidth!==S&&(S=b.clientWidth,m())});return w.observe(b),()=>{w.disconnect()}},[m]);const v=b=>{p?.(b),!(b.defaultPrevented||!o)&&b.key==="Enter"&&!b.shiftKey&&!b.nativeEvent.isComposing&&(b.preventDefault(),o())};return l.jsx("textarea",{ref:h,rows:1,value:r,onChange:b=>{a(b.target.value)},onKeyDown:v,className:B("block w-full resize-none bg-transparent text-foreground outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-60",u),...f})},qy=({file:r,onRemove:a})=>{const{lang:o,t:s}=G();return l.jsxs("div",{part:"composer-file",className:"flex w-fit max-w-full items-center gap-2.5 self-start rounded-xl border bg-muted p-1.5",children:[l.jsx($l,{ext:Ol(r.name)}),l.jsxs("span",{className:"flex min-w-0 flex-col",children:[l.jsx("span",{className:"max-w-[420px] truncate text-[13px] font-medium leading-tight max-sm:max-w-[190px]",title:r.name,children:r.name}),l.jsx("span",{className:"text-2xs leading-tight text-muted-foreground",children:Fl(r.size,o)})]}),l.jsx(me,{variant:"ghost",size:"icon",className:"size-7 shrink-0","aria-label":s("removeFile"),onClick:a,children:l.jsx(ca,{"aria-hidden":"true"})})]})},Vy=({children:r,text:a,id:o})=>l.jsxs("span",{className:"group/attach inline-flex",children:[r,l.jsx("span",{id:o,role:"tooltip",className:"pointer-events-none absolute bottom-[3.2rem] left-4 z-10 hidden w-max max-w-[calc(100%-2rem)] rounded-md bg-foreground px-2 py-1 text-2xs font-medium leading-snug text-background shadow-pop group-focus-within/attach:block group-hover/attach:block",children:a})]}),By=({message:r,onDismiss:a})=>{const{t:o}=G();return r===null?null:l.jsx(xh,{part:"notice",dismissLabel:o("dismiss"),onDismiss:a,children:r})},Wy=.9,Hy=(r,a)=>r>a?"over":r===a?"limit":r>=a*Wy?"near":"hidden",vh=({count:r,max:a,id:o,part:s,className:u})=>{const{t:p}=G(),f=Hy(r,a);return l.jsxs(l.Fragment,{children:[l.jsx("span",{id:o,part:s,className:B("shrink-0 whitespace-nowrap px-1 text-2xs tabular-nums text-muted-foreground",f==="hidden"&&"hidden",f==="limit"&&"font-semibold text-warn-text",f==="over"&&"font-semibold text-destructive",u),children:p("counter",{count:r,max:a})}),l.jsx("span",{"aria-live":"polite",className:"sr-only",children:f==="limit"?p("counterLimit"):f==="over"?p("counterOver"):""})]})},Xy=()=>{const{state:r,t:a}=G(),{config:o}=r;if(!o)return null;const s=o.modes.find(p=>p.slug===r.mode),u=o.modes.length===0?a("modes.none"):s&&ma(r.health[s.slug])==="unavailable"?a("modeUnavailable"):null;return u===null?null:l.jsx(Xo,{tone:"hint",part:"composer-hint",icon:l.jsx(Vo,{"aria-hidden":"true"}),children:u})},Ky=500,Qy=(r=!0)=>{const a=G().t("placeholder"),o=vl("(prefers-reduced-motion: reduce)"),s=r&&!o,[u,p]=x.useState(0);return x.useEffect(()=>{if(!s)return;const f=window.setInterval(()=>{p(h=>h+1)},Ky);return()=>{window.clearInterval(f)}},[s]),a+".".repeat(s?u%3+1:3)},Yy=({placement:r="top"})=>{const{state:a,lang:o,t:s,selectMode:u}=G(),p=a.config?.modes??[],f=p.find(h=>h.slug===a.mode);if(!f)return null;if(p.length<2){const h=ma(a.health[f.slug]),m=aa(f.title,o)||f.slug,v=h==="unknown"?"":s(`health.${h}`),b=`${s("modeLabel")}: ${m}${v?`, ${v}`:""}`;return l.jsxs("div",{part:"mode-select",role:"group","aria-label":b,className:hh,children:[l.jsx(Wl,{name:f.icon}),l.jsx("span",{className:"min-w-0 truncate",children:m}),l.jsx(Hl,{level:h,lang:o})]})}return l.jsx(mh,{variant:"pill",placement:r,modes:p,health:a.health,value:a.mode,onChange:u,lang:o,label:s("modeLabel")})},yh="{name}",Zy=(r,a)=>{const[o="",s=""]=r.split(yh);return l.jsxs(l.Fragment,{children:[o,a,s]})},wh=x.forwardRef(({onDraftChange:r},a)=>{const{state:o,lang:s,path:u,t:p,send:f,stop:h}=G(),[m,v]=x.useState(""),b=Qy(m===""),S=x.useRef(null),w=x.useId(),j=x.useRef(!1),_=x.useId();x.useImperativeHandle(a,()=>({setText:V=>{v(V),setTimeout(()=>S.current?.querySelector("textarea")?.focus(),0)}}));const E=m.trim()!=="";x.useEffect(()=>{r?.(E)},[E,r]);const[M,F]=x.useState(null),[Z,oe]=x.useState(null),J=x.useRef(null),{config:ne,turn:$,limit:X}=o,K=ne?.modes.find(V=>V.slug===o.mode),he=ne?.max_query_chars??Tp,ee=K?ma(o.health[K.slug])==="unavailable":!1,ue=!!(ne?.site.allow_files&&K?.allow_files),W=$!==null,Q=$?.stopping===!0,be=!ne||X.blocked||o.loadingThread!==null,Ne=m.trim(),ve=m.length>he,ye=!be&&!W&&!ee&&!!K&&Ne.length>0&&!ve;x.useEffect(()=>{if(W)return;const V=S.current?.getRootNode(),pe=V instanceof ShadowRoot||V instanceof Document?V.activeElement:null,fe=pe===null||pe===document.body;(j.current||fe)&&S.current?.querySelector("textarea")?.focus({preventScroll:!0}),j.current=!1},[W]);const U=()=>{if(!ye||!K)return;const V=Ne,pe=M,fe=xx(u,V,new Date);v(""),F(null),f({query:V,mode:K.slug,...pe?{file:pe}:{},...fe?{clarification:fe}:{}}).then(Se=>{Se==="rejected"&&(v(ke=>ke||V),F(ke=>ke??pe))})},D=V=>{if(oe(null),!(!V||!K)){if(!Pf.split(",").includes(`.${Ol(V.name)}`)){oe(p("fileType",{name:V.name}));return}if(V.size>K.max_file_mb*1024*1024){oe(p("fileTooLarge",{name:V.name,size:K.max_file_mb}));return}F(V)}},I=ne?.answer_source,k=I?.[s]??I?.ru??Object.values(I??{})[0],L=fn(k?.url),H=L?l.jsxs("a",{href:L,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-primary-text hover:underline",children:[k?.name,l.jsx(Sl,{className:"size-3","aria-hidden":"true"})]}):k?.name;return l.jsxs("div",{part:"composer",className:"flex w-full shrink-0 flex-col",children:[l.jsx(Xy,{}),l.jsx(By,{message:Z,onDismiss:()=>{oe(null)}}),l.jsxs("div",{ref:S,className:B("relative flex flex-col gap-2.5 rounded-aid-field border border-input bg-background py-3 pl-4 pr-2.5 shadow-sm transition-colors motion-reduce:transition-none","focus-within:border-primary focus-within:ring-[3px] focus-within:ring-secondary",ve&&"border-destructive focus-within:border-destructive",be&&"bg-muted"),children:[M?l.jsx(qy,{file:M,onRemove:()=>{F(null)}}):null,l.jsx(Ql,{part:"input","data-autofocus":!0,value:m,onChange:v,onSubmit:U,disabled:be,placeholder:b,"aria-label":p("inputLabel"),"aria-invalid":ve||void 0,"aria-describedby":w,className:"block min-h-6 w-full pr-1.5 text-lg leading-6 disabled:text-muted-foreground disabled:opacity-100"}),l.jsxs("div",{className:"flex min-w-0 items-center gap-1.5",children:[l.jsx(Yy,{placement:"top"}),ue?l.jsxs(l.Fragment,{children:[l.jsx(Vy,{id:_,text:M?p("attachOne"):p("attachHint",{size:K?.max_file_mb??0}),children:l.jsx(me,{part:"attach",variant:"ghost",size:"icon",className:"size-8 rounded-full text-muted-foreground","aria-label":p(M?"attachOne":"attach"),"aria-describedby":_,disabled:be||W||M!==null,onClick:()=>J.current?.click(),children:l.jsx(Ev,{"aria-hidden":"true"})})}),l.jsx("input",{ref:J,type:"file",hidden:!0,accept:Pf,onChange:V=>{D(V.target.files?.[0]),V.target.value=""}})]}):null,l.jsx("span",{className:"flex-1"}),l.jsx(vh,{id:w,part:"counter",count:m.length,max:he}),W?l.jsx(me,{part:"stop",size:"icon",className:"size-9 rounded-full aria-disabled:pointer-events-none aria-disabled:opacity-50","aria-label":p(Q?"agent.stopping":"stop"),title:p(Q?"agent.stopping":"stop"),"aria-disabled":Q||void 0,onFocus:()=>{j.current=!0},onBlur:V=>{V.relatedTarget&&(j.current=!1)},onClick:()=>{Q||h()},children:l.jsx(kf,{className:"size-3.5 fill-current","aria-hidden":"true"})}):l.jsx(me,{part:"send",size:"icon",className:"size-9 rounded-full","aria-label":p("send"),title:p("send"),disabled:!ye,onClick:U,children:l.jsx(cf,{"aria-hidden":"true"})})]})]}),l.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-x-3.5 gap-y-1 pt-2 text-center text-2xs leading-snug text-muted-foreground",children:[l.jsx("p",{part:"disclaimer",className:"text-2xs",children:p("disclaimer")}),k?.name?l.jsx("p",{part:"source",className:"text-2xs",children:Zy(p("source",{name:yh}),H)}):null]})]})});wh.displayName="Composer";const Jy=({composerRef:r,onDraftChange:a})=>{const{state:o}=G();return l.jsxs("div",{className:"mx-auto w-full max-w-[844px] shrink-0 px-3 pb-2.5",children:[l.jsx(Fy,{}),l.jsx(Uy,{}),o.config&&!o.configError?l.jsx(wh,{ref:r,onDraftChange:a}):null]})},kh={receipt:Pv,landmark:cv,map:fv,"trending-up":Yv,scale:Tv,users:Jv,"file-chart":ev,"alert-triangle":Vo},Gy=({name:r})=>{const a=(Object.hasOwn(kh,r)?kh[r]:void 0)??Cl;return l.jsx(a,{className:"size-4 shrink-0 text-primary","aria-hidden":"true"})},ew=10,jh=(r,a)=>r?.[a]??r?.ru??Object.values(r??{})[0],tw=({children:r,id:a})=>l.jsx("h2",{id:a,className:"m-0 px-0.5 text-2xs font-semibold text-muted-foreground",children:r}),rw=({example:r,onPick:a,sub:o})=>l.jsx("li",{className:"min-w-0",children:l.jsxs("button",{part:"example",type:"button",title:r.title,onClick:()=>{a(r.prompt)},className:B("flex w-full items-center gap-2.5 rounded-lg border bg-background px-3 py-2 text-left leading-snug text-foreground transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",o?"min-h-9 border-dashed text-[13px]":"min-h-10 text-sm"),children:[l.jsx("span",{className:"min-w-0 flex-1",children:r.prompt}),l.jsx(Px,{className:"text-muted-foreground","aria-hidden":"true"})]})}),nw=r=>`${r.title}-${r.prompt}`,aw=({onPick:r})=>{const{state:a,lang:o,t:s}=G(),u=x.useId(),[p,f]=x.useState(null),h=jh(a.config?.prompt_examples,o)??[],m=(jh(a.config?.prompt_categories,o)??[]).filter(S=>h.some(w=>w.category===S.key));if(h.length===0||m.length===0)return null;const v=m.find(S=>S.key===p),b=v?h.filter(S=>S.category===v.key).slice(0,ew):[];return l.jsxs("div",{className:"flex flex-col gap-5",children:[l.jsxs("section",{className:"flex flex-col gap-1.5",children:[l.jsx(tw,{id:u,children:s("examples.whatCanDo")}),l.jsx("div",{role:"group","aria-labelledby":u,className:"flex flex-col gap-1.5",children:m.map(S=>{const w=S.key===v?.key,j=w?dn:qo;return l.jsxs(x.Fragment,{children:[l.jsxs("button",{part:"category",type:"button","aria-expanded":w,onClick:()=>{f(w?null:S.key)},className:B("flex min-h-11 w-full items-center gap-2.5 rounded-lg border bg-background px-2.5 py-1.5 text-left text-sm font-medium text-foreground transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",w&&"border-primary"),children:[l.jsx("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-lg bg-secondary",children:l.jsx(Gy,{name:S.icon})}),l.jsx("span",{className:"min-w-0 flex-1 truncate",children:S.title}),l.jsx(j,{className:"text-muted-foreground","aria-hidden":"true"})]}),w&&b.length>0?l.jsx("ul",{"aria-label":S.title,className:"m-0 flex w-full list-none flex-col gap-1.5 pb-1.5 pl-[18px] pt-0.5",children:b.map(_=>l.jsx(rw,{example:_,onPick:r,sub:!0},nw(_)))}):null]},S.key)})})]}),null]})},ow=({wide:r,onPick:a})=>{const{state:o,lang:s,t:u}=G(),p=aa(o.config?.site.welcome,s),f=p?p.split(`
|
|
18
|
+
`).filter(h=>h.trim()!==""):[];return l.jsxs("div",{part:"empty",className:B("mx-auto flex w-full max-w-[640px] flex-col gap-5 px-4 pb-3",r?"pt-14":"pt-7"),children:[l.jsxs("div",{className:"flex flex-col items-center gap-2.5 text-center",children:[l.jsx("div",{part:"avatar",children:l.jsx(Yp,{size:56})}),f.length>0?l.jsx("div",{part:"welcome",className:"flex max-w-[340px] flex-col gap-1 text-[15px] leading-normal",children:f.map((h,m)=>l.jsx("p",{className:B(m===0&&"text-xl font-semibold"),children:h},`${m}-${h}`))}):l.jsx("h2",{className:"m-0 text-2xl font-semibold tracking-tight",children:u("greeting")})]}),l.jsx(aw,{onPick:a})]})},Sh=()=>{const{t:r}=G();return a=>{const o=`steps.${a.node}`;return r(ll(o)?o:"steps.unknown")}},Ch=r=>{const a=r?.trim();return a===""?void 0:a},Yl=r=>Ch(r.detail),iw=r=>Ch(r.result),sw={router:"router",understand:"router",responder:"responder",answer:"responder",search_law:"law",data:"data",run_query:"data",executor:"executor",run_sql:"executor",lookup_taxpayer:"taxpayer",find_taxpayer:"findCompany",think:"think"},lw=6e3,cw=4e3,dw=2500,Nh=r=>`${r.id??r.node}#${r.attempt}`,Eh=(r,a)=>{const o=[];for(let s=1;a(`waiting.${r}.${s}`);s+=1)o.push(`waiting.${r}.${s}`);return o},uw=(r,a)=>{const{t:o}=G(),s=r==null?"":Nh(r),[u,p]=x.useState({key:"",tick:-1});x.useEffect(()=>{if(!a||s==="")return;let b;const S=setTimeout(()=>{p({key:s,tick:0}),b=setInterval(()=>{p(w=>({key:s,tick:w.key===s?w.tick+1:0}))},cw)},lw);return()=>{clearTimeout(S),b!==void 0&&clearInterval(b)}},[s,a]);const f=a&&u.key===s?u.tick:-1;if(f<0||r==null)return null;const h=Eh(sw[r.node]??"unknown",ll),m=h.length>0?h:Eh("unknown",ll),v=m[f%m.length];return v?o(v):null},pw=(r,a)=>{const o=r.map(Nh).join("|"),s=a&&r.length>1,[u,p]=x.useState({key:"",index:0});x.useEffect(()=>{if(!s)return;const h=setInterval(()=>{p(m=>({key:o,index:m.key===o?m.index+1:1}))},dw);return()=>{clearInterval(h)}},[o,s]);const f=s&&u.key===o?u.index%r.length:0;return r[f]},Zl=({step:r,position:a})=>{const{t:o}=G(),s=Sh();return l.jsxs(l.Fragment,{children:[s(r),Yl(r)!=null?l.jsxs("span",{className:"text-muted-foreground/70",children:[" \xB7 ",Yl(r)]}):null,a!=null&&r.total!=null?l.jsxs("span",{className:"text-muted-foreground/70",children:[" \xB7 ",o("steps.counter",{done:a,total:r.total})]}):null,r.attempt>1?l.jsxs("span",{className:"text-muted-foreground/70",children:[" \xB7 ",o("agent.attempt",{count:r.attempt})]}):null]})},_h=()=>l.jsx(Lr,{className:"size-3 shrink-0 animate-spin text-primary motion-reduce:animate-none","aria-hidden":"true","data-testid":"step-spinner"}),fw=({steps:r,status:a,stopping:o})=>{const{t:s}=G(),u=r.filter(m=>m.status==="running"),p=a==="streaming"&&!o,f=pw(u,p),h=uw(f,p&&u.length===1&&f!=null&&Yl(f)==null);return a==="streaming"?l.jsxs(l.Fragment,{children:[l.jsx(_h,{}),l.jsx("span",{className:"min-w-0 truncate font-medium text-foreground",children:o?s("agent.stopping"):f==null?s("agent.thinking"):h!=null?l.jsxs(l.Fragment,{children:[l.jsx("span",{"aria-hidden":"true",children:h}),l.jsx("span",{className:"sr-only",children:l.jsx(Zl,{step:f,position:r.indexOf(f)+1})})]}):l.jsx(Zl,{step:f,position:r.indexOf(f)+1})})]}):a==="stopped"?l.jsxs(l.Fragment,{children:[l.jsx(kf,{className:"size-3.5 shrink-0","aria-hidden":"true"}),l.jsx("span",{className:"min-w-0 truncate font-medium text-foreground",children:s("agent.stopped")})]}):a==="error"?l.jsxs(l.Fragment,{children:[l.jsx(uf,{className:"size-3.5 shrink-0 text-destructive","aria-hidden":"true"}),l.jsx("span",{className:"min-w-0 truncate font-medium text-foreground",children:s("agent.interrupted")})]}):l.jsxs(l.Fragment,{children:[l.jsx(Mr,{className:"size-3.5 shrink-0 text-mode-idle","aria-hidden":"true"}),l.jsx("span",{className:"min-w-0 truncate font-medium text-foreground",children:s("agent.done")})]})},hw=({steps:r,status:a,stopping:o})=>{const{t:s}=G(),u=Sh();if(a==="streaming"){if(o)return s("agent.stopping");const p=r.find(f=>f.status==="running");return p?u(p):s("agent.thinking")}return s(a==="stopped"?"agent.stopped":a==="error"?"agent.interrupted":"agent.done")},zh="inline-flex min-h-[30px] max-w-full items-center gap-2 self-start rounded-full border bg-background py-1 pl-2 pr-2.5 text-left text-[13px] text-muted-foreground",gw=x.memo(function(r){const{t:a}=G(),[o,s]=x.useState(!1),{steps:u,status:p}=r,f=p==="streaming",h=hw(r),m=l.jsx(l.Fragment,{children:l.jsx(fw,{...r})});return l.jsxs("div",{part:"steps",className:"flex flex-col gap-2 text-[13px] text-muted-foreground",children:[u.length>0?l.jsxs("button",{type:"button","aria-expanded":o,"aria-label":`${a(o?"agent.hideSteps":"agent.showSteps")}: ${h}`,onClick:()=>{s(!o)},className:B(zh,"hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",f&&"border-primary-35"),children:[m,o?l.jsx(dn,{className:"size-3.5 shrink-0 rotate-180","aria-hidden":"true"}):l.jsx(dn,{className:"size-3.5 shrink-0","aria-hidden":"true"})]}):l.jsx("div",{className:B(zh,f&&"border-primary-35"),role:"status",children:m}),o&&u.length>0?l.jsx("ol",{"aria-label":a("agent.steps"),className:"m-0 flex list-none flex-col self-stretch rounded-xl border bg-background px-3.5 py-1.5",children:u.map((v,b)=>{const S=v.status==="running",w=S&&!f,j=iw(v);return l.jsxs("li",{className:"flex min-h-[34px] items-center gap-2.5 border-b border-dashed last:border-b-0",children:[l.jsx("span",{className:"flex w-[18px] shrink-0 justify-center",children:S&&f?l.jsx(_h,{}):w?l.jsx(uf,{className:"size-3.5","aria-hidden":"true"}):l.jsx(Mr,{className:"size-3.5 text-mode-idle","aria-hidden":"true"})}),l.jsxs("span",{className:B("min-w-0 flex-1 break-words py-1",w?"text-muted-foreground":"text-foreground"),children:[l.jsx(Zl,{step:v}),j!=null?l.jsxs("span",{className:"text-muted-foreground/70",children:[" \u2014 ",j]}):null]}),w?l.jsx("span",{className:"shrink-0 whitespace-nowrap",children:a("agent.unfinished")}):null]},v.id??`${v.node}-${b}`)})}):null]})}),mw=(r,a)=>{const o=(r.split(/[?#]/)[0]??"").split("/").filter(Boolean).pop();if(!o||/^[0-9a-f-]{36}$/i.test(o))return a;try{return decodeURIComponent(o)}catch{return o}},bw=r=>{try{return new URL(r,window.location.href).host}catch{return null}},Rh=({url:r,name:a,className:o,children:s})=>{const{api:u}=G(),[p,f]=x.useState(!1);if(Io(r,u.apiUrl)===null){const h=fn(r);return h?l.jsx("a",{href:h,target:"_blank",rel:"noopener noreferrer",className:o,children:s}):l.jsx("span",{className:o,children:s})}return l.jsx("button",{type:"button",part:"attachment",className:B(o,p&&"opacity-70"),disabled:p,onClick:()=>{f(!0),u.attachment(r).then(h=>{A1(h,a)}).catch(()=>{}).finally(()=>{f(!1)})},children:s})},Mh=({attachment:r})=>{const{api:a,lang:o,t:s}=G(),u=Lf(r.name||mw(r.url,"file")),p=r.url&&Io(r.url,a.apiUrl)===null?bw(r.url):null,f="inline-flex max-w-full items-center gap-2.5 rounded-xl border bg-muted p-1.5 text-left text-foreground",h=l.jsxs(l.Fragment,{children:[l.jsx($l,{ext:Ol(u)}),l.jsxs("span",{className:"flex min-w-0 flex-col",children:[l.jsx("span",{className:"truncate text-[13px] font-medium leading-tight",children:u}),l.jsxs("span",{className:"flex items-center gap-1.5 text-2xs leading-tight text-muted-foreground",children:[p??(r.size?Fl(r.size,o):null),r.url?null:l.jsxs(l.Fragment,{children:[r.size?l.jsx("span",{"aria-hidden":"true",children:"\xB7"}):null,l.jsx("span",{children:s("attachment.sending")}),l.jsx(Lr,{className:"size-3 animate-spin motion-reduce:animate-none","aria-hidden":"true"})]})]})]}),r.url&&p?l.jsx(Sl,{className:"mr-1 size-4 shrink-0 text-muted-foreground","aria-hidden":"true"}):r.url?l.jsx(pf,{className:"mr-1 size-4 shrink-0 text-muted-foreground","aria-hidden":"true"}):null]});return r.url?l.jsxs(Rh,{url:r.url,name:u,className:B(f,"transition-colors hover:bg-accent"),children:[p?null:l.jsxs("span",{className:"sr-only",children:[s("download"),": "]}),h]}):l.jsx("span",{className:f,children:h})},xw=({url:r,alt:a})=>{const{api:o}=G(),[s,u]=x.useState(null),[p,f]=x.useState(!1);return x.useEffect(()=>{let h=null,m=!1;return o.attachment(r).then(v=>{m?URL.revokeObjectURL(v):(h=v,u(v))},()=>{m||f(!0)}),()=>{m=!0,h&&URL.revokeObjectURL(h)}},[o,r]),p?l.jsx("span",{className:"text-muted-foreground",children:a||r}):s?l.jsx("img",{src:s,alt:a,className:"max-w-full rounded-lg"}):l.jsx(Lr,{className:"size-4 animate-spin text-muted-foreground","aria-label":a})},vw=8,Jl=({children:r})=>l.jsx("div",{className:"text-2xs text-muted-foreground",children:r}),yw=({block:r,onAsk:a})=>{const{lang:o,t:s}=G(),u=Array.isArray(r.sections)?r.sections:[],p=(Array.isArray(r.indicators)?r.indicators:[]).slice(0,vw),f=Math.max(0,r.total-p.length),h=Array.isArray(r.examples)?r.examples.filter(m=>typeof m=="string"&&m):[];return l.jsxs("section",{part:"catalog",className:"flex min-w-0 flex-col rounded-xl border bg-card",children:[r.topic?l.jsxs("h3",{className:"m-0 flex items-center gap-2 border-b px-3.5 py-2.5 text-sm font-semibold",children:[l.jsx(Uo,{className:"shrink-0 text-muted-foreground","aria-hidden":"true"}),s("blocks.catalogTitle",{topic:r.topic})]}):null,l.jsxs("div",{className:"flex flex-col gap-2.5 px-3.5 py-3",children:[u.length>0?l.jsxs("div",{children:[l.jsx(Jl,{children:s("blocks.catalogSections")}),l.jsx("ul",{className:"m-0 list-none p-0",children:u.map(m=>l.jsxs("li",{className:"flex items-center gap-2 border-b py-[7px] text-[13px] last:border-b-0",children:[l.jsx(qo,{className:"shrink-0 text-muted-foreground","aria-hidden":"true"}),l.jsx("span",{className:"min-w-0 flex-1 leading-snug",children:m.path.join(" \u203A ")}),l.jsx("span",{className:"whitespace-nowrap tabular-nums text-muted-foreground",children:_t(m.count,o)})]},m.id))})]}):null,p.length>0?l.jsxs("div",{children:[l.jsx(Jl,{children:s("blocks.catalogIndicators")}),l.jsx("ul",{className:"m-0 list-none p-0",children:p.map(m=>l.jsxs("li",{className:"flex flex-col border-b py-1.5 last:border-b-0",children:[l.jsx("span",{className:"text-[13px] font-medium leading-snug",children:m.name}),m.unit||m.years?l.jsx("span",{className:"text-2xs text-muted-foreground",children:[yl(m.unit),yl(m.years)].filter(Boolean).join(" \xB7 ")}):null]},m.entity_id))}),f>0?l.jsx("p",{className:"m-0 pt-1 text-[13px] text-muted-foreground",children:s("blocks.catalogMore",{count:_t(f,o)})}):null]}):null,h.length>0?l.jsxs("div",{className:"flex flex-col gap-1.5",children:[l.jsx(Jl,{children:s("blocks.catalogExamples")}),h.map(m=>l.jsxs("button",{type:"button",className:"flex w-full items-center gap-2.5 rounded-[10px] border bg-background px-2.5 py-2 text-left text-[13px] leading-snug transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",onClick:()=>{a(m)},children:[l.jsx(mv,{className:"shrink-0 text-primary","aria-hidden":"true"}),l.jsx("span",{className:"min-w-0 flex-1",children:m})]},m)),l.jsx("div",{className:"text-2xs text-muted-foreground",children:s("blocks.catalogSendHint")})]}):null]})]})},Ko=({rootRef:r,question:a,tone:o,children:s})=>{const{t:u}=G();return l.jsxs("section",{part:"clarification",ref:r,role:"group","aria-label":u("blocks.clarification"),"data-state":o,className:B("overflow-hidden rounded-[14px] border",o==="open"&&"border-primary-30 bg-card",o==="done"&&"bg-card",o==="expired"&&"bg-muted"),children:[l.jsx("div",{className:"flex items-center gap-2 px-3.5 pb-1 pt-3",children:l.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-secondary px-2 py-0.5 text-2xs font-medium text-secondary-foreground",children:[l.jsx(mf,{className:"size-3","aria-hidden":"true"}),u("blocks.clarification")]})}),l.jsx("p",{className:"m-0 px-3.5 pb-2.5 text-[15px] font-medium leading-snug",children:a}),s]})},Ph=({children:r})=>l.jsx("kbd",{className:"inline-flex h-4 min-w-4 items-center justify-center rounded border border-current/40 px-1 font-sans text-2xs leading-none opacity-80",children:r}),Gl=({children:r})=>l.jsx("div",{className:"flex items-center gap-2 border-t px-3.5 py-2.5 text-[13px] text-muted-foreground",children:r}),ww=2**31-1,kw=(r,a)=>{const[o,s]=x.useState(()=>new Date);return x.useEffect(()=>{if(!a)return;const u=Date.parse(r)-Date.now();if(!(u>0))return;const p=window.setTimeout(()=>{s(new Date)},Math.min(u+50,ww));return()=>{window.clearTimeout(p)}},[r,a]),o},jw=({block:r,isLastInBranch:a,question:o,reply:s,disabled:u,onAsk:p})=>{const{t:f}=G(),h=x.useRef(null),m=kw(r.expires_at,a),v=vp(r,{isLastInBranch:a,now:m}),[b,S]=x.useState(""),w=x.useRef(!1),[j,_]=x.useState(!1),E=r.options,M=u||j,F=(Q,be=Q.label)=>{if(w.current||u)return;w.current=!0,_(!0);const Ne=p(be,{clarification_id:r.id,slot:r.slot,value:Q.value,free_text:null});Promise.resolve(Ne).then(ve=>{ve===!1&&(w.current=!1,_(!1))})},Z=x.useRef(F);x.useEffect(()=>{Z.current=F});const oe=r.type==="plan_confirm",J=E.find(Q=>Q.value===r.default)??E[0],ne=E.find(Q=>Q!==J),$=oe?[...J?[{option:J,text:f("blocks.continue")}]:[],...ne?[{option:ne,text:f("blocks.cancelPlan")}]:[]]:E.slice(0,hx).map(Q=>({option:Q,text:Q.label})),X=x.useRef($);x.useEffect(()=>{X.current=$});const K=v==="open"&&!M,he=$.length;x.useEffect(()=>{if(!K||he===0)return;const Q=h.current?.getRootNode();if(!Q)return;const be=Ne=>{const ve=Ne;if(ve.defaultPrevented||ve.ctrlKey||ve.metaKey||ve.altKey||ve.repeat||vx(ve.composedPath()[0]))return;const ye=Number(ve.key),U=Number.isInteger(ye)&&ye>=1?X.current[ye-1]:void 0;U&&(ve.preventDefault(),Z.current(U.option,U.text))};return Q.addEventListener("keydown",be),()=>{Q.removeEventListener("keydown",be)}},[K,he]);const ee=v==="answered"&&o!==""&&s===o;if(v==="answered"&&!ee)return l.jsx(Ko,{rootRef:h,question:r.question,tone:"done",children:s?l.jsxs(Gl,{children:[l.jsx(Mr,{className:"shrink-0","aria-hidden":"true"}),l.jsx("span",{className:"min-w-0 flex-1",children:f("blocks.chosen",{label:s})})]}):null});if(v==="expired"||ee)return l.jsx(Ko,{rootRef:h,question:r.question,tone:"expired",children:l.jsxs(Gl,{children:[l.jsx(kl,{className:"shrink-0","aria-hidden":"true"}),l.jsx("span",{className:"min-w-0 flex-1",children:f("blocks.expired")}),o&&!ee?l.jsxs(me,{variant:"input",size:"sm",className:"gap-1.5",disabled:u,onClick:()=>{p(o)},children:[l.jsx(wf,{"aria-hidden":"true"}),f("blocks.askAgain")]}):null]})});if(oe){const[Q,be]=$;return l.jsx(Ko,{rootRef:h,question:r.question,tone:"open",children:l.jsxs("div",{className:"flex flex-wrap gap-2 px-2.5 pb-2.5",children:[Q?l.jsxs(me,{size:"sm",disabled:M,onClick:()=>{F(Q.option,Q.text)},children:[l.jsx(Ph,{children:"1"}),Q.text]}):null,be?l.jsxs(me,{variant:"input",size:"sm",disabled:M,onClick:()=>{F(be.option,be.text)},children:[l.jsx(Ph,{children:"2"}),be.text]}):null]})})}const ue=E.length>=fx,W=ue?Sb(E,b):E;return l.jsxs(Ko,{rootRef:h,question:r.question,tone:"open",children:[l.jsxs("div",{className:"flex flex-col gap-1.5 px-2.5 pb-2.5",children:[ue?l.jsxs("label",{className:"flex h-8 items-center gap-2 rounded-md border border-input bg-background px-2.5 text-sm focus-within:border-primary focus-within:ring-[3px] focus-within:ring-secondary",children:[l.jsx(la,{className:"shrink-0 text-muted-foreground","aria-hidden":"true"}),l.jsx("input",{type:"search",value:b,placeholder:f("blocks.findOption"),"aria-label":f("blocks.findOption"),className:"min-w-0 flex-1 bg-transparent outline-none placeholder:text-muted-foreground",onChange:Q=>{S(Q.target.value)}})]}):null,W.length>0?l.jsx("ul",{"aria-label":f("blocks.options"),className:"m-0 flex list-none flex-col gap-1.5 p-0",children:W.map(Q=>{const be=E.indexOf(Q)+1;return l.jsx("li",{children:l.jsxs("button",{type:"button",disabled:M,className:B("flex w-full items-start gap-3 rounded-[10px] border bg-background px-3 py-[9px] text-left transition-colors motion-reduce:transition-none","hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:bg-muted disabled:text-disabled-foreground"),onClick:()=>{F(Q)},children:[l.jsx("span",{className:"mt-px flex h-[22px] min-w-[22px] shrink-0 items-center justify-center rounded-md border text-2xs font-semibold tabular-nums text-muted-foreground",children:be}),l.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[l.jsxs("span",{className:"text-sm font-medium leading-snug",children:[Q.label,Q.value===r.default?l.jsx("span",{className:"ml-1.5 whitespace-nowrap rounded-full bg-muted px-1.5 py-px text-2xs font-normal text-muted-foreground",children:f("blocks.default")}):null]}),Q.hint?l.jsx("span",{className:"text-[13px] leading-snug text-muted-foreground",children:Q.hint}):null]})]})},Q.value)})}):l.jsx("p",{className:"px-1 py-2 text-sm text-muted-foreground",children:f("searchEmpty")})]}),r.allow_free_text?l.jsxs(Gl,{children:[l.jsx(mf,{className:"shrink-0","aria-hidden":"true"}),l.jsx("span",{className:"min-w-0 flex-1",children:f("blocks.freeTextHint")})]}):null]})},Sw=10,Cw=({section:r})=>{const{t:a}=G(),o=r.latest_period,s=r.shape==="trend",u=s?[]:fa(r,{period:o,mode:"value",base:"median"}),p=u.slice(0,Sw);return l.jsxs("div",{part:"dashboard-preview",className:"flex min-w-0 flex-col gap-3 rounded-xl bg-[hsl(var(--chart-card))] px-4 py-3.5",children:[l.jsxs("div",{className:"min-w-0",children:[l.jsx("p",{className:"text-sm font-semibold leading-snug",children:r.title}),s?null:l.jsxs("p",{className:"text-2xs text-muted-foreground",children:[o,", ",r.unit.label]})]}),l.jsx(Gf,{compact:!0,section:r,period:o,label:a("chart.label",{title:r.title,period:o}),rows:p,national:Zf(r,o,p.map(f=>f.value))}),u.length>p.length?l.jsx("p",{className:"text-2xs text-muted-foreground",children:a("chart.top",{n:p.length,total:u.length})}):null]})},Qo=r=>r.type==="number"||r.type==="integer",Nw=(r,a,o)=>Qo(r)?_t(yx(a),o,r.type==="integer"?0:void 0):yl(a)||"\u2014",Ew={asc:cf,desc:lf},_w=({block:r})=>{const{lang:a,t:o}=G(),[s,u]=x.useState(),[p,f]=x.useState("asc"),[h,m]=x.useState(1),[v,b]=x.useState(""),S=Array.isArray(r.columns)?r.columns:[],w=wb({...r,columns:S,data:Array.isArray(r.data)?r.data:[]},{...s?{sortKey:s,dir:p}:{},page:h,query:v}),j=S.some(E=>E.type==="string"),_=E=>{E===s?f(M=>M==="asc"?"desc":"asc"):(u(E),f("asc")),m(1)};return l.jsxs("div",{part:"data-table",className:"flex min-w-0 flex-col gap-2",children:[j?l.jsxs("label",{className:"flex h-8 items-center gap-2 rounded-md border border-input bg-background px-2.5 text-sm focus-within:border-primary focus-within:ring-[3px] focus-within:ring-secondary",children:[l.jsx(la,{className:"shrink-0 text-muted-foreground","aria-hidden":"true"}),l.jsx("input",{type:"search",value:v,placeholder:o("blocks.tableSearch"),"aria-label":o("blocks.tableSearch"),className:"min-w-0 flex-1 bg-transparent outline-none placeholder:text-muted-foreground",onChange:E=>{b(E.target.value),m(1)}})]}):null,l.jsxs("div",{className:"max-w-full overflow-x-auto overscroll-x-contain rounded-[10px] border bg-background",children:[l.jsxs("table",{className:"w-full border-collapse text-[13.5px]","aria-label":o("blocks.table"),children:[l.jsx("thead",{children:l.jsx("tr",{className:"border-b bg-muted",children:S.map(E=>{const M=E.key===s,F=M?Ew[p]:Dx;return l.jsx("th",{scope:"col","aria-sort":M?p==="asc"?"ascending":"descending":"none",className:B("p-0 font-semibold",Qo(E)?"text-right":"text-left"),children:l.jsxs("button",{type:"button",className:B("inline-flex w-full items-center gap-1 whitespace-nowrap px-3 py-[7px] text-[13.5px] font-semibold text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",Qo(E)&&"flex-row-reverse"),onClick:()=>{_(E.key)},children:[l.jsx("span",{children:E.title}),E.unit?l.jsxs("span",{className:"font-normal",children:[", ",E.unit]}):null,l.jsx(F,{className:B("shrink-0 text-muted-foreground",!M&&"opacity-50"),"aria-hidden":"true"})]})},E.key)})})}),l.jsx("tbody",{children:w.rows.map((E,M)=>l.jsx("tr",{className:"border-b last:border-b-0",children:S.map(F=>l.jsx("td",{className:B("px-3 py-[7px] align-top",Qo(F)?"whitespace-nowrap text-right tabular-nums":"min-w-32"),children:Nw(F,E[F.key],a)},F.key))},w.from+M))})]}),w.total===0?l.jsx("p",{className:"px-3 py-3 text-center text-sm text-muted-foreground",children:o(v?"searchEmpty":"blocks.tableEmpty")}):null]}),w.pages>1?l.jsxs("div",{className:"flex items-center justify-end gap-1 text-2xs tabular-nums text-muted-foreground",children:[l.jsx(me,{variant:"ghost",size:"icon",className:"size-7",disabled:w.page<=1,"aria-label":o("blocks.prevPage"),onClick:()=>{m(w.page-1)},children:l.jsx(df,{"aria-hidden":"true"})}),l.jsx("span",{"aria-live":"polite",children:o("blocks.page",{a:w.page,b:w.pages})}),l.jsx(me,{variant:"ghost",size:"icon",className:"size-7",disabled:w.page>=w.pages,"aria-label":o("blocks.nextPage"),onClick:()=>{m(w.page+1)},children:l.jsx(qo,{"aria-hidden":"true"})})]}):null,r.truncated?l.jsx("p",{className:"text-2xs text-muted-foreground",children:o("blocks.truncated",{n:Array.isArray(r.data)?r.data.length:0})}):null]})},ec="inline-flex min-h-[30px] max-w-full items-center gap-1.5 rounded-lg bg-muted px-2.5 py-1 text-[13px]",zw=["sex","age","urban_rural","activity","item"],Rw=r=>zw.includes(r),tc=({label:r,children:a,title:o})=>l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"shrink-0 whitespace-nowrap text-muted-foreground",children:r}),l.jsx("span",{className:"min-w-0 truncate font-medium",title:o,children:a})]}),rc=({label:r,children:a,className:o})=>l.jsx("li",{className:B(ec,o),title:r,children:l.jsx(tc,{label:r,children:a})}),Mw=({block:r,question:a,onAsk:o})=>{const{t:s}=G(),[u,p]=x.useState(!1),f=x.useId(),h=r.indicators.map(S=>S.name).join(", "),m=r.territories.map(S=>S.name).join(", "),v=r.breakdown&&Rw(r.breakdown)?s(`blocks.breakdown.${r.breakdown}`):"",b=r.alternatives.length>0&&a!=="";return l.jsxs("div",{part:"plan",role:"group","aria-label":s("blocks.passport"),className:"flex flex-col gap-1.5",children:[l.jsx("div",{className:"text-2xs text-muted-foreground",children:s("blocks.passport")}),l.jsxs("ul",{"aria-label":s("blocks.passport"),className:"m-0 flex list-none flex-wrap items-center gap-1.5 p-0",children:[h?b?l.jsxs("li",{className:"relative max-w-full",children:[l.jsxs("button",{type:"button",className:B(ec,"border border-border bg-background transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",u&&"border-primary ring-[3px] ring-secondary"),title:h,"aria-haspopup":"menu","aria-expanded":u,"aria-controls":f,onClick:()=>{p(S=>!S)},children:[l.jsx(tc,{label:s("blocks.indicator"),children:h}),l.jsx(dn,{className:B("shrink-0 text-muted-foreground transition-transform motion-reduce:transition-none",u&&"rotate-180"),"aria-hidden":"true"})]}),u?l.jsxs("div",{id:f,role:"menu","aria-label":s("blocks.alternatives"),className:"absolute left-0 top-full z-20 mt-1 flex min-w-[220px] max-w-[min(360px,80vw)] flex-col rounded-md border bg-background p-1 shadow-pop",children:[l.jsx("div",{className:"px-2.5 pb-1 pt-1.5 text-2xs text-muted-foreground",children:s("blocks.alternatives")}),r.alternatives.map(S=>l.jsx("button",{type:"button",role:"menuitem",className:"flex min-h-9 w-full items-center rounded-md px-2.5 py-1.5 text-left text-sm transition-colors hover:bg-accent focus-visible:bg-accent focus-visible:outline-none motion-reduce:transition-none",onClick:()=>{p(!1),o(`${a} \u2014 ${S.name}`)},children:S.name},S.id))]}):null]}):l.jsx(rc,{label:s("blocks.indicator"),children:h}):null,m?l.jsx(rc,{label:s("blocks.territory"),children:m}):null,r.period.label?l.jsxs("li",{className:B(ec,r.period.substituted&&"border border-warning/40"),title:r.period.reason??s("blocks.period"),children:[l.jsx(tc,{label:s("blocks.period"),children:r.period.label}),r.period.substituted?l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"text-muted-foreground","aria-hidden":"true",children:"\xB7"}),l.jsx("span",{className:"text-warn-text",children:s("blocks.substituted")})]}):null]}):null,v?l.jsx(rc,{label:s("blocks.breakdown"),children:v}):null]})]})},Lh="gap-1.5 text-[13px]",Dh="gap-1.5 text-[13px] text-muted-foreground hover:text-foreground",Pw=({text:r})=>{const{t:a}=G(),[o,s]=x.useState(!1),u=x.useRef(void 0);return x.useEffect(()=>()=>{window.clearTimeout(u.current)},[]),l.jsxs(me,{part:"copy",variant:"ghost",size:"sm",className:Dh,onClick:()=>{Ml(r).then(p=>{p&&(s(!0),window.clearTimeout(u.current),u.current=window.setTimeout(()=>{s(!1)},2e3))})},children:[o?l.jsx(Mr,{"aria-hidden":"true"}):l.jsx(jl,{"aria-hidden":"true"}),a(o?"copied":"copy")]})},Lw=({message:r,isLastInBranch:a,onAsk:o,children:s,dashboardOpen:u=!1,onToggleDashboard:p})=>{const{path:f,t:h}=G(),[m,v]=x.useState(!1),{blocks:b}=r,S=ur(b,"plan"),w=ur(b,"table"),j=ur(b,"catalog"),_=ur(b,"clarification"),{question:E,reply:M}=mx(f,r.id),F=r.status==="streaming",Z=S?.methodology?fn(S.methodology.url):null,oe=b.length>0&&!F?jb(r):"",J=!F&&r.status!=="error"&&Rp(r.id),ne=ur(b,"dashboard"),$=ne?.sections[0],X=J&&ne!==void 0,K=X?p:void 0,he=nf(b),ee=F?[]:gx(b);return l.jsxs(l.Fragment,{children:[S?l.jsx(Mw,{block:S,question:E,onAsk:o}):null,s,j?l.jsx(yw,{block:j,onAsk:o}):null,_?l.jsx(jw,{block:_,isLastInBranch:a,question:E,reply:M,disabled:F,onAsk:o}):null,$?l.jsx(Cw,{section:$}):null,w&&m?l.jsx(_w,{block:w}):null,ee.length>0?l.jsx(ih,{files:ee}):null,J?l.jsx(sh,{messageId:r.id,block:he}):null,b.length>0&&!F?l.jsxs("div",{part:"answer-actions",role:"group",className:"flex flex-wrap items-center gap-1.5",children:[w?l.jsxs(me,{part:"data-toggle",variant:"input",size:"sm",className:Lh,"aria-expanded":m,onClick:()=>{v(ue=>!ue)},children:[l.jsx(Wv,{"aria-hidden":"true"}),h(m?"blocks.hideData":"blocks.data")]}):null,K?l.jsxs(me,{part:"dashboard-toggle","data-message-id":r.id,variant:"input",size:"sm",className:B(Lh,u&&"border-primary bg-secondary text-secondary-foreground"),"aria-expanded":u,onClick:()=>{K(r.id)},children:[l.jsx(Fx,{"aria-hidden":"true"}),h(u?"blocks.hideDashboard":"blocks.dashboard")]}):null,X?l.jsx(th,{messageId:r.id,block:he}):null,S?.methodology&&Z?l.jsx(me,{part:"methodology",variant:"ghost",size:"sm",className:Dh,asChild:!0,children:l.jsxs("a",{href:Z,target:"_blank",rel:"noopener noreferrer",title:S.methodology.title,children:[l.jsx(Uo,{"aria-hidden":"true"}),h("blocks.methodology")]})}):null,oe?l.jsx(Pw,{text:oe}):null]}):null]})},Dw=5e4,Ih=2e5,Iw=x.lazy(()=>import("./markdown-impl-6JgYKE4m.js").then(r=>({default:r.MarkdownImpl}))),Tw=x.memo(function({children:r,streaming:a=!1,className:o}){const s=l.jsx("span",{className:"whitespace-pre-wrap",children:r.length>Ih?`${r.slice(0,Ih)}\u2026`:r});return l.jsxs("div",{part:"markdown",className:B("min-w-0 break-words text-[15px] leading-[1.65] text-foreground",o),children:[r.length>Dw?s:l.jsx(ul,{fallback:s,children:l.jsx(x.Suspense,{fallback:s,children:l.jsx(Iw,{children:r})})}),a?l.jsx("span",{"aria-hidden":"true",className:"ml-0.5 inline-block h-[17px] w-[7px] translate-y-[3px] rounded-sm bg-primary animate-pulse motion-reduce:animate-none"}):null]})}),ba="size-7 shrink-0 text-muted-foreground hover:text-foreground",Th=({messageId:r,disabled:a})=>{const{index:o,switchBranch:s,t:u}=G(),{list:p,position:f}=l0(o,r);if(p.length<2||f<0)return null;const h=p[f-1],m=p[f+1];return l.jsxs("div",{part:"branch",className:"flex items-center text-[13px] tabular-nums text-muted-foreground",role:"group","aria-label":u("branch.label"),children:[l.jsx(me,{variant:"ghost",size:"icon",className:ba,disabled:a||!h,"aria-label":u("branch.prev"),onClick:()=>{h&&s(h.id)},children:l.jsx(df,{"aria-hidden":"true"})}),l.jsxs("span",{"aria-live":"polite",className:"min-w-[30px] text-center",children:[f+1,"/",p.length]}),l.jsx(me,{variant:"ghost",size:"icon",className:ba,disabled:a||!m,"aria-label":u("branch.next"),onClick:()=>{m&&s(m.id)},children:l.jsx(qo,{"aria-hidden":"true"})})]})},Aw=({text:r})=>{const{t:a}=G(),[o,s]=x.useState(!1),u=x.useRef(void 0);x.useEffect(()=>()=>{window.clearTimeout(u.current)},[]);const p=a(o?"copied":"copy");return l.jsx(me,{part:"copy",variant:"ghost",size:"icon",className:ba,"aria-label":p,title:p,onClick:()=>{Ml(r).then(f=>{f&&(s(!0),window.clearTimeout(u.current),u.current=window.setTimeout(()=>{s(!1)},2e3))})},children:o?l.jsx(Mr,{"aria-hidden":"true"}):l.jsx(jl,{"aria-hidden":"true"})})},Ow=({message:r})=>{const{rate:a,t:o}=G(),[s,u]=x.useState(),p=r.rating??0;return l.jsx("span",{part:"rating",role:"radiogroup","aria-label":o("rateGroup"),className:"inline-flex items-center",onKeyDown:Kl,onMouseLeave:()=>{u(void 0)},children:I1.map((f,h)=>{const m=f<=p,v=!m&&p===0&&s!==void 0&&f<=s;return l.jsx("button",{type:"button",role:"radio",tabIndex:Xl(h,p-1),"aria-checked":p===f,"aria-label":o("rate",{count:f}),className:B("inline-flex size-[30px] items-center justify-center rounded-md text-muted-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",(m||v)&&"text-warning"),onMouseEnter:()=>{u(f)},onClick:()=>{a(r.id,f)},children:l.jsx(Vv,{className:B("size-4",m&&"fill-current"),"aria-hidden":"true"})},f)})})},$w=({message:r,isLast:a,busy:o,ready:s,persisted:u,canFeedback:p,feedbackOpen:f,onOpenFeedback:h})=>{const{send:m,state:v,t:b}=G(),S=r.status==="error",w=a&&s&&!o&&!v.limit.blocked;if(S&&!w)return null;const j=pa.find(M=>M===r.feedbackReason),_=r.blocks.length>0,E=()=>{m({query:"",mode:v.mode??r.mode,regenerateOf:r.id})};return l.jsxs("div",{part:"actions",role:"toolbar","aria-label":b("actionsLabel"),className:B("flex min-h-8 flex-wrap items-center gap-0.5",!S&&r.rating==null&&zl),children:[s&&!S&&r.content&&!_?l.jsx(Aw,{text:r.content}):null,w?S?l.jsxs(me,{part:"regenerate",variant:"input",size:"sm",className:"gap-1.5",onClick:E,children:[l.jsx(yf,{"aria-hidden":"true"}),b("regenerate")]}):l.jsxs(me,{part:"regenerate",variant:"ghost",size:"icon",className:B(ba,"max-sm:h-8 max-sm:w-auto max-sm:gap-1.5 max-sm:px-2.5 max-sm:text-[13px]"),"aria-label":b("regenerate"),title:b("regenerate"),onClick:E,children:[l.jsx(yf,{"aria-hidden":"true"}),l.jsx("span",{className:"hidden max-sm:inline",children:b("regenerate")})]}):null,s&&!S?l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"mx-1.5 h-[18px] w-px bg-border","aria-hidden":"true"}),l.jsx(Ow,{message:r})]}):null,l.jsx(Th,{messageId:r.id,disabled:o||!u}),p&&!f?l.jsx(me,{variant:"link",size:"sm",onClick:h,children:r.feedback||j?b("feedbackEdit"):b("feedbackOpen")}):null]})},Fw=({message:r,onClose:a})=>{const{saveFeedback:o,t:s}=G(),[u,p]=x.useState(r.feedback),[f,h]=x.useState(!1),[m,v]=x.useState(!1),[b,S]=x.useState(()=>pa.find(j=>j===r.feedbackReason)),w=()=>{h(!0),v(!1),o(r.id,u.trim(),b).then(j=>{h(!1),j?a():v(!0)})};return l.jsxs("form",{part:"feedback","aria-label":s("feedbackLabel"),onSubmit:j=>{j.preventDefault()},className:"flex flex-col gap-3 rounded-[14px] border bg-background p-3.5",children:[l.jsx("div",{className:"text-sm font-medium",children:s("feedback.reasonsLabel")}),l.jsx("div",{role:"radiogroup","aria-label":s("feedback.reasonsLabel"),className:"flex flex-wrap gap-1.5",onKeyDown:Kl,children:pa.map((j,_)=>{const E=j===b;return l.jsx("button",{type:"button",role:"radio",tabIndex:Xl(_,b?pa.indexOf(b):-1),"aria-checked":E,disabled:f,onClick:()=>{S(E?void 0:j)},className:B("inline-flex h-[30px] items-center whitespace-nowrap rounded-full border px-3 text-[13px] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60 motion-reduce:transition-none",E?"border-primary-50 bg-secondary font-medium text-secondary-foreground":"bg-background text-foreground hover:bg-muted"),children:s(`feedback.reason.${j}`)},j)})}),l.jsx(Ql,{autoFocus:!0,value:u,onChange:p,placeholder:s("feedbackPlaceholder"),"aria-label":s("feedbackLabel"),maxLength:Rl,disabled:f,className:"min-h-[76px] rounded-md border border-input bg-background px-3 py-2.5 text-[15px] leading-normal focus:border-primary focus:ring-[3px] focus:ring-secondary"}),m?l.jsxs("div",{role:"alert",className:"flex items-start gap-1.5 text-[13px] text-destructive",children:[l.jsx(Pr,{className:"mt-0.5 size-3.5 shrink-0","aria-hidden":"true"}),l.jsx("span",{children:s("ratingError")})]}):null,l.jsxs("div",{className:"flex items-center justify-end gap-2",children:[l.jsxs("span",{className:B("mr-auto text-2xs tabular-nums text-muted-foreground",u.length>=Rl&&"font-semibold text-warn-text"),children:[u.length,"/",Rl]}),l.jsx(me,{variant:"ghost",size:"sm",onClick:a,disabled:f,children:s("cancel")}),l.jsxs(me,{size:"sm",disabled:f,onClick:w,children:[f?l.jsx(Lr,{className:"size-3 animate-spin motion-reduce:animate-none","aria-hidden":"true"}):null,s("save")]})]})]})},Uw=({message:r})=>{const{t:a}=G(),o=pa.find(s=>s===r.feedbackReason);return!o&&!r.feedback?null:l.jsxs("div",{part:"feedback-saved",className:"flex flex-col gap-1 rounded-xl bg-muted px-3 py-2.5 text-sm",children:[o?l.jsx("span",{className:"font-semibold",children:a(`feedback.reason.${o}`)}):null,r.feedback?l.jsx("span",{className:"whitespace-pre-line break-words",children:r.feedback}):null]})},qw=60,Vw=3,Bw=.1,Ww=()=>typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function Hw(r,a){const o=r.charCodeAt(a-1);return o>=55296&&o<=56319?a+1:a}function Xw(r,a){const[o]=x.useState(Ww),[s,u]=x.useState(!1);a&&!s&&!o&&u(!0);const[p,f]=x.useState(r.length),h=x.useRef(p),m=x.useRef(r);return x.useLayoutEffect(()=>{m.current=r},[r]),x.useEffect(()=>{if(!s)return;h.current>r.length&&(h.current=r.length,f(r.length));let v=0,b=null;const S=w=>{const j=m.current,_=b==null?1/60:Math.min((w-b)/1e3,Bw);b=w;const E=j.length-h.current;if(E<=0)return;const M=Math.max(1,Math.round(Math.max(qw*_,E*Math.min(1,Vw*_))));h.current=Math.min(j.length,Hw(j,h.current+M)),f(h.current),v=requestAnimationFrame(S)};return v=requestAnimationFrame(S),()=>{cancelAnimationFrame(v)}},[r,s]),!s||p>=r.length?r:r.slice(0,p)}const Kw=({message:r,isLast:a,busy:o,persisted:s,dashboardOpen:u,onToggleDashboard:p})=>{const{send:f,state:h,t:m}=G(),[v,b]=x.useState(!1),S=r.status==="streaming",w=r.status==="error",j=Xw(r.content,S),_=S||j.length<r.content.length,E=Z0(S,r.status),M=!S&&s,F=M&&!w&&r.rating!=null&&r.rating<D1,Z=!w&&(S||r.steps.length>0),oe=Date.parse(r.createdAt)||0,J=E?"eureka":H0(r.status,r.content.length>0),ne=($,X)=>f({query:$,mode:h.mode??r.mode,...X?{clarification:X}:{}}).then(K=>K==="sent");return l.jsxs("article",{part:"message","data-role":"assistant","data-status":r.status,"aria-busy":S,className:"group flex items-start gap-3",children:[l.jsx("div",{part:"avatar",className:"w-10 shrink-0 max-sm:hidden",children:l.jsx(Qp,{mood:J,size:40,animated:S||E})}),l.jsxs("div",{part:w?"bubble assistant-bubble error-bubble":"bubble assistant-bubble",className:"flex min-w-0 flex-1 flex-col gap-3",children:[Z?l.jsx(gw,{steps:r.steps,status:r.status,startedAt:oe,durationMs:r.durationMs,stopping:h.turn?.stopping===!0&&h.turn.assistantId===r.id}):null,w?l.jsxs("div",{role:"alert",className:"flex items-start gap-2.5 rounded-xl border border-error/30 bg-destructive-background px-3.5 py-3 text-sm",children:[l.jsx(Pr,{className:"mt-0.5 size-4 shrink-0 text-destructive","aria-hidden":"true"}),l.jsx("span",{children:r.content||m("errors.generic")})]}):null,l.jsx(Lw,{message:r,isLastInBranch:a,onAsk:ne,dashboardOpen:u,onToggleDashboard:p,children:r.content&&!w?l.jsx(Tw,{streaming:_,children:j}):null}),r.attachments.length>0?l.jsx("div",{className:"flex flex-wrap gap-1.5",children:r.attachments.map(($,X)=>l.jsx(Mh,{attachment:$},$.id??`${$.name}-${X}`))}):null,r.status==="stopped"?l.jsxs("div",{className:"flex items-center gap-2 text-[13px] text-muted-foreground",children:[l.jsx(ff,{className:"size-4 shrink-0","aria-hidden":"true"}),l.jsx("span",{children:m("agent.answerStopped")})]}):null,S?null:l.jsx($w,{message:r,isLast:a,busy:o,ready:M,persisted:s,canFeedback:F,feedbackOpen:v,onOpenFeedback:()=>{b(!0)}}),F&&v?l.jsx(Fw,{message:r,onClose:()=>{b(!1)}}):null,F&&!v?l.jsx(Uw,{message:r}):null]})]})},Qw=({message:r,onClose:a})=>{const{send:o,state:s,t:u}=G(),p=x.useId(),[f,h]=x.useState(r.content),m=s.mode??r.mode,v=s.config?.max_query_chars??Tp,b=f.trim(),S=b!==r.content.trim(),w=f.length>v,j=b.length>0&&S&&!w&&!s.turn&&!s.limit.blocked,_=()=>{j&&(a(),o({query:b,mode:m,parentId:r.parentId??""}))};return l.jsxs("div",{part:"edit",onKeyDown:E=>{E.key==="Escape"&&(E.preventDefault(),E.stopPropagation(),a())},className:"flex w-full max-w-[640px] flex-col gap-2 rounded-2xl border border-primary bg-background px-3 py-2.5 ring-[3px] ring-secondary",children:[l.jsx(Ql,{autoFocus:!0,value:f,onChange:h,"aria-label":u("editLabel"),"aria-invalid":w||void 0,"aria-describedby":p,className:"py-0.5 text-lg",onSubmit:_}),l.jsxs("div",{className:"flex items-center justify-end gap-2",children:[l.jsx(vh,{id:p,count:f.length,max:v,className:"mr-auto px-0"}),l.jsx(me,{variant:"ghost",size:"sm",onClick:a,children:u("cancel")}),l.jsx(me,{size:"sm",disabled:!j,onClick:_,children:u("send")})]})]})},Yw=({message:r,busy:a,persisted:o})=>{const{t:s}=G(),[u,p]=x.useState(!1);return l.jsx("div",{part:"message","data-role":"user",className:"group flex flex-col items-end gap-1.5",children:u?l.jsx(Qw,{message:r,onClose:()=>{p(!1)}}):l.jsxs(l.Fragment,{children:[r.attachments.length>0?l.jsx("div",{className:"flex max-w-[78%] flex-wrap justify-end gap-1.5 max-sm:max-w-[88%]",children:r.attachments.map((f,h)=>l.jsx(Mh,{attachment:f},f.id??`${f.name}-${h}`))}):null,l.jsx("div",{part:"bubble user-bubble",className:"max-w-[78%] whitespace-pre-wrap break-words rounded-[calc(var(--aid-c-radius)+6px)] rounded-br-[6px] bg-primary px-3.5 py-2.5 text-[15px] leading-normal text-primary-foreground max-sm:max-w-[88%]",children:r.content}),l.jsxs("div",{className:"flex min-h-7 items-center gap-0.5",children:[o?l.jsx(me,{part:"edit-button",variant:"ghost",size:"icon",className:B(ba,zl),disabled:a,"aria-label":s("edit"),title:s("edit"),onClick:()=>{p(!0)},children:l.jsx(Rv,{"aria-hidden":"true"})}):null,l.jsx(Th,{messageId:r.id,disabled:a||!o})]})]})})},Zw=x.memo(function({message:r,isLast:a,busy:o,dashboardOpen:s,onToggleDashboard:u}){const{t:p}=G(),f=Rp(r.id),h=l.jsx("p",{part:"message-error",className:"text-sm text-muted-foreground",children:p("errors.render")});return l.jsx(ul,{fallback:h,children:r.role==="user"?l.jsx(Yw,{message:r,busy:o,persisted:f}):l.jsx(Kw,{message:r,isLast:a,busy:o,persisted:f,dashboardOpen:s,onToggleDashboard:u})})}),Ah=r=>r.scrollHeight-r.scrollTop-r.clientHeight,Jw=16,Gw=({resetKey:r,followKey:a})=>{const o=x.useRef(null),s=x.useRef(null),u=x.useRef(!0),p=x.useRef(0),f=x.useRef(!1),h=x.useRef(null),[m,v]=x.useState(!0),b=x.useCallback(()=>{const j=o.current;if(!j)return;const _=j.querySelectorAll('[data-role="user"]'),E=_[_.length-1];if(!f.current&&E){const M=j.scrollTop+E.getBoundingClientRect().top-j.getBoundingClientRect().top-Jw;if(M<j.scrollHeight-j.clientHeight){f.current=!0,u.current=!1,j.scrollTop=Math.max(0,M),h.current=j.scrollTop;return}}j.scrollTop=j.scrollHeight},[]),S=x.useCallback(()=>{const j=o.current;if(!j)return;u.current=!0;const _=typeof matchMedia<"u"&&matchMedia("(prefers-reduced-motion: reduce)").matches;j.scrollTo({top:j.scrollHeight,behavior:_?"auto":"smooth"})},[]),w=x.useCallback(()=>{const j=o.current;if(!j)return;const _=Ah(j)<Mf,E=h.current!==null&&Math.abs(j.scrollTop-h.current)<1;E||(h.current=null),_&&!E?u.current=!0:j.scrollTop<p.current-1&&(u.current=!1),p.current=j.scrollTop,v(_)},[]);return x.useLayoutEffect(()=>{u.current=!0,f.current=!1,h.current=null,b()},[r,a,b]),x.useEffect(()=>{const j=s.current,_=o.current;if(!j||!_||typeof ResizeObserver>"u")return;const E=new ResizeObserver(()=>{u.current&&b(),v(Ah(_)<Mf)});return E.observe(j),()=>{E.disconnect()}},[b]),{scrollRef:o,contentRef:s,onScroll:w,atBottom:m,scrollToBottom:S}},ek=()=>{const{state:r,path:a,t:o}=G(),{state:s,toggle:u}=Rr(),p=a.filter(j=>j.role==="user").length,{scrollRef:f,contentRef:h,onScroll:m,atBottom:v,scrollToBottom:b}=Gw({resetKey:r.thread?.id??null,followKey:p}),S=r.turn!==null,w=a[a.length-1];return l.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col",children:[l.jsx("div",{ref:f,part:"messages",onScroll:m,"aria-live":"polite","aria-busy":S,className:"min-h-0 flex-1 overflow-y-auto overscroll-contain",children:l.jsx("div",{ref:h,className:"mx-auto flex w-full max-w-[820px] flex-col gap-[22px] px-4 pb-4 pt-[18px]",children:a.map(j=>l.jsx(Zw,{message:j,isLast:j===w,busy:S,dashboardOpen:j.id===s.messageId,onToggleDashboard:u},j.id))})}),v?null:l.jsxs("button",{part:"scroll-down",type:"button",className:"absolute bottom-3 left-1/2 inline-flex h-9 -translate-x-1/2 items-center gap-1.5 whitespace-nowrap rounded-full border bg-background pl-3 pr-3.5 text-[13px] font-medium text-foreground shadow-pop transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",onClick:b,children:[l.jsx(lf,{"aria-hidden":"true"}),o("scrollDown")]})]})},tk={error:"bg-error-background text-destructive",warning:"bg-warning-background text-warn-text",lock:"bg-muted text-muted-foreground"},Oh=({tone:r,children:a})=>l.jsx("span",{className:B("flex size-[52px] items-center justify-center rounded-full",tk[r]),children:a}),rk=({kind:r,onRetry:a})=>{const{t:o}=G();if(r==="loading")return l.jsxs("div",{part:"shell-status","data-state":"loading","aria-busy":"true",className:"flex min-h-0 flex-1 flex-col items-center justify-center gap-4 p-8 text-center",children:[l.jsx("span",{"aria-hidden":"true",className:"size-[26px] animate-spin rounded-full border-[3px] border-current border-r-transparent text-primary motion-reduce:animate-none"}),l.jsx("span",{role:"status",className:"text-xs text-muted-foreground",children:o("loading")})]});if(r==="siteBlocked")return l.jsxs("div",{part:"shell-status","data-state":"siteBlocked",role:"alert",className:"flex min-h-0 flex-1 flex-col items-center justify-center gap-4 p-8 text-center",children:[l.jsx(Oh,{tone:"lock",children:l.jsx(hf,{className:"size-6","aria-hidden":"true"})}),l.jsx("p",{className:"max-w-[300px] text-lg font-semibold",children:o("shell.siteBlocked")}),l.jsx("p",{className:"max-w-[440px] text-xs text-muted-foreground",children:o("shell.siteBlockedHint")})]});const s=r==="overloaded";return l.jsxs("div",{part:"shell-status","data-state":s?"overloaded":"unavailable",role:"alert",className:"flex min-h-0 flex-1 flex-col items-center justify-center gap-4 p-8 text-center",children:[l.jsx(Oh,{tone:s?"warning":"error",children:s?l.jsx(Vo,{className:"size-6","aria-hidden":"true"}):l.jsx(Pr,{className:"size-6","aria-hidden":"true"})}),l.jsx("p",{className:"max-w-[300px] text-lg font-semibold",children:o(s?"overloaded":"configError")}),a?l.jsxs(me,{variant:"input",size:"sm",onClick:a,children:[l.jsx(wf,{"aria-hidden":"true"}),o("retry")]}):null]})},nk=()=>{const{state:r,reload:a}=G(),o=ox(r);return o===null?null:l.jsx(rk,{kind:o,onRetry:o==="siteBlocked"?void 0:a})},ak="h-3 rounded-md bg-muted animate-pulse motion-reduce:animate-none",ok=()=>{const{t:r}=G();return l.jsxs("div",{"aria-busy":"true",className:"min-h-0 flex-1 overflow-hidden",children:[l.jsxs("div",{className:"mx-auto flex w-full max-w-[820px] flex-col gap-[22px] px-4 pb-4 pt-[18px]",children:[l.jsx("div",{className:"flex justify-end",children:l.jsx("div",{className:"h-[38px] w-[62%] rounded-[18px] rounded-br-[6px] bg-muted animate-pulse motion-reduce:animate-none"})}),l.jsx("div",{className:"flex flex-col gap-2.5",children:[90,76,84,40].map(a=>l.jsx("div",{className:ak,style:{width:`${a}%`}},a))})]}),l.jsx("span",{role:"status",className:"sr-only",children:r("loading")})]})},ik=({composerRef:r,wide:a})=>{const{state:o,path:s}=G(),u=!!o.config&&!o.loadingThread&&!o.configError,p=u&&s.length===0,f=m=>{r&&"current"in r&&r.current?.setText(m)};let h;return u?p?h=l.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto overscroll-contain",children:l.jsx(ow,{wide:a,onPick:f})}):h=l.jsx(ek,{}):h=o.loadingThread&&o.config&&!o.configError?l.jsx(ok,{}):l.jsx(nk,{}),l.jsxs(l.Fragment,{children:[h,l.jsx(Jy,{composerRef:r})]})},xa="size-8 shrink-0 text-muted-foreground hover:text-foreground",sk=({historyHidden:r,onShowHistory:a,onOpenSettings:o,title:s,logoUrl:u,threadTitle:p,tabs:f,inert:h=!1})=>{const{t:m,newChat:v}=G(),b=dl(),S=x.useRef(null);_r(S,h);const w=p!==void 0&&p!==""?p:r?s:"";return l.jsxs("div",{ref:S,part:"toolbar",className:"flex h-toolbar shrink-0 items-center gap-1 border-b py-0 pl-2.5 pr-2",children:[r?l.jsx(me,{part:"history-toggle",variant:"ghost",size:"icon",className:xa,"aria-expanded":!1,"aria-label":m("history"),title:m("history"),onClick:a,children:l.jsx(Cv,{"aria-hidden":"true"})}):null,r&&u?l.jsx("img",{part:"logo",src:u,alt:"",referrerPolicy:"no-referrer",className:"size-6 shrink-0 rounded-md object-contain"}):null,l.jsx("span",{className:"min-w-0 flex-1 truncate px-1.5 text-sm font-semibold",children:w}),f,l.jsx(me,{variant:"ghost",size:"icon",className:xa,"aria-label":m("newChat"),title:m("newChat"),onClick:v,children:l.jsx(vf,{"aria-hidden":"true"})}),b.canExpand?l.jsx(me,{part:"expand",variant:"ghost",size:"icon",className:xa,"aria-label":b.expanded?m("shrink"):m("expand"),title:b.expanded?m("shrink"):m("expand"),onClick:()=>{b.setExpanded(!b.expanded)},children:b.expanded?l.jsx(xf,{"aria-hidden":"true"}):l.jsx(gf,{"aria-hidden":"true"})}):null,l.jsx(me,{part:"settings-button",variant:"ghost",size:"icon",className:xa,"aria-label":m("settings"),title:m("settings"),onClick:o,children:l.jsx($v,{"aria-hidden":"true"})}),b.close?l.jsx(me,{part:"close",variant:"ghost",size:"icon",className:xa,"aria-label":m("close"),title:m("close"),onClick:b.close,children:l.jsx(ca,{"aria-hidden":"true"})}):null]})},lk="flex shrink-0 flex-col border-r duration-200 animate-in fade-in slide-in-from-left-2 motion-reduce:animate-none",ck="w-side bg-muted",dk="absolute inset-y-0 left-0 z-30 w-side-over max-w-full bg-muted shadow-side",uk=({title:r,logoUrl:a,onHide:o})=>{const{t:s}=G();return l.jsxs("div",{part:"header",className:"flex h-side-head shrink-0 items-center gap-2.5 pl-3.5 pr-2",children:[a?l.jsx("img",{part:"logo",src:a,alt:"",referrerPolicy:"no-referrer",className:"size-7 shrink-0 rounded-lg object-cover"}):l.jsx(Yp,{size:28}),l.jsx("span",{part:"title",className:"min-w-0 flex-1 truncate text-[15px] font-bold",children:r}),l.jsx(me,{variant:"ghost",size:"icon",className:"size-8 text-muted-foreground hover:text-foreground","aria-label":s("closeHistory"),title:s("closeHistory"),onClick:o,children:l.jsx(jv,{"aria-hidden":"true"})})]})},pk=({onClick:r})=>{const{t:a}=G();return l.jsxs("button",{part:"new-chat",type:"button",onClick:r,className:"flex h-9 w-full items-center gap-2.5 rounded-md border bg-background pl-3 pr-2.5 text-left text-sm font-medium transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",children:[l.jsx(vf,{className:"size-4","aria-hidden":"true"}),a("newChat")]})},fk=({name:r,onConfirm:a,onCancel:o})=>{const{t:s}=G(),u=x.useRef(null);return x.useEffect(()=>{u.current?.querySelector("[data-cancel]")?.focus()},[]),l.jsxs("div",{ref:u,role:"alertdialog","aria-label":s("deleteConfirm"),onKeyDown:p=>{p.key==="Escape"&&(p.preventDefault(),p.stopPropagation(),o())},className:"my-0.5 flex flex-col gap-2 rounded-[10px] border border-error/35 bg-destructive-background p-2.5",children:[l.jsx("div",{className:"text-[13px] font-semibold",children:s("deleteConfirm")}),l.jsx("div",{className:"truncate text-2xs text-muted-foreground",children:r}),l.jsxs("div",{className:"flex gap-2",children:[l.jsx(me,{variant:"destructive",size:"xs",onClick:a,children:s("deleteYes")}),l.jsx(me,{variant:"ghost",size:"xs","data-cancel":!0,onClick:o,children:s("deleteNo")})]})]})},hk=(r,a)=>{let o="";const s=[];let u=0;for(const h of r){const m=h.toLowerCase();s.push(...Array.from({length:m.length},()=>u)),o+=m,u+=h.length}s.push(u);const p=o.indexOf(a);if(p<0)return null;let f=p+a.length;for(;f<s.length&&s[f]===s[f-1];)f+=1;return[s[p]??0,s[f]??r.length]},gk=({text:r,query:a})=>{const o=a.trim().toLowerCase(),s=o?hk(r,o):null;if(!s)return l.jsx(l.Fragment,{children:r});const[u,p]=s;return l.jsxs(x.Fragment,{children:[r.slice(0,u),l.jsx("mark",{className:"rounded-[3px] bg-hl px-px text-inherit",children:r.slice(u,p)}),r.slice(p)]})},mk=({groups:r,query:a,activeId:o,confirmId:s,onOpen:u,onAskDelete:p,onCancelDelete:f,onDelete:h})=>{const{t:m}=G();return l.jsx(l.Fragment,{children:r.map(([v,b])=>l.jsxs("section",{className:"pb-1","aria-label":m(v),children:[l.jsx("h3",{className:"px-2 pb-1 pt-3.5 text-2xs font-medium text-muted-foreground",children:m(v)}),l.jsx("ul",{className:"flex flex-col gap-px",children:b.map(S=>{const w=S.id===o,j=S.title||m("untitled");return s===S.id?l.jsx("li",{children:l.jsx(fk,{name:j,onConfirm:()=>{h(S.id)},onCancel:f})},S.id):l.jsxs("li",{className:"group relative",children:[l.jsx("button",{part:"thread-item",type:"button","aria-current":w?"page":void 0,title:j,onClick:()=>{u(S.id)},className:B("flex min-h-9 w-full items-center rounded-lg py-1 pl-2.5 pr-9 text-left text-sm transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",w&&"bg-background font-medium shadow-[inset_0_0_0_1px_var(--aid-c-border)] hover:bg-background"),children:l.jsx("span",{className:"min-w-0 truncate",children:l.jsx(gk,{text:j,query:a})})}),l.jsx(me,{variant:"ghost",size:"icon",className:B("absolute right-1 top-1/2 size-7 -translate-y-1/2 text-muted-foreground",!w&&zl),"aria-label":`${m("delete")}: ${j}`,onClick:()=>{p(S.id)},children:l.jsx(Xv,{"aria-hidden":"true"})})]},S.id)})})]},v))})},nc=({icon:r,children:a})=>l.jsxs("div",{className:"flex flex-col items-center gap-1.5 px-3 py-6 text-center text-sm text-muted-foreground",children:[r,a]}),bk=[82,64,90,58,76,70],xk=({query:r})=>{const{state:a,t:o,refreshThreads:s}=G();return a.threadsLoaded?r.trim()!==""?l.jsx(nc,{icon:l.jsx(la,{"aria-hidden":"true"}),children:l.jsx("span",{children:o("searchEmpty")})}):a.threadsError?l.jsxs(nc,{icon:l.jsx(Pr,{"aria-hidden":"true"}),children:[l.jsx("span",{children:o("historyError")}),l.jsx(me,{variant:"input",size:"xs",onClick:s,children:o("retry")})]}):l.jsx(nc,{icon:l.jsx(bf,{"aria-hidden":"true"}),children:l.jsx("span",{children:o("historyEmpty")})}):l.jsxs("div",{"aria-busy":"true",className:"flex flex-col",children:[bk.map(u=>l.jsx("div",{className:"flex min-h-9 items-center px-2.5",children:l.jsx("span",{className:"h-[11px] animate-pulse rounded-md bg-border motion-reduce:animate-none",style:{width:`${u}%`}})},u)),l.jsx("span",{role:"status",className:"sr-only",children:o("loading")})]})},vk=(r,a,o)=>{Fo(r,a);const s=x.useRef(o);x.useEffect(()=>{s.current=o}),x.useEffect(()=>{if(!a)return;const p=f=>{if(f.key!=="Escape"||f.defaultPrevented)return;const h=f.composedPath(),m=h[0];m instanceof HTMLInputElement&&m.type==="search"&&m.value!==""||h.some(v=>v instanceof HTMLElement&&v.getAttribute("role")==="alertdialog")||(f.preventDefault(),f.stopPropagation(),s.current())};return window.addEventListener("keydown",p,!0),()=>{window.removeEventListener("keydown",p,!0)}},[a]);const u=x.useRef(!1);x.useEffect(()=>{const p=r.current?.getRootNode();if(u.current&&!a){const f=window.setTimeout(()=>{p?.querySelector('[part~="history-toggle"]')?.focus()},0);return u.current=!1,()=>{window.clearTimeout(f)}}u.current=a},[a,r])},yk=({query:r,onQuery:a,inputRef:o,autoFocus:s})=>{const{t:u}=G();return l.jsxs("label",{className:"relative flex items-center",children:[l.jsx(la,{className:"pointer-events-none absolute left-[11px] size-4 text-muted-foreground","aria-hidden":"true"}),l.jsx("input",{ref:o,part:"search",type:"search",value:r,"data-autofocus":s?"":void 0,onChange:p=>{a(p.target.value)},onKeyDown:p=>{p.key==="Escape"&&r&&(p.preventDefault(),a(""))},placeholder:u("search"),"aria-label":u("search"),className:"h-8 w-full rounded-md border border-input bg-background pl-[34px] pr-9 text-sm outline-none placeholder:text-muted-foreground focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-secondary [&::-webkit-search-cancel-button]:hidden"}),r?l.jsx("button",{type:"button","aria-label":u("dismiss"),className:"absolute right-2 rounded p-0.5 text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",onClick:()=>{a(""),o.current?.focus()},children:l.jsx(ca,{className:"size-3.5","aria-hidden":"true"})}):null]})},wk=({collapsed:r,onCollapsedChange:a,searchRef:o,searchSignal:s,overlay:u=!1,title:p,logoUrl:f,inert:h=!1})=>{const m=x.useRef(null);_r(m,h);const{state:v,t:b,openThread:S,newChat:w,deleteThread:j}=G(),[_,E]=x.useState(""),[M,F]=x.useState(null),Z=u&&!r;vk(m,Z,()=>{a(!0)});const oe=x.useMemo(()=>{const ne=_.trim().toLowerCase(),$=ne?v.threads.filter(X=>(X.title||b("untitled")).toLowerCase().includes(ne)):v.threads;return $1($)},[v.threads,_,b]);x.useEffect(()=>{s>0&&!r&&o.current?.focus()},[s,r,o]);const J=ne=>()=>{ne(),u&&a(!0)};return r?l.jsx("nav",{ref:m,part:"sidebar","data-state":"collapsed","aria-label":b("history"),hidden:!0}):l.jsxs("nav",{ref:m,part:"sidebar","data-state":"expanded","aria-label":b("history"),className:B(lk,u?dk:ck),children:[l.jsx(uk,{title:p,logoUrl:f,onHide:()=>{a(!0)}}),l.jsxs("div",{className:"flex shrink-0 flex-col gap-2 px-2.5 pb-2",children:[l.jsx(pk,{onClick:J(w)}),l.jsx(yk,{query:_,onQuery:E,inputRef:o,autoFocus:Z})]}),l.jsxs("div",{part:"history",className:"min-h-0 flex-1 overflow-y-auto overscroll-contain px-2 pb-2",children:[oe.length===0?l.jsx(xk,{query:_}):null,l.jsx(mk,{groups:oe,query:_,activeId:v.thread?.id,confirmId:M,onOpen:ne=>{J(()=>{S(ne)})()},onAskDelete:F,onCancelDelete:()=>{F(null)},onDelete:ne=>{F(null),j(ne)}})]})]})};function kk(r){const a=x.useRef(null),[o,s]=x.useState(r);return x.useLayoutEffect(()=>{const u=a.current;if(!u)return;const p=Math.round(u.getBoundingClientRect().width);if(p>0&&s(p),typeof ResizeObserver>"u")return;const f=new ResizeObserver(([h])=>{const m=Math.round(h?.contentRect.width??0);m>0&&s(m)});return f.observe(u),()=>{f.disconnect()}},[]),[a,o]}const $h="aid_sidebar",jk=720,Sk=r=>{try{const a=window.localStorage.getItem($h);return a===null?r:a==="collapsed"}catch{return r}},Ck=r=>{const{state:a}=G(),o=a.thread?.id,s=o!==void 0&&o!==cn?o:void 0;return l.jsx(Sy,{threadId:s,children:l.jsx(Nk,{...r})})},Nk=({open:r,title:a,logoUrl:o,compact:s})=>{const{state:u,path:p,newChat:f}=G(),h=dl(),{expandForDashboard:m}=h,[v,b]=kk(0),S=(h.canExpand&&h.expanded?Math.max(b,window.innerWidth):b)>=kx,w=Rr(),j=s||b>0&&b<jk,[_,E]=x.useState(()=>j||Sk(!1)),[M,F]=x.useState(j);j!==M&&(F(j),j&&E(!0));const[Z,oe]=x.useState(!1),J=x.useRef(null),[ne,$]=x.useState(0),X=()=>{he(!1),$(H=>H+1)},K=x.useRef(null),he=H=>{if(E(H),!j)try{window.localStorage.setItem($h,H?"collapsed":"expanded")}catch{}},ee=x.useRef({collapsed:_,newChat:f,setCollapsed:he,focusSearch:X});x.useEffect(()=>{ee.current={collapsed:_,newChat:f,setCollapsed:he,focusSearch:X}}),x.useEffect(()=>{if(!r)return;const H=V=>{if(!(V.metaKey||V.ctrlKey)||V.altKey)return;const{collapsed:pe,newChat:fe,setCollapsed:Se,focusSearch:ke}=ee.current,xe=V.key.toLowerCase();if(xe==="k"&&!V.shiftKey)ke();else if(xe==="o"&&V.shiftKey)fe(),setTimeout(()=>K.current?.setText(""),0);else if(xe==="s"&&V.shiftKey)Se(!pe);else return;V.preventDefault()};return window.addEventListener("keydown",H),()=>{window.removeEventListener("keydown",H)}},[r]);const ue=p.find(H=>H.id===w.state.messageId&&ur(H.blocks,"dashboard")!==void 0),W=ue!==void 0;x.useEffect(()=>{if(W)return m(!0),()=>{m(!1)}},[W,m]);const Q=x.useRef(null),be=x.useRef(!1),Ne=ue?.id??null,ve=x.useRef(null);x.useEffect(()=>{const H=ve.current;if(ve.current=Ne,H===null||Ne!==null||!be.current)return;be.current=!1;const V=Q.current;(Array.from(V?.querySelectorAll('[part="dashboard-toggle"]')??[]).find(pe=>pe.dataset.messageId===H)??V?.querySelector('[part="composer"] textarea'))?.focus()},[Ne]);const ye=W&&w.state.fullscreen;_r(Q,j&&!_);const[U,D]=x.useState(r);r!==U&&(D(r),!r&&j&&E(!0));const I=Sx(W,S,w.state.fullscreen);jx(r&&W&&(!I||w.state.view==="dashboard"));const k=u.thread?u.threads.find(H=>H.id===u.thread?.id)?.title:void 0,L=u.config&&!u.loadingThread&&!u.configError;return l.jsxs("div",{ref:v,className:"relative flex min-h-0 flex-1",children:[l.jsx(wk,{collapsed:_,onCollapsedChange:he,overlay:j,searchRef:J,searchSignal:ne,title:a,logoUrl:o,inert:ye}),l.jsxs("div",{ref:Q,className:"flex min-w-0 flex-1 flex-col",children:[l.jsx(sk,{historyHidden:_,onShowHistory:()=>{he(!1)},onOpenSettings:()=>{oe(!0)},title:a,logoUrl:o,threadTitle:k,tabs:I?l.jsx(F1,{}):null,inert:ye}),l.jsx(U1,{wide:S,onPanelFocusChange:H=>{be.current=H},panel:ue?l.jsx(ky,{message:ue}):null,chat:l.jsx(ik,{composerRef:K,wide:b>=720})})]}),j&&!_?l.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:"absolute inset-0 z-20 bg-scrim",onClick:()=>{he(!0)}}):null,l.jsx(Ny,{active:r&&!!L}),l.jsx(Ay,{open:Z,onClose:()=>{oe(!1)}})]})},Fh=({open:r,title:a,logoUrl:o,fullscreen:s,expanded:u=!1,style:p,onClose:f})=>{const h=x.useRef(null);return _r(h,!r),Fo(h,r),x.useEffect(()=>{if(!r)return;const m=v=>{v.key==="Escape"&&!v.defaultPrevented&&f()};return window.addEventListener("keydown",m),()=>{window.removeEventListener("keydown",m)}},[r,f]),l.jsx("div",{ref:h,part:"window",role:"dialog","aria-modal":s,"aria-label":a,"aria-hidden":!r,"data-state":r?"open":"closed","data-fullscreen":s,"data-expanded":u,className:"aid-window rounded-aid-window border bg-background text-foreground shadow-window",style:p,children:l.jsx(Ck,{open:r,title:a,logoUrl:o,compact:s})})},ac=60,Ek=6,_k=8,Uh={x:20,y:20},zk=639,qh="aid_pos",Rk=(r,a,o=Ek)=>r*r+a*a>=o*o,Yo=(r,a,o=ac,s=_k)=>{const u=typeof o=="number"?{width:o,height:o}:o,p=(f,h)=>Math.round(Math.min(Math.max(f,s),Math.max(s,h)));return{x:p(r.x,a.width-u.width-s),y:p(r.y,a.height-u.height-s)}},Vh=(r,a,o,s)=>({x:s==="bottom-right"?r.x-a:r.x+a,y:r.y-o}),Mk=r=>{try{const a=r?.getItem(qh);if(!a)return null;const o=JSON.parse(a);if(typeof o=="object"&&o!==null&&typeof o.x=="number"&&typeof o.y=="number"&&Number.isFinite(o.x)&&Number.isFinite(o.y))return{x:o.x,y:o.y}}catch{}return null},Pk=(r,a)=>{try{r?.setItem(qh,JSON.stringify(a))}catch{}},Lk={width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0},Dk=({size:r=24})=>l.jsx("svg",{...Lk,width:r,height:r,children:l.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),Bh=()=>({width:window.innerWidth,height:window.innerHeight}),oc=r=>({width:r.offsetWidth,height:r.offsetHeight}),Ik=()=>{try{return window.localStorage}catch{return null}},Wh=x.forwardRef(({open:r,lang:a,corner:o,offset:s,draggable:u,unread:p=0,variant:f,label:h,shape:m,onOffsetChange:v,onToggle:b},S)=>{const w=x.useRef(null),j=x.useRef(!1),[_,E]=x.useState(null),M=_!==null,F=X=>{!u||X.button!==0||(w.current={pointerX:X.clientX,pointerY:X.clientY,offset:s,moved:!1},X.currentTarget.setPointerCapture(X.pointerId))},Z=X=>{const K=w.current;if(!K)return;const he=X.clientX-K.pointerX,ee=X.clientY-K.pointerY;!K.moved&&!Rk(he,ee)||(K.moved||(K.moved=!0,E({offset:K.offset,...oc(X.currentTarget)})),v(Yo(Vh(K.offset,he,ee,o),Bh(),oc(X.currentTarget))))},oe=X=>{const K=w.current;if(w.current=null,X.currentTarget.hasPointerCapture(X.pointerId)&&X.currentTarget.releasePointerCapture(X.pointerId),!K?.moved)return;E(null),j.current=!0;const he=X.clientX-K.pointerX,ee=X.clientY-K.pointerY;Pk(Ik(),Yo(Vh(K.offset,he,ee,o),Bh(),oc(X.currentTarget)))},J=()=>{if(j.current){j.current=!1;return}b()},ne=o==="bottom-right"?"right":"left",$=f==="label"&&!r?h??zt(a,"ask"):null;return l.jsxs(l.Fragment,{children:[_?l.jsx("span",{"data-testid":"launcher-origin","aria-hidden":"true","data-shape":m??"circle",className:"aid-launcher-origin",style:{[ne]:_.offset.x,bottom:_.offset.y,width:_.width,height:_.height}}):null,l.jsxs("button",{ref:S,part:"launcher",type:"button","aria-label":`${$??zt(a,r?"close":"open")}${p>0&&!r?`, ${zt(a,"unreadAnswers",{count:p})}`:""}`,"aria-expanded":r,"data-dragging":M,"data-variant":$?"label":"icon","data-shape":m??"circle",className:"aid-launcher",style:{[ne]:s.x,bottom:s.y},onPointerDown:F,onPointerMove:Z,onPointerUp:oe,onPointerCancel:oe,onClick:J,children:[r?l.jsx(Dk,{}):l.jsx(Qp,{size:$?44:40,animated:!1,bare:!0}),$?l.jsx("span",{part:"launcher-label",className:"truncate",children:$}):null,p>0&&!r?l.jsx("span",{part:"badge",className:"aid-launcher-badge",children:p>9?"9+":p}):null]})]})});Wh.displayName="Launcher";const Tk=r=>{const{state:a}=G(),{turn:o,thread:s}=a,[u,p]=x.useState({turn:o,open:r}),[f,h]=x.useState(0);return(u.turn!==o||u.open!==r)&&(p({turn:o,open:r}),r?f!==0&&h(0):u.turn&&!o&&s?.messages.find(m=>m.id===u.turn?.assistantId)?.status==="done"&&h(f+1)),f},Hh=x.forwardRef((r,a)=>{const o=Tk(r.open);return l.jsx(Wh,{ref:a,...r,unread:o})});Hh.displayName="UnreadLauncher";const va=(r,a,o)=>Math.min(o,Math.max(a,r)),Ak={black:"#000000",white:"#ffffff",red:"#ff0000",green:"#008000",blue:"#0000ff",orange:"#ffa500",purple:"#800080",teal:"#008080",navy:"#000080",gray:"#808080",grey:"#808080"},Xh=r=>{if(!/^[0-9a-f]+$/i.test(r)||![3,4,6,8].includes(r.length))return null;const a=r.length<=4?r.replace(/./g,s=>s+s):r,o=s=>parseInt(a.slice(s,s+2),16);return{r:o(0),g:o(2),b:o(4),a:a.length===8?o(6)/255:1}},Kh=r=>{const a=r.replace(/\//g," ").replace(/,/g," ").trim().split(/\s+/).filter(Boolean);return a.length===3||a.length===4?a:null},Zo=r=>{const a=Number(r);return r!==""&&Number.isFinite(a)?a:null},Ok=r=>{if(r===void 0)return 1;const a=Zo(r.endsWith("%")?r.slice(0,-1):r);return a===null?null:va(r.endsWith("%")?a/100:a,0,1)},ic=r=>{const a=Zo(r.endsWith("%")?r.slice(0,-1):r);return a===null?null:va(r.endsWith("%")?a/100*255:a,0,255)},Qh=r=>{const a=/^(-?[\d.]+)(deg|turn|rad|grad)?$/.exec(r);if(!a?.[1])return null;const o=Zo(a[1]);if(o===null)return null;const s=a[2]??"deg";return((s==="turn"?o*360:s==="rad"?o*180/Math.PI:s==="grad"?o*.9:o)%360+360)%360},Jo=r=>{const a=Zo(r.endsWith("%")?r.slice(0,-1):r);return a===null?null:va(a,0,100)},Go=({h:r,s:a,l:o,a:s})=>{const u=a/100,p=o/100,f=m=>(m+r/30)%12,h=m=>p-u*Math.min(p,1-p)*Math.max(-1,Math.min(f(m)-3,9-f(m),1));return{r:Math.round(h(0)*255),g:Math.round(h(8)*255),b:Math.round(h(4)*255),a:s}},$k=({r,g:a,b:o,a:s})=>{const u=r/255,p=a/255,f=o/255,h=Math.max(u,p,f),m=Math.min(u,p,f),v=(h+m)/2,b=h-m;if(b===0)return{h:0,s:0,l:v*100,a:s};const S=b/(1-Math.abs(2*v-1));let w;return h===u?w=(p-f)/b%6:h===p?w=(f-u)/b+2:w=(u-p)/b+4,{h:(w*60+360)%360,s:S*100,l:v*100,a:s}},Yh=r=>{const a=Fk(r);if(!a)return null;const o=/^hsla?\((.*)\)$/.exec(r.trim().toLowerCase()),s=o?.[1]!==void 0?Kh(o[1]):null;if(s){const[u,p,f]=[Qh(s[0]??""),Jo(s[1]??""),Jo(s[2]??"")];if(u!==null&&p!==null&&f!==null)return{h:u,s:p,l:f,a:a.a}}return $k(a)},Fk=r=>{const a=r.trim().toLowerCase(),o=Ak[a];if(o)return Xh(o.slice(1));if(a.startsWith("#"))return Xh(a.slice(1));const s=/^(rgba?|hsla?)\((.*)\)$/.exec(a);if(!s?.[1]||s[2]===void 0)return null;const u=Kh(s[2]);if(!u)return null;const[p="",f="",h="",m]=u,v=Ok(m);if(v===null)return null;if(s[1].startsWith("rgb")){const[j,_,E]=[ic(p),ic(f),ic(h)];return j===null||_===null||E===null?null:{r:Math.round(j),g:Math.round(_),b:Math.round(E),a:v}}const[b,S,w]=[Qh(p),Jo(f),Jo(h)];return b===null||S===null||w===null?null:Go({h:b,s:S,l:w,a:v})},Zh=({r,g:a,b:o})=>{const s=u=>{const p=u/255;return p<=.03928?p/12.92:((p+.055)/1.055)**2.4};return .2126*s(r)+.7152*s(a)+.0722*s(o)},Jh=(r,a)=>{const[o,s]=[Zh(r),Zh(a)].sort((u,p)=>p-u);return(o+.05)/(s+.05)},ei=r=>Math.round(r*10)/10,Dr=({h:r,s:a,l:o,a:s})=>`${ei(r)}, ${ei(a)}%, ${ei(o)}%${s<1?`, ${ei(s*100)/100}`:""}`,Gh={h:210,s:40,l:98,a:1},eg={h:222.2,s:47.4,l:11.2,a:1},Uk=r=>{const a=Yh(r);if(!a)return null;const o={...a,a:1},s={...o,l:va(o.l>70?o.l-6:o.l+8,0,100)},u={...o,l:va(o.l-10,0,100)},p=Go(o),f=Jh(p,Go(Gh)),h=f>=4.5||f>=Jh(p,Go(eg))?Gh:eg;return{primary:Dr(o),primaryHovered:Dr(s),primaryPressed:Dr(u),primaryForeground:Dr(h),secondary:Dr({...o,a:.1}),ring:Dr({...o,a:.5})}},qk=(...r)=>{const a={};for(const o of r)if(o)for(const[s,u]of Object.entries(o))u===void 0||u===""||(a[s]=u);return a},Vk=r=>{const a={},o=r.primary?Uk(r.primary):null;o&&(a["--primary"]=o.primary,a["--primary-text"]=o.primary,a["--primary-hovered"]=o.primaryHovered,a["--primary-pressed"]=o.primaryPressed,a["--primary-foreground"]=o.primaryForeground,a["--secondary"]=o.secondary,a["--secondary-foreground"]=o.primary,a["--ring"]=o.ring),r.radius!==void 0&&r.radius!==""&&(a["--radius"]=typeof r.radius=="number"?`${r.radius}px`:r.radius),r.font&&(a["--aid-theme-font"]=r.font);const s=v=>{const b=v?Yh(v):null;return b?Dr(b):null},u=s(r.background);if(u)for(const v of["--background","--card","--popover"])a[v]=u;const p=s(r.foreground);if(p)for(const v of["--foreground","--card-foreground","--popover-foreground","--secondary-foreground"])a[v]=p;const f=s(r.bubble);if(f)for(const v of["--secondary","--muted","--accent"])a[v]=f;const h=s(r.border);if(h)for(const v of["--border","--input"])a[v]=h;const m=(v,b)=>{typeof b=="number"&&Number.isFinite(b)&&(a[v]=`${b}px`)};return m("--aid-t-window-width",r.windowWidth),m("--aid-t-window-height",r.windowHeight),m("--aid-t-offset-x",r.offsetX),m("--aid-t-offset-y",r.offsetY),a},Bk=(r,a)=>r==="dark"||r==="auto"&&a?"dark":"light",Wk=(r,a,o={})=>{for(const s of Object.keys(o))s in a||r.style.removeProperty(s);for(const[s,u]of Object.entries(a))r.style.setProperty(s,u)},Hk=(r,a)=>{r.classList.toggle("dark",a==="dark"),r.dataset.scheme=a},tg=(r,a)=>{const o=parseFloat(r);return Number.isFinite(o)?o:a},sc=()=>{try{return window.localStorage}catch{return null}},rg=(r,a,o)=>tg(r.getPropertyValue(`--aid-${a}`),tg(r.getPropertyValue(`--aid-t-${a}`),o)),Xk=r=>{const a=getComputedStyle(r);return{x:rg(a,"offset-x",Uh.x),y:rg(a,"offset-y",Uh.y)}},ng=()=>({width:window.innerWidth,height:window.innerHeight}),Kk={scheme:"auto"},Qk=(r,a)=>{const o=x.useSyncExternalStore(r.subscribe,()=>r.get().theme),s=x.useSyncExternalStore(r.subscribe,()=>r.get().adminTheme),u=vl("(prefers-color-scheme: dark)"),p=qk(Kk,s,o),f=Bk(p.scheme,u),h=x.useRef({}),m=JSON.stringify(Vk(p));return x.useLayoutEffect(()=>{const v=JSON.parse(m);Wk(a,v,h.current),h.current=v},[a,m]),x.useLayoutEffect(()=>{Hk(a,f)},[a,f]),p},Yk=r=>{const{store:a,api:o}=r,s=x.useSyncExternalStore(a.subscribe,()=>a.get().open),u=x.useSyncExternalStore(a.subscribe,()=>a.get().lang),p=x.useCallback(f=>{a.set({adminTheme:f})},[a]);return l.jsx(dx,{api:o,lang:u,open:s,onAdminTheme:p,children:l.jsx(Zk,{...r})})},Zk=({store:r,root:a,mode:o,corner:s,draggable:u,api:p})=>{const f=x.useSyncExternalStore(r.subscribe,()=>r.get().open),h=x.useSyncExternalStore(r.subscribe,()=>r.get().lang),m=Qk(r,a),v=s??m.position??"bottom-right",b=vl(`(max-width: ${zk}px)`),S=x.useRef(null),[w,j]=x.useState(()=>Yo(Mk(sc())??Xk(a),ng(),ac));x.useEffect(()=>{if(o!=="launcher")return;const W=()=>{const Q=S.current,be=Q?{width:Q.offsetWidth,height:Q.offsetHeight}:ac;j(Ne=>Yo(Ne,ng(),be))};return window.addEventListener("resize",W),()=>{window.removeEventListener("resize",W)}},[o]);const _=x.useCallback(()=>{r.set({open:!1})},[r]),E=x.useCallback(()=>{r.set({open:!r.get().open})},[r]),M=x.useRef(f);x.useEffect(()=>{M.current&&!f&&S.current?.focus({preventScroll:!0}),M.current=f},[f]);const F=m.title??zt(h,"title"),Z=Kp(p.apiUrl),oe=x.useMemo(()=>({animated:f,assetsBase:Z}),[f,Z]),[J,ne]=x.useState({expanded:!1,byDashboard:!1}),{expanded:$}=J,X=o==="launcher"&&!b,K=x.useCallback(W=>{ne({expanded:W,byDashboard:!1})},[]),he=x.useCallback(W=>{ne(Q=>A0(Q,W,X))},[X]),ee=m.scheme??"auto",ue=x.useMemo(()=>({lang:h,scheme:ee,expanded:$,canExpand:X,setExpanded:K,expandForDashboard:he,close:o==="launcher"?_:void 0,update:W=>{const Q={...qp(sc()),...W};T0(sc(),Q),r.set({...W.lang?{lang:W.lang}:{},theme:{...r.get().theme,...Vp(W)}})}}),[h,ee,$,X,K,he,o,_,r]);return o==="window"?l.jsx(cl.Provider,{value:ue,children:l.jsx(gl.Provider,{value:oe,children:l.jsx(Fh,{open:f,title:F,logoUrl:il(m.logoUrl),fullscreen:!1,onClose:_})})}):l.jsx(cl.Provider,{value:ue,children:l.jsxs(gl.Provider,{value:oe,children:[l.jsx("div",{part:"overlay",className:"aid-overlay","data-state":f?"open":"closed","aria-hidden":!0,onClick:_}),l.jsx(Fh,{open:f,title:F,logoUrl:il(m.logoUrl),fullscreen:b,expanded:$&&!b,onClose:_}),f?null:l.jsx(Hh,{ref:S,open:f,lang:h,corner:v,offset:w,draggable:u&&!b,variant:m.launcher,label:m.launcherLabel,shape:m.launcherShape,onOffsetChange:j,onToggle:E})]})})},ag="https://dev-ai.kgd.gov.kz",Jk=`${xb}
|
|
19
|
+
${$0}`,lc=(r,a,o,s)=>{const u=r.shadowRoot??r.attachShadow({mode:"open"});u.replaceChildren();const p=document.createElement("style");p.textContent=Jk;const f=document.createElement("div");f.className="aid-root",f.dataset.mode=o,u.append(p,f);let h=null;try{h=window.localStorage}catch{}const m=qp(h),v=O0({open:a.defaultOpen??o==="window",lang:m.lang??$p(a.lang),theme:{...a.theme,...Vp(m)},adminTheme:null});let b=v.get().open;const S=v.subscribe(()=>{const{open:E}=v.get();E!==b&&(b=E,a.onOpenChange?.(E))}),w=R0({apiUrl:a.apiUrl??ag,siteKey:a.siteKey,visitorId:C0(a.visitorId,h),rememberVisitor:E=>{try{h?.setItem(nl,E)}catch{}}}),j=bb.createRoot(f);j.render(l.jsx(x.StrictMode,{children:l.jsx(ul,{fallback:null,children:l.jsx(Yk,{store:v,root:f,mode:o,corner:a.position,draggable:a.draggable??!0,api:w})})}));let _=!0;return{open:()=>{v.set({open:!0})},close:()=>{v.set({open:!1})},setTheme:E=>{v.set({theme:{...v.get().theme,...E}})},setLang:E=>{v.set({lang:$p(E)})},unmount:()=>{_&&(_=!1,S(),j.unmount(),V0(),u.replaceChildren(),s?.())}}};function og(r,a){const o=r instanceof HTMLElement?a:a??r;if(!o)throw new TypeError("AiDanaChat.mountLauncher: options are required");if(r instanceof HTMLElement)return lc(r,o,"launcher");const s=document.createElement("div");return s.setAttribute("data-ai-dana-chat",""),s.style.setProperty("all","initial"),document.body.append(s),lc(s,o,"launcher",()=>{s.remove()})}const ig=(r,a)=>lc(r,a,"window"),sg=["light","dark","auto"];class cc extends HTMLElement{constructor(){super(...arguments),sn(this,"handle")}connectedCallback(){const a=this.getAttribute("theme"),o=this.getAttribute("position"),s=this.getAttribute("site-key"),u=this.getAttribute("api-url"),p={...s?{siteKey:s}:{},...u===null?{}:{apiUrl:u},...this.getAttribute("lang")?{lang:this.getAttribute("lang")}:{},...a&&sg.includes(a)?{theme:{scheme:a}}:{},...o==="bottom-left"||o==="bottom-right"?{position:o}:{},draggable:this.getAttribute("draggable")!=="false",defaultOpen:this.hasAttribute("open"),onOpenChange:f=>this.dispatchEvent(new CustomEvent("openchange",{detail:{open:f}}))};this.handle=this.hasAttribute("launcher")?og(this,p):ig(this,p)}disconnectedCallback(){this.handle?.unmount(),this.handle=void 0}attributeChangedCallback(a,o,s){!this.handle||o===s||(a==="lang"&&s&&this.handle.setLang(s),a==="theme"&&s&&sg.includes(s)&&this.handle.setTheme({scheme:s}))}open(){this.handle?.open()}close(){this.handle?.close()}setTheme(a){this.handle?.setTheme(a)}setLang(a){this.handle?.setLang(a)}}sn(cc,"observedAttributes",["lang","theme"]),typeof customElements<"u"&&!customElements.get("ai-dana-chat")&&customElements.define("ai-dana-chat",cc);export{xw as A,Mr as C,ag as D,Mp as S,Zb as a,j0 as b,v0 as c,x as d,fn as e,Rh as f,op as g,jl as h,Ml as i,l as j,cc as k,og as l,ig as m,y0 as o,w0 as r,na as s,Ep as t,G as u,B as v,Io as w};
|