1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="94b8c960-2ce8-e931-9c17-c4a389346c22")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,570606,e=>{"use strict";var t,r,n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=(t=function(e){return n.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)},r=Object.create(null),function(e){return void 0===r[e]&&(r[e]=t(e)),r[e]});e.s(["default",0,i],570606)},185866,909637,442007,472226,782304,e=>{"use strict";var t,r=e.i(22114);let n=(0,r.createContext)({});e.s(["MotionContext",0,n],185866);var i=e.i(513768),a=e.i(483878);function o(e){return Array.isArray(e)?e.join(" "):e}e.s(["useCreateMotionContext",0,function(e){let{initial:t,animate:s}=function(e,t){if((0,i.isControllingVariants)(e)){let{initial:t,animate:r}=e;return{initial:!1===t||(0,a.isVariantLabel)(t)?t:void 0,animate:(0,a.isVariantLabel)(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,r.useContext)(n));return(0,r.useMemo)(()=>({initial:t,animate:s}),[o(t),o(s)])}],909637);var s=e.i(538305),l=e.i(344277),u=e.i(456567);let c=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function d(e,t,r){for(let n in t)(0,s.isMotionValue)(t[n])||(0,l.isForcedMotionValue)(n,r)||(e[n]=t[n])}e.s(["createHtmlRenderState",0,c],442007);var p=e.i(787502);let f=()=>({...c(),attrs:{}});e.s(["createSvgRenderState",0,f],472226);
2var m=e.i(872331);let h=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function g(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||h.has(e)}let v=e=>!g(e);try{t=e.r(570606).default,"function"==typeof t&&(v=e=>e.startsWith("on")?!g(e):t(e))}catch{}var y=e.i(794848);e.s(["useRender",0,function(e,t,n,{latestValues:i},a,o=!1){let l=((0,y.isSVGComponent)(e)?function(e,t,n,i){let a=(0,r.useMemo)(()=>{let r=f();return(0,p.buildSVGAttrs)(r,t,(0,m.isSVGTag)(i),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};d(t,e.style,e),a.style={...t,...a.style}}return a}:function(e,t){let n,i,a={},o=(n=e.style||{},d(i={},n,e),Object.assign(i,function({transformTemplate:e},t){return(0,r.useMemo)(()=>{let r=c();return(0,u.buildHTMLStyles)(r,t,e),Object.assign({},r.vars,r.style)},[t])}(e,t)),i);return e.drag&&!1!==e.dragListener&&(a.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=o,a})(t,i,a,e),h=function(e,t,r){let n={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(v(i)||!0===r&&g(i)||!t&&!g(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(t,"string"==typeof e,o),b=e!==r.Fragment?{...h,...l,ref:n}:{},{children:x}=t,w=(0,r.useMemo)(()=>(0,s.isMotionValue)(x)?x.get():x,[x]);return(0,r.createElement)(e,{...b,children:w})}],782304)},291967,496026,e=>{"use strict";"u">typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",0,function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}],291967);var t=e.i(22114),r=e.i(813919);e.s(["createContext",0,function(e,n){let i=t.createContext(n),a=e=>{let{children:n,...a}=e,o=t.useMemo(()=>a,Object.values(a));return(0,r.jsx)(i.Provider,{value:o,children:n})};return a.displayName=e+"Provider",[a,function(r){let a=t.useContext(i);if(a)return a;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${e}\``)}]},"createContextScope",0,function(e,n=[]){let i=[],a=()=>{let r=i.map(e=>t.createContext(e));return function(n){let i=n?.[e]||r;return t.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return a.scopeName=e,[function(n,a){let o=t.createContext(a),s=i.length;i=[...i,a];let l=n=>{let{scope:i,children:a,...l}=n,u=i?.[e]?.[s]||o,c=t.useMemo(()=>l,Object.values(l));return(0,r.jsx)(u.Provider,{value:c,children:a})};return l.displayName=n+"Provider",[l,function(r,i){let l=i?.[e]?.[s]||o,u=t.useContext(l);if(u)return u;if(void 0!==a)return a;throw Error(`\`${r}\` must be used within \`${n}\``)}]},function(...e){let r=e[0];if(1===e.length)return r;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return t.useMemo(()=>({[`__scope${r.scopeName}`]:i}),[i])}};return n.scopeName=r.scopeName,n}(a,...n)]}],496026)},109254,633126,e=>{"use strict";var t=e.i(22114),r=e.i(496026),n=e.i(424692),i=e.i(519399),a=e.i(813919);e.s(["createCollection",0,function(e){let o=e+"CollectionProvider",[s,l]=(0,r.createContextScope)(o),[u,c]=s(o,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:r,children:n}=e,i=t.default.useRef(null),o=t.default.useRef(new Map).current;return(0,a.jsx)(u,{scope:r,itemMap:o,collectionRef:i,children:n})};d.displayName=o;let p=e+"CollectionSlot",f=(0,i.createSlot)(p),m=t.default.forwardRef((e,t)=>{let{scope:r,children:i}=e,o=c(p,r),s=(0,n.useComposedRefs)(t,o.collectionRef);return(0,a.jsx)(f,{ref:s,children:i})});m.displayName=p;let h=e+"CollectionItemSlot",g="data-radix-collection-item",v=(0,i.createSlot)(h),y=t.default.forwardRef((e,r)=>{let{scope:i,children:o,...s}=e,l=t.default.useRef(null),u=(0,n.useComposedRefs)(r,l),d=c(h,i);return t.default.useEffect(()=>(d.itemMap.set(l,{ref:l,...s}),()=>void d.itemMap.delete(l))),(0,a.jsx)(v,{...{[g]:""},ref:u,children:o})});return y.displayName=h,[{Provider:d,Slot:m,ItemSlot:y},function(r){let n=c(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(n.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[n.collectionRef,n.itemMap])},l]}],109254);var o=t.createContext(void 0);e.s(["useDirection",0,function(e){let r=t.useContext(o);return e||r||"ltr"}],633126)},424692,e=>{"use strict";var t=e.i(22114);function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function n(...e){return t=>{let n=!1,i=e.map(e=>{let i=r(e,t);return n||"function"!=typeof i||(n=!0),i});if(n)return()=>{for(let t=0;t<i.length;t++){let n=i[t];"function"==typeof n?n():r(e[t],null)}}}}e.s(["composeRefs",0,n,"useComposedRefs",0,function(...e){return t.useCallback(n(...e),e)}])},740981,143728,90129,1299,73772,864510,e=>{"use strict";let t;var r,n,i,a,o,s,l,u=e.i(22114),c=e.i(291967),d=e.i(424692),p=e.i(496026),f=e.i(896223),m=e.i(443510),h=e.i(711176),g=e.i(368044),v=e.i(500367),y=e.i(813919),b="focusScope.autoFocusOnMount",x="focusScope.autoFocusOnUnmount",w={bubbles:!1,cancelable:!0},_=u.forwardRef((e,t)=>
2{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,l]=u.useState(null),c=(0,v.useCallbackRef)(i),p=(0,v.useCallbackRef)(a),f=u.useRef(null),m=(0,d.useComposedRefs)(t,e=>l(e)),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(n){let e=function(e){if(h.paused||!s)return;let t=e.target;s.contains(t)?f.current=t:E(f.current,{select:!0})},t=function(e){if(h.paused||!s)return;let t=e.relatedTarget;null!==t&&(s.contains(t)||E(f.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&E(s)});return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,s,h.paused]),u.useEffect(()=>{if(s){T.add(h);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(b,w);s.addEventListener(b,c),s.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(E(n,{select:t}),document.activeElement!==r)return}(k(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&E(s))}return()=>{s.removeEventListener(b,c),setTimeout(()=>{let t=new CustomEvent(x,w);s.addEventListener(x,p),s.dispatchEvent(t),t.defaultPrevented||E(e??document.body,{select:!0}),s.removeEventListener(x,p),T.remove(h)},0)}}},[s,c,p,h]);let _=u.useCallback(e=>{if(!r&&!n||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){var a;let t,n=e.currentTarget,[o,s]=[S(t=k(a=n),a),S(t.reverse(),a)];o&&s?e.shiftKey||i!==s?e.shiftKey&&i===o&&(e.preventDefault(),r&&E(s,{select:!0})):(e.preventDefault(),r&&E(o,{select:!0})):i===n&&e.preventDefault()}},[r,n,h.paused]);return(0,y.jsx)(g.Primitive.div,{tabIndex:-1,...o,ref:m,onKeyDown:_})});function k(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function S(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function E(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}_.displayName="FocusScope";var T=(t=[],{add(e){let r=t[0];e!==r&&r?.pause(),(t=j(t,e)).unshift(e)},remove(e){t=j(t,e),t[0]?.resume()}});function j(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}e.s(["FocusScope",0,_],143728);var I=e.i(292304),C=e.i(384328),A=0;function N(){u.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??O()),document.body.insertAdjacentElement("beforeend",e[1]??O()),A++,()=>{1===A&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),A--}},[])}function O(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}e.s(["useFocusGuards",0,N],90129);var R=e.i(824627),P="right-scroll-bar-position",D="width-before-scroll-bar";function $(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var L="u">typeof window?u.useLayoutEffect:u.useEffect,M=new WeakMap,U=(void 0===r&&(r={}),(void 0===n&&(n=function(e){return e}),i=[],a=!1,o={read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:null},useMedium:function(e){var t=n(e,a);return i.push(t),function(){i=i.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;i.length;){var t=i;i=[],t.forEach(e)}i={push:function(t){return e(t)},filter:function(){return i}}},assignMedium:function(e){a=!0;var t=[];if(i.length){var r=i;i=[],r.forEach(e),t=i}var n=function(){var r=t;t=[],r.forEach(e)},o=function(){return Promise.resolve().then(n)};o(),i={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),i}}}}).options=(0,R.__assign)({async:!0,ssr:!1},r),o),z=function(){},F=u.forwardRef(function(e,t){var r,n,i,a,o=u.useRef(null),s=u.useState({onScrollCapture:z,onWheelCapture:z,onTouchMoveCapture:z}),l=s[0],c=s[1],d=e.forwardProps,p=e.children,f=e.className,m=e.removeScrollBar,h=e.enabled,g=e.shards,v=e.sideCar,y=e.noRelative,b=e.noIsolation,x=e.inert,w=e.allowPinchZoom,_=e.as,k=e.gapMode,S=(0,R.__rest)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=(r=[o,t],n=function(e){return r.forEach(function(t){return $(t,e)})},(i=(0,u.useState)(function(){return{value:null,callback:n,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=n,a=i.facade,L(function(){var e=M.get(a);if(e){var t=new Set(e),n=new Set(r),i=a.current;t.forEach(function(e){n.has(e)||$(e,null)}
2),n.forEach(function(e){t.has(e)||$(e,i)})}M.set(a,r)},[r]),a),T=(0,R.__assign)((0,R.__assign)({},S),l);return u.createElement(u.Fragment,null,h&&u.createElement(v,{sideCar:U,removeScrollBar:m,shards:g,noRelative:y,noIsolation:b,inert:x,setCallbacks:c,allowPinchZoom:!!w,lockRef:o,gapMode:k}),d?u.cloneElement(u.Children.only(p),(0,R.__assign)((0,R.__assign)({},T),{ref:E})):u.createElement(void 0===_?"div":_,(0,R.__assign)({},T,{className:f,ref:E}),p))});F.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},F.classNames={fullWidth:D,zeroRight:P};var q=function(e){var t=e.sideCar,r=(0,R.__rest)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return u.createElement(n,(0,R.__assign)({},r))};q.isSideCarExport=!0;var Z=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=l||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var n,i;(n=t).styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},V=function(){var e=Z();return function(t,r){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},B=function(){var e=V();return function(t){return e(t.styles,t.dynamic),null}},H={left:0,top:0,right:0,gap:0},W=function(e){return parseInt(e||"",10)||0},G=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[W(r),W(n),W(i)]},K=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return H;var t=G(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Y=B(),X="data-scroll-locked",J=function(e,t,r,n){var i=e.left,a=e.top,o=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(s,"px ").concat(n,";\n }\n body[").concat(X,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(o,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(P," {\n right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(D," {\n margin-right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(P," .").concat(P," {\n right: 0 ").concat(n,";\n }\n \n .").concat(D," .").concat(D," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(X,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Q=function(){var e=parseInt(document.body.getAttribute(X)||"0",10);return isFinite(e)?e:0},ee=function(){u.useEffect(function(){return document.body.setAttribute(X,(Q()+1).toString()),function(){var e=Q()-1;e<=0?document.body.removeAttribute(X):document.body.setAttribute(X,e.toString())}},[])},et=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=void 0===n?"margin":n;ee();var a=u.useMemo(function(){return K(i)},[i]);return u.createElement(Y,{styles:J(a,!t,i,r?"":"!important")})},er=!1;if("u">typeof window)try{var en=Object.defineProperty({},"passive",{get:function(){return er=!0,!0}});window.addEventListener("test",en,en),window.removeEventListener("test",en,en)}catch(e){er=!1}var ei=!!er&&{passive:!1},ea=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},eo=function(e,t){var r=t.ownerDocument,n=t;do{if("u">
2typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),es(e,n)){var i=el(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body)return!1},es=function(e,t){return"v"===e?ea(t,"overflowY"):ea(t,"overflowX")},el=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eu=function(e,t,r,n,i){var a,o=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),s=o*n,l=r.target,u=t.contains(l),c=!1,d=s>0,p=0,f=0;do{if(!l)break;var m=el(e,l),h=m[0],g=m[1]-m[2]-o*h;(h||g)&&es(e,l)&&(p+=g,f+=h);var v=l.parentNode;l=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!u&&l!==document.body||u&&(t.contains(l)||t===l))return d&&(i&&1>Math.abs(p)||!i&&s>p)?c=!0:!d&&(i&&1>Math.abs(f)||!i&&-s>f)&&(c=!0),c},ec=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ed=function(e){return[e.deltaX,e.deltaY]},ep=function(e){return e&&"current"in e?e.current:e},ef=0,em=[];let eh=(s=function(e){var t=u.useRef([]),r=u.useRef([0,0]),n=u.useRef(),i=u.useState(ef++)[0],a=u.useState(B)[0],o=u.useRef(e);u.useEffect(function(){o.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,R.__spreadArray)([e.lockRef.current],(e.shards||[]).map(ep),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=u.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!o.current.allowPinchZoom;var i,a=ec(e),s=r.current,l="deltaX"in e?e.deltaX:s[0]-a[0],u="deltaY"in e?e.deltaY:s[1]-a[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var p=window.getSelection(),f=p&&p.anchorNode;if(f&&(f===c||f.contains(c)))return!1;var m=eo(d,c);if(!m)return!0;if(m?i=d:(i="v"===d?"h":"v",m=eo(d,c)),!m)return!1;if(!n.current&&"changedTouches"in e&&(l||u)&&(n.current=i),!i)return!0;var h=n.current||i;return eu(h,t,e,"h"===h?l:u,!0)},[]),l=u.useCallback(function(e){if(em.length&&em[em.length-1]===a){var r="deltaY"in e?ed(e):ec(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var i=(o.current.shards||[]).map(ep).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!o.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=u.useCallback(function(e,r,n,i){var a={name:e,delta:r,target:n,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=u.useCallback(function(e){r.current=ec(e),n.current=void 0},[]),p=u.useCallback(function(t){c(t.type,ed(t),t.target,s(t,e.lockRef.current))},[]),f=u.useCallback(function(t){c(t.type,ec(t),t.target,s(t,e.lockRef.current))},[]);u.useEffect(function(){return em.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",l,ei),document.addEventListener("touchmove",l,ei),document.addEventListener("touchstart",d,ei),function(){em=em.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,ei),document.removeEventListener("touchmove",l,ei),document.removeEventListener("touchstart",d,ei)}},[]);var m=e.removeScrollBar,h=e.inert;return u.createElement(u.Fragment,null,h?u.createElement(a,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?u.createElement(et,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},U.useMedium(s),q);var eg=u.forwardRef(function(e,t){return u.createElement(F,(0,R.__assign)({},e,{ref:t,sideCar:eh}))});
2eg.classNames=F.classNames,e.s(["RemoveScroll",0,eg],1299);var ev=new WeakMap,ey=new WeakMap,eb={},ex=0,ew=function(e){return e&&(e.host||ew(e.parentNode))},e_=function(e,t,r,n){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=ew(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});eb[r]||(eb[r]=new WeakMap);var a=eb[r],o=[],s=new Set,l=new Set(i),u=function(e){!e||s.has(e)||(s.add(e),u(e.parentNode))};i.forEach(u);var c=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(n),i=null!==t&&"false"!==t,l=(ev.get(e)||0)+1,u=(a.get(e)||0)+1;ev.set(e,l),a.set(e,u),o.push(e),1===l&&i&&ey.set(e,!0),1===u&&e.setAttribute(r,"true"),i||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),s.clear(),ex++,function(){o.forEach(function(e){var t=ev.get(e)-1,i=a.get(e)-1;ev.set(e,t),a.set(e,i),t||(ey.has(e)||e.removeAttribute(n),ey.delete(e)),i||e.removeAttribute(r)}),--ex||(ev=new WeakMap,ev=new WeakMap,ey=new WeakMap,eb={})}},ek=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),e_(n,i,r,"aria-hidden")):function(){return null}};e.s(["hideOthers",0,ek],73772);var eS=e.i(519399),eE="Dialog",[eT,ej]=(0,p.createContextScope)(eE),[eI,eC]=eT(eE),eA=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=u.useRef(null),l=u.useRef(null),[c,d]=(0,m.useControllableState)({prop:n,defaultProp:i??!1,onChange:a,caller:eE});return(0,y.jsx)(eI,{scope:t,triggerRef:s,contentRef:l,contentId:(0,f.useId)(),titleId:(0,f.useId)(),descriptionId:(0,f.useId)(),open:c,onOpenChange:d,onOpenToggle:u.useCallback(()=>d(e=>!e),[d]),modal:o,children:r})};eA.displayName=eE;var eN="DialogTrigger",eO=u.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=eC(eN,r),a=(0,d.useComposedRefs)(t,i.triggerRef);return(0,y.jsx)(g.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":eJ(i.open),...n,ref:a,onClick:(0,c.composeEventHandlers)(e.onClick,i.onOpenToggle)})});eO.displayName=eN;var eR="DialogPortal",[eP,eD]=eT(eR,{forceMount:void 0}),e$=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:i}=e,a=eC(eR,t);return(0,y.jsx)(eP,{scope:t,forceMount:r,children:u.Children.map(n,e=>(0,y.jsx)(C.Presence,{present:r||a.open,children:(0,y.jsx)(I.Portal,{asChild:!0,container:i,children:e})}))})};e$.displayName=eR;var eL="DialogOverlay",eM=u.forwardRef((e,t)=>{let r=eD(eL,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,a=eC(eL,e.__scopeDialog);return a.modal?(0,y.jsx)(C.Presence,{present:n||a.open,children:(0,y.jsx)(ez,{...i,ref:t})}):null});eM.displayName=eL;var eU=(0,eS.createSlot)("DialogOverlay.RemoveScroll"),ez=u.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=eC(eL,r);return(0,y.jsx)(eg,{as:eU,allowPinchZoom:!0,shards:[i.contentRef],children:(0,y.jsx)(g.Primitive.div,{"data-state":eJ(i.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),eF="DialogContent",eq=u.forwardRef((e,t)=>{let r=eD(eF,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,a=eC(eF,e.__scopeDialog);return(0,y.jsx)(C.Presence,{present:n||a.open,children:a.modal?(0,y.jsx)(eZ,{...i,ref:t}):(0,y.jsx)(eV,{...i,ref:t})})});eq.displayName=eF;var eZ=u.forwardRef((e,t)=>{let r=eC(eF,e.__scopeDialog),n=u.useRef(null),i=(0,d.useComposedRefs)(t,r.contentRef,n);return u.useEffect(()=>{let e=n.current;if(e)return ek(e)},[]),(0,y.jsx)(eB,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,c.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:(0,c.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,c.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())})}),eV=u.forwardRef((e,t)=>
2{let r=eC(eF,e.__scopeDialog),n=u.useRef(!1),i=u.useRef(!1);return(0,y.jsx)(eB,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let a=t.target;r.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),eB=u.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=eC(eF,r),l=u.useRef(null),c=(0,d.useComposedRefs)(t,l);return N(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(_,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,y.jsx)(h.DismissableLayer,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":eJ(s.open),...o,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(e2,{titleId:s.titleId}),(0,y.jsx)(e4,{contentRef:l,descriptionId:s.descriptionId})]})]})}),eH="DialogTitle",eW=u.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=eC(eH,r);return(0,y.jsx)(g.Primitive.h2,{id:i.titleId,...n,ref:t})});eW.displayName=eH;var eG="DialogDescription",eK=u.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=eC(eG,r);return(0,y.jsx)(g.Primitive.p,{id:i.descriptionId,...n,ref:t})});eK.displayName=eG;var eY="DialogClose",eX=u.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=eC(eY,r);return(0,y.jsx)(g.Primitive.button,{type:"button",...n,ref:t,onClick:(0,c.composeEventHandlers)(e.onClick,()=>i.onOpenChange(!1))})});function eJ(e){return e?"open":"closed"}eX.displayName=eY;var eQ="DialogTitleWarning",[e0,e1]=(0,p.createContext)(eQ,{contentName:eF,titleName:eH,docsSlug:"dialog"}),e2=({titleId:e})=>{let t=e1(eQ),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 3 4If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 5 6For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},e4=({contentRef:e,descriptionId:t})=>{let r=e1("DialogDescriptionWarning"),n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return u.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null};e.s(["Close",0,eX,"Content",0,eq,"Description",0,eK,"Overlay",0,eM,"Portal",0,e$,"Root",0,eA,"Title",0,eW,"Trigger",0,eO],740981);var e3=e.i(821666),e6=e.i(139499);function e5({...e}){return(0,y.jsx)(e$,{"data-slot":"dialog-portal",...e})}function e9({className:e,...t}){return(0,y.jsx)(eM,{className:(0,e6.cn)("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-[dialogOverlayShow_100ms_ease-out] data-[state=closed]:animate-[dialogOverlayHide_75ms_ease-in]",e),"data-slot":"dialog-overlay",...t})}e.s(["Dialog",0,function({...e}){return(0,y.jsx)(eA,{"data-slot":"dialog",...e})},"DialogClose",0,function({...e}){return(0,y.jsx)(eX,{"data-slot":"dialog-close",...e})},"DialogContent",0,function({className:e,children:t,showCloseButton:r=!0,variant:n="default",...i}){return(0,y.jsxs)(e5,{"data-slot":"dialog-portal",children:["raw"!==n&&(0,y.jsx)(e9,{}),(0,y.jsxs)(eq,{className:(0,e6.cn)("raw"!==n&&"bg-background fixed z-50 w-full shadow-lg inset-0 sm:inset-auto sm:top-[50%] sm:left-[50%] sm:translate-x-[-50%] sm:translate-y-[-50%] data-[state=open]:animate-[dialogContentShow_100ms_ease-out] data-[state=closed]:animate-[dialogContentHide_75ms_ease-in]","default"===n&&"flex flex-col gap-0 overflow-hidden rounded-none border-0 p-0 pb-[env(safe-area-inset-bottom)] sm:max-w-lg sm:h-auto sm:max-h-[calc(100vh-4rem)]","full"===n&&"flex max-h-[calc(100vh-2rem)] max-w-5xl flex-col gap-0 overflow-hidden rounded-none border-0 p-0 sm:max-h-[calc(100vh-4rem)]","vanilla"===n&&"grid gap-4 roun
6ded-lg border p-6","raw"===n&&"fixed z-50",e),"data-slot":"dialog-content",...i,children:[t,r?(0,y.jsxs)(eX,{"aria-label":"Ãnchide",className:"absolute top-2 right-4 rounded-full p-2 text-white transition-colors hover:bg-primary-dark focus:outline-none focus:ring-2 focus:ring-white/50","data-slot":"dialog-close",children:[(0,y.jsx)(e3.XIcon,{size:24}),(0,y.jsx)("span",{className:"sr-only",children:"Ãnchide"})]}):null]})]})},"DialogDescription",0,function({className:e,...t}){return(0,y.jsx)(eK,{className:(0,e6.cn)("text-muted-foreground text-sm",e),"data-slot":"dialog-description",...t})},"DialogFooter",0,function({className:e,...t}){return(0,y.jsx)("div",{className:(0,e6.cn)("flex flex-row justify-end gap-2 p-4 sm:gap-4 border-t-2 border-primary",e),"data-slot":"dialog-footer",...t})},"DialogHeader",0,function({className:e,...t}){return(0,y.jsx)("div",{className:(0,e6.cn)("flex flex-row items-center justify-between gap-0 bg-primary text-white px-4 py-3.5 pr-12 sm:px-6 sm:pr-12",e),"data-slot":"dialog-header",...t})},"DialogOverlay",0,e9,"DialogPortal",0,e5,"DialogTitle",0,function({className:e,...t}){return(0,y.jsx)(eW,{className:(0,e6.cn)("text-xl font-bold",e),"data-slot":"dialog-title",...t})},"DialogTrigger",0,function({...e}){return(0,y.jsx)(eO,{"data-slot":"dialog-trigger",...e})}],864510)},711176,500367,292304,e=>{"use strict";var t,r=e.i(22114),n=e.i(291967),i=e.i(368044),a=e.i(424692);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}e.s(["useCallbackRef",0,o],500367);var s=e.i(813919),l="dismissableLayer.update",u=r.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),c=r.forwardRef((e,c)=>{let{disableOutsidePointerEvents:f=!1,onEscapeKeyDown:m,onPointerDownOutside:h,onFocusOutside:g,onInteractOutside:v,onDismiss:y,...b}=e,x=r.useContext(u),[w,_]=r.useState(null),k=w?.ownerDocument??globalThis?.document,[,S]=r.useState({}),E=(0,a.useComposedRefs)(c,e=>_(e)),T=Array.from(x.layers),[j]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),I=T.indexOf(j),C=w?T.indexOf(w):-1,A=x.layersWithOutsidePointerEventsDisabled.size>0,N=C>=I,O=function(e,t=globalThis?.document){let n=o(e),i=r.useRef(!1),a=r.useRef(()=>{});return r.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let r=function(){p("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}else t.removeEventListener("click",a.current);i.current=!1},r=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(r),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,r=[...x.branches].some(e=>e.contains(t));N&&!r&&(h?.(e),v?.(e),e.defaultPrevented||y?.())},k),R=function(e,t=globalThis?.document){let n=o(e),i=r.useRef(!1);return r.useEffect(()=>{let e=e=>{e.target&&!i.current&&p("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...x.branches].some(e=>e.contains(t))&&(g?.(e),v?.(e),e.defaultPrevented||y?.())},k);return!function(e,t=globalThis?.document){let n=o(e);r.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{C===x.layers.size-1&&(m?.(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))},k),r.useEffect(()=>{if(w)return f&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(t=k.body.style.pointerEvents,k.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(w)),x.layers.add(w),d(),()=>{f&&1===x.layersWithOutsidePointerEventsDisabled.size&&(k.body.style.pointerEvents=t)}},[w,k,f,x]),r.useEffect(()=>()=>{w&&(x.layers.delete(w),x.layersWithOutsidePointerEventsDisabled.delete(w),d())},[w,x]),r.useEffect(()=>{let e=()=>S({});return document.addEventListener(l,e),()=>document.removeEventListener(l,e)},[]),(0,s.jsx)(i.Primitive.div,{...b,ref:E,style:{pointerEvents:A?N?"auto":"none":void 0,...e.style},onFocusCapture:(0,n.composeEventHandlers)(e.onFocusCapture,R.onFocusCapture),onBlurCapture:(0,n.composeEventHandlers)(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:(0,n.composeEventHandlers)(e.onPointerDownCapture,O.onPointerDownCapture)})});function d(){let e=new CustomEvent(l);document.dispatchEvent(e)}function p(e,t,r,{discrete:n}){let a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?(0,i.dispatchDiscreteCustomEvent)(a,o):a.dispatchEvent(o)}c.displayName="DismissableLayer",r.forwardRef((e,t)=>
6{let n=r.useContext(u),o=r.useRef(null),l=(0,a.useComposedRefs)(t,o);return r.useEffect(()=>{let e=o.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,s.jsx)(i.Primitive.div,{...e,ref:l})}).displayName="DismissableLayerBranch",e.s(["DismissableLayer",0,c],711176);var f=e.i(552813),m=e.i(426813),h=r.forwardRef((e,t)=>{let{container:n,...a}=e,[o,l]=r.useState(!1);(0,m.useLayoutEffect)(()=>l(!0),[]);let u=n||o&&globalThis?.document?.body;return u?f.default.createPortal((0,s.jsx)(i.Primitive.div,{...a,ref:t}),u):null});h.displayName="Portal",e.s(["Portal",0,h],292304)},896223,426813,e=>{"use strict";var t=e.i(22114),r=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",0,r],426813);var n=t[" useId ".trim().toString()]||(()=>void 0),i=0;e.s(["useId",0,function(e){let[a,o]=t.useState(n());return r(()=>{e||o(e=>e??String(i++))},[e]),e||(a?`radix-${a}`:"")}],896223)},685491,546801,e=>{"use strict";var t=e.i(22114);let r=["top","right","bottom","left"],n=Math.min,i=Math.max,a=Math.round,o=Math.floor,s=e=>({x:e,y:e}),l={left:"right",right:"left",bottom:"top",top:"bottom"},u={start:"end",end:"start"};function c(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function f(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}let h=new Set(["top","bottom"]);function g(e){return h.has(d(e))?"y":"x"}function v(e){return e.replace(/start|end/g,e=>u[e])}let y=["left","right"],b=["right","left"],x=["top","bottom"],w=["bottom","top"];function _(e){return e.replace(/left|right|bottom|top/g,e=>l[e])}function k(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function S(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function E(e,t,r){let n,{reference:i,floating:a}=e,o=g(t),s=f(g(t)),l=m(s),u=d(t),c="y"===o,h=i.x+i.width/2-a.width/2,v=i.y+i.height/2-a.height/2,y=i[l]/2-a[l]/2;switch(u){case"top":n={x:h,y:i.y-a.height};break;case"bottom":n={x:h,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:v};break;case"left":n={x:i.x-a.width,y:v};break;default:n={x:i.x,y:i.y}}switch(p(t)){case"start":n[s]-=y*(r&&c?-1:1);break;case"end":n[s]+=y*(r&&c?-1:1)}return n}let T=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:o}=r,s=a.filter(Boolean),l=await (null==o.isRTL?void 0:o.isRTL(t)),u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=E(u,n,l),p=n,f={},m=0;for(let r=0;r<s.length;r++){let{name:a,fn:h}=s[r],{x:g,y:v,data:y,reset:b}=await h({x:c,y:d,initialPlacement:n,placement:p,strategy:i,middlewareData:f,re
6cts:u,platform:o,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=v?v:d,f={...f,[a]:{...f[a],...y}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(u=!0===b.rects?await o.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:c,y:d}=E(u,p,l)),r=-1)}return{x:c,y:d,placement:p,strategy:i,middlewareData:f}};async function j(e,t){var r;void 0===t&&(t={});let{x:n,y:i,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:f=!1,padding:m=0}=c(t,e),h=k(m),g=s[f?"floating"===p?"reference":"floating":p],v=S(await a.getClippingRect({element:null==(r=await (null==a.isElement?void 0:a.isElement(g)))||r?g:g.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:l})),y="floating"===p?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,b=await (null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),x=await (null==a.isElement?void 0:a.isElement(b))&&await (null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},w=S(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(v.top-w.top+h.top)/x.y,bottom:(w.bottom-v.bottom+h.bottom)/x.y,left:(v.left-w.left+h.left)/x.x,right:(w.right-v.right+h.right)/x.x}}function I(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function C(e){return r.some(t=>e[t]>=0)}let A=new Set(["left","top"]);async function N(e,t){let{placement:r,platform:n,elements:i}=e,a=await (null==n.isRTL?void 0:n.isRTL(i.floating)),o=d(r),s=p(r),l="y"===g(r),u=A.has(o)?-1:1,f=a&&l?-1:1,m=c(t,e),{mainAxis:h,crossAxis:v,alignmentAxis:y}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return s&&"number"==typeof y&&(v="end"===s?-1*y:y),l?{x:v*f,y:h*u}:{x:h*u,y:v*f}}function O(){return"u">typeof window}function R(e){return $(e)?(e.nodeName||"").toLowerCase():"#document"}function P(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function D(e){var t;return null==(t=($(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function $(e){return!!O()&&(e instanceof Node||e instanceof P(e).Node)}function L(e){return!!O()&&(e instanceof Element||e instanceof P(e).Element)}function M(e){return!!O()&&(e instanceof HTMLElement||e instanceof P(e).HTMLElement)}function U(e){return!(!O()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof P(e).ShadowRoot)}let z=new Set(["inline","contents"]);function F(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!z.has(i)}let q=new Set(["table","td","th"]),Z=[":popover-open",":modal"];function V(e){return Z.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let B=["transform","translate","scale","rotate","perspective"],H=["transform","translate","scale","rotate","perspective","filter"],W=["paint","layout","strict","content"];function G(e){let t=K(),r=L(e)?J(e):e;return B.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||H.some(e=>(r.willChange||"").includes(e))||W.some(e=>(r.contain||"").includes(e))}function K(){return!("u"<typeof CSS)&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let Y=new Set(["html","body","#document"]);function X(e){return Y.has(R(e))}function J(e){return P(e).getComputedStyle(e)}function Q(e){return L(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ee(e){if("html"===R(e))return e;let t=e.assignedSlot||e.parentNode||U(e)&&e.host||D(e);return U(t)?t.host:t}function et(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let i=function e(t){let r=ee(t);return X(r)?t.ownerDocument?t.ownerDocument.body:t.body:M(r)&&F(r)?r:e(r)}(e),a=i===(null==(n=e.ownerDocument)?void 0:n.body),o=P(i);if(a){let e=er(o);
6return t.concat(o,o.visualViewport||[],F(i)?i:[],e&&r?et(e):[])}return t.concat(i,et(i,[],r))}function er(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function en(e){let t=J(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=M(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,l=a(r)!==o||a(n)!==s;return l&&(r=o,n=s),{width:r,height:n,$:l}}function ei(e){return L(e)?e:e.contextElement}function ea(e){let t=ei(e);if(!M(t))return s(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=en(t),l=(o?a(r.width):r.width)/n,u=(o?a(r.height):r.height)/i;return l&&Number.isFinite(l)||(l=1),u&&Number.isFinite(u)||(u=1),{x:l,y:u}}let eo=s(0);function es(e){let t=P(e);return K()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eo}function el(e,t,r,n){var i;void 0===t&&(t=!1),void 0===r&&(r=!1);let a=e.getBoundingClientRect(),o=ei(e),l=s(1);t&&(n?L(n)&&(l=ea(n)):l=ea(e));let u=(void 0===(i=r)&&(i=!1),n&&(!i||n===P(o))&&i)?es(o):s(0),c=(a.left+u.x)/l.x,d=(a.top+u.y)/l.y,p=a.width/l.x,f=a.height/l.y;if(o){let e=P(o),t=n&&L(n)?P(n):n,r=e,i=er(r);for(;i&&n&&t!==r;){let e=ea(i),t=i.getBoundingClientRect(),n=J(i),a=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;c*=e.x,d*=e.y,p*=e.x,f*=e.y,c+=a,d+=o,i=er(r=P(i))}}return S({width:p,height:f,x:c,y:d})}function eu(e,t){let r=Q(e).scrollLeft;return t?t.left+r:el(D(e)).left+r}function ec(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-eu(e,r),y:r.top+t.scrollTop}}let ed=new Set(["absolute","fixed"]);function ep(e,t,r){var n;let a;if("viewport"===t)a=function(e,t){let r=P(e),n=D(e),i=r.visualViewport,a=n.clientWidth,o=n.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;let e=K();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}let u=eu(n);if(u<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,o=Math.abs(n.clientWidth-t.clientWidth-i);o<=25&&(a-=o)}else u<=25&&(a+=u);return{width:a,height:o,x:s,y:l}}(e,r);else if("document"===t){let t,r,o,s,l,u,c;n=D(e),t=D(n),r=Q(n),o=n.ownerDocument.body,s=i(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=i(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),u=-r.scrollLeft+eu(n),c=-r.scrollTop,"rtl"===J(o).direction&&(u+=i(t.clientWidth,o.clientWidth)-s),a={width:s,height:l,x:u,y:c}}else if(L(t)){let e,n,i,o,l,u;n=(e=el(t,!0,"fixed"===r)).top+t.clientTop,i=e.left+t.clientLeft,o=M(t)?ea(t):s(1),l=t.clientWidth*o.x,u=t.clientHeight*o.y,a={width:l,height:u,x:i*o.x,y:n*o.y}}else{let r=es(e);a={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return S(a)}function ef(e){return"static"===J(e).position}function em(e,t){if(!M(e)||"fixed"===J(e).position)return null;if(t)return t(e);let r=e.offsetParent;return D(e)===r&&(r=r.ownerDocument.body),r}function eh(e,t){var r;let n=P(e);if(V(e))return n;if(!M(e)){let t=ee(e);for(;t&&!X(t);){if(L(t)&&!ef(t))return t;t=ee(t)}return n}let i=em(e,t);for(;i&&(r=i,q.has(R(r)))&&ef(i);)i=em(i,t);return i&&X(i)&&ef(i)&&!G(i)?n:i||function(e){let t=ee(e);for(;M(t)&&!X(t);){if(G(t))return t;if(V(t))break;t=ee(t)}return null}(e)||n}let eg=async function(e){let t=this.getOffsetParent||eh,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=M(t),i=D(t),a="fixed"===r,o=el(e,!0,a,t),l={scrollLeft:0,scrollTop:0},u=s(0);if(n||!n&&!a)if(("body"!==R(t)||F(i))&&(l=Q(t)),n){let e=el(t,!0,a,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&(u.x=eu(i));a&&!n&&i&&(u.x=eu(i));let c=!i||n||a?s(0):ec(i,l);return{x:o.left+l.scrollLeft-u.x-c.x,y:o.top+l.scrollTop-u.y-c.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},ev={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,a="fixed"===i,o=D(n),l=!!t&&V(t.floating);if(n===o||l&&a)return r;let u={scrollLeft:0,scrollTop:0},c=s(1),d=s(0),p=M(n);if((p||!p&&!a)&&(("body"!==R(n)||F(o))&&(u=Q(n)),M(n))){let e=el(n);c=ea(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}let f=!o||p||a?s(0):ec(o,u);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-u.scrollLeft*c.x+d.x+f.x,y:r.y*c.y-u.scrollTop*c.y+d.y+f.y}},getDocumentElement:D,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:a,strategy:o}=e,s=[..."clippingAncestors"===r?V(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=et(e,[],!1).filter(e=>L(e)&&"body"!==R(e)),i=null,a="fixed"===J(e).position,o=a?ee(e):e;for(;L(o)&&!X(o);){let t=J(o),r=G(o);r||"fixed"!==t.position||(i=null),(a?!r&&!i:!r&&"static"===t.position&&!!i&&ed.has(i.position)||F(o)&&!r&&function e(t,r){let n=ee(t);return!(n===r||!L(n)||X(n))&&("fixed"===J(n).position||e(n,r))}(e,o))?n=n.filter(e=>e!==o):i=t,o=ee(o)}return t.set(e,n),n}(t,this._c):[].concat(r),a],l=s[0],u=s.reduce((e,r)=>{let a=ep(t,r,o);return e.top=i(a.top,e.top),e.right=n(a.right,e.right),e.bottom=n(a.bottom,e.bottom),e.left=i(a.left,e.left),e},ep(t,l,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:eh,getElementRects:eg,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=en(e);return{width:t,height:r}},getScale:ea,isElement:L,isRTL:function(e){return"rtl"===J(e).direction}};function ey(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eb=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:a,placement:o,rects:s,platform:l,elements:u,middlewareData:d}=t,{element:h,padding:v=0}=c(e,t)||{};if(null==h)return{};let y=k(v),b={x:r,y:a},x=f(g(o)),w=m(x),_=await l.getDimensions(h),S="y"===x,E=S?"clientHeight":"clientWidth",T=s.reference[w]+s.reference[x]-b[x]-s.floating[w],j=b[x]-s.reference[x],I=await (null==l.getOffsetParent?void 0:l.getOffsetParent(h)),C=I?I[E]:0;C&&await (null==l.isElement?void 0:l.isElement(I))||(C=u.floating[E]||s.floating[w]);let A=C/2-_[w]/2-1,N=n(y[S?"top":"left"],A),O=n(y[S?"bottom":"right"],A),R=C-_[w]-O,P=C/2-_[w]/2+(T/2-j/2),D=i(N,n(P,R)),$=!d.arrow&&null!=p(o)&&P!==D&&s.reference[w]/2-(P<N?N:O)-_[w]/2<0,L=$?P<N?P-N:P-R:0;return{[x]:b[x]+L,data:{[x]:D,centerOffset:P-D-L,...$&&{alignmentOffset:L}},reset:$}}});var ex=e.i(552813),ew="u">typeof document?t.useLayoutEffect:function(){};function e_(e,t){let r,n,i;if(e===t)return!0;
6if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!e_(e[n],t[n]))return!1;return!0}if((r=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!=n--;){let r=i[n];if(("_owner"!==r||!e.$$typeof)&&!e_(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function ek(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eS(e,t){let r=ek(e);return Math.round(t*r)/r}function eE(e){let r=t.useRef(e);return ew(()=>{r.current=e}),r}var eT=e.i(368044),ej=e.i(813919),eI=t.forwardRef((e,t)=>{let{children:r,width:n=10,height:i=5,...a}=e;return(0,ej.jsx)(eT.Primitive.svg,{...a,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,ej.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eI.displayName="Arrow";var eC=e.i(424692),eA=e.i(496026),eN=e.i(500367),eO=e.i(426813),eR="Popper",[eP,eD]=(0,eA.createContextScope)(eR),[e$,eL]=eP(eR),eM=e=>{let{__scopePopper:r,children:n}=e,[i,a]=t.useState(null);return(0,ej.jsx)(e$,{scope:r,anchor:i,onAnchorChange:a,children:n})};eM.displayName=eR;var eU="PopperAnchor",ez=t.forwardRef((e,r)=>{let{__scopePopper:n,virtualRef:i,...a}=e,o=eL(eU,n),s=t.useRef(null),l=(0,eC.useComposedRefs)(r,s),u=t.useRef(null);return t.useEffect(()=>{let e=u.current;u.current=i?.current||s.current,e!==u.current&&o.onAnchorChange(u.current)}),i?null:(0,ej.jsx)(eT.Primitive.div,{...a,ref:l})});ez.displayName=eU;var eF="PopperContent",[eq,eZ]=eP(eF),eV=t.forwardRef((e,r)=>{var a,s,l,u,h,k,S,E,O,R,P,$,L;let{__scopePopper:M,side:U="bottom",sideOffset:z=0,align:F="center",alignOffset:q=0,arrowPadding:Z=0,avoidCollisions:V=!0,collisionBoundary:B=[],collisionPadding:H=0,sticky:W="partial",hideWhenDetached:G=!1,updatePositionStrategy:K="optimized",onPlaced:Y,...X}=e,J=eL(eF,M),[Q,ee]=t.useState(null),er=(0,eC.useComposedRefs)(r,e=>ee(e)),[en,ea]=t.useState(null),eo=function(e){let[r,n]=t.useState(void 0);return(0,eO.useLayoutEffect)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),r}(en),es=eo?.width??0,eu=eo?.height??0,ec="number"==typeof H?H:{top:0,right:0,bottom:0,left:0,...H},ed=Array.isArray(B)?B:[B],ep=ed.length>0,ef={padding:ec,boundary:ed.filter(eG),altBoundary:ep},{refs:em,floatingStyles:eh,placement:eg,isPositioned:eI,middlewareData:eA}=function(e){void 0===e&&(e={});let{placement:r="bottom",strategy:n="absolute",middleware:i=[],platform:a,elements:{reference:o,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,p]=t.useState({x:0,y:0,strategy:n,placement:r,middlewareData:{},isPositioned:!1}),[f,m]=t.useState(i);e_(f,i)||m(i);let[h,g]=t.useState(null),[v,y]=t.useState(null),b=t.useCallback(e=>{e!==k.current&&(k.current=e,g(e))},[]),x=t.useCallback(e=>{e!==S.current&&(S.current=e,y(e))},[]),w=o||h,_=s||v,k=t.useRef(null),S=t.useRef(null),E=t.useRef(d),j=null!=u,I=eE(u),C=eE(a),A=eE(c),N=t.useCallback(()=>{var e,t;let i,a,o;if(!k.current||!S.current)return;let s={placement:r,strategy:n,middleware:f};C.current&&(s.platform=C.current),(e=k.current,t=S.current,i=new Map,o={...(a={platform:ev,...s}).platform,_c:i},T(e,t,{...a,platform:o})).then(e=>{let t={...e,isPositioned:!1!==A.current};O.current&&!e_(E.current,t)&&(E.current=t,ex.flushSync(()=>{p(t)}))})},[f,r,n,C,A]);ew(()=>{!1===c&&E.current.isPositioned&&(E.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[c]);let O=t.useRef(!1);ew(()=>(O.current=!0,()=>{O.current=!1}),[]),ew(()=>{if(w&&(k.current=w),_&&(S.current=_),w&&_){if(I.current)return I.current(w,_,N);N()}},[w,_,N,I,j]);let R=t.useMemo(()=>({reference:k,floating:S,setReference:b,setFloating:x}),[b,x]),P=t.useMemo(()=>({reference:w,floating:_}),[w,_]),D=t.useMemo(()=>{let e={position:n,left:0,top:0};if(!P.floating)return e;let t=eS(P.floating,d.x),r=eS(P.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...ek(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,P.floating,d.x,d.y]);return t.useMemo(()=>({...d,update:N,refs:R,elements:P,floatingStyles:D}),[d,N,R,P,D])}({strategy:"fixed",placement:U+("center"!==F?"-"+F:""),whileElementsMounted:(...e)=>(function(e,t,r,a){let s;void 0===a&&(a={});let{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:p=!1}=a,f=ei(e),m=l||u?[...f?et(f):[],...et(t)]:[];
6m.forEach(e=>{l&&e.addEventListener("scroll",r,{passive:!0}),u&&e.addEventListener("resize",r)});let h=f&&d?function(e,t){let r,a=null,s=D(e);function l(){var e;clearTimeout(r),null==(e=a)||e.disconnect(),a=null}return!function u(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),l();let p=e.getBoundingClientRect(),{left:f,top:m,width:h,height:g}=p;if(c||t(),!h||!g)return;let v={rootMargin:-o(m)+"px "+-o(s.clientWidth-(f+h))+"px "+-o(s.clientHeight-(m+g))+"px "+-o(f)+"px",threshold:i(0,n(1,d))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==d){if(!y)return u();n?u(!1,n):r=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==n||ey(p,e.getBoundingClientRect())||u(),y=!1}try{a=new IntersectionObserver(b,{...v,root:s.ownerDocument})}catch(e){a=new IntersectionObserver(b,v)}a.observe(e)}(!0),l}(f,r):null,g=-1,v=null;c&&(v=new ResizeObserver(e=>{let[n]=e;n&&n.target===f&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),r()}),f&&!p&&v.observe(f),v.observe(t));let y=p?el(e):null;return p&&function t(){let n=el(e);y&&!ey(y,n)&&r(),y=n,s=requestAnimationFrame(t)}(),r(),()=>{var e;m.forEach(e=>{l&&e.removeEventListener("scroll",r),u&&e.removeEventListener("resize",r)}),null==h||h(),null==(e=v)||e.disconnect(),v=null,p&&cancelAnimationFrame(s)}})(...e,{animationFrame:"always"===K}),elements:{reference:J.anchor},middleware:[{...{name:"offset",options:s=a={mainAxis:z+eu,alignmentAxis:q},async fn(e){var t,r;let{x:n,y:i,placement:a,middlewareData:o}=e,l=await N(e,s);return a===(null==(t=o.offset)?void 0:t.placement)&&null!=(r=o.arrow)&&r.alignmentOffset?{}:{x:n+l.x,y:i+l.y,data:{...l,placement:a}}}},options:[a,void 0]},V&&{...{name:"shift",options:h=u={mainAxis:!0,crossAxis:!1,limiter:"partial"===W?{...(l=void 0,{options:l={},fn(e){let{x:t,y:r,placement:n,rects:i,middlewareData:a}=e,{offset:o=0,mainAxis:s=!0,crossAxis:u=!0}=c(l,e),p={x:t,y:r},m=g(n),h=f(m),v=p[h],y=p[m],b=c(o,e),x="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(s){let e="y"===h?"height":"width",t=i.reference[h]-i.floating[e]+x.mainAxis,r=i.reference[h]+i.reference[e]-x.mainAxis;v<t?v=t:v>r&&(v=r)}if(u){var w,_;let e="y"===h?"width":"height",t=A.has(d(n)),r=i.reference[m]-i.floating[e]+(t&&(null==(w=a.offset)?void 0:w[m])||0)+(t?0:x.crossAxis),o=i.reference[m]+i.reference[e]+(t?0:(null==(_=a.offset)?void 0:_[m])||0)-(t?x.crossAxis:0);y<r?y=r:y>o&&(y=o)}return{[h]:v,[m]:y}}}),options:[void 0,void 0]}:void 0,...ef},async fn(e){let{x:t,y:r,placement:a}=e,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...u}=c(h,e),p={x:t,y:r},m=await j(e,u),v=g(d(a)),y=f(v),b=p[y],x=p[v];if(o){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",r=b+m[e],a=b-m[t];b=i(r,n(b,a))}if(s){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",r=x+m[e],a=x-m[t];x=i(r,n(x,a))}let w=l.fn({...e,[y]:b,[v]:x});return{...w,data:{x:w.x-t,y:w.y-r,enabled:{[y]:o,[v]:s}}}}},options:[u,void 0]},V&&{...{name:"flip",options:S=k={...ef},async fn(e){var t,r,n,i,a,o,s,l;let u,h,k,{placement:E,middlewareData:T,rects:I,initialPlacement:C,platform:A,elements:N}=e,{mainAxis:O=!0,crossAxis:R=!0,fallbackPlacements:P,fallbackStrategy:D="bestFit",fallbackAxisSideDirection:$="none",flipAlignment:L=!0,...M}=c(S,e);if(null!=(t=T.arrow)&&t.alignmentOffset)return{};let U=d(E),z=g(C),F=d(C)===C,q=await (null==A.isRTL?void 0:A.isRTL(N.floating)),Z=P||(F||!L?[_(C)]:(u=_(C),[v(C),u,v(u)])),V="none"!==$;!P&&V&&Z.push(...(h=p(C),k=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?b:y;return t?y:b;case"left":case"right":return t?x:w;default:return[]}}(d(C),"start"===$,q),h&&(k=k.map(e=>e+"-"+h),L&&(k=k.concat(k.map(v)))),k));let B=[C,...Z],H=await j(e,M),W=[],G=(null==(r=T.flip)?void 0:r.overflows)||[];if(O&&W.push(H[U]),R){let e,t,r,n,i=(o=E,s=I,void 0===(l=q)&&(l=!1),e=p(o),r=m(t=f(g(o))),n="x"===t?e===(l?"end":"start")?"right":"left":"start"===e?"bottom":"top",s.reference[r]>s.floating[r]&&(n=_(n)),[n,_(n)]);W.push(H[i[0]],H[i[1]])}if(G=[...G,{placement:E,overflows:W}],!W.every(e=>e<=0)){let e=((null==(n=T.flip)?void 0:n.index)||0)+1,t=B[e];if(t&&("alignment"!==R||z===g(t)||G.every(e=>g(e.placement)!==z||e.overflows[0]>0)))return{data:{index:e,overflows:G},reset:{placement:t}};let r=null==(i=G.filter(e=>e.overflows[0]<=0).sort((e,t)=>
6e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!r)switch(D){case"bestFit":{let e=null==(a=G.filter(e=>{if(V){let t=g(e.placement);return t===z||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(r=e);break}case"initialPlacement":r=C}if(E!==r)return{reset:{placement:r}}}return{}}},options:[k,void 0]},{...{name:"size",options:O=E={...ef,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty("--radix-popper-available-width",`${r}px`),o.setProperty("--radix-popper-available-height",`${n}px`),o.setProperty("--radix-popper-anchor-width",`${i}px`),o.setProperty("--radix-popper-anchor-height",`${a}px`)}},async fn(e){var t,r;let a,o,{placement:s,rects:l,platform:u,elements:f}=e,{apply:m=()=>{},...h}=c(O,e),v=await j(e,h),y=d(s),b=p(s),x="y"===g(s),{width:w,height:_}=l.floating;"top"===y||"bottom"===y?(a=y,o=b===(await (null==u.isRTL?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(o=y,a="end"===b?"top":"bottom");let k=_-v.top-v.bottom,S=w-v.left-v.right,E=n(_-v[a],k),T=n(w-v[o],S),I=!e.middlewareData.shift,C=E,A=T;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(A=S),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(C=k),I&&!b){let e=i(v.left,0),t=i(v.right,0),r=i(v.top,0),n=i(v.bottom,0);x?A=w-2*(0!==e||0!==t?e+t:i(v.left,v.right)):C=_-2*(0!==r||0!==n?r+n:i(v.top,v.bottom))}await m({...e,availableWidth:A,availableHeight:C});let N=await u.getDimensions(f.floating);return w!==N.width||_!==N.height?{reset:{rects:!0}}:{}}},options:[E,void 0]},en&&{...{name:"arrow",options:P=R={element:en,padding:Z},fn(e){let{element:t,padding:r}="function"==typeof P?P(e):P;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?eb({element:t.current,padding:r}).fn(e):{}:t?eb({element:t,padding:r}).fn(e):{}}},options:[R,void 0]},eK({arrowWidth:es,arrowHeight:eu}),G&&{...{name:"hide",options:L=$={strategy:"referenceHidden",...ef},async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...n}=c(L,e);switch(r){case"referenceHidden":{let r=I(await j(e,{...n,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:C(r)}}}case"escaped":{let r=I(await j(e,{...n,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:C(r)}}}default:return{}}}},options:[$,void 0]}]}),[eR,eP]=eY(eg),eD=(0,eN.useCallbackRef)(Y);(0,eO.useLayoutEffect)(()=>{eI&&eD?.()},[eI,eD]);let e$=eA.arrow?.x,eM=eA.arrow?.y,eU=eA.arrow?.centerOffset!==0,[ez,eZ]=t.useState();return(0,eO.useLayoutEffect)(()=>{Q&&eZ(window.getComputedStyle(Q).zIndex)},[Q]),(0,ej.jsx)("div",{ref:em.setFloating,"data-radix-popper-content-wrapper":"",style:{...eh,transform:eI?eh.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ez,"--radix-popper-transform-origin":[eA.transformOrigin?.x,eA.transformOrigin?.y].join(" "),...eA.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,ej.jsx)(eq,{scope:M,placedSide:eR,onArrowChange:ea,arrowX:e$,arrowY:eM,shouldHideArrow:eU,children:(0,ej.jsx)(eT.Primitive.div,{"data-side":eR,"data-align":eP,...X,ref:er,style:{...X.style,animation:eI?void 0:"none"}})})})});eV.displayName=eF;var eB="PopperArrow",eH={top:"bottom",right:"left",bottom:"top",left:"right"},eW=t.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,i=eZ(eB,r),a=eH[i.placedSide];return(0,ej.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,ej.jsx)(eI,{...n,ref:t,style:{...n.style,display:"block"}})})});function eG(e){return null!==e}eW.displayName=eB;var eK=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[l,u]=eY(r),c={start:"0%",center:"50%",end:"100%"}[u],d=(i.arrow?.x??0)+o/2,p=(i.arrow?.y??0)+s/2,f="",m="";return"bottom"===l?(f=a?c:`${d}px`,m=`${-s}px`):"top"===l?(f=a?c:`${d}px`,m=`${n.floating.height+s}px`):"right"===l?(f=`${-s}px`,m=a?c:`${p}px`):"left"===l&&(f=`${n.floating.width+s}px`,m=a?c:`${p}px`),{data:{x:f,y:m}}}});function eY(e){let[t,r="center"]=e.split("-");return[t,r]}e.s(["Anchor",0,ez,"Arrow",0,eW,"Content",0,eV,"Root",0,eM,"createPopperScope",0,eD],685491);var eX=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),eJ=t.forwardRef((e,t)=>
6(0,ej.jsx)(eT.Primitive.span,{...e,ref:t,style:{...eX,...e.style}}));eJ.displayName="VisuallyHidden",e.s(["Root",0,eJ,"VISUALLY_HIDDEN_STYLES",0,eX],546801)},384328,e=>{"use strict";var t=e.i(22114),r=e.i(424692),n=e.i(426813),i=e=>{var i;let o,s,{present:l,children:u}=e,c=function(e){var r,i;let[o,s]=t.useState(),l=t.useRef(null),u=t.useRef(e),c=t.useRef("none"),[d,p]=(r=e?"mounted":"unmounted",i={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>i[e][t]??e,r));return t.useEffect(()=>{let e=a(l.current);c.current="mounted"===d?e:"none"},[d]),(0,n.useLayoutEffect)(()=>{let t=l.current,r=u.current;if(r!==e){let n=c.current,i=a(t);e?p("MOUNT"):"none"===i||t?.display==="none"?p("UNMOUNT"):r&&n!==i?p("ANIMATION_OUT"):p("UNMOUNT"),u.current=e}},[e,p]),(0,n.useLayoutEffect)(()=>{if(o){let e,t=o.ownerDocument.defaultView??window,r=r=>{let n=a(l.current).includes(CSS.escape(r.animationName));if(r.target===o&&n&&(p("ANIMATION_END"),!u.current)){let r=o.style.animationFillMode;o.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=r)})}},n=e=>{e.target===o&&(c.current=a(l.current))};return o.addEventListener("animationstart",n),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{t.clearTimeout(e),o.removeEventListener("animationstart",n),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}p("ANIMATION_END")},[o,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:t.useCallback(e=>{l.current=e?getComputedStyle(e):null,s(e)},[])}}(l),d="function"==typeof u?u({present:c.isPresent}):t.Children.only(u),p=(0,r.useComposedRefs)(c.ref,(i=d,(s=(o=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning)?i.ref:(s=(o=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning)?i.props.ref:i.props.ref||i.ref));return"function"==typeof u||c.isPresent?t.cloneElement(d,{ref:p}):null};function a(e){return e?.animationName||"none"}i.displayName="Presence",e.s(["Presence",0,i])},368044,519399,e=>{"use strict";var t=e.i(22114),r=e.i(552813),n=e.i(424692),i=e.i(813919);function a(e){var r;let a,o=(r=e,(a=t.forwardRef((e,r)=>{let{children:i,...a}=e;if(t.isValidElement(i)){var o;let e,s,l=(o=i,(s=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(s=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),u=function(e,t){let r={...t};for(let n in t){let i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...a}:"className"===n&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}(a,i.props);return i.type!==t.Fragment&&(u.ref=r?(0,n.composeRefs)(r,l):l),t.cloneElement(i,u)}return t.Children.count(i)>1?t.Children.only(null):null})).displayName=`${r}.SlotClone`,a),l=t.forwardRef((e,r)=>{let{children:n,...a}=e,l=t.Children.toArray(n),u=l.find(s);if(u){let e=u.props.children,n=l.map(r=>r!==u?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,i.jsx)(o,{...a,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,n):null})}return(0,i.jsx)(o,{...a,ref:r,children:n})});return l.displayName=`${e}.Slot`,l}var o=Symbol("radix.slottable");function s(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===o}e.s(["createSlot",0,a,"createSlottable",0,function(e){let t=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=o,t}],519399);var l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let n=a(`Primitive.${r}`),o=t.forwardRef((e,t)=>{let{asChild:a,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(a?n:r,{...o,ref:t})});return o.displayName=`Primitive.${r}`,{...e,[r]:o}},{});e.s(["Primitive",0,l,"dispatchDiscreteCustomEvent",0,function(e,t){e&&r.flushSync(()=>
6e.dispatchEvent(t))}],368044)},443510,e=>{"use strict";var t=e.i(22114),r=e.i(426813);t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var n=t[" useInsertionEffect ".trim().toString()]||r.useLayoutEffect;Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",0,function({prop:e,defaultProp:r,onChange:i=()=>{},caller:a}){let[o,s,l]=function({defaultProp:e,onChange:r}){let[i,a]=t.useState(e),o=t.useRef(i),s=t.useRef(r);return n(()=>{s.current=r},[r]),t.useEffect(()=>{o.current!==i&&(s.current?.(i),o.current=i)},[i,o]),[i,a,s]}({defaultProp:r,onChange:i}),u=void 0!==e,c=u?e:o;{let r=t.useRef(void 0!==e);t.useEffect(()=>{let e=r.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${a} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}r.current=u},[u,a])}return[c,t.useCallback(t=>{if(u){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else s(t)},[u,e,s,l])]}],443510)},954409,(e,t,r)=>{"use strict";var n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s={},l={SYMBOL_FOR_REQ_CONTEXT:()=>c,getContext:()=>d};for(var u in l)n(s,u,{get:l[u],enumerable:!0});t.exports=((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))o.call(e,s)||void 0===s||n(e,s,{get:()=>t[s],enumerable:!(r=i(t,s))||r.enumerable});return e})(n({},"__esModule",{value:!0}),s);let c=Symbol.for("@vercel/request-context");function d(){let e=globalThis;return e[c]?.get?.()??{}}},439780,(e,t,r)=>{"use strict";var n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s={},l={getContext:()=>c.getContext,getVercelOidcToken:()=>d,getVercelOidcTokenSync:()=>p};for(var u in l)n(s,u,{get:l[u],enumerable:!0});t.exports=((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))o.call(e,s)||void 0===s||n(e,s,{get:()=>t[s],enumerable:!(r=i(t,s))||r.enumerable});return e})(n({},"__esModule",{value:!0}),s);var c=e.r(954409);async function d(){return""}function p(){return""}},561030,(e,t,r)=>{t.exports=function(e,t){let r;if("function"!=typeof e)throw TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let n=0;return function(...i){clearTimeout(r);let a=Date.now(),o=t-(a-n);o<=0?(n=a,e.apply(this,i)):r=setTimeout(()=>{n=Date.now(),e.apply(this,i)},o)}}},775592,(e,t,r)=>{"use strict";r.__esModule=!0,r.default=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(",");if(0===r.length)return!0;var n=e.name||"",i=(e.type||"").toLowerCase(),a=i.replace(/\/.*$/,"");return r.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?n.toLowerCase().endsWith(t):t.endsWith("/*")?a===t.replace(/\/.*$/,""):i===t})}return!0}},346597,299718,555536,880108,e=>{"use strict";var t=e.i(226599);e.s(["FileTextIcon",()=>t.default],346597);let r=(0,e.i(950846).default)("Trash",[["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"}]]);e.s(["default",0,r],299718),e.s(["TrashIcon",0,r],555536);var n=e.i(22114),i=e.i(304153),a=e.i(824627);let o
vendor: 41,168 bytes, line 6
6=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function
6s(e,t,r){let n=function(e){let{name:t}=e;if(t&&-1!==t.lastIndexOf(".")&&!e.type){let r=t.split(".").pop().toLowerCase(),n=o.get(r);n&&Object.defineProperty(e,"type",{value:n,writable:!1,configurable:!1,enumerable:!0})}return e}(e),{webkitRelativePath:i}=e,a="string"==typeof t?t:"string"==typeof i&&i.length>0?i:`./${e.name}`;return"string"!=typeof n.path&&l(n,"path",a),void 0!==r&&Object.defineProperty(n,"handle",{value:r,writable:!1,configurable:!1,enumerable:!0}),l(n,"relativePath",a),n}function l(e,t,r){Object.defineProperty(e,t,{value:r,writable:!1,configurable:!1,enumerable:!0})}let u=[".DS_Store","Thumbs.db"];function c(e){return"object"==typeof e&&null!==e}function d(e){return e.filter(e=>-1===u.indexOf(e.name))}function p(e){if(null===e)return[];let t=[];for(let r=0;r<e.length;r++){let n=e[r];t.push(n)}return t}function f(e){if("function"!=typeof e.webkitGetAsEntry)return m(e);let t=e.webkitGetAsEntry();return t&&t.isDirectory?g(t):m(e,t)}function m(e,t){return(0,a.__awaiter)(this,void 0,void 0,function*(){var r;if(globalThis.isSecureContext&&"function"==typeof e.getAsFileSystemHandle){let t=yield e.getAsFileSystemHandle();if(null===t)throw Error(`${e} is not a File`);if(void 0!==t){let e=yield t.getFile();return e.handle=t,s(e)}}let n=e.getAsFile();if(!n)throw Error(`${e} is not a File`);return s(n,null!=(r=null==t?void 0:t.fullPath)?r:void 0)})}function h(e){return(0,a.__awaiter)(this,void 0,void 0,function*(){return e.isDirectory?g(e):function(e){return(0,a.__awaiter)(this,void 0,void 0,function*(){return new Promise((t,r)=>{e.file(r=>{t(s(r,e.fullPath))},e=>{r(e)})})})}(e)})}function g(e){let t=e.createReader();return new Promise((e,r)=>{let n=[];!function i(){t.readEntries(t=>(0,a.__awaiter)(this,void 0,void 0,function*(){if(t.length){let e=Promise.all(t.map(h));n.push(e),i()}else try{let t=yield Promise.all(n);e(t)}catch(e){r(e)}}),e=>{r(e)})}()})}var v=e.i(775592);function y(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
6t%2?b(Object(r),!0).forEach(function(t){w(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||k(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){if(e){if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(e,t)}}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var E="function"==typeof v.default?v.default:v.default.default,T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split(","),r=t.length>1?"one of ".concat(t.join(", ")):t[0];return{code:"file-invalid-type",message:"File type must be ".concat(r)}},j=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},I=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},C={code:"too-many-files",message:"Too many files"};function A(e,t){var r="application/x-moz-file"===e.type||E(e,t);return[r,r?null:T(t)]}function N(e,t,r){if(O(e.size)){if(O(t)&&O(r)){if(e.size>r)return[!1,j(r)];if(e.size<t)return[!1,I(t)]}else if(O(t)&&e.size<t)return[!1,I(t)];else if(O(r)&&e.size>r)return[!1,j(r)]}return[!0,null]}function O(e){return null!=e}function R(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function P(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):!!e.target&&!!e.target.files}function D(e){e.preventDefault()}function $(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return t.some(function(t){return!R(e)&&t&&t.apply(void 0,[e].concat(n)),R(e)})}}function L(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||"application/*"===e||/\w+\/[-+.\w]+/g.test(e)}function M(e){return/^.*\.[\w]+$/.test(e)}var U=["children"],z=["open"],F=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],q=["refKey","onChange","onClick"];function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||V(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){if(e){if("string"==typeof e)return B(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return B(e,t)}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function H(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function W(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
6t%2?H(Object(r),!0).forEach(function(t){G(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function G(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var Y=(0,n.forwardRef)(function(e,t){var r=e.children,i=Q(K(e,U)),a=i.open,o=K(i,z);return(0,n.useImperativeHandle)(t,function(){return{open:a}},[a]),n.default.createElement(n.Fragment,null,r(W(W({},o),{},{open:a})))});Y.displayName="Dropzone";var X={disabled:!1,getFilesFromEvent:function(e){return(0,a.__awaiter)(this,void 0,void 0,function*(){var t;if(c(e)&&c(e.dataTransfer))return function(e,t){return(0,a.__awaiter)(this,void 0,void 0,function*(){if(e.items){let r=p(e.items).filter(e=>"file"===e.kind);return"drop"!==t?r:d(function e(t){return t.reduce((t,r)=>[...t,...Array.isArray(r)?e(r):[r]],[])}((yield Promise.all(r.map(f)))))}return d(p(e.files).map(e=>s(e)))})}(e.dataTransfer,e.type);if(c(t=e)&&c(t.target))return p(e.target.files).map(e=>s(e));return Array.isArray(e)&&e.every(e=>"getFile"in e&&"function"==typeof e.getFile)?function(e){return(0,a.__awaiter)(this,void 0,void 0,function*(){return(yield Promise.all(e.map(e=>e.getFile()))).map(e=>s(e))})}(e):[]})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};Y.defaultProps=X,Y.propTypes={children:i.default.func,accept:i.default.objectOf(i.default.arrayOf(i.default.string)),multiple:i.default.bool,preventDropOnDocument:i.default.bool,noClick:i.default.bool,noKeyboard:i.default.bool,noDrag:i.default.bool,noDragEventsBubbling:i.default.bool,minSize:i.default.number,maxSize:i.default.number,maxFiles:i.default.number,disabled:i.default.bool,getFilesFromEvent:i.default.func,onFileDialogCancel:i.default.func,onFileDialogOpen:i.default.func,useFsAccessApi:i.default.bool,autoFocus:i.default.bool,onDragEnter:i.default.func,onDragLeave:i.default.func,onDragOver:i.default.func,onDrop:i.default.func,onDropAccepted:i.default.func,onDropRejected:i.default.func,onError:i.default.func,validator:i.default.func};var J={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=W(W({},X),e),r=t.accept,i=t.disabled,a=t.getFilesFromEvent,o=t.maxSize,s=t.minSize,l=t.multiple,u=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,p=t.onDragOver,f=t.onDrop,m=t.onDropAccepted,h=t.onDropRejected,g=t.onFileDialogCancel,v=t.onFileDialogOpen,b=t.useFsAccessApi,k=t.autoFocus,S=t.preventDropOnDocument,E=t.noClick,T=t.noKeyboard,j=t.noDrag,I=t.noDragEventsBubbling,U=t.onError,z=t.validator,H=(0,n.useMemo)(function(){return O(r)?Object.entries(r).reduce(function(e,t){var r=_(t,2),n=r[0],i=r[1];return[].concat(y(e),[n],y(i))},[]).filter(function(e){return L(e)||M(e)}).join(","):void 0},[r]),Y=(0,n.useMemo)(function(){return O(r)?[{description:"Files",accept:Object.entries(r).filter(function(e){var t=_(e,2),r=t[0],n=t[1],i=!0;return L(r)||(console.warn('Skipped "'.concat(r,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),i=!1),Array.isArray(n)&&n.every(M)||(console.warn('Skipped "'.concat(r,'" because an invalid file extension was provided.')),i=!1),i}).reduce(function(e,t){var r=_(t,2),n=r[0],i=r[1];return x(x({},e),{},w({},n,i))},{})}]:r},[r]),Q=(0,n.useMemo)(function(){return"function"==typeof v?v:et},[v]),er=(0,n.useMemo)(function(){return"function"==typeof g?g:et},[g]),en=(0,n.useRef)(null),ei=(0,n.useRef)(null),ea=Z((0,n.useReducer)(ee,J),2),eo=ea[0],es=ea[1],el=eo.isFocused,eu=eo.isFileDialogActive,ec=(0,n.useRef)("u">typeof window&&window.isSecureContext&&b&&"showOpenFilePicker"in window),ed=function(){!ec.current&&eu&&setTimeout(function(){ei.current&&(ei.current.files.length||(es({type:"closeDialog"}
6),er()))},300)};(0,n.useEffect)(function(){return window.addEventListener("focus",ed,!1),function(){window.removeEventListener("focus",ed,!1)}},[ei,eu,er,ec]);var ep=(0,n.useRef)([]),ef=function(e){en.current&&en.current.contains(e.target)||(e.preventDefault(),ep.current=[])};(0,n.useEffect)(function(){return S&&(document.addEventListener("dragover",D,!1),document.addEventListener("drop",ef,!1)),function(){S&&(document.removeEventListener("dragover",D),document.removeEventListener("drop",ef))}},[en,S]),(0,n.useEffect)(function(){return!i&&k&&en.current&&en.current.focus(),function(){}},[en,k,i]);var em=(0,n.useCallback)(function(e){U?U(e):console.error(e)},[U]),eh=(0,n.useCallback)(function(e){var t;e.preventDefault(),e.persist(),eI(e),ep.current=[].concat(function(e){if(Array.isArray(e))return B(e)}(t=ep.current)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||V(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e.target]),P(e)&&Promise.resolve(a(e)).then(function(t){if(!R(e)||I){var r,n,i,a,d,p,f,m,h=t.length,g=h>0&&(n=(r={files:t,accept:H,minSize:s,maxSize:o,multiple:l,maxFiles:u,validator:z}).files,i=r.accept,a=r.minSize,d=r.maxSize,p=r.multiple,f=r.maxFiles,m=r.validator,(!!p||!(n.length>1))&&(!p||!(f>=1)||!(n.length>f))&&n.every(function(e){var t=_(A(e,i),1)[0],r=_(N(e,a,d),1)[0],n=m?m(e):null;return t&&r&&!n}));es({isDragAccept:g,isDragReject:h>0&&!g,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e)}}).catch(function(e){return em(e)})},[a,c,em,I,H,s,o,l,u,z]),eg=(0,n.useCallback)(function(e){e.preventDefault(),e.persist(),eI(e);var t=P(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&p&&p(e),!1},[p,I]),ev=(0,n.useCallback)(function(e){e.preventDefault(),e.persist(),eI(e);var t=ep.current.filter(function(e){return en.current&&en.current.contains(e)}),r=t.indexOf(e.target);-1!==r&&t.splice(r,1),ep.current=t,!(t.length>0)&&(es({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),P(e)&&d&&d(e))},[en,d,I]),ey=(0,n.useCallback)(function(e,t){var r=[],n=[];e.forEach(function(e){var t=Z(A(e,H),2),i=t[0],a=t[1],l=Z(N(e,s,o),2),u=l[0],c=l[1],d=z?z(e):null;if(i&&u&&!d)r.push(e);else{var p=[a,c];d&&(p=p.concat(d)),n.push({file:e,errors:p.filter(function(e){return e})})}}),(!l&&r.length>1||l&&u>=1&&r.length>u)&&(r.forEach(function(e){n.push({file:e,errors:[C]})}),r.splice(0)),es({acceptedFiles:r,fileRejections:n,isDragReject:n.length>0,type:"setFiles"}),f&&f(r,n,t),n.length>0&&h&&h(n,t),r.length>0&&m&&m(r,t)},[es,l,H,s,o,u,f,m,h,z]),eb=(0,n.useCallback)(function(e){e.preventDefault(),e.persist(),eI(e),ep.current=[],P(e)&&Promise.resolve(a(e)).then(function(t){(!R(e)||I)&&ey(t,e)}).catch(function(e){return em(e)}),es({type:"reset"})},[a,ey,em,I]),ex=(0,n.useCallback)(function(){if(ec.current){es({type:"openDialog"}),Q(),window.showOpenFilePicker({multiple:l,types:Y}).then(function(e){return a(e)}).then(function(e){ey(e,null),es({type:"closeDialog"})}).catch(function(e){e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(er(e),es({type:"closeDialog"})):e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)?(ec.current=!1,ei.current?(ei.current.value=null,ei.current.click()):em(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):em(e)});return}ei.current&&(es({type:"openDialog"}),Q(),ei.current.value=null,ei.current.click())},[es,Q,er,b,ey,em,Y,l]),ew=(0,n.useCallback)(function(e){en.current&&en.current.isEqualNode(e.target)&&(" "===e.key||"Enter"===e.key||32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),ex())},[en,ex]),e_=(0,n.useCallback)(function(){es({type:"focus"})},[]),ek=(0,n.useCallback)(function(){es({type:"blur"})},[]),eS=(0,n.useCallback)(function(){E||(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return -1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/")}()?setTimeout(ex,0):ex())},[E,ex]),eE=function(e){return i?null:e},eT=function(e){return T?null:eE(e)},ej=function(e){return j?null:eE(e)},eI=function(e){I&&e.stopPropagation()},eC=(0,n.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=e.role,n=e.onKeyDown,a=e.onFocus,o=e.onBlur,s=e.onClick,l=e.onDragEnter,u=e.onDragOver,c=e.onDragLeave,d=e.onDrop,p=K(e,F);return W(W(G({onKeyDown:eT($(n,ew)),onFocus:eT($(a,e_)),onBlur:eT($(o,ek)),onClick:eE($(s,eS)),onDragEnter:ej($(l,eh)),onDragOver:ej($(u,eg)),onDragLeave:ej($(c,ev)),onDrop:ej($(d,eb)),role:"string"==typeof r&&""!==r?r:"presentation"},void 0===t?"ref":t,en),i||T?{}:{tabIndex:0}),p)}},[en,ew,e_,ek,eS,eh,eg,ev,eb,T,j,i]),eA=(0,n.useCallback)(function(e){e.stopPropagation()},[]),eN=(0,n.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=e.onChange,n=e.onClick,i=K(e,q);return W(W({},G({accept:H,multiple:l,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:eE($(r,eb)),onClick:eE($(n,eA)),tabIndex:-1},void 0===t?"ref":t,ei)),i)}},[ei,r,l,eb,i]);return W(W({},eo),{},{isFocused:el&&!i,getRootProps:eC,getInputProps:eN,rootRef:en,inputRef:ei,open:eE(ex)})}function ee(e,t){switch(t.type){case"focus":return W(W({},e),{},{isFocused:!0});case"blur":return W(W({},e),{},{isFocused:!1});case"openDialog":return W(W({},J),{},{isFileDialogActive:!0});case"closeDialog":return W(W({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return W(W({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return W(W({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return W({},J);default:return e}}function et(){}e.s(["useDropzone",0,Q],880108)},343822,(e,t,r)=>{var n;n="u">typeof self?self:e.e,function(t){var r="u">typeof globalThis&&globalThis||void 0!==n&&n||e.g||{},i={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(i.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array
6]"],o=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function s(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i.iterable&&(t[Symbol.iterator]=function(){return t}),t}function c(e){this.map={},e instanceof c?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function d(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}}function p(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function f(e){var t=new FileReader,r=p(t);return t.readAsArrayBuffer(e),r}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(e){if(this.bodyUsed=this.bodyUsed,this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(i.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var t;i.arrayBuffer&&i.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||o(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e)}else this._noBody=!0,this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=d(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(i.blob)return this.blob().then(f);throw Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,n,i,a=d(this);if(a)return a;if(this._bodyBlob)return e=this._bodyBlob,r=p(t=new FileReader),i=(n=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?n[1]:"utf-8",t.readAsText(e,i),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},i.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(e,t){e=s(e),t=l(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},c.prototype.delete=function(e){delete this.map[s(e)]},c.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},c.prototype.set=function(e,t){this.map[s(e)]=l(t)},c.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},c.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),u(e)},c.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},c.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),u(e)},i.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var g=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function v(e,t){if(!(this instanceof v))throw TypeError('Please use the "new" operator, this DOM object c
6onstructor cannot be called as a function.');var n,i,a=(t=t||{}).body;if(e instanceof v){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,a||null==e._bodyInit||(a=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new c(t.headers)),this.method=(i=(n=t.method||this.method||"GET").toUpperCase(),g.indexOf(i)>-1?i:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return new AbortController().signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(a),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function y(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function b(e,t){if(!(this instanceof b))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},h.call(v.prototype),h.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var x=[301,302,303,307,308];b.redirect=function(e,t){if(-1===x.indexOf(t))throw RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function w(e,n){return new Promise(function(a,o){var u=new v(e,n);if(u.signal&&u.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var d=new XMLHttpRequest;function p(){d.abort()}if(d.onload=function(){var e,t,r={statusText:d.statusText,headers:(e=d.getAllResponseHeaders()||"",t=new c,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();try{t.append(n,i)}catch(e){console.warn("Response "+e.message)}}}),t)};0===u.url.indexOf("file://")&&(d.status<200||d.status>599)?r.status=200:r.status=d.status,r.url="responseURL"in d?d.responseURL:r.headers.get("X-Request-URL");var n="response"in d?d.response:d.responseText;setTimeout(function(){a(new b(n,r))},0)},d.onerror=function(){setTimeout(function(){o(TypeError("Network request failed"))},0)},d.ontimeout=function(){setTimeout(function(){o(TypeError("Network request timed out"))},0)},d.onabort=function(){setTimeout(function(){o(new t.DOMException("Aborted","AbortError"))},0)},d.open(u.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(u.url),!0),"include"===u.credentials?d.withCredentials=!0:"omit"===u.credentials&&(d.withCredentials=!1),"responseType"in d&&(i.blob?d.responseType="blob":i.arrayBuffer&&(d.responseType="arraybuffer")),n&&"object"==typeof n.headers&&!(n.headers instanceof c||r.Headers&&n.headers instanceof r.Headers)){var f=[];
6Object.getOwnPropertyNames(n.headers).forEach(function(e){f.push(s(e)),d.setRequestHeader(e,l(n.headers[e]))}),u.headers.forEach(function(e,t){-1===f.indexOf(t)&&d.setRequestHeader(t,e)})}else u.headers.forEach(function(e,t){d.setRequestHeader(t,e)});u.signal&&(u.signal.addEventListener("abort",p),d.onreadystatechange=function(){4===d.readyState&&u.signal.removeEventListener("abort",p)}),d.send(void 0===u._bodyInit?null:u._bodyInit)})}w.polyfill=!0,r.fetch||(r.fetch=w,r.Headers=c,r.Request=v,r.Response=b),t.Headers=c,t.Request=v,t.Response=b,t.fetch=w,Object.defineProperty(t,"__esModule",{value:!0})}({})},594336,(e,t,r)=>{e.e,function(t){"use strict";function r(){r=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i,a=Object.create((t&&t.prototype instanceof p?t:p).prototype),o=new k(n||[]);return i="suspendedStart",a._invoke=function(t,n){if("executing"===i)throw Error("Generator is already running");if("completed"===i){if("throw"===t)throw n;return E()}for(o.method=t,o.arg=n;;){var a=o.delegate;if(a){var s=function e(t,r){var n=t.iterator[r.method];if(void 0===n){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,e(t,r),"throw"===r.method))return d;r.method="throw",r.arg=TypeError("The iterator does not provide a 'throw' method")}return d}var i=c(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,d):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,d)}(a,o);if(s){if(s===d)continue;return s}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var l=c(e,r,o);if("normal"===l.type){if(i=o.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i="completed",o.method="throw",o.arg=l.arg)}},a}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function m(){}var h={};l(h,a,function(){return this});var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&n.call(v,a)&&(h=v);var y=m.prototype=p.prototype=Object.create(h);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function x(e,t){var r;this._invoke=function(i,a){function o(){return new t(function(r,o){!function r(i,a,o,s){var l=c(e[i],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then(function(e){r("next",e,o,s)},function(e){r("throw",e,o,s)}):t.resolve(d).then(function(e){u.value=e,o(u)},function(e){return r("throw",e,o,s)})}s(l.arg)}(i,a,r,o)})}return r=r?r.then(o,o):o()}}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return f.prototype=m,l(y,"constructor",m),l(m,"constructor",f),f.displayName=l(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(x.prototype),l(x.prototype,o,function(){return this}),e.AsyncIterator=x,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new x(u(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then(function(e){return e.done?e.value:o.next()})},b(y),l(y,s,"Generator"),l(y,a,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
6h(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return o.type="throw",o.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;_(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function d(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function p(e,t,r){return(p=d()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&c(i,r.prototype),i}).apply(null,arguments)}function f(e){var t="function"==typeof Map?new Map:void 0;return(f=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return p(e,arguments,u(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)})(e)}function m(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){var t=d();return function(){var r,n=u(e);r=t?Reflect.construct(n,arguments,u(this).constructor):n.apply(this,arguments);if(r&&("object"==typeof r||"function"==typeof r))return r;if(void 0!==r)throw TypeError("Derived constructors may only return object or undefined");return m(this)}}function g(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,t)}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function y(e,t,r,n){return new(r||(r=Promise))(function(i,a){function o(e){try{l(n.next(e))}catch(e){a(e)}}function s(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,s)}l((n=n.apply(e,t||[])).next())})}var b=function(e){l(r,e);var t=h(r);function r(e,n,a,o){var s,l,u,c;return i(this,r),Object.setPrototypeOf(m(s=t.call(this,e)),r.prototype),s.name="MeiliSearchCommunicationError",n instanceof Response&&(s.message=n.statusText,s.statusCode=n.status),n instanceof Error&&(s.errno=n.errno,s.code=n.code),o?(s.stack=o,s.stack=null==(l=s.stack)?void 0:l.replace(/(TypeError|FetchError)/,s.name),s.stack=null==(u=s.stack)?void 0:u.replace("Failed to fetch","request to ".concat(a," failed, reason: connect ECONNREFUSED")),s.stack=null==(c=s.stack)?void 0:c.replace("Not Found","Not Found: ".concat(a))):Error.captureStackTrace&&Error.captureStackTrace(m(s),r),s}return o(r)}(f(Error)),x=function(e){l(r,e);var t=h(r);function r(e,n){var a;return i(this,r),Object.setPrototypeOf(m(a=t.call(this,e.message)),r.prototype),a.name="MeiliSearchApiError",a.code=e.code,a.type=e.type,a.link=e.link,a.message=e.message,a.httpStatus=n,Error.captureStackTrace&&Error.captureStackTrace(m(a),r),a}return o(r)}(f(Error));function w(e){return y(this,void 0,void 0,r().mark(function t(){var n;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.ok){t.next=11;break}return t.prev=1,t.next=4,e.json();case 4:n=t.sent,t.next=10;break;case 7:throw t.prev=7,t.t0=t.catch(1),new b(e.statusText,e,e.url);case 10:throw new x(n,e.status);case 11:return t.abrupt("return",e);case 12:case"end":return t.stop()}},t,null,[[1,7]])}))}function _(e,t,r){if("MeiliSearchApiError"!==e.name)throw new b(e.message,e,r,t);throw e}var k=function(e){l(r,e);var t=h(r);function r(e){var n;return i(this,r),Object.setPrototypeOf(m(n=t.call(this,e)),r.prototype),n.name="MeiliSearchError",Error.captureStackTrace&&Error.captureStackTrace(m(n),r),n}return o(r)}(f(Error)),S=function(e){l(r,e);var t=h(r);function r(e){var n;return i(this,r),Object.setPrototypeOf(m(n=t.call(this,e)),r.prototype),n.name="MeiliSearchTimeOutError",Error.captureStackTrace&&Error.captureStackTrace(m(n),r),n}return o(r)}(f(Error));function E(e,t){return"".concat(e,"\nHint: It might not be working because maybe you're not up to date with the Meilisearch version that ").concat(t," call requires.")}function T(e){return Object.entries(e).reduce(function(e,t){var r=function(e){if(Array.isArray(e))return e}(t)||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}
6(t)||g(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=r[0],i=r[1];return void 0!==i&&(e[n]=i),e},{})}function j(e){return Object.keys(e).reduce(function(t,r){var n=e[r];return void 0===n?t:Array.isArray(n)?Object.assign(Object.assign({},t),s({},r,n.join(","))):n instanceof Date?Object.assign(Object.assign({},t),s({},r,n.toISOString())):Object.assign(Object.assign({},t),s({},r,n))},{})}var I=function(){function t(e){i(this,t),this.headers=function(e){var t,r,n="X-Meilisearch-Client",i="Meilisearch JavaScript (v".concat("0.34.2",")"),a="Authorization",o=function(e){if(Array.isArray(e))return e.reduce(function(e,t){return e[t[0]]=t[1],e},{});if(!("has"in e))return Object.assign({},e);var t={};return e.forEach(function(e,r){return t[r]=e}),t}(null!=(r=null==(t=e.requestConfig)?void 0:t.headers)?r:{});if(e.apiKey&&!o[a]&&(o[a]="Bearer ".concat(e.apiKey)),o["Content-Type"]||(o["Content-Type"]="application/json"),e.clientAgents&&Array.isArray(e.clientAgents)){var s=e.clientAgents.concat(i);o[n]=s.join(" ; ")}else if(e.clientAgents&&!Array.isArray(e.clientAgents))throw new k('Meilisearch: The header "'.concat(n,'" should be an array of string(s).\n'));else o[n]=i;return o}(e),this.requestConfig=e.requestConfig,this.httpClient=e.httpClient;try{var r=function(e){try{var t,r;return(r=e=!((t=e).startsWith("https://")||t.startsWith("http://"))?"http://".concat(t):t).endsWith("/")||(r+="/"),e=r}catch(e){throw new k("The provided host is not valid.")}}(e.host);this.url=new URL(r)}catch(e){throw new k("The provided host is not valid.")}}return o(t,[{key:"request",value:function(t){var n,i=t.method,a=t.url,o=t.params,s=t.body,l=t.config,u=void 0===l?{}:l;return y(this,void 0,void 0,r().mark(function t(){var l,c,d,p,f,m,h;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("u"<typeof fetch&&e.r(343822),l=new URL(a,this.url),o&&(c=new URLSearchParams,Object.keys(o).filter(function(e){return null!==o[e]}).map(function(e){return c.set(e,o[e])}),l.search=c.toString()),(null==(n=u.headers)?void 0:n["Content-Type"])||(s=JSON.stringify(s)),d=Object.assign(Object.assign({},this.headers),u.headers),t.prev=5,p=(this.httpClient?this.httpClient:fetch)(l.toString(),Object.assign(Object.assign(Object.assign({},u),this.requestConfig),{method:i,body:s,headers:d})),!this.httpClient){t.next=12;break}return t.next=11,p;case 11:return t.abrupt("return",t.sent);case 12:return t.next=14,p.then(function(e){return w(e)});case 14:return f=t.sent,t.next=17,f.json().catch(function(){});case 17:return m=t.sent,t.abrupt("return",m);case 21:t.prev=21,t.t0=t.catch(5),h=t.t0.stack,_(t.t0,h,l.toString());case 25:case"end":return t.stop()}},t,this,[[5,21]])}))}},{key:"get",value:function(e,t,n){return y(this,void 0,void 0,r().mark(function i(){return r().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.request({method:"GET",url:e,params:t,config:n});case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}},i,this)}))}},{key:"post",value:function(e,t,n,i){return y(this,void 0,void 0,r().mark(function a(){return r().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.request({method:"POST",url:e,body:t,params:n,config:i});case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}},a,this)}))}},{key:"put",value:function(e,t,n,i){return y(this,void 0,void 0,r().mark(function a(){return r().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.request({method:"PUT",url:e,body:t,params:n,config:i});case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}},a,this)}))}},{key:"patch",value:function(e,t,n,i){return y(this,void 0,void 0,r().mark(function a(){return r().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.request({method:"PATCH",url:e,body:t,params:n,config:i});case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}},a,this)}))}},{key:"delete",value:function(e,t,n,i){return y(this,void 0,void 0,r().mark(function a(){return r().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.request({method:"DELETE",url:e,body:t,params:n,config:i});case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}},a,this)}))}}]),t}(),C=o(function e(t){i(this,e),this.taskUid=t.taskUid,this.indexUid=t.indexUid,this.status=t.status,this.type=t.type,this.enqueuedAt=new Date(t.enqueuedAt)}),A=o(function e(t){i(this,e),this.indexUid=t.indexUid,this.status=t.status,this.type=t.type,this.uid=t.uid,this.details=t.details,this.canceledBy=t.canceledBy,this.error=t.error,this.duration=t.duration,this.startedAt=new Date(t.startedAt),this.enqueuedAt=new Date(t.enqueuedAt),this.finishedAt=new Date(t.finishedAt)}),N=function(){function e(t){i(this,e),this.httpRequest=new I(t)}return o(e,[{key:"getTask",value:function(e){return y(this,void 0,void 0,r().mark(function t(){var n,i;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n="tasks/".concat(e),t.next=3,this.httpRequest.get(n);case 3:return i=t.sent,t.abrupt("return",new A(i));case 5:case"end":return t.stop()}},t,this)}))}},{key:"getTasks",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(this,void 0,void 0,r().mark(function t(){var n;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.httpRequest.get("tasks",j(e));case 3:return n=t.sent,t.abrupt("return",Object.assign(Object.assign({},n),{results:n.results.map(function(e){return new A(e)})}));case 5:case"end":return t.stop()}},t,this)}))}},{key:"waitForTask",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.timeOutMs,i=void 0===n?5e3:n,a=t.intervalMs,o=void 0===a?50:a;return y(this,void 0,void 0,r().mark(function t(){var n,a;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=Date.now();case 1:if(!(Date.now()-n<i)){t.next=11;break}return t.next=4,this.getTask(e);case 4:if(["enqueued","processing"].includes((a=t.sent).status)){t.next=7;break}return t.abrupt("return",a);case 7:return t.next=9,function(e){return y(this,void 0,void 0,r().mark(function t(){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,new Promise(function(t){return setTimeout(t,e)});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t)}))}(o);case 9:t.next=1;break;case 11:throw new S("timeout of ".concat(i,"ms has exceeded on process ").concat(e," when waiting a task to be resolved."));case 12:case"end":return t.stop()}},t,this)}))}},{key:"waitForTasks",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.timeOutMs,i=void 0===n?5e3:n,a=t.intervalMs,o=void 0===a?50:a;return y(this,void 0,void 0,r().mark(function t(){var n,a,s,l,u;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=[],a=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=g(e))){t&&(e=t);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(o)throw i}}}}(e),t.prev=2,a.s();case 4:if((s=a.n()).done){t.next=12;break}return l=s.value,t.next=8,this.waitForTask(l,{timeOutMs:i,intervalMs:o});case 8:u=t.sent,n.push(u);case 10:t.next=4;break;case 12:t.next=17;break;case 14:t.prev=14,t.t0=t.catch(2),a.e(t.t0);case 17:return t.prev=17,a.f(),t.finish(17);case 20:return t.abrupt("return",n);case 21:case"end":return t.stop()}},t,this,[[2,14,17,20]])}))}},{key:"cancelTasks",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(this,void 0,void 0,r().mark(function t(){var n;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.httpRequest.post("tasks/cancel",{},j(e));case 3:return n=t.sent,t.abrupt("return",new C(n));case 5:case"end":return t.stop()}},t,this)}))}},{key:"deleteTasks",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(this,void 0,void 0,r().mark(function t(){var n;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.httpRequest.delete("tasks",{},j(e));case 3:return n=t.sent,t.abrupt("return",new C(n));case 5:case"end":return t.stop()}},t,this)}))}}]),e}(),O=function(){function e(t,r,n){i(this,e),this.uid=r,this.primaryKey=n,this.httpRequest=new I(t),this.tasks=new N(t)}return o(e,[{key:"search",value:function(e,t,n){return y(this,void 0,void 0,r().mark(function i(){var a;return r().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return a="indexes/".concat(this.uid,"/search"),r.next=3,this.httpRequest.post(a,T(Object.assign({q:e},t)),void 0,n);case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}},i,this)}))}},{key:"searchGet",value:function(e,t,n){var i,a,o,s,l,u,c;return y(this,void 0,void 0,r().mark(function d(){var p,f,m;return r().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return p="indexes/".concat(this.uid,"/search"),f=function(e){if("string"==typeof e)return e;if(Array.isArray(e))throw new k("The filter query parameter should be in string format when using searchGet")},m=Object.assign(Object.assign({q:e},t),{filter:f(null==t?void 0:t.filter),sort:null==(i=null==t?void 0:t.sort)?void 0:i.join(","),facets:null==(a=null==t?void 0:t.facets)?void 0:a.join(","),attributesToRetrieve:null==(o=null==t?void 0:t.attributesToRetrieve)?void 0:o.join(","),attributesToCrop:null==(s=null==t?void 0:t.attributesToCrop)?void 0:s.join(","),attributesToHighlight:null==(l=null==t?void 0:t.attributesToHighlight)?void 0:l.join(","),vector:null==(u=null==t?void 0:t.vector)?void 0:u.join(","),attributesToSearchOn:null==(c=null==t?void 0:t.attributesToSearchOn)?void 0:c.join(",")}),r.next=5,this.httpRequest.get(p,T(m),n);case 5:return r.abrupt("return",r.sent);case 6:case"end":return r.stop()}},d,this)}))}},{key:"searchForFacetValues",value:function(e,t){return y(this,void 0,void 0,r().mark(function n(){var i;return r().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return i="indexes/".concat(this.uid,"/facet-search"),r.next=3,this.httpRequest.post(i,T(e),void 0,t);case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}},n,this)}))}},{key:"getRawInfo",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t,n;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid),e.next=3,this.httpRequest.get(t);case 3:return n=e.sent,this.primaryKey=n.primaryKey,this.updatedAt=new Date(n.updatedAt),this.createdAt=new Date(n.createdAt),e.abrupt("return",n);case 8:case"end":return e.stop()}},e,this)}))}},{key:"fetchInfo",value:function(){return y(this,void 0,void 0,r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRawInfo();case 2:return e.abrupt("return",this);case 3:case"end":return e.stop()}},e,this)}))}},{key:"fetchPrimaryKey",value:function(){return y(this,void 0,void 0,r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRawInfo();case 2:return this.primaryKey=e.sent.primaryKey,e.abrupt("return",this.primaryKey);case 4:case"end":return e.stop()}},e,this)}))}},{key:"update",value:function(e){return y(this,void 0,void 0,r().mark(function t(){var n,i;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n="indexes/".concat(this.uid),t.next=3,this.httpRequest.patch(n,e);case 3:return(i=t.sent).enqueuedAt=new Date(i.enqueuedAt),t.abrupt("return",i);case 6:case"end":return t.stop()}},t,this)}))}},{key:"delete",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t,n;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid),e.next=3,this.httpRequest.delete(t);case 3:return n=e.sent,e.abrupt("return",new C(n));case 5:case"end":return e.stop()}},e,this)}))}},{key:"getTasks",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(this,void 0,void 0,r().mark(function t(){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.tasks.getTasks(Object.assign(Object.assign({},e),{indexUids:[this.uid]}));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)}))}},{key:"getTask",value:function(e){return y(this,void 0,void 0,r().mark(function t(){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.tasks.getTask(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)}))}},{key:"waitForTasks",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.timeOutMs,i=void 0===n?5e3:n,a=t.intervalMs,o=void 0===a?50:a;return y(this,void 0,void 0,r().mark(function t(){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.tasks.waitForTasks(e,{timeOutMs:i,intervalMs:o});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)}))}},{key:"waitForTask",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.timeOutMs,i=void 0===n?5e3:n,a=t.intervalMs,o=void 0===a?50:a;return y(this,void 0,void 0,r().mark(function t(){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.tasks.waitForTask(e,{timeOutMs:i,intervalMs:o});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)}))}},{key:"getStats",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid,"/stats"),e.next=3,this.httpRequest.get(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}))}},{key:"getDocuments",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(this,void 0,void 0,r().mark(function n(){var i,a,o;return r().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(void 0===(t=T(t)).filter){r.next=15;break}return r.prev=2,i="indexes/".concat(this.uid,"/documents/fetch"),r.next=6,this.httpRequest.post(i,t);case 6:case 19:return r.abrupt("return",r.sent);case 9:throw r.prev=9,r.t0=r.catch(2),r.t0 instanceof b?r.t0.message=E(r.t0.message,"getDocuments"):r.t0 instanceof x&&(r.t0.message=E(r.t0.message,"getDocuments")),r.t0;case 13:r.next=20;break;case 15:return a="indexes/".concat(this.uid,"/documents"),o=Array.isArray(null==t?void 0:t.fields)?{fields:null==(e=null==t?void 0:t.fields)?void 0:e.join(",")}:{},r.next=19,this.httpRequest.get(a,Object.assign(Object.assign({},t),o));case 20:case"end":return r.stop()}},n,this,[[2,9]])}
6))}},{key:"getDocument",value:function(e,t){return y(this,void 0,void 0,r().mark(function n(){var i,a;return r().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return i="indexes/".concat(this.uid,"/documents/").concat(e),a=function(){var e;if(Array.isArray(null==t?void 0:t.fields))return null==(e=null==t?void 0:t.fields)?void 0:e.join(",")}(),r.next=4,this.httpRequest.get(i,T(Object.assign(Object.assign({},t),{fields:a})));case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}},n,this)}))}},{key:"addDocuments",value:function(e,t){return y(this,void 0,void 0,r().mark(function n(){var i,a;return r().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return i="indexes/".concat(this.uid,"/documents"),r.next=3,this.httpRequest.post(i,e,t);case 3:return a=r.sent,r.abrupt("return",new C(a));case 5:case"end":return r.stop()}},n,this)}))}},{key:"addDocumentsFromString",value:function(e,t,n){return y(this,void 0,void 0,r().mark(function i(){var a,o;return r().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return a="indexes/".concat(this.uid,"/documents"),r.next=3,this.httpRequest.post(a,e,n,{headers:{"Content-Type":t}});case 3:return o=r.sent,r.abrupt("return",new C(o));case 5:case"end":return r.stop()}},i,this)}))}},{key:"addDocumentsInBatches",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>2?arguments[2]:void 0;return y(this,void 0,void 0,r().mark(function i(){var a,o;return r().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:a=[],o=0;case 2:if(!(o<e.length)){r.next=11;break}return r.t0=a,r.next=6,this.addDocuments(e.slice(o,o+t),n);case 6:r.t1=r.sent,r.t0.push.call(r.t0,r.t1);case 8:o+=t,r.next=2;break;case 11:return r.abrupt("return",a);case 12:case"end":return r.stop()}},i,this)}))}},{key:"updateDocuments",value:function(e,t){return y(this,void 0,void 0,r().mark(function n(){var i,a;return r().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return i="indexes/".concat(this.uid,"/documents"),r.next=3,this.httpRequest.put(i,e,t);case 3:return a=r.sent,r.abrupt("return",new C(a));case 5:case"end":return r.stop()}},n,this)}))}},{key:"updateDocumentsInBatches",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>2?arguments[2]:void 0;return y(this,void 0,void 0,r().mark(function i(){var a,o;return r().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:a=[],o=0;case 2:if(!(o<e.length)){r.next=11;break}return r.t0=a,r.next=6,this.updateDocuments(e.slice(o,o+t),n);case 6:r.t1=r.sent,r.t0.push.call(r.t0,r.t1);case 8:o+=t,r.next=2;break;case 11:return r.abrupt("return",a);case 12:case"end":return r.stop()}},i,this)}))}},{key:"updateDocumentsFromString",value:function(e,t,n){return y(this,void 0,void 0,r().mark(function i(){var a,o;return r().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return a="indexes/".concat(this.uid,"/documents"),r.next=3,this.httpRequest.put(a,e,n,{headers:{"Content-Type":t}});case 3:return o=r.sent,r.abrupt("return",new C(o));case 5:case"end":return r.stop()}},i,this)}))}},{key:"deleteDocument",value:function(e){return y(this,void 0,void 0,r().mark(function t(){var n,i;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n="indexes/".concat(this.uid,"/documents/").concat(e),t.next=3,this.httpRequest.delete(n);case 3:return(i=t.sent).enqueuedAt=new Date(i.enqueuedAt),t.abrupt("return",i);case 6:case"end":return t.stop()}},t,this)}))}},{key:"deleteDocuments",value:function(e){return y(this,void 0,void 0,r().mark(function t(){var i,a,o,s;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=(i=!Array.isArray(e)&&"object"===n(e))?"documents/delete":"documents/delete-batch",o="indexes/".concat(this.uid,"/").concat(a),t.prev=3,t.next=6,this.httpRequest.post(o,e);case 6:return s=t.sent,t.abrupt("return",new C(s));case 10:throw t.prev=10,t.t0=t.catch(3),t.t0 instanceof b&&i?t.t0.message=E(t.t0.message,"deleteDocuments"):t.t0 instanceof x&&(t.t0.message=E(t.t0.message,"deleteDocuments")),t.t0;case 14:case"end":return t.stop()}},t,this,[[3,10]])}))}},{key:"deleteAllDocuments",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t,n;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid,"/documents"),e.next=3,this.httpRequest.delete(t);case 3:return(n=e.sent).enqueuedAt=new Date(n.enqueuedAt),e.abrupt("return",n);case 6:case"end":return e.stop()}},e,this)}))}},{key:"getSettings",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid,"/settings"),e.next=3,this.httpRequest.get(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}))}},{key:"updateSettings",value:function(e){return y(this,void 0,void 0,r().mark(function t(){var n,i;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n="indexes/".concat(this.uid,"/settings"),t.next=3,this.httpRequest.patch(n,e);case 3:return(i=t.sent).enqueued=new Date(i.enqueuedAt),t.abrupt("return",i);case 6:case"end":return t.stop()}},t,this)}))}},{key:"resetSettings",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t,n;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid,"/settings"),e.next=3,this.httpRequest.delete(t);case 3:return(n=e.sent).enqueuedAt=new Date(n.enqueuedAt),e.abrupt("return",n);case 6:case"end":return e.stop()}},e,this)}))}},{key:"getPagination",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid,"/settings/pagination"),e.next=3,this.httpRequest.get(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}))}},{key:"updatePagination",value:function(e){return y(this,void 0,void 0,r().mark(function t(){var n,i;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n="indexes/".concat(this.uid,"/settings/pagination"),t.next=3,this.httpRequest.patch(n,e);case 3:return i=t.sent,t.abrupt("return",new C(i));case 5:case"end":return t.stop()}},t,this)}))}},{key:"resetPagination",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t,n;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid,"/settings/pagination"),e.next=3,this.httpRequest.delete(t);case 3:return n=e.sent,e.abrupt("return",new C(n));case 5:case"end":return e.stop()}},e,this)}))}},{key:"getSynonyms",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid,"/settings/synonyms"),e.next=3,this.httpRequest.get(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}))}},{key:"updateSynonyms",value:function(e){return y(this,void 0,void 0,r().mark(function t(){var n,i;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n="indexes/".concat(this.uid,"/settings/synonyms"),t.next=3,this.httpRequest.put(n,e);case 3:return i=t.sent,t.abrupt("return",new C(i));case 5:case"end":return t.stop()}},t,this)}))}},{key:"resetSynonyms",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t,n;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid,"/settings/synonyms"),e.next=3,this.httpRequest.delete(t);case 3:return(n=e.sent).enqueuedAt=new Date(n.enqueuedAt),e.abrupt("return",n);case 6:case"end":return e.stop()}},e,this)}))}},{key:"getStopWords",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid,"/settings/stop-words"),e.next=3,this.httpRequest.get(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}))}},{key:"updateStopWords",value:function(e){return y(this,void 0,void 0,r().mark(function t(){var n,i;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n="indexes/".concat(this.uid,"/settings/stop-words"),t.next=3,this.httpRequest.put(n,e);case 3:return i=t.sent,t.abrupt("return",new C(i));case 5:case"end":return t.stop()}},t,this)}))}},{key:"resetStopWords",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t,n;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid,"/settings/stop-words"),e.next=3,this.httpRequest.delete(t);case 3:return(n=e.sent).enqueuedAt=new Date(n.enqueuedAt),e.abrupt("return",n);case 6:case"end":return e.stop()}},e,this)}))}},{key:"getRankingRules",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid,"/settings/ranking-rules"),e.next=3,this.httpRequest.get(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}))}},{key:"updateRankingRules",value:function(e){return y(this,void 0,void 0,r().mark(function t(){var n,i;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n="indexes/".concat(this.uid,"/settings/ranking-rules"),t.next=3,this.httpRequest.put(n,e);case 3:return i=t.sent,t.abrupt("return",new C(i));case 5:case"end":return t.stop()}},t,this)}))}},{key:"resetRankingRules",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t,n;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid,"/settings/ranking-rules"),e.next=3,this.httpRequest.delete(t);case 3:return(n=e.sent).enqueuedAt=new Date(n.enqueuedAt),e.abrupt("return",n);case 6:case"end":return e.stop()}},e,this)}))}},{key:"getDistinctAttribute",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid,"/settings/distinct-attribute"),e.next=3,this.httpRequest.get(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}))}},{key:"updateDistinctAttribute",value:function(e){return y(this,void 0,void 0,r().mark(function t(){var n,i;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n="indexes/".concat(this.uid,"/settings/distinct-attribute"),t.next=3,this.httpRequest.put(n,e);case 3:return i=t.sent,t.abrupt("return",new C(i));case 5:case"end":return t.stop()}},t,this)}))}},{key:"resetDistinctAttribute",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t,n;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid,"/settings/distinct-attribute"),e.next=3,this.httpRequest.delete(t);case 3:return(n=e.sent).enqueuedAt=new Date(n.enqueuedAt),e.abrupt("return",n);case 6:case"end":return e.stop()}},e,this)}))}},{key:"getFilterableAttributes",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid,"/settings/filterable-attributes"),e.next=3,this.httpRequest.get(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}))}},{key:"updateFilterableAttributes",value:function(e){return y(this,void 0,void 0,r().mark(function t(){var n,i;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n="indexes/".concat(this.uid,"/settings/filterable-attributes"),t.next=3,this.httpRequest.put(n,e);case 3:return i=t.sent,t.abrupt("return",new C(i));case 5:case"end":return t.stop()}},t,this)}))}},{key:"resetFilterableAttributes",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t,n;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid,"/settings/filterable-attributes"),e.next=3,this.httpRequest.delete(t);case 3:return(n=e.sent).enqueuedAt=new Date(n.enqueuedAt),e.abrupt("return",n);case 6:case"end":return e.stop()}},e,this)}))}},{key:"getSortableAttributes",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid,"/settings/sortable-attributes"),e.next=3,this.httpRequest.get(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}))}},{key:"updateSortableAttributes",value:function(e){return y(this,void 0,void 0,r().mark(function t(){var n,i;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n="indexes/".concat(this.uid,"/settings/sortable-attributes"),t.next=3,this.httpRequest.put(n,e);case 3:return i=t.sent,t.abrupt("return",new C(i));case 5:case"end":return t.stop()}},t,this)}))}},{key:"resetSortableAttributes",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t,n;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid,"/settings/sortable-attributes"),e.next=3,this.httpRequest.delete(t);case 3:return(n=e.sent).enqueuedAt=new Date(n.enqueuedAt),e.abrupt("return",n);case 6:case"end":return e.stop()}},e,this)}))}},{key:"getSearchableAttributes",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid,"/settings/searchable-attributes"),e.next=3,this.httpRequest.get(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}))}},{key:"updateSearchableAttributes",value:function(e){return y(this,void 0,void 0,r().mark(function t(){var n,i;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n="indexes/".concat(this.uid,"/settings/searchable-attributes"),t.next=3,this.httpRequest.put(n,e);case 3:return i=t.sent,t.abrupt("return",new C(i));case 5:case"end":return t.stop()}},t,this)}))}},{key:"resetSearchableAttributes",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t,n;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid,"/settings/searchable-attributes"),e.next=3,this.httpRequest.delete(t);case 3:return(n=e.sent).enqueuedAt=new Date(n.enqueuedAt),e.abrupt("return",n);case 6:case"end":return e.stop()}},e,this)}))}},{key:"getDisplayedAttributes",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid,"/settings/displayed-attributes"),e.next=3,this.httpRequest.get(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}))}},{key:"updateDisplayedAttributes",value:function(e){return y(this,void 0,void 0,r().mark(function t(){var n,i;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n="indexes/".concat(this.uid,"/settings/displayed-attributes"),t.next=3,this.httpRequest.put(n,e);case 3:return i=t.sent,t.abrupt("return",new C(i));case 5:case"end":return t.stop()}},t,this)}))}},{key:"resetDisplayedAttributes",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t,n;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid,"/settings/displayed-attributes"),e.next=3,this.httpRequest.delete(t);case 3:return(n=e.sent).enqueuedAt=new Date(n.enqueuedAt),e.abrupt("return",n);case 6:case"end":return e.stop()}},e,this)}))}},{key:"getTypoTolerance",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid,"/settings/typo-tolerance"),e.next=3,this.httpRequest.get(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}))}},{key:"updateTypoTolerance",value:function(e){return y(this,void 0,void 0,r().mark(function t(){var n,i;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n="indexes/".concat(this.uid,"/settings/typo-tolerance"),t.next=3,this.httpRequest.patch(n,e);case 3:return(i=t.sent).enqueuedAt=new Date(i.enqueuedAt),t.abrupt("return",i);case 6:case"end":return t.stop()}},t,this)}))}},{key:"resetTypoTolerance",value:function(){return y(this,void 0,void 0,r().mark(function
6 e(){var t,n;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid,"/settings/typo-tolerance"),e.next=3,this.httpRequest.delete(t);case 3:return(n=e.sent).enqueuedAt=new Date(n.enqueuedAt),e.abrupt("return",n);case 6:case"end":return e.stop()}},e,this)}))}},{key:"getFaceting",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid,"/settings/faceting"),e.next=3,this.httpRequest.get(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}))}},{key:"updateFaceting",value:function(e){return y(this,void 0,void 0,r().mark(function t(){var n,i;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n="indexes/".concat(this.uid,"/settings/faceting"),t.next=3,this.httpRequest.patch(n,e);case 3:return i=t.sent,t.abrupt("return",new C(i));case 5:case"end":return t.stop()}},t,this)}))}},{key:"resetFaceting",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t,n;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="indexes/".concat(this.uid,"/settings/faceting"),e.next=3,this.httpRequest.delete(t);case 3:return n=e.sent,e.abrupt("return",new C(n));case 5:case"end":return e.stop()}},e,this)}))}}],[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return y(this,void 0,void 0,r().mark(function i(){var a,o;return r().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return a=new I(n),r.next=4,a.post("indexes",Object.assign(Object.assign({},t),{uid:e}));case 4:return o=r.sent,r.abrupt("return",new C(o));case 6:case"end":return r.stop()}},i)}))}}]),e}(),R=function(e){l(r,e);var t=h(r);function r(e){return i(this,r),t.call(this,e)}return o(r)}(function(){function e(t){i(this,e),this.config=t,this.httpRequest=new I(t),this.tasks=new N(t)}return o(e,[{key:"index",value:function(e){return new O(this.config,e)}},{key:"getIndex",value:function(e){return y(this,void 0,void 0,r().mark(function t(){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new O(this.config,e).fetchInfo());case 1:case"end":return t.stop()}},t,this)}))}},{key:"getRawIndex",value:function(e){return y(this,void 0,void 0,r().mark(function t(){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new O(this.config,e).getRawInfo());case 1:case"end":return t.stop()}},t,this)}))}},{key:"getIndexes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(this,void 0,void 0,r().mark(function t(){var n,i,a=this;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getRawIndexes(e);case 2:return i=(n=t.sent).results.map(function(e){return new O(a.config,e.uid,e.primaryKey)}),t.abrupt("return",Object.assign(Object.assign({},n),{results:i}));case 5:case"end":return t.stop()}},t,this)}))}},{key:"getRawIndexes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(this,void 0,void 0,r().mark(function t(){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.httpRequest.get("indexes",e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}},t,this)}))}},{key:"createIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return y(this,void 0,void 0,r().mark(function n(){return r().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,O.create(e,t,this.config);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}},n,this)}))}},{key:"updateIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return y(this,void 0,void 0,r().mark(function n(){return r().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,new O(this.config,e).update(t);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}},n,this)}))}},{key:"deleteIndex",value:function(e){return y(this,void 0,void 0,r().mark(function t(){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,new O(this.config,e).delete();case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)}))}},{key:"deleteIndexIfExists",value:function(e){return y(this,void 0,void 0,r().mark(function t(){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.deleteIndex(e);case 3:return t.abrupt("return",!0);case 6:if(t.prev=6,t.t0=t.catch(0),"index_not_found"!==t.t0.code){t.next=10;break}return t.abrupt("return",!1);case 10:throw t.t0;case 11:case"end":return t.stop()}},t,this,[[0,6]])}))}},{key:"swapIndexes",value:function(e){return y(this,void 0,void 0,r().mark(function t(){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.httpRequest.post("/swap-indexe
6s",e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}},t,this)}))}},{key:"multiSearch",value:function(e,t){return y(this,void 0,void 0,r().mark(function n(){return r().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=3,this.httpRequest.post("multi-search",e,void 0,t);case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}},n,this)}))}},{key:"getTasks",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(this,void 0,void 0,r().mark(function t(){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.tasks.getTasks(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)}))}},{key:"getTask",value:function(e){return y(this,void 0,void 0,r().mark(function t(){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.tasks.getTask(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)}))}},{key:"waitForTasks",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.timeOutMs,i=void 0===n?5e3:n,a=t.intervalMs,o=void 0===a?50:a;return y(this,void 0,void 0,r().mark(function t(){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.tasks.waitForTasks(e,{timeOutMs:i,intervalMs:o});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)}))}},{key:"waitForTask",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.timeOutMs,i=void 0===n?5e3:n,a=t.intervalMs,o=void 0===a?50:a;return y(this,void 0,void 0,r().mark(function t(){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.tasks.waitForTask(e,{timeOutMs:i,intervalMs:o});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)}))}},{key:"cancelTasks",value:function(e){return y(this,void 0,void 0,r().mark(function t(){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.tasks.cancelTasks(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)}))}},{key:"deleteTasks",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(this,void 0,void 0,r().mark(function t(){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.tasks.deleteTasks(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)}))}},{key:"getKeys",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(this,void 0,void 0,r().mark(function t(){var n;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.httpRequest.get("keys",e);case 3:return(n=t.sent).results=n.results.map(function(e){return Object.assign(Object.assign({},e),{createdAt:new Date(e.createdAt),updatedAt:new Date(e.updatedAt)})}),t.abrupt("return",n);case 6:case"end":return t.stop()}},t,this)}))}},{key:"getKey",value:function(e){return y(this,void 0,void 0,r().mark(function t(){var n;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n="keys/".concat(e),t.next=3,this.httpRequest.get(n);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}},t,this)}))}},{key:"createKey",value:function(e){return y(this,void 0,void 0,r().mark(function t(){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.httpRequest.post("keys",e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}},t,this)}))}},{key:"updateKey",value:function(e,t){return y(this,void 0,void 0,r().mark(function n(){var i;return r().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return i="keys/".concat(e),r.next=3,this.httpRequest.patch(i,t);case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}},n,this)}))}},{key:"deleteKey",value:function(e){return y(this,void 0,void 0,r().mark(function t(){var n;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n="keys/".concat(e),t.next=3,this.httpRequest.delete(n);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}},t,this)}))}},{key:"health",value:function(){return y(this,void 0,void 0,r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,this.httpRequest.get("health");case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}))}},{key:"isHealthy",value:function(){return y(this,void 0,void 0,r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=4,this.httpRequest.get("health");case 4:return e.abrupt("return",!0);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",!1);case 10:case"end":return e.stop()}},e,this,[[0,7]])}))}},{key:"getStats",value:function(){return y(this,void 0,void 0,r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,this.httpRequest.get("stats");case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}))}},{key:"getVersion",value:function(){return y(this,void 0,void 0,r().mark(function e(){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,this.httpRequest.get("version");case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}))}},{key:"createDump",value:function(){return y(this,void 0,void 0,r().mark(function e(){var t;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,this.httpRequest.post("dumps");case 3:return t=e.sent,e.abrupt("return",new C(t));case 5:case"end":return e.stop()}},e,this)}))}},{key:"generateTenantToken",value:function(e,t,r){var n=Error();throw Error("Meilisearch: failed to generate a tenant token. Generation of a token only w
6orks in a node environment \n ".concat(n.stack,"."))}}]),e}());t.ContentTypeEnum={JSON:"application/json",CSV:"text/csv",NDJSON:"application/x-ndjson"},t.Index=O,t.MatchingStrategies={ALL:"all",LAST:"last"},t.MeiliSearch=R,t.MeiliSearchApiError=x,t.MeiliSearchCommunicationError=b,t.MeiliSearchError=k,t.MeiliSearchTimeOutError=S,t.default=R,t.httpErrorHandler=_,t.httpResponseErrorHandler=w,t.versionErrorHintMessage=E,Object.defineProperty(t,"__esModule",{value:!0})}(r)},547482,e=>{"use strict";var t=e.i(22114);function r(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function n(e,t){let i=Object.keys(e),a=Object.keys(t);return i.length===a.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&i.every(i=>{let a=e[i],o=t[i];return"function"==typeof a?`${a}`==`${o}`:r(a)&&r(o)?n(a,o):a===o})}function i(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function a(e){return"number"==typeof e}function o(e){return"string"==typeof e}function s(e){return"boolean"==typeof e}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(e){return Math.abs(e)}function c(e){return Math.sign(e)}function d(e){return h(e).map(Number)}function p(e){return e[f(e)]}function f(e){return Math.max(0,e.length-1)}function m(e,t=0){return Array.from(Array(e),(e,r)=>t+r)}function h(e){return Object.keys(e)}function g(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function v(e,t){let r=u(e-t);function n(r){return r<e||r>t}return{length:r,max:t,min:e,constrain:function(r){return n(r)?r<e?e:t:r},reachedAny:n,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return r?e-r*Math.ceil((e-t)/r):e}}}function y(){let e=[],t={add:function(r,n,i,a={passive:!0}){let o;return"addEventListener"in r?(r.addEventListener(n,i,a),o=()=>r.removeEventListener(n,i,a)):(r.addListener(i),o=()=>r.removeListener(i)),e.push(o),t},clear:function(){e=e.filter(e=>e())}};return t}function b(e){let t=e;function r(e){return a(e)?e:e.get()}return{get:function(){return t},set:function(e){t=r(e)},add:function(e){t+=r(e)},subtract:function(e){t-=r(e)}}}function x(e,t,r){let n="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},i=r.style,a=!1;return{clear:function(){!a&&(i.transform="",r.getAttribute("style")||r.removeAttribute("style"))},to:function(e){a||(i.transform=n(t.apply(e)))},toggleActive:function(e){a=!e}}}let w={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function _(e,t,r){let n,i,k,S,E,T,j,I,C=e.ownerDocument,A=C.defaultView,N=function(e){function t(e,t){return function e(t,r){return[t,r].reduce((t,r)=>(h(r).forEach(n=>{let i=t[n],a=r[n],o=l(i)&&l(a);t[n]=o?e(i,a):a}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(r){let n=r.breakpoints||{},i=h(n).filter(t=>e.matchMedia(t).matches).map(e=>n[e]).reduce((e,r)=>t(e,r),{});return t(r,i)},optionsMediaQueries:function(t){return t.map(e=>h(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(A),O=(I=[],{init:function(e,t){return(I=t.filter(({options:e})=>!1!==N.optionsAtMedia(e).active)).forEach(t=>t.init(e,N)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){I=I.filter(e=>e.destroy())}}),R=y(),P=y(),D=(i={},k={init:function(e){n=e},emit:function(e){return(i[e]||[]).forEach(t=>t(n,e)),k},off:function(e,t){return i[e]=(i[e]||[]).filter(e=>e!==t),k},on:function(e,t){return i[e]=(i[e]||[]).concat([t]),k}}),{animationRealms:$}=_,{mergeOptions:L,optionsAtMedia:M,optionsMediaQueries:U}=N,{on:z,off:F,emit:q}=D,Z=!1,V=L(w,_.globalOptions),B=L(V),H=[];function W(t,r){if(Z)return;let n=$.find(e=>e.window===A),i=n||function(e){let t=1e3/60,r=[],n=null,i=0,a=0;function o(s){n||(n=s);let l=s-n;for(n=s,i+=l;i>=t;)r.forEach(({animation:e})=>
6e.update()),i-=t;let c=u(i/t);r.forEach(({animation:e})=>e.render(c)),a&&e.requestAnimationFrame(o)}return{start:function(t){r.includes(t)||r.push(t),a||(a=e.requestAnimationFrame(o))},stop:function(t){(r=r.filter(e=>e!==t)).length||(e.cancelAnimationFrame(a),n=null,i=0,a=0)},reset:function(){n=null,i=0},window:e}}(A);n||$.push(i),B=M(V=L(V,t)),H=r||H,function(){let{container:t,slides:r}=B;T=(o(t)?e.querySelector(t):t)||e.children[0];let n=o(r)?T.querySelectorAll(r):r;j=[].slice.call(n||T.children)}(),S=function t(r,n){let i=function(e,t,r,n,i,l,w,_){var k,S;let E,T,j,I,C,A,N,O,R,P,D,$,L,M,U,z,F,q,Z,V,B,H,{align:W,axis:G,direction:K,startIndex:Y,loop:X,duration:J,dragFree:Q,dragThreshold:ee,inViewThreshold:et,slidesToScroll:er,skipSnaps:en,containScroll:ei,watchResize:ea,watchSlides:eo,watchDrag:es}=l,el={measure:function(e){let{offsetTop:t,offsetLeft:r,offsetWidth:n,offsetHeight:i}=e;return{top:t,right:r+n,bottom:t+i,left:r,width:n,height:i}}},eu=el.measure(t),ec=r.map(el.measure),ed=(I="rtl"===K?-1:1,{apply:function(e){return e*I}}),ep=(A="y"==(C="y"===G?"y":"x")?"top":"rtl"===K?"right":"left",N="y"===C?"bottom":"rtl"===K?"left":"right",{scroll:C,cross:"y"===G?"x":"y",startEdge:A,endEdge:N,measureSize:function(e){let{width:t,height:r}=e;return"x"===C?t:r}}),ef=ep.measureSize(eu),em={measure:function(e){return e/100*ef}},eh=(k=W,S=ef,E={start:function(){return 0},center:function(e){return(S-e)/2},end:function(e){return S-e}},{measure:function(e,t){return o(k)?E[k](e):k(S,e,t)}}),eg=!X&&!!ei,{slideSizes:ev,slideSizesWithGaps:ey,startGap:eb,endGap:ex}=function(e,t,r,n,i,a){let{measureSize:o,startEdge:s,endEdge:l}=e,c=r[0]&&i,d=function(){if(!c)return 0;let e=r[0];return u(t[s]-e[s])}(),m=c?parseFloat(a.getComputedStyle(p(n)).getPropertyValue(`margin-${l}`)):0,h=r.map(o),g=r.map((e,t,r)=>{let n=t===f(r);return t?n?h[t]+m:r[t+1][s]-e[s]:h[t]+d}).map(u);return{slideSizes:h,slideSizesWithGaps:g,startGap:d,endGap:m}}(ep,eu,ec,r,X||!!ei,i),ew=function(e,t,r,n,i,o,s,l,c){let{startEdge:m,endEdge:h}=e,g=a(n);return{groupSlides:function(e){return g?d(e).filter(e=>e%n==0).map(t=>e.slice(t,t+n)):e.length?d(e).reduce((n,a)=>{let d=p(n)||0,g=a===f(e),v=o[m]-s[d][m],y=o[m]-s[a][h],b=i||0!==d?0:t.apply(l);return u(y-(!i&&g?t.apply(c):0)-(v+b))>r&&n.push(a),g&&n.push(e.length),n},[]).map((t,r,n)=>{let i=Math.max(n[r-1]||0);return e.slice(i,t)}):[]}}}(ep,ed,ef,er,X,eu,ec,eb,ex),{snaps:e_,snapsAligned:ek}=function(e,t,r,n,i){let{startEdge:a,endEdge:o}=e,{groupSlides:s}=i,l=s(n).map(e=>p(e)[o]-e[0][a]).map(u).map(t.measure),c=n.map(e=>r[a]-e[a]).map(e=>-u(e)),d=s(c).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:c,snapsAligned:d}}(ep,eh,eu,ec,ew),eS=-p(e_)+p(ey),{snapsContained:eE,scrollContainLimit:eT}=(O=v(-eS+ef,0),T=(R=ek.map((e,t)=>{let r=t===f(ek);return t?r?O.min:O.constrain(e):O.max}).map(e=>parseFloat(e.toFixed(3))))[0],j=p(R),P=v(R.lastIndexOf(T),R.indexOf(j)+1),{snapsContained:function(){if(eS<=ef)return[O.max];if("keepSnaps"===ei)return R;let{min:e,max:t}=P;return R.slice(e,t)}(),scrollContainLimit:P}),ej=eg?eE:ek,{limit:eI}=(D=ej[0],{limit:v(X?D-eS:p(ej),D)}),eC=function e(t,r,n){let{constrain:i}=v(0,t),a=t+1,o=s(r);function s(e){return n?u((a+e)%a):i(e)}function l(){return e(t,o,n)}let c={get:function(){return o},set:function(e){return o=s(e),c},add:function(e){return l().set(o+e)},clone:l};return c}(f(ej),Y,X),eA=eC.clone(),eN=d(r),eO={start:()=>_.start(eB),stop:()=>_.stop(eB),update:()=>(({dragHandler:e,scrollBody:t,scrollBounds:r,options:{loop:n}})=>{n||r.constrain(e.pointerDown()),t.seek()})(eB),render:e=>(({scrollBody:e,translate:t,location:r,offsetLocation:n,scrollLooper:i,slideLooper:a,dragHandler:o,animation:s,eventHandler:l,options:{loop:u}},c)=>{let d=e.velocity(),p=e.settled();p&&!o.pointerDown()&&(s.stop(),l.emit("settle")),p||l.emit("scroll"),n.set(r.get()-d+d*c),u&&(i.loop(e.direction()),a.loop()),t.to(n.get())})(eB,e)},eR=ej[eC.get()],eP=b(eR),eD=b(eR),e$=b(eR),eL=function(e,t,r,n){let i=0,a=0,o=n,s=.68,l=e.get(),d=0;function p(e){return o=e,m}function f(e){return s=e,m}let m={direction:function(){return a},duration:function(){return o},velocity:function(){return i},seek:function(){let t=r.get()-e.get(),n=0;return o?(i+=t/o,i*=s,l+=i,e.add(i),n=l-d):(i=0,e.set(r),n=t),a=c(n),d=l,m},settled:function(){return .001>u(r.get()-t.get())},useBaseFriction:function(){return f(.68)},useBaseDuration:function(){return p(n)},useFriction:f,useDuration:p};return m}(eP,eD,e$,J),eM=function(e,t,r,n,i){let{reachedAny:a,removeOffset:o,constrain:s}=n;function l(e){return e.concat().sort((e,t)=>
6u(e)-u(t))[0]}function d(t,n){let i=[t,t+r,t-r];if(!e)return i[0];if(!n)return l(i);let a=i.filter(e=>c(e)===n);return a.length?l(a):p(i)-r}return{byDistance:function(r,n){let l=i.get()+r,{index:c,distance:p}=function(r){let n=e?o(r):s(r),{index:i}=t.map(e=>e-n).map(e=>d(e,0)).map((e,t)=>({diff:e,index:t})).sort((e,t)=>u(e.diff)-u(t.diff))[0];return{index:i,distance:n}}(l),f=!e&&a(l);if(!n||f)return{index:c,distance:r};let m=r+d(t[c]-p,0);return{index:c,distance:m}},byIndex:function(e,r){let n=d(t[e]-i.get(),r);return{index:e,distance:n}},shortcut:d}}(X,ej,eS,eI,e$),eU=function(e,t,r,n,i,a){function o(n){let o=n.distance,s=n.index!==t.get();i.add(o),o&&e.start(),s&&(r.set(t.get()),t.set(n.index),a.emit("select"))}return{distance:function(e,t){o(n.byDistance(e,t))},index:function(e,r){let i=t.clone().set(e);o(n.byIndex(i.get(),r))}}}(eO,eC,eA,eM,e$,w),ez=function(e){let{max:t,length:r}=e;return{get:function(e){return r?-((e-t)/r):0}}}(eI),eF=y(),eq=(L={},M=null,U=null,z=!1,{init:function(){$=new IntersectionObserver(e=>{z||(e.forEach(e=>{L[r.indexOf(e.target)]=e}),M=null,U=null,w.emit("slidesInView"))},{root:t.parentElement,threshold:et}),r.forEach(e=>$.observe(e))},destroy:function(){$&&$.disconnect(),z=!0},get:function(e=!0){if(e&&M)return M;if(!e&&U)return U;let t=h(L).reduce((t,r)=>{let n=parseInt(r),{isIntersecting:i}=L[n];return(e&&i||!e&&!i)&&t.push(n),t},[]);return e&&(M=t),e||(U=t),t}}),{slideRegistry:eZ}=function(e,t,r,n,i,a,o){let s,{groupSlides:l}=a,{min:u,max:c}=i;return{slideRegistry:(s=l(o),!r||"keepSnaps"===n||t<=e?s:s.slice(u,c).map((e,t,r)=>{let n=t===f(r);return t?n?m(f(o)-p(r)[0]+1,p(r)[0]):e:m(p(r[0])+1)}))}}(ef,eS,eg,ei,eT,ew,eN),eV=function(e,t,r,n,i,o){let s=0;function l(e){"Tab"===e.code&&(s=new Date().getTime())}function u(l){o.add(l,"focus",()=>{if(new Date().getTime()-s>10)return;e.scrollLeft=0;let o=t.indexOf(l),u=r.findIndex(e=>e.includes(o));a(u)&&(i.useDuration(0),n.index(u,0))},{passive:!0,capture:!0})}return{init:function(){o.add(document,"keydown",l,!1),t.forEach(u)}}}(e,r,eZ,eU,eL,eF),eB={ownerDocument:n,ownerWindow:i,eventHandler:w,containerRect:eu,slideRects:ec,animation:eO,axis:ep,direction:ed,dragHandler:function(e,t,r,n,i,a,o,l,d,p,f,m,h,b,x,w,_,k,S){let{cross:E}=e,T=["INPUT","SELECT","TEXTAREA"],j={passive:!1},I=y(),C=y(),A=v(50,225).constrain(x.measure(20)),N={mouse:300,touch:400},O={mouse:500,touch:600},R=w?43:25,P=!1,D=0,$=0,L=!1,M=!1,U=!1,z=!1;function F(e){let r=o.readPoint(e),n=o.readPoint(e,E),i=u(r-D),s=u(n-$);if(!M&&!z&&(!e.cancelable||!(M=i>s)))return q(e);let l=o.pointerMove(e);i>_&&(U=!0),f.useFriction(.3).useDuration(1),d.start(),a.add(t.apply(l)),e.preventDefault()}function q(e){var r;let n,i,a=m.byDistance(0,!1).index!==h.get(),s=o.pointerUp(e)*(w?O:N)[z?"mouse":"touch"],l=(r=t.apply(s),n=h.add(-1*c(r)),i=m.byDistance(r,!w).distance,w||u(r)<A?i:k&&a?.5*i:m.byIndex(n.get(),0).distance),d=function(e,t){var r,n;if(0===e||0===t||u(e)<=u(t))return 0;let i=(r=u(e),n=u(t),u(r-n));return u(i/e)}(s,l);M=!1,L=!1,C.clear(),f.useDuration(R-10*d).useFriction(.68+d/50),p.distance(l,!w),z=!1,b.emit("pointerUp")}function Z(e){U&&(e.stopPropagation(),e.preventDefault())}return{init:function(e){S&&I.add(r,"dragstart",e=>e.preventDefault(),j).add(r,"touchmove",()=>void 0,j).add(r,"touchend",()=>void 0).add(r,"touchstart",t).add(r,"mousedown",t).add(r,"touchcancel",q).add(r,"contextmenu",q).add(r,"click",Z,!0);function t(t){(s(S)||S(e,t))&&function(e){let t,s=g(e,i);if((z=s,!s||0===e.button)&&(t=e.target.nodeName||"",!T.includes(t))){let t;U=w&&s&&!e.buttons&&P,P=u(a.get()-l.get())>=2,L=!0,o.pointerDown(e),f.useFriction(0).useDuration(0),a.set(l),t=z?n:r,C.add(t,"touchmove",F,j).add(t,"touchend",q).add(t,"mousemove",F,j).add(t,"mouseup",q),D=o.readPoint(e),$=o.readPoint(e,E),b.emit("pointerDown")}}(t)}},pointerDown:function(){return L},destroy:function(){I.clear(),C.clear()}}}(ep,ed,e,n,i,e$,function(e,t){let r,n;function i(e){return e.timeStamp}function a(r,n){let i=n||e.scroll,a=`client${"x"===i?"X":"Y"}`;return(g(r,t)?r:r.touches[0])[a]}return{pointerDown:function(e){return r=e,n=e,a(e)},pointerMove:function(e){let t=a(e)-a(n),o=i(e)-i(r)>170;return n=e,o&&(r=e),t},pointerUp:function(e){if(!r||!n)return 0;let t=a(n)-a(r),o=i(e)-i(r),s=i(e)-i(n)>170,l=t/o;return o&&!s&&u(l)>.1?l:0},readPoint:a}}(ep,i),eP,eO,eU,eL,eM,eC,w,em,Q,ee,en,es),eventStore:eF,percentOfView:em,index:eC,indexPrevious:eA,limit:eI,location:eP,offsetLocation:eD,options:l,resizeHandler:function(e,t,r,n,i,a,o){let l,c,d=[],p=!1;function f(e){return i.measureSize(o.measure(e))}return{init:function(i){a&&(c=f(e),d=n.map(f),l=new ResizeObserver(o=>{!p&&(s(a)||a(i,o))&&function(a){for(let o of a){let a=o.target===e,s=n.indexOf(o.target),l=a?c:d[s];if(u(f(a?e:n[s])-l)>=.5){r.requestAnimationFrame(()=>{i.reInit(),t.emit("resize")});break}}}(o)}
6),[e].concat(n).forEach(e=>l.observe(e)))},destroy:function(){l&&l.disconnect(),p=!0}}}(t,w,i,r,ep,ea,el),scrollBody:eL,scrollBounds:(F=em.measure(10),q=em.measure(50),Z=v(.1,.99),V=!1,{constrain:function(e){if(!(!V&&eI.reachedAny(e$.get())&&eI.reachedAny(eP.get())&&1))return;let t=eI.reachedMin(eP.get())?"min":"max",r=u(eI[t]-eP.get()),n=e$.get()-eP.get(),i=Z.constrain(r/q);e$.subtract(n*i),!e&&u(n)<F&&(e$.set(eI.constrain(e$.get())),eL.useDuration(25).useBaseFriction())},toggleActive:function(e){V=!e}}),scrollLooper:function(e,t,r,n){let{reachedMin:i,reachedMax:a}=v(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?a(r.get()):-1===t&&i(r.get())))return;let o=-1*t*e;n.forEach(e=>e.add(o))}}}(eS,eI,eD,[eP,eD,e$]),scrollProgress:ez,scrollSnapList:ej.map(ez.get),scrollSnaps:ej,scrollTarget:eM,scrollTo:eU,slideLooper:function(e,t,r,n,i,a,o,s,l,u){let c=d(a),p=d(a).reverse(),f=g(h(p,s[0]),n,!1).concat(g(h(c,r-s[0]-1),-n,!0));function m(e,t){return e.reduce((e,t)=>e-a[t],t)}function h(e,t){return e.reduce((e,r)=>m(e,t)>0?e.concat([r]):e,[])}function g(a,s,c){let d=o.map((e,t)=>({start:e-i[t]+.5+s,end:e+r-.5+s}));return a.map(r=>{let i=c?0:-n,a=c?n:0,o=d[r][c?"end":"start"];return{index:r,loopPoint:o,slideLocation:b(-1),translate:x(e,t,u[r]),target:()=>l.get()>o?i:a}})}return{canLoop:function(){return f.every(({index:e})=>.1>=m(c.filter(t=>t!==e),r))},clear:function(){f.forEach(e=>e.translate.clear())},loop:function(){f.forEach(e=>{let{target:t,translate:r,slideLocation:n}=e,i=t();i!==n.get()&&(r.to(i),n.set(i))})},loopPoints:f}}(ep,ed,ef,eS,ev,ey,e_,ej,eD,r),slideFocus:eV,slidesHandler:(H=!1,{init:function(e){eo&&(B=new MutationObserver(t=>{!H&&(s(eo)||eo(e,t))&&function(t){for(let r of t)if("childList"===r.type){e.reInit(),w.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){B&&B.disconnect(),H=!0}}),slidesInView:eq,slideIndexes:eN,slideRegistry:eZ,slidesToScroll:ew,target:e$,translate:x(ep,ed,t)};return eB}(e,T,j,C,A,r,D,n);return r.loop&&!i.slideLooper.canLoop()?t(Object.assign({},r,{loop:!1}),n):i}(B,i),U([V,...H.map(({options:e})=>e)]).forEach(e=>R.add(e,"change",G)),B.active&&(S.translate.to(S.location.get()),S.slidesInView.init(),S.slideFocus.init(),S.eventHandler.init(J),S.resizeHandler.init(J),S.slidesHandler.init(J),P.add(C,"visibilitychange",()=>{C.hidden&&i.reset()}),S.options.loop&&S.slideLooper.loop(),T.offsetParent&&j.length&&S.dragHandler.init(J),E=O.init(J,H))}function G(e,t){let r=X();K(),W(L({startIndex:r},e),t),D.emit("reInit")}function K(){S.dragHandler.destroy(),S.animation.stop(),S.eventStore.clear(),S.translate.clear(),S.slideLooper.clear(),S.resizeHandler.destroy(),S.slidesHandler.destroy(),S.slidesInView.destroy(),O.destroy(),R.clear(),P.clear()}function Y(e,t,r){B.active&&!Z&&(S.scrollBody.useBaseFriction().useDuration(t?0:B.duration),S.scrollTo.index(e,r||0))}function X(){return S.index.get()}let J={canScrollNext:function(){return S.index.add(1).get()!==X()},canScrollPrev:function(){return S.index.add(-1).get()!==X()},containerNode:function(){return T},internalEngine:function(){return S},destroy:function(){Z||(Z=!0,R.clear(),K(),D.emit("destroy"))},off:F,on:z,emit:q,plugins:function(){return E},previousScrollSnap:function(){return S.indexPrevious.get()},reInit:G,rootNode:function(){return e},scrollNext:function(e){Y(S.index.add(1).get(),!0===e,-1)},scrollPrev:function(e){Y(S.index.add(-1).get(),!0===e,1)},scrollProgress:function(){return S.scrollProgress.get(S.location.get())},scrollSnapList:function(){return S.scrollSnapList},scrollTo:Y,selectedScrollSnap:X,slideNodes:function(){return j},slidesInView:function(){return S.slidesInView.get()},slidesNotInView:function(){return S.slidesInView.get(!1)}};return W(t,r),setTimeout(()=>D.emit("init"),0),J}function k(e={},r=[]){let a=(0,t.useRef)(e),o=(0,t.useRef)(r),[s,l]=(0,t.useState)(),[u,c]=(0,t.useState)(),d=(0,t.useCallback)(()=>{s&&s.reInit(a.current,o.current)},[s]);return(0,t.useEffect)(()=>{if("u">typeof window&&window.document&&window.document.createElement&&u){_.globalOptions=k.globalOptions;let e=_(u,a.current,o.current);return l(e),()=>e.destroy()}l(void 0)},[u,l]),(0,t.useEffect)(()=>{n(a.current,e)||(a.current=e,d())},[e,d]),(0,t.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let r=i(e),a=i(t);return r.every((e,t)=>n(e,a[t]))}(o.current,r)&&(o.current=r,d())},[r,d]),[c,s]}_.animationRealms=[],_.globalOptions=void 0,k.globalOptions=void 0,e.s(["default",0,k],547482)},452165,e=>{"use strict";var t=e.i(22114),r=e.i(836979);e.s(["usePresence",0,function(e=!0){let n=(0,t.useContext)(r.PresenceContext);if(null===n)return[!0,null];let{isPresent:i,onExitComplete:a,register:o}=n,s=(0,t.useId)();(0,t.useEffect)(()=>
6{if(e)return o(s)},[e]);let l=(0,t.useCallback)(()=>e&&a&&a(s),[s,a,e]);return!i&&a?[!1,l]:[!0]}])},889547,e=>{"use strict";let t=(0,e.i(22114).createContext)({});e.s(["LayoutGroupContext",0,t])},99929,e=>{"use strict";let t=(0,e.i(22114).createContext)({strict:!1});e.s(["LazyContext",0,t])},995145,e=>{"use strict";let t=(0,e.i(22114).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});e.s(["MotionConfigContext",0,t])},836979,e=>{"use strict";let t=(0,e.i(22114).createContext)(null);e.s(["PresenceContext",0,t])},718100,382471,664356,61720,903692,e=>{"use strict";var t=e.i(805219),r=e.i(625199),n=e.i(973933),i=e.i(680124),a=e.i(264250);function o(e){return(0,a.isObject)(e)&&"ownerSVGElement"in e}var s=e.i(347248),l=e.i(965836),u=e.i(924140),c=e.i(984776),d=e.i(840289),p=e.i(134026),f=e.i(647480),m=e.i(470180),h=e.i(483032),g=e.i(175602),v=e.i(538305),y=e.i(450190),b=e.i(974568),x=e.i(133639);let w=(e,t)=>e.depth-t.depth;class _{constructor(){this.children=[],this.isDirty=!1}add(e){(0,x.addUniqueItem)(this.children,e),this.isDirty=!0}remove(e){(0,x.removeItem)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(w),this.isDirty=!1,this.children.forEach(e)}}e.i(667327);var k=e.i(674762),S=e.i(21365),E=e.i(747113),T=e.i(118744);let j=["TopLeft","TopRight","BottomLeft","BottomRight"],I=j.length,C=e=>"string"==typeof e?parseFloat(e):e,A=e=>"number"==typeof e||S.px.test(e);function N(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let O=P(0,.5,T.circOut),R=P(.5,.95,g.noop);function P(e,t,r){return n=>n<e?0:n>t?1:r((0,E.progress)(e,t,n))}function D(e,t){e.min=t.min,e.max=t.max}function $(e,t){D(e.x,t.x),D(e.y,t.y)}function L(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var M=e.i(124241),U=e.i(585655);function z(e,t,r,n,i){return e-=t,e=(0,M.scalePoint)(e,1/r,n),void 0!==i&&(e=(0,M.scalePoint)(e,1/i,n)),e}function F(e,t,[r,n,i],a,o){!function(e,t=0,r=1,n=.5,i,a=e,o=e){if(S.percent.test(t)&&(t=parseFloat(t),t=(0,f.mixNumber)(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let s=(0,f.mixNumber)(a.min,a.max,n);e===a&&(s-=t),e.min=z(e.min,t,r,s,i),e.max=z(e.max,t,r,s,i)}(e,t[r],t[n],t[i],t.scale,a,o)}let q=["x","scaleX","originX"],Z=["y","scaleY","originY"];function V(e,t,r,n){F(e.x,t,q,r?r.x:void 0,n?n.x:void 0),F(e.y,t,Z,r?r.y:void 0,n?n.y:void 0)}var B=e.i(927468);function H(e){return 0===e.translate&&1===e.scale}function W(e){return H(e.x)&&H(e.y)}function G(e,t){return e.min===t.min&&e.max===t.max}function K(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Y(e,t){return K(e.x,t.x)&&K(e.y,t.y)}function X(e){return(0,U.calcLength)(e.x)/(0,U.calcLength)(e.y)}function J(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Q{constructor(){this.members=[]}add(e){(0,x.addUniqueItem)(this.members,e),e.scheduleRender()}remove(e){if((0,x.removeItem)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,r=this.members.findIndex(t=>e===t);if(0===r)return!1;for(let e=r;e>=0;e--){let r=this.members[e];if(!1!==r.isPresent){t=r;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:n}=e.options;!1===n&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var ee=e.i(483311),et=e.i(556871),er=e.i(710959),en=e.i(448040);let ei={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ea=["","X","Y","Z"],eo=0;function es(e,t,r,n){let{latestValues:i}=t;i[e]&&(r[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function el({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:a}){return class{constructor(e={},r=t?.()){this.id=eo++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,i.statsBuffer.value&&(ei.nodes=ei.calculatedTargetDeltas=ei.c
6alculatedProjections=0),this.nodes.forEach(ed),this.nodes.forEach(ey),this.nodes.forEach(eb),this.nodes.forEach(ep),i.statsBuffer.addProjectionMetrics&&i.statsBuffer.addProjectionMetrics(ei)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new _)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new m.SubscriptionManager),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=o(t)&&!(o(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:r,layout:n,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||r)&&(this.isLayoutDirty=!0),e){let r,n=0,i=()=>this.root.updateBlockedByResize=!1;s.frame.read(()=>{n=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==n){let t,a;n=e,this.root.updateBlockedByResize=!0,r&&r(),t=u.time.now(),a=({timestamp:e})=>{let r=e-t;r>=250&&((0,s.cancelFrame)(a),i())},s.frame.setup(a,!0),r=()=>(0,s.cancelFrame)(a),en.globalProjectionState.hasAnimatedSinceResize&&(en.globalProjectionState.hasAnimatedSinceResize=!1,this.nodes.forEach(ev))}})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&i&&(r||n)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||eE,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),u=!this.targetLayout||!Y(this.targetLayout,n),c=!t&&r;if(this.options.layoutRoot||this.resumeFrom||c||t&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...(0,l.getValueTransition)(a,"layout"),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c)}else t||ev(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,s.cancelFrame)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ex),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:r}=t.options;if(!r)return;let n=(0,b.getOptimisedAppearId)(r);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:e,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",s.frame,!(e||r))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEac
6h(em);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(eh);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(eg),this.nodes.forEach(eu),this.nodes.forEach(ec)):this.nodes.forEach(eh),this.clearAllSnapshots();let e=u.time.now();s.frameData.delta=(0,h.clamp)(0,1e3/60,e-s.frameData.timestamp),s.frameData.timestamp=e,s.frameData.isProcessing=!0,s.frameSteps.update.process(s.frameData),s.frameSteps.preRender.process(s.frameData),s.frameSteps.render.process(s.frameData),s.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,c.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ef),this.sharedNodes.forEach(ew)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,s.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){s.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||(0,U.calcLength)(this.snapshot.measuredBox.x)||(0,U.calcLength)(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=(0,B.createBox)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!a)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!W(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,i=n!==this.prevTransformTemplateValue;e&&this.instance&&(t||(0,er.hasTransform)(this.latestValues)||i)&&(a(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),n=this.removeElementScroll(r);return e&&(n=this.removeTransform(n)),eI((t=n).x),eI(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return(0,B.createBox)();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(eA))){let{scroll:e}=this.root;e&&((0,M.translateAxis)(t.x,e.offset.x),(0,M.translateAxis)(t.y,e.offset.y))}return t}removeElementScroll(e){let t=(0,B.createBox)();if($(t,e),this.scroll?.wasRoot)return t;for(let r=0;r<this.path.length;r++){let n=this.path[r],{scroll:i,options:a}=n;n!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&$(t,e),(0,M.translateAxis)(t.x,i.offset.x),(0,M.translateAxis)(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let r=(0,B.createBox)();$(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(0,M.transformBox)(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),(0,er.hasTransform)(n.latestValues)&&(0,M.transformBox)(r,n.latestValues)}return(0,er.hasTransform)(this.latestValues)&&(0,M.transformBox)(r,this.latestValues),r}removeTransform(e){let t=(0,B.createBox)();$(t,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];if(!r.instance||!(0,er.hasTransform)(r.latestValues))continue;(0,er.hasScale)(r.latestValues)&&r.updateSnapshot();let n=(0,B.createBox)();$(n,r.measurePageBox()),V(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return(0,er.hasTransform)(this.latestValues)&&V(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==s.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
6isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let r=!!this.resumingFrom||this!==t;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:a}=this.options;if(!this.layout||!(n||a))return;this.resolvedRelativeTargetAt=s.frameData.timestamp;let o=this.getClosestProjectingParent();o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=(0,B.createBox)(),this.targetWithTransforms=(0,B.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,U.calcRelativeBox)(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):$(this.target,this.layout.layoutBox),(0,M.applyBoxDelta)(this.target,this.targetDelta)):$(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),i.statsBuffer.value&&ei.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||(0,er.hasScale)(this.parent.latestValues)||(0,er.has2DTranslate)(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,r){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,B.createBox)(),this.relativeTargetOrigin=(0,B.createBox)(),(0,U.calcRelativePosition)(this.relativeTargetOrigin,t,r),$(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(r=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===s.frameData.timestamp&&(r=!1),r)return;let{layout:n,layoutId:a}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||a))return;$(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,l=this.treeScale.y;(0,M.applyTreeDeltas)(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=(0,B.createBox)());let{target:u}=e;if(!u){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(L(this.prevProjectionDelta.x,this.projectionDelta.x),L(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),(0,U.calcBoxDelta)(this.projectionDelta,this.layoutCorrected,u,this.latestValues),this.treeScale.x===o&&this.treeScale.y===l&&J(this.projectionDelta.x,this.prevProjectionDelta.x)&&J(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",u)),i.statsBuffer.value&&ei.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,B.createDelta)(),this.projectionDelta=(0,B.createDelta)(),this.projectionDeltaWithTransform=(0,B.createDelta)()}setAnimationOrigin(e,t=!1){let r,n=this.snapshot,i=n?n.latestValues:{},a={...this.latestValues},o=(0,B.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=(0,B.createBox)(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(eS));this.animationProgress=0,this.mixTargetDelta=t=>{let n=t/1e3;if(e_(o.x,e.x,n),e_(o.y,e.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,p,m,h,g,v;(0,U.calcRelativePosition)(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,h=this.relativeTargetOrigin,g=s,v=n,ek(m.x,h.x,g.x,v),ek(m.y,h.y,g.y,v),r&&(u=this.relativeTarget,p=r,G(u.x,p.x)&&G(u.y,p.y))&&(this.isProjectionDirty=!1),r||(r=(0,B.createBox)()),$(r,this.relativeTarget)}l&&(this.animationValues=a,function(e,t,r,n,i,a){i?(e.opacity=(0,f.mixNumber)(0,r.opacity??1,O(n)),e.opacityExit=(0,f.mixNumber)(t.o
6pacity??1,0,R(n))):a&&(e.opacity=(0,f.mixNumber)(t.opacity??1,r.opacity??1,n));for(let i=0;i<I;i++){let a=`border${j[i]}Radius`,o=N(t,a),s=N(r,a);(void 0!==o||void 0!==s)&&(o||(o=0),s||(s=0),0===o||0===s||A(o)===A(s)?(e[a]=Math.max((0,f.mixNumber)(C(o),C(s),n),0),(S.percent.test(s)||S.percent.test(o))&&(e[a]+="%")):e[a]=s)}(t.rotate||r.rotate)&&(e.rotate=(0,f.mixNumber)(t.rotate||0,r.rotate||0,n))}(a,i,this.latestValues,n,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,s.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=s.frame.update(()=>{var t,r,n;let i;en.globalProjectionState.hasAnimatedSinceResize=!0,d.activeAnimations.layout++,this.motionValue||(this.motionValue=(0,p.motionValue)(0)),this.currentAnimation=(t=this.motionValue,r=[0,1e3],n={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{d.activeAnimations.layout--},onComplete:()=>{d.activeAnimations.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}},(i=(0,v.isMotionValue)(t)?t:(0,p.motionValue)(t)).start((0,y.animateMotionValue)("",i,r,n)),i.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&eC(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||(0,B.createBox)();let t=(0,U.calcLength)(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=(0,U.calcLength)(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}$(t,r),(0,M.transformBox)(t,i),(0,U.calcBoxDelta)(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Q),this.sharedNodes.get(e).add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;let n={};r.z&&es("z",e,n,this.animationValues);for(let t=0;t<ea.length;t++)es(`rotate${ea[t]}`,e,n,this.animationValues),es(`skew${ea[t]}`,e,n,this.animationValues);for(let t in e.render(),n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let r=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=(0,k.resolveMotionValue)(t?.pointerEvents)||"",e.transform=r?r(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=(0,k.resolveMotionValue)(t?.pointerEvents)||""),this.hasProjected&&!(0,er.hasTransform)(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1);return}e.visibility="";let i=n.animationValues||n.latestValues;this.applyTransformsToTarget();let a=function(e,t,r){let n="",i=e.x.translate/t.x,a=e.y.translate/t.y,o=r?.z||0;if((i||a||o)&&(n=`translate3d(${i}px, ${a}px, ${o}px) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=r;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),i&&(n+=`rotateX(${i}deg) `),a&&(n+=`rotateY(${a}deg) `),o&&(n+=`skewX(${o}deg) `),s&&(n+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(n+=`scale(${s}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);r&&(a=r(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${100*o.origin}% ${100*s.origin}% 0`,n.animationValues?e.opacity=n===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=n===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,ee.scaleCorrectors){if
6(void 0===i[t])continue;let{correct:r,applyTo:o,isCSSVariable:s}=ee.scaleCorrectors[t],l="none"===a?i[t]:r(i[t],n);if(o){let t=o.length;for(let r=0;r<t;r++)e[o[r]]=l}else s?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=n===this?(0,k.resolveMotionValue)(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(em),this.root.sharedNodes.clear()}}}function eu(e){e.updateLayout()}function ec(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:n}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;"size"===i?(0,et.eachAxis)(e=>{let n=a?t.measuredBox[e]:t.layoutBox[e],i=(0,U.calcLength)(n);n.min=r[e].min,n.max=n.min+i}):eC(i,t.layoutBox,r)&&(0,et.eachAxis)(n=>{let i=a?t.measuredBox[n]:t.layoutBox[n],o=(0,U.calcLength)(r[n]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+o)});let o=(0,B.createDelta)();(0,U.calcBoxDelta)(o,r,t.layoutBox);let s=(0,B.createDelta)();a?(0,U.calcBoxDelta)(s,e.applyTransform(n,!0),t.measuredBox):(0,U.calcBoxDelta)(s,r,t.layoutBox);let l=!W(o),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:i,layout:a}=n;
6if(i&&a){let o=(0,B.createBox)();(0,U.calcRelativePosition)(o,t.layoutBox,i.layoutBox);let s=(0,B.createBox)();(0,U.calcRelativePosition)(s,r,a.layoutBox),Y(o,s)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=o,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ed(e){i.statsBuffer.value&&ei.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ep(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ef(e){e.clearSnapshot()}function em(e){e.clearMeasurements()}function eh(e){e.isLayoutDirty=!1}function eg(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ev(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ey(e){e.resolveTargetDelta()}function eb(e){e.calcProjection()}function ex(e){e.resetSkewAndRotation()}function ew(e){e.removeLeadSnapshot()}function e_(e,t,r){e.translate=(0,f.mixNumber)(t.translate,0,r),e.scale=(0,f.mixNumber)(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function ek(e,t,r,n){e.min=(0,f.mixNumber)(t.min,r.min,n),e.max=(0,f.mixNumber)(t.max,r.max,n)}function eS(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let eE={duration:.45,ease:[.4,0,.1,1]},eT=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ej=eT("applewebkit/")&&!eT("chrome/")?Math.round:g.noop;function eI(e){e.min=ej(e.min),e.max=ej(e.max)}function eC(e,t,r){return"position"===e||"preserve-aspect"===e&&!(0,U.isNear)(X(t),X(r),.2)}function eA(e){return e!==e.root&&e.scroll?.wasRoot}var eN=e.i(718909);let eO=el({attachResizeListener:(e,t)=>(0,eN.addDomEvent)(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),eR={current:void 0},eP=el({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!eR.current){let e=new eO({});e.mount(window),e.setOptions({layoutScroll:!0}),eR.current=e}return eR.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});e.s(["HTMLProjectionNode",0,eP],382471);let eD={pan:{Feature:r.PanGesture},drag:{Feature:t.DragGesture,ProjectionNode:eP,MeasureLayout:n.MeasureLayout}};e.s(["drag",0,eD],718100);var e$=e.i(210681);function eL(e,t){let r=function(e){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document,r=(void 0)??t.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}(e),n=new AbortController;return[r,{passive:!0,...t,signal:n.signal},()=>n.abort()]}function eM(e){return!("touch"===e.pointerType||(0,e$.isDragActive)())}e.s(["setupGesture",0,eL],664356);var eU=e.i(163080),ez=e.i(275146);function eF(e,t,r){let{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===r);let i=n["onHover"+r];i&&s.frame.postRender(()=>i(t,(0,eU.extractEventInfo)(t)))}class eq extends ez.Feature{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){let[n,i,a]=eL(e,r),o=e=>{if(!eM(e))return;let{target:r}=e,n=t(r,e);if("function"!=typeof n||!r)return;let a=e=>{eM(e)&&(n(e),r.removeEventListener("pointerleave",a))};r.addEventListener("pointerleave",a,i)};return n.forEach(e=>{e.addEventListener("pointerenter",o,i)}),a}(e,(e,t)=>(eF(this.node,t,"Start"),e=>eF(this.node,e,"End"))))}unmount(){}}e.s(["HoverGesture",0,eq],61720);var eZ=e.i(218734),eV=ez;class eB extends eV.Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,eZ.pipe)((0,eN.addDomEvent)(this.node.current,"focus",()=>this.onFocus()),(0,eN.addDomEvent)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}e.s(["FocusGesture",0,eB],903692)},973933,448040,e=>{"use strict";var t=e.i(813919),r=e.i(347248),n=e.i(984776),i=e.i(22114),a=e.i(452165),o=e.i(889547),s=e.i(231024);let l={hasAnimatedSinceResize:!0,hasEverUpdated:!1};e.s(["globalProjectionState",0,l],448040);let u=!1;class c extends i.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),u&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),l.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:i,isPresent:a}=this.props,{projection:o}=n;return o&&(o.isPresent=a,u=!0,i||e.layoutDependency!==t||void 0===t||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||r.frame.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),n.microtask.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;u=!0,n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}e.s(["MeasureLayout",0,function(e){let[r,n]=(0,a.usePresence)(),l=(0,i.useContext)(o.LayoutGroupContext);return(0,t.jsx)(c,{...e,layoutGroup:l,switchLayoutGroup:(0,i.useContext)(s.SwitchLayoutGroupContext),isPresent:r,safeToRemove:n})}],973933)},134970,965836,974568,218734,667327,840289,118744,747113,450190,275146,183018,210681,718909,414161,
6163080,585655,556871,805219,625199,e=>{"use strict";let t;var r=e.i(813919),n=e.i(22114),i=e.i(889547),a=e.i(99929),o=e.i(995145),s=e.i(185866),l=e.i(909637),u=e.i(782304),c=e.i(794848),d=e.i(887850),p=e.i(349079),f=e.i(8790),m=e.i(643127),h=e.i(998022),g=e.i(630978),v=e.i(964758),y=e.i(781303),b=e.i(836979),x=e.i(231024),w=e.i(349576),_=e.i(16309);function k(e,{forwardMotionProps:t=!1}={},S,E){S&&(0,h.loadFeatures)(S);let T=(0,c.isSVGComponent)(e)?p.useSVGVisualState:d.useHTMLVisualState;function j(c,d){let p,h={...(0,n.useContext)(o.MotionConfigContext),...c,layoutId:function({layoutId:e}){let t=(0,n.useContext)(i.LayoutGroupContext).id;return t&&void 0!==e?t+"-"+e:e}(c)},{isStatic:g}=h,k=(0,l.useCreateMotionContext)(c),S=T(c,g);if(!g&&f.isBrowser){(0,n.useContext)(a.LazyContext).strict;let t=function(e){let{drag:t,layout:r}=m.featureDefinitions;if(!t&&!r)return{};let n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(h);p=t.MeasureLayout,k.visualElement=function(e,t,r,i,l){let{visualElement:u}=(0,n.useContext)(s.MotionContext),c=(0,n.useContext)(a.LazyContext),d=(0,n.useContext)(b.PresenceContext),p=(0,n.useContext)(o.MotionConfigContext).reducedMotion,f=(0,n.useRef)(null);i=i||c.renderer,!f.current&&i&&(f.current=i(e,{visualState:t,parent:u,props:r,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:p}));let m=f.current,h=(0,n.useContext)(x.SwitchLayoutGroupContext);m&&!m.projection&&l&&("html"===m.type||"svg"===m.type)&&function(e,t,r,n){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&(0,w.isRefObject)(s),visualElement:e,animationType:"string"==typeof a?a:"both",initialPromotionConfig:n,crossfade:c,layoutScroll:l,layoutRoot:u})}(f.current,r,l,h);let g=(0,n.useRef)(!1);(0,n.useInsertionEffect)(()=>{m&&g.current&&m.update(r,d)});let v=r[y.optimizedAppearDataAttribute],k=(0,n.useRef)(!!v&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return(0,_.useIsomorphicLayoutEffect)(()=>{m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),k.current&&m.animationState&&m.animationState.animateChanges())}),(0,n.useEffect)(()=>{m&&(!k.current&&m.animationState&&m.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),k.current=!1),m.enteringChildren=void 0)}),m}(e,S,h,E,t.ProjectionNode)}return(0,r.jsxs)(s.MotionContext.Provider,{value:k,children:[p&&k.visualElement?(0,r.jsx)(p,{visualElement:k.visualElement,...h}):null,(0,u.useRender)(e,c,(0,v.useMotionRef)(S,k.visualElement,d),S,g,t)]})}j.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let I=(0,n.forwardRef)(j);return I[g.motionComponentSymbol]=e,I}e.s(["createMotionProxy",0,function(e,t){if("u"<typeof Proxy)return k;let r=new Map,n=(r,n)=>k(r,n,e,t);return new Proxy((e,t)=>n(e,t),{get:(i,a)=>"create"===a?n:(r.has(a)||r.set(a,k(a,void 0,e,t)),r.get(a))})}],134970);var S=e.i(282368),E=e.i(618455);function T(e,t,r){let n=e.getProps();return(0,E.resolveVariantFromProps)(n,t,void 0!==r?r:n.custom,e)}function j(e,t){return e?.[t]??e?.default??e}e.s(["getValueTransition",0,j],965836);var I=e.i(347248),C=e.i(444948),A=e.i(134026);let N=e=>Array.isArray(e);var O=e.i(954912),R=e.i(538305);function P(e,t){let r=e.getValue("willChange");if((0,R.isMotionValue)(r)&&r.add)return r.add(t);if(!r&&O.MotionGlobalConfig.WillChange){let r=new O.MotionGlobalConfig.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function D(e){return e.props[y.optimizedAppearDataAttribute]}function $(e){e.duration=0,e.type="keyframes"}e.s(["getOptimisedAppearId",0,D],974568);let L=(e,t)=>r=>t(e(r)),M=(...e)=>e.reduce(L);e.s(["pipe",0,M],218734);var U=e.i(483032);let z=e=>1e3*e,F=e=>e/1e3;e.s(["millisecondsToSeconds",0,F,"secondsToMilliseconds",0,z],667327);var q=e.i(924140);let Z={layout:0,mainThread:0,waapi:0};e.s(["activeAnimations",0,Z],840289);var V=e.i(348367),B=e.i(242210),H=e.i(168826),W=e.i(377149),G=e.i(201221),K=e.i(192573);function Y(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}var X=e.i(267754);function J(e,t){return r=>r>0?t:e}var Q=e.i(647480);let ee=(e,t,r)=>{let n=e*e,i=r*(t*t-n)+n;return i<0?0:Math.sqrt(i)},et=[G.hex,X.rgba,K.hsla];function er(e){let t=et.find(t=>t.test(e));if((0,V.warning)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===K.hsla&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,a=0,o=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;i=Y(s,n,e+1/3),a=Y(s,n,e),o=Y(s,n,e-1/3)}else i=a=o=r;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*o),alpha:n}}(r)),r}let en=(e,t)=>{let r=er(e),n=er(t);if(!r||!n)return J(e,t);let i={...r};return e=>(i.red=ee(r.red,n.red,e),i.green=ee(r.green,n.green,e),i.blue=ee(r.blue,n.blue,e),i.alpha=(0,Q.mixNumber)(r.alpha,n.alpha,e),X.rgba.transform(i))},ei=new Set(["none","hidden"]);function ea(e,t){return r=>(0,Q.mixNumber)(e,t,r)}function eo(e){return"number"==typeof e?ea:"string"==typeof e?(0,B.isCSSVariableToken)(e)?J:H.color.test(e)?en:eu:Array.isArray(e)?es:"object"==typeof e?H.color.test(e)?en:el:J}function es(e,t){let r=[...e],n=r.length,i=e.map((e,r)=>eo(e)(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=i[t](e);return r}}function el(e,t){let r={...e,...t},n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=eo(e[i])(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}}let eu=(e,t)=>
6{let r=W.complex.createTransformer(t),n=(0,W.analyseComplexValue)(e),i=(0,W.analyseComplexValue)(t);if(!(n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length))return(0,V.warning)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),J(e,t);if(ei.has(e)&&!i.values.length||ei.has(t)&&!n.values.length)return ei.has(e)?r=>r<=0?e:t:r=>r>=1?t:e;return M(es(function(e,t){let r=[],n={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][n[a]],s=e.values[o]??0;r[i]=s,n[a]++}return r}(n,i),i.values),r)};function ec(e,t,r){return"number"==typeof e&&"number"==typeof t&&"number"==typeof r?(0,Q.mixNumber)(e,t,r):eo(e)(e,t)}let ed=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>I.frame.update(t,e),stop:()=>(0,I.cancelFrame)(t),now:()=>I.frameData.isProcessing?I.frameData.timestamp:q.time.now()}},ep=(e,t,r=10)=>{let n="",i=Math.max(Math.round(t/r),2);for(let t=0;t<i;t++)n+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function ef(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}var em=e.i(795153);function eh(e,t,r){let n=Math.max(t-5,0);return(0,em.velocityPerSecond)(r-e(n),t-n)}let eg=.01,ev=2,ey=.005,eb=.5;function ex(e,t){return e*Math.sqrt(1-t*t)}let ew=["duration","bounce"],e_=["stiffness","damping","mass"];function ek(e,t){return t.some(t=>void 0!==e[t])}function eS(e=.3,t=.3){let r,n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:a}=n,o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:c,mass:d,duration:p,velocity:f,isResolvedFromDuration:m}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ek(e,e_)&&ek(e,ew))if(e.visualDuration){let r=2*Math.PI/(1.2*e.visualDuration),n=r*r,i=2*(0,U.clamp)(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:1,stiffness:n,damping:i}}else{let r=function({duration:e=800,bounce:t=.3,velocity:r=0,mass:n=1}){let i,a;(0,V.warning)(e<=z(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=(0,U.clamp)(.05,1,o),e=(0,U.clamp)(.01,10,F(e)),o<1?(i=t=>{let n=t*o,i=n*e;return .001-(n-r)/ex(t,o)*Math.exp(-i)},a=t=>{let n=t*o*e,a=Math.pow(o,2)*Math.pow(t,2)*e,s=Math.exp(-n),l=ex(Math.pow(t,2),o);return(n*r+r-a)*s*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),a=t=>e*e*(r-t)*Math.exp(-t*e));let s=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,a,5/e);if(e=z(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*n;return{stiffness:t,damping:2*o*Math.sqrt(n*t),duration:e}}}(e);(t={...t,...r,mass:1}).isResolvedFromDuration=!0}return t}({...n,velocity:-F(n.velocity||0)}),h=f||0,g=c/(2*Math.sqrt(u*d)),v=s-o,y=F(Math.sqrt(u/d)),b=5>Math.abs(v);if(i||(i=b?eg:ev),a||(a=b?ey:eb),g<1){let e=ex(y,g);r=t=>s-Math.exp(-g*y*t)*((h+g*y*v)/e*Math.sin(e*t)+v*Math.cos(e*t))}else if(1===g)r=e=>s-Math.exp(-y*e)*(v+(h+y*v)*e);else{let e=y*Math.sqrt(g*g-1);r=t=>{let r=Math.exp(-g*y*t),n=Math.min(e*t,300);return s-r*((h+g*y*v)*Math.sinh(n)+e*v*Math.cosh(n))/e}}let x={calculatedDuration:m&&p||null,next:e=>{let t=r(e);if(m)l.done=e>=p;else{let n=0===e?h:0;g<1&&(n=0===e?z(h):eh(r,e,t));let o=Math.abs(s-t)<=a;l.done=Math.abs(n)<=i&&o}return l.value=l.done?s:t,l},toString:()=>{let e=Math.min(ef(x),2e4),t=ep(t=>x.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return x}function eE({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d,p,f=e[0],m={done:!1,value:f},h=r*t,g=f+h,v=void 0===o?g:o(g);v!==g&&(h=v-f);let y=e=>-h*Math.exp(-e/n),b=e=>v+y(e),x=e=>{let t=y(e),r=b(e);m.done=Math.abs(t)<=u,m.value=m.done?v:r},w=e=>{let t;if(t=m.value,void 0!==s&&t<s||void 0!==l&&t>l){var r;d=e,p=eS({keyframes:[m.value,(r=m.value,void 0===s?l:void 0===l||Math.abs(s-r)<Math.abs(l-r)?s:l)],velocity:eh(b,e,m.value),damping:i,stiffness:a,restDelta:u,restSpeed:c})}};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return(p||void 0!==d||(t=!0,x(e),w(e)),void 0!==d&&e>
6=d)?p.next(e-d):(t||x(e),m)}}}eS.applyToOptions=e=>{let t=function(e,t=100,r){let n=r({...e,keyframes:[0,t]}),i=Math.min(ef(n),2e4);return{type:"keyframes",ease:e=>n.next(i*e).value/t,duration:F(i)}}(e,100,eS);return e.ease=t.ease,e.duration=z(t.duration),e.type="keyframes",e};var eT=e.i(175602);let ej=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function eI(e,t,r,n){return e===t&&r===n?eT.noop:i=>0===i||1===i?i:ej(function(e,t,r,n,i){let a,o,s=0;do(a=ej(o=t+(r-t)/2,n,i)-e)>0?r=o:t=o;while(Math.abs(a)>1e-7&&++s<12)return o}(i,0,1,e,r),t,n)}let eC=eI(.42,0,1,1),eA=eI(0,0,.58,1),eN=eI(.42,0,.58,1),eO=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,eR=e=>t=>1-e(1-t),eP=eI(.33,1.53,.69,.99),eD=eR(eP),e$=eO(eD),eL=e=>(e*=2)<1?.5*eD(e):.5*(2-Math.pow(2,-10*(e-1))),eM=e=>1-Math.sin(Math.acos(e)),eU=eR(eM),ez=eO(eM);e.s(["circIn",0,eM,"circInOut",0,ez,"circOut",0,eU],118744);let eF=e=>Array.isArray(e)&&"number"==typeof e[0],eq={linear:eT.noop,easeIn:eC,easeInOut:eN,easeOut:eA,circIn:eM,circInOut:ez,circOut:eU,backIn:eD,backInOut:e$,backOut:eP,anticipate:eL},eZ=e=>{if(eF(e)){(0,V.invariant)(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,r,n,i]=e;return eI(t,r,n,i)}return"string"==typeof e?((0,V.invariant)(void 0!==eq[e],`Invalid easing type '${e}'`,"invalid-easing-type"),eq[e]):e},eV=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n};function eB({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){var i;let a,o=Array.isArray(n)&&"number"!=typeof n[0]?n.map(eZ):eZ(n),s={done:!1,value:t[0]},l=function(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let a=e.length;if((0,V.invariant)(a===t.length,"Both input and output ranges must be the same length","range-length"),1===a)return()=>t[0];if(2===a&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,r){let n=[],i=r||O.MotionGlobalConfig.mix||ec,a=e.length-1;for(let r=0;r<a;r++){let a=i(e[r],e[r+1]);t&&(a=M(Array.isArray(t)?t[r]||eT.noop:t,a)),n.push(a)}return n}(t,n,i),l=s.length,u=r=>{if(o&&r<e[0])return t[0];let n=0;if(l>1)for(;n<e.length-2&&!(r<e[n+1]);n++);let i=eV(e[n],e[n+1],r);return s[n](i)};return r?t=>u((0,U.clamp)(e[0],e[a-1],t)):u}((i=r&&r.length===t.length?r:(!function(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let i=eV(0,t,n);e.push((0,Q.mixNumber)(r,1,i))}}(a=[0],t.length-1),a),i.map(t=>t*e)),t,{ease:Array.isArray(o)?o:t.map(()=>o||eN).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}e.s(["progress",0,eV],747113);let eH=e=>null!==e;function eW(e,{repeat:t,repeatType:r="loop"},n,i=1){let a=e.filter(eH),o=i<0||t&&"loop"!==r&&t%2==1?0:a.length-1;return o&&void 0!==n?n:a[o]}let eG={decay:eE,inertia:eE,tween:eB,keyframes:eB,spring:eS};function eK(e){"string"==typeof e.type&&(e.type=eG[e.type])}class eY{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let eX=e=>e/100;class eJ extends eY{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==q.time.now()&&this.tick(q.time.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},Z.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;eK(e);let{type:t=eB,repeat:r=0,repeatDelay:n=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||eB;s!==eB&&"number"!=typeof o[0]&&(this.mixKeyframes=M(eX,ec(o[0],o[1])),o=[0,100]);let l=s({...e,keyframes:o});"mirror"===i&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),null===l.calculatedDuration&&(l.calculatedDuration=ef(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(r+1)-n,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:r,totalDuration:n,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(null===this.startTime)return r.next(0);let{delay:l=0,keyframes:u,repeat:c,repeatType:d,repeatDelay:p,type:f,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>n;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let y=this.currentTime,b=r;if(c){let e=Math.min(this.currentTime,n)/o,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,c+1))%2&&("reverse"===d?(r=1-r,p&&(r-=p/o)):"mirror"===d&&(b=a)),y=(0,U.clamp)(0,1,r)*o}let x=v?{done:!1,value:u[0]}:b.next(y);i&&(x.value=i(x.value));let{done:w}=x;v||null===s||(w=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let _=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return _&&f!==eE&&(x.value=eW(u,this.options,h,this.speed)),m&&m(x.value),_&&this.finish(),x}
6then(e,t){return this.finished.then(e,t)}get duration(){return F(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+F(e)}get time(){return F(this.currentTime)}set time(e){e=z(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(q.time.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=F(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=ed,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let r=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=r):null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime||(this.startTime=t??r),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(q.time.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,Z.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}var eQ=e.i(883582);function e0(e){let t;return()=>(void 0===t&&(t=e()),t)}let e1=e0(()=>void 0!==window.ScrollTimeline);var e2=e.i(680124);let e4={},e3=(t=e0(()=>{try{document.createElement("div").animate({opacity:0}
6,{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),()=>e4.linearEasing??t()),e6=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,e5={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:e6([0,.65,.55,1]),circOut:e6([.55,0,1,.45]),backIn:e6([.31,.01,.66,-.59]),backOut:e6([.33,1.53,.69,.99])};function e9(e){return"function"==typeof e&&"applyToOptions"in e}class e7 extends eY{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:t,name:r,keyframes:n,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,(0,V.invariant)("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return e9(e)&&e3()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,r,{delay:n=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s="easeOut",times:l}={},u){let c={[t]:r};l&&(c.offset=l);let d=function e(t,r){if(t)return"function"==typeof t?e3()?ep(t,r):"ease-out":eF(t)?e6(t):Array.isArray(t)?t.map(t=>e(t,r)||e5.easeOut):e5[t]}(s,i);Array.isArray(d)&&(c.easing=d),e2.statsBuffer.value&&Z.waapi++;let p={delay:n,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:"reverse"===o?"alternate":"normal"};u&&(p.pseudoElement=u);let f=e.animate(c,p);return e2.statsBuffer.value&&f.finished.finally(()=>{Z.waapi--}),f}(t,r,n,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=eW(n,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(e):r.startsWith("--")?t.style.setProperty(r,e):t.style[r]=e,this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return F(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+F(e)}get time(){return F(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=z(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&e1())?(this.animation.timeline=e,eT.noop):t(this)}}let e8={anticipate:eL,backInOut:e$,circInOut:ez};class te extends e7{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in e8&&(e.ease=e8[e.ease])}(e),eK(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:r,onComplete:n,element:i,...a}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let o=new eJ({...a,autoplay:!1}),s=z(this.finishedTime??this.time);t.setWithVelocity(o.sample(s-10).value,o.sample(s).value,10),o.stop()}}let tt=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(W.complex.test(e)||"0"===e)&&!e.startsWith("url(")),tr=new Set(["opacity","clipPath","filter","transform"]),tn=e0(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class ti extends eY{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:a="loop",keyframes:o,name:s,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=q.time.now();const d={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:i,repeatType:a,name:s,motionValue:l,element:u,...c},p=u?.KeyframeResolver||eQ.KeyframeResolver;this.keyframeResolver=new p(o,(e,t,r)=>this.onKeyframesResolved(e,t,d,!r),s,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,r,n){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:l,onUpdate:u}=r;this.resolvedAt=q.time.now(),!function(e,t,r,n){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let a=e[e.length-1],o=tt(i,t),s=tt(a,t);return(0,V.warning)(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,"value-not-animatable"),!!o&&!!s&&(function(e){let t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||("spring"===r||e9(r))&&n)}(e,i,a,o)&&((O.MotionGlobalConfig.instantAnimations||!s)&&u?.(eW(e,r,t)),e[0]=e[e.length-1],$(r),r.repeat=0);let c={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...r,keyframes:e},d=!l&&function(e){let{motionValue:t,name:r,repeatDelay:n,repeatType:i,damping:a,type:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;
6let{onUpdate:s,transformTemplate:l}=t.owner.getProps();return tn()&&r&&tr.has(r)&&("transform"!==r||!l)&&!s&&!n&&"mirror"!==i&&0!==a&&"inertia"!==o}(c)?new te({...c,element:c.motionValue.owner.current}):new eJ(c);d.finished.then(()=>this.notifyFinished()).catch(eT.noop),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),(0,eQ.flushKeyframeResolvers)()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let ta=e=>null!==e;var to=e.i(229859);let ts={type:"spring",stiffness:500,damping:25,restSpeed:10},tl={type:"keyframes",duration:.8},tu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tc=(e,t,r,n={},i,a)=>o=>{let s=j(n,e)||{},l=s.delay||n.delay||0,{elapsed:u=0}=n;u-=z(l);let c={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};!function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(s)&&Object.assign(c,((e,{keyframes:t})=>t.length>2?tl:to.transformProps.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:ts:tu)(e,c)),c.duration&&(c.duration=z(c.duration)),c.repeatDelay&&(c.repeatDelay=z(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||($(c),0===c.delay&&(d=!0)),(O.MotionGlobalConfig.instantAnimations||O.MotionGlobalConfig.skipAnimations)&&(d=!0,$(c),c.delay=0),c.allowFlatten=!s.type&&!s.ease,d&&!a&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:r="loop"}){let n=e.filter(ta),i=t&&"loop"!==r&&t%2==1?0:n.length-1;return n[i]}(c.keyframes,s);if(void 0!==e)return void I.frame.update(()=>{c.onUpdate(e),c.onComplete()})}return s.isSync?new eJ(c):new ti(c)};function td(e,t,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=t;n&&(a=n);let l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let n=e.getValue(t,e.latestValues[t]??null),i=s[t];if(void 0===i||u&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(u,t))continue;let o={delay:r,...j(a||{},t)},c=n.get();if(void 0!==c&&!n.isAnimating&&!Array.isArray(i)&&i===c&&!o.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let r=D(e);if(r){let e=window.MotionHandoffAnimation(r,t,I.frame);null!==e&&(o.startTime=e,d=!0)}}P(e,t),n.start(tc(t,n,i,e.shouldReduceMotion&&C.positionalKeys.has(t)?{type:!1}:o,e,d));let p=n.animation;p&&l.push(p)}return o&&Promise.all(l).then(()=>{I.frame.update(()=>{o&&function(e,t){let{transitionEnd:r={},transition:n={},...i}=T(e,t)||{};for(let t in i={...i,...r}){var a;let r=N(a=i[t])?a[a.length-1]||0:a;e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,(0,A.motionValue)(r))}}(e,o)})}),l}function tp(e,t,r,n=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*n;return"function"==typeof r?r(a,o):1===i?a*n:s-a*n}function tf(e,t,r={}){let n=T(e,t,"exit"===r.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);let a=n?()=>Promise.all(td(e,n,r)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return function(e,t,r=0,n=0,i=0,a=1,o){let s=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),s.push(tf(l,t,{...o,delay:r+("function"==typeof n?0:n)+tp(e.variantChildren,l,n,i,a)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}(e,t,n,a,o,s,r)}:()=>Promise.resolve(),{when:s}=i;
6if(!s)return Promise.all([a(),o(r.delay)]);{let[e,t]="beforeChildren"===s?[a,o]:[o,a];return e().then(()=>t())}}function tm(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}e.s(["animateMotionValue",0,tc],450190);var th=e.i(483878),tg=e.i(577034);let tv=tg.variantProps.length,ty=[...tg.variantPriorityOrder].reverse(),tb=tg.variantPriorityOrder.length;function tx(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function tw(){return{animate:tx(!0),whileInView:tx(),whileHover:tx(),whileTap:tx(),whileDrag:tx(),whileFocus:tx(),exit:tx()}}class t_{constructor(e){this.isMounted=!1,this.node=e}update(){}}e.s(["Feature",0,t_],275146);let tk=0;e.s(["animations",0,{animation:{Feature:class extends t_{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>tf(e,t,r)));else if("string"==typeof t)n=tf(e,t,r);else{let i="function"==typeof t?T(e,t,r.custom):t;n=Promise.all(td(e,i,r))}return n.then(()=>{e.notify("AnimationComplete",t)})})(e,t,r))),r=tw(),n=!0,i=t=>(r,n)=>{let i=T(e,n,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...n}=i;r={...r,...n,...t}}return r};function a(a){let{props:o}=e,s=function e(t){if(!t)return;if(!t.isControllingVariants){let r=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(r.initial=t.props.initial),r}let r={};for(let e=0;e<tv;e++){let n=tg.variantProps[e],i=t.props[n];((0,th.isVariantLabel)(i)||!1===i)&&(r[n]=i)}return r}(e.parent)||{},l=[],u=new Set,c={},d=1/0;for(let t=0;t<tb;t++){var p,f;let m=ty[t],h=r[m],g=void 0!==o[m]?o[m]:s[m],v=(0,th.isVariantLabel)(g),y=m===a?h.isActive:null;!1===y&&(d=t);let b=g===s[m]&&g!==o[m]&&v;if(b&&n&&e.manuallyAnimateOnMount&&(b=!1),h.protectedKeys={...c},!h.isActive&&null===y||!g&&!h.prevProp||(0,S.isAnimationControls)(g)||"boolean"==typeof g)continue;let x=(p=h.prevProp,"string"==typeof(f=g)?f!==p:!!Array.isArray(f)&&!tm(f,p)),w=x||m===a&&h.isActive&&!b&&v||t>d&&v,_=!1,k=Array.isArray(g)?g:[g],E=k.reduce(i(m),{});!1===y&&(E={});let{prevResolvedValues:j={}}=h,I={...j,...E},C=t=>{w=!0,u.has(t)&&(_=!0,u.delete(t)),h.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in I){let t=E[e],r=j[e];if(!c.hasOwnProperty(e))(N(t)&&N(r)?tm(t,r):t===r)?void 0!==t&&u.has(e)?C(e):h.protectedKeys[e]=!0:null!=t?C(e):u.add(e)}h.prevProp=g,h.prevResolvedValues=E,h.isActive&&(c={...c,...E}),n&&e.blockInitialAnimation&&(w=!1);let A=b&&x,O=!A||_;w&&O&&l.push(...k.map(t=>{let r={type:m};if("string"==typeof t&&n&&!A&&e.manuallyAnimateOnMount&&e.parent){let{parent:n}=e,i=T(n,t);if(n.enteringChildren&&i){let{delayChildren:t}=i.transition||{};r.delay=tp(n.enteringChildren,e,t)}}return{animation:t,options:r}}))}if(u.size){let t={};if("boolean"!=typeof o.initial){let r=T(e,Array.isArray(o.initial)?o.initial[0]:o.initial);r&&r.transition&&(t.transition=r.transition)}u.forEach(r=>{let n=e.getBaseTarget(r),i=e.getValue(r);i&&(i.liveStyle=!0),t[r]=n??null}),l.push({animation:t})}let m=!!l.length;return n&&(!1===o.initial||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(m=!1),n=!1,m?t(l):Promise.resolve()}return{animateChanges:a,setActive:function(t,n){if(r[t].isActive===n)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,n)),r[t].isActive=n;let i=a(t);for(let e in r)r[e].protectedKeys={};return i},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=tw()}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();(0,S.isAnimationControls)(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends t_{constructor(){super(...arguments),this.id=tk++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>
6{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}}],183018);let tS={x:!1,y:!1};e.s(["isDragActive",0,function(){return tS.x||tS.y},"isDragging",0,tS],210681);var tE=e.i(21365);function tT(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}e.s(["addDomEvent",0,tT],718909);let tj=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function tI(e){return{point:{x:e.pageX,y:e.pageY}}}e.s(["isPrimaryPointer",0,tj],414161);let tC=e=>t=>tj(t)&&e(t,tI(t));function tA(e,t,r,n){return tT(e,t,tC(r),n)}e.s(["addPointerInfo",0,tC,"extractEventInfo",0,tI],163080);var tN=e.i(642925);function tO(e){return e.max-e.min}function tR(e,t,r,n=.5){e.origin=n,e.originPoint=(0,Q.mixNumber)(t.min,t.max,e.origin),e.scale=tO(r)/tO(t),e.translate=(0,Q.mixNumber)(r.min,r.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function tP(e,t,r){e.min=r.min+t.min,e.max=e.min+tO(t)}function tD(e,t,r){e.min=t.min-r.min,e.max=e.min+tO(t)}e.s(["calcBoxDelta",0,function(e,t,r,n){tR(e.x,t.x,r.x,n?n.originX:void 0),tR(e.y,t.y,r.y,n?n.originY:void 0)},"calcLength",0,tO,"calcRelativeBox",0,function(e,t,r){tP(e.x,t.x,r.x),tP(e.y,t.y,r.y)},"calcRelativePosition",0,function(e,t,r){tD(e.x,t.x,r.x),tD(e.y,t.y,r.y)},"isNear",0,function(e,t,r){return Math.abs(e-t)<=r}],585655);var t$=e.i(927468);function tL(e){return[e("x"),e("y")]}e.s(["eachAxis",0,tL],556871);var tM=e.i(714443);let tU=({current:e})=>e?e.ownerDocument.defaultView:null,tz=(e,t)=>Math.abs(e-t);class tF{constructor(e,t,{transformPagePoint:r,contextWindow:n=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=tV(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,i=(e=r.offset,t={x:0,y:0},Math.sqrt(tz(e.x,t.x)**2+tz(e.y,t.y)**2)>=this.distanceThreshold);if(!n&&!i)return;let{point:a}=r,{timestamp:o}=I.frameData;this.history.push({...a,timestamp:o});let{onStart:s,onMove:l}=this.handlers;n||(s&&s(this.lastMoveEvent,r),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,r)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=tq(t,this.transformPagePoint),I.frame.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=tV("pointercancel"===e.type?this.lastMoveEventInfo:tq(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,a),n&&n(e,a)},!tj(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=n||window;const o=tq(tI(e),this.transformPagePoint),{point:s}=o,{timestamp:l}=I.frameData;this.history=[{...s,timestamp:l}];const{onSessionStart:u}=t;u&&u(e,tV(o,this.history)),this.removeListeners=M(tA(this.contextWindow,"pointermove",this.handlePointerMove),tA(this.contextWindow,"pointerup",this.handlePointerUp),tA(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,I.cancelFrame)(this.updatePoint)}}function tq(e,t){return t?{point:t(e.point)}:e}function tZ(e,t){return{x:e.x-t.x,y:e.y-t.y}}function tV({point:e},t){return{point:e,delta:tZ(e,tB(t)),offset:tZ(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,r=null,n=tB(e);for(;t>=0&&(r=e[t],!(n.timestamp-r.timestamp>z(.1)));)t--;if(!r)return{x:0,y:0};let i=F(n.timestamp-r.timestamp);if(0===i)return{x:0,y:0};let a={x:(n.x-r.x)/i,y:(n.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t)}}function tB(e){return e[e.length-1]}function tH(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function tW(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function tG(e,t,r){return{min:tK(e,t),max:tK(e,r)}}function tK(e,t){return"number"==typeof e?e:e[t]||0}let tY=new WeakMap;class tX{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,t$.createBox)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:r}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let i=e=>{let{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(tI(e).point)},a=(e,t)=>{let{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"
6y"===e)if(tS[e])return null;else return tS[e]=!0,()=>{tS[e]=!1};return tS.x||tS.y?null:(tS.x=tS.y=!0,()=>{tS.x=tS.y=!1})}(r),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tL(e=>{let t=this.getAxisMotionValue(e).get()||0;if(tE.percent.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[e];n&&(t=tO(n)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&I.frame.postRender(()=>i(e,t)),P(this.visualElement,"transform");let{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:a}=this.getProps();if(!r&&!this.openDragLock)return;let{offset:o}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(o),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),a&&a(e,t)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>tL(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new tF(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:tU(this.visualElement)})}stop(e,t){let r=e||this.latestPointerEvent,n=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!n||!r)return;let{velocity:a}=n;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&I.frame.postRender(()=>o(r,n))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!tJ(e,n,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?(0,Q.mixNumber)(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?(0,Q.mixNumber)(r,e,n.max):Math.min(e,r)),e}(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;e&&(0,w.isRefObject)(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(e,{top:t,left:r,bottom:n,right:i}){return{x:tH(e.x,r,i),y:tH(e.y,t,n)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:tG(e,"left","right"),y:tG(e,"top","bottom")}}(t),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&tL(e=>{var t,n;let i;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=r.layoutBox[e],n=this.constraints[e],i={},void 0!==n.min&&(i.min=n.min-t.min),void 0!==n.max&&(i.max=n.max-t.min),i))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!(0,w.isRefObject)(t))return!1;let n=t.current;(0,V.invariant)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let a=(0,tM.measurePageBox)(n,i.root,this.visualElement.getTransformPagePoint()),o=(e=i.layout.layoutBox,{x:tW(e.x,a.x),y:tW(e.y,a.y)});if(r){let e=r((0,tN.convertBoxToBoundingBox)(o));this.hasMutatedConstraints=!!e,e&&(o=(0,tN.convertBoundingBoxToBox)(e))}return o}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{};return Promise.all(tL(o=>{if(!tJ(o,t,this.currentDirection))return;let l=s&&s[o]||{};a&&(l={min:0,max:0});
6let u={type:"inertia",velocity:r?e[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return P(this.visualElement,e),r.start(tc(e,r,0,t,this.visualElement,!1))}stopAnimation(){tL(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){tL(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){tL(t=>{let{drag:r}=this.getProps();if(!tJ(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:a}=n.layout.layoutBox[t];i.set(e[t]-(0,Q.mixNumber)(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!(0,w.isRefObject)(t)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};tL(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var r,i;let a,o,s,l=t.get();n[e]=(r={min:l,max:l},i=this.constraints[e],a=.5,o=tO(r),(s=tO(i))>o?a=eV(i.min,i.max-o,r.min):o>s&&(a=eV(r.min,r.max-s,i.min)),(0,U.clamp)(0,1,a))}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),tL(t=>{if(!tJ(t,e,null))return;let r=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];r.set((0,Q.mixNumber)(i,a,n[t]))})}addListeners(){if(!this.visualElement.current)return;tY.set(this.visualElement,this);let e=tA(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();(0,w.isRefObject)(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),I.frame.read(t);let i=tT(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(tL(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),n(),a&&a()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:a=.35,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:a,dragMomentum:o}}}function tJ(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}e.s(["DragGesture",0,class extends t_{constructor(e){super(e),this.removeGroupControls=eT.noop,this.removeListeners=eT.noop,this.controls=new tX(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eT.noop}unmount(){this.removeGroupControls(),this.removeListeners()}}],805219);let tQ=e=>(t,r)=>{e&&I.frame.postRender(()=>e(t,r))};e.s(["PanGesture",0,class extends t_{constructor(){super(...arguments),this.removePointerDownListener=eT.noop}onPointerDown(e){this.session=new tF(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tU(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:tQ(e),onStart:tQ(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&I.frame.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=tA(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}],625199)}
6,402704,282368,483878,577034,513768,618455,456567,483311,344277,706390,449470,787502,872331,827724,794848,e=>{"use strict";var t=e.i(22114),r=e.i(229859),n=e.i(238740),i=e.i(242210),a=e.i(714443),o=e.i(636056),s=e.i(538305),l=e.i(883582),u=e.i(924140),c=e.i(347248),d=e.i(134026),p=e.i(946974),f=e.i(377149),m=e.i(920885),h=e.i(984776),g=e.i(811855),v=e.i(440919),y=e.i(470180),b=e.i(643127),x=e.i(927468),w=e.i(8790);let _={current:null},k={current:!1},S=new WeakMap;function E(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function T(e){return"string"==typeof e||Array.isArray(e)}e.s(["isAnimationControls",0,E],282368),e.s(["isVariantLabel",0,T],483878);let j=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],I=["initial",...j];function C(e){return E(e.animate)||I.some(t=>T(e[t]))}function A(e){return!!(C(e)||e.variants)}function N(e){let t=[{},{}];return e?.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function O(e,t,r,n){if("function"==typeof t){let[i,a]=N(n);t=t(void 0!==r?r:e.custom,i,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,a]=N(n);t=t(void 0!==r?r:e.custom,i,a)}return t}e.s(["variantPriorityOrder",0,j,"variantProps",0,I],577034),e.s(["isControllingVariants",0,C,"isVariantNode",0,A],513768),e.s(["resolveVariantFromProps",0,O],618455);let R=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class P{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=l.KeyframeResolver,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=u.time.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,c.frame.render(this.render,!1,!0))};const{latestValues:d,renderState:p}=a;this.latestValues=d,this.baseTarget={...d},this.initialValues=t.initial?{...d}:{},this.renderState=p,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=!!i,this.isControllingVariants=C(t),this.isVariantNode=A(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:f,...m}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in m){const t=m[e];void 0!==d[e]&&(0,s.isMotionValue)(t)&&t.set(d[e])}}mount(e){this.current=e,S.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),k.current||function(){if(k.current=!0,w.isBrowser)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>_.current=e.matches;e.addEventListener("change",t),t()}else _.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||_.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),(0,c.cancelFrame)(this.notifyUpdate),(0,c.cancelFrame)(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let n;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let i=r.transformProps.has(e);i&&this.onBindTransform&&this.onBindTransform();let a=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&c.frame.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{a(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in b.featureDefinitions){let t=b.featureDefinitions[e];if(!t)continue;let{isEnabled:r,Feature:n}=t;if(!this.features[e]&&n&&r(this.props)&&(this.features[e]=new n(this)),this.features[e]){let t=this.features[e];
6t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,x.createBox)()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<R.length;t++){let r=R[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){for(let n in t){let i=t[n],a=r[n];if((0,s.isMotionValue)(i))e.addValue(n,i);else if((0,s.isMotionValue)(a))e.addValue(n,(0,d.motionValue)(i,{owner:e}));else if(a!==i)if(e.hasValue(n)){let t=e.getValue(n);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(n);e.addValue(n,(0,d.motionValue)(void 0!==t?t:i,{owner:e}))}}for(let n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=(0,d.motionValue)(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){let r=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=r&&("string"==typeof r&&((0,g.isNumericalString)(r)||(0,v.isZeroValueString)(r))?r=parseFloat(r):!(0,p.findValueType)(r)&&f.complex.test(t)&&(r=(0,m.getAnimatableNone)(e,t)),this.setBaseTarget(e,(0,s.isMotionValue)(r)?r.get():r)),(0,s.isMotionValue)(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let n=O(this.props,r,this.presenceContext?.custom);n&&(t=n[e])}if(r&&void 0!==t)return t;let n=this.getBaseTargetFromProps(this.props,e);return void 0===n||(0,s.isMotionValue)(n)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new y.SubscriptionManager),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){h.microtask.render(this.render)}}class D extends P{constructor(){super(...arguments),this.KeyframeResolver=o.DOMKeyframesResolver}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;(0,s.isMotionValue)(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}let $=(e,t)=>t&&"number"==typeof e?t.transform(e):e;var L=e.i(124424);let M={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},U=r.transformPropOrder.length;function z(e,t,n){let{style:a,vars:o,transformOrigin:s}=e,l=!1,u=!1;for(let e in t){let n=t[e];if(r.transformProps.has(e)){l=!0;continue}if((0,i.isCSSVariableName)(e)){o[e]=n;continue}{let t=$(n,L.numberValueTypes[e]);e.startsWith("origin")?(u=!0,s[e]=t):a[e]=t}}if(!t.transform&&(l||n?a.transform=function(e,t,n){let i="",a=!0;for(let o=0;o<U;o++){let s=r.transformPropOrder[o],l=e[s];if(void 0===l)continue;let u=!0;if(!(u="number"==typeof l?l===+!!s.startsWith("scale"):0===parseFloat(l))||n){let e=$(l,L.numberValueTypes[s]);if(!u){a=!1;let t=M[s]||s;i+=`${t}(${e}) `}n&&(t[s]=e)}}return i=i.trim(),n?i=n(t,a?"":i):a&&(i="none"),i}(t,e.transform,n):a.transform&&(a.transform="none")),u){let{originX:e="50%",originY:t="50%",originZ:r=0}=s;a.transformOrigin=`${e} ${t} ${r}`}}function F(e,{style:t,vars:r},n,i){let a,o=e.style;for(a in t)o[a]=t[a];for(a in i?.applyProjectionStyles(o,n),r)o.setProperty(a,r[a])}e.s(["buildHTMLStyles",0,z],456567);var q=e.i(21365);function Z(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let V={correct:(e,t)=>
6{if(!t.target)return e;if("string"==typeof e)if(!q.px.test(e))return e;else e=parseFloat(e);let r=Z(e,t.target.x),n=Z(e,t.target.y);return`${r}% ${n}%`}};var B=e.i(647480);let H={borderRadius:{...V,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomLeftRadius:V,borderBottomRightRadius:V,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let n=f.complex.parse(e);if(n.length>5)return e;let i=f.complex.createTransformer(e),a=+("number"!=typeof n[0]),o=r.x.scale*t.x,s=r.y.scale*t.y;n[0+a]/=o,n[1+a]/=s;let l=(0,B.mixNumber)(o,s,.5);return"number"==typeof n[2+a]&&(n[2+a]/=l),"number"==typeof n[3+a]&&(n[3+a]/=l),i(n)}}};function W(e,{layout:t,layoutId:n}){return r.transformProps.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!H[e]||"opacity"===e)}function G(e,t,r){let{style:n}=e,i={};for(let a in n)((0,s.isMotionValue)(n[a])||t.style&&(0,s.isMotionValue)(t.style[a])||W(a,e)||r?.getValue(a)?.liveStyle!==void 0)&&(i[a]=n[a]);return i}e.s(["scaleCorrectors",0,H],483311),e.s(["isForcedMotionValue",0,W],344277),e.s(["scrapeMotionValuesFromProps",0,G],706390);class K extends D{constructor(){super(...arguments),this.type="html",this.renderInstance=F}readValueFromInstance(e,t){if(r.transformProps.has(t))return this.projection?.isProjecting?(0,n.defaultTransformValue)(t):(0,n.readTransformValue)(e,t);{let r=window.getComputedStyle(e),n=((0,i.isCSSVariableName)(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return(0,a.measureViewportBox)(e,t)}build(e,t,r){z(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return G(e,t,r)}}var Y=e.i(210973);let X=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();e.s(["camelToDash",0,X],449470);let J={offset:"stroke-dashoffset",array:"stroke-dasharray"},Q={offset:"strokeDashoffset",array:"strokeDasharray"};function ee(e,{attrX:t,attrY:r,attrScale:n,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},l,u,c){if(z(e,s,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:p}=e;d.transform&&(p.transform=d.transform,delete d.transform),(p.transform||d.transformOrigin)&&(p.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),p.transform&&(p.transformBox=c?.transformBox??"fill-box",delete d.transformBox),void 0!==t&&(d.x=t),void 0!==r&&(d.y=r),void 0!==n&&(d.scale=n),void 0!==i&&function(e,t,r=1,n=0,i=!0){e.pathLength=1;let a=i?J:Q;e[a.offset]=q.px.transform(-n);let o=q.px.transform(t),s=q.px.transform(r);e[a.array]=`${o} ${s}`}(d,i,a,o,!1)}e.s(["buildSVGAttrs",0,ee],787502);let et=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),er=e=>"string"==typeof e&&"svg"===e.toLowerCase();function en(e,t,n){let i=G(e,t,n);for(let n in e)((0,s.isMotionValue)(e[n])||(0,s.isMotionValue)(t[n]))&&(i[-1!==r.transformPropOrder.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return i}e.s(["isSVGTag",0,er],872331),e.s(["scrapeMotionValuesFromProps",0,en],827724);class ei extends D{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=x.createBox}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(r.transformProps.has(t)){let e=(0,Y.getDefaultValueType)(t);return e&&e.default||0}return t=et.has(t)?t:X(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return en(e,t,r)}build(e,t,r){ee(e,t,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,t,r,n){for(let r in F(e,t,void 0,n),t.attrs)e.setAttribute(et.has(r)?r:X(r),t.attrs[r])}mount(e){this.isSVGTag=er(e.tagName),super.mount(e)}}let ea=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function eo(e){if("string"!=typeof e||e.includes("-"));else if(ea.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}e.s(["isSVGComponent",0,eo],794848),e.s(["createDomVisualElement",0,(e,r)=>eo(e)?new ei(r):new K(r,{allowProjection:e!==t.Fragment})],402704)},887850,674762,349079,998022,630978,349576,964758,781303,231024,e=>{"use strict";var t=e.i(22114),r=e.i(282368),n=e.i(185866),i=e.i(836979),a=e.i(513768),o=e.i(618455),s=e.i(113345),l=e.i(538305);function u(e){return(0,l.isMotionValue)(e)?e.get():e}e.s(["resolveMotionValue",0,u],674762);let c=e=>(l,c)=>{let d=(0,t.useContext)(n.MotionContext),p=(0,t.useContext)(i.PresenceContext),f=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,i,s){return{latestValues:function(e,t,n,i){let s={},l=i(e,{});for(let e in l)s[e]=u(l[e]);let{initial:c,animate:d}=e,p=(0,a.isControllingVariants)(e),f=(0,a.isVariantNode)(e);
6t&&f&&!p&&!1!==e.inherit&&(void 0===c&&(c=t.initial),void 0===d&&(d=t.animate));let m=!!n&&!1===n.initial,h=(m=m||!1===c)?d:c;if(h&&"boolean"!=typeof h&&!(0,r.isAnimationControls)(h)){let t=Array.isArray(h)?h:[h];for(let r=0;r<t.length;r++){let n=(0,o.resolveVariantFromProps)(e,t[r]);if(n){let{transitionEnd:e,transition:t,...r}=n;for(let e in r){let t=r[e];if(Array.isArray(t)){let e=m?t.length-1:0;t=t[e]}null!==t&&(s[e]=t)}for(let t in e)s[t]=e[t]}}}return s}(n,i,s,e),renderState:t()}})(e,l,d,p);return c?f():(0,s.useConstant)(f)};var d=e.i(442007);let p=c({scrapeMotionValuesFromProps:e.i(706390).scrapeMotionValuesFromProps,createRenderState:d.createHtmlRenderState});e.s(["useHTMLVisualState",0,p],887850);var f=e.i(472226);let m=c({scrapeMotionValuesFromProps:e.i(827724).scrapeMotionValuesFromProps,createRenderState:f.createSvgRenderState});e.s(["useSVGVisualState",0,m],349079);var h=e.i(643127);e.s(["loadFeatures",0,function(e){for(let t in e)h.featureDefinitions[t]={...h.featureDefinitions[t],...e[t]}}],998022);let g=Symbol.for("motionComponentSymbol");function v(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}e.s(["motionComponentSymbol",0,g],630978),e.s(["isRefObject",0,v],349576),e.s(["useMotionRef",0,function(e,r,n){return(0,t.useCallback)(t=>{t&&e.onMount&&e.onMount(t),r&&(t?r.mount(t):r.unmount()),n&&("function"==typeof n?n(t):v(n)&&(n.current=t))},[r])}],964758);let y="data-"+(0,e.i(449470).camelToDash)("framerAppearId");e.s(["optimizedAppearDataAttribute",0,y],781303);let b=(0,t.createContext)({});e.s(["SwitchLayoutGroupContext",0,b],231024)},8790,e=>{"use strict";let t="u">typeof window;e.s(["isBrowser",0,t])},113345,e=>{"use strict";var t=e.i(22114);e.s(["useConstant",0,function(e){let r=(0,t.useRef)(null);return null===r.current&&(r.current=e()),r.current}])},16309,e=>{"use strict";var t=e.i(22114);let r=e.i(8790).isBrowser?t.useLayoutEffect:t.useEffect;e.s(["useIsomorphicLayoutEffect",0,r])},950846,e=>{"use strict";var t=e.i(22114),r={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"};e.s(["default",0,(e,n)=>{let i=(0,t.forwardRef)(({color:i="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:s,children:l,...u},c)=>(0,t.createElement)("svg",{ref:c,...r,width:a,height:a,stroke:i,strokeWidth:s?24*Number(o)/Number(a):o,className:`lucide lucide-${e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,...u},[...n.map(([e,r])=>(0,t.createElement)(e,r)),...(Array.isArray(l)?l:[l])||[]]));return i.displayName=`${e}`,i}],950846)},971508,e=>{"use strict";let t=(0,e.i(950846).default)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["default",0,t])},432842,839019,e=>{"use strict";let t=(0,e.i(950846).default)("Check",[["polyline",{points:"20 6 9 17 4 12",key:"10jjfj"}]]);e.s(["default",0,t],839019),e.s(["CheckIcon",0,t],432842)},805228,e=>{"use strict";let t=(0,e.i(950846).default)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["default",0,t])},763777,e=>{"use strict";var t=e.i(805228);e.s(["ChevronDownIcon",()=>t.default])},273011,e=>{"use strict";let t=(0,e.i(950846).default)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["default",0,t])},18706,e=>{"use strict";var t=e.i(273011);e.s(["ChevronLeft",()=>t.default])},495572,e=>{"use strict";let t=(0,e.i(950846).default)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["default",0,t])},443102,e=>{"use strict";var t=e.i(495572);e.s(["ChevronRight",()=>t.default])},204832,e=>{"use strict";var t=e.i(495572);e.s(["ChevronRightIcon",()=>t.default])},611941,e=>{"use strict";let t=(0,e.i(950846).default)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);e.s(["ChevronUpIcon",0,t],611941)},545760,971599,561101,105093,510387,435723,952149,e=>{"use strict";var t=e.i(950846);let r=(0,t.default)("ClipboardSignature",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-.5",key:"1but9f"}],["path",{d:"M16 4h2a2 2 0 0 1 1.73 1",key:"1p8n7l"}],["path",{d:"M18.42 9.61a2.1 2.1 0 1 1 2.97 2.97L16.95 17 13 18l.99-3.95 4.43-4.44Z",key:"johvi5"}],["path",{d:"M8 18h1",key:"13wk12"}]]);e.s(["ClipboardSignature",0,r],545760);let n=(0,t.default)("ScrollText",[["path",{d:"M8 21h12a2 2 0 0 0 2-2v-2H10v2a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v3h4",key:"13a6an"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M15 12h-5",key:"r7krc0"}]]);e.s(["ScrollText",0,n],971599);var i=e.i(67823);e.s(["Search",()=>i.default],561101);let a=(0,t.default)("Users",[["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"}]]);e.s(["Users",0,a],105093);var o=e.i(813919),s=e.i(867978),l=e.i(67756),u=e.i(575297);let c=(e,t)=>{if("img"===e.name){let{src:r,...n}=e.attribs;return r?.includes("admin.primariatm.ro/portal/assets")&&(r=r.replace("admin.primariatm.ro/portal/assets","assets.primariatm.ro")),(0,o.jsx)("img",{src:r,...n},t)}if("a"===e.name){let r=e.attribs.href;return r?.includes("https://admin.primariatm.ro/portal/assets")&&(r=r.replace("https://admin.primariatm.ro/portal/assets","https://assets.primariatm.ro")),(0,o.jsx)(s.default,{href:r||"#",title:e.attribs.title,children:(0,o.jsx)(o.Fragment,{children:(0,l.processNodes
6)(e.children,c)})},t)}if("p"===e.name)return 1===e.children.length&&e.children[0].data?.trim()===""?null:(0,o.jsx)("p",{children:(0,o.jsx)(o.Fragment,{children:(0,l.processNodes)(e.children,c)})},t);let r="SituaÈii speciale",n=null;if("blockquote"===e.name)return("h2"===(n=(0,l.processNodes)(e.children,c))[0].type||"h3"===n[0].type)&&(r=n[0].props?.children?.[0],delete n[0]),(0,o.jsx)(u.Collapsable,{content:n,title:r},t)};e.s(["renderHtml",0,(e,t=null)=>(0,l.default)(e,{transform:t?(e,r)=>t(e,r,l.processNodes):c})],510387);var d=e.i(22114),p=e.i(139499),f=e.i(900583),m=e.i(5278);function h({onValueChange:e,onSubmit:t,onEscape:r,autoFocus:n=!1,className:i}){let{textInput:a}=(0,f.usePromptInputController)(),s=(0,d.useRef)(null),l=(0,d.useRef)(!1),u=(0,d.useRef)(e);return u.current=e,(0,d.useEffect)(()=>{u.current?.(a.value)},[a.value]),(0,o.jsx)("div",{className:(0,p.cn)("text-lg",i),onKeyDown:e=>{"Escape"===e.key&&(e.preventDefault(),a.value?a.clear():r?.())},children:(0,o.jsxs)(f.PromptInput,{groupClassName:(0,p.cn)("rounded-full border-slate-300 bg-white shadow-none","has-[[data-slot=input-group-control]:focus-visible]:border-slate-500 has-[[data-slot=input-group-control]:focus-visible]:ring-4 has-[[data-slot=input-group-control]:focus-visible]:ring-primary-light"),onSubmit:({text:e})=>{let r=e.trim();r&&!l.current&&(l.current=!0,t(r))},children:[(0,o.jsx)(m.InputGroupAddon,{align:"inline-start",className:"pl-3",children:(0,o.jsx)("svg",{"aria-hidden":"true",className:"size-4 text-slate-400",focusable:"false",viewBox:"0 0 24 24",children:(0,o.jsx)("path",{d:"M18.932 16.845a10.206 10.206 0 0 0 2.087-6.261A10.5 10.5 0 0 0 10.584 0a10.584 10.584 0 0 0 0 21.168 9.9 9.9 0 0 0 6.261-2.087l4.472 4.472a1.441 1.441 0 0 0 2.087 0 1.441 1.441 0 0 0 0-2.087zm-8.348 1.193a7.508 7.508 0 0 1-7.6-7.453 7.6 7.6 0 0 1 15.2 0 7.508 7.508 0 0 1-7.6 7.452z",fill:"currentColor"})})}),(0,o.jsx)(f.PromptInputTextarea,{autoFocus:n,className:"py-[5px] pl-2 pr-4 text-lg text-black",placeholder:"",ref:s})]})})}e.s(["AskTimiInput",0,function({initialValue:e="",...t}){return(0,o.jsx)(f.PromptInputProvider,{initialInput:e,children:(0,o.jsx)(h,{...t})})}],435723),e.i(257535),e.i(220975),e.s([],952149)},569602,291718,453162,857321,995493,481811,618991,14729,e=>{"use strict";var t=e.i(950846);let r=(0,t.default)("CornerDownLeft",[["polyline",{points:"9 10 4 15 9 20",key:"r3jprv"}],["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}]]);e.s(["CornerDownLeftIcon",0,r],569602);let n=(0,t.default)("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);e.s(["ImageIcon",0,n],291718);let i=(0,t.default)("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);e.s(["MicIcon",0,i],453162);let a=(0,t.default)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["default",0,a],857321),e.s(["PlusIcon",0,a],995493);let o=(0,t.default)("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);e.s(["SquareIcon",0,o],481811),e.s(["nanoid",0,(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[e]];return t}],618991);var s=/[\\\/_+.#"@\[\(\{&]/,l=/[\\\/_+.#"@\[\(\{&]/g,u=/[\s-]/,c=/[\s-]/g;function d(e){return e.toLowerCase().replace(c," ")}var p=e.i(740981),f=e.i(22114),m=e.i(368044),h=e.i(896223),g=e.i(424692),v='[cmdk-group=""]',y='[cmdk-group-items=""]',b='[cmdk-item=""]',x=`${b}:not([aria-disabled="true"])`,w="cmdk-item-select",_="data-value",k=(e,t,r)=>{var n;return n=e,function e(t,r,n,i,a,o,d){if(o===r.length)return a===t.length?1:.99;var p=`${a},${o}`;if(void 0!==d[p])return d[p];for(var f,m,h,g,v=i.charAt(o),y=n.indexOf(v,a),b=0;y>=0;)(f=e(t,r,n,i,y+1,o+1,d))>b&&(y===a?f*=1:s.test(t.charAt(y-1))?(f*=.8,(h=t.slice(a,y-1).match(l))&&a>0&&(f*=Math.pow(.999,h.length))):u.test(t.charAt(y-1))?(f*=.9,(g=t.slice(a,y-1).match(c))&&a>0&&(f*=Math.pow(.999,g.length))):(f*=.17,a>0&&(f*=Math.pow(.999,y-a))),t.charAt(y)!==r.charAt(o)&&(f*=.9999)),(f<.1&&n.charAt(y-1)===i.charAt(o+1)||i.charAt(o+1)===i.charAt(o)&&n.charAt(y-1)!==i.charAt(o))&&.1*(m=e(t,r,n,i,y+1,o+2,d))>f&&(f=.1*m),f>b&&(b=f),y=n.indexOf(v,y+1);return d[p]=b,b}(n=r&&r.length>0?`${n+" "+r.join(" ")}`:n,t,d(n),d(t),0,0,{})},S=f.createContext(void 0),E=f.createContext(void 0),T=f.createContext(void 0),j=f.forwardRef((e,t)=>
6{let r=L(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=L(()=>new Set),i=L(()=>new Map),a=L(()=>new Map),o=L(()=>new Set),s=D(e),{label:l,children:u,value:c,onValueChange:d,filter:p,shouldFilter:g,loop:T,disablePointerSelection:j=!1,vimBindings:I=!0,...C}=e,A=(0,h.useId)(),N=(0,h.useId)(),O=(0,h.useId)(),R=f.useRef(null),P=z();$(()=>{if(void 0!==c){let e=c.trim();r.current.value=e,M.emit()}},[c]),$(()=>{P(6,W)},[]);let M=f.useMemo(()=>({subscribe:e=>(o.current.add(e),()=>o.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var i,a,o,l;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)H(),V(),P(1,B);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(O);e?e.focus():null==(i=document.getElementById(A))||i.focus()}if(P(7,()=>{var e;r.current.selectedItemId=null==(e=G())?void 0:e.id,M.emit()}),n||P(5,W),(null==(a=s.current)?void 0:a.value)!==void 0){null==(l=(o=s.current).onValueChange)||l.call(o,null!=t?t:"");return}}M.emit()}},emit:()=>{o.current.forEach(e=>e())}}),[]),U=f.useMemo(()=>({value:(e,t,n)=>{var i;t!==(null==(i=a.current.get(e))?void 0:i.value)&&(a.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,Z(t,n)),P(2,()=>{V(),M.emit()}))},item:(e,t)=>(n.current.add(e),t&&(i.current.has(t)?i.current.get(t).add(e):i.current.set(t,new Set([e]))),P(3,()=>{H(),V(),r.current.value||B(),M.emit()}),()=>{a.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=G();P(4,()=>{H(),(null==t?void 0:t.getAttribute("id"))===e&&B(),M.emit()})}),group:e=>(i.current.has(e)||i.current.set(e,new Set),()=>{a.current.delete(e),i.current.delete(e)}),filter:()=>s.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:A,inputId:O,labelId:N,listInnerRef:R}),[]);function Z(e,t){var n,i;let a=null!=(i=null==(n=s.current)?void 0:n.filter)?i:k;return e?a(e,r.current.search,t):0}function V(){if(!r.current.search||!1===s.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=i.current.get(r),a=0;n.forEach(t=>{a=Math.max(e.get(t),a)}),t.push([r,a])});let n=R.current;K().sort((t,r)=>{var n,i;let a=t.getAttribute("id"),o=r.getAttribute("id");return(null!=(n=e.get(o))?n:0)-(null!=(i=e.get(a))?i:0)}).forEach(e=>{let t=e.closest(y);t?t.appendChild(e.parentElement===t?e:e.closest(`${y} > *`)):n.appendChild(e.parentElement===n?e:e.closest(`${y} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=R.current)?void 0:t.querySelector(`${v}[${_}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function B(){let e=K().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(_);M.setState("value",t||void 0)}function H(){var e,t,o,l;if(!r.current.search||!1===s.current.shouldFilter){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let u=0;for(let i of n.current){let n=Z(null!=(t=null==(e=a.current.get(i))?void 0:e.value)?t:"",null!=(l=null==(o=a.current.get(i))?void 0:o.keywords)?l:[]);r.current.filtered.items.set(i,n),n>0&&u++}for(let[e,t]of i.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=u}function W(){var e,t,r;let n=G();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(v))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function G(){var e;return null==(e=R.current)?void 0:e.querySelector(`${b}[aria-selected="true"]`)}function K(){var e;return Array.from((null==(e=R.current)?void 0:e.querySelectorAll(x))||[])}function Y(e){let t=K()[e];t&&M.setState("value",t.getAttribute(_))}function X(e){var t;let r=G(),n=K(),i=n.findIndex(e=>e===r),a=n[i+e];null!=(t=s.current)&&t.loop&&(a=i+e<0?n[n.length-1]:i+e===n.length?n[0]:n[i+e]),a&&M.setState("value",a.getAttribute(_))}function J(e){let t=G(),r=null==t?void 0:t.closest(v),n;for(;r&&!n;)n=null==(r=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,v):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,v))?void 0:r.querySelector(x);n?M.setState("value",n.getAttribute(_)):X(e)}let Q=()=>Y(K().length-1),ee=e=>{e.preventDefault(),e.metaKey?Q():e.altKey?J(1):X(1)},et=e=>{e.preventDefault(),e.metaKey?Y(0):e.altKey?J(-1):X(-1)};return f.createElement(m.Primitive.div,{ref:t,tabIndex:-1,...C,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=C.onKeyDown)||t.call(C,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":I&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":I&&e.ctrlKey&&et(e);break;case"ArrowUp":et(e);break;case"Home":e.preventDefault(),Y(0);break;case"End":e.preventDefault(),Q();break;case"Enter":{e.preventDefault();let t=G();if(t){let e=new Event(w);t.dispatchEvent(e)}}}}},f.createElement("label",{"cmdk-label":"",htmlFor:U.inputId,id:U.labelId,style:q},l),F(e,e=>f.createElement(E.Provider,{value:M},f.createElement(S.Provider,{value:U},e))))}),I=f.forwardRef((e,t)=>
6{var r,n;let i=(0,h.useId)(),a=f.useRef(null),o=f.useContext(T),s=f.useContext(S),l=D(e),u=null!=(n=null==(r=l.current)?void 0:r.forceMount)?n:null==o?void 0:o.forceMount;$(()=>{if(!u)return s.item(i,null==o?void 0:o.id)},[u]);let c=U(i,a,[e.value,e.children,a],e.keywords),d=f.useContext(E),p=M(e=>e.value&&e.value===c.current),v=M(e=>!!u||!1===s.filter()||!e.search||e.filtered.items.get(i)>0);function y(){var e,t;b(),null==(t=(e=l.current).onSelect)||t.call(e,c.current)}function b(){d.setState("value",c.current,!0)}if(f.useEffect(()=>{let t=a.current;if(!(!t||e.disabled))return t.addEventListener(w,y),()=>t.removeEventListener(w,y)},[v,e.onSelect,e.disabled]),!v)return null;let{disabled:x,value:_,onSelect:k,forceMount:j,keywords:I,...C}=e;return f.createElement(m.Primitive.div,{ref:(0,g.composeRefs)(a,t),...C,id:i,"cmdk-item":"",role:"option","aria-disabled":!!x,"aria-selected":!!p,"data-disabled":!!x,"data-selected":!!p,onPointerMove:x||s.getDisablePointerSelection()?void 0:b,onClick:x?void 0:y},e.children)}),C=f.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:i,...a}=e,o=(0,h.useId)(),s=f.useRef(null),l=f.useRef(null),u=(0,h.useId)(),c=f.useContext(S),d=M(e=>!!i||!1===c.filter()||!e.search||e.filtered.groups.has(o));$(()=>c.group(o),[]),U(o,s,[e.value,e.heading,l]);let p=f.useMemo(()=>({id:o,forceMount:i}),[i]);return f.createElement(m.Primitive.div,{ref:(0,g.composeRefs)(s,t),...a,"cmdk-group":"",role:"presentation",hidden:!d||void 0},r&&f.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},r),F(e,e=>f.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},f.createElement(T.Provider,{value:p},e))))}),A=f.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,i=f.useRef(null),a=M(e=>!e.search);return r||a?f.createElement(m.Primitive.div,{ref:(0,g.composeRefs)(i,t),...n,"cmdk-separator":"",role:"separator"}):null}),N=f.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,i=null!=e.value,a=f.useContext(E),o=M(e=>e.search),s=M(e=>e.selectedItemId),l=f.useContext(S);return f.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),f.createElement(m.Primitive.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":s,id:l.inputId,type:"text",value:i?e.value:o,onChange:e=>{i||a.setState("search",e.target.value),null==r||r(e.target.value)}})}),O=f.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...i}=e,a=f.useRef(null),o=f.useRef(null),s=M(e=>e.selectedItemId),l=f.useContext(S);return f.useEffect(()=>{if(o.current&&a.current){let e=o.current,t=a.current,r,n=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return n.observe(e),()=>{cancelAnimationFrame(r),n.unobserve(e)}}},[]),f.createElement(m.Primitive.div,{ref:(0,g.composeRefs)(a,t),...i,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":n,id:l.listId},F(e,e=>f.createElement("div",{ref:(0,g.composeRefs)(o,l.listInnerRef),"cmdk-list-sizer":""},e)))}),R=f.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:i,contentClassName:a,container:o,...s}=e;return f.createElement(p.Root,{open:r,onOpenChange:n},f.createElement(p.Portal,{container:o},f.createElement(p.Overlay,{"cmdk-overlay":"",className:i}),f.createElement(p.Content,{"aria-label":e.label,"cmdk-dialog":"",className:a},f.createElement(j,{ref:t,...s}))))}),P=Object.assign(j,{List:O,Item:I,Input:N,Group:C,Separator:A,Dialog:R,Empty:f.forwardRef((e,t)=>M(e=>0===e.filtered.count)?f.createElement(m.Primitive.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:f.forwardRef((e,t)=>{let{progress:r,children:n,label:i="Loading...",...a}=e;return f.createElement(m.Primitive.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},F(e,e=>f.createElement("div",{"aria-hidden":!0},e)))})});function D(e){let t=f.useRef(e);return $(()=>{t.current=e}),t}var $="u"<typeof window?f.useEffect:f.useLayoutEffect;function L(e){let t=f.useRef();return void 0===t.current&&(t.current=e()),t}function M(e){let t=f.useContext(E),r=()=>e(t.snapshot());return f.useSyncExternalStore(t.subscribe,r,r)}function U(e,t,r,n=[]){let i=f.useRef(),a=f.useContext(S);return $(()=>{var o;let s=(()=>{var e;
6for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():i.current}})(),l=n.map(e=>e.trim());a.value(e,s,l),null==(o=t.current)||o.setAttribute(_,s),i.current=s}),i}var z=()=>{let[e,t]=f.useState(),r=L(()=>new Map);return $(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function F({asChild:e,children:t},r){let n;return e&&f.isValidElement(t)?f.cloneElement("function"==typeof(n=t.type)?n(t.props):"render"in n?n.render(t.props):t,{ref:t.ref},r(t.props.children)):r(t)}var q={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};e.s(["Command",0,P],14729)},226599,e=>{"use strict";let t=(0,e.i(950846).default)("FileText",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["line",{x1:"16",x2:"8",y1:"13",y2:"13",key:"14keom"}],["line",{x1:"16",x2:"8",y1:"17",y2:"17",key:"17nazh"}],["line",{x1:"10",x2:"8",y1:"9",y2:"9",key:"1a5vjj"}]]);e.s(["default",0,t])},123745,e=>{"use strict";let t=(0,e.i(950846).default)("History",[["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"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);e.s(["default",0,t])},335003,867161,e=>{"use strict";let t=(0,e.i(950846).default)("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",0,t],867161),e.s(["Loader2Icon",0,t],335003)},772664,e=>{"use strict";let t=(0,e.i(950846).default)("Paperclip",[["path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48",key:"1u3ebp"}]]);e.s(["PaperclipIcon",0,t],772664)},67823,e=>{"use strict";let t=(0,e.i(950846).default)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);e.s(["default",0,t])},611259,e=>{"use strict";let t=(0,e.i(950846).default)("Trash2",[["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"}]]);e.s(["Trash2Icon",0,t],611259)},821666,237801,e=>{"use strict";let t=(0,e.i(950846).default)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["default",0,t],237801),e.s(["XIcon",0,t],821666)},229859,238740,242210,642925,647480,710959,124241,714443,444948,483032,21365,348367,811855,175602,954912,680124,347248,883582,440919,267754,201221,192573,168826,377149,124424,210973,920885,636056,538305,924140,133639,470180,795153,134026,946974,984776,643127,927468,e=>{"use strict";let t,r,n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],i=new Set(n);e.s(["transformPropOrder",0,n,"transformProps",0,i],229859);let a=e=>180*e/Math.PI,o=e=>l(a(Math.atan2(e[1],e[0]))),s={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:o,rotateZ:o,skewX:e=>a(Math.atan(e[1])),skewY:e=>a(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},l=e=>((e%=360)<0&&(e+=360),e),u=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),c=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),d={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:u,scaleY:c,scale:e=>(u(e)+c(e))/2,rotateX:e=>l(a(Math.atan2(e[6],e[5]))),rotateY:e=>l(a(Math.atan2(-e[2],e[0]))),rotateZ:o,rotate:o,skewX:e=>a(Math.atan(e[4])),skewY:e=>a(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function p(e){return+!!e.includes("scale")}function f(e,t){let r,n;if(!e||"none"===e)return p(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)r=d,n=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=s,n=t}if(!n)return p(t);let a=r[t],o=n[1].split(",").map(m);return"function"==typeof a?a(o):o[a]}function m(e){return parseFloat(e.trim())}e.s(["defaultTransformValue",0,p,"parseValueFromTransform",0,f,"readTransformValue",0,(e,t)=>{let{transform:r="none"}=getComputedStyle(e);return f(r,t)}],238740);let h=e=>t=>"string"==typeof t&&t.startsWith(e),g=h("--"),v=h("var(--"),y=e=>!!v(e)&&b.test(e.split("/*")[0].trim()),b=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function x({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function w(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}e.s(["isCSSVariableName",0,g,"isCSSVariableToken",0,y],242210),e.s(["convertBoundingBoxToBox",0,x,"convertBoxToBoundingBox",0,function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}},"transformBoxPoints",0,w],642925);let _=(e,t,r)=>e+(t-e)*r;function k(e){return void 0===e||1===e}function S({scale:e,scaleX:t,scaleY:r}){return!k(e)||!k(t)||!k(r)}function E(e){return S(e)||T(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function T(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function j(e,t,r){return r+t*(e-r)}function I(e,t,r,n,i){return void 0!==i&&(e=j(e,i,n)),j(e,r,n)+t}function C(e,t=0,r=1,n,i){e.min=I(e.min,t,r,n,i),e.max=I(e.max,t,r,n,i)}function A(e,{x:t,y:r}){C(e.x,t.translate,t.scale,t.originPoint),C(e.y,r.translate,r.scale,r.originPoint)}function N(e,t){e.min=e.min+t,e.max=e.max+t}function O(e,t,r,n,i=.5){let a=_(e.min,e.max,i);C(e,t,r,a,n)}function R(e,t){O(e.x,t.x,t.scaleX,t.scale,t.originX),O(e.y,t.y,t.scaleY,t.scale,t.originY)}function P(e,t){return x(w(e.getBoundingClientRect(),t))}
6e.s(["mixNumber",0,_],647480),e.s(["has2DTranslate",0,T,"hasScale",0,S,"hasTransform",0,E],710959),e.s(["applyBoxDelta",0,A,"applyTreeDeltas",0,function(e,t,r,n=!1){let i,a,o=r.length;if(o){t.x=t.y=1;for(let s=0;s<o;s++){a=(i=r[s]).projectionDelta;let{visualElement:o}=i.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&R(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,A(e,a)),n&&E(i.latestValues)&&R(e,i.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}},"scalePoint",0,j,"transformBox",0,R,"translateAxis",0,N],124241),e.s(["measurePageBox",0,function(e,t,r){let n=P(e,r),{scroll:i}=t;return i&&(N(n.x,i.offset.x),N(n.y,i.offset.y)),n},"measureViewportBox",0,P],714443);let D=new Set(["width","height","top","left","right","bottom",...n]);e.s(["positionalKeys",0,D],444948);let $=(e,t,r)=>r>t?t:r<e?e:r;e.s(["clamp",0,$],483032);let L={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},M={...L,transform:e=>$(0,1,e)},U={...L,default:1},z=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),F=z("deg"),q=z("%"),Z=z("px"),V=z("vh"),B=z("vw"),H={...q,parse:e=>q.parse(e)/100,transform:e=>q.transform(100*e)};e.s(["degrees",0,F,"percent",0,q,"progressPercentage",0,H,"px",0,Z,"vh",0,V,"vw",0,B],21365);let W=e=>t=>t.test(e),G=[L,Z,q,F,B,V,{test:e=>"auto"===e,parse:e=>e}],K=e=>G.find(W(e)),Y=()=>{};e.s(["invariant",0,Y,"warning",0,()=>{}],348367);let X=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);e.s(["isNumericalString",0,X],811855);let J=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,Q=e=>e===L||e===Z,ee=new Set(["x","y","z"]),et=n.filter(e=>!ee.has(e)),er={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>f(t,"x"),y:(e,{transform:t})=>f(t,"y")};er.translateX=er.x,er.translateY=er.y;let en=e=>e;e.s(["noop",0,en],175602);let ei={};e.s(["MotionGlobalConfig",0,ei],954912);let ea=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],eo={value:null,addProjectionMetrics:null};function es(e,t){let r=!1,n=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>r=!0,o=ea.reduce((e,r)=>(e[r]=function(e,t){let r=new Set,n=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},l=0;function u(t){o.has(t)&&(c.schedule(t),e()),l++,t(s)}let c={schedule:(e,t=!1,a=!1)=>{let s=a&&i?r:n;return t&&o.add(e),s.has(e)||s.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0,[r,n]=[n,r],r.forEach(u),t&&eo.value&&eo.value.frameloop[t].push(l),l=0,r.clear(),i=!1,a&&(a=!1,c.process(e))}};return c}(a,t?r:void 0),e),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:p,render:f,postRender:m}=o,h=()=>{let a=ei.useManualTiming?i.timestamp:performance.now();r=!1,ei.useManualTiming||(i.delta=n?1e3/60:Math.max(Math.min(a-i.timestamp,40),1)),i.timestamp=a,i.isProcessing=!0,s.process(i),l.process(i),u.process(i),c.process(i),d.process(i),p.process(i),f.process(i),m.process(i),i.isProcessing=!1,r&&t&&(n=!1,e(h))};return{schedule:ea.reduce((t,a)=>{let s=o[a];return t[a]=(t,a=!1,o=!1)=>(!r&&(r=!0,n=!0,i.isProcessing||e(h)),s.schedule(t,a,o)),t},{}),cancel:e=>{for(let t=0;t<ea.length;t++)o[ea[t]].cancel(e)},state:i,steps:o}}e.s(["statsBuffer",0,eo],680124);let{schedule:el,cancel:eu,state:ec,steps:ed}=es("u">typeof requestAnimationFrame?requestAnimationFrame:en,!0);e.s(["cancelFrame",0,eu,"frame",0,el,"frameData",0,ec,"frameSteps",0,ed],347248);let ep=new Set,ef=!1,em=!1,eh=!1;function eg(){if(em){let e=Array.from(ep).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;t.forEach(e=>{let t,n=(t=[],et.forEach(r=>{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(+!!r.startsWith("scale")))}),t);n.length&&(r.set(e,n),e.render())}
6),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,r])=>{e.getValue(t)?.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}em=!1,ef=!1,ep.forEach(e=>e.complete(eh)),ep.clear()}function ev(){ep.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(em=!0)})}class ey{constructor(e,t,r,n,i,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=n,this.element=i,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(ep.add(this),ef||(ef=!0,el.read(ev),el.resolveKeyframes(eg))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;if(null===e[0]){let i=n?.get(),a=e[e.length-1];if(void 0!==i)e[0]=i;else if(r&&t){let n=r.readValue(t,a);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=a),n&&void 0===i&&n.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ep.delete(this)}cancel(){"scheduled"===this.state&&(ep.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}e.s(["KeyframeResolver",0,ey,"flushKeyframeResolvers",0,function(){eh=!0,ev(),eg(),eh=!1}],883582);let eb=e=>/^0[^.\s]+$/u.test(e);e.s(["isZeroValueString",0,eb],440919);let ex=e=>Math.round(1e5*e)/1e5,ew=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,e_=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ek=(e,t)=>r=>!!("string"==typeof r&&e_.test(r)&&r.startsWith(e)||t&&null!=r&&Object.prototype.hasOwnProperty.call(r,t)),eS=(e,t,r)=>n=>{if("string"!=typeof n)return n;let[i,a,o,s]=n.match(ew);return{[e]:parseFloat(i),[t]:parseFloat(a),[r]:parseFloat(o),alpha:void 0!==s?parseFloat(s):1}},eE={...L,transform:e=>Math.round($(0,255,e))},eT={test:ek("rgb","red"),parse:eS("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+eE.transform(e)+", "+eE.transform(t)+", "+eE.transform(r)+", "+ex(M.transform(n))+")"};e.s(["rgba",0,eT],267754);let ej={test:ek("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:eT.transform};e.s(["hex",0,ej],201221);let eI={test:ek("hsl","hue"),parse:eS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+q.transform(ex(t))+", "+q.transform(ex(r))+", "+ex(M.transform(n))+")"};e.s(["hsla",0,eI],192573);let eC={test:e=>eT.test(e)||ej.test(e)||eI.test(e),parse:e=>eT.test(e)?eT.parse(e):eI.test(e)?eI.parse(e):ej.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?eT.transform(e):eI.transform(e),getAnimatableNone:e=>{let t=eC.parse(e);return t.alpha=0,eC.transform(t)}};e.s(["color",0,eC],168826);let eA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,eN="number",eO="color",eR=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function eP(e){let t=e.toString(),r=[],n={color:[],number:[],var:[]},i=[],a=0,o=t.replace(eR,e=>(eC.test(e)?(n.color.push(a),i.push(eO),r.push(eC.parse(e))):e.startsWith("var(")?(n.var.push(a),i.push("var"),r.push(e)):(n.number.push(a),i.push(eN),r.push(parseFloat(e))),++a,"${}")).split("${}");return{values:r,split:o,indexes:n,types:i}}function eD(e){return eP(e).values}function e$(e){let{split:t,types:r}=eP(e),n=t.length;return e=>{let i="";for(let a=0;a<n;
6a++)if(i+=t[a],void 0!==e[a]){let t=r[a];t===eN?i+=ex(e[a]):t===eO?i+=eC.transform(e[a]):i+=e[a]}return i}}let eL=e=>"number"==typeof e?0:eC.test(e)?eC.getAnimatableNone(e):e,eM={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(ew)?.length||0)+(e.match(eA)?.length||0)>0},parse:eD,createTransformer:e$,getAnimatableNone:function(e){let t=eD(e);return e$(e)(t.map(eL))}};e.s(["analyseComplexValue",0,eP,"complex",0,eM],377149);let eU=new Set(["brightness","contrast","saturate","opacity"]);function ez(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(ew)||[];if(!n)return e;let i=r.replace(n,""),a=+!!eU.has(t);return n!==r&&(a*=100),t+"("+a+i+")"}let eF=/\b([a-z-]*)\(.*?\)/gu,eq={...eM,getAnimatableNone:e=>{let t=e.match(eF);return t?t.map(ez).join(" "):e}},eZ={...L,transform:Math.round},eV={borderWidth:Z,borderTopWidth:Z,borderRightWidth:Z,borderBottomWidth:Z,borderLeftWidth:Z,borderRadius:Z,radius:Z,borderTopLeftRadius:Z,borderTopRightRadius:Z,borderBottomRightRadius:Z,borderBottomLeftRadius:Z,width:Z,maxWidth:Z,height:Z,maxHeight:Z,top:Z,right:Z,bottom:Z,left:Z,padding:Z,paddingTop:Z,paddingRight:Z,paddingBottom:Z,paddingLeft:Z,margin:Z,marginTop:Z,marginRight:Z,marginBottom:Z,marginLeft:Z,backgroundPositionX:Z,backgroundPositionY:Z,rotate:F,rotateX:F,rotateY:F,rotateZ:F,scale:U,scaleX:U,scaleY:U,scaleZ:U,skew:F,skewX:F,skewY:F,distance:Z,translateX:Z,translateY:Z,translateZ:Z,x:Z,y:Z,z:Z,perspective:Z,transformPerspective:Z,opacity:M,originX:H,originY:H,originZ:Z,zIndex:eZ,fillOpacity:M,strokeOpacity:M,numOctaves:eZ};e.s(["numberValueTypes",0,eV],124424);let eB={...eV,color:eC,backgroundColor:eC,outlineColor:eC,fill:eC,stroke:eC,borderColor:eC,borderTopColor:eC,borderRightColor:eC,borderBottomColor:eC,borderLeftColor:eC,filter:eq,WebkitFilter:eq},eH=e=>eB[e];function eW(e,t){let r=eH(e);return r!==eq&&(r=eM),r.getAnimatableNone?r.getAnimatableNone(t):void 0}e.s(["getDefaultValueType",0,eH],210973),e.s(["getAnimatableNone",0,eW],920885);let eG=new Set(["auto","none","0"]);function eK(){r=void 0}e.s(["DOMKeyframesResolver",0,class extends ey{constructor(e,t,r,n,i){super(e,t,r,n,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let n=e[r];if("string"==typeof n&&y(n=n.trim())){let i=function e(t,r,n=1){Y(`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[i,a]=function(e){let t=J.exec(e);if(!t)return[,];let[,r,n,i]=t;return[`--${r??n}`,i]}(t);if(!i)return;let o=window.getComputedStyle(r).getPropertyValue(i);if(o){let e=o.trim();return X(e)?parseFloat(e):e}return y(a)?e(a,r,n+1):a}(n,t.current);void 0!==i&&(e[r]=i),r===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!D.has(r)||2!==e.length)return;let[n,i]=e,a=K(n),o=K(i);if(a!==o)if(Q(a)&&Q(o))for(let t=0;t<e.length;t++){let r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else er[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++){var n;(null===e[t]||("number"==typeof(n=e[t])?0===n:null===n||"none"===n||"0"===n||eb(n)))&&r.push(t)}r.length&&function(e,t,r){let n,i=0;for(;i<e.length&&!n;){let t=e[i];"string"==typeof t&&!eG.has(t)&&eP(t).values.length&&(n=e[i]),i++}if(n&&r)for(let i of t)e[i]=eW(r,n)}(e,r,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=er[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(r,n).jump(n,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:r}=this;if(!e||!e.current)return;let n=e.getValue(t);n&&n.jump(this.measuredOrigin,!1);let i=r.length-1,a=r[i];r[i]=er[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
6h(([t,r])=>{e.getValue(t).set(r)}),this.resolveNoneKeyframes()}}],636056),e.s(["isMotionValue",0,e=>!!(e&&e.getVelocity)],538305);let eY={now:()=>(void 0===r&&eY.set(ec.isProcessing||ei.useManualTiming?ec.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(eK)}};function eX(e,t){-1===e.indexOf(t)&&e.push(t)}function eJ(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}e.s(["time",0,eY],924140),e.s(["addUniqueItem",0,eX,"removeItem",0,eJ],133639);class eQ{constructor(){this.subscriptions=[]}add(e){return eX(this.subscriptions,e),()=>eJ(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i<n;i++){let n=this.subscriptions[i];n&&n(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function e0(e,t){return t?1e3/t*e:0}e.s(["SubscriptionManager",0,eQ],470180),e.s(["velocityPerSecond",0,e0],795153);class e1{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=eY.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=eY.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new eQ);let r=this.events[e].add(t);return"change"===e?()=>{r(),el.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return t&&t.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=eY.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e0(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}e.s(["motionValue",0,function(e,t){return new e1(e,t)}],134026);let e2=[...G,eC,eM];e.s(["findValueType",0,e=>e2.find(W(e))],946974);let{schedule:e4}=es(queueMicrotask,!1);e.s(["microtask",0,e4],984776);let e3={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},e6={};for(let e in e3)e6[e]={isEnabled:t=>e3[e].some(e=>!!t[e])};e.s(["featureDefinitions",0,e6],643127);let e5=()=>({translate:0,scale:1,origin:0,originPoint:0}),e9=()=>({min:0,max:0});e.s(["createBox",0,()=>({x:e9(),y:e9()}),"createDelta",0,()=>({x:e5(),y:e5()})],927468)},812064,e=>{"use strict";var t=e.i(264250);e.s(["isHTMLElement",0,function(e){return(0,t.isObject)(e)&&"offsetHeight"in e}])},264250,e=>{"use strict";e.s(["isObject",0,function(e){return"object"==typeof e&&null!==e}])},640464,(e,t,r)=>{"use strict";
6Object.defineProperty(r,"__esModule",{value:!0});var n={callServer:function(){return a.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return o.findSourceMapURL}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(273220),o=e.r(811764),s=e.r(983017)},867978,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return v},useLinkStatus:function(){return b}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(56421),o=e.r(813919),s=a._(e.r(22114)),l=e.r(247393),u=e.r(506446),c=e.r(565491),d=e.r(260774),p=e.r(265800),f=e.r(330390),m=e.r(333916),h=e.r(221829),g=e.r(288163);function v(t){var r;let n,i,a,[v,b]=(0,s.useOptimistic)(m.IDLE_LINK_STATUS),x=(0,s.useRef)(null),{href:w,as:_,children:k,prefetch:S=null,passHref:E,replace:T,shallow:j,scroll:I,onClick:C,onMouseEnter:A,onTouchStart:N,legacyBehavior:O=!1,onNavigate:R,transitionTypes:P,ref:D,unstable_dynamicOnHover:$,...L}=t;n=k,O&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let M=s.default.useContext(u.AppRouterContext),U=!1!==S,z=!1===S?"none":!0===S?"full":"auto",F="none"!==z?"auto"===z?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,q="string"==typeof(r=_||w)?r:(0,l.formatUrl)(r);if(O){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});i=s.default.Children.only(n)}let Z=O?i&&"object"==typeof i&&i.ref:D,V,B=s.default.useCallback(e=>(null!==M&&(x.current=(0,m.mountLinkInstance)(e,q,M,F,U,b,V)),()=>{x.current&&((0,m.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,m.unmountPrefetchableInstance)(e)}),[U,q,M,F,b,V]),H={ref:(0,c.useMergedRef)(B,Z),onClick(t){O||"function"!=typeof C||C(t),O&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(t),!M||t.defaultPrevented||function(t,r,n,i,a,o,l,u="none"){if("u">typeof window){let c,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,h.isLocalURL)(r)){i&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:p}=e.r(673411);s.default.startTransition(()=>{p(r,i?"replace":"push",!1===a?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,n.current,l,u)})}}(t,q,x,T,I,R,P,z)},onMouseEnter(e){O||"function"!=typeof A||A(e),O&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),M&&U&&(0,m.onNavigationIntent)(e.currentTarget,!0===$)},onTouchStart:function(e){O||"function"!=typeof N||N(e),O&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),M&&U&&(0,m.onNavigationIntent)(e.currentTarget,!0===$)}};return(0,d.isAbsoluteUrl)(q)?H.href=q:O&&!E&&("a"!==i.type||"href"in i.props)||(H.href=(0,p.addBasePath)(q)),a=O?s.default.cloneElement(i,H):(0,o.jsx)("a",{...L,...H,children:n}),(0,o.jsx)(y.Provider,{value:v,children:a})}let y=(0,s.createContext)(m.IDLE_LINK_STATUS),b=()=>(0,s.useContext)(y);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},81738,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"Image",{enumerable:!0,get:function(){return w}});let n=e.r(836437),i=e.r(56421),a=e.r(813919),o=i._(e.r(22114)),s=n._(e.r(552813)),l=n._(e.r(225108)),u=e.r(865677),c=e.r(930294),d=e.r(311811),p=e.r(817553),f=n._(e.r(711435)),m=e.r(565491),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qual
6ities:[75],path:"/_next/image/",loader:"custom",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,r,n,i,a,o){let s=e?.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),r?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}n?.current&&n.current(e)}}))}function v(e){return o.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let y="u"<typeof window?o.useEffect:o.useLayoutEffect,b=(0,o.forwardRef)(({src:e,srcSet:t,sizes:r,height:n,width:i,decoding:s,className:l,style:u,fetchPriority:c,placeholder:d,loading:p,unoptimized:f,fill:h,onLoadRef:b,onLoadingCompleteRef:x,setBlurComplete:w,setShowAltText:_,sizesInput:k,onLoad:S,onError:E,...T},j)=>{let I=(0,o.useRef)(!1),C=(0,o.useRef)(null);y(()=>{let{current:e}=I,{current:t}=C;e||null===t||(E&&(t.src=t.src),t.complete&&g(t,d,b,x,w,f,k),I.current=!0)},[e,d,b,x,E,f,k]);let A=(0,m.useMergedRef)(j,C);return(0,a.jsx)("img",{...T,...v(c),loading:p,width:i,height:n,decoding:s,"data-nimg":h?"fill":"1",className:l,style:u,sizes:r,srcSet:t,src:e,ref:A,onLoad:e=>{g(e.currentTarget,d,b,x,w,f,k)},onError:e=>{_(!0),"empty"!==d&&w(!0),E&&E(e)}})});function x({isAppRouter:e,imgAttributes:t}){let r={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...v(t.fetchPriority)};return e&&s.default.preload?(s.default.preload(t.src,r),null):(0,a.jsx)(l.default,{children:(0,a.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...r},"__nimg-"+t.src+t.srcSet+t.sizes)})}let w=(0,o.forwardRef)((e,t)=>{let r=(0,o.useContext)(p.RouterContext),n=(0,o.useContext)(d.ImageConfigContext),i=(0,o.useMemo)(()=>{let e=h||n||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t),i=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r,qualities:i,localPatterns:"u"<typeof window?n?.localPatterns:e.localPatterns}},[n]),{onLoad:s,onLoadingComplete:l}=e,m=(0,o.useRef)(s);(0,o.useEffect)(()=>{m.current=s},[s]);let g=(0,o.useRef)(l);(0,o.useEffect)(()=>{g.current=l},[l]);let[v,y]=(0,o.useState)(!1),[w,_]=(0,o.useState)(!1),{props:k,meta:S}=(0,u.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:v,showAltText:w});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b,{...k,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:y,setShowAltText:_,sizesInput:e.sizes,ref:t}),S.preload?(0,a.jsx)(x,{isAppRouter:!r,imgAttributes:k}):null]})});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},565491,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=e.r(22114);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=a(e,n)),t&&(i.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},865677,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImgProps",{enumerable:!0,get:function(){return u}});let n=e.r(479467),i=e.r(552337),a=e.r(930294),o=["-moz-initial","fill","none","scale-down",void 0];function s(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function u({src:e,sizes:t,unoptimized:r=!1,priority:c=!1,preload:d=!1,loading:p,className:f,quality:m,width:h,height:g,fill:v=!1,style:y,overrideSrc:b,onLoad:x,onLoadingComplete:w,placeholder:_="empty",blurDataURL:k,fetchPriority:S,decoding:E="async",layout:T,objectFit:j,objectPosition:I,lazyBoundary:C,lazyRoot:A,...N},O){var R;let P,D,$,{imgConf:L,showAltText:M,blurComplete:U,defaultLoader:z}=O,F=L||a.imageConfigDefault;if("allSizes"in F)P=F;else{let e=[...F.deviceSizes,...F.imageSizes].sort((e,t)=>
6e-t),t=F.deviceSizes.sort((e,t)=>e-t),r=F.qualities?.sort((e,t)=>e-t);P={...F,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===z)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let q=N.loader||z;delete N.loader,delete N.srcSet;let Z="__next_img_default"in q;if(Z){if("custom"===P.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop. 7Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=q;q=t=>{let{config:r,...n}=t;return e(n)}}if(T){"fill"===T&&(v=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[T];e&&(y={...y,...e});let r={responsive:"100vw",fill:"100vw"}[T];r&&!t&&(t=r)}let V="",B=l(h),H=l(g);if((R=e)&&"object"==typeof R&&(s(R)||void 0!==R.src)){let t=s(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(D=t.blurWidth,$=t.blurHeight,k=k||t.blurDataURL,V=t.src,!v)if(B||H){if(B&&!H){let e=B/t.width;H=Math.round(t.height*e)}else if(!B&&H){let e=H/t.height;B=Math.round(t.width*e)}}else B=t.width,H=t.height}let W=!c&&!d&&("lazy"===p||void 0===p);(!(e="string"==typeof e?e:V)||e.startsWith("data:")||e.startsWith("blob:"))&&(r=!0,W=!1),P.unoptimized&&(r=!0),Z&&!P.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(r=!0);let G=l(m),K=Object.assign(v?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:j,objectPosition:I}:{},M?{}:{color:"transparent"},y),Y=U||"empty"===_?null:"blur"===_?`url("data:image/svg+xml;charset=utf-8,${(0,i.getImageBlurSvg)({widthInt:B,heightInt:H,blurWidth:D,blurHeight:$,blurDataURL:k||"",objectFit:K.objectFit})}")`:`url("${_}")`,X=o.includes(K.objectFit)?"fill"===K.objectFit?"100% 100%":"cover":K.objectFit,J=Y?{backgroundSize:X,backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Y}:{},Q=function({config:e,src:t,unoptimized:r,width:i,quality:a,sizes:o,loader:s}){if(r){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,n.getDeploymentId)();if(t.includes("/_next/static/immutable")&&!(0,n.getAssetToken)())e=void 0;else if(e){let r=t.indexOf("?");if(-1!==r){let n=new URLSearchParams(t.slice(r+1));n.get("dpl")||(n.append("dpl",e),t=t.slice(0,r)+"?"+n.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:l,kind:u}=function({deviceSizes:e,allSizes:t},r,n){if(n){let r=/(^|\s)(1?\d?\d)vw/g,i=[];for(let e;e=r.exec(n);)i.push(parseInt(e[2]));if(i.length){let r=.01*Math.min(...i);return{widths:t.filter(t=>t>=e[0]*r),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof r?{widths:e,kind:"w"}:{widths:[...new Set([r,2*r].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,i,o),c=l.length-1;return{sizes:o||"w"!==u?o:"100vw",srcSet:l.map((r,n)=>`${s({config:e,src:t,quality:a,width:r})} ${"w"===u?r:n+1}${u}`).join(", "),src:s({config:e,src:t,quality:a,width:l[c]})}}({config:P,src:e,unoptimized:r,width:B,quality:G,sizes:t,loader:q}),ee=W?"lazy":p;return{props:{...N,loading:ee,fetchPriority:S,width:B,height:H,decoding:E,className:f,style:{...K,...J},sizes:Q.sizes,srcSet:Q.srcSet,src:b||Q.src},meta:{unoptimized:r,preload:d||c,placeholder:_,fill:v}}}},552337,(e,t,r)=>{"use strict";function n({widthInt:e,heightInt:t,blurWidth:r,blurHeight:i,blurDataURL:a,objectFit:o}){let s=r?40*r:e,l=i?40*i:t,u=s&&l?`viewBox='0 0 ${s} ${l}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${u}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3Cfe
7ColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${u?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${a}'/%3E%3C/svg%3E`}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},311811,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let n=e.r(836437)._(e.r(22114)),i=e.r(930294),a=n.default.createContext(i.imageConfigDefault)},930294,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={VALID_LOADERS:function(){return a},imageConfigDefault:function(){return o}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=["default","imgix","cloudinary","akamai","custom"],o={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},221829,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(260774),i=e.r(455851);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},10056,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return l},searchParamsToUrlQuery:function(){return a},urlQueryToSearchParams:function(){return s}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});function a(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function s(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,o(e));else t.set(r,o(n));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},247393,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return s},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(56421)._(e.r(10056)),o=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",i=e.pathname||"",s=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(a.urlQueryToSearchParams(l)));let c=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==u?(u="//"+(u||""),i&&"/"!==i[0]&&(i="/"+i)):u||(u=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),i=i.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${i}${c}${s}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return s(e)}},260774,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return v},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return x},NormalizeError:function(){return y},PageNotFoundError:function(){return b},SP:function(){return h},ST:function(){return g},WEB_VITALS:function(){return a},execOnce:function(){return o},getDisplayName:function(){return d},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return l},isResSent:function(){return p},loadGetInitialProps:function(){return m}
7,normalizeRepeatedSlashes:function(){return f},stringifyError:function(){return _}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&s.test(e)};function u(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=u();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function p(e){return e.finished||e.headersSent}function f(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function m(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await m(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&p(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let h="u">typeof performance,g=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class v extends Error{}class y extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class x extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class w extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function _(e){return JSON.stringify({message:e.message,stack:e.stack})}},497637,(e,t,r)=>{t.exports=e.r(133647)},35305,(e,t,r)=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},561227,(e,t,r)=>{"use strict";var n=e.r(35305);function i(){}function a(){}a.resetWarningCache=i,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i}
7;return r.PropTypes=r,r}},304153,(e,t,r)=>{t.exports=e.r(561227)()},96933,e=>{"use strict";var t=e.i(22114),r=e=>e instanceof Date,n=e=>null==e,i=e=>!n(e)&&!Array.isArray(e)&&"object"==typeof e&&!r(e),a=e=>i(e)&&e.target?"checkbox"===e.target.type?e.target.checked:e.target.value:e,o=(e,t)=>e.has(t.substring(0,t.search(/\.\d+(\.|$)/))||t),s="u">typeof window&&void 0!==window.HTMLElement&&"u">typeof document;function l(e){let t;if(e instanceof Date)return new Date(e);let r="u">typeof FileList&&e instanceof FileList;if(s&&(e instanceof Blob||r))return e;let n=Array.isArray(e);if(!n&&!(i(e)&&i(t=e.constructor&&e.constructor.prototype)&&t.hasOwnProperty("isPrototypeOf")))return e;let a=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(a[t]=l(e[t]));return a}var u=e=>void 0===e,c=e=>Array.isArray(e)?e.filter(Boolean):[],d=e=>c(e.replace(/["|']|\]/g,"").split(/\.|\[/)),p=(e,t,r)=>{if(!t||!i(e))return r;let a=(/^\w*$/.test(t)?[t]:d(t)).reduce((e,t)=>n(e)?e:e[t],e);return u(a)||a===e?u(e[t])?r:e[t]:a},f=e=>"function"==typeof e,m=(e,t,r)=>{let n=-1,a=/^\w*$/.test(t)?[t]:d(t),o=a.length,s=o-1;for(;++n<o;){let t=a[n],o=r;if(n!==s){let r=e[t];o=i(r)||Array.isArray(r)?r:isNaN(+a[n+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=o,e=e[t]}};let h="blur",g="onChange",v="onSubmit",y="maxLength",b="minLength",x="pattern",w="required",_=t.default.createContext(null);_.displayName="HookFormControlContext";var k=(e,t,r,n=!0)=>{let i={defaultValues:t._defaultValues};for(let a in e)Object.defineProperty(i,a,{get:()=>("all"!==t._proxyFormState[a]&&(t._proxyFormState[a]=!n||"all"),r&&(r[a]=!0),e[a])});return i};let S="u">typeof window?t.default.useLayoutEffect:t.default.useEffect;var E=e=>"string"==typeof e,T=(e,t,r,n,i)=>E(e)?(n&&t.watch.add(e),p(r,e,i)):Array.isArray(e)?e.map(e=>(n&&t.watch.add(e),p(r,e))):(n&&(t.watchAll=!0),r),j=e=>n(e)||"object"!=typeof e;function I(e,t,n=new WeakSet){if(j(e)||j(t))return Object.is(e,t);if(r(e)&&r(t))return Object.is(e.getTime(),t.getTime());let a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;for(let s of(n.add(e),n.add(t),a)){let a=e[s];if(!o.includes(s))return!1;if("ref"!==s){let e=t[s];if(r(a)&&r(e)||i(a)&&i(e)||Array.isArray(a)&&Array.isArray(e)?!I(a,e,n):!Object.is(a,e))return!1}}return!0}function C(e){let r=t.default.useContext(_),{control:n=r,name:i,defaultValue:a,disabled:o,exact:s,compute:l}=e||{},u=t.default.useRef(a),c=t.default.useRef(l),d=t.default.useRef(void 0),p=t.default.useRef(n),f=t.default.useRef(i);c.current=l;let[m,h]=t.default.useState(()=>{let e=n._getWatch(i,u.current);return c.current?c.current(e):e}),g=t.default.useCallback(e=>{let t=T(i,n._names,e||n._formValues,!1,u.current);return c.current?c.current(t):t},[n._formValues,n._names,i]),v=t.default.useCallback(e=>{if(!o){let t=T(i,n._names,e||n._formValues,!1,u.current);if(c.current){let e=c.current(t);I(e,d.current)||(h(e),d.current=e)}else h(t)}},[n._formValues,n._names,o,i]);S(()=>(p.current===n&&I(f.current,i)||(p.current=n,f.current=i,v()),n._subscribe({name:i,formState:{values:!0},exact:s,callback:e=>{v(e.values)}})),[n,s,i,v]),t.default.useEffect(()=>n._removeUnmounted());let y=p.current!==n,b=f.current,x=t.default.useMemo(()=>{if(o)return null;let e=!y&&!I(b,i);return y||e?g():null},[o,y,i,b,g]);return null!==x?x:m}let A=t.default.createContext(null);A.displayName="HookFormContext";var N=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},O=e=>Array.isArray(e)?e:[e],R=()=>{let e=[];return{get observers(){return e},next:t=>{for(let r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},P=e=>i(e)&&!Object.keys(e).length,D=e=>{if(!s)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},$=e=>D(e)&&e.isConnected;function L(e,t){let r=Array.isArray(t)?t:/^\w*$/.test(t)?[t]:d(t),n=1===r.length?e:function(e,t){let r=t.slice(0,-1).length,n=0;for(;n<r;)e=u(e)?n++:e[t[n++]];return e}(e,r),a=r.length-1,o=r[a];return n&&delete n[o],0!==a&&(i(n)&&P(n)||Array.isArray(n)&&function(e){for(let t in e)if(e.hasOwnProperty(t)&&!u(e[t]))return!1;return!0}(n))&&L(e,r.slice(0,-1)),e}function M(e){return Array.isArray(e)||i(e)&&!(e=>{for(let t in e)if(f(e[t]))return!0;return!1})(e)}function U(e,t={}){for(let r in e){let n=e[r];M(n)?(t[r]=Array.isArray(n)?[]:{},U(n,t[r])):u(n)||(t[r]=!0)}return t}function z(e,t,r){for(let i in r||(r=U(t)),e){let a=e[i];if(M(a))u(t)||j(r[i])?r[i]=U(a,Array.isArray(a)?[]:{}):z(a,n(t)?{}:t[i],r[i]);else{let e=t[i];r[i]=!I(a,e)}}return r}let F={value:!1,isValid:!1},q={value:!0,isValid:!0};var Z=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!u(e[0].attributes.value)?u(e[0].value)||""===e[0].value?q:{value:e[0].value,isValid:!0}:q:F}return F},V=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>u(e)?e:t?""===e?NaN:e?+e:e:r&&E(e)?new Date(e):n?n(e):e;let B={isValid:!1,value:null};var H=e=>Array.isArray(e)?e.reduce((e,t)=>
7t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,B):B;function W(e){let t=e.ref;return"file"===t.type?t.files:"radio"===t.type?H(e.refs).value:"select-multiple"===t.type?[...t.selectedOptions].map(({value:e})=>e):"checkbox"===t.type?Z(e.refs).value:V(u(t.value)?e.ref.value:t.value,e)}var G=e=>u(e)?e:e instanceof RegExp?e.source:i(e)?e.value instanceof RegExp?e.value.source:e.value:e,K=e=>({isOnSubmit:!e||e===v,isOnBlur:"onBlur"===e,isOnChange:e===g,isOnAll:"all"===e,isOnTouch:"onTouched"===e});let Y="AsyncFunction";var X=e=>!!e&&!!e.validate&&!!(f(e.validate)&&e.validate.constructor.name===Y||i(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===Y)),J=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));let Q=(e,t,r,n)=>{for(let a of r||Object.keys(e)){let r=p(e,a);if(r){let{_f:e,...o}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],a)&&!n)return!0;else if(e.ref&&t(e.ref,e.name)&&!n)return!0;else if(Q(o,t))break}else if(i(o)&&Q(o,t))break}}};function ee(e,t,r){let n=p(e,r);if(n||/^\w*$/.test(r))return{error:n,name:r};let i=r.split(".");for(;i.length;){let n=i.join("."),a=p(t,n),o=p(e,n);if(a&&!Array.isArray(a)&&r!==n)break;if(o&&o.type)return{name:n,error:o};if(o&&o.root&&o.root.type)return{name:`${n}.root`,error:o.root};i.pop()}return{name:r}}var et=(e,t,r)=>{let n=O(p(e,r));return m(n,"root",t[r]),m(e,r,n),e};function er(e,t,r="validate"){if(E(e)||Array.isArray(e)&&e.every(E)||"boolean"==typeof e&&!e)return{type:r,message:E(e)?e:"",ref:t}}var en=e=>!i(e)||e instanceof RegExp?{value:e,message:""}:e,ei=async(e,t,r,a,o,s)=>{let{ref:l,refs:c,required:d,maxLength:m,minLength:h,min:g,max:v,pattern:_,validate:k,name:S,valueAsNumber:T,mount:j}=e._f,I=p(r,S);if(!j||t.has(S))return{};let C=c?c[0]:l,A=e=>{o&&C.reportValidity&&(C.setCustomValidity("boolean"==typeof e?"":e||""),C.reportValidity())},O={},R="radio"===l.type,$="checkbox"===l.type,L=(T||"file"===l.type)&&u(l.value)&&u(I)||D(l)&&""===l.value||""===I||Array.isArray(I)&&!I.length,M=N.bind(null,S,a,O),U=(e,t,r,n=y,i=b)=>{let a=e?t:r;O[S]={type:e?n:i,message:a,ref:l,...M(e?n:i,a)}};if(s?!Array.isArray(I)||!I.length:d&&(!(R||$)&&(L||n(I))||"boolean"==typeof I&&!I||$&&!Z(c).isValid||R&&!H(c).isValid)){let{value:e,message:t}=E(d)?{value:!!d,message:d}:en(d);if(e&&(O[S]={type:w,message:t,ref:C,...M(w,t)},!a))return A(t),O}if(!L&&(!n(g)||!n(v))){let e,t,r=en(v),i=en(g);if(n(I)||isNaN(I)){let n=l.valueAsDate||new Date(I),a=e=>new Date(new Date().toDateString()+" "+e),o="time"==l.type,s="week"==l.type;E(r.value)&&I&&(e=o?a(I)>a(r.value):s?I>r.value:n>new Date(r.value)),E(i.value)&&I&&(t=o?a(I)<a(i.value):s?I<i.value:n<new Date(i.value))}else{let a=l.valueAsNumber||(I?+I:I);n(r.value)||(e=a>r.value),n(i.value)||(t=a<i.value)}if((e||t)&&(U(!!e,r.message,i.message,"max","min"),!a))return A(O[S].message),O}if((m||h)&&!L&&(E(I)||s&&Array.isArray(I))){let e=en(m),t=en(h),r=!n(e.value)&&I.length>+e.value,i=!n(t.value)&&I.length<+t.value;if((r||i)&&(U(r,e.message,t.message),!a))return A(O[S].message),O}if(_&&!L&&E(I)){let{value:e,message:t}=en(_);if(e instanceof RegExp&&!I.match(e)&&(O[S]={type:x,message:t,ref:l,...M(x,t)},!a))return A(t),O}if(k){if(f(k)){let e=er(await k(I,r),C);if(e&&(O[S]={...e,...M("validate",e.message)},!a))return A(e.message),O}else if(i(k)){let e={};for(let t in k){if(!P(e)&&!a)break;let n=er(await k[t](I,r),C,t);n&&(e={...n,...M(t,n.message)},A(n.message),a&&(O[S]=e))}if(!P(e)&&(O[S]={ref:C,...e},!a))return O}}return A(!0),O};let ea={mode:v,reValidateMode:g,shouldFocusError:!0};function eo(e={}){let t,d={...ea,...e},g={submitCount:0,isDirty:!1,isReady:!1,isLoading:f(d.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:d.errors||{},disabled:d.disabled||!1},v={},y=(i(d.defaultValues)||i(d.values))&&l(d.defaultValues||d.values)||{},b=d.shouldUnregister?{}:l(y),x={action:!1,mount:!1,watch:!1,keepIsValid:!1},w={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},_=0,k={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},S={...k},j={...S},C={array:R(),state:R()},A="all"===d.criteriaMode,N=async e=>{if(!x.keepIsValid&&!d.disabled&&(S.isValid||j.isValid||e)){let e;
7d.resolver?(e=P((await q()).errors),M()):e=await B(v,!0),e!==g.isValid&&C.state.next({isValid:e})}},M=(e,t)=>{!d.disabled&&(S.isValidating||S.validatingFields||j.isValidating||j.validatingFields)&&((e||Array.from(w.mount)).forEach(e=>{e&&(t?m(g.validatingFields,e,t):L(g.validatingFields,e))}),C.state.next({validatingFields:g.validatingFields,isValidating:!P(g.validatingFields)}))},U=(e,t,r,n)=>{let i=p(v,e);if(i){let a=p(b,e,u(r)?p(y,e):r);u(a)||n&&n.defaultChecked||t?m(b,e,t?a:W(i._f)):er(e,a),x.mount&&!x.action&&N()}},F=(e,t,r,n,i)=>{let a=!1,o=!1,s={name:e};if(!d.disabled){if(!r||n){(S.isDirty||j.isDirty)&&(o=g.isDirty,g.isDirty=s.isDirty=H(),a=o!==s.isDirty);let r=I(p(y,e),t);o=!!p(g.dirtyFields,e),r?L(g.dirtyFields,e):m(g.dirtyFields,e,!0),s.dirtyFields=g.dirtyFields,a=a||(S.dirtyFields||j.dirtyFields)&&!r!==o}if(r){let t=p(g.touchedFields,e);t||(m(g.touchedFields,e,r),s.touchedFields=g.touchedFields,a=a||(S.touchedFields||j.touchedFields)&&t!==r)}a&&i&&C.state.next(s)}return a?s:{}},q=async e=>(M(e,!0),await d.resolver(b,d.context,((e,t,r,n)=>{let i={};for(let r of e){let e=p(t,r);e&&m(i,r,e._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}})(e||w.mount,v,d.criteriaMode,d.shouldUseNativeValidation))),Z=async e=>{let{errors:t}=await q(e);if(M(e),e)for(let r of e){let e=p(t,r);e?m(g.errors,r,e):L(g.errors,r)}else g.errors=t;return t},B=async(t,r,n={valid:!0})=>{for(let i in t){let a=t[i];if(a){let{_f:t,...i}=a;if(t){let i=w.array.has(t.name),o=a._f&&X(a._f);o&&S.validatingFields&&M([t.name],!0);let s=await ei(a,w.disabled,b,A,d.shouldUseNativeValidation&&!r,i);if(o&&S.validatingFields&&M([t.name]),s[t.name]&&(n.valid=!1,r||e.shouldUseNativeValidation))break;r||(p(s,t.name)?i?et(g.errors,s,t.name):m(g.errors,t.name,s[t.name]):L(g.errors,t.name))}P(i)||await B(i,r,n)}}return n.valid},H=(e,t)=>!d.disabled&&(e&&t&&m(b,e,t),!I(ed(),y)),Y=(e,t,r)=>T(e,w,{...x.mount?b:u(t)?y:E(e)?{[e]:t}:t},r,t),er=(e,t,r={})=>{let i=p(v,e),a=t;if(i){let r=i._f;r&&(r.disabled||m(b,e,V(t,r)),a=D(r.ref)&&n(t)?"":t,"select-multiple"===r.ref.type?[...r.ref.options].forEach(e=>e.selected=a.includes(e.value)):r.refs?"checkbox"===r.ref.type?r.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(a)?e.checked=!!a.find(t=>t===e.value):e.checked=a===e.value||!!a)}):r.refs.forEach(e=>e.checked=e.value===a):"file"===r.ref.type?r.ref.value="":(r.ref.value=a,r.ref.type||C.state.next({name:e,values:l(b)})))}(r.shouldDirty||r.shouldTouch)&&F(e,a,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&ec(e)},en=(e,t,n)=>{for(let a in t){if(!t.hasOwnProperty(a))return;let o=t[a],s=e+"."+a,l=p(v,s);(w.array.has(e)||i(o)||l&&!l._f)&&!r(o)?en(s,o,n):er(s,o,n)}},es=(e,t,r={})=>{let i=p(v,e),a=w.array.has(e),o=l(t);m(b,e,o),a?(C.array.next({name:e,values:l(b)}),(S.isDirty||S.dirtyFields||j.isDirty||j.dirtyFields)&&r.shouldDirty&&C.state.next({name:e,dirtyFields:z(y,b),isDirty:H(e,o)})):!i||i._f||n(o)?er(e,o,r):en(e,o,r),J(e,w)?C.state.next({...g,name:e,values:l(b)}):C.state.next({name:x.mount?e:void 0,values:l(b)})},el=async e=>{x.mount=!0;let n=e.target,i=n.name,o=!0,s=p(v,i),u=e=>{o=Number.isNaN(e)||r(e)&&isNaN(e.getTime())||I(e,p(b,i,e))},c=K(d.mode),f=K(d.reValidateMode);if(s){var y,k,E,T,O;let r,x,U,z=n.type?W(s._f):a(e),Z=e.type===h||"focusout"===e.type,V=!((U=s._f).mount&&(U.required||U.min||U.max||U.maxLength||U.minLength||U.pattern||U.validate))&&!d.resolver&&!p(g.errors,i)&&!s._f.deps||(y=Z,k=p(g.touchedFields,i),E=g.isSubmitted,T=f,!(O=c).isOnAll&&(!E&&O.isOnTouch?!(k||y):(E?T.isOnBlur:O.isOnBlur)?!y:(E?!T.isOnChange:!O.isOnChange)||y)),H=J(i,w,Z);m(b,i,z),Z?n&&n.readOnly||(s._f.onBlur&&s._f.onBlur(e),t&&t(0)):s._f.onChange&&s._f.onChange(e);let G=F(i,z,Z),K=!P(G)||H;if(Z||C.state.next({name:i,type:e.type,values:l(b)}),V)return(S.isValid||j.isValid)&&("onBlur"===d.mode?Z&&N():Z||N()),K&&C.state.next({name:i,...H?{}:G});if(!Z&&H&&C.state.next({...g}),d.resolver){let{errors:e}=await q([i]);if(M([i]),u(z),o){let t=ee(g.errors,v,i),n=ee(e,v,t.name||i);r=n.error,i=n.name,x=P(e)}}else M([i],!0),r=(await ei(s,w.disabled,b,A,d.shouldUseNativeValidation))[i],M([i]),u(z),o&&(r?x=!1:(S.isValid||j.isValid)&&(x=await B(v,!0)));if(o){s._f.deps&&(!Array.isArray(s._f.deps)||s._f.deps.length>0)&&ec(s._f.deps);var R=i,D=x,$=r;let e=p(g.errors,R),n=(S.isValid||j.isValid)&&"boolean"==typeof D&&g.isValid!==D;if(d.delayError&&$){let e;e=()=>{m(g.errors,R,$),C.state.next({errors:g.errors})},(t=t=>{clearTimeout(_),_=setTimeout(e,t)})(d.delayError)}else clearTimeout(_),t=null,$?m(g.errors,R,$):L(g.errors,R);if(($?!I(e,$):e)||!P(G)||n){let e={...G,...n&&"boolean"==typeof D?{isValid:D}:{},errors:g.errors,name:R};g={...g,...e},C.state.next(e)}}}},eu=(e,t)=>
7{if(p(g.errors,t)&&e.focus)return e.focus(),1},ec=async(e,t={})=>{let r,n,i=O(e);if(d.resolver){let t=await Z(u(e)?e:i);r=P(t),n=e?!i.some(e=>p(t,e)):r}else e?((n=(await Promise.all(i.map(async e=>{let t=p(v,e);return await B(t&&t._f?{[e]:t}:t)}))).every(Boolean))||g.isValid)&&N():n=r=await B(v);return C.state.next({...!E(e)||(S.isValid||j.isValid)&&r!==g.isValid?{}:{name:e},...d.resolver||!e?{isValid:r}:{},errors:g.errors}),t.shouldFocus&&!n&&Q(v,eu,e?i:w.mount),n},ed=(e,t)=>{let r={...x.mount?b:y};return t&&(r=function e(t,r){let n={};for(let a in t)if(t.hasOwnProperty(a)){let o=t[a],s=r[a];if(o&&i(o)&&s){let t=e(o,s);i(t)&&(n[a]=t)}else t[a]&&(n[a]=s)}return n}(t.dirtyFields?g.dirtyFields:g.touchedFields,r)),u(e)?r:E(e)?p(r,e):e.map(e=>p(r,e))},ep=(e,t)=>({invalid:!!p((t||g).errors,e),isDirty:!!p((t||g).dirtyFields,e),error:p((t||g).errors,e),isValidating:!!p(g.validatingFields,e),isTouched:!!p((t||g).touchedFields,e)}),ef=(e,t,r)=>{let n=(p(v,e,{_f:{}})._f||{}).ref,{ref:i,message:a,type:o,...s}=p(g.errors,e)||{};m(g.errors,e,{...s,...t,ref:n}),C.state.next({name:e,errors:g.errors,isValid:!1}),r&&r.shouldFocus&&n&&n.focus&&n.focus()},em=e=>C.state.subscribe({next:t=>{let r,n,i;r=e.name,n=t.name,i=e.exact,(!r||!n||r===n||O(r).some(e=>e&&(i?e===n:e.startsWith(n)||n.startsWith(e))))&&((e,t,r,n)=>{r(e);let{name:i,...a}=e;return P(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!n||"all"))})(t,e.formState||S,e_,e.reRenderRoot)&&e.callback({values:{...b},...g,...t,defaultValues:y})}}).unsubscribe,eh=(e,t={})=>{for(let r of e?O(e):w.mount)w.mount.delete(r),w.array.delete(r),t.keepValue||(L(v,r),L(b,r)),t.keepError||L(g.errors,r),t.keepDirty||L(g.dirtyFields,r),t.keepTouched||L(g.touchedFields,r),t.keepIsValidating||L(g.validatingFields,r),d.shouldUnregister||t.keepDefaultValue||L(y,r);C.state.next({values:l(b)}),C.state.next({...g,...!t.keepDirty?{}:{isDirty:H()}}),t.keepIsValid||N()},eg=({disabled:e,name:t})=>{if("boolean"==typeof e&&x.mount||e||w.disabled.has(t)){let r=w.disabled.has(t);e?w.disabled.add(t):w.disabled.delete(t),!!e!==r&&x.mount&&!x.action&&N()}},ev=(e,t={})=>{let r=p(v,e),n="boolean"==typeof t.disabled||"boolean"==typeof d.disabled;return(m(v,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),w.mount.add(e),r)?eg({disabled:"boolean"==typeof t.disabled?t.disabled:d.disabled,name:e}):U(e,!0,t.value),{...n?{disabled:t.disabled||d.disabled}:{},...d.progressive?{required:!!t.required,min:G(t.min),max:G(t.max),minLength:G(t.minLength),maxLength:G(t.maxLength),pattern:G(t.pattern)}:{},name:e,onChange:el,onBlur:el,ref:n=>{if(n){let i;ev(e,t),r=p(v,e);let a=u(n.value)&&n.querySelectorAll&&n.querySelectorAll("input,select,textarea")[0]||n,o="radio"===(i=a).type||"checkbox"===i.type,s=r._f.refs||[];(o?s.find(e=>e===a):a===r._f.ref)||(m(v,e,{_f:{...r._f,...o?{refs:[...s.filter($),a,...Array.isArray(p(y,e))?[{}]:[]],ref:{type:a.type,name:e}}:{ref:a}}}),U(e,!1,void 0,a))}else(r=p(v,e,{}))._f&&(r._f.mount=!1),(d.shouldUnregister||t.shouldUnregister)&&!(o(w.array,e)&&x.action)&&w.unMount.add(e)}}},ey=()=>d.shouldFocusError&&Q(v,eu,w.mount),eb=(e,t)=>async r=>{let n;r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist());let i=l(b);if(C.state.next({isSubmitting:!0}),d.resolver){let{errors:e,values:t}=await q();M(),g.errors=e,i=l(t)}else await B(v);if(w.disabled.size)for(let e of w.disabled)L(i,e);if(L(g.errors,"root"),P(g.errors)){C.state.next({errors:{}});try{await e(i,r)}catch(e){n=e}}else t&&await t({...g.errors},r),ey(),setTimeout(ey);if(C.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:P(g.errors)&&!n,submitCount:g.submitCount+1,errors:g.errors}),n)throw n},ex=(e,t={})=>{let r=e?l(e):y,n=l(r),i=P(e),a=i?y:n;if(t.keepDefaultValues||(y=r),!t.keepValues){if(t.keepDirtyValues)for(let e of Array.from(new Set([...w.mount,...Object.keys(z(y,b))]))){let t=p(g.dirtyFields,e),r=p(b,e),n=p(a,e);t&&!u(r)?m(a,e,r):t||u(n)||es(e,n)}else{if(s&&u(e))for(let e of w.mount){let t=p(v,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(D(e)){let t=e.closest("form");if(t){t.reset();break}}}}if(t.keepFieldsRef)for(let e of w.mount)es(e,p(a,e));else v={}}b=d.shouldUnregister?t.keepDefaultValues?l(y):{}:l(a),C.array.next({values:{...a}}),C.state.next({values:{...a}})}w={mount:t.keepDirtyValues?w.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},x.mount=!S.isValid||!!t.keepIsValid||!!t.keepDirtyValues||!d.shouldUnregister&&!P(a),x.watch=!!d.shouldUnregister,x.keepIsValid=!!t.keepIsValid,x.action=!1,t.keepErrors||(g.errors={}),C.state.next({submitCount:t.keepSubmitCount?g.submitCount:0,isDirty:!i&&(t.keepDirty?g.isDirty:!!(t.keepDefaultValues&&!I(e,y))),isSubmitted:!!t.keepIsSubmitted&&g.isSubmitted,dirtyFields:i?{}:t.keepDirtyValues?t.keepDefaultValues&&b?z(y,b):g.dirtyFields:t.keepDefaultValues&&e?z(y,e):t.keepDirty?g.dirtyFields:{},touchedFields:t.keepTouched?g.touchedFields:{},errors:t.keepErrors?g.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&g.isSubmitSuccessful,isSubmitting:!1,defaultValues:y})},ew=(e,t)=>ex(f(e)?e(b):e,{...d.resetOptions,...t}),e_=e=>{g={...g,...e}},ek={control:{register:ev,unregister:eh,getFieldState:ep,handleSubmit:eb,setError:ef,_subscribe:em,_runSchema:q,_updateIsValidating:M,_focusError:ey,_getWatch:Y,_getDirty:H,_setValid:N,_setFieldArray:(e,t=[],r,n,i=!0,a=!0)=>
7{if(n&&r&&!d.disabled){if(x.action=!0,a&&Array.isArray(p(v,e))){let t=r(p(v,e),n.argA,n.argB);i&&m(v,e,t)}if(a&&Array.isArray(p(g.errors,e))){let t,a=r(p(g.errors,e),n.argA,n.argB);i&&m(g.errors,e,a),c(p(t=g.errors,e)).length||L(t,e)}if((S.touchedFields||j.touchedFields)&&a&&Array.isArray(p(g.touchedFields,e))){let t=r(p(g.touchedFields,e),n.argA,n.argB);i&&m(g.touchedFields,e,t)}(S.dirtyFields||j.dirtyFields)&&(g.dirtyFields=z(y,b)),C.state.next({name:e,isDirty:H(e,t),dirtyFields:g.dirtyFields,errors:g.errors,isValid:g.isValid})}else m(b,e,t)},_setDisabledField:eg,_setErrors:e=>{g.errors=e,C.state.next({errors:g.errors,isValid:!1})},_getFieldArray:e=>c(p(x.mount?b:y,e,d.shouldUnregister?p(y,e,[]):[])),_reset:ex,_resetDefaultValues:()=>f(d.defaultValues)&&d.defaultValues().then(e=>{ew(e,d.resetOptions),C.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(let e of w.unMount){let t=p(v,e);t&&(t._f.refs?t._f.refs.every(e=>!$(e)):!$(t._f.ref))&&eh(e)}w.unMount=new Set},_disableForm:e=>{"boolean"==typeof e&&(C.state.next({disabled:e}),Q(v,(t,r)=>{let n=p(v,r);n&&(t.disabled=n._f.disabled||e,Array.isArray(n._f.refs)&&n._f.refs.forEach(t=>{t.disabled=n._f.disabled||e}))},0,!1))},_subjects:C,_proxyFormState:S,get _fields(){return v},get _formValues(){return b},get _state(){return x},set _state(value){x=value},get _defaultValues(){return y},get _names(){return w},set _names(value){w=value},get _formState(){return g},get _options(){return d},set _options(value){d={...d,...value}}},subscribe:e=>(x.mount=!0,j={...j,...e.formState},em({...e,formState:{...k,...e.formState}})),trigger:ec,register:ev,handleSubmit:eb,watch:(e,t)=>f(e)?C.state.subscribe({next:r=>"values"in r&&e(Y(void 0,t),r)}):Y(e,t,!0),setValue:es,getValues:ed,reset:ew,resetField:(e,t={})=>{p(v,e)&&(u(t.defaultValue)?es(e,l(p(y,e))):(es(e,t.defaultValue),m(y,e,l(t.defaultValue))),t.keepTouched||L(g.touchedFields,e),t.keepDirty||(L(g.dirtyFields,e),g.isDirty=t.defaultValue?H(e,l(p(y,e))):H()),!t.keepError&&(L(g.errors,e),S.isValid&&N()),C.state.next({...g}))},clearErrors:e=>{e&&O(e).forEach(e=>L(g.errors,e)),C.state.next({errors:e?g.errors:{}})},unregister:eh,setError:ef,setFocus:(e,t={})=>{let r=p(v,e),n=r&&r._f;if(n){let e=n.refs?n.refs[0]:n.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&f(e.select)&&e.select()})}},getFieldState:ep};return{...ek,formControl:ek}}e.s(["Controller",0,e=>e.render(function(e){let r=t.default.useContext(_),{name:n,disabled:i,control:s=r,shouldUnregister:c,defaultValue:d,exact:g=!0}=e,v=o(s._names.array,n),y=t.default.useMemo(()=>p(s._formValues,n,p(s._defaultValues,n,d)),[s,n,d]),b=C({control:s,name:n,defaultValue:y,exact:g}),x=function(e){let r=t.default.useContext(_),{control:n=r,disabled:i,name:a,exact:o}=e||{},[s,l]=t.default.useState(n._formState),u=t.default.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return S(()=>n._subscribe({name:a,formState:u.current,exact:o,callback:e=>{i||l({...n._formState,...e})}}),[a,i,o]),t.default.useEffect(()=>{u.current.isValid&&n._setValid(!0)},[n]),t.default.useMemo(()=>k(s,n,u.current,!1),[s,n])}({control:s,name:n,exact:g}),w=t.default.useRef(e),E=t.default.useRef(void 0),T=t.default.useRef(s.register(n,{...e.rules,value:b,..."boolean"==typeof e.disabled?{disabled:e.disabled}:{}}));w.current=e;let j=t.default.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!p(x.errors,n)},isDirty:{enumerable:!0,get:()=>!!p(x.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!p(x.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!p(x.validatingFields,n)},error:{enumerable:!0,get:()=>p(x.errors,n)}}),[x,n]),I=t.default.useCallback(e=>T.current.onChange({target:{value:a(e),name:n},type:"change"}),[n]),A=t.default.useCallback(()=>T.current.onBlur({target:{value:p(s._formValues,n),name:n},type:h}),[n,s._formValues]),N=t.default.useCallback(e=>{let t=p(s._fields,n);t&&t._f&&e&&(t._f.ref={focus:()=>f(e.focus)&&e.focus(),select:()=>f(e.select)&&e.select(),setCustomValidity:t=>f(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>f(e.reportValidity)&&e.reportValidity()})},[s._fields,n]),O=t.default.useMemo(()=>({name:n,value:b,..."boolean"==typeof i||x.disabled?{disabled:x.disabled||i}:{},onChange:I,onBlur:A,ref:N}),[n,i,x.disabled,I,A,N,b]);return t.default.useEffect(()=>{let e=s._options.shouldUnregister||c,t=E.current;t&&t!==n&&!v&&s.unregister(t),s.register(n,{...w.current.rules,..."boolean"==typeof w.current.disabled?{disabled:w.current.disabled}:{}});let r=(e,t)=>{let r=p(s._fields,e);r&&r._f&&(r._f.mount=t)};if(r(n,!0),e){let e=l(p(s._options.defaultValues,n,w.current.defaultValue));m(s._defaultValues,n,e),u(p(s._formValues,n))&&m(s._formValues,n,e)}return v||s.register(n),E.current=n,()=>{(v?e&&!s._state.action:e)?s.unregister(n):r(n,!1)}},[n,s,v,c]),t.default.useEffect(()=>{s._setDisabledField({disabled:i,name:n})},[i,n,s]),t.default.useMemo(()=>({field:O,formState:x,fieldState:j}),[O,x,j])}(e)),"FormProvider",0,e=>{let{children:r,watch:n,getValues:i,getFieldState:a,setError:o,clearErrors:s,setValue:l,trigger:u,formState:c,resetField:d,reset:p,handleSubmit:f,unregister:m,control:h,register:g,setFocus:v,subscribe:y}=e;return t.default.createElement(A.Provider,{value:t.default.useMemo(()=>({watch:n,getValues:i,getFieldState:a,setError:o,clearErrors:s,setValue:l,trigger:u,formState:c,resetField:d,reset:p,handleSubmit:f,unregister:m,control:h,register:g,setFocus:v,subscribe:y}),[s,h,c,a,i,f,g,p,d,o,v,l,y,u,m,n])},t.default.createElement(_.Provider,{value:h},r))},"appendErrors",0,N,"createFormControl",0,eo,"get",0,p,"set",0,m,"useForm",0,function(e={}){let r=t.default.useRef(void 0),n=t.default.useRef(void 0),[i,a]=t.default.useState({isDirty:!1,isValidating:!1,isLoading:f(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:f(e.defaultValues)?void 0:e.defaultValues});if(!r.current)if(e.formControl)r.current={...e.formControl,formState:i},e.defaultValues&&!f(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:t,...n}=eo(e);r.current={...n,formState:i}}let o=r.current.control;return o._options=e,S(()=>{let e=o._subscribe({formState:o._proxyFormState,callback:()=>a({...o._formState}
7),reRenderRoot:!0});return a(e=>({...e,isReady:!0})),o._formState.isReady=!0,e},[o]),t.default.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),t.default.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),t.default.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),t.default.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),t.default.useEffect(()=>{if(o._proxyFormState.isDirty){let e=o._getDirty();e!==i.isDirty&&o._subjects.state.next({isDirty:e})}},[o,i.isDirty]),t.default.useEffect(()=>{var t;e.values&&!I(e.values,n.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),(null==(t=o._options.resetOptions)?void 0:t.keepIsValid)||o._setValid(),n.current=e.values,a(e=>({...e}))):o._resetDefaultValues()},[o,e.values]),t.default.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),r.current.formState=t.default.useMemo(()=>k(i,o),[o,i]),r.current},"useFormContext",0,()=>t.default.useContext(A),"useWatch",0,C])},375128,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=["allowfullScreen","async","autoplay","capture","checked","controls","default","defer","disabled","formnovalidate","hidden","loop","multiple","muted","novalidate","open","playsinline","readonly","required","reversed","scoped","seamless","selected","itemscope"]},840703,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default={accept:"accept","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",alt:"alt",as:"as",async:"async",autocomplete:"autoComplete",autoplay:"autoPlay",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",challenge:"challenge",checked:"checked",cite:"cite",classid:"classID",class:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlsList:"controlsList",coords:"coords",crossorigin:"crossOrigin",data:"data",datetime:"dateTime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"encType",form:"form",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",for:"htmlFor","http-equiv":"httpEquiv",icon:"icon",id:"id",inputmode:"inputMode",integrity:"integrity",is:"is",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginHeight",marginwidth:"marginWidth",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",slot:"slot",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",datatype:"datatype",inlist:"inlist",prefix:"prefix",property:"property",resource:"resource",typeof:"typeof",vocab:"vocab",autocapitalize:"autoCapitalize",autocorrect:"autoCorrect",autosave:"autoSave",color:"color",itemprop:"itemProp",
7itemscope:"itemScope",itemtype:"itemType",itemid:"itemID",itemref:"itemRef",results:"results",security:"security",unselectable:"unselectable"}},372059,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return i.hasOwnProperty(e)||(i[e]=n.test(e)),i[e]};var n=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,i={}},310003,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return Object.keys(e).filter(function(e){return(0,a.default)(e)}).reduce(function(t,r){var a,o=r.toLowerCase(),s=i.default[o]||o;return t[s]=(a=e[r],n.default.map(function(e){return e.toLowerCase()}).indexOf(s.toLowerCase())>=0&&(a=s),a),t},{})};var n=o(e.r(375128)),i=o(e.r(840703)),a=o(e.r(372059));function o(e){return e&&e.__esModule?e:{default:e}}},600824,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")};r.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""===e?{}:e.split(";").reduce(function(e,t){var r=n(t.split(/^([^:]+):/).filter(function(e,t){return t>0}).map(function(e){return e.trim().toLowerCase()}),2),i=r[0],a=r[1];return void 0===a||(e[i=i.replace(/^-ms-/,"ms-").replace(/-(.)/g,function(e,t){return t.toUpperCase()})]=a),e},{})}},798616,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};r.default=function(e,t){var r=n({},(0,i.default)(e),{key:t});return"string"==typeof r.style||r.style instanceof String?r.style=(0,a.default)(r.style):delete r.style,r};var i=o(e.r(310003)),a=o(e.r(600824));function o(e){return e&&e.__esModule?e:{default:e}}},915359,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]},469989,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t,r){var l=e.name;if(!(0,s.default)(l))return null;var u=(0,a.default)(e.attribs,t),c=null;return -1===o.default.indexOf(l)&&(c=(0,i.default)(e.children,r)),n.default.createElement(l,u,c)};var n=l(e.r(22114)),i=l(e.r(474263)),a=l(e.r(798616)),o=l(e.r(915359)),s=l(e.r(372059));function l(e){return e&&e.__esModule?e:{default:e}}},807752,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){var r=void 0;e.children.length>0&&(r=e.children[0].data);var a=(0,i.default)(e.attribs,t);return n.default.createElement("style",a,r)};var n=a(e.r(22114)),i=a(e.r(798616));function a(e){return e&&e.__esModule?e:{default:e}}},313211,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){return null}},974883,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,i=e.r(105357),a=u(e.r(741078)),o=u(e.r(469989)),s=u(e.r(807752)),l=u(e.r(313211));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}c(n={},i.ElementType.Text,a.default),c(n,i.ElementType.Tag,o.default),c(n,i.ElementType.Style,s.default),c(n,i.ElementType.Directive,l.default),c(n,i.ElementType.Comment,l.default),c(n,i.ElementType.Script,l.default),c(n,i.ElementType.CDATA,l.default),c(n,i.ElementType.Doctype,l.default),r.default=n},504980,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t,r){return i.default[e.type](e,t,r)};var n,i=(n=e.r(974883))&&n.__esModule?n:{default:n}},474263,(e,t,r)=>{"use strict";
7Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){return e.filter(function(e){return!(0,n.default)(e)}).map(function(e,r){var n=void 0;return"function"==typeof t&&(null===(n=t(e,r))||n)?n:(0,i.default)(e,r,t)})};var n=a(e.r(698202)),i=a(e.r(504980));function a(e){return e&&e.__esModule?e:{default:e}}},469219,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.decodeEntities,a=t.transform,o=t.preprocessNodes,s=(void 0===o?function(e){return e}:o)(n.default.parseDOM(e,{decodeEntities:void 0===r||r}));return(0,i.default)(s,a)};var n=a(e.r(105357)),i=a(e.r(474263));function a(e){return e&&e.__esModule?e:{default:e}}},67756,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.htmlparser2=r.convertNodeToElement=r.processNodes=void 0;var n=e.r(474263);Object.defineProperty(r,"processNodes",{enumerable:!0,get:function(){return o(n).default}});var i=e.r(504980);Object.defineProperty(r,"convertNodeToElement",{enumerable:!0,get:function(){return o(i).default}});var a=e.r(105357);function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"htmlparser2",{enumerable:!0,get:function(){return o(a).default}}),r.default=o(e.r(469219)).default},698202,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return"text"===e.type&&/\r?\n/.test(e.data)&&""===e.data.trim()}},284958,(e,t,r)=>{t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}},667857,(e,t,r)=>{var n=e.r(284958);t.exports=function(e){if(e>=55296&&e<=57343||e>1114111)return"�";e in n&&(e=n[e]);var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)}},168208,(e,t,r)=>{t.exports=
vendor: 32,997 bytes, line 7
7JSON.parse('{"Aacute":"Ã","aacute":"á","Abreve":"Ä","abreve":"Ä","ac":"â¾","acd":"â¿","acE":"â¾Ì³","Acirc":"Ã","acirc":"â","acute":"´","Acy":"Ð","acy":"а","AElig":"Ã","aelig":"æ","af":"â¡","Afr":"ð","afr":"ð","Agrave":"Ã","agrave":"à ","alefsym":"âµ","aleph":"âµ","Alpha":"Î","alpha":"α","Amacr":"Ä","amacr":"Ä","amalg":"⨿","amp":"&","AMP":"&","andand":"â©","And":"â©","and":"â§","andd":"â©","andslope":"â©","andv":"â©","ang":"â ","ange":"⦤","angle":"â ","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"â¦","angmsdag":"⦮","angmsdah":"⦯","angmsd":"â¡","angrt":"â","angrtvb":"â¾","angrtvbd":"â¦","angsph":"â¢","angst":"Ã
","angzarr":"â¼","Aogon":"Ä","aogon":"Ä
","Aopf":"ð¸","aopf":"ð","apacir":"⩯","ap":"â","apE":"â©°","ape":"â","apid":"â","apos":"\'","ApplyFunction":"â¡","approx":"â","approxeq":"â","Aring":"Ã
","aring":"Ã¥","Ascr":"ð","ascr":"ð¶","Assign":"â","ast":"*","asymp":"â","asympeq":"â","Atilde":"Ã","atilde":"ã","Auml":"Ã","auml":"ä","awconint":"â³","awint":"â¨","backcong":"â","backepsilon":"϶","backprime":"âµ","backsim":"â½","backsimeq":"â","Backslash":"â","Barv":"â«§","barvee":"â½","barwed":"â
","Barwed":"â","barwedge":"â
","bbrk":"âµ","bbrktbrk":"â¶","bcong":"â","Bcy":"Ð","bcy":"б","bdquo":"â","becaus":"âµ","because":"âµ","Because":"âµ","bemptyv":"⦰","bepsi":"϶","bernou":"â¬","Bernoullis":"â¬","Beta":"Î","beta":"β","beth":"â¶","between":"â¬","Bfr":"ð
","bfr":"ð","bigcap":"â","bigcirc":"â¯","bigcup":"â","bigodot":"â¨","bigoplus":"â¨","bigotimes":"â¨","bigsqcup":"â¨","bigstar":"â
","bigtriangledown":"â½","bigtriangleup":"â³","biguplus":"â¨","bigvee":"â","bigwedge":"â","bkarow":"â¤","blacklozenge":"â§«","blacksquare":"âª","blacktriangle":"â´","blacktriangledown":"â¾","blacktriangleleft":"â","blacktriangleright":"â¸","blank":"â£","blk12":"â","blk14":"â","blk34":"â","block":"â","bne":"=â¥","bnequiv":"â¡â¥","bNot":"â«","bnot":"â","Bopf":"ð¹","bopf":"ð","bot":"â¥","bottom":"â¥","bowtie":"â","boxbox":"â§","boxdl":"â","boxdL":"â","boxDl":"â","boxDL":"â","boxdr":"â","boxdR":"â","boxDr":"â","boxDR":"â","boxh":"â","boxH":"â","boxhd":"â¬","boxHd":"â¤","boxhD":"â¥","boxHD":"â¦","boxhu":"â´","boxHu":"â§","boxhU":"â¨","boxHU":"â©","boxminus":"â","boxplus":"â","boxtimes":"â ","boxul":"â","boxuL":"â","boxUl":"â","boxUL":"â","boxur":"â","boxuR":"â","boxUr":"â","boxUR":"â","boxv":"â","boxV":"â","boxvh":"â¼","boxvH":"âª","boxVh":"â«","boxVH":"â¬","boxvl":"â¤","boxvL":"â¡","boxVl":"â¢","boxVL":"â£","boxvr":"â","boxvR":"â","boxVr":"â","boxVR":"â ","bprime":"âµ","breve":"Ë","Breve":"Ë","brvbar":"¦","bscr":"ð·","Bscr":"â¬","bsemi":"â","bsim":"â½","bsime":"â","bsolb":"â§
","bsol":"\\\\","bsolhsub":"â","bull":"â¢","bullet":"â¢","bump":"â","bumpE":"⪮","bumpe":"â","Bumpeq":"â","bumpeq":"â","Cacute":"Ä","cacute":"Ä","capand":"â©","capbrcup":"â©","capcap":"â©","cap":"â©","Cap":"â","capcup":"â©","capdot":"â©","CapitalDifferentialD":"â
","caps":"â©ï¸","caret":"â","caron":"Ë","Cayleys":"â","ccaps":"â©","Ccaron":"Ä","ccaron":"Ä","Ccedil":"Ã","ccedil":"ç","Ccirc":"Ä","ccirc":"Ä","Cconint":"â°","ccups":"â©","ccupssm":"â©","Cdot":"Ä","cdot":"Ä","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"ð ","Cfr":"â","CHcy":"Ч","chcy":"Ñ","check":"â","checkmark":"â","Chi":"Χ","chi":"Ï","circ":"Ë","circeq":"â","circlearrowleft":"âº","circlearrowright":"â»","circledast":"â","circledcirc":"â","circleddash":"â","CircleDot":"â","circledR":"®","circledS":"â","CircleMinus":"â","CirclePlus":"â","CircleTimes":"â","cir":"â","cirE":"â§","cire":"â","cirfnint":"â¨","cirmid":"⫯","cirscir":"â§","ClockwiseContourIntegral":"â²","CloseCurlyDoubleQuote":"â","CloseCurlyQuote":"â","clubs":"â£","clubsuit":"â£","colon":":","Colon":"â·","Colone":"â©´","colone":"â","coloneq":"â","comma":",","commat":"@","comp":"â","compfn":"â","complement":"â","complexes":"â","cong":"â
","congdot":"â©","Congruent":"â¡","conint":"â®","Conint":"â¯","ContourIntegral":"â®","copf":"ð","Copf":"â","coprod":"â","Coproduct":"â","copy":"©","COPY":"©","copysr":"â","CounterClockwiseContourIntegral":"â³","crarr":"âµ","cross":"â","Cross":"⨯","Cscr":"ð","cscr":"ð¸","csub":"â«","csube":"â«","csup":"â«","csupe":"â«","ctdot":"â¯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"â","cuesc":"â","cularr":"â¶","cularrp":"⤽","cupbrcap":"â©","cupcap":"â©","CupCap":"â","cup":"âª","Cup":"â","cupcup":"â©","cupdot":"â","cupor":"â©
","cups":"âªï¸","curarr":"â·","curarrm":"⤼","curlyeqprec":"â","curlyeqsucc":"â","curlyvee":"â","curlywedge":"â","curren":"¤","curvearrowleft":"â¶","curvearrowright":"â·","cuvee":"â","cuwed":"â","cwconint":"â²","cwint":"â±","cylcty":"â","dagger":"â ","Dagger":"â¡","daleth":"â¸","darr":"â","Darr":"â¡","dArr":"â","dash":"â","Dashv":"⫤","dashv":"â£","dbkarow":"â¤","dblac":"Ë","Dcaron":"Ä","dcaron":"Ä","Dcy":"Ð","dcy":"д","ddagger":"â¡","ddarr":"â","DD":"â
","dd":"â
","DDotrahd":"â¤","ddotseq":"â©·","deg":"°","Del":"â","Delta":"Î","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"ð","dfr":"ð¡","dHar":"⥥","dharl":"â","dharr":"â","DiacriticalAcute":"´","DiacriticalDot":"Ë","DiacriticalDoubleAcute":"Ë","DiacriticalGrave":"`","DiacriticalTilde":"Ë","diam":"â","diamond":"â","Diamond":"â","diamondsuit":"â¦","diams":"â¦","die":"¨","DifferentialD":"â
","digamma":"Ï","disin":"â²","div":"÷","divide":"÷","divideontimes":"â","divonx":"â","DJcy":"Ð","djcy":"Ñ","dlcorn":"â","dlcrop":"â","dollar":"$","Dopf":"ð»","dopf":"ð","Dot":"¨","dot":"Ë","DotDot":"â","doteq":"â","doteqdot":"â","DotEqual":"â","dotminus":"â¸","dotplus":"â","dotsquare":"â¡","doublebarwedge":"â","DoubleContourIntegral":"â¯","DoubleDot":"¨","DoubleDownArrow":"â","DoubleLeftArrow":"â","DoubleLeftRightArrow":"â","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"â¸","DoubleLongLeftRightArrow":"âº","DoubleLongRightArrow":"â¹","DoubleRightArrow":"â","DoubleRightTee":"â¨","DoubleUpArrow":"â","DoubleUpDownArrow":"â","DoubleVerticalBar":"â¥","DownArrowBar":"â¤","downarrow":"â","DownArrow":"â","Downarrow":"â","DownArrowUpArrow":"âµ","DownBreve":"Ì","downdownarrows":"â","downharpoonleft":"â","downharpoonright":"â","DownLeftRightVector":"â¥","DownLeftTeeVector":"â¥","DownLeftVectorBar":"â¥","DownLeftVector":"â½","DownRightTeeVector":"â¥","DownRightVectorBar":"â¥","DownRightVector":"â","DownTeeArrow":"â§","DownTee":"â¤","drbkarow":"â¤","drcorn":"â","drcrop":"â","Dscr":"ð","dscr":"ð¹","DScy":"Ð
","dscy":"Ñ","dsol":"â§¶","Dstrok":"Ä","dstrok":"Ä","dtdot":"â±","dtri":"â¿","dtrif":"â¾","duarr":"âµ","duhar":"⥯","dwangle":"⦦","DZcy":"Ð","dzcy":"Ñ","dzigrarr":"â¿","Eacute":"Ã","eacute":"é","easter":"â©®","Ecaron":"Ä","ecaron":"Ä","Ecirc":"Ã","ecirc":"ê","ecir":"â","ecolon":"â","Ecy":"Ð","ecy":"Ñ","eDDot":"â©·","Edot":"Ä","edot":"Ä","eDot":"â","ee":"â
","efDot":"â","Efr":"ð","efr":"ð¢","eg":"âª","Egrave":"Ã","egrave":"è","egs":"âª","egsdot":"âª","el":"âª","Element":"â","elinters":"â§","ell":"â","els":"âª","elsdot":"âª","Emacr":"Ä","emacr":"Ä","empty":"â
","emptyset":"â
","EmptySmallSquare":"â»","emptyv":"â
","EmptyVerySmallSquare":"â«","emsp13":"â","emsp14":"â
","emsp":"â","ENG":"Å","eng":"Å","ensp":"â","Eogon":"Ä","eogon":"Ä","Eopf":"ð¼","eopf":"ð","epar":"â","eparsl":"â§£","eplus":"⩱","epsi":"ε","Epsilon":"Î","epsilon":"ε","epsiv":"ϵ","eqcirc":"â","eqcolon":"â","eqsim":"â","eqslantgtr":"âª","eqslantless":"âª","Equal":"⩵","equals":"=","EqualTilde":"â","equest":"â","Equilibrium":"â","equiv":"â¡","equivDD":"⩸","eqvparsl":"â§¥","erarr":"⥱","erDot":"â","escr":"â¯","Escr":"â°","esdot":"â","Esim":"⩳","esim":"â","Eta":"Î","eta":"η","ETH":"Ã","eth":"ð","Euml":"Ã","euml":"ë","euro":"â¬","excl":"!","exist":"â","Exists":"â","expectation":"â°","exponentiale":"â
","ExponentialE":"â
","fallingdotseq":"â","Fcy":"Ф","fcy":"Ñ","female":"â","ffilig":"ï¬","fflig":"ï¬","ffllig":"ï¬","Ffr":"ð","ffr":"ð£","filig":"ï¬","FilledSmallSquare":"â¼","FilledVerySmallSquare":"âª","fjlig":"fj","flat":"â","fllig":"ï¬","fltns":"â±","fnof":"Æ","Fopf":"ð½","fopf":"ð","forall":"â","ForAll":"â","fork":"â","forkv":"â«","Fouriertrf":"â±","fpartint":"â¨","frac12":"½","frac13":"â
","frac14":"¼","frac15":"â
","frac16":"â
","frac18":"â
","frac23":"â
","frac25":"â
","frac34":"¾","frac35":"â
","frac38":"â
","frac45":"â
","frac56":"â
","frac58":"â
","frac78":"â
","frasl":"â","frown":"â¢","fscr":"ð»","Fscr":"â±","gacute":"ǵ","Gamma":"Î","gamma":"γ","Gammad":"Ï","gammad":"Ï","gap":"âª","Gbreve":"Ä","gbreve":"Ä","Gcedil":"Ä¢","Gcirc":"Ä","gcirc":"Ä","Gcy":"Ð","gcy":"г","Gdot":"Ä ","gdot":"Ä¡","ge":"â¥","gE":"â§","gEl":"âª","gel":"â","geq":"â¥","geqq":"â§","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"âª","gesdoto":"âª","gesdotol":"âª","gesl":"âï¸","gesles":"âª","Gfr":"ð","gfr":"ð¤","gg":"â«","Gg":"â","ggg":"â","gimel":"â·","GJcy":"Ð","gjcy":"Ñ","gla":"⪥","gl":"â·","glE":"âª","glj":"⪤","gnap":"âª","gnapprox":"âª","gne":"âª","gnE":"â©","gneq":"âª","gneqq":"â©","gnsim":"â§","Gopf":"ð¾","gopf":"ð","grave":"`","GreaterEqual":"â¥","GreaterEqualLess":"â","GreaterFullEqual":"â§","GreaterGreater":"⪢","GreaterLess":"â·","GreaterSlantEqual":"⩾","GreaterTilde":"â³","Gscr":"ð¢","gscr":"â","gsim":"â³","gsime":"âª","gsiml":"âª","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"â«","gtdot":"â","gtlPar":"â¦","gtquest":"⩼","gtrapprox":"âª","gtrarr":"⥸","gtrdot":"â","gtreqless":"â","gtreqqless":"âª","gtrless":"â·","gtrsim":"â³","gvertneqq":"â©ï¸","gvnE":"â©ï¸","Hacek":"Ë","hairsp":"â","half":"½","hamilt":"â","HARDcy":"Ъ","hardcy":"Ñ","harrcir":"â¥","harr":"â","hArr":"â","harrw":"â","Hat":"^","hbar":"â","Hcirc":"Ĥ","hcirc":"Ä¥","hearts":"â¥","heartsuit":"â¥","hellip":"â¦","hercon":"â¹","hfr":"ð¥","Hfr":"â","HilbertSpace":"â","hksearow":"⤥","hkswarow":"⤦","hoarr":"â¿","homtht":"â»","hookleftarrow":"â©","hookrightarrow":"âª","hopf":"ð","Hopf":"â","horbar":"â","HorizontalLine":"â","hscr":"ð½","Hscr":"â","hslash":"â","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"â","HumpEqual":"â","hybull":"â","hyphen":"â","Iacute":"Ã","iacute":"Ã","ic":"â£","Icirc":"Ã","icirc":"î","Icy":"Ð","icy":"и","Idot":"İ","IEcy":"Ð","iecy":"е","iexcl":"¡","iff":"â","ifr":"ð¦","Ifr":"â","Igrave":"Ã","igrave":"ì","ii":"â
","iiiint":"â¨","iiint":"â","iinfin":"â§","iiota":"â©","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"Ä«","image":"â","ImaginaryI":"â
","imagline":"â","imagpart":"â","imath":"ı","Im":"â","imof":"â·","imped":"Ƶ","Implies":"â","incare":"â
","in":"â","infin":"â","infintie":"â§","inodot":"ı","intcal":"âº","int":"â«","Int":"â¬","integers":"â¤","Integral":"â«","intercal":"âº","Intersection":"â","intlarhk":"â¨","intprod":"⨼","InvisibleComma":"â£","InvisibleTimes":"â¢","IOcy":"Ð","iocy":"Ñ","Iogon":"Ä®","iogon":"į","Iopf":"ð","iopf":"ð","Iota":"Î","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"ð¾","Iscr":"â","isin":"â","isindot":"âµ","isinE":"â¹","isins":"â´","isinsv":"â³","isinv":"â","it":"â¢","Itilde":"Ĩ","itilde":"Ä©","Iukcy":"Ð","iukcy":"Ñ","Iuml":"Ã","iuml":"ï","Jcirc":"Ä´","jcirc":"ĵ","Jcy":"Ð","jcy":"й","Jfr":"ð","jfr":"ð§","jmath":"È·","Jopf":"ð","jopf":"ð","Jscr":"ð¥","jscr":"ð¿","Jsercy":"Ð","jsercy":"Ñ","Jukcy":"Ð","jukcy":"Ñ","Kappa":"Î","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"Ä·","Kcy":"Ð","kcy":"к","Kfr":"ð","kfr":"ð¨","kgreen":"ĸ","KHcy":"Ð¥","khcy":"Ñ
","KJcy":"Ð","kjcy":"Ñ","Kopf":"ð","kopf":"ð","Kscr":"ð¦","kscr":"ð","lAarr":"â","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"â","Lambda":"Î","lambda":"λ","lang":"â¨","Lang":"âª","langd":"â¦","langle":"â¨","lap":"âª
","Laplacetrf":"â","laquo":"«","larrb":"â¤","larrbfs":"â¤","larr":"â","Larr":"â","lArr":"â","larrfs":"â¤","larrhk":"â©","larrlp":"â«","larrpl":"⤹","larrsim":"⥳","larrtl":"â¢","latail":"â¤","lAtail":"â¤","lat":"⪫","late":"âª","lates":"âªï¸","lbarr":"â¤","lBarr":"â¤","lbbrk":"â²","lbrace":"{","lbrack":"[","lbrke":"â¦","lbrksld":"â¦","lbrkslu":"â¦","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ä»","lcedil":"ļ","lceil":"â","lcub":"{","Lcy":"Ð","lcy":"л","ldca":"⤶","ldquo":"â","ldquor":"â","ldrdhar":"⥧","ldrushar":"â¥","ldsh":"â²","le":"â¤","lE":"â¦","LeftAngleBracket":"â¨","LeftArrowBar":"â¤","leftarrow":"â","LeftArrow":"â","Leftarrow":"â","LeftArrowRightArrow":"â","leftarrowtail":"â¢","LeftCeiling":"â","LeftDoubleBracket":"â¦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"â¥","LeftDownVector":"â","LeftFloor":"â","leftharpoondown":"â½","leftharpoonup":"â¼","leftleftarrows":"â","leftrightarrow":"â","LeftRightArrow":"â","Leftrightarrow":"â","leftrightarrows":"â","leftrightharpoons":"â","leftrightsquigarrow":"â","LeftRightVector":"â¥","LeftTeeArrow":"â¤","LeftTee":"â£","LeftTeeVector":"â¥","leftthreetimes":"â","LeftTriangleBar":"â§","LeftTriangle":"â²","LeftTriangleEqual":"â´","LeftUpDownVector":"â¥","LeftUpTeeVector":"⥠","LeftUpVectorBar":"â¥","LeftUpVector":"â¿","LeftVectorBar":"â¥","LeftVector":"â¼","lEg":"âª","leg":"â","leq":"â¤","leqq":"â¦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"â©¿","lesdoto":"âª","lesdotor":"âª","lesg":"âï¸","lesges":"âª","lessapprox":"âª
","lessdot":"â","lesseqgtr":"â","lesseqqgtr":"âª","LessEqualGreater":"â","LessFullEqual":"â¦","LessGreater":"â¶","lessgtr":"â¶","LessLess":"⪡","lesssim":"â²","LessSlantEqual":"⩽","LessTilde":"â²","lfisht":"⥼","lfloor":"â","Lfr":"ð","lfr":"ð©","lg":"â¶","lgE":"âª","lHar":"⥢","lhard":"â½","lharu":"â¼","lharul":"⥪","lhblk":"â","LJcy":"Ð","ljcy":"Ñ","llarr":"â","ll":"âª","Ll":"â","llcorner":"â","Lleftarrow":"â","llhard":"⥫","lltri":"âº","Lmidot":"Ä¿","lmidot":"Å","lmoustache":"â°","lmoust":"â°","lnap":"âª","lnapprox":"âª","lne":"âª","lnE":"â¨","lneq":"âª","lneqq":"â¨","lnsim":"â¦","loang":"â¬","loarr":"â½","lobrk":"â¦","longleftarrow":"âµ","LongLeftArrow":"âµ","Longleftarrow":"â¸","longleftrightarrow":"â·","LongLeftRightArrow":"â·","Longleftrightarrow":"âº","longmapsto":"â¼","longrightarrow":"â¶","LongRightArrow":"â¶","Longrightarrow":"â¹","looparrowleft":"â«","looparrowright":"â¬","lopar":"â¦
","Lopf":"ð","lopf":"ð","loplus":"â¨","lotimes":"⨴","lowast":"â","lowbar":"_","LowerLeftArrow":"â","LowerRightArrow":"â","loz":"â","lozenge":"â","lozf":"â§«","lpar":"(","lparlt":"â¦","lrarr":"â","lrcorner":"â","lrhar":"â","lrhard":"â¥","lrm":"â","lrtri":"â¿","lsaquo":"â¹","lscr":"ð","Lscr":"â","lsh":"â°","Lsh":"â°","lsim":"â²","lsime":"âª","lsimg":"âª","lsqb":"[","lsquo":"â","lsquor":"â","Lstrok":"Å","lstrok":"Å","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"âª","ltdot":"â","lthree":"â","ltimes":"â","ltlarr":"⥶","ltquest":"â©»","ltri":"â","ltrie":"â´","ltrif":"â","ltrPar":"â¦","lurdshar":"â¥","luruhar":"⥦","lvertneqq":"â¨ï¸","lvnE":"â¨ï¸","macr":"¯","male":"â","malt":"â ","maltese":"â ","Map":"â¤
","map":"â¦","mapsto":"â¦","mapstodown":"â§","mapstoleft":"â¤","mapstoup":"â¥","marker":"â®","mcomma":"⨩","Mcy":"Ð","mcy":"м","mdash":"â","mDDot":"âº","measuredangle":"â¡","MediumSpace":"â","Mellintrf":"â³","Mfr":"ð","mfr":"ðª","mho":"â§","micro":"µ","midast":"*","midcir":"â«°","mid":"â£","middot":"·","minusb":"â","minus":"â","minusd":"â¸","minusdu":"⨪","MinusPlus":"â","mlcp":"â«","mldr":"â¦","mnplus":"â","models":"â§","Mopf":"ð","mopf":"ð","mp":"â","mscr":"ð","Mscr":"â³","mstpos":"â¾","Mu":"Î","mu":"μ","multimap":"â¸","mumap":"â¸","nabla":"â","Nacute":"Å","nacute":"Å","nang":"â â","nap":"â","napE":"⩰̸","napid":"â̸","napos":"Å","napprox":"â","natural":"â®","naturals":"â","natur":"â®","nbsp":" ","nbump":"â̸","nbumpe":"â̸","ncap":"â©","Ncaron":"Å","ncaron":"Å","Ncedil":"Å
","ncedil":"Å","ncong":"â","ncongdot":"â©Ì¸","ncup":"â©","Ncy":"Ð","ncy":"н","ndash":"â","nearhk":"⤤","nearr":"â","neArr":"â","nearrow":"â","ne":"â ","nedot":"â̸","NegativeMediumSpace":"â","NegativeThickSpace":"â","NegativeThinSpace":"â","NegativeVeryThinSpace":"â","nequiv":"â¢","nesear":"⤨","nesim":"â̸","NestedGreaterGreater":"â«","NestedLessLess":"âª","NewLine":"\\n","nexist":"â","nexists":"â","Nfr":"ð","nfr":"ð«","ngE":"â§Ì¸","nge":"â±","ngeq":"â±","ngeqq":"â§Ì¸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"â̸","ngsim":"âµ","nGt":"â«â","ngt":"â¯","ngtr":"â¯","nGtv":"â«Ì¸","nharr":"â®","nhArr":"â","nhpar":"⫲","ni":"â","nis":"â¼","nisd":"âº","niv":"â","NJcy":"Ð","njcy":"Ñ","nlarr":"â","nlArr":"â","nldr":"â¥","nlE":"â¦Ì¸","nle":"â°","nleftarrow":"â","nLeftarrow":"â","nleftrightarrow":"â®","nLeftrightarrow":"â","nleq":"â°","nleqq":"â¦Ì¸","nleqslant":"⩽̸","nles":"⩽̸","nless":"â®","nLl":"â̸","nlsim":"â´","nLt":"âªâ","nlt":"â®","nltri":"âª","nltrie":"â¬","nLtv":"âªÌ¸","nmid":"â¤","NoBreak":"â ","NonBreakingSpace":" ","nopf":"ð","Nopf":"â","Not":"⫬","not":"¬","NotCongruent":"â¢","NotCupCap":"â","NotDoubleVerticalBar":"â¦","NotElement":"â","NotEqual":"â ","NotEqualTilde":"â̸","NotExists":"â","NotGreater":"â¯","NotGreaterEqual":"â±","NotGreaterFullEqual":"â§Ì¸","NotGreaterGreater":"â«Ì¸","NotGreaterLess":"â¹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"âµ","NotHumpDownHump":"â̸","NotHumpEqual":"â̸","notin":"â","notindot":"âµÌ¸","notinE":"â¹Ì¸","notinva":"â","notinvb":"â·","notinvc":"â¶","NotLeftTriangleBar":"â§Ì¸","NotLeftTriangle":"âª","NotLeftTriangleEqual":"â¬","NotLess":"â®","NotLessEqual":"â°","NotLessGreater":"â¸","NotLessLess":"âªÌ¸","NotLessSlantEqual":"⩽̸","NotLessTilde":"â´","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"â","notniva":"â","notnivb":"â¾","notnivc":"â½","NotPrecedes":"â","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"â ","NotReverseElement":"â","NotRightTriangleBar":"â§Ì¸","NotRightTriangle":"â«","NotRightTriangleEqual":"â","NotSquareSubset":"â̸","NotSquareSubsetEqual":"â¢","NotSquareSuperset":"â̸","NotSquareSupersetEqual":"â£","NotSubset":"ââ","NotSubsetEqual":"â","NotSucceeds":"â","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"â¡","NotSucceedsTilde":"â¿Ì¸","NotSuperset":"ââ","NotSupersetEqual":"â","NotTilde":"â","NotTildeEqual":"â","NotTildeFullEqual":"â","NotTildeTilde":"â","NotVerticalBar":"â¤","nparallel":"â¦","npar":"â¦","nparsl":"⫽â¥","npart":"â̸","npolint":"â¨","npr":"â","nprcue":"â ","nprec":"â","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"â","nrArr":"â","nrarrw":"â̸","nrightarrow":"â","nRightarrow":"â","nrtri":"â«","nrtrie":"â","nsc":"â","nsccue":"â¡","nsce":"⪰̸","Nscr":"ð©","nscr":"ð","nshortmid":"â¤","nshortparallel":"â¦","nsim":"â","nsime":"â","nsimeq":"â","nsmid":"â¤","nspar":"â¦","nsqsube":"â¢","nsqsupe":"â£","nsub":"â","nsubE":"â«
̸","nsube":"â","nsubset":"ââ","nsubseteq":"â","nsubseteqq":"â«
̸","nsucc":"â","nsucceq":"⪰̸","nsup":"â
","nsupE":"â«Ì¸","nsupe":"â","nsupset":"ââ","nsupseteq":"â","nsupseteqq":"â«Ì¸","ntgl":"â¹","Ntilde":"Ã","ntilde":"ñ","ntlg":"â¸","ntriangleleft":"âª","ntrianglelefteq":"â¬","ntriangleright":"â«","ntrianglerighteq":"â","Nu":"Î","nu":"ν","num":"#","numero":"â","numsp":"â","nvap":"ââ","nvdash":"â¬","nvDash":"â","nVdash":"â®","nVDash":"â¯","nvge":"â¥â","nvgt":">â","nvHarr":"â¤","nvinfin":"â§","nvlArr":"â¤","nvle":"â¤â","nvlt":"<â","nvltrie":"â´â","nvrArr":"â¤","nvrtrie":"âµâ","nvsim":"â¼â","nwarhk":"⤣","nwarr":"â","nwArr":"â","nwarrow":"â","nwnear":"⤧","Oacute":"Ã","oacute":"ó","oast":"â","Ocirc":"Ã","ocirc":"ô","ocir":"â","Ocy":"Ð","ocy":"о","odash":"â","Odblac":"Å","odblac":"Å","odiv":"⨸","odot":"â","odsold":"⦼","OElig":"Å","oelig":"Å","ofcir":"⦿","Ofr":"ð","ofr":"ð¬","ogon":"Ë","Ograve":"Ã","ograve":"ò","ogt":"â§","ohbar":"⦵","ohm":"Ω","oint":"â®","olarr":"âº","olcir":"⦾","olcross":"⦻","oline":"â¾","olt":"â§","Omacr":"Å","omacr":"Å","Omega":"Ω","omega":"Ï","Omicron":"Î","omicron":"ο","omid":"⦶","ominus":"â","Oopf":"ð","oopf":"ð ","opar":"⦷","OpenCurlyDoubleQuote":"â","OpenCurlyQuote":"â","operp":"⦹","oplus":"â","orarr":"â»","Or":"â©","or":"â¨","ord":"â©","order":"â´","orderof":"â´","ordf":"ª","ordm":"º","origof":"â¶","oror":"â©","orslope":"â©","orv":"â©","oS":"â","Oscr":"ðª","oscr":"â´","Oslash":"Ã","oslash":"ø","osol":"â","Otilde":"Ã","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"â","Ouml":"Ã","ouml":"ö","ovbar":"â½","OverBar":"â¾","OverBrace":"â","OverBracket":"â´","OverParenthesis":"â","para":"¶","parallel":"â¥","par":"â¥","parsim":"⫳","parsl":"⫽","part":"â","PartialD":"â","Pcy":"Ð","pcy":"п","percnt":"%","period":".","permil":"â°","perp":"â¥","pertenk":"â±","Pfr":"ð","pfr":"ð","Phi":"Φ","phi":"Ï","phiv":"Ï","phmmat":"â³","phone":"â","Pi":"Î ","pi":"Ï","pitchfork":"â","piv":"Ï","planck":"â","planckh":"â","plankv":"â","plusacir":"⨣","plusb":"â","pluscir":"⨢","plus":"+","plusdo":"â","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"â","pointint":"â¨","popf":"ð¡","Popf":"â","pound":"£","prap":"⪷","Pr":"⪻","pr":"âº","prcue":"â¼","precapprox":"⪷","prec":"âº","preccurlyeq":"â¼","Precedes":"âº","PrecedesEqual":"⪯","PrecedesSlantEqual":"â¼","PrecedesTilde":"â¾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"â¨","pre":"⪯","prE":"⪳","precsim":"â¾","prime":"â²","Prime":"â³","primes":"â","prnap":"⪹","prnE":"⪵","prnsim":"â¨","prod":"â","Product":"â","profalar":"â®","profline":"â","profsurf":"â","prop":"â","Proportional":"â","Proportion":"â·","propto":"â","prsim":"â¾","prurel":"â°","Pscr":"ð«","pscr":"ð
","Psi":"Ψ","psi":"Ï","puncsp":"â","Qfr":"ð","qfr":"ð®","qint":"â¨","qopf":"ð¢","Qopf":"â","qprime":"â","Qscr":"ð¬","qscr":"ð","quaternions":"â","quatint":"â¨","quest":"?","questeq":"â","quot":"\\"","QUOT":"\\"","rAarr":"â","race":"â½Ì±","Racute":"Å","racute":"Å","radic":"â","raemptyv":"⦳","rang":"â©","Rang":"â«","rangd":"â¦","range":"⦥","rangle":"â©","raquo":"»","rarrap":"⥵","rarrb":"â¥","rarrbfs":"⤠","rarrc":"⤳","rarr":"â","Rarr":"â ","rArr":"â","rarrfs":"â¤","rarrhk":"âª","rarrlp":"â¬","rarrpl":"â¥
","rarrsim":"⥴","Rarrtl":"â¤","rarrtl":"â£","rarrw":"â","ratail":"â¤","rAtail":"â¤","ratio":"â¶","rationals":"â","rbarr":"â¤","rBarr":"â¤","RBarr":"â¤","rbbrk":"â³","rbrace":"}","rbrack":"]","rbrke":"â¦","rbrksld":"â¦","rbrkslu":"â¦","Rcaron":"Å","rcaron":"Å","Rcedil":"Å","rcedil":"Å","rceil":"â","rcub":"}","Rcy":"Ð ","rcy":"Ñ","rdca":"⤷","rdldhar":"⥩","rdquo":"â","rdquor":"â","rdsh":"â³","real":"â","realine":"â","realpart":"â","reals":"â","Re":"â","rect":"â","reg":"®","REG":"®","ReverseElement":"â","ReverseEquilibrium":"â","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"â","rfr":"ð¯","Rfr":"â","rHar":"⥤","rhard":"â","rharu":"â","rharul":"⥬","Rho":"Ρ","rho":"Ï","rhov":"ϱ","RightAngleBracket":"â©","RightArrowBar":"â¥","rightarrow":"â","RightArrow":"â","Rightarrow":"â","RightArrowLeftArrow":"â","rightarrowtail":"â£","RightCeiling":"â","RightDoubleBracket":"â§","RightDownTeeVector":"â¥","RightDownVectorBar":"â¥","RightDownVector":"â","RightFloor":"â","rightharpoondown":"â","rightharpoonup":"â","rightleftarrows":"â","rightleftharpoons":"â","rightrightarrows":"â","rightsquigarrow":"â","RightTeeArrow":"â¦","RightTee":"â¢","RightTeeVector":"â¥","rightthreetimes":"â","RightTriangleBar":"â§","RightTriangle":"â³","RightTriangleEqual":"âµ","RightUpDownVector":"â¥","RightUpTeeVector":"â¥","RightUpVectorBar":"â¥","RightUpVector":"â¾","RightVectorBar":"â¥","RightVector":"â","ring":"Ë","risingdotseq":"â","rlarr":"â","rlhar":"â","rlm":"â","rmoustache":"â±","rmoust":"â±","rnmid":"â«®","roang":"â","roarr":"â¾","robrk":"â§","ropar":"â¦","ropf":"ð£","Ropf":"â","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"â¦","rppolint":"â¨","rrarr":"â","Rrightarrow":"â","rsaquo":"âº","rscr":"ð","Rscr":"â","rsh":"â±","Rsh":"â±","rsqb":"]","rsquo":"â","rsquor":"â","rthree":"â","rtimes":"â","rtri":"â¹","rtrie":"âµ","rtrif":"â¸","rtriltri":"â§","RuleDelayed":"â§´","ruluhar":"⥨","rx":"â","Sacute":"Å","sacute":"Å","sbquo":"â","scap":"⪸","Scaron":"Å ","scaron":"Å¡","Sc":"⪼","sc":"â»","sccue":"â½","sce":"⪰","scE":"⪴","Scedil":"Å","scedil":"Å","Scirc":"Å","scirc":"Å","scnap":"⪺","scnE":"⪶","scnsim":"â©","scpolint":"â¨","scsim":"â¿","Scy":"С","scy":"Ñ","sdotb":"â¡","sdot":"â
","sdote":"⩦","searhk":"⤥","searr":"â","seArr":"â","searrow":"â","sect":"§","semi":";","seswar":"⤩","setminus":"â","setmn":"â","sext":"â¶","Sfr":"ð","sfr":"ð°","sfrown":"â¢","sharp":"â¯","SHCHcy":"Щ","shchcy":"Ñ","SHcy":"Ш","shcy":"Ñ","ShortDownArrow":"â","ShortLeftArrow":"â","shortmid":"â£","shortparallel":"â¥","ShortRightArrow":"â","ShortUpArrow":"â","shy":"Â","Sigma":"Σ","sigma":"Ï","sigmaf":"Ï","sigmav":"Ï","sim":"â¼","simdot":"⩪","sime":"â","simeq":"â","simg":"âª","simgE":"⪠","siml":"âª","simlE":"âª","simne":"â","simplus":"⨤","simrarr":"⥲","slarr":"â","SmallCircle":"â","smallsetminus":"â","smashp":"⨳","smeparsl":"⧤","smid":"â£","smile":"â£","smt":"⪪","smte":"⪬","smtes":"⪬ï¸","SOFTcy":"Ь","softcy":"Ñ","solbar":"â¿","solb":"â§","sol":"/","Sopf":"ð","sopf":"ð¤","spades":"â ","spadesuit":"â ","spar":"â¥","sqcap":"â","sqcaps":"âï¸","sqcup":"â","sqcups":"âï¸","Sqrt":"â","sqsub":"â","sqsube":"â","sqsubset":"â","sqsubseteq":"â","sqsup":"â","sqsupe":"â","sqsupset":"â","sqsupseteq":"â","square":"â¡","Square":"â¡","SquareIntersection":"â","SquareSubset":"â","SquareSubsetEqual":"â","SquareSuperset":"â","SquareSupersetEqual":"â","SquareUnion":"â","squarf":"âª","squ":"â¡","squf":"âª","srarr":"â","Sscr":"ð®","sscr":"ð","ssetmn":"â","ssmile":"â£","sstarf":"â","Star":"â","star":"â","starf":"â
","straightepsilon":"ϵ","straightphi":"Ï","strns":"¯","sub":"â","Sub":"â","subdot":"⪽","subE":"â«
","sube":"â","subedot":"â«","submult":"â«","subnE":"â«","subne":"â","subplus":"⪿","subrarr":"⥹","subset":"â","Subset":"â","subseteq":"â","subseteqq":"â«
","SubsetEqual":"â","subsetneq":"â","subsetneqq":"â«","subsim":"â«","subsub":"â«","subsup":"â«","succapprox":"⪸","succ":"â»","succcurlyeq":"â½","Succeeds":"â»","SucceedsEqual":"⪰","SucceedsSlantEqual":"â½","SucceedsTilde":"â¿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"â©","succsim":"â¿","SuchThat":"â","sum":"â","Sum":"â","sung":"âª","sup1":"¹","sup2":"²","sup3":"³","sup":"â","Sup":"â","supdot":"⪾","supdsub":"â«","supE":"â«","supe":"â","supedot":"â«","Superset":"â","SupersetEqual":"â","suphsol":"â","suphsub":"â«","suplarr":"⥻","supmult":"â«","supnE":"â«","supne":"â","supplus":"â«","supset":"â","Supset":"â","supseteq":"â","supseteqq":"â«","supsetneq":"â","supsetneqq":"â«","supsim":"â«","supsub":"â«","supsup":"â«","swarhk":"⤦","swarr":"â","swArr":"â","swarrow":"â","swnwar":"⤪","szlig":"Ã","Tab":"\\t","target":"â","Tau":"Τ","tau":"Ï","tbrk":"â´","Tcaron":"Ť","tcaron":"Å¥","Tcedil":"Å¢","tcedil":"Å£","Tcy":"Т","tcy":"Ñ","tdot":"â","telrec":"â","Tfr":"ð","tfr":"ð±","there4":"â´","therefore":"â´","Therefore":"â´","Theta":"Î","theta":"θ","thetasym":"Ï","thetav":"Ï","thickapprox":"â","thicksim":"â¼","ThickSpace":"ââ","ThinSpace":"â","thinsp":"â","thkap":"â","thksim":"â¼","THORN":"Ã","thorn":"þ","tilde":"Ë","Tilde":"â¼","TildeEqual":"â","TildeFullEqual":"â
","TildeTilde":"â","timesbar":"⨱","timesb":"â ","times":"Ã","timesd":"⨰","tint":"â","toea":"⤨","topbot":"â¶","topcir":"⫱","top":"â¤","Topf":"ð","topf":"ð¥","topfork":"â«","tosa":"⤩","tprime":"â´","trade":"â¢","TRADE":"â¢","triangle":"âµ","triangledown":"â¿","triangleleft":"â","trianglelefteq":"â´","triangleq":"â","triangleright":"â¹","trianglerighteq":"âµ","tridot":"â¬","trie":"â","triminus":"⨺","TripleDot":"â","triplus":"⨹","trisb":"â§","tritime":"⨻","trpezium":"â¢","Tscr":"ð¯","tscr":"ð","TScy":"Ц","tscy":"Ñ","TSHcy":"Ð","tshcy":"Ñ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"â¬","twoheadleftarrow":"â","twoheadrightarrow":"â ","Uacute":"Ã","uacute":"ú","uarr":"â","Uarr":"â","uArr":"â","Uarrocir":"â¥","Ubrcy":"Ð","ubrcy":"Ñ","Ubreve":"Ŭ","ubreve":"Å","Ucirc":"Ã","ucirc":"û","Ucy":"У","ucy":"Ñ","udarr":"â
","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"ð","ufr":"ð²","Ugrave":"Ã","ugrave":"ù","uHar":"⥣","uharl":"â¿","uharr":"â¾","uhblk":"â","ulcorn":"â","ulcorner":"â","ulcrop":"â","ultri":"â¸","Umacr":"Ū","umacr":"Å«","uml":"¨","UnderBar":"_","UnderBrace":"â","UnderBracket":"âµ","UnderParenthesis":"â","Union":"â","UnionPlus":"â","Uogon":"Ų","uogon":"ų","Uopf":"ð","uopf":"ð¦","UpArrowBar":"â¤","uparrow":"â","UpArrow":"â","Uparrow":"â","UpArrowDownArrow":"â
","updownarrow":"â","UpDownArrow":"â","Updownarrow":"â","UpEquilibrium":"⥮","upharpoonleft":"â¿","upharpoonright":"â¾","uplus":"â","UpperLeftArrow":"â","UpperRightArrow":"â","upsi":"Ï
","Upsi":"Ï","upsih":"Ï","Upsilon":"Î¥","upsilon":"Ï
","UpTeeArrow":"â¥","UpTee":"â¥","upuparrows":"â","urcorn":"â","urcorner":"â","urcrop":"â","Uring":"Å®","uring":"ů","urtri":"â¹","Uscr":"ð°","uscr":"ð","utdot":"â°","Utilde":"Ũ","utilde":"Å©","utri":"âµ","utrif":"â´","uuarr":"â","Uuml":"Ã","uuml":"ü","uwangle":"⦧","vangrt":"â¦","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"â
","varphi":"Ï","varpi":"Ï","varpropto":"â","varr":"â","vArr":"â","varrho":"ϱ","varsigma":"Ï","varsubsetneq":"âï¸","varsubsetneqq":"â«ï¸","varsupsetneq":"âï¸","varsupsetneqq":"â«ï¸","vartheta":"Ï","vartriangleleft":"â²","vartriangleright":"â³","vBar":"⫨","Vbar":"â««","vBarv":"â«©","Vcy":"Ð","vcy":"в","vdash":"â¢","vDash":"â¨","Vdash":"â©","VDash":"â«","Vdashl":"⫦","veebar":"â»","vee":"â¨","Vee":"â","veeeq":"â","vellip":"â®","verbar":"|","Verbar":"â","vert":"|","Vert":"â","VerticalBar":"â£","VerticalLine":"|","VerticalSeparator":"â","VerticalTilde":"â","VeryThinSpace":"â","Vfr":"ð","vfr":"ð³","vltri":"â²","vnsub":"ââ","vnsup":"ââ","Vopf":"ð","vopf":"ð§","vprop":"â","vrtri":"â³","Vscr":"ð±","vscr":"ð","vsubnE":"â«ï¸","vsubne":"âï¸","vsupnE":"â«ï¸","vsupne":"âï¸","Vvdash":"âª","vzigzag":"â¦","Wcirc":"Å´","wcirc":"ŵ","wedbar":"â©","wedge":"â§","Wedge":"â","wedgeq":"â","weierp":"â","Wfr":"ð","wfr":"ð´","Wopf":"ð","wopf":"ð¨","wp":"â","wr":"â","wreath":"â","Wscr":"ð²","wscr":"ð","xcap":"â","xcirc":"â¯","xcup":"â","xdtri":"â½","Xfr":"ð","xfr":"ðµ","xharr":"â·","xhArr":"âº","Xi":"Î","xi":"ξ","xlarr":"âµ","xlArr":"â¸","xmap":"â¼","xnis":"â»","xodot":"â¨","Xopf":"ð","xopf":"ð©","xoplus":"â¨","xotime":"â¨","xrarr":"â¶","xrArr":"â¹","Xscr":"ð³","xscr":"ð","xsqcup":"â¨","xuplus":"â¨","xutri":"â³","xvee":"â","xwedge":"â","Yacute":"Ã","yacute":"ý","YAcy":"Я","yacy":"Ñ","Ycirc":"Ŷ","ycirc":"Å·","Ycy":"Ы","ycy":"Ñ","yen":"Â¥","Yfr":"ð","yfr":"ð¶","YIcy":"Ð","yicy":"Ñ","Yopf":"ð","yopf":"ðª","Yscr":"ð´","yscr":"ð","YUcy":"Ю","yucy":"Ñ","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"Ð","zcy":"з","Zdot":"Å»","zdot":"ż","zeetrf":"â¨","ZeroWidthSpace":"â","Zeta":"Î","zeta":"ζ","zfr":"ð·","Zfr":"â¨","ZHcy":"Ð","zhcy":"ж","zigrarr":"â","zopf":"ð«","Zopf":"â¤","Zscr":"ðµ","zscr":"ð","zwj":"â","zwnj":"â"}')
7},106083,(e,t,r)=>{t.exports={Aacute:"Ã",aacute:"á",Acirc:"Ã",acirc:"â",acute:"´",AElig:"Ã",aelig:"æ",Agrave:"Ã",agrave:"à ",amp:"&",AMP:"&",Aring:"Ã
",aring:"Ã¥",Atilde:"Ã",atilde:"ã",Auml:"Ã",auml:"ä",brvbar:"¦",Ccedil:"Ã",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"Ã",eacute:"é",Ecirc:"Ã",ecirc:"ê",Egrave:"Ã",egrave:"è",ETH:"Ã",eth:"ð",Euml:"Ã",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Ã",iacute:"Ã",Icirc:"Ã",icirc:"î",iexcl:"¡",Igrave:"Ã",igrave:"ì",iquest:"¿",Iuml:"Ã",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ã",ntilde:"ñ",Oacute:"Ã",oacute:"ó",Ocirc:"Ã",ocirc:"ô",Ograve:"Ã",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ã",oslash:"ø",Otilde:"Ã",otilde:"õ",Ouml:"Ã",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"Â",sup1:"¹",sup2:"²",sup3:"³",szlig:"Ã",THORN:"Ã",thorn:"þ",times:"Ã",Uacute:"Ã",uacute:"ú",Ucirc:"Ã",ucirc:"û",Ugrave:"Ã",ugrave:"ù",uml:"¨",Uuml:"Ã",uuml:"ü",Yacute:"Ã",yacute:"ý",yen:"Â¥",yuml:"ÿ"}},13286,(e,t,r)=>{t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}},421455,(e,t,r)=>{t.exports=eg;var n=e.r(667857),i=e.r(168208),a=e.r(106083),o=e.r(13286),s=0,l=s++,u=s++,c=s++,d=s++,p=s++,f=s++,m=s++,h=s++,g=s++,v=s++,y=s++,b=s++,x=s++,w=s++,_=s++,k=s++,S=s++,E=s++,T=s++,j=s++,I=s++,C=s++,A=s++,N=s++,O=s++,R=s++,P=s++,D=s++,$=s++,L=s++,M=s++,U=s++,z=s++,F=s++,q=s++,Z=s++,V=s++,B=s++,H=s++,W=s++,G=s++,K=s++,Y=s++,X=s++,J=s++,Q=s++,ee=s++,et=s++,er=s++,en=s++,ei=s++,ea=s++,eo=s++,es=s++,el=s++,eu=0,ec=eu++,ed=eu++,ep=eu++;function ef(e){return" "===e||"\n"===e||" "===e||"\f"===e||"\r"===e}function em(e,t,r){var n=e.toLowerCase();return e===n?function(e){e===n?this._state=t:(this._state=r,this._index--)}:function(i){i===n||i===e?this._state=t:(this._state=r,this._index--)}}function eh(e,t){var r=e.toLowerCase();return function(n){n===r||n===e?this._state=t:(this._state=c,this._index--)}}function eg(e,t){this._state=l,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=l,this._special=ec,this._cbs=t,this._running=!0,this._ended=!1,this._xmlMode=!!(e&&e.xmlMode),this._decodeEntities=!!(e&&e.decodeEntities)}eg.prototype._stateText=function(e){"<"===e?(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._state=u,this._sectionStart=this._index):this._decodeEntities&&this._special===ec&&"&"===e&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=l,this._state=ei,this._sectionStart=this._index)},eg.prototype._stateBeforeTagName=function(e){"/"===e?this._state=p:"<"===e?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):">"===e||this._special!==ec||ef(e)?this._state=l:"!"===e?(this._state=_,this._sectionStart=this._index+1):"?"===e?(this._state=S,this._sectionStart=this._index+1):(this._state=this._xmlMode||"s"!==e&&"S"!==e?c:M,this._sectionStart=this._index)},eg.prototype._stateInTagName=function(e){("/"===e||">"===e||ef(e))&&(this._emitToken("onopentagname"),this._state=h,this._index--)},eg.prototype._stateBeforeCloseingTagName=function(e){ef(e)||(">"===e?this._state=l:this._special!==ec?"s"===e||"S"===e?this._state=U:(this._state=l,this._index--):(this._state=f,this._sectionStart=this._index))},eg.prototype._stateInCloseingTagName=function(e){(">"===e||ef(e))&&(this._emitToken("onclosetag"),this._state=m,this._index--)},eg.prototype._stateAfterCloseingTagName=function(e){">"===e&&(this._state=l,this._sectionStart=this._index+1)},eg.prototype._stateBeforeAttributeName=function(e){">"===e?(this._cbs.onopentagend(),this._state=l,this._sectionStart=this._index+1):"/"===e?this._state=d:ef(e)||(this._state=g,this._sectionStart=this._index)},eg.prototype._stateInSelfClosingTag=function(e){">"===e?(this._cbs.onselfclosingtag(),this._state=l,this._sectionStart=this._index+1):!ef(e)&&(this._state=h,this._index--)},eg.prototype._stateInAttributeName=function(e){("="===e||"/"===e||">"===e||ef(e))&&(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=v,this._index--)},eg.prototype._stateAfterAttributeName=function(e){"="===e?this._state=y:"/"===e||">"===e?(this._cbs.onattribend(),this._state=h,this._index--):ef(e)||(this._cbs.onattribend(),this._state=g,this._sectionStart=this._index)},eg.prototype._stateBeforeAttributeValue=function(e){'"'===e?(this._state=b,this._sectionStart=this._index+1):"'"===e?(this._state=x,this._sectionStart=this._index+1):!ef(e)&&(this._state=w,this._sectionStart=this._index,this._index--)},eg.prototype._stateInAttributeValueDoubleQuotes=function(e){'"'===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=h):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=ei,this._sectionStart=this._index)},eg.prototype._stateInAttributeValueSingleQuotes=function(e){"'"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=h):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=ei,this._sectionStart=this._index)},eg.prototype._stateInAttributeValueNoQuotes=function(e){ef(e)||">"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=h,this._index--):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=ei,this._sectionStart=this._index)},eg.prototype._stateBeforeDeclaration=function(e){this._state="["===e?C:"-"===e?E:k},eg.prototype._stateInDeclaration=function(e){">"===e&&(this._cbs.ondeclaration(this._getSection()),this._state=l,this._sectionStart=this._index+1)},eg.prototype._stateInProcessingInstruction=function(e){">"===e&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=l,this._sectionStart=this._index+1)},eg.prototype._stateBeforeComment=function(e){"-"===e?(this._state=T,this._sectionStart=this._index+1):this._state=k},eg.prototype._stateInComment=function(e){"-"===e&&(this._state=j)},eg.prototype._stateAfterComment1=function(e){"-"===e?this._state=I:this._state=T},eg.prototype._stateAfterComment2=function(e){">"===e?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=l,this._sectionStart=this._index+1):"-"!==e&&(this._state=T)},eg.prototype._stateBeforeCdata1=em("C",A,k),eg.prototype._stateBeforeCdata2=em("D",N,k),eg.prototype._stateBeforeCdata3=em("A",O,k),eg.prototype._stateBeforeCdata4=em("T",R,k),eg.prototype._stateBeforeCdata5=em("A",P,k),eg.prototype._stateBeforeCdata6=function(e){"["===e?(this._state=D,this._sectionStart=this._index+1):(this._state=k,this._index--)},eg.prototype._stateInCdata=function(e){"]"===e&&(this._state=$)},eg.prototype._stateAfterCdata1=function(e){"]"===e?this._state=L:this._state=D},eg.prototype._stateAfterCdata2=function(e){">"===e?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=l,this._sectionStart=this._index+1):"]"!==e&&(this._state=D)},eg.prototype._stateBeforeSpecial=function(e){"c"===e||"C"===e?this._state=z:"t"===e||"T"===e?this._state=Y:(this._state=c,this._index--)},eg.prototype._stateBeforeSpecialEnd=function(e){this._special===ed&&("c"===e||"C"===e)?this._state=B:this._special===ep&&("t"===e||"T"===e)?this._state=ee:this._state=l},eg.prototype._stateBeforeScript1=eh("R",F),eg.prototype._stateBeforeScript2=eh("I",q),eg.prototype._stateBeforeScript3=eh("P",Z),eg.prototype._stateBeforeScript4=eh("T",V),eg.prototype._stateBeforeScript5=function(e){("/"===e||">"===e||ef(e))&&(this._special=ed),this._state=c,this._index--},eg.prototype._stateAfterScript1=em("R",H,l),eg.prototype._stateAfterScript2=em("I",W,l),eg.prototype._stateAfterScript3=em("P",G,l),eg.prototype._stateAfterScript4=em("T",K,l),eg.prototype._stateAfterScript5=function(e){">"===e||ef(e)?(this._special=ec,this._state=f,this._sectionStart=this._index-6,this._index--):this._state=l},eg.prototype._stateBeforeStyle1=eh("Y",X),eg.prototype._stateBeforeStyle2=eh("L",J),eg.prototype._stateBeforeStyle3=eh("E",Q),eg.prototype._stateBeforeStyle4=function(e){("/"===e||">"===e||ef(e))&&(this._special=ep),this._state=c,this._index--},eg.prototype._stateAfterStyle1=em("Y",et,l),eg.prototype._stateAfterStyle2=em("L",er,l),eg.prototype._stateAfterStyle3=em("E",en,l),eg.prototype._stateAfterStyle4=function(e){">"===e||ef(e)?(this._special=ec,this._state=f,this._sectionStart=this._index-5,this._index--):this._state=l},eg.prototype._stateBeforeEntity=em("#",ea,eo),eg.prototype._stateBeforeNumericEntity=em("X",el,es),eg.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+1<this._index){var e=this._buffer.substring(this._sectionStart+1,this._index),t=this._xmlMode?o:i;t.hasOwnProperty(e)&&(this._emitPartial(t[e]),this._sectionStart=this._index+1)}},eg.prototype._parseLegacyEntity=function(){var e=this._sectionStart+1,t=this._index-e;for(t>6&&(t=6);t>=2;){var r=this._buffer.substr(e,t);if(a.hasOwnProperty(r)){this._emitPartial(a[r]),this._sectionStart+=t+1;return}t--}},eg.prototype._stateInNamedEntity=function(e){";"===e?(this._parseNamedEntityStrict(),this._sectionStart+1<this._index&&!this._xmlMode&&this._parseLegacyEntity(),this._state=this._baseState):(e<"a"||e>"z")&&(e<"A"||e>"Z")&&(e<"0"||e>"9")&&(this._xmlMode||this._sectionStart+1===this._index||(this._baseState!==l?"="!==e&&this._parseNamedEntityStrict():this._parseLegacyEntity()),this._state=this._baseState,this._index--)},eg.prototype._decodeNumericEntity=function(e,t){var r=this._sectionStart+e;if(r!==this._index){var i=parseInt(this._buffer.substring(r,this._index),t);this._emitPartial(n(i)),this._sectionStart=this._index}else this._sectionStart--;this._state=this._baseState},eg.prototype._stateInNumericEntity=function(e){";"===e?(this._decodeNumericEntity(2,10),this._sectionStart++):(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(2,10),this._index--)},eg.prototype._stateInHexEntity=function(e){";"===e?(this._decodeNumericEntity(3,16),this._sectionStart++):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(3,16),this._index--)},eg.prototype._cleanup=function(){this._sectionStart<0?(this._buffer="",this._bufferOffset+=this._index,this._index=0):this._running&&(this._state===l?(this._sectionStart!==this._index&&this._cbs.ontext(this._buffer.substr(this._sectionStart)),this._buffer="",this._bufferOffset+=this._index,this._index=0):this._sectionStart===this._index?(this._buffer="",this._bufferOffset+=this._index,this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-=this._sectionStart,this._bufferOffset+=this._sectionStart),this._sectionStart=0)}
7,eg.prototype.write=function(e){this._ended&&this._cbs.onerror(Error(".write() after done!")),this._buffer+=e,this._parse()},eg.prototype._parse=function(){for(;this._index<this._buffer.length&&this._running;){var e=this._buffer.charAt(this._index);this._state===l?this._stateText(e):this._state===u?this._stateBeforeTagName(e):this._state===c?this._stateInTagName(e):this._state===p?this._stateBeforeCloseingTagName(e):this._state===f?this._stateInCloseingTagName(e):this._state===m?this._stateAfterCloseingTagName(e):this._state===d?this._stateInSelfClosingTag(e):this._state===h?this._stateBeforeAttributeName(e):this._state===g?this._stateInAttributeName(e):this._state===v?this._stateAfterAttributeName(e):this._state===y?this._stateBeforeAttributeValue(e):this._state===b?this._stateInAttributeValueDoubleQuotes(e):this._state===x?this._stateInAttributeValueSingleQuotes(e):this._state===w?this._stateInAttributeValueNoQuotes(e):this._state===_?this._stateBeforeDeclaration(e):this._state===k?this._stateInDeclaration(e):this._state===S?this._stateInProcessingInstruction(e):this._state===E?this._stateBeforeComment(e):this._state===T?this._stateInComment(e):this._state===j?this._stateAfterComment1(e):this._state===I?this._stateAfterComment2(e):this._state===C?this._stateBeforeCdata1(e):this._state===A?this._stateBeforeCdata2(e):this._state===N?this._stateBeforeCdata3(e):this._state===O?this._stateBeforeCdata4(e):this._state===R?this._stateBeforeCdata5(e):this._state===P?this._stateBeforeCdata6(e):this._state===D?this._stateInCdata(e):this._state===$?this._stateAfterCdata1(e):this._state===L?this._stateAfterCdata2(e):this._state===M?this._stateBeforeSpecial(e):this._state===U?this._stateBeforeSpecialEnd(e):this._state===z?this._stateBeforeScript1(e):this._state===F?this._stateBeforeScript2(e):this._state===q?this._stateBeforeScript3(e):this._state===Z?this._stateBeforeScript4(e):this._state===V?this._stateBeforeScript5(e):this._state===B?this._stateAfterScript1(e):this._state===H?this._stateAfterScript2(e):this._state===W?this._stateAfterScript3(e):this._state===G?this._stateAfterScript4(e):this._state===K?this._stateAfterScript5(e):this._state===Y?this._stateBeforeStyle1(e):this._state===X?this._stateBeforeStyle2(e):this._state===J?this._stateBeforeStyle3(e):this._state===Q?this._stateBeforeStyle4(e):this._state===ee?this._stateAfterStyle1(e):this._state===et?this._stateAfterStyle2(e):this._state===er?this._stateAfterStyle3(e):this._state===en?this._stateAfterStyle4(e):this._state===ei?this._stateBeforeEntity(e):this._state===ea?this._stateBeforeNumericEntity(e):this._state===eo?this._stateInNamedEntity(e):this._state===es?this._stateInNumericEntity(e):this._state===el?this._stateInHexEntity(e):this._cbs.onerror(Error("unknown _state"),this._state),this._index++}this._cleanup()},eg.prototype.pause=function(){this._running=!1},eg.prototype.resume=function(){this._running=!0,this._index<this._buffer.length&&this._parse(),this._ended&&this._finish()},eg.prototype.end=function(e){this._ended&&this._cbs.onerror(Error(".end() after done!")),e&&this.write(e),this._ended=!0,this._running&&this._finish()},eg.prototype._finish=function(){this._sectionStart<this._index&&this._handleTrailingData(),this._cbs.onend()},eg.prototype._handleTrailingData=function(){var e=this._buffer.substr(this._sectionStart);this._state===D||this._state===$||this._state===L?this._cbs.oncdata(e):this._state===T||this._state===j||this._state===I?this._cbs.oncomment(e):this._state!==eo||this._xmlMode?this._state!==es||this._xmlMode?this._state!==el||this._xmlMode?this._state!==c&&this._state!==h&&this._state!==y&&this._state!==v&&this._state!==g&&this._state!==x&&this._state!==b&&this._state!==w&&this._state!==f&&this._cbs.ontext(e):(this._decodeNumericEntity(3,16),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._decodeNumericEntity(2,10),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._parseLegacyEntity(),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData()))},eg.prototype.reset=function(){eg.call(this,{xmlMode:this._xmlMode,decodeEntities:this._decodeEntities},this._cbs)},eg.prototype.getAbsoluteIndex=function(){return this._bufferOffset+this._index},eg.prototype._getSection=function(){return this._buffer.substring(this._sectionStart,this._index)},eg.prototype._emitToken=function(e){this._cbs[e](this._getSection()),this._sectionStart=-1},eg.prototype._emitPartial=function(e){this._baseState!==l?this._cbs.onattribdata(e):this._cbs.ontext(e)}},5815,(e,t,r)=>{t.exports={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag",CDATA:"cdata",Doctype:"doctype",isTag:function(e){return"tag"===e.type||"script"===e.type||"style"===e.type}}},874874,(e,t,r)=>{var n=t.exports={get firstChild(){var i=this.children;return i&&i[0]||null},get lastChild(){var a=this.children;return a&&a[a.length-1]||null},get nodeType(){return s[this.type]||s.element}},o={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"},s={element:1,text:3,cdata:4,comment:8};
7Object.keys(o).forEach(function(e){var t=o[e];Object.defineProperty(n,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}})})},790325,(e,t,r)=>{var n=t.exports=Object.create(e.r(874874)),i={tagName:"name"};Object.keys(i).forEach(function(e){var t=i[e];Object.defineProperty(n,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}})})},128616,(e,t,r)=>{var n=e.r(5815),i=/\s+/g,a=e.r(874874),o=e.r(790325);function s(e,t,r){"object"==typeof e?(r=t,t=e,e=null):"function"==typeof t&&(r=t,t=l),this._callback=e,this._options=t||l,this._elementCB=r,this.dom=[],this._done=!1,this._tagStack=[],this._parser=this._parser||null}var l={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1};s.prototype.onparserinit=function(e){this._parser=e},s.prototype.onreset=function(){s.call(this,this._callback,this._options,this._elementCB)},s.prototype.onend=function(){this._done||(this._done=!0,this._parser=null,this._handleCallback(null))},s.prototype._handleCallback=s.prototype.onerror=function(e){if("function"==typeof this._callback)this._callback(e,this.dom);else if(e)throw e},s.prototype.onclosetag=function(){var e=this._tagStack.pop();this._options.withEndIndices&&e&&(e.endIndex=this._parser.endIndex),this._elementCB&&this._elementCB(e)},s.prototype._createDomElement=function(e){var t;if(!this._options.withDomLvl1)return e;for(var r in t="tag"===e.type?Object.create(o):Object.create(a),e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t},s.prototype._addDomElement=function(e){var t=this._tagStack[this._tagStack.length-1],r=t?t.children:this.dom,n=r[r.length-1];e.next=null,this._options.withStartIndices&&(e.startIndex=this._parser.startIndex),this._options.withEndIndices&&(e.endIndex=this._parser.endIndex),n?(e.prev=n,n.next=e):e.prev=null,r.push(e),e.parent=t||null},s.prototype.onopentag=function(e,t){var r={type:"script"===e?n.Script:"style"===e?n.Style:n.Tag,name:e,attribs:t,children:[]},i=this._createDomElement(r);this._addDomElement(i),this._tagStack.push(i)},s.prototype.ontext=function(e){var t,r=this._options.normalizeWhitespace||this._options.ignoreWhitespace;if(!this._tagStack.length&&this.dom.length&&(t=this.dom[this.dom.length-1]).type===n.Text)r?t.data=(t.data+e).replace(i," "):t.data+=e;else if(this._tagStack.length&&(t=this._tagStack[this._tagStack.length-1])&&(t=t.children[t.children.length-1])&&t.type===n.Text)r?t.data=(t.data+e).replace(i," "):t.data+=e;else{r&&(e=e.replace(i," "));var a=this._createDomElement({data:e,type:n.Text});this._addDomElement(a)}},s.prototype.oncomment=function(e){var t=this._tagStack[this._tagStack.length-1];if(t&&t.type===n.Comment){t.data+=e;return}var r={data:e,type:n.Comment},i=this._createDomElement(r);this._addDomElement(i),this._tagStack.push(i)},s.prototype.oncdatastart=function(){var e={children:[{data:"",type:n.Text}],type:n.CDATA},t=this._createDomElement(e);this._addDomElement(t),this._tagStack.push(t)},s.prototype.oncommentend=s.prototype.oncdataend=function(){this._tagStack.pop()},s.prototype.onprocessinginstruction=function(e,t){var r=this._createDomElement({name:e,data:t,type:n.Directive});this._addDomElement(r)},t.exports=s},165129,(e,t,r)=>{"use strict";var n,i;Object.defineProperty(r,"__esModule",{value:!0}),r.Doctype=r.CDATA=r.Tag=r.Style=r.Script=r.Comment=r.Directive=r.Text=r.Root=r.isTag=r.ElementType=void 0,(i=n=r.ElementType||(r.ElementType={})).Root="root",i.Text="text",i.Directive="directive",i.Comment="comment",i.Script="script",i.Style="style",i.Tag="tag",i.CDATA="cdata",i.Doctype="doctype",r.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},r.Root=n.Root,r.Text=n.Text,r.Directive=n.Directive,r.Comment=n.Comment,r.Script=n.Script,r.Style=n.Style,r.Tag=n.Tag,r.CDATA=n.CDATA,r.Doctype=n.Doctype},486023,(e,t,r)=>{t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}},96808,(e,t,r)=>{t
vendor: 12,333 bytes, line 7
7.exports=JSON.parse('{"Aacute":"Ã","aacute":"á","Abreve":"Ä","abreve":"Ä","ac":"â¾","acd":"â¿","acE":"â¾Ì³","Acirc":"Ã","acirc":"â","acute":"´","Acy":"Ð","acy":"а","AElig":"Ã","aelig":"æ","af":"â¡","Afr":"ð","afr":"ð","Agrave":"Ã","agrave":"à ","alefsym":"âµ","aleph":"âµ","Alpha":"Î","alpha":"α","Amacr":"Ä","amacr":"Ä","amalg":"⨿","amp":"&","AMP":"&","andand":"â©","And":"â©","and":"â§","andd":"â©","andslope":"â©","andv":"â©","ang":"â ","ange":"⦤","angle":"â ","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"â¦","angmsdag":"⦮","angmsdah":"⦯","angmsd":"â¡","angrt":"â","angrtvb":"â¾","angrtvbd":"â¦","angsph":"â¢","angst":"Ã
","angzarr":"â¼","Aogon":"Ä","aogon":"Ä
","Aopf":"ð¸","aopf":"ð","apacir":"⩯","ap":"â","apE":"â©°","ape":"â","apid":"â","apos":"\'","ApplyFunction":"â¡","approx":"â","approxeq":"â","Aring":"Ã
","aring":"Ã¥","Ascr":"ð","ascr":"ð¶","Assign":"â","ast":"*","asymp":"â","asympeq":"â","Atilde":"Ã","atilde":"ã","Auml":"Ã","auml":"ä","awconint":"â³","awint":"â¨","backcong":"â","backepsilon":"϶","backprime":"âµ","backsim":"â½","backsimeq":"â","Backslash":"â","Barv":"â«§","barvee":"â½","barwed":"â
","Barwed":"â","barwedge":"â
","bbrk":"âµ","bbrktbrk":"â¶","bcong":"â","Bcy":"Ð","bcy":"б","bdquo":"â","becaus":"âµ","because":"âµ","Because":"âµ","bemptyv":"⦰","bepsi":"϶","bernou":"â¬","Bernoullis":"â¬","Beta":"Î","beta":"β","beth":"â¶","between":"â¬","Bfr":"ð
","bfr":"ð","bigcap":"â","bigcirc":"â¯","bigcup":"â","bigodot":"â¨","bigoplus":"â¨","bigotimes":"â¨","bigsqcup":"â¨","bigstar":"â
","bigtriangledown":"â½","bigtriangleup":"â³","biguplus":"â¨","bigvee":"â","bigwedge":"â","bkarow":"â¤","blacklozenge":"â§«","blacksquare":"âª","blacktriangle":"â´","blacktriangledown":"â¾","blacktriangleleft":"â","blacktriangleright":"â¸","blank":"â£","blk12":"â","blk14":"â","blk34":"â","block":"â","bne":"=â¥","bnequiv":"â¡â¥","bNot":"â«","bnot":"â","Bopf":"ð¹","bopf":"ð","bot":"â¥","bottom":"â¥","bowtie":"â","boxbox":"â§","boxdl":"â","boxdL":"â","boxDl":"â","boxDL":"â","boxdr":"â","boxdR":"â","boxDr":"â","boxDR":"â","boxh":"â","boxH":"â","boxhd":"â¬","boxHd":"â¤","boxhD":"â¥","boxHD":"â¦","boxhu":"â´","boxHu":"â§","boxhU":"â¨","boxHU":"â©","boxminus":"â","boxplus":"â","boxtimes":"â ","boxul":"â","boxuL":"â","boxUl":"â","boxUL":"â","boxur":"â","boxuR":"â","boxUr":"â","boxUR":"â","boxv":"â","boxV":"â","boxvh":"â¼","boxvH":"âª","boxVh":"â«","boxVH":"â¬","boxvl":"â¤","boxvL":"â¡","boxVl":"â¢","boxVL":"â£","boxvr":"â","boxvR":"â","boxVr":"â","boxVR":"â ","bprime":"âµ","breve":"Ë","Breve":"Ë","brvbar":"¦","bscr":"ð·","Bscr":"â¬","bsemi":"â","bsim":"â½","bsime":"â","bsolb":"â§
","bsol":"\\\\","bsolhsub":"â","bull":"â¢","bullet":"â¢","bump":"â","bumpE":"⪮","bumpe":"â","Bumpeq":"â","bumpeq":"â","Cacute":"Ä","cacute":"Ä","capand":"â©","capbrcup":"â©","capcap":"â©","cap":"â©","Cap":"â","capcup":"â©","capdot":"â©","CapitalDifferentialD":"â
","caps":"â©ï¸","caret":"â","caron":"Ë","Cayleys":"â","ccaps":"â©","Ccaron":"Ä","ccaron":"Ä","Ccedil":"Ã","ccedil":"ç","Ccirc":"Ä","ccirc":"Ä","Cconint":"â°","ccups":"â©","ccupssm":"â©","Cdot":"Ä","cdot":"Ä","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"ð ","Cfr":"â","CHcy":"Ч","chcy":"Ñ","check":"â","checkmark":"â","Chi":"Χ","chi":"Ï","circ":"Ë","circeq":"â","circlearrowleft":"âº","circlearrowright":"â»","circledast":"â","circledcirc":"â","circleddash":"â","CircleDot":"â","circledR":"®","circledS":"â","CircleMinus":"â","CirclePlus":"â","CircleTimes":"â","cir":"â","cirE":"â§","cire":"â","cirfnint":"â¨","cirmid":"⫯","cirscir":"â§","ClockwiseContourIntegral":"â²","CloseCurlyDoubleQuote":"â","CloseCurlyQuote":"â","clubs":"â£","clubsuit":"â£","colon":":","Colon":"â·","Colone":"â©´","colone":"â","coloneq":"â","comma":",","commat":"@","comp":"â","compfn":"â","complement":"â","complexes":"â","cong":"â
","congdot":"â©","Congruent":"â¡","conint":"â®","Conint":"â¯","ContourIntegral":"â®","copf":"ð","Copf":"â","coprod":"â","Coproduct":"â","copy":"©","COPY":"©","copysr":"â","CounterClockwiseContourIntegral":"â³","crarr":"âµ","cross":"â","Cross":"⨯","Cscr":"ð","cscr":"ð¸","csub":"â«","csube":"â«","csup":"â«","csupe":"â«","ctdot":"â¯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"â","cuesc":"â","cularr":"â¶","cularrp":"⤽","cupbrcap":"â©","cupcap":"â©","CupCap":"â","cup":"âª","Cup":"â","cupcup":"â©","cupdot":"â","cupor":"â©
","cups":"âªï¸","curarr":"â·","curarrm":"⤼","curlyeqprec":"â","curlyeqsucc":"â","curlyvee":"â","curlywedge":"â","curren":"¤","curvearrowleft":"â¶","curvearrowright":"â·","cuvee":"â","cuwed":"â","cwconint":"â²","cwint":"â±","cylcty":"â","dagger":"â ","Dagger":"â¡","daleth":"â¸","darr":"â","Darr":"â¡","dArr":"â","dash":"â","Dashv":"⫤","dashv":"â£","dbkarow":"â¤","dblac":"Ë","Dcaron":"Ä","dcaron":"Ä","Dcy":"Ð","dcy":"д","ddagger":"â¡","ddarr":"â","DD":"â
","dd":"â
","DDotrahd":"â¤","ddotseq":"â©·","deg":"°","Del":"â","Delta":"Î","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"ð","dfr":"ð¡","dHar":"⥥","dharl":"â","dharr":"â","DiacriticalAcute":"´","DiacriticalDot":"Ë","DiacriticalDoubleAcute":"Ë","DiacriticalGrave":"`","DiacriticalTilde":"Ë","diam":"â","diamond":"â","Diamond":"â","diamondsuit":"â¦","diams":"â¦","die":"¨","DifferentialD":"â
","digamma":"Ï","disin":"â²","div":"÷","divide":"÷","divideontimes":"â","divonx":"â","DJcy":"Ð","djcy":"Ñ","dlcorn":"â","dlcrop":"â","dollar":"$","Dopf":"ð»","dopf":"ð","Dot":"¨","dot":"Ë","DotDot":"â","doteq":"â","doteqdot":"â","DotEqual":"â","dotminus":"â¸","dotplus":"â","dotsquare":"â¡","doublebarwedge":"â","DoubleContourIntegral":"â¯","DoubleDot":"¨","DoubleDownArrow":"â","DoubleLeftArrow":"â","DoubleLeftRightArrow":"â","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"â¸","DoubleLongLeftRightArrow":"âº","DoubleLongRightArrow":"â¹","DoubleRightArrow":"â","DoubleRightTee":"â¨","DoubleUpArrow":"â","DoubleUpDownArrow":"â","DoubleVerticalBar":"â¥","DownArrowBar":"â¤","downarrow":"â","DownArrow":"â","Downarrow":"â","DownArrowUpArrow":"âµ","DownBreve":"Ì","downdownarrows":"â","downharpoonleft":"â","downharpoonright":"â","DownLeftRightVector":"â¥","DownLeftTeeVector":"â¥","DownLeftVectorBar":"â¥","DownLeftVector":"â½","DownRightTeeVector":"â¥","DownRightVectorBar":"â¥","DownRightVector":"â","DownTeeArrow":"â§","DownTee":"â¤","drbkarow":"â¤","drcorn":"â","drcrop":"â","Dscr":"ð","dscr":"ð¹","DScy":"Ð
","dscy":"Ñ","dsol":"â§¶","Dstrok":"Ä","dstrok":"Ä","dtdot":"â±","dtri":"â¿","dtrif":"â¾","duarr":"âµ","duhar":"⥯","dwangle":"⦦","DZcy":"Ð","dzcy":"Ñ","dzigrarr":"â¿","Eacute":"Ã","eacute":"é","easter":"â©®","Ecaron":"Ä","ecaron":"Ä","Ecirc":"Ã","ecirc":"ê","ecir":"â","ecolon":"â","Ecy":"Ð","ecy":"Ñ","eDDot":"â©·","Edot":"Ä","edot":"Ä","eDot":"â","ee":"â
","efDot":"â","Efr":"ð","efr":"ð¢","eg":"âª","Egrave":"Ã","egrave":"è","egs":"âª","egsdot":"âª","el":"âª","Element":"â","elinters":"â§","ell":"â","els":"âª","elsdot":"âª","Emacr":"Ä","emacr":"Ä","empty":"â
","emptyset":"â
","EmptySmallSquare":"â»","emptyv":"â
","EmptyVerySmallSquare":"â«","emsp13":"â","emsp14":"â
","emsp":"â","ENG":"Å","eng":"Å","ensp":"â","Eogon":"Ä","eogon":"Ä","Eopf":"ð¼","eopf":"ð","epar":"â","eparsl":"â§£","eplus":"⩱","epsi":"ε","Epsilon":"Î","epsilon":"ε","epsiv":"ϵ","eqcirc":"â","eqcolon":"â","eqsim":"â","eqslantgtr":"âª","eqslantless":"âª","Equal":"⩵","equals":"=","EqualTilde":"â","equest":"â","Equilibrium":"â","equiv":"â¡","equivDD":"⩸","eqvparsl":"â§¥","erarr":"⥱","erDot":"â","escr":"â¯","Escr":"â°","esdot":"â","Esim":"⩳","esim":"â","Eta":"Î","eta":"η","ETH":"Ã","eth":"ð","Euml":"Ã","euml":"ë","euro":"â¬","excl":"!","exist":"â","Exists":"â","expectation":"â°","exponentiale":"â
","ExponentialE":"â
","fallingdotseq":"â","Fcy":"Ф","fcy":"Ñ","female":"â","ffilig":"ï¬","fflig":"ï¬","ffllig":"ï¬","Ffr":"ð","ffr":"ð£","filig":"ï¬","FilledSmallSquare":"â¼","FilledVerySmallSquare":"âª","fjlig":"fj","flat":"â","fllig":"ï¬","fltns":"â±","fnof":"Æ","Fopf":"ð½","fopf":"ð","forall":"â","ForAll":"â","fork":"â","forkv":"â«","Fouriertrf":"â±","fpartint":"â¨","frac12":"½","frac13":"â
","frac14":"¼","frac15":"â
","frac16":"â
","frac18":"â
","frac23":"â
","frac25":"â
","frac34":"¾","frac35":"â
","frac38":"â
","frac45":"â
","frac56":"â
","frac58":"â
","frac78":"â
","frasl":"â","frown":"â¢","fscr":"ð»","Fscr":"â±","gacute":"ǵ","Gamma":"Î","gamma":"γ","Gammad":"Ï","gammad":"Ï","gap":"âª","Gbreve":"Ä","gbreve":"Ä","Gcedil":"Ä¢","Gcirc":"Ä","gcirc":"Ä","Gcy":"Ð","gcy":"г","Gdot":"Ä ","gdot":"Ä¡","ge":"â¥","gE":"â§","gEl":"âª","gel":"â","geq":"â¥","geqq":"â§","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"âª","gesdoto":"âª","gesdotol":"âª","gesl":"âï¸","gesles":"âª","Gfr":"ð","gfr":"ð¤","gg":"â«","Gg":"â","ggg":"â","gimel":"â·","GJcy":"Ð","gjcy":"Ñ","gla":"⪥","gl":"â·","glE":"âª","glj":"⪤","gnap":"âª","gnapprox":"âª","gne":"âª","gnE":"â©","gneq":"âª","gneqq":"â©","gnsim":"â§","Gopf":"ð¾","gopf":"ð","grave":"`","GreaterEqual":"â¥","GreaterEqualLess":"â","GreaterFullEqual":"â§","GreaterGreater":"⪢","GreaterLess":"â·","GreaterSlantEqual":"⩾","GreaterTilde":"â³","Gscr":"ð¢","gscr":"â","gsim":"â³","gsime":"âª","gsiml":"âª","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"â«","gtdot":"â","gtlPar":"â¦","gtquest":"⩼","gtrapprox":"âª","gtrarr":"⥸","gtrdot":"â","gtreqless":"â","gtreqqless":"âª","gtrless":"â·","gtrsim":"â³","gvertneqq":"â©ï¸","gvnE":"â©ï¸","Hacek":"Ë","hairsp":"â","half":"½","hamilt":"â","HARDcy":"Ъ","hardcy":"Ñ","harrcir":"â¥","harr":"â","hArr":"â","harrw":"â","Hat":"^","hbar":"â","Hcirc":"Ĥ","hcirc":"Ä¥","hearts":"â¥","heartsuit":"â¥","hellip":"â¦","hercon":"â¹","hfr":"ð¥","Hfr":"â","HilbertSpace":"â","hksearow":"⤥","hkswarow":"⤦","hoarr":"â¿","homtht":"â»","hookleftarrow":"â©","hookrightarrow":"âª","hopf":"ð","Hopf":"â","horbar":"â","HorizontalLine":"â","hscr":"ð½","Hscr":"â","hslash":"â","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"â","HumpEqual":"â","hybull":"â","hyphen":"â","Iacute":"Ã","iacute":"Ã","ic":"â£","Icirc":"Ã","icirc":"î","Icy":"Ð","icy":"и","Idot":"İ","IEcy":"Ð","iecy":"е","iexcl":"¡","iff":"â","ifr":"ð¦","Ifr":"â","Igrave":"Ã","igrave":"ì","ii":"â
","iiiint":"â¨","iiint":"â","iinfin":"â§","iiota":"â©","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"Ä«","image":"â","ImaginaryI":"â
","imagline":"â","imagpart":"â","imath":"ı","Im":"â","imof":"â·","imped":"Ƶ","Implies":"â","incare":"â
","in":"â","infin":"â","infintie":"â§","inodot":"ı","intcal":"âº","int":"â«","Int":"â¬","integers":"â¤","Integral":"â«","intercal":"âº","Intersection":"â","intlarhk":"â¨","intprod":"⨼","InvisibleComma":"â£","InvisibleTimes":"â¢","IOcy":"Ð","iocy":"Ñ","Iogon":"Ä®","iogon":"į","Iopf":"ð","iopf":"ð","Iota":"Î","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"ð¾","Iscr":"â","isin":"â","isindot":"âµ","isinE":"â¹","isins":"â´","isinsv":"â³","isinv":"â","it":"â¢","Itilde":"Ĩ","itilde":"Ä©","Iukcy":"Ð","iukcy":"Ñ","Iuml":"Ã","iuml":"ï","Jcirc":"Ä´","jcirc":"ĵ","Jcy":"Ð","jcy":"й","Jfr":"ð","jfr":"ð§","jmath":"È·","Jopf":"ð","jopf":"ð","Jscr":"ð¥","jscr":"ð¿","Jsercy":"Ð","jsercy":"Ñ","Jukcy":"Ð","jukcy":"Ñ","Kappa":"Î","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"Ä·","Kcy":"Ð","kcy":"к","Kfr":"ð","kfr":"ð¨","kgreen":"ĸ","KHcy":"Ð¥","khcy":"Ñ
","KJcy":"Ð","kjcy":"Ñ","Kopf":"ð","kopf":"ð","Kscr":"ð¦","kscr":"ð","lAarr":"â","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"â","
vendor: 20,673 bytes, line 7
7Lambda":"Î","lambda":"λ","lang":"â¨","Lang":"âª","langd":"â¦","langle":"â¨","lap":"âª
","Laplacetrf":"â","laquo":"«","larrb":"â¤","larrbfs":"â¤","larr":"â","Larr":"â","lArr":"â","larrfs":"â¤","larrhk":"â©","larrlp":"â«","larrpl":"⤹","larrsim":"⥳","larrtl":"â¢","latail":"â¤","lAtail":"â¤","lat":"⪫","late":"âª","lates":"âªï¸","lbarr":"â¤","lBarr":"â¤","lbbrk":"â²","lbrace":"{","lbrack":"[","lbrke":"â¦","lbrksld":"â¦","lbrkslu":"â¦","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ä»","lcedil":"ļ","lceil":"â","lcub":"{","Lcy":"Ð","lcy":"л","ldca":"⤶","ldquo":"â","ldquor":"â","ldrdhar":"⥧","ldrushar":"â¥","ldsh":"â²","le":"â¤","lE":"â¦","LeftAngleBracket":"â¨","LeftArrowBar":"â¤","leftarrow":"â","LeftArrow":"â","Leftarrow":"â","LeftArrowRightArrow":"â","leftarrowtail":"â¢","LeftCeiling":"â","LeftDoubleBracket":"â¦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"â¥","LeftDownVector":"â","LeftFloor":"â","leftharpoondown":"â½","leftharpoonup":"â¼","leftleftarrows":"â","leftrightarrow":"â","LeftRightArrow":"â","Leftrightarrow":"â","leftrightarrows":"â","leftrightharpoons":"â","leftrightsquigarrow":"â","LeftRightVector":"â¥","LeftTeeArrow":"â¤","LeftTee":"â£","LeftTeeVector":"â¥","leftthreetimes":"â","LeftTriangleBar":"â§","LeftTriangle":"â²","LeftTriangleEqual":"â´","LeftUpDownVector":"â¥","LeftUpTeeVector":"⥠","LeftUpVectorBar":"â¥","LeftUpVector":"â¿","LeftVectorBar":"â¥","LeftVector":"â¼","lEg":"âª","leg":"â","leq":"â¤","leqq":"â¦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"â©¿","lesdoto":"âª","lesdotor":"âª","lesg":"âï¸","lesges":"âª","lessapprox":"âª
","lessdot":"â","lesseqgtr":"â","lesseqqgtr":"âª","LessEqualGreater":"â","LessFullEqual":"â¦","LessGreater":"â¶","lessgtr":"â¶","LessLess":"⪡","lesssim":"â²","LessSlantEqual":"⩽","LessTilde":"â²","lfisht":"⥼","lfloor":"â","Lfr":"ð","lfr":"ð©","lg":"â¶","lgE":"âª","lHar":"⥢","lhard":"â½","lharu":"â¼","lharul":"⥪","lhblk":"â","LJcy":"Ð","ljcy":"Ñ","llarr":"â","ll":"âª","Ll":"â","llcorner":"â","Lleftarrow":"â","llhard":"⥫","lltri":"âº","Lmidot":"Ä¿","lmidot":"Å","lmoustache":"â°","lmoust":"â°","lnap":"âª","lnapprox":"âª","lne":"âª","lnE":"â¨","lneq":"âª","lneqq":"â¨","lnsim":"â¦","loang":"â¬","loarr":"â½","lobrk":"â¦","longleftarrow":"âµ","LongLeftArrow":"âµ","Longleftarrow":"â¸","longleftrightarrow":"â·","LongLeftRightArrow":"â·","Longleftrightarrow":"âº","longmapsto":"â¼","longrightarrow":"â¶","LongRightArrow":"â¶","Longrightarrow":"â¹","looparrowleft":"â«","looparrowright":"â¬","lopar":"â¦
","Lopf":"ð","lopf":"ð","loplus":"â¨","lotimes":"⨴","lowast":"â","lowbar":"_","LowerLeftArrow":"â","LowerRightArrow":"â","loz":"â","lozenge":"â","lozf":"â§«","lpar":"(","lparlt":"â¦","lrarr":"â","lrcorner":"â","lrhar":"â","lrhard":"â¥","lrm":"â","lrtri":"â¿","lsaquo":"â¹","lscr":"ð","Lscr":"â","lsh":"â°","Lsh":"â°","lsim":"â²","lsime":"âª","lsimg":"âª","lsqb":"[","lsquo":"â","lsquor":"â","Lstrok":"Å","lstrok":"Å","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"âª","ltdot":"â","lthree":"â","ltimes":"â","ltlarr":"⥶","ltquest":"â©»","ltri":"â","ltrie":"â´","ltrif":"â","ltrPar":"â¦","lurdshar":"â¥","luruhar":"⥦","lvertneqq":"â¨ï¸","lvnE":"â¨ï¸","macr":"¯","male":"â","malt":"â ","maltese":"â ","Map":"â¤
","map":"â¦","mapsto":"â¦","mapstodown":"â§","mapstoleft":"â¤","mapstoup":"â¥","marker":"â®","mcomma":"⨩","Mcy":"Ð","mcy":"м","mdash":"â","mDDot":"âº","measuredangle":"â¡","MediumSpace":"â","Mellintrf":"â³","Mfr":"ð","mfr":"ðª","mho":"â§","micro":"µ","midast":"*","midcir":"â«°","mid":"â£","middot":"·","minusb":"â","minus":"â","minusd":"â¸","minusdu":"⨪","MinusPlus":"â","mlcp":"â«","mldr":"â¦","mnplus":"â","models":"â§","Mopf":"ð","mopf":"ð","mp":"â","mscr":"ð","Mscr":"â³","mstpos":"â¾","Mu":"Î","mu":"μ","multimap":"â¸","mumap":"â¸","nabla":"â","Nacute":"Å","nacute":"Å","nang":"â â","nap":"â","napE":"⩰̸","napid":"â̸","napos":"Å","napprox":"â","natural":"â®","naturals":"â","natur":"â®","nbsp":" ","nbump":"â̸","nbumpe":"â̸","ncap":"â©","Ncaron":"Å","ncaron":"Å","Ncedil":"Å
","ncedil":"Å","ncong":"â","ncongdot":"â©Ì¸","ncup":"â©","Ncy":"Ð","ncy":"н","ndash":"â","nearhk":"⤤","nearr":"â","neArr":"â","nearrow":"â","ne":"â ","nedot":"â̸","NegativeMediumSpace":"â","NegativeThickSpace":"â","NegativeThinSpace":"â","NegativeVeryThinSpace":"â","nequiv":"â¢","nesear":"⤨","nesim":"â̸","NestedGreaterGreater":"â«","NestedLessLess":"âª","NewLine":"\\n","nexist":"â","nexists":"â","Nfr":"ð","nfr":"ð«","ngE":"â§Ì¸","nge":"â±","ngeq":"â±","ngeqq":"â§Ì¸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"â̸","ngsim":"âµ","nGt":"â«â","ngt":"â¯","ngtr":"â¯","nGtv":"â«Ì¸","nharr":"â®","nhArr":"â","nhpar":"⫲","ni":"â","nis":"â¼","nisd":"âº","niv":"â","NJcy":"Ð","njcy":"Ñ","nlarr":"â","nlArr":"â","nldr":"â¥","nlE":"â¦Ì¸","nle":"â°","nleftarrow":"â","nLeftarrow":"â","nleftrightarrow":"â®","nLeftrightarrow":"â","nleq":"â°","nleqq":"â¦Ì¸","nleqslant":"⩽̸","nles":"⩽̸","nless":"â®","nLl":"â̸","nlsim":"â´","nLt":"âªâ","nlt":"â®","nltri":"âª","nltrie":"â¬","nLtv":"âªÌ¸","nmid":"â¤","NoBreak":"â ","NonBreakingSpace":" ","nopf":"ð","Nopf":"â","Not":"⫬","not":"¬","NotCongruent":"â¢","NotCupCap":"â","NotDoubleVerticalBar":"â¦","NotElement":"â","NotEqual":"â ","NotEqualTilde":"â̸","NotExists":"â","NotGreater":"â¯","NotGreaterEqual":"â±","NotGreaterFullEqual":"â§Ì¸","NotGreaterGreater":"â«Ì¸","NotGreaterLess":"â¹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"âµ","NotHumpDownHump":"â̸","NotHumpEqual":"â̸","notin":"â","notindot":"âµÌ¸","notinE":"â¹Ì¸","notinva":"â","notinvb":"â·","notinvc":"â¶","NotLeftTriangleBar":"â§Ì¸","NotLeftTriangle":"âª","NotLeftTriangleEqual":"â¬","NotLess":"â®","NotLessEqual":"â°","NotLessGreater":"â¸","NotLessLess":"âªÌ¸","NotLessSlantEqual":"⩽̸","NotLessTilde":"â´","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"â","notniva":"â","notnivb":"â¾","notnivc":"â½","NotPrecedes":"â","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"â ","NotReverseElement":"â","NotRightTriangleBar":"â§Ì¸","NotRightTriangle":"â«","NotRightTriangleEqual":"â","NotSquareSubset":"â̸","NotSquareSubsetEqual":"â¢","NotSquareSuperset":"â̸","NotSquareSupersetEqual":"â£","NotSubset":"ââ","NotSubsetEqual":"â","NotSucceeds":"â","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"â¡","NotSucceedsTilde":"â¿Ì¸","NotSuperset":"ââ","NotSupersetEqual":"â","NotTilde":"â","NotTildeEqual":"â","NotTildeFullEqual":"â","NotTildeTilde":"â","NotVerticalBar":"â¤","nparallel":"â¦","npar":"â¦","nparsl":"⫽â¥","npart":"â̸","npolint":"â¨","npr":"â","nprcue":"â ","nprec":"â","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"â","nrArr":"â","nrarrw":"â̸","nrightarrow":"â","nRightarrow":"â","nrtri":"â«","nrtrie":"â","nsc":"â","nsccue":"â¡","nsce":"⪰̸","Nscr":"ð©","nscr":"ð","nshortmid":"â¤","nshortparallel":"â¦","nsim":"â","nsime":"â","nsimeq":"â","nsmid":"â¤","nspar":"â¦","nsqsube":"â¢","nsqsupe":"â£","nsub":"â","nsubE":"â«
̸","nsube":"â","nsubset":"ââ","nsubseteq":"â","nsubseteqq":"â«
̸","nsucc":"â","nsucceq":"⪰̸","nsup":"â
","nsupE":"â«Ì¸","nsupe":"â","nsupset":"ââ","nsupseteq":"â","nsupseteqq":"â«Ì¸","ntgl":"â¹","Ntilde":"Ã","ntilde":"ñ","ntlg":"â¸","ntriangleleft":"âª","ntrianglelefteq":"â¬","ntriangleright":"â«","ntrianglerighteq":"â","Nu":"Î","nu":"ν","num":"#","numero":"â","numsp":"â","nvap":"ââ","nvdash":"â¬","nvDash":"â","nVdash":"â®","nVDash":"â¯","nvge":"â¥â","nvgt":">â","nvHarr":"â¤","nvinfin":"â§","nvlArr":"â¤","nvle":"â¤â","nvlt":"<â","nvltrie":"â´â","nvrArr":"â¤","nvrtrie":"âµâ","nvsim":"â¼â","nwarhk":"⤣","nwarr":"â","nwArr":"â","nwarrow":"â","nwnear":"⤧","Oacute":"Ã","oacute":"ó","oast":"â","Ocirc":"Ã","ocirc":"ô","ocir":"â","Ocy":"Ð","ocy":"о","odash":"â","Odblac":"Å","odblac":"Å","odiv":"⨸","odot":"â","odsold":"⦼","OElig":"Å","oelig":"Å","ofcir":"⦿","Ofr":"ð","ofr":"ð¬","ogon":"Ë","Ograve":"Ã","ograve":"ò","ogt":"â§","ohbar":"⦵","ohm":"Ω","oint":"â®","olarr":"âº","olcir":"⦾","olcross":"⦻","oline":"â¾","olt":"â§","Omacr":"Å","omacr":"Å","Omega":"Ω","omega":"Ï","Omicron":"Î","omicron":"ο","omid":"⦶","ominus":"â","Oopf":"ð","oopf":"ð ","opar":"⦷","OpenCurlyDoubleQuote":"â","OpenCurlyQuote":"â","operp":"⦹","oplus":"â","orarr":"â»","Or":"â©","or":"â¨","ord":"â©","order":"â´","orderof":"â´","ordf":"ª","ordm":"º","origof":"â¶","oror":"â©","orslope":"â©","orv":"â©","oS":"â","Oscr":"ðª","oscr":"â´","Oslash":"Ã","oslash":"ø","osol":"â","Otilde":"Ã","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"â","Ouml":"Ã","ouml":"ö","ovbar":"â½","OverBar":"â¾","OverBrace":"â","OverBracket":"â´","OverParenthesis":"â","para":"¶","parallel":"â¥","par":"â¥","parsim":"⫳","parsl":"⫽","part":"â","PartialD":"â","Pcy":"Ð","pcy":"п","percnt":"%","period":".","permil":"â°","perp":"â¥","pertenk":"â±","Pfr":"ð","pfr":"ð","Phi":"Φ","phi":"Ï","phiv":"Ï","phmmat":"â³","phone":"â","Pi":"Î ","pi":"Ï","pitchfork":"â","piv":"Ï","planck":"â","planckh":"â","plankv":"â","plusacir":"⨣","plusb":"â","pluscir":"⨢","plus":"+","plusdo":"â","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"â","pointint":"â¨","popf":"ð¡","Popf":"â","pound":"£","prap":"⪷","Pr":"⪻","pr":"âº","prcue":"â¼","precapprox":"⪷","prec":"âº","preccurlyeq":"â¼","Precedes":"âº","PrecedesEqual":"⪯","PrecedesSlantEqual":"â¼","PrecedesTilde":"â¾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"â¨","pre":"⪯","prE":"⪳","precsim":"â¾","prime":"â²","Prime":"â³","primes":"â","prnap":"⪹","prnE":"⪵","prnsim":"â¨","prod":"â","Product":"â","profalar":"â®","profline":"â","profsurf":"â","prop":"â","Proportional":"â","Proportion":"â·","propto":"â","prsim":"â¾","prurel":"â°","Pscr":"ð«","pscr":"ð
","Psi":"Ψ","psi":"Ï","puncsp":"â","Qfr":"ð","qfr":"ð®","qint":"â¨","qopf":"ð¢","Qopf":"â","qprime":"â","Qscr":"ð¬","qscr":"ð","quaternions":"â","quatint":"â¨","quest":"?","questeq":"â","quot":"\\"","QUOT":"\\"","rAarr":"â","race":"â½Ì±","Racute":"Å","racute":"Å","radic":"â","raemptyv":"⦳","rang":"â©","Rang":"â«","rangd":"â¦","range":"⦥","rangle":"â©","raquo":"»","rarrap":"⥵","rarrb":"â¥","rarrbfs":"⤠","rarrc":"⤳","rarr":"â","Rarr":"â ","rArr":"â","rarrfs":"â¤","rarrhk":"âª","rarrlp":"â¬","rarrpl":"â¥
","rarrsim":"⥴","Rarrtl":"â¤","rarrtl":"â£","rarrw":"â","ratail":"â¤","rAtail":"â¤","ratio":"â¶","rationals":"â","rbarr":"â¤","rBarr":"â¤","RBarr":"â¤","rbbrk":"â³","rbrace":"}","rbrack":"]","rbrke":"â¦","rbrksld":"â¦","rbrkslu":"â¦","Rcaron":"Å","rcaron":"Å","Rcedil":"Å","rcedil":"Å","rceil":"â","rcub":"}","Rcy":"Ð ","rcy":"Ñ","rdca":"⤷","rdldhar":"⥩","rdquo":"â","rdquor":"â","rdsh":"â³","real":"â","realine":"â","realpart":"â","reals":"â","Re":"â","rect":"â","reg":"®","REG":"®","ReverseElement":"â","ReverseEquilibrium":"â","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"â","rfr":"ð¯","Rfr":"â","rHar":"⥤","rhard":"â","rharu":"â","rharul":"⥬","Rho":"Ρ","rho":"Ï","rhov":"ϱ","RightAngleBracket":"â©","RightArrowBar":"â¥","rightarrow":"â","RightArrow":"â","Rightarrow":"â","RightArrowLeftArrow":"â","rightarrowtail":"â£","RightCeiling":"â","RightDoubleBracket":"â§","RightDownTeeVector":"â¥","RightDownVectorBar":"â¥","RightDownVector":"â","RightFloor":"â","rightharpoondown":"â","rightharpoonup":"â","rightleftarrows":"â","rightleftharpoons":"â","rightrightarrows":"â","rightsquigarrow":"â","RightTeeArrow":"â¦","RightTee":"â¢","RightTeeVector":"â¥","rightthreetimes":"â","RightTriangleBar":"â§","RightTriangle":"â³","RightTriangleEqual":"âµ","RightUpDownVector":"â¥","RightUpTeeVector":"â¥","RightUpVectorBar":"â¥","RightUpVector":"â¾","RightVectorBar":"â¥","RightVector":"â","ring":"Ë","risingdotseq":"â","rlarr":"â","rlhar":"â","rlm":"â","rmoustache":"â±","rmoust":"â±","rnmid":"â«®","roang":"â","roarr":"â¾","robrk":"â§","ropar":"â¦","ropf":"ð£","Ropf":"â","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"â¦","rppolint":"â¨","rrarr":"â","Rrightarrow":"â","rsaquo":"âº","rscr":"ð","Rscr":"â","rsh":"â±","Rsh":"â±","rsqb":"]","rsquo":"â","rsquor":"â","rthree":"â","rtimes":"â","rtri":"â¹","rtrie":"âµ","rtrif":"â¸","rtriltri":"â§","RuleDelayed":"â§´","ruluhar":"⥨","rx":"â","Sacute":"Å","sacute":"Å","sbquo":"â","scap":"⪸","Scaron":"Å ","scaron":"Å¡","Sc":"⪼","sc":"â»","sccue":"â½","sce":"⪰","scE":"⪴","Scedil":"Å","scedil":"Å","Scirc":"Å","scirc":"Å","scnap":"⪺","scnE":"⪶","scnsim":"â©","scpolint":"â¨","scsim":"â¿","Scy":"С","scy":"Ñ","sdotb":"â¡","sdot":"â
","sdote":"⩦","searhk":"⤥","searr":"â","seArr":"â","searrow":"â","sect":"§","semi":";","seswar":"⤩","setminus":"â","setmn":"â","sext":"â¶","Sfr":"ð","sfr":"ð°","sfrown":"â¢","sharp":"â¯","SHCHcy":"Щ","shchcy":"Ñ","SHcy":"Ш","shcy":"Ñ","ShortDownArrow":"â","ShortLeftArrow":"â","shortmid":"â£","shortparallel":"â¥","ShortRightArrow":"â","ShortUpArrow":"â","shy":"Â","Sigma":"Σ","sigma":"Ï","sigmaf":"Ï","sigmav":"Ï","sim":"â¼","simdot":"⩪","sime":"â","simeq":"â","simg":"âª","simgE":"⪠","siml":"âª","simlE":"âª","simne":"â","simplus":"⨤","simrarr":"⥲","slarr":"â","SmallCircle":"â","smallsetminus":"â","smashp":"⨳","smeparsl":"⧤","smid":"â£","smile":"â£","smt":"⪪","smte":"⪬","smtes":"⪬ï¸","SOFTcy":"Ь","softcy":"Ñ","solbar":"â¿","solb":"â§","sol":"/","Sopf":"ð","sopf":"ð¤","spades":"â ","spadesuit":"â ","spar":"â¥","sqcap":"â","sqcaps":"âï¸","sqcup":"â","sqcups":"âï¸","Sqrt":"â","sqsub":"â","sqsube":"â","sqsubset":"â","sqsubseteq":"â","sqsup":"â","sqsupe":"â","sqsupset":"â","sqsupseteq":"â","square":"â¡","Square":"â¡","SquareIntersection":"â","SquareSubset":"â","SquareSubsetEqual":"â","SquareSuperset":"â","SquareSupersetEqual":"â","SquareUnion":"â","squarf":"âª","squ":"â¡","squf":"âª","srarr":"â","Sscr":"ð®","sscr":"ð","ssetmn":"â","ssmile":"â£","sstarf":"â","Star":"â","star":"â","starf":"â
","straightepsilon":"ϵ","straightphi":"Ï","strns":"¯","sub":"â","Sub":"â","subdot":"⪽","subE":"â«
","sube":"â","subedot":"â«","submult":"â«","subnE":"â«","subne":"â","subplus":"⪿","subrarr":"⥹","subset":"â","Subset":"â","subseteq":"â","subseteqq":"â«
","SubsetEqual":"â","subsetneq":"â","subsetneqq":"â«","subsim":"â«","subsub":"â«","subsup":"â«","succapprox":"⪸","succ":"â»","succcurlyeq":"â½","Succeeds":"â»","SucceedsEqual":"⪰","SucceedsSlantEqual":"â½","SucceedsTilde":"â¿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"â©","succsim":"â¿","SuchThat":"â","sum":"â","Sum":"â","sung":"âª","sup1":"¹","sup2":"²","sup3":"³","sup":"â","Sup":"â","supdot":"⪾","supdsub":"â«","supE":"â«","supe":"â","supedot":"â«","Superset":"â","SupersetEqual":"â","suphsol":"â","suphsub":"â«","suplarr":"⥻","supmult":"â«","supnE":"â«","supne":"â","supplus":"â«","supset":"â","Supset":"â","supseteq":"â","supseteqq":"â«","supsetneq":"â","supsetneqq":"â«","supsim":"â«","supsub":"â«","supsup":"â«","swarhk":"⤦","swarr":"â","swArr":"â","swarrow":"â","swnwar":"⤪","szlig":"Ã","Tab":"\\t","target":"â","Tau":"Τ","tau":"Ï","tbrk":"â´","Tcaron":"Ť","tcaron":"Å¥","Tcedil":"Å¢","tcedil":"Å£","Tcy":"Т","tcy":"Ñ","tdot":"â","telrec":"â","Tfr":"ð","tfr":"ð±","there4":"â´","therefore":"â´","Therefore":"â´","Theta":"Î","theta":"θ","thetasym":"Ï","thetav":"Ï","thickapprox":"â","thicksim":"â¼","ThickSpace":"ââ","ThinSpace":"â","thinsp":"â","thkap":"â","thksim":"â¼","THORN":"Ã","thorn":"þ","tilde":"Ë","Tilde":"â¼","TildeEqual":"â","TildeFullEqual":"â
","TildeTilde":"â","timesbar":"⨱","timesb":"â ","times":"Ã","timesd":"⨰","tint":"â","toea":"⤨","topbot":"â¶","topcir":"⫱","top":"â¤","Topf":"ð","topf":"ð¥","topfork":"â«","tosa":"⤩","tprime":"â´","trade":"â¢","TRADE":"â¢","triangle":"âµ","triangledown":"â¿","triangleleft":"â","trianglelefteq":"â´","triangleq":"â","triangleright":"â¹","trianglerighteq":"âµ","tridot":"â¬","trie":"â","triminus":"⨺","TripleDot":"â","triplus":"⨹","trisb":"â§","tritime":"⨻","trpezium":"â¢","Tscr":"ð¯","tscr":"ð","TScy":"Ц","tscy":"Ñ","TSHcy":"Ð","tshcy":"Ñ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"â¬","twoheadleftarrow":"â","twoheadrightarrow":"â ","Uacute":"Ã","uacute":"ú","uarr":"â","Uarr":"â","uArr":"â","Uarrocir":"â¥","Ubrcy":"Ð","ubrcy":"Ñ","Ubreve":"Ŭ","ubreve":"Å","Ucirc":"Ã","ucirc":"û","Ucy":"У","ucy":"Ñ","udarr":"â
","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"ð","ufr":"ð²","Ugrave":"Ã","ugrave":"ù","uHar":"⥣","uharl":"â¿","uharr":"â¾","uhblk":"â","ulcorn":"â","ulcorner":"â","ulcrop":"â","ultri":"â¸","Umacr":"Ū","umacr":"Å«","uml":"¨","UnderBar":"_","UnderBrace":"â","UnderBracket":"âµ","UnderParenthesis":"â","Union":"â","UnionPlus":"â","Uogon":"Ų","uogon":"ų","Uopf":"ð","uopf":"ð¦","UpArrowBar":"â¤","uparrow":"â","UpArrow":"â","Uparrow":"â","UpArrowDownArrow":"â
","updownarrow":"â","UpDownArrow":"â","Updownarrow":"â","UpEquilibrium":"⥮","upharpoonleft":"â¿","upharpoonright":"â¾","uplus":"â","UpperLeftArrow":"â","UpperRightArrow":"â","upsi":"Ï
","Upsi":"Ï","upsih":"Ï","Upsilon":"Î¥","upsilon":"Ï
","UpTeeArrow":"â¥","UpTee":"â¥","upuparrows":"â","urcorn":"â","urcorner":"â","urcrop":"â","Uring":"Å®","uring":"ů","urtri":"â¹","Uscr":"ð°","uscr":"ð","utdot":"â°","Utilde":"Ũ","utilde":"Å©","utri":"âµ","utrif":"â´","uuarr":"â","Uuml":"Ã","uuml":"ü","uwangle":"⦧","vangrt":"â¦","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"â
","varphi":"Ï","varpi":"Ï","varpropto":"â","varr":"â","vArr":"â","varrho":"ϱ","varsigma":"Ï","varsubsetneq":"âï¸","varsubsetneqq":"â«ï¸","varsupsetneq":"âï¸","varsupsetneqq":"â«ï¸","vartheta":"Ï","vartriangleleft":"â²","vartriangleright":"â³","vBar":"⫨","Vbar":"â««","vBarv":"â«©","Vcy":"Ð","vcy":"в","vdash":"â¢","vDash":"â¨","Vdash":"â©","VDash":"â«","Vdashl":"⫦","veebar":"â»","vee":"â¨","Vee":"â","veeeq":"â","vellip":"â®","verbar":"|","Verbar":"â","vert":"|","Vert":"â","VerticalBar":"â£","VerticalLine":"|","VerticalSeparator":"â","VerticalTilde":"â","VeryThinSpace":"â","Vfr":"ð","vfr":"ð³","vltri":"â²","vnsub":"ââ","vnsup":"ââ","Vopf":"ð","vopf":"ð§","vprop":"â","vrtri":"â³","Vscr":"ð±","vscr":"ð","vsubnE":"â«ï¸","vsubne":"âï¸","vsupnE":"â«ï¸","vsupne":"âï¸","Vvdash":"âª","vzigzag":"â¦","Wcirc":"Å´","wcirc":"ŵ","wedbar":"â©","wedge":"â§","Wedge":"â","wedgeq":"â","weierp":"â","Wfr":"ð","wfr":"ð´","Wopf":"ð","wopf":"ð¨","wp":"â","wr":"â","wreath":"â","Wscr":"ð²","wscr":"ð","xcap":"â","xcirc":"â¯","xcup":"â","xdtri":"â½","Xfr":"ð","xfr":"ðµ","xharr":"â·","xhArr":"âº","Xi":"Î","xi":"ξ","xlarr":"âµ","xlArr":"â¸","xmap":"â¼","xnis":"â»","xodot":"â¨","Xopf":"ð","xopf":"ð©","xoplus":"â¨","xotime":"â¨","xrarr":"â¶","xrArr":"â¹","Xscr":"ð³","xscr":"ð","xsqcup":"â¨","xuplus":"â¨","xutri":"â³","xvee":"â","xwedge":"â","Yacute":"Ã","yacute":"ý","YAcy":"Я","yacy":"Ñ","Ycirc":"Ŷ","ycirc":"Å·","Ycy":"Ы","ycy":"Ñ","yen":"Â¥","Yfr":"ð","yfr":"ð¶","YIcy":"Ð","yicy":"Ñ","Yopf":"ð","yopf":"ðª","Yscr":"ð´","yscr":"ð","YUcy":"Ю","yucy":"Ñ","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"Ð","zcy":"з","Zdot":"Å»","zdot":"ż","zeetrf":"â¨","ZeroWidthSpace":"â","Zeta":"Î","zeta":"ζ","zfr":"ð·","Zfr":"â¨","ZHcy":"Ð","zhcy":"ж","zigrarr":"â","zopf":"ð«","Zopf":"â¤","Zscr":"ðµ","zscr":"ð","zwj":"â","zwnj":"â"}')
7},227628,(e,t,r)=>{"use strict";var n,i,a=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.escapeUTF8=r.escape=r.encodeNonAsciiHTML=r.encodeHTML=r.encodeXML=void 0;var o=c(a(e.r(486023)).default),s=d(o);r.encodeXML=g(o);var l=c(a(e.r(96808)).default),u=d(l);function c(e){return Object.keys(e).sort().reduce(function(t,r){return t[e[r]]="&"+r+";",t},{})}function d(e){for(var t=[],r=[],n=0,i=Object.keys(e);n<i.length;n++){var a=i[n];1===a.length?t.push("\\"+a):r.push(a)}t.sort();for(var o=0;o<t.length-1;o++){for(var s=o;s<t.length-1&&t[s].charCodeAt(1)+1===t[s+1].charCodeAt(1);)s+=1;var l=1+s-o;l<3||t.splice(o,l,t[o]+"-"+t[s])}return r.unshift("["+t.join("")+"]"),RegExp(r.join("|"),"g")}n=l,i=u,r.encodeHTML=function(e){return e.replace(i,function(e){return n[e]}).replace(p,m)},r.encodeNonAsciiHTML=g(l);var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,f=null!=String.prototype.codePointAt?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function m(e){return"&#x"+(e.length>1?f(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}var h=RegExp(s.source+"|"+p.source,"g");function g(e){return function(t){return t.replace(h,function(t){return e[t]||m(t)})}}r.escape=function(e){return e.replace(h,m)},r.escapeUTF8=function(e){return e.replace(s,m)}},487494,(e,t,r)=>{t.exports={Aacute:"Ã",aacute:"á",Acirc:"Ã",acirc:"â",acute:"´",AElig:"Ã",aelig:"æ",Agrave:"Ã",agrave:"à ",amp:"&",AMP:"&",Ar
7ing:"Ã
",aring:"Ã¥",Atilde:"Ã",atilde:"ã",Auml:"Ã",auml:"ä",brvbar:"¦",Ccedil:"Ã",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"Ã",eacute:"é",Ecirc:"Ã",ecirc:"ê",Egrave:"Ã",egrave:"è",ETH:"Ã",eth:"ð",Euml:"Ã",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Ã",iacute:"Ã",Icirc:"Ã",icirc:"î",iexcl:"¡",Igrave:"Ã",igrave:"ì",iquest:"¿",Iuml:"Ã",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ã",ntilde:"ñ",Oacute:"Ã",oacute:"ó",Ocirc:"Ã",ocirc:"ô",Ograve:"Ã",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ã",oslash:"ø",Otilde:"Ã",otilde:"õ",Ouml:"Ã",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"Â",sup1:"¹",sup2:"²",sup3:"³",szlig:"Ã",THORN:"Ã",thorn:"þ",times:"Ã",Uacute:"Ã",uacute:"ú",Ucirc:"Ã",ucirc:"û",Ugrave:"Ã",ugrave:"ù",uml:"¨",Uuml:"Ã",uuml:"ü",Yacute:"Ã",yacute:"ý",yen:"Â¥",yuml:"ÿ"}},300555,(e,t,r)=>{t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}},74584,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var i=n(e.r(300555)),a=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};r.default=function(e){return e>=55296&&e<=57343||e>1114111?"�":(e in i.default&&(e=i.default[e]),a(e))}},647679,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.decodeHTML=r.decodeHTMLStrict=r.decodeXML=void 0;var i=n(e.r(96808)),a=n(e.r(487494)),o=n(e.r(486023)),s=n(e.r(74584)),l=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function u(e){var t=d(e);return function(e){return String(e).replace(l,t)}}r.decodeXML=u(o.default),r.decodeHTMLStrict=u(i.default);var c=function(e,t){return e<t?1:-1};function d(e){return function(t){if("#"===t.charAt(1)){var r=t.charAt(2);return"X"===r||"x"===r?s.default(parseInt(t.substr(3),16)):s.default(parseInt(t.substr(2),10))}return e[t.slice(1,-1)]||t}}r.decodeHTML=function(){for(var e=Object.keys(a.default).sort(c),t=Object.keys(i.default).sort(c),r=0,n=0;r<t.length;r++)e[n]===t[r]?(t[r]+=";?",n++):t[r]+=";";var o=RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),s=d(i.default);function l(e){return";"!==e.substr(-1)&&(e+=";"),s(e)}return function(e){return String(e).replace(o,l)}}()},990153,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.decodeXMLStrict=r.decodeHTML5Strict=r.decodeHTML4Strict=r.decodeHTML5=r.decodeHTML4=r.decodeHTMLStrict=r.decodeHTML=r.decodeXML=r.encodeHTML5=r.encodeHTML4=r.escapeUTF8=r.escape=r.encodeNonAsciiHTML=r.encodeHTML=r.encodeXML=r.encode=r.decodeStrict=r.decode=void 0;var n=e.r(647679),i=e.r(227628);r.decode=function(e,t){return(!t||t<=0?n.decodeXML:n.decodeHTML)(e)},r.decodeStrict=function(e,t){return(!t||t<=0?n.decodeXML:n.decodeHTMLStrict)(e)},r.encode=function(e,t){return(!t||t<=0?i.encodeXML:i.encodeHTML)(e)};var a=e.r(227628);Object.defineProperty(r,"encodeXML",{enumerable:!0,get:function(){return a.encodeXML}}),Object.defineProperty(r,"encodeHTML",{enumerable:!0,get:function(){return a.encodeHTML}}),Object.defineProperty(r,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return a.encodeNonAsciiHTML}}),Object.defineProperty(r,"escape",{enumerable:!0,get:function(){return a.escape}}),Object.defineProperty(r,"escapeUTF8",{enumerable:!0,get:function(){return a.escapeUTF8}}),Object.defineProperty(r,"encodeHTML4",{enumerable:!0,get:function(){return a.encodeHTML}}),Object.defineProperty(r,"encodeHTML5",{enumerable:!0,get:function(){return a.encodeHTML}});var o=e.r(647679);Object.defineProperty(r,"decodeXML",{enumerable:!0,get:function(){return o.decodeXML}}),Object.defineProperty(r,"decodeHTML",{enumerable:!0,get:function(){return o.decodeHTML}}),Object.defineProperty(r,"decodeHTMLStrict",{enumerable:!0,get:function(){return o.decodeHTMLStrict}}),Object.defineProperty(r,"decodeHTML4",{enumerable:!0,get:function(){return o.decodeHTML}}),Object.defineProperty(r,"decodeHTML5",{enumerable:!0,get:function(){return o.decodeHTML}}),Object.defineProperty(r,"decodeHTML4Strict",{enumerable:!0,get:function(){return o.decodeHTMLStrict}}),Object.defineProperty(r,"decodeHTML5Strict",{enumerable:!0,get:function(){return o.decodeHTMLStrict}}),Object.defineProperty(r,"decodeXMLStrict",{enumerable:!0,get:function(){return o.decodeXML}})},697268,(e,t,r)=>{t.exports={elementNames:{altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur
7:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},attributeNames:{definitionurl:"definitionURL",attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"}}},743215,(e,t,r)=>{var n=e.r(165129),i=e.r(990153),a=e.r(697268);a.elementNames.__proto__=null,a.attributeNames.__proto__=null;var o={__proto__:null,style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,plaintext:!0,noscript:!0},s={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},l=t.exports=function(e,t){Array.isArray(e)||e.cheerio||(e=[e]),t=t||{};for(var r="",c=0;c<e.length;c++){var d=e[c];"root"===d.type?r+=l(d.children,t):n.isTag(d)?r+=function(e,t){"foreign"===t.xmlMode&&(e.name=a.elementNames[e.name]||e.name,e.parent&&u.indexOf(e.parent.name)>=0&&(t=Object.assign({},t,{xmlMode:!1}))),!t.xmlMode&&["svg","math"].indexOf(e.name)>=0&&(t=Object.assign({},t,{xmlMode:"foreign"}));var r="<"+e.name,n=function(e,t){if(e){var r,n="";for(var o in e)r=e[o],n&&(n+=" "),"foreign"===t.xmlMode&&(o=a.attributeNames[o]||o),n+=o,(null!==r&&""!==r||t.xmlMode)&&(n+='="'+(t.decodeEntities?i.encodeXML(r):r.replace(/\"/g,"""))+'"');return n}}(e.attribs,t);return n&&(r+=" "+n),t.xmlMode&&(!e.children||0===e.children.length)?r+="/>":(r+=">",e.children&&(r+=l(e.children,t)),(!s[e.name]||t.xmlMode)&&(r+="</"+e.name+">")),r}(d,t):d.type===n.Directive?r+="<"+d.data+">":d.type===n.Comment?r+="<!--"+d.data+"-->":d.type===n.CDATA?r+="<![CDATA["+d.children[0].data+"]]>":r+=function(e,t){var r=e.data||"";return t.decodeEntities&&!(e.parent&&e.parent.name in o)&&(r=i.encodeXML(r)),r}(d,t)}return r},u=["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]},588550,(e,t,r)=>{var n=e.r(5815),i=e.r(743215),a=n.isTag;t.exports={getInnerHTML:function(e,t){return e.children?e.children.map(function(e){return i(e,t)}).join(""):""},getOuterHTML:i,getText:function e(t){return Array.isArray(t)?t.map(e).join(""):a(t)?"br"===t.name?"\n":e(t.children):t.type===n.CDATA?e(t.children):t.type===n.Text?t.data:""}}},292476,(e,t,r)=>{var n=r.getChildren=function(e){return e.children},i=r.getParent=function(e){return e.parent};r.getSiblings=function(e){var t=i(e);return t?n(t):[e]},r.getAttributeValue=function(e,t){return e.attribs&&e.attribs[t]},r.hasAttrib=function(e,t){return!!e.attribs&&hasOwnProperty.call(e.attribs,t)},r.getName=function(e){return e.name}},653765,(e,t,r)=>{r.removeElement=function(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}},r.replaceElement=function(e,t){var r=t.prev=e.prev;r&&(r.next=t);var n=t.next=e.next;n&&(n.prev=t);var i=t.parent=e.parent;if(i){var a=i.children;a[a.lastIndexOf(e)]=t}},r.appendChild=function(e,t){if(t.parent=e,1!==e.children.push(t)){var r=e.children[e.children.length-2];r.next=t,t.prev=r,t.next=null}},r.append=function(e,t){var r=e.parent,n=e.next;if(t.next=n,t.prev=e,e.next=t,t.parent=r,n){if(n.prev=t,r){var i=r.children;i.splice(i.lastIndexOf(n),0,t)}}else r&&r.children.push(t)},r.prepend=function(e,t){var r=e.parent;if(r){var n=r.children;n.splice(n.lastIndexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}},26805,(e,t,r)=>{var n=e.r(5815).isTag;function i(e,t,r,n){for(var a,o=[],s=0,l=t.length;s<l&&!(e(t[s])&&(o.push(t[s]),--n<=0))&&(a=t[s].children,!r||!a||!(a.length>0)||(a=i(e,a,r,n),o=o.concat(a),!((n-=a.length)<=0)));s++);return o}t.exports={filter:function(e,t,r,n){return Array.isArray(t)||(t=[t]),"number"==typeof n&&isFinite(n)||(n=1/0),i(e,t,!1!==r,n)},find:i,findOneChild:function(e,t){for(var r=0,n=t.length;r<n;r++)if(e(t[r]))return t[r];return null},findOne:function e(t,r){for(var i=null,a=0,o=r.length;a<o&&!i;a++)if(!n(r[a]))continue;else t(r[a])?i=r[a]:r[a].children.length>0&&(i=e(t,r[a].children));return i},existsOne:function e(t,r){for(var i=0,a=r.length;i<a;i++)if(n(r[i])&&(t(r[i])||r[i].children.length>0&&e(t,r[i].children)))return!0;return!1},findAll:function(e,t){for(var r=[],i=t.slice();i.length;){var a=i.shift();n(a)&&(a.children&&a.children.length>0&&i.unshift.apply(i,a.children),e(a)&&r.push(a))}return r}}},32982,(e,t,r)=>{var n=r.isTag=e.r(5815).isTag;r.testElement=function(e,t){for(var r in e)if(e.hasOwnProperty(r)){if("tag_name"===r){if(!n(t)||!e.tag_name(t.name))return!1}else if("tag_type"===r){if(!e.tag_type(t.type))return!1}else if("tag_contains"===r){if(n(t)||!e.tag_contains(t.data))return!1}else if(!t.attribs||!e[r](t.attribs[r]))return!1}return!0};var i={tag_name:function(e){return"function"==typeof e?function(t){return n(t)&&e(t.name)}:"*"===e?n:function(t){return n(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return!n(t)&&e(t.data)}:function(t){return!n(t)&&t.data===e}}};function a(e,t){return"function"==typeof t?function(r){return r.attribs&&t(r.attribs[e])}:function(r){return r.attribs&&r.attribs[e]===t}}function o(e,t){return function(r){return e(r)||t(r)}}r.getElements=function(e,t,r,n){var s=Object.keys(e).map(function(t){var r=e[t];return t in i?i[t](r):a(t,r)});return 0===s.length?[]:this.filter(s.reduce(o),t,r,n)},r.getElementById=function(e,t,r){return Array.isArray(t)||(t=[t]),this.findOne(a("id",e),t,!1!==r)},r.getElementsByTagName=function(e,t,r,n){return this.filter(i.tag_name(e),t,r,n)},r.getElementsByTagType=function(e,t,r,n){return this.filter(i.tag_type(e),t,r,n)}},296533,(e,t,r)=>{r.removeSubsets=function(e){for(var t,r,n,i=e.length;--i>-1;){for(t=r=e[i],e[i]=null,n=!0;r;){if(e.indexOf(r)>-1){n=!1,e.splice(i,1);break}r=r.parent}n&&(e[i]=t)}return e};var n=r.compareDocumentPosition=function(e,t){var r,n,i,a,o,s,l=[],u=[];
7if(e===t)return 0;for(r=e;r;)l.unshift(r),r=r.parent;for(r=t;r;)u.unshift(r),r=r.parent;for(s=0;l[s]===u[s];)s++;return 0===s?1:(i=(n=l[s-1]).children,a=l[s],o=u[s],i.indexOf(a)>i.indexOf(o))?n===t?20:4:n===e?10:2};r.uniqueSort=function(e){var t,r,i=e.length;for(e=e.slice();--i>-1;)t=e[i],(r=e.indexOf(t))>-1&&r<i&&e.splice(i,1);return e.sort(function(e,t){var r=n(e,t);return 2&r?-1:4&r?1:0}),e}},466054,(e,t,r)=>{var n=t.exports;[e.r(588550),e.r(292476),e.r(653765),e.r(26805),e.r(32982),e.r(296533)].forEach(function(e){Object.keys(e).forEach(function(t){n[t]=e[t].bind(n)})})},896812,(e,t,r)=>{"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},625044,(e,t,r)=>{var n=e.r(128616),i=e.r(466054);function a(e,t){this.init(e,t)}function o(e,t){return i.getElementsByTagName(e,t,!0)}function s(e,t){return i.getElementsByTagName(e,t,!0,1)[0]}function l(e,t,r){return i.getText(i.getElementsByTagName(e,t,r,1)).trim()}function u(e,t,r,n,i){var a=l(r,n,i);a&&(e[t]=a)}e.r(896812)(a,n),a.prototype.init=n;var c=function(e){return"rss"===e||"feed"===e||"rdf:RDF"===e};a.prototype.onend=function(){var e,t,r={},i=s(c,this.dom);i&&("feed"===i.name?(t=i.children,r.type="atom",u(r,"id","id",t),u(r,"title","title",t),(e=s("link",t))&&(e=e.attribs)&&(e=e.href)&&(r.link=e),u(r,"description","subtitle",t),(e=l("updated",t))&&(r.updated=new Date(e)),u(r,"author","email",t,!0),r.items=o("entry",t).map(function(e){var t,r={};return u(r,"id","id",e=e.children),u(r,"title","title",e),(t=s("link",e))&&(t=t.attribs)&&(t=t.href)&&(r.link=t),(t=l("summary",e)||l("content",e))&&(r.description=t),(t=l("updated",e))&&(r.pubDate=new Date(t)),r})):(t=s("channel",i.children).children,r.type=i.name.substr(0,3),r.id="",u(r,"title","title",t),u(r,"link","link",t),u(r,"description","description",t),(e=l("lastBuildDate",t))&&(r.updated=new Date(e)),u(r,"author","managingEditor",t,!0),r.items=o("item",i.children).map(function(e){var t,r={};return u(r,"id","guid",e=e.children),u(r,"title","title",e),u(r,"link","link",e),u(r,"description","description",e),(t=l("pubDate",e))&&(r.pubDate=new Date(t)),r}))),this.dom=r,n.prototype._handleCallback.call(this,i?null:Error("couldn't find root of feed"))},t.exports=a},679877,(e,t,r)=>{"use strict";var n,i="object"==typeof Reflect?Reflect:null,a=i&&"function"==typeof i.apply?i.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(e,t){return new Promise(function(r,n){var i,a,o;function s(r){e.removeListener(t,l),n(r)}function l(){"function"==typeof e.removeListener&&e.removeListener("error",s),r([].slice.call(arguments))}v(e,t,l,{once:!0}),"error"!==t&&(i=e,a=s,o={once:!0},"function"==typeof i.on&&v(i,"error",a,o))})},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function u(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,r,n){if(u(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),o=a[t]),void 0===o)o=a[t]=r,++e._eventsCount;else if("function"==typeof o?o=a[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=c(e))>0&&o.length>i&&!o.warned){o.warned=!0;var i,a,o,s=Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,console&&console.warn&&console.warn(s)}return e}function p(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=p.bind(n);return i.listener=r,n.wrapFn=i,i}function m(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):g(i,i.length)}function h(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function g(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function v(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function i(a){n.once&&e.removeEventListener(t,i),r(a)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),s.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return c(this)},s.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var o,s=Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)a(l,this,t);else for(var u=l.length,c=g(l,u),r=0;r<u;++r)a(c[r],this,t);return!0},s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)},s.prototype.once=function(e,t){return u(t),this.on(e,f(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,f(this,e,t)),this},s.prototype.removeListener=function(e,t){var r,n,i,a,o;if(u(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit
7("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,a=r.length-1;a>=0;a--)if(r[a]===t||r[a].listener===t){o=r[a].listener,i=a;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var i,a=Object.keys(r);for(n=0;n<a.length;++n)"removeListener"!==(i=a[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},946579,(e,t,r)=>{var n=e.r(421455),i={input:!0,option:!0,optgroup:!0,select:!0,button:!0,datalist:!0,textarea:!0},a={tr:{tr:!0,th:!0,td:!0},th:{th:!0},td:{thead:!0,th:!0,td:!0},body:{head:!0,link:!0,script:!0},li:{li:!0},p:{p:!0},h1:{p:!0},h2:{p:!0},h3:{p:!0},h4:{p:!0},h5:{p:!0},h6:{p:!0},select:i,input:i,output:i,button:i,datalist:i,textarea:i,option:{option:!0},optgroup:{optgroup:!0}},o={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},s={__proto__:null,math:!0,svg:!0},l={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0,"annotation-xml":!0,foreignObject:!0,desc:!0,title:!0},u=/\s|\//;function c(e,t){this._options=t||{},this._cbs=e||{},this._tagname="",this._attribname="",this._attribvalue="",this._attribs=null,this._stack=[],this._foreignContext=[],this.startIndex=0,this.endIndex=null,this._lowerCaseTagNames="lowerCaseTags"in this._options?!!this._options.lowerCaseTags:!this._options.xmlMode,this._lowerCaseAttributeNames="lowerCaseAttributeNames"in this._options?!!this._options.lowerCaseAttributeNames:!this._options.xmlMode,this._options.Tokenizer&&(n=this._options.Tokenizer),this._tokenizer=new n(this._options,this),this._cbs.onparserinit&&this._cbs.onparserinit(this)}e.r(896812)(c,e.r(679877).EventEmitter),c.prototype._updatePosition=function(e){null===this.endIndex?this._tokenizer._sectionStart<=e?this.startIndex=0:this.startIndex=this._tokenizer._sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this._tokenizer.getAbsoluteIndex()},c.prototype.ontext=function(e){this._updatePosition(1),this.endIndex--,this._cbs.ontext&&this._cbs.ontext(e)},c.prototype.onopentagname=function(e){if(this._lowerCaseTagNames&&(e=e.toLowerCase()),this._tagname=e,!this._options.xmlMode&&e in a)for(var t;(t=this._stack[this._stack.length-1])in a[e];this.onclosetag(t));(this._options.xmlMode||!(e in o))&&(this._stack.push(e),e in s?this._foreignContext.push(!0):e in l&&this._foreignContext.push(!1)),this._cbs.onopentagname&&this._cbs.onopentagname(e),this._cbs.onopentag&&(this._attribs={})},c.prototype.onopentagend=function(){this._updatePosition(1),this._attribs&&(this._cbs.onopentag&&this._cbs.onopentag(this._tagname,this._attribs),this._attribs=null),!this._options.xmlMode&&this._cbs.onclosetag&&this._tagname in o&&this._cbs.onclosetag(this._tagname),this._tagname=""},c.prototype.onclosetag=function(e){if(this._updatePosition(1),this._lowerCaseTagNames&&(e=e.toLowerCase()),(e in s||e in l)&&this._foreignContext.pop(),!this._stack.length||e in o&&!this._options.xmlMode)this._options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this._closeCurrentTag());else{var t=this._stack.lastIndexOf(e);if(-1!==t)if(this._cbs.onclosetag)for(t=this._stack.length-t;t--;)this._cbs.onclosetag(this._stack.pop());else this._stack.length=t;else"p"!==e||this._options.xmlMode||(this.onopentagname(e),this._closeCurrentTag())}},c.prototype.onselfclosingtag=function(){this._options.xmlMode||this._options.recognizeSelfClosing||this._foreignContext[this._foreignContext.length-1]?this._closeCurrentTag():this.onopentagend()},c.prototype._closeCurrentTag=function(){var e=this._tagname;this.onopentagend(),this._stack[this._stack.length-1]===e&&(this._cbs.onclosetag&&this._cbs.onclosetag(e),this._stack.pop())},c.prototype.onattribname=function(e){this._lowerCaseAttributeNames&&(e=e.toLowerCase()),this._attribname=e},c.prototype.onattribdata=function(e){this._attribvalue+=e},c.prototype.onattribend=function(){this._cbs.onattribute&&this._cbs.onattribute(this._attribname,this._attribvalue),this._attribs&&!Object.prototype.hasOwnProperty.call(this._attribs,this._attribname)&&(this._attribs[this._attribname]=this._attribvalue),this._attribname="",this._attribvalue=""},c.prototype._getInstructionName=function(e){var t=e.search(u),r=t
7<0?e:e.substr(0,t);return this._lowerCaseTagNames&&(r=r.toLowerCase()),r},c.prototype.ondeclaration=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("!"+t,"!"+e)}},c.prototype.onprocessinginstruction=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("?"+t,"?"+e)}},c.prototype.oncomment=function(e){this._updatePosition(4),this._cbs.oncomment&&this._cbs.oncomment(e),this._cbs.oncommentend&&this._cbs.oncommentend()},c.prototype.oncdata=function(e){this._updatePosition(1),this._options.xmlMode||this._options.recognizeCDATA?(this._cbs.oncdatastart&&this._cbs.oncdatastart(),this._cbs.ontext&&this._cbs.ontext(e),this._cbs.oncdataend&&this._cbs.oncdataend()):this.oncomment("[CDATA["+e+"]]")},c.prototype.onerror=function(e){this._cbs.onerror&&this._cbs.onerror(e)},c.prototype.onend=function(){if(this._cbs.onclosetag)for(var e=this._stack.length;e>0;this._cbs.onclosetag(this._stack[--e]));this._cbs.onend&&this._cbs.onend()},c.prototype.reset=function(){this._cbs.onreset&&this._cbs.onreset(),this._tokenizer.reset(),this._tagname="",this._attribname="",this._attribs=null,this._stack=[],this._cbs.onparserinit&&this._cbs.onparserinit(this)},c.prototype.parseComplete=function(e){this.reset(),this.end(e)},c.prototype.write=function(e){this._tokenizer.write(e)},c.prototype.end=function(e){this._tokenizer.end(e)},c.prototype.pause=function(){this._tokenizer.pause()},c.prototype.resume=function(){this._tokenizer.resume()},c.prototype.parseChunk=c.prototype.write,c.prototype.done=c.prototype.end,t.exports=c},210102,(e,t,r)=>{"use strict";r.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n},r.toByteArray=function(e){var t,r,n=u(e),o=n[0],s=n[1],l=new a((o+s)*3/4-s),c=0,d=s>0?o-4:o;for(r=0;r<d;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,l[c++]=255&t),1===s&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],o=0,s=r-i;o<s;o+=16383)a.push(function(e,t,r){for(var i,a=[],o=t;o<r;o+=3)i=(e[o]<<16&0xff0000)+(e[o+1]<<8&65280)+(255&e[o+2]),a.push(n[i>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}(e,o,o+16383>s?s:o+16383));return 1===i?a.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&a.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")};for(var n=[],i=[],a="u">typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s<l;++s)n[s]=o[s],i[o.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}i[45]=62,i[95]=63},962866,(e,t,r)=>{r.read=function(e,t,r,n,i){var a,o,s=8*i-n-1,l=(1<<s)-1,u=l>>1,c=-7,d=r?i-1:0,p=r?-1:1,f=e[t+d];for(d+=p,a=f&(1<<-c)-1,f>>=-c,c+=s;c>0;a=256*a+e[t+d],d+=p,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=256*o+e[t+d],d+=p,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,n),a-=u}return(f?-1:1)*o*Math.pow(2,a-n)},r.write=function(e,t,r,n,i,a){var o,s,l,u=8*a-i-1,c=(1<<u)-1,d=c>>1,p=5960464477539062e-23*(23===i),f=n?0:a-1,m=n?1:-1,h=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?t+=p/l:t+=p*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=c?(s=0,o=c):o+d>=1?(s=(t*l-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[r+f]=255&s,f+=m,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[r+f]=255&o,f+=m,o/=256,u-=8);e[r+f-m]|=128*h}},449440,(e,t,r)=>{"use strict";var n=e.r(210102),i=e.r(962866),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);var a=0|m(n,i),l=o(a),u=l.write(n,i);return u!==a&&(l=l.slice(0,u)),l}if(ArrayBuffer.isView(e)){var c=e;if(C(c,Uint8Array)){var h=new Uint8Array(c);return p(h.buffer,h.byteOffset,h.byteLength)}return d(c)}if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(C(e,ArrayBuffer)||e&&C(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(C(e,SharedArrayBuffer)||e&&C(e.buffer,SharedArrayBuffer)))return p(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var g=e.valueOf&&e.valueOf();if(null!=g&&g!==e)return s.from(g,t,r);var v=function(e){if(s.isBuffer(e)){var t=0|f(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?o(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(v)return v;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');
vendor: 17,200 bytes, line 7
7if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),o(e<0?0:0|f(e))}function d(e){for(var t=e.length<0?0:0|f(e.length),r=o(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function p(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),n}function f(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function m(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||C(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return T(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return j(e).length;default:if(i)return n?-1:T(e).length;t=(""+t).toLowerCase(),i=!0}}function h(e,t,r){var i,a,o,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=A[e[a]];return i}(this,t,r);case"utf8":case"utf-8":return b(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return i=this,a=t,o=r,0===a&&o===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(a,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}(this,t,r);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function v(e,t,r,n,i){var a;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(a=r*=1)!=a&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return y(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){var a,o=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;o=2,s/=2,l/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=r;a<s;a++)if(u(e,a)===u(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*o}else -1!==c&&(a-=a-c),c=-1}else for(r+l>s&&(r=s-l),a=r;a>=0;a--){for(var d=!0,p=0;p<l;p++)if(u(e,a+p)!==u(t,p)){d=!1;break}if(d)return a}return -1}function b(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a,o,s,l,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=r)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(a=e[i+1]))==128&&(l=(31&u)<<6|63&a)>127&&(c=l);break;case 3:a=e[i+1],o=e[i+2],(192&a)==128&&(192&o)==128&&(l=(15&u)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=d}var p=n,f=p.length;if(f<=4096)return String.fromCharCode.apply(String,p);for(var m="",h=0;h<f;)m+=String.fromCharCode.apply(String,p.slice(h,h+=4096));return m}function x(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,i,a){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function _(e,t,r,n,i,a){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function k(e,t,r,n,a){return t*=1,r>>>=0,a||_(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function S(e,t,r,n,a){return t*=1,r>>>=0,a||_(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}r.Buffer=s,r.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},r.INSPECT_MAX_BYTES=50,r.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!s.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(C(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),C(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=s.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(C(a,Uint8Array))i+a.length>n.length?s.from(a).copy(n,i):Uint8Array.prototype.set.call(n,a,i);else if(s.isBuffer(a))a.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=a.length}return n},s.byteLength=m,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):h.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(C(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,o=r-t,l=Math.min(a,o),u=this.slice(n,i),c=e.slice(t,r),d=0;d<l;++d)if(u[d]!==c[d]){a=u[d],o=c[d];break}return a<o?-1:+(o<a)},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)},s.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,a,o,s,l,u,c,d,p=this.length-t;if((void 0===r||r>p)&&(r=p),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var f=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=t.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s,l=parseInt(t.substr(2*o,2),16);if((s=l)!=s)break;e[r+o]=l}return o}(this,e,t,r);case"utf8":case"utf-8":return i=t,a=r,I(T(e,this.length-i),this,i,a);case"ascii":case"latin1":case"binary":return o=t,s=r,I(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,o,s);case"base64":return l=t,u=r,I(j(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,d=r,I(function(e,t){for(var r,n,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,d);default:if(f)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),f=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},s.prototype.readInt8=function(e,t){return(e>>>=0,t||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var a=1,o=0;for(this[t]=255&e;++o<r&&(a*=256);)this[t+o]=e/a&255;return t+r},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var a=r-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<r&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return k(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return k(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return S(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return S(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},s.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,a=e.charCodeAt(0);("utf8"===n&&a<128||"latin1"===n)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var o=s.isBuffer(e)?e:s.from(e,n),l=o.length;
7if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%l]}return this};var E=/[^+/0-9A-Za-z-_]/g;function T(e,t){t=t||1/0;for(var r,n=e.length,i=null,a=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319||o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function j(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(E,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function I(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function C(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var A=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},309870,(e,t,r)=>{var n=e.r(449440),i=n.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(a(n,r),r.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},924753,(e,t,r)=>{"use strict";var n=e.r(309870).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=d,t=3;break;default:this.write=p,this.end=f;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function l(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}r.StringDecoder=a,a.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},a.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=o(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=o(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=o(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},888067,(e,t,r)=>{t.exports=s;var n=e.r(946579),i=void 0,a=e.r(924753).StringDecoder,o=e.r(449440).Buffer;function s(e,t){var r=this._parser=new n(e,t),o=this._decoder=new a;i.call(this,{decodeStrings:!1}),this.once("finish",function(){r.end(o.end())})}e.r(896812)(s,i),s.prototype._write=function(e,t,r){e instanceof o&&(e=this._decoder.write(e)),this._parser.write(e),r()}},181264,(e,t,r)=>{t.exports=i;var n=e.r(888067);function i(e){n.call(this,new a(this),e)}function a(e){this.scope=e}e.r(896812)(i,n),i.prototype.readable=!0;var o=e.r(105357).EVENTS;
7Object.keys(o).forEach(function(e){if(0===o[e])a.prototype["on"+e]=function(){this.scope.emit(e)};else if(1===o[e])a.prototype["on"+e]=function(t){this.scope.emit(e,t)};else if(2===o[e])a.prototype["on"+e]=function(t,r){this.scope.emit(e,t,r)};else throw Error("wrong number of arguments!")})},249907,(e,t,r)=>{function n(e){this._cbs=e||{}}t.exports=n;var i=e.r(105357).EVENTS;Object.keys(i).forEach(function(e){if(0===i[e])e="on"+e,n.prototype[e]=function(){this._cbs[e]&&this._cbs[e]()};else if(1===i[e])e="on"+e,n.prototype[e]=function(t){this._cbs[e]&&this._cbs[e](t)};else if(2===i[e])e="on"+e,n.prototype[e]=function(t,r){this._cbs[e]&&this._cbs[e](t,r)};else throw Error("wrong number of arguments")})},584158,(e,t,r)=>{function n(e){this._cbs=e||{},this.events=[]}t.exports=n;var i=e.r(105357).EVENTS;Object.keys(i).forEach(function(e){if(0===i[e])e="on"+e,n.prototype[e]=function(){this.events.push([e]),this._cbs[e]&&this._cbs[e]()};else if(1===i[e])e="on"+e,n.prototype[e]=function(t){this.events.push([e,t]),this._cbs[e]&&this._cbs[e](t)};else if(2===i[e])e="on"+e,n.prototype[e]=function(t,r){this.events.push([e,t,r]),this._cbs[e]&&this._cbs[e](t,r)};else throw Error("wrong number of arguments")}),n.prototype.onreset=function(){this.events=[],this._cbs.onreset&&this._cbs.onreset()},n.prototype.restart=function(){this._cbs.onreset&&this._cbs.onreset();for(var e=0,t=this.events.length;e<t;e++)if(this._cbs[this.events[e][0]]){var r=this.events[e].length;1===r?this._cbs[this.events[e][0]]():2===r?this._cbs[this.events[e][0]](this.events[e][1]):this._cbs[this.events[e][0]](this.events[e][1],this.events[e][2])}}},105357,(e,t,r)=>{var n=e.r(946579),i=e.r(128616);function a(e,r){return delete t.exports[e],t.exports[e]=r,r}t.exports={Parser:n,Tokenizer:e.r(421455),ElementType:e.r(5815),DomHandler:i,get FeedHandler(){return a("FeedHandler",e.r(625044))},get Stream(){return a("Stream",e.r(181264))},get WritableStream(){return a("WritableStream",e.r(888067))},get ProxyHandler(){return a("ProxyHandler",e.r(249907))},get DomUtils(){return a("DomUtils",e.r(466054))},get CollectingHandler(){return a("CollectingHandler",e.r(584158))},DefaultHandler:i,get RssHandler(){return a("RssHandler",this.FeedHandler)},parseDOM:function(e,t){var r=new i(t);return new n(r,t).end(e),r.dom},parseFeed:function(e,r){var i=new t.exports.FeedHandler(r);return new n(i,r).end(e),i.dom},createDomStream:function(e,t,r){return new n(new i(e,t,r),t)},EVENTS:{attribute:2,cdatastart:0,cdataend:0,text:1,processinginstruction:2,comment:1,commentend:0,closetag:1,opentag:2,opentagname:1,error:1,end:0}}},741078,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return e.data}},604670,e=>{"use strict";var t=e.i(22114),r=e.i(7284);!function(e){if(!e||"u"<typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);
7-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}
7.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}
7}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}} 8`);var n=e=>"number"==typeof e&&!isNaN(e),i=e=>"string"==typeof e||"function"==typeof e?e:null,a=e=>(0,t.isValidElement)(e)||"string"==typeof e||"function"==typeof e||n(e);function o(e,t,r=300){let{scrollHeight:n,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=n+"px",i.transition=`all ${r}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,r)})})}function s({enter:e,exit:r,appendPosition:n=!1,collapse:i=!0,collapseDuration:a=300}){return function({children:s,position:l,preventExitTransition:u,done:c,nodeRef:d,isIn:p,playToast:f}){let m=n?`${e}--${l}`:e,h=n?`${r}--${l}`:r,g=(0,t.useRef)(0);return(0,t.useLayoutEffect)(()=>{let e=d.current,t=m.split(" "),r=n=>{n.target===d.current&&(f(),e.removeEventListener("animationend",r),e.removeEventListener("animationcancel",r),0===g.current&&"animationcancel"!==n.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",r),e.addEventListener("animationcancel",r)},[]),(0,t.useEffect)(()=>{let e=d.current,t=()=>{e.removeEventListener("animationend",t),i?o(e,c,a):c()};p||(u?t():(g.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))},[p]),t.default.createElement(t.default.Fragment,null,s)}}function l(e,t){return{content:u(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:t}}function u(e,r,n=!1){return(0,t.isValidElement)(e)&&"string"!=typeof e.type?(0,t.cloneElement)(e,{closeToast:r.closeToast,toastProps:r,data:r.data,isPaused:n}):"function"==typeof e?e({closeToast:r.closeToast,toastProps:r,data:r.data,isPaused:n}):e}function c({delay:e,isRunning:n,closeToast:i,type:a="default",hide:o,className:s,controlledProgress:l,progress:u,rtl:d,isIn:p,theme:f}){let m=o||l&&0===u,h={animationDuration:`${e}ms`,animationPlayState:n?"running":"paused"};l&&(h.transform=`scaleX(${u})`);let g=(0,r.default)("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":d}),v="function"==typeof s?s({rtl:d,type:a,defaultClassName:g}):(0,r.default)(g,s);return t.default.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":m},t.default.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${a}`}),t.default.createElement("div",{role:"progressbar","aria-hidden":m?"true":"false","aria-label":"notification timer",className:v,style:h,...{[l&&u>=1?"onTransitionEnd":"onAnimationEnd"]:l&&u<1?null:()=>{p&&i()}}}))}var d=1,p=()=>`${d++}`,f=new Map,m=[],h=new Set,g=e=>
8h.forEach(t=>t(e));function v(e,t){var r;if(t)return!!(null!=(r=f.get(t))&&r.isToastActive(e));let n=!1;return f.forEach(t=>{t.isToastActive(e)&&(n=!0)}),n}function y(e,t){a(e)&&(f.size>0||m.push({content:e,options:t}),f.forEach(r=>{r.buildToast(e,t)}))}function b(e,t){f.forEach(r=>{null!=t&&null!=t&&t.containerId&&(null==t?void 0:t.containerId)!==r.id||r.toggle(e,null==t?void 0:t.id)})}function x(e,t){return y(e,t),t.toastId}function w(e,t){var r;return{...t,type:t&&t.type||e,toastId:(r=t)&&("string"==typeof r.toastId||n(r.toastId))?r.toastId:p()}}function _(e){return(t,r)=>x(t,w(e,r))}function k(e,t){return x(e,w("default",t))}k.loading=(e,t)=>x(e,w("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),k.promise=function(e,{pending:t,error:r,success:n},i){let a;t&&(a="string"==typeof t?k.loading(t,i):k.loading(t.render,{...i,...t}));let o={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},s=(e,t,r)=>{if(null==t)return void k.dismiss(a);let n={type:e,...o,...i,data:r},s="string"==typeof t?{render:t}:t;return a?k.update(a,{...n,...s}):k(s.render,{...n,...s}),r},l="function"==typeof e?e():e;return l.then(e=>s("success",n,e)).catch(e=>s("error",r,e)),l},k.success=_("success"),k.info=_("info"),k.error=_("error"),k.warning=_("warning"),k.warn=k.warning,k.dark=(e,t)=>x(e,w("default",{theme:"dark",...t})),k.dismiss=function(e){!function(e){let t;if(!(f.size>0)){m=m.filter(t=>null!=e&&t.options.toastId!==e);return}if(null==e||"string"==typeof(t=e)||n(t))f.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=f.get(e.containerId);t?t.removeToast(e.id):f.forEach(t=>{t.removeToast(e.id)})}}(e)},k.clearWaitingQueue=(e={})=>{f.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})},k.isActive=v,k.update=(e,t={})=>{let r=((e,{containerId:t})=>{var r;return null==(r=f.get(t||1))?void 0:r.toasts.get(e)})(e,t);if(r){let{props:n,content:i}=r,a={delay:100,...n,...t,toastId:t.toastId||e,updateId:p()};a.toastId!==e&&(a.staleId=e);let o=a.render||i;delete a.render,x(o,a)}},k.done=e=>{k.update(e,{progress:1})},k.onChange=function(e){return h.add(e),()=>{h.delete(e)}},k.play=e=>b(!0,e),k.pause=e=>b(!1,e);var S="u">typeof window?t.useLayoutEffect:t.useEffect,E=({theme:e,type:r,isLoading:n,...i})=>t.default.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===e?"currentColor":`var(--toastify-icon-color-${r})`,...i}),T={info:function(e){return t.default.createElement(E,{...e},t.default.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return t.default.createElement(E,{...e},t.default.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return t.default.createElement(E,{...e},t.default.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return t.default.createElement(E,{...e},t.default.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return t.default.createElement("div",{className:"Toastify__spinner"})}},j=e=>{let{isRunning:n,preventExitTransition:i,toastRef:a,eventHandlers:o,playToast:s}=function(e){var r,n;let[i,a]=(0,t.useState)(!1),[o,s]=(0,t.useState)(!1),l=(0,t.useRef)(null),u=(0,t.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:d,closeToast:p,onClick:m,closeOnClick:h}=e;function g(){a(!0)}function v(){a(!1)}function y(t){let r=l.current;if(u.canDrag&&r){u.didMove=!0,i&&v(),"x"===e.draggableDirection?u.delta=t.clientX-u.start:u.delta=t.clientY-u.start,u.start!==t.clientX&&(u.canCloseOnClick=!1);let n="x"===e.draggableDirection?`${u.delta}px, var(--y)`:`0, calc(${u.delta}px + var(--y))`;r.style.transform=`translate3d(${n},0)`,r.style.opacity=`${1-Math.abs(u.delta/u.removalDistance)}`}}function b(){document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",b);let t=l.current;if(u.canDrag&&u.didMove&&t){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance){s(!0),e.closeToast(!0),e.collapseAll();return}t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}r={id:e.toastId,containerId:e.containerId,fn:a},null==(n=f.get(r.containerId||1))||n.setToggle(r.id,r.fn),(0,t.useEffect)(()=>
8{if(e.pauseOnFocusLoss)return document.hasFocus()||v(),window.addEventListener("focus",g),window.addEventListener("blur",v),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",v)}},[e.pauseOnFocusLoss]);let x={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){u.didMove=!1,document.addEventListener("pointermove",y),document.addEventListener("pointerup",b);let r=l.current;u.canCloseOnClick=!0,u.canDrag=!0,r.style.transition="none","x"===e.draggableDirection?(u.start=t.clientX,u.removalDistance=r.offsetWidth*(e.draggablePercent/100)):(u.start=t.clientY,u.removalDistance=r.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){let{top:r,bottom:n,left:i,right:a}=l.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=i&&t.clientX<=a&&t.clientY>=r&&t.clientY<=n?v():g()}};return c&&d&&(x.onMouseEnter=v,e.stacked||(x.onMouseLeave=g)),h&&(x.onClick=e=>{m&&m(e),u.canCloseOnClick&&p(!0)}),{playToast:g,pauseToast:v,isRunning:i,preventExitTransition:o,toastRef:l,eventHandlers:x}}(e),{closeButton:l,children:d,autoClose:p,onClick:m,type:h,hideProgressBar:g,closeToast:v,transition:y,position:b,className:x,style:w,progressClassName:_,updateId:k,role:S,progress:E,rtl:j,toastId:I,deleteToast:C,isIn:A,isLoading:N,closeOnClick:O,theme:R,ariaLabel:P}=e,D=(0,r.default)("Toastify__toast",`Toastify__toast-theme--${R}`,`Toastify__toast--${h}`,{"Toastify__toast--rtl":j},{"Toastify__toast--close-on-click":O}),$="function"==typeof x?x({rtl:j,position:b,type:h,defaultClassName:D}):(0,r.default)(D,x),L=function({theme:e,type:r,isLoading:n,icon:i}){let a=null,o={theme:e,type:r};return!1===i||("function"==typeof i?a=i({...o,isLoading:n}):(0,t.isValidElement)(i)?a=(0,t.cloneElement)(i,o):n?a=T.spinner():r in T&&(a=T[r](o))),a}(e),M=!!E||!p,U={closeToast:v,type:h,theme:R},z=null;return!1===l||(z="function"==typeof l?l(U):(0,t.isValidElement)(l)?(0,t.cloneElement)(l,U):function({closeToast:e,theme:r,ariaLabel:n="close"}){return t.default.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:t=>{t.stopPropagation(),e(!0)},"aria-label":n},t.default.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},t.default.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(U)),t.default.createElement(y,{isIn:A,done:C,position:b,preventExitTransition:i,nodeRef:a,playToast:s},t.default.createElement("div",{id:I,tabIndex:0,onClick:m,"data-in":A,className:$,...o,style:w,ref:a,...A&&{role:S,"aria-label":P}},null!=L&&t.default.createElement("div",{className:(0,r.default)("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!N})},L),u(d,e,!n),z,!e.customProgressBar&&t.default.createElement(c,{...k&&!M?{key:`p-${k}`}:{},rtl:j,theme:R,delay:p,isRunning:n,isIn:A,closeToast:v,hide:g,type:h,className:_,controlledProgress:M,progress:E||0})))},I=(e,t=!1)=>({enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}),C=s(I("bounce",!0)),A=s(I("slide",!0)),N=s(I("zoom")),O=s(I("flip")),R={position:"top-right",transition:C,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:e=>e.altKey&&"KeyT"===e.code};e.s(["Bounce",0,C,"Flip",0,O,"Icons",0,T,"Slide",0,A,"ToastContainer",0,function(e){let o={...R,...e},s=e.stacked,[u,c]=(0,t.useState)(!0),d=(0,t.useRef)(null),{getToastToRender:p,isToastActive:h,count:b}=function(e){var r;let o,{subscribe:s,getSnapshot:u,setProps:c}=(0,t.useRef)((o=e.containerId||1,{subscribe(t){let r,s,u,c,d,p,h,v,b,x,w,_=(r=1,s=0,u=[],c=[],d=e,p=new Map,h=new Set,v=()=>{c=Array.from(p.values()),h.forEach(e=>e())},b=e=>{var t,r;null==(r=null==(t=e.props)?void 0:t.onClose)||r.call(t,e.removalReason),e.isActive=!1},x=e=>
8{if(null==e)p.forEach(b);else{let t=p.get(e);t&&b(t)}v()},w=e=>{var t,r;let{toastId:n,updateId:i}=e.props,a=null==i;e.staleId&&p.delete(e.staleId),e.isActive=!0,p.set(n,e),v(),g(l(e,a?"added":"updated")),a&&(null==(r=(t=e.props).onOpen)||r.call(t))},{id:o,props:d,observe:e=>(h.add(e),()=>h.delete(e)),toggle:(e,t)=>{p.forEach(r=>{var n;(null==t||t===r.props.toastId)&&(null==(n=r.toggle)||n.call(r,e))})},removeToast:x,toasts:p,clearQueue:()=>{s-=u.length,u=[]},buildToast:(e,t)=>{let c,f;if((({containerId:e,toastId:t,updateId:r})=>{let n=p.has(t)&&null==r;return(e?e!==o:1!==o)||n})(t))return;let{toastId:m,updateId:h,data:y,staleId:b,delay:_}=t,k=null==h;k&&s++;let S={...d,style:d.toastStyle,key:r++,...Object.fromEntries(Object.entries(t).filter(([e,t])=>null!=t)),toastId:m,updateId:h,data:y,isIn:!1,className:i(t.className||d.toastClassName),progressClassName:i(t.progressClassName||d.progressClassName),autoClose:!t.isLoading&&(c=t.autoClose,f=d.autoClose,!1===c||n(c)&&c>0?c:f),closeToast(e){p.get(m).removalReason=e,x(m)},deleteToast(){let e=p.get(m);if(null!=e){if(g(l(e,"removed")),p.delete(m),--s<0&&(s=0),u.length>0)return void w(u.shift());v()}}};S.closeButton=d.closeButton,!1===t.closeButton||a(t.closeButton)?S.closeButton=t.closeButton:!0===t.closeButton&&(S.closeButton=!a(d.closeButton)||d.closeButton);let E={content:e,props:S,staleId:b};d.limit&&d.limit>0&&s>d.limit&&k?u.push(E):n(_)?setTimeout(()=>{w(E)},_):w(E)},setProps(e){d=e},setToggle:(e,t)=>{let r=p.get(e);r&&(r.toggle=t)},isToastActive:e=>{var t;return null==(t=p.get(e))?void 0:t.isActive},getSnapshot:()=>c});f.set(o,_);let k=_.observe(t);return m.forEach(e=>y(e.content,e.options)),m=[],()=>{k(),f.delete(o)}},setProps(e){var t;null==(t=f.get(o))||t.setProps(e)},getSnapshot(){var e;return null==(e=f.get(o))?void 0:e.getSnapshot()}})).current;c(e);let d=null==(r=(0,t.useSyncExternalStore)(s,u,u))?void 0:r.slice();return{getToastToRender:function(t){if(!d)return[];let r=new Map;return e.newestOnTop&&d.reverse(),d.forEach(e=>{let{position:t}=e.props;r.has(t)||r.set(t,[]),r.get(t).push(e)}),Array.from(r,e=>t(e[0],e[1]))},isToastActive:v,count:null==d?void 0:d.length}}(o),{className:x,style:w,rtl:_,containerId:E,hotKeys:T}=o;function I(){s&&(c(!0),k.play())}return S(()=>{var e;if(s){let t=d.current.querySelectorAll('[data-in="true"]'),r=null==(e=o.position)?void 0:e.includes("top"),n=0,i=0;Array.from(t).reverse().forEach((e,t)=>{e.classList.add("Toastify__toast--stacked"),t>0&&(e.dataset.collapsed=`${u}`),e.dataset.pos||(e.dataset.pos=r?"top":"bot");let a=n*(u?.2:1)+(u?0:12*t);e.style.setProperty("--y",`${r?a:-1*a}px`),e.style.setProperty("--g","12"),e.style.setProperty("--s",`${1-(u?i:0)}`),n+=e.offsetHeight,i+=.025})}},[u,b,s]),(0,t.useEffect)(()=>{function e(e){var t;let r=d.current;T(e)&&(null==(t=r.querySelector('[tabIndex="0"]'))||t.focus(),c(!1),k.pause()),"Escape"===e.key&&(document.activeElement===r||null!=r&&r.contains(document.activeElement))&&(c(!0),k.play())}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[T]),t.default.createElement("section",{ref:d,className:"Toastify",id:E,onMouseEnter:()=>{s&&(c(!1),k.pause())},onMouseLeave:I,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":o["aria-label"]},p((e,n)=>{var a;let o,l=n.length?{...w}:{...w,pointerEvents:"none"};return t.default.createElement("div",{tabIndex:-1,className:(a=e,o=(0,r.default)("Toastify__toast-container",`Toastify__toast-container--${a}`,{"Toastify__toast-container--rtl":_}),"function"==typeof x?x({position:a,rtl:_,defaultClassName:o}):(0,r.default)(o,i(x))),"data-stacked":s,style:l,key:`c-${e}`},n.map(({content:e,props:r})=>t.default.createElement(j,{...r,stacked:s,collapseAll:I,isIn:h(r.toastId,r.containerId),key:`t-${r.key}`},e)))}))},"Zoom",0,N,"collapseToast",0,o,"cssTransition",0,s,"toast",0,k])},824627,e=>{"use strict";var t=function(){return(t=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};
8"function"==typeof SuppressedError&&SuppressedError,e.s(["__assign",()=>t,"__awaiter",0,function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function o(e){try{l(n.next(e))}catch(e){a(e)}}function s(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,s)}l((n=n.apply(e,t||[])).next())})},"__rest",0,function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},"__spreadArray",0,function(e,t,r){if(r||2==arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}])},120480,(e,t,r)=>{"use strict";var n=e.r(22114),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,o=n.useEffect,s=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return s(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),o(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(r),r};r.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},207102,(e,t,r)=>{"use strict";t.exports=e.r(120480)},857691,931179,e=>{"use strict";let t;var r,n,i=e.i(865521);let a=Object.create(null),o=e=>globalThis.process?.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?a:globalThis),s=new Proxy(a,{get:(e,t)=>o()[t]??a[t],has:(e,t)=>t in o()||t in a,set:(e,t,r)=>(o(!0)[t]=r,!0),deleteProperty(e,t){if(!t)return!1;let r=o(!0);return delete r[t],!0},ownKeys:()=>Object.keys(o(!0))});function l(e,t){return void 0!==i.default&&i.default.env?i.default.env[e]??t:"u">typeof Deno?Deno.env.get(e)??t:"u">typeof Bun?Bun.env[e]??t:t}function u(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,{code:e,message:t,toString:()=>e}]))}s.NODE_ENV,Object.freeze({get BETTER_AUTH_SECRET(){return l("BETTER_AUTH_SECRET")},get AUTH_SECRET(){return l("AUTH_SECRET")},get BETTER_AUTH_TELEMETRY(){return l("BETTER_AUTH_TELEMETRY")},get BETTER_AUTH_TELEMETRY_ID(){return l("BETTER_AUTH_TELEMETRY_ID")},get NODE_ENV(){return l("NODE_ENV","development")},get PACKAGE_VERSION(){return l("PACKAGE_VERSION","0.0.0")},get BETTER_AUTH_TELEMETRY_ENDPOINT(){return l("BETTER_AUTH_TELEMETRY_ENDPOINT","")}}),u({USER_NOT_FOUND:"User not found",FAILED_TO_CREATE_USER:"Failed to create user",FAILED_TO_CREATE_SESSION:"Failed to create session",FAILED_TO_UPDATE_USER:"Failed to update user",FAILED_TO_GET_SESSION:"Failed to get session",INVALID_PASSWORD:"Invalid password",INVALID_EMAIL:"Invalid email",INVALID_EMAIL_OR_PASSWORD:"Invalid email or password",INVALID_USER:"Invalid user",SOCIAL_ACCOUNT_ALREADY_LINKED:"Social account already linked",PROVIDER_NOT_FOUND:"Provider not found",INVALID_TOKEN:"Invalid token",TOKEN_EXPIRED:"Token expired",ID_TOKEN_NOT_SUPPORTED:"id_token not supported",FAILED_TO_GET_USER_INFO:"Failed to get user info",USER_EMAIL_NOT_FOUND:"User email not found",EMAIL_NOT_VERIFIED:"Email not verified",PASSWORD_TOO_SHORT:"Password too short",PASSWORD_TOO_LONG:"Password too long",USER_ALREADY_EXISTS:"User already exists.",USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL:"User already exists. Use another email.",EMAIL_CAN_NOT_BE_UPDATED:"Email can not be updated",CHANGE_EMAIL_DISABLED:"Change email is disabled",CREDENTIAL_ACCOUNT_NOT_FOUND:"Credential account not found",SESSION_EXPIRED:"Session expired. Re-authenticate to perform this action.",FAILED_TO_UNLINK_LAST_ACCOUNT:"You can't unlink your last account",ACCOUNT_NOT_FOUND:"Account not found",USER_ALREADY_HAS_PASSWORD:"User already has a password. Provide that to delete the account.",CROSS_SITE_
8NAVIGATION_LOGIN_BLOCKED:"Cross-site navigation login blocked. This request appears to be a CSRF attack.",VERIFICATION_EMAIL_NOT_ENABLED:"Verification email isn't enabled",EMAIL_ALREADY_VERIFIED:"Email is already verified",EMAIL_MISMATCH:"Email mismatch",SESSION_NOT_FRESH:"Session is not fresh",LINKED_ACCOUNT_ALREADY_EXISTS:"Linked account already exists",INVALID_ORIGIN:"Invalid origin",INVALID_CALLBACK_URL:"Invalid callbackURL",INVALID_REDIRECT_URL:"Invalid redirectURL",INVALID_ERROR_CALLBACK_URL:"Invalid errorCallbackURL",INVALID_NEW_USER_CALLBACK_URL:"Invalid newUserCallbackURL",MISSING_OR_NULL_ORIGIN:"Missing or null Origin",CALLBACK_URL_REQUIRED:"callbackURL is required",FAILED_TO_CREATE_VERIFICATION:"Unable to create verification",FIELD_NOT_ALLOWED:"Field not allowed to be set",ASYNC_VALIDATION_NOT_SUPPORTED:"Async validation is not supported",VALIDATION_ERROR:"Validation Error",MISSING_FIELD:"Field is required",METHOD_NOT_ALLOWED_DEFER_SESSION_REQUIRED:"POST method requires deferSessionRefresh to be enabled in session config",BODY_MUST_BE_AN_OBJECT:"Body must be an object",PASSWORD_ALREADY_SET:"User already has a password set"});let c={OK:200,CREATED:201,ACCEPTED:202,NO_CONTENT:204,MULTIPLE_CHOICES:300,MOVED_PERMANENTLY:301,FOUND:302,SEE_OTHER:303,NOT_MODIFIED:304,TEMPORARY_REDIRECT:307,BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,METHOD_NOT_ALLOWED:405,NOT_ACCEPTABLE:406,PROXY_AUTHENTICATION_REQUIRED:407,REQUEST_TIMEOUT:408,CONFLICT:409,GONE:410,LENGTH_REQUIRED:411,PRECONDITION_FAILED:412,PAYLOAD_TOO_LARGE:413,URI_TOO_LONG:414,UNSUPPORTED_MEDIA_TYPE:415,RANGE_NOT_SATISFIABLE:416,EXPECTATION_FAILED:417,"I'M_A_TEAPOT":418,MISDIRECTED_REQUEST:421,UNPROCESSABLE_ENTITY:422,LOCKED:423,FAILED_DEPENDENCY:424,TOO_EARLY:425,UPGRADE_REQUIRED:426,PRECONDITION_REQUIRED:428,TOO_MANY_REQUESTS:429,REQUEST_HEADER_FIELDS_TOO_LARGE:431,UNAVAILABLE_FOR_LEGAL_REASONS:451,INTERNAL_SERVER_ERROR:500,NOT_IMPLEMENTED:501,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,HTTP_VERSION_NOT_SUPPORTED:505,VARIANT_ALSO_NEGOTIATES:506,INSUFFICIENT_STORAGE:507,LOOP_DETECTED:508,NOT_EXTENDED:510,NETWORK_AUTHENTICATION_REQUIRED:511};var d=class extends Error{status;body;headers;statusCode;constructor(e="INTERNAL_SERVER_ERROR",t,r={},n="number"==typeof e?e:c[e]){super(t?.message,t?.cause?{cause:t.cause}:void 0),this.status=e,this.body=t,this.headers=r,this.statusCode=n,this.name="APIError",this.status=e,this.headers=r,this.statusCode=n,this.body=t}};Symbol.for("better-call:api-error-headers"),r=d,n=Error,Object.defineProperty((class e extends r{#e;constructor(...e){if(function(){let e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return void 0===e?Object.isExtensible(Error):Object.prototype.hasOwnProperty.call(e,"writable")?e.writable:void 0!==e.set}()){const t=Error.stackTraceLimit;Error.stackTraceLimit=0,super(...e),Error.stackTraceLimit=t}else super(...e);const t=Error().stack;t&&(this.#e=function(e){let t=e.split("\n at ");return t.length<=1?e:(t.splice(1,1),t.join("\n at "))}(t.replace(/^Error/,this.name)))}get errorStack(){return this.#e}}).prototype,"constructor",{get:()=>n,enumerable:!1,configurable:!0});var p=class extends Error{constructor(e,t){super(e,t),this.name="BetterAuthError",this.message=e,this.stack=""}};function f(e){let t=e.length;for(;t>0&&47===e.charCodeAt(t-1);)t--;return t===e.length?e:e.slice(0,t)}function m(e,t="/api/auth"){try{let t=new URL(e);if("http:"!==t.protocol&&"https:"!==t.protocol)throw new p(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(t){if(t instanceof p)throw t;throw new p(`Invalid base URL: ${e}. Please provide a valid base URL.`,{cause:t})}if(function(e){try{return"/"!==(f(new URL(e).pathname)||"/")}catch{throw new p(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}(e))return e;let r=f(e);return t&&"/"!==t?(t=t.startsWith("/")?t:`/${t}`,`${r}${t}`):r}let h={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},g=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,v={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:1/0,"-infinity":-1/0},y=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/,b=["javascript:","data:","vbscript:"],x={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&function(e){let t;try{t=new URL(e)}catch{return!0}return!b.includes(t.protocol)}(e.data.url)&&"u">typeof window&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}},w=(e,t,r,n)=>(e.events=e.events||{},e.events[r+10]||(e.events[r+10]=n(t=>{e.events[r].reduceRight((e,t)=>(t(e),e),{shared:{},...t})})),e.events[r]=e.events[r]||[],e.events[r].push(t),()=>{let n=e.events[r],i=n.indexOf(t);n.splice(i,1),n.length||(delete e.events[r],e.events[r+10](),delete e.events[r+10])}),_=(e,t)=>
8w(e,r=>{let n=t(r);n&&e.events[6].push(n)},5,t=>{let r=e.listen;e.listen=(...n)=>(e.lc||e.active||(e.active=!0,t()),r(...n));let n=e.off;return e.events[6]=[],e.off=()=>{n(),setTimeout(()=>{if(e.active&&!e.lc){for(let t of(e.active=!1,e.events[6]))t();e.events[6]=[]}},1e3)},()=>{e.listen=r,e.off=n}});function k(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function S(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!S(e[r],t[r]))return!1;return!0}if(k(e)&&k(t)){let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(!(n in t)||!S(e[n],t[n]))return!1;return!0}return!1}function E(e,t){return w(e,({newValue:r,abort:n})=>{t(e.value,r)&&n()},2,t=>{let r=e.set,n=e.setKey;return e.setKey&&(e.setKey=(r,i)=>{let a;if(t({abort:()=>{a=!0},changed:r,newValue:{...e.value,[r]:i}}),!a)return n(r,i)}),e.set=e=>{let n;if(t({abort:()=>{n=!0},newValue:e}),!n)return r(e)},()=>{e.set=r,e.setKey=n}})}let T=Symbol.for("better-auth:broadcast-channel");var j=class{listeners=new Set;name;constructor(e="better-auth.message"){this.name=e}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}post(e){if("u">typeof window)try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:Math.floor(Date.now()/1e3)}))}catch{}}setup(){if("u"<typeof window||void 0===window.addEventListener)return()=>{};let e=e=>{if(e.key!==this.name)return;let t=JSON.parse(e.newValue??"{}");t?.event==="session"&&t?.data&&this.listeners.forEach(e=>e(t))};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}}};function I(e="better-auth.message"){return globalThis[T]||(globalThis[T]=new j(e)),globalThis[T]}let C=Symbol.for("better-auth:focus-manager");var A=class{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setFocused(e){this.listeners.forEach(t=>t(e))}setup(){if("u"<typeof window||"u"<typeof document||void 0===window.addEventListener)return()=>{};let e=()=>{"visible"===document.visibilityState&&this.setFocused(!0)};return document.addEventListener("visibilitychange",e,!1),()=>{document.removeEventListener("visibilitychange",e,!1)}}};function N(){return globalThis[C]||(globalThis[C]=new A),globalThis[C]}let O=Symbol.for("better-auth:online-manager");var R=class{listeners=new Set;isOnline="u"<typeof navigator||navigator.onLine;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setOnline(e){this.isOnline=e,this.listeners.forEach(t=>t(e))}setup(){if("u"<typeof window||void 0===window.addEventListener)return()=>{};let e=()=>this.setOnline(!0),t=()=>this.setOnline(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",t,!1),()=>{window.removeEventListener("online",e,!1),window.removeEventListener("offline",t,!1)}}};function P(){return globalThis[O]||(globalThis[O]=new R),globalThis[O]}let D=()=>Math.floor(Date.now()/1e3),$=[],L=0,M=globalThis.nanostoresGlobal||={epoch:0},U=e=>{let t=[],r={get:()=>(r.lc||r.listen(()=>{})(),r.value),init:e,lc:0,listen:e=>(r.lc=t.push(e),()=>{for(let t=L+4;t<$.length;)$[t]===e?$.splice(t,4):t+=4;let n=t.indexOf(e);~n&&(t.splice(n,1),--r.lc||r.off())}),notify(e,n){M.epoch++;let i=!$.length;for(let i of t)$.push(i,r.value,e,n);if(i){for(L=0;L<$.length;L+=4)$[L]($[L+1],$[L+2],$[L+3]);$.length=0}},off(){},set(e){let t=r.value;t!==e&&(r.value=e,r.notify(t))},subscribe(e){let t=r.listen(e);return e(r.value),t},value:e};return r};function z(e){return"object"==typeof e&&null!==e&&"data"in e&&"error"in e?e:{data:e,error:null}}function F(e,t){return S(e.data,t.data)&&e.error===t.error&&e.isPending===t.isPending&&e.isRefetching===t.isRefetching&&e.refetch===t.refetch}function q(e){if(null===e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.iterator in e)&&(!(Symbol.toStringTag in e)||"[object Module]"===Object.prototype.toString.call(e))}function Z(e){return(...t)=>t.reduce((t,r)=>(function e(t,r,n=".",i){if(!q(r))return e(t,{},n,i);let a=Object.assign({},r);for(let r in t){if("__proto__"===r||"constructor"===r)continue;let o=t[r];null!=o&&(i&&i(a,r,o,n)||(Array.isArray(o)&&Array.isArray(a[r])?a[r]=[...o,...a[r]]:q(o)&&q(a[r])?a[r]=e(o,a[r],(n?`${n}.`:"")+r.toString(),i):a[r]=o))}return a})(t,r,"",e),{})}let V=Z();Z((e,t,r)=>{if(void 0!==e[t]&&"function"==typeof r)return e[t]=r(e[t]),!0}),Z((e,t,r)=>{if(Array.isArray(e[t])&&"function"==typeof r)return e[t]=r(e[t]),!0});var B=Object.defineProperty,H=Object.defineProperties,W=Object.getOwnPropertyDescriptors,G=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,X=(e,t,r)=>t in e?B(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,J=(e,t)=>
8{for(var r in t||(t={}))K.call(t,r)&&X(e,r,t[r]);if(G)for(var r of G(t))Y.call(t,r)&&X(e,r,t[r]);return e},Q=(e,t)=>H(e,W(t)),ee=class extends Error{constructor(e,t,r){super(t||e.toString(),{cause:r}),this.status=e,this.statusText=t,this.error=r,Error.captureStackTrace(this,this.constructor)}},et=async(e,t)=>{var r,n,i,a,o,s;let l=t||{},u={onRequest:[null==t?void 0:t.onRequest],onResponse:[null==t?void 0:t.onResponse],onSuccess:[null==t?void 0:t.onSuccess],onError:[null==t?void 0:t.onError],onRetry:[null==t?void 0:t.onRetry]};if(!t||!(null==t?void 0:t.plugins))return{url:e,options:l,hooks:u};for(let c of(null==t?void 0:t.plugins)||[]){if(c.init){let n=await (null==(r=c.init)?void 0:r.call(c,e.toString(),t));l=n.options||l,e=n.url}u.onRequest.push(null==(n=c.hooks)?void 0:n.onRequest),u.onResponse.push(null==(i=c.hooks)?void 0:i.onResponse),u.onSuccess.push(null==(a=c.hooks)?void 0:a.onSuccess),u.onError.push(null==(o=c.hooks)?void 0:o.onError),u.onRetry.push(null==(s=c.hooks)?void 0:s.onRetry)}return{url:e,options:l,hooks:u}},er=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},en=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}},ei=async e=>{let t={},r=async e=>"function"==typeof e?await e():e;if(null==e?void 0:e.auth){if("Bearer"===e.auth.type){let n=await r(e.auth.token);if(!n)return t;t.authorization=`Bearer ${n}`}else if("Basic"===e.auth.type){let[n,i]=await Promise.all([r(e.auth.username),r(e.auth.password)]);if(!n||!i)return t;t.authorization=`Basic ${btoa(`${n}:${i}`)}`}else if("Custom"===e.auth.type){let[n,i]=await Promise.all([r(e.auth.prefix),r(e.auth.value)]);if(!i)return t;t.authorization=`${null!=n?n:""} ${i}`}}return t},ea=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function eo(e){if(void 0===e)return!1;let t=typeof e;return"string"===t||"number"===t||"boolean"===t||null===t||"object"===t&&(!!Array.isArray(e)||!e.buffer&&(e.constructor&&"Object"===e.constructor.name||"function"==typeof e.toJSON))}function es(e){try{return JSON.parse(e)}catch(t){return e}}function el(e){return"function"==typeof e}function eu(...e){let t={};for(let r of e)if(r)if(r instanceof Headers)r.forEach((e,r)=>{t[r]=e});else for(let[e,n]of Array.isArray(r)?r:Object.entries(r))null!=n&&(t[e]=n);return t}async function ec(e){let t=new Headers(eu(null==e?void 0:e.headers,await ei(e)));if(!t.has("content-type")){let r=eo(null==e?void 0:e.body)?"application/json":null;r&&t.set("content-type",r)}return t}var ed=class e extends Error{constructor(t,r){super(r||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,e.prototype)}};async function ep(e,t){let r=await e["~standard"].validate(t);if(r.issues)throw new ed(r.issues);return r.value}var ef=["get","post","put","patch","delete"],em=async(e,t)=>{var r,n,i,a,o,s,l,u;let c,{hooks:d,url:p,options:f}=await et(e,t),m=function(e){if(null==e?void 0:e.customFetchImpl)return e.customFetchImpl;if("u">typeof globalThis&&el(globalThis.fetch))return globalThis.fetch;if("u">typeof window&&el(window.fetch))return window.fetch;throw Error("No fetch implementation found")}(f),h=new AbortController,g=null!=(r=f.signal)?r:h.signal,v=function(e,t){let{baseURL:r,params:n,query:i}=t||{query:{},params:{},baseURL:""},a=e.startsWith("http")?e.split("/").slice(0,3).join("/"):r||"";if(e.startsWith("@")){let t=e.toString().split("@")[1].split("/")[0];ef.includes(t)&&(e=e.replace(`@${t}/`,"/"))}a.endsWith("/")||(a+="/");let[o,s]=e.replace(a,"").split("?"),l=new URLSearchParams(s);for(let[e,t]of Object.entries(i||{})){let r;if(null!=t){if("string"==typeof t)r=t;else if(Array.isArray(t)){for(let r of t)l.append(e,r);continue}else r=JSON.stringify(t);l.set(e,r)}}let u=new Map;if(n)if(Array.isArray(n))for(let[e,t]of o.split("/").filter(e=>e.startsWith(":")).entries()){let r=n[e];u.set(t,String(r))}else for(let[e,t]of Object.entries(n))u.set(`:${e}`,String(t));o=(o=o.split("/").map(e=>(function(e,t){let r,n=e;for(let[e,r]of t)n=n.replace(e,r);if("."===(r=n)||".."===r)throw TypeError("Path parameters cannot be reserved path segments");return encodeURIComponent(n)})(e,u)).join("/")).replace(/^\/+/,"");let c=l.toString();return(c=c.length>0?`?${c}`.replace(/\+/g,"%20"):"",a.startsWith("http"))?new URL(`${o}${c}`,a):`${a}${o}${c}`}(p,f),y=await ec(f),b=function(e,t){let r,{body:n}=e;return n?eo(n)&&"string"!=typeof n?"application/x-www-form-urlencoded"===((r=t.get("content-type"))?r.split(";")[0].trim().toLowerCase():null)?new URLSearchParams(n).toString():JSON.stringify(n):n:null}(f,y),x=function(e,t){var r;if(null==t?void 0:t.method)return t.method.toUpperCase();if(e.startsWith("@")){let n=null==(r=e.split("@")[1])?void 0:r.split("/")[0];return ef.includes(n)?n.toUpperCase():(null==t?void 0:t.body)?"POST":"GET"}return(null==t?void 0:t.body)?"POST":"GET"}(p,f),w=Q(J({},f),{url:v,headers:y,body:b,method:x,signal:g});for(let e of d.onRequest)if(e){let t=await e(w);"object"==typeof t&&null!==t&&Object.assign(w,t)}("pipeTo"in w&&"function"==typeof w.pipeTo||"function"==typeof(null==(n=null==t?void 0:t.body)?void 0:n.pi
8pe))&&!("duplex"in w)&&(w.duplex="half");let{clearTimeout:_}=(!(null==f?void 0:f.signal)&&(null==f?void 0:f.timeout)&&(c=setTimeout(()=>null==h?void 0:h.abort(),null==f?void 0:f.timeout)),{abortTimeout:c,clearTimeout:()=>{c&&clearTimeout(c)}}),k=await m(w.url,w);_();let S={response:k,request:w};for(let e of d.onResponse)if(e){let r=await e(Q(J({},S),{response:(null==(i=null==t?void 0:t.hookOptions)?void 0:i.cloneResponse)?k.clone():k}));r instanceof Response?k=r:"object"==typeof r&&null!==r&&(k=r.response)}if(k.ok){if("HEAD"===w.method)return{data:"",error:null};let e=function(e){let t=e.headers.get("content-type"),r=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return"json";let n=t.split(";").shift()||"";return ea.test(n)?"json":r.has(n)||n.startsWith("text/")?"text":"blob"}(k),r={data:null,response:k,request:w};if("json"===e||"text"===e){let e=await k.text(),t=null!=(a=w.jsonParser)?a:es;r.data=await t(e)}else r.data=await k[e]();for(let e of((null==w?void 0:w.output)&&w.output&&!w.disableValidation&&(r.data=await ep(w.output,r.data)),d.onSuccess))e&&await e(Q(J({},r),{response:(null==(o=null==t?void 0:t.hookOptions)?void 0:o.cloneResponse)?k.clone():k}));return(null==t?void 0:t.throw)?r.data:{data:r.data,error:null}}let E=null!=(s=null==t?void 0:t.jsonParser)?s:es,T=await k.text(),j=function(e){try{return JSON.parse(e),!0}catch(e){return!1}}(T),I=j?await E(T):null,C={response:k,responseText:T,request:w,error:Q(J({},I),{status:k.status,statusText:k.statusText})};for(let e of d.onError)e&&await e(Q(J({},C),{response:(null==(l=null==t?void 0:t.hookOptions)?void 0:l.cloneResponse)?k.clone():k}));if(null==t?void 0:t.retry){let r=function(e){if("number"==typeof e)return new er({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new er(e);case"exponential":return new en(e);default:throw Error("Invalid retry strategy")}}(t.retry),n=null!=(u=t.retryAttempt)?u:0;if(await r.shouldAttemptRetry(n,k)){for(let e of d.onRetry)e&&await e(S);let i=r.getDelay(n);return await new Promise(e=>setTimeout(e,i)),await em(e,Q(J({},t),{retryAttempt:n+1}))}}if(null==t?void 0:t.throw)throw new ee(k.status,k.statusText,j?I:T);return{data:null,error:Q(J({},I),{status:k.status,statusText:k.statusText})}};let eh=/[\p{Ll}\d]+|\p{Lu}+(?!\p{Ll})|\p{Lu}[\p{Ll}\d]+|\p{Lo}+/gu,eg=/['\u2019]/g;function ev(e){return(e.replace(eg,"").match(eh)??[]).map(e=>e.toLowerCase()).join("-")}var ey=e.i(22114);let eb="1.6.27",ex=u({INVALID_PHONE_NUMBER:"Invalid phone number",PHONE_NUMBER_EXIST:"Phone number already exists",PHONE_NUMBER_NOT_EXIST:"phone number isn't registered",INVALID_PHONE_NUMBER_OR_PASSWORD:"Invalid phone number or password",UNEXPECTED_ERROR:"Unexpected error",OTP_NOT_FOUND:"OTP not found",OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",PHONE_NUMBER_NOT_VERIFIED:"Phone number not verified",PHONE_NUMBER_CANNOT_BE_UPDATED:"Phone number cannot be updated",SEND_OTP_NOT_IMPLEMENTED:"sendOTP not implemented",TOO_MANY_ATTEMPTS:"Too many attempts"}),ew=u({INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration",TOKEN_URL_NOT_FOUND:"Invalid OAuth configuration. Token URL not found.",PROVIDER_CONFIG_NOT_FOUND:"No config found for provider",PROVIDER_ID_REQUIRED:"Provider ID is required",INVALID_OAUTH_CONFIG:"Invalid OAuth configuration.",SESSION_REQUIRED:"Session is required",ISSUER_MISMATCH:"OAuth issuer mismatch. The authorization server issuer does not match the expected value (RFC 9207).",ISSUER_MISSING:"OAuth issuer parameter missing. The authorization server did not include the required iss parameter (RFC 9207)."}),e_=u({CHALLENGE_NOT_FOUND:"Challenge not found",YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY:"You are not allowed to register this passkey",FAILED_TO_VERIFY_REGISTRATION:"Failed to verify registration",PASSKEY_NOT_FOUND:"Passkey not found",AUTHENTICATION_FAILED:"Authentication failed",UNABLE_TO_CREATE_SESSION:"Unable to create session",FAILED_TO_UPDATE_PASSKEY:"Failed to update passkey",PREVIOUSLY_REGISTERED:"Previously registered",REGISTRATION_CANCELLED:"Registration cancelled",AUTH_CANCELLED:"Auth cancelled",UNKNOWN_ERROR:"Unknown error",SESSION_REQUIRED:"Passkey registration requires an authenticated session",RESOLVE_USER_REQUIRED:"Passkey registration requires either an authenticated session or a resolveUser callback when requireSession is false",RESOLVED_USER_INVA
8LID:"Resolved user is invalid"});function ek(e){let t=new Uint8Array(e),r="";for(let e of t)r+=String.fromCharCode(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function eS(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=(4-t.length%4)%4,n=atob(t.padEnd(t.length+r,"=")),i=new ArrayBuffer(n.length),a=new Uint8Array(i);for(let e=0;e<n.length;e++)a[e]=n.charCodeAt(e);return i}function eE(){return eT.stubThis(globalThis?.PublicKeyCredential!==void 0&&"function"==typeof globalThis.PublicKeyCredential)}let eT={stubThis:e=>e};function ej(e){let{id:t}=e;return{...e,id:eS(t),transports:e.transports}}function eI(e){return"localhost"===e||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}class eC extends Error{constructor({message:e,code:t,cause:r,name:n}){super(e,{cause:r}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=n??r.name,this.code=t}}let eA=new class{constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}createNewAbortSignal(){if(this.controller){let e=Error("Cancelling existing WebAuthn API call for new one");e.name="AbortError",this.controller.abort(e)}let e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){let e=Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}},eN=["cross-platform","platform"];function eO(e){if(e&&!(0>eN.indexOf(e)))return e}async function eR(e){let t,r,n,i,a;!e.optionsJSON&&e.challenge&&(console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});let{optionsJSON:o,useAutoRegister:s=!1}=e;if(!eE())throw Error("WebAuthn is not supported in this browser");let l={...o,challenge:eS(o.challenge),user:{...o.user,id:eS(o.user.id)},excludeCredentials:o.excludeCredentials?.map(ej)},u={};s&&(u.mediation="conditional"),u.publicKey=l,u.signal=eA.createNewAbortSignal();try{t=await navigator.credentials.create(u)}catch(e){throw function({error:e,options:t}){let{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if("AbortError"===e.name){if(t.signal instanceof AbortSignal)return new eC({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if("ConstraintError"===e.name){if(r.authenticatorSelection?.requireResidentKey===!0)return new eC({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});else if("conditional"===t.mediation&&r.authenticatorSelection?.userVerification==="required")return new eC({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});else if(r.authenticatorSelection?.userVerification==="required")return new eC({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else if("InvalidStateError"===e.name)return new eC({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});else if("NotAllowedError"===e.name)return new eC({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});else if("NotSupportedError"===e.name)return new eC(0===r.pubKeyCredParams.filter(e=>"public-key"===e.type).length?{message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}:{message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});else if("SecurityError"===e.name){let t=globalThis.location.hostname;if(!eI(t))return new eC({message:`${globalThis.location.hostname}
8 is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e});if(r.rp.id!==t)return new eC({message:`The RP ID "${r.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else if("TypeError"===e.name){if(r.user.id.byteLength<1||r.user.id.byteLength>64)return new eC({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if("UnknownError"===e.name)return new eC({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e});return e}({error:e,options:u})}if(!t)throw Error("Registration was not completed");let{id:c,rawId:d,response:p,type:f}=t;if("function"==typeof p.getTransports&&(n=p.getTransports()),"function"==typeof p.getPublicKeyAlgorithm)try{i=p.getPublicKeyAlgorithm()}catch(e){eP("getPublicKeyAlgorithm()",e)}if("function"==typeof p.getPublicKey)try{let e=p.getPublicKey();null!==e&&(a=ek(e))}catch(e){eP("getPublicKey()",e)}if("function"==typeof p.getAuthenticatorData)try{r=ek(p.getAuthenticatorData())}catch(e){eP("getAuthenticatorData()",e)}return{id:c,rawId:ek(d),response:{attestationObject:ek(p.attestationObject),clientDataJSON:ek(p.clientDataJSON),transports:n,publicKeyAlgorithm:i,publicKey:a,authenticatorData:r},type:f,clientExtensionResults:t.getClientExtensionResults(),authenticatorAttachment:eO(t.authenticatorAttachment)}}function eP(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them. 9`,t)}let eD=e=>e;async function e$(e){let t,r,n;!e.optionsJSON&&e.challenge&&(console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});let{optionsJSON:i,useBrowserAutofill:a=!1,verifyBrowserAutofillInput:o=!0}=e;if(!eE())throw Error("WebAuthn is not supported in this browser");i.allowCredentials?.length!==0&&(t=i.allowCredentials?.map(ej));let s={...i,challenge:eS(i.challenge),allowCredentials:t},l={};if(a){if(!await function(){if(!eE())return eD(new Promise(e=>e(!1)));let e=globalThis.PublicKeyCredential;return e?.isConditionalMediationAvailable===void 0?eD(new Promise(e=>e(!1))):eD(e.isConditionalMediationAvailable())}())throw Error("Browser does not support WebAuthn autofill");if(document.querySelectorAll("input[autocomplete$='webauthn']").length<1&&o)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');l.mediation="conditional",s.allowCredentials=[]}l.publicKey=s,l.signal=eA.createNewAbortSignal();try{r=await navigator.credentials.get(l)}catch(e){throw function({error:e,options:t}){let{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if("AbortError"===e.name){if(t.signal instanceof AbortSignal)return new eC({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if("NotAllowedError"===e.name)return new eC({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});else if("SecurityError"===e.name){let t=globalThis.location.hostname;if(!eI(t))return new eC({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e});if(r.rpId!==t)return new eC({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else if("UnknownError"===e.name)return new eC({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e});return e}({error:e,options:l})}if(!r)throw Error("Authentication was not completed");let{id:u,rawId:c,response:d,type:p}=r;return d.userHandle&&(n=ek(d.userHandle)),{id:u,rawId:ek(c),response:{authenticatorData:ek(d.authenticatorData),clientDataJSON:ek(d.clientDataJSON),signature:ek(d.signature),userHandle:n},type:p,clientExtensionResults:r.getClientExtensionResults(),authenticatorAttachment:eO(r.authenticatorAttachment)}}function eL(e,t){return S(e.data,t.data)&&e.error===t.error&&e.isPending===t.isPending&&e.isRefetching===t.isRefetching&&e.refetch===t.refetch}let eM=i.default.env.NEXT_PUBLIC_PREVIEW_DOMAIN_ROOT??"";function eU(e,t="https"){let r;if(!e)return null;let n=(r=function(e){if(!e||!eM)return null;let t=e.split(":")[0],r=`.${eM}`;if(!t.endsWith(r)||!t.includes("-"))return null;let n=t.slice(0,-r.length),i=n.indexOf("-");return i<=0?null:n.slice(i+1)}
9(e))?`cont-${r}.${eM}`:null;return n?`${t}://${n}`:null}e.s(["deriveContBaseUrlFromHost",0,eU],931179);let ez=function(e){var t;let{pluginPathMethods:r,pluginsActions:n,pluginsAtoms:a,$fetch:o,$store:l,atomListeners:u}=(e=>{var t;let r,n,a,o,l,u,c,d="credentials"in Request.prototype,f=function(e,t,r,n){if(e)return m(e,t);if(!1!==n){let e=s.BETTER_AUTH_URL||s.NEXT_PUBLIC_BETTER_AUTH_URL||s.PUBLIC_BETTER_AUTH_URL||s.NUXT_PUBLIC_BETTER_AUTH_URL||s.NUXT_PUBLIC_AUTH_URL||("/"!==s.BASE_URL?s.BASE_URL:void 0);if(e)return m(e,t)}r?.headers.get("x-forwarded-host"),r?.headers.get("x-forwarded-proto");if(r){let e=function(e){try{let t=new URL(e);return"null"===t.origin?null:t.origin}catch{return null}}(r.url);if(!e)throw new p("Could not get origin from request. Please provide a valid base URL.");return m(e,t)}if("u">typeof window&&window.location)return m(window.location.origin,t)}(e?.baseURL,e?.basePath,void 0,void 0)??(e=>{if(void 0!==i.default){if(i.default.env.NEXT_PUBLIC_AUTH_URL)return i.default.env.NEXT_PUBLIC_AUTH_URL;if("u"<typeof window){if(i.default.env.NEXTAUTH_URL)try{return i.default.env.NEXTAUTH_URL}catch{}if(i.default.env.VERCEL_URL)try{let t=i.default.env.VERCEL_URL.startsWith("http")?"":"https://";return`${new URL(`${t}${i.default.env.VERCEL_URL}`).origin}${e??"/api/auth"}`}catch{}}}})(e?.basePath)??"/api/auth",b=e?.plugins?.flatMap(e=>e.fetchPlugins).filter(e=>void 0!==e)||[],w={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:k,onError:T,onRequest:j,onResponse:C,...A}=e?.fetchOptions||{},O=(t={baseURL:f,...d?{credentials:"include"}:{},method:"GET",jsonParser:e=>e?function(e,t={strict:!0}){return function(e,t={}){let{strict:r=!1,warnings:n=!1,reviver:i,parseDates:a=!0}=t;if("string"!=typeof e)return e;let o=e.trim(),s=o.toLowerCase();if(s.length<=9&&s in v)return v[s];if(!g.test(o)){if(r)throw SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(h).some(([e,t])=>{let r=t.test(o);return r&&n&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${e} pattern`),r})&&r)throw Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(o,(e,t)=>{if("__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t){n&&console.warn(`[better-json] Dropping "${e}" key to prevent prototype pollution`);return}if(a&&"string"==typeof t){let e=function(e){let t=y.exec(e);if(!t)return null;let[,r,n,i,a,o,s,l,u,c,d]=t,p=new Date(Date.UTC(parseInt(r,10),parseInt(n,10)-1,parseInt(i,10),parseInt(a,10),parseInt(o,10),parseInt(s,10),l?parseInt(l.padEnd(3,"0"),10):0));if(u){let e=(60*parseInt(c,10)+parseInt(d,10))*("+"===u?-1:1);p.setUTCMinutes(p.getUTCMinutes()+e)}
9return p instanceof Date&&!isNaN(p.getTime())?p:null}(t);if(e)return e}return i?i(e,t):t})}catch(t){if(r)throw t;return e}}(e,t)}(e,{strict:!1}):null,customFetchImpl:fetch,...A,plugins:[w,...A.plugins||[],...e?.disableDefaultFetchPlugins?[]:[x],...b]},async function(e,r){let n,i=Q(J(J({},t),r),{headers:eu(null==t?void 0:t.headers,null==r?void 0:r.headers),plugins:[...(null==t?void 0:t.plugins)||[],(n=t||{},{id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(e,t){var r,i,a,o;let s=(null==(i=null==(r=n.plugins)?void 0:r.find(t=>{var r;return null!=(r=t.schema)&&!!r.config&&(e.startsWith(t.schema.config.baseURL||"")||e.startsWith(t.schema.config.prefix||""))}))?void 0:i.schema)||n.schema;if(s){let r=e;(null==(a=s.config)?void 0:a.prefix)&&r.startsWith(s.config.prefix)&&(r=r.replace(s.config.prefix,""),s.config.baseURL&&(e=e.replace(s.config.prefix,s.config.baseURL))),(null==(o=s.config)?void 0:o.baseURL)&&r.startsWith(s.config.baseURL)&&(r=r.replace(s.config.baseURL,"")),r.startsWith("/")&&"@"===r.charAt(1)&&(r=r.substring(1));let n=s.schema[r];if(n){let r=null==t?void 0:t.headers;if(n.headers&&!(null==t?void 0:t.disableValidation)){let e={};if(null==t?void 0:t.headers){if(t.headers instanceof Headers)t.headers.forEach((t,r)=>{e[r.toLowerCase()]=t});else if("object"==typeof t.headers)for(let[r,n]of Object.entries(t.headers))null!=n&&(e[r.toLowerCase()]=n)}let i=await ep(n.headers,e),a={};for(let[e,t]of Object.entries(i))a[e.toLowerCase()]=t;r=a}let i=Q(J({},t),{method:n.method,output:n.output,headers:r});return(null==t?void 0:t.disableValidation)||(i=Q(J({},i),{body:n.input?await ep(n.input,null==t?void 0:t.body):null==t?void 0:t.body,params:n.params?await ep(n.params,null==t?void 0:t.params):null==t?void 0:t.params,query:n.query?await ep(n.query,null==t?void 0:t.query):null==t?void 0:t.query})),{url:e,options:i}}}return{url:e,options:t}}}),...(null==r?void 0:r.plugins)||[]]});if(null==t?void 0:t.catchAllError)try{return await em(e,i)}catch(e){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:e}}}return await em(e,i)}),{$sessionSignal:R,session:$,broadcastSessionUpdate:L}=(n=U(!1),E(o=U({data:null,error:null,isPending:!0,isRefetching:!1,refetch:a=e=>u(e)}),F),l=async(e,t)=>{let r=o.value;if(o.set({...r,isPending:null===r.data,isRefetching:!0,error:null,refetch:a}),!e.aborted)try{var n;let r=await O("/get-session",{method:"GET",query:t?.query,signal:e});if(e.aborted)return;let{data:i,error:s}=z(r);if(i?.needsRefresh)try{let t=await O("/get-session",{method:"POST",signal:e});if(e.aborted)return;({data:i,error:s}=z(t))}catch{if(e.aborted)return}if(s){let e=o.value,t=s?.status===401;o.set({data:t?null:e.data,error:s,isPending:!1,isRefetching:!1,refetch:a});return}let l=(n=i)&&(null!==n.session||null!==n.user)?n:null,u=o.value,c=null!=u.data&&null!=l&&S(u.data,l)?u.data:l;o.set({data:c,error:null,isPending:!1,isRefetching:!1,refetch:a})}catch(r){if(e.aborted)return;let t=o.value;o.set({data:t.data,error:r,isPending:!1,isRefetching:!1,refetch:a})}},u=e=>{r?.cancel();let t=new AbortController,n={cancel:()=>t.abort(),promise:Promise.resolve().then(()=>{if(!t.signal.aborted)return l(t.signal,e)})};r=n;let i=()=>{r===n&&(r=void 0)};return n.promise.then(i,i),n.promise},c=()=>{},_(o,()=>{let t;"u"<typeof window||(t=setTimeout(()=>{r?.promise??u()},0));let i=function(e){let{fetchSession:t,shouldPollSession:r=()=>!0,sessionSignal:n,options:i={}}=e,a=i.sessionOptions?.refetchInterval??0,o=i.sessionOptions?.refetchOnWindowFocus??!0,s=i.sessionOptions?.refetchWhenOffline??!1,l={isInitialized:!1,lastSessionRequest:0},u=e=>{if(s||P().isOnline){if(e?.event==="storage")return void t();if(e?.event==="poll"){l.lastSessionRequest=D(),t();return}if(e?.event==="visibilitychange"){if(D()-l.lastSessionRequest<5)return;l.lastSessionRequest=D(),t();return}t()}};return{init:()=>{l.isInitialized||(l.isInitialized=!0,a&&a>0&&(l.pollInterval=setInterval(()=>{r()&&u({event:"poll"})},1e3*a)),l.unsubscribeBroadcast=I().subscribe(()=>{u({event:"storage"})}),o&&(l.unsubscribeFocus=N().subscribe(()=>{u({event:"visibilitychange"})})),l.unsubscribeOnline=P().subscribe(e=>{e&&u({event:"visibilitychange"})}),l.unsubscribeSignal=n.listen(()=>{t()}),l.cleanupBroadcastSetup=I().setup(),l.cleanupFocusSetup=N().setup(),l.cleanupOnlineSetup=P().setup())},cleanup:()=>{l.isInitialized&&(l.pollInterval&&(clearInterval(l.pollInterval),l.pollInterval=void 0),l.unsubscribeBroadcast&&(l.unsubscribeBroadcast(),l.unsubscribeBroadcast=void 0),l.unsubscribeFocus&&(l.unsubscribeFocus(),l.unsubscribeFocus=void 0),l.unsubscribeOnline&&(l.unsubscribeOnline(),l.unsubscribeOnline=void 0),l.unsubscribeSignal&&(l.unsubscribeSignal(),l.unsubscribeSignal=void 0),l.cleanupBroadcastSetup&&(l.cleanupBroadcastSetup(),l.cleanupBroadcastSetup=void 0),l.cleanupFocusSetup&&(l.cleanupFocusSetup(),l.cleanupFocusSetup=void 0),l.cleanupOnlineSetup&&(l.cleanupOnlineSetup(),l.cleanupOnlineSetup=void 0),l.isInitialized=!1,l.lastSessionRequest=0)},triggerRefetch:u,broadcastSessionUpdate:e=>{I().post({event:"session",data:{trigger:e},clientId:Math.random().toString(36).substring(7)})}}}({fetchSession:u,shouldPollSession:()=>null!=o.value.data,sessionSignal:n,options:e});return i.init(),c=i.broadcastSessionUpdate,()=>{t&&clearTimeout(t),i.cleanup()}}),{session:o,$sessionSignal:n,broadcastSessionUpdate:e=>c(e)}),M=e?.plugins||[],q={}
9,Z={$sessionSignal:R,session:$},B={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},H=[{signal:"$sessionSignal",matcher:e=>"/sign-out"===e||"/update-user"===e||"/update-session"===e||"/sign-up/email"===e||"/sign-in/email"===e||"/delete-user"===e||"/verify-email"===e||"/revoke-sessions"===e||"/revoke-session"===e||"/revoke-other-sessions"===e||"/change-email"===e||"/change-password"===e,callback(e){"/sign-out"===e?L("signout"):("/update-user"===e||"/update-session"===e)&&L("updateUser")}}];for(let e of M)e.getAtoms&&Object.assign(Z,e.getAtoms?.(O)),e.pathMethods&&Object.assign(B,e.pathMethods),e.atomListeners&&H.push(...e.atomListeners);let W={notify:e=>{Z[e].set(!Z[e].get())},listen:(e,t)=>{Z[e].subscribe(t)},atoms:Z};for(let t of M)t.getActions&&(q=V(t.getActions?.(O,W,e)??{},q));return{get baseURL(){return f},pluginsActions:q,pluginsAtoms:Z,pluginPathMethods:B,atomListeners:H,$fetch:O,$store:W}})(e),c={};for(let[e,t]of Object.entries(a))c[function(e){return`use${e.charAt(0).toUpperCase()+e.slice(1)}`}(e)]=()=>(function(e,t={}){let r=(0,ey.useRef)(e.get()),{keys:n,deps:i=[e,n]}=t,a=(0,ey.useCallback)(t=>{let i=e=>{r.current!==e&&(r.current=e,t())};if(i(e.value),n?.length){let t;return t=new Set(n).add(void 0),e.listen((e,r,n)=>{t.has(n)&&i(e)})}return e.listen(i)},i),o=()=>r.current;return(0,ey.useSyncExternalStore)(a,o,o)})(t);return t={...n,...c,$fetch:o,$store:l},function e(n=[]){return new Proxy(function(){},{get(r,i){var a;if("string"!=typeof i||"then"===i||"catch"===i||"finally"===i)return;let o=[...n,i],s=t;for(let e of o)if(s&&"object"==typeof s&&e in s)s=s[e];else{s=void 0;break}return"function"==typeof s?s:"object"==typeof(a=s)&&null!==a&&"get"in a&&"function"==typeof a.get&&"lc"in a&&"number"==typeof a.lc?s:e(o)},apply:async(e,t,i)=>{let s="/"+n.map(ev).join("/"),l=i[0]||{},c=i[1]||{},{query:d,fetchOptions:p,...f}=l,m={...c,...p},h=function(e,t,r){let n=t[e],{fetchOptions:i,query:a,...o}=r||{};return n||(i?.method?i.method:o&&Object.keys(o).length>0?"POST":"GET")}(s,r,l);return await o(s,{...m,body:"GET"===h?void 0:{...f,...m?.body||{}},query:d||m?.query,method:h,async onSuccess(e){if(await m?.onSuccess?.(e),!u||m.disableSignal)return;let t=u.filter(e=>e.matcher(s));if(!t.length)return;let r=new Set;for(let e of t){let t=a[e.signal];if(!t)return;if(r.has(e.signal))continue;r.add(e.signal);let n=t.get();setTimeout(()=>{t.set(!n)},10),e.callback?.(s)}}})}})}()}({baseURL:function(){{let e=eU(window.location.host,window.location.protocol.replace(":",""));if(e)return e}return"https://cont.primariatm.ro"}(),fetchOptions:{credentials:"include"},plugins:[{id:"phoneNumber",version:eb,$InferServerPlugin:{},atomListeners:[{matcher:e=>"/phone-number/update"===e||"/phone-number/verify"===e||"/sign-in/phone-number"===e,signal:"$sessionSignal"}],$ERROR_CODES:ex},{id:"generic-oauth-client",version:eb,$InferServerPlugin:{},$ERROR_CODES:ew},(t=U(),{id:"passkey",version:"1.6.27",$InferServerPlugin:{},getActions:(e,r)=>((e,{$listPasskeys:t,$store:r})=>({signIn:{passkey:async(n,i)=>{let a,o=await e("/passkey/generate-authenticate-options",{method:"GET",throw:!1});if(!o.data)return o;let s=o.data.extensions||n?.extensions?{...o.data.extensions||{},...n?.extensions||{}}:void 0;try{a=await e$({optionsJSON:{...o.data,extensions:s},useBrowserAutofill:n?.autoFill})}catch(e){return{data:null,error:{code:e instanceof eC?e.code:"AUTH_CANCELLED",message:e_.AUTH_CANCELLED.message,status:400,statusText:"BAD_REQUEST"}}}try{let{clientExtensionResults:o,...s}=a,l=await e("/passkey/verify-authentication",{body:{response:s},...n?.fetchOptions,...i,method:"POST",throw:!1});if(t.set(Math.random()),r.notify("$sessionSignal"),n?.returnWebAuthnResponse)return{...l,webauthn:{response:a,clientExtensionResults:o}};return l}catch(e){return console.error("[Better Auth] Error verifying passkey",e),{data:null,error:{code:"AUTH_CANCELLED",message:e_.AUTH_CANCELLED.message,status:400,statusText:"BAD_REQUEST"}}}}},passkey:{addPasskey:async(r,n)=>{let i=await e("/passkey/generate-register-options",{method:"GET",query:{...r?.authenticatorAttachment&&{authenticatorAttachment:r.authenticatorAttachment},...r?.name&&{name:r.name},...r?.context&&{context:r.context}},throw:!1});if(!i.data)return i;try{let a=i.data.extensions||r?.extensions?{...i.data.extensions||{},...r?.extensions||{}}:void 0,o=await eR({optionsJSON:{...i.data,extensions:a},useAutoRegister:r?.useAutoRegister}),{clientExtensionResults:s,...l}=o,u=await e("/passkey/verify-registration",{...r?.fetchOptions,...n,body:{response:l,name:r?.name},method:"POST",throw:!1});if(!u.data)return u;if(t.set(Math.random()),r?.returnWebAuthnResponse)return{...u,webauthn:{response:o,clientExtensionResults:s}};return u}catch(e){if(e instanceof eC){if("ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED"===e.code)return{data:null,error:{code:e.code,message:e_.PREVIOUSLY_REGISTERED.message,status:400,statusText:"BAD_REQUEST"}};if("ERROR_CEREMONY_ABORTED"===e.code)return{data:null,error:{code:e.code,message:e_.REGISTRATION_CANCELLED.message,status:400,statusText:"BAD_REQUEST"}};return{data:null,error:{code:e.code,message:e.message,status:400,statusText:"BAD_REQUEST"}}}return{data:null,error:{code:"UNKNOWN_ERROR",message:e instanceof Error?e.message:e_.UNKNOWN_ERROR.message,status:500,statusText:"INTERNAL_SERVER_ERROR"}}}}},$Infer:{}}))(e,{$listPasskeys:t,$store:r}),getAtoms:e=>{var r,n;let i,a,o,s,l,u;return{listPasskeys:(r=t,n={method:"GET"},E(i=U({data:null,error:null,isPending:!0,isRefetching:!1,refetch:e=>a(e)}),eL),a=async t=>new Promise(r=>{let a="function"==typeof n?n({data:i.get().data,error:i.get().error,
9isPending:i.get().isPending}):n;e("/passkey/list-user-passkeys",{...a,query:{...a?.query,...t?.query},async onSuccess(e){let t=i.get(),r=null!=t.data&&null!=e.data&&S(t.data,e.data)?t.data:e.data;i.set({data:r,error:null,isPending:!1,isRefetching:!1,refetch:i.value.refetch}),await a?.onSuccess?.(e)},async onError(e){let{request:t}=e,r="number"==typeof t.retry?t.retry:t.retry?.attempts,n=t.retryAttempt||0;if(r&&n<r)return;let o=401===e.error.status;i.set({error:e.error,data:o?null:i.get().data,isPending:!1,isRefetching:!1,refetch:i.value.refetch}),await a?.onError?.(e)},async onRequest(e){let t=i.get();i.set({isPending:null===t.data,data:t.data,error:null,isRefetching:!0,refetch:i.value.refetch}),await a?.onRequest?.(e)}}).catch(e=>{i.set({error:e,data:i.get().data,isPending:!1,isRefetching:!1,refetch:i.value.refetch})}).finally(()=>{r(void 0)})}),r=Array.isArray(r)?r:[r],o=!1,s=!1,l=!1,u=()=>{if(o){l=!0;return}o=!0,a().finally(()=>{o=!1;let e=l&&s;l=!1,e&&u()})},_(i,()=>{let e;if("u"<typeof window)return;s=!0;let t=!1,n=r.map(r=>r.listen(()=>{t?a():(t=!0,clearTimeout(e),u())}));return e=setTimeout(()=>{t=!0,u()},0),()=>{for(let e of(s=!1,n))e();clearTimeout(e)}}),i),$listPasskeys:t}},pathMethods:{"/passkey/register":"POST","/passkey/authenticate":"POST"},atomListeners:[{matcher:e=>"/passkey/verify-registration"===e||"/passkey/delete-passkey"===e||"/passkey/update-passkey"===e||"/sign-out"===e,signal:"$listPasskeys"},{matcher:e=>"/passkey/verify-authentication"===e,signal:"$sessionSignal"}],$ERROR_CODES:e_}),{id:"additional-fields-client",version:eb,$InferServerPlugin:{}}]});e.s(["authClient",0,ez],857691)},651729,e=>{"use strict";var t=e.i(640464);let r=(0,t.createServerReference)("6002dabd6d6f1de2be153d15d36b6063ccdb7c74aa",t.callServer,void 0,t.findSourceMapURL,"getSignedUrl");e.s(["getSignedUrl",0,r])},582380,e=>{"use strict";e.s(["removeDiacritics",0,e=>"string"==typeof e&&e?e.trim().normalize("NFD").replace(/[\u0300-\u036f]/g,""):e])},711435,e=>{"use strict";e.s(["default",0,function({src:e,width:t,quality:r}){let n=new URL(e);return n.searchParams.set("width",(t<800?800:1200).toString()),n.searchParams.set("quality",(r||75).toString()),n.searchParams.set("format","webp"),n.href}])},530790,e=>{"use strict";let t={debug:(...e)=>{},info:console.info,warn:console.warn,error:console.error};e.s(["log",0,t])},579699,969797,e=>{"use strict";e.s(["objectFilter",0,(e,t)=>Object.keys(e).filter(r=>t(e[r])).reduce((t,r)=>(t[r]=e[r],t),{})],579699);var t=e.i(582380);e.s(["ellipsizeMiddle",0,(e,t=22)=>{if(e.length<=t)return e;let r=e.lastIndexOf(".");if(r>0&&r>e.length-10){let n=e.substring(r),i=e.substring(0,r),a=t-n.length-3;if(a>0){let e=Math.min(4,Math.floor(a/2)),t=a-e;if(t>0&&e>0)return i.substring(0,t)+"..."+i.substring(i.length-e)+n}}let n=Math.ceil((t-3)/2),i=Math.floor((t-3)/2);return e.substring(0,n)+"..."+e.substring(e.length-i)},"sanitizeFilename",0,e=>{let r=(0,t.removeDiacritics)(String(e??"").trim()),n=r.lastIndexOf("."),i=n>0?r.slice(0,n):r,a=n>0?r.slice(n+1):"";(i=i.replace(/[^A-Za-z0-9._-]+/g,"-").replace(/-{2,}/g,"-").replace(/\.{2,}/g,".").replace(/^[-.]+|[-.]+$/g,""))||(i="fisier"),i.length>100&&(i=i.slice(0,100).replace(/[-.]+$/,""));let o=a.replace(/[^A-Za-z0-9]+/g,"").toLowerCase();return o?`${i}.${o}`:i},"slugify",0,e=>e?.trim().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/ /g,"-").replace(/\./g,"-").replace(/[^\w-]+/g,"").toLowerCase()],969797)},82768,104128,e=>{"use strict";var t=e.i(813919),r=e.i(22114),n=e.i(139499);function i({children:e,className:r,nomargin:a,...o}){return(0,t.jsx)("h2",{className:(0,n.cn)("pt-2 mb-6 text-2xl font-bold tracking-tight border-t-4 sm:text-3xl border-primary",a||"mt-8",r),...o,children:e})}e.s(["H2",0,i],104128),e.s(["Accordion",0,function({title:e,children:a,className:o,small:s=!1,...l}){let[u,c]=(0,r.useState)(!1);return(0,t.jsxs)("div",{className:"w-full border-t-2 border-slate-300",children:[(0,t.jsxs)("button",{className:(0,n.cn)("flex w-full justify-between items-center",o),type:"button",...l,onClick:()=>c(!u),children:[(0,t.jsx)(i,{className:(0,n.cn)(s?"text-slate-600 pt-2 mb-1 text-md font-normal sm:text-md border-t-0 mt-0 text-left":"text-slate-600 pt-2 mt-0 mb-2 text-xl font-normal tracking-tight border-t-0 sm:text-md"),children:e}),(0,t.jsx)("span",{className:(0,n.cn)("float-right transform",u?"rotate-180":"rotate-0","transition-transform duration-300"),children:"â¼"})]}),u?(0,t.jsx)("div",{className:"p-2 bg-white",children:a}):null]})}],82768)},65432,e=>{"use strict";var t=e.i(813919),r=e.i(22114),n=e.i(139499);let i=(0,e.i(294237).cva)("relative w-full rounded-lg border px-4 py-3 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}});function a({className:e,variant:r,ref:o,...s}){return(0,t.jsx)("div",{className:(0,n.cn)(i({variant:r}),e),ref:o,role:"alert",...s})}function o({className:e,ref:r,...i}){return(0,t.jsx)("div",{className:(0,n.cn)("[&_p]:leading-relaxed",e),ref:r,...i})}var s=e.i(776218);let l=(0,r.createContext)(null),u=()=>{let e=(0,r.useContext)(l);if(!e)throw Error("Confirmation components must be used within Confirmation");return e};e.s(["Confirmation",0,({className:e,approval:r,state:i,...o})=>{if(!r||"input-streaming"===i||"input-available"===i)return null;let s="approval-requested"===i;return(0,t.jsx)(l.Provider,{value:{approval:r,state:i},children:(0,t.jsx)(a,{className:(0,n.cn)("flex flex-col gap-2",s&&e,!s&&"border-0 bg-transparent p-0"),...o})})},"ConfirmationAccepted",0,({children:e})=>{let{approval:t,state:r}=u();
9return t?.approved&&"output-available"===r?e:null},"ConfirmationAction",0,e=>(0,t.jsx)(s.Button,{className:"h-8 px-3",type:"button",...e}),"ConfirmationActions",0,({className:e,...r})=>{let{state:i}=u();return"approval-requested"!==i?null:(0,t.jsx)("div",{className:(0,n.cn)("flex items-center justify-end gap-2 self-end",e),...r})},"ConfirmationExecuting",0,({children:e})=>{let{approval:t,state:r}=u();return t?.approved&&"approval-responded"===r?e:null},"ConfirmationRejected",0,({children:e})=>{let{approval:t,state:r}=u();return t?.approved!==!1||"approval-responded"!==r&&"output-denied"!==r&&"output-available"!==r?null:e},"ConfirmationRequest",0,({children:e})=>{let{state:t}=u();return"approval-requested"!==t?null:e},"ConfirmationTitle",0,({className:e,...r})=>(0,t.jsx)(o,{className:(0,n.cn)("inline",e),...r})],65432)},500530,e=>{"use strict";var t=e.i(813919);let r=(0,e.i(950846).default)("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);var n=e.i(22114);let i={damping:.7,stiffness:.05,mass:1.25},a=1e3/60,o=!1;function s(e,t){let r=(0,n.useCallback)(t=>(r.current=t,e(t)),t);return r}globalThis.document?.addEventListener("mousedown",()=>{o=!0}),globalThis.document?.addEventListener("mouseup",()=>{o=!1}),globalThis.document?.addEventListener("click",()=>{o=!1});let l=new Map;function u(...e){let t={...i},r=!1;for(let n of e){if("instant"===n){r=!0;continue}"object"==typeof n&&(r=!1,t.damping=n.damping??t.damping,t.stiffness=n.stiffness??t.stiffness,t.mass=n.mass??t.mass)}let n=JSON.stringify(t);return l.has(n)||l.set(n,Object.freeze(t)),r?"instant":l.get(n)}let c=(0,n.createContext)(null),d="u">typeof window?n.useLayoutEffect:n.useEffect;function p({instance:e,children:r,resize:i,initial:l,mass:f,damping:m,stiffness:h,targetScrollTop:g,contextRef:v,...y}){let b=(0,n.useRef)(null),x=((e={})=>
9{let[t,r]=(0,n.useState)(!1),[i,l]=(0,n.useState)(!1!==e.initial),[c,d]=(0,n.useState)(!1),p=(0,n.useRef)(null);p.current=e;let f=(0,n.useCallback)(()=>{if(!o)return!1;let e=window.getSelection();if(!e||!e.rangeCount)return!1;let t=e.getRangeAt(0);return t.commonAncestorContainer.contains(w.current)||w.current?.contains(t.commonAncestorContainer)},[]),m=(0,n.useCallback)(e=>{g.isAtBottom=e,l(e)},[]),h=(0,n.useCallback)(e=>{g.escapedFromLock=e,r(e)},[]),g=(0,n.useMemo)(()=>{let r;return{escapedFromLock:t,isAtBottom:i,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return w.current?.scrollTop??0},set scrollTop(scrollTop){w.current&&(w.current.scrollTop=scrollTop,g.ignoreScrollToTop=w.current.scrollTop)},get targetScrollTop(){if(!w.current||!_.current)return 0;return w.current.scrollHeight-1-w.current.clientHeight},get calculatedTargetScrollTop(){if(!w.current||!_.current)return 0;let{targetScrollTop:t}=this;if(!e.targetScrollTop)return t;if(r?.targetScrollTop===t)return r.calculatedScrollTop;let n=Math.max(Math.min(e.targetScrollTop(t,{scrollElement:w.current,contentElement:_.current}),t),0);return r={targetScrollTop:t,calculatedScrollTop:n},requestAnimationFrame(()=>{r=void 0}),n},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=70}}},[]),v=(0,n.useCallback)((e={})=>{let t;"string"==typeof e&&(e={animation:e}),e.preserveScrollPosition||m(!0);let r=Date.now()+(Number(e.wait)||0),n=u(p.current,e.animation),{ignoreEscapes:i=!1}=e,o=g.calculatedTargetScrollTop;e.duration instanceof Promise?e.duration.finally(()=>{t=Date.now()}):t=r+(e.duration??0);let s=async()=>{let e=new Promise(requestAnimationFrame).then(()=>{if(!g.isAtBottom)return g.animation=void 0,!1;let{scrollTop:l}=g,c=performance.now(),d=(c-(g.lastTick??c))/a;if(g.animation||(g.animation={behavior:n,promise:e,ignoreEscapes:i}),g.animation.behavior===n&&(g.lastTick=c),f()||r>Date.now())return s();if(l<Math.min(o,g.calculatedTargetScrollTop)){if(g.animation?.behavior===n){if("instant"===n)return g.scrollTop=g.calculatedTargetScrollTop,s();g.velocity=(n.damping*g.velocity+n.stiffness*g.scrollDifference)/n.mass,g.accumulated+=g.velocity*d,g.scrollTop+=g.accumulated,g.scrollTop!==l&&(g.accumulated=0)}return s()}return t>Date.now()?(o=g.calculatedTargetScrollTop,s()):(g.animation=void 0,g.scrollTop<g.calculatedTargetScrollTop)?v({animation:u(p.current,p.current.resize),ignoreEscapes:i,duration:Math.max(0,t-Date.now())||void 0}):g.isAtBottom});return e.then(e=>(requestAnimationFrame(()=>{g.animation||(g.lastTick=void 0,g.velocity=0)}),e))};return(!0!==e.wait&&(g.animation=void 0),g.animation?.behavior===n)?g.animation.promise:s()},[m,f,g]),y=(0,n.useCallback)(()=>{h(!0),m(!1)},[h,m]),b=(0,n.useCallback)(({target:e})=>{if(e!==w.current)return;let{scrollTop:t,ignoreScrollToTop:r}=g,{lastScrollTop:n=t}=g;g.lastScrollTop=t,g.ignoreScrollToTop=void 0,r&&r>t&&(n=r),d(g.isNearBottom),setTimeout(()=>{if(g.resizeDifference||t===r)return;if(f()){h(!0),m(!1);return}let e=t>n,i=t<n;if(g.animation?.ignoreEscapes){g.scrollTop=n;return}i&&(h(!0),m(!1)),e&&h(!1),!g.escapedFromLock&&g.isNearBottom&&m(!0)},1)},[h,m,f,g]),x=(0,n.useCallback)(({target:e,deltaY:t})=>{let r=e;for(;!["scroll","auto"].includes(getComputedStyle(r).overflow);){if(!r.parentElement)return;r=r.parentElement}r===w.current&&t<0&&w.current.scrollHeight>w.current.clientHeight&&!g.animation?.ignoreEscapes&&(h(!0),m(!1))},[h,m,g]),w=s(e=>{w.current?.removeEventListener("scroll",b),w.current?.removeEventListener("wheel",x),e?.addEventListener("scroll",b,{passive:!0}),e?.addEventListener("wheel",x,{passive:!0})},[]),_=s(e=>{let t;g.resizeObserver?.disconnect(),e&&(g.resizeObserver=new ResizeObserver(([e])=>{let{height:r}=e.contentRect,n=r-(t??r);if(g.resizeDifference=n,g.scrollTop>g.targetScrollTop&&(g.scrollTop=g.targetScrollTop),d(g.isNearBottom),n>=0){let e=u(p.current,t?p.current.resize:p.current.initial);v({animation:e,wait:!0,preserveScrollPosition:!0,duration:"instant"===e?void 0:350})}else g.isNearBottom&&(h(!1),m(!0));t=r,requestAnimationFrame(()=>{setTimeout(()=>{g.resizeDifference===n&&(g.resizeDifference=0)},1)})}),g.resizeObserver?.observe(e))},[]);return{contentRef:_,scrollRef:w,scrollToBottom:v,stopScroll:y,isAtBottom:i||c,isNearBottom:c,escapedFromLock:t,state:g}})({mass:f,damping:m,stiffness:h,resize:i,initial:l,targetScrollTop:n.useCallback((e,t)=>{let r=I?.targetScrollTop??g;return r?.(e,t)??e},[g])}),{scrollRef:w,contentRef:_,scrollToBottom:k,stopScroll:S,isAtBottom:E,escapedFromLock:T,state:j}=e??x,I=(0,n.useMemo)(()=>({scrollToBottom:k,stopScroll:S,scrollRef:w,isAtBottom:E,escapedFromLock:T,contentRef:_,state:j,get targetScrollTop(){return b.current},set targetScrollTop(targetScrollTop){b.current=targetScrollTop}}),[k,E,_,w,S,T,j]);return(0,n.useImperativeHandle)(v,()=>I,[I]),d(()=>{w.current&&"visible"===getComputedStyle(w.current).overflow&&(w.current.style.overflow="auto")},[]),(0,t.jsx)(c.Provider,{value:I,children:(0,t.jsx)("div",{...y,children:"function"==typeof r?r(I):r})})}function f(){let e=(0,n.useContext)(c);if(!e)throw Error("use-stick-to-bottom component context must be used within a StickToBottom component");return e}(p||(p={})).Content=function({children:e,...r}
9){let n=f();return(0,t.jsx)("div",{ref:n.scrollRef,style:{height:"100%",width:"100%"},children:(0,t.jsx)("div",{...r,ref:n.contentRef,children:"function"==typeof e?e(n):e})})};var m=e.i(139499),h=e.i(776218);e.s(["Conversation",0,({className:e,...r})=>(0,t.jsx)(p,{className:(0,m.cn)("relative flex-1 overflow-y-hidden",e),initial:"smooth",resize:"smooth",role:"log",...r}),"ConversationContent",0,({className:e,...r})=>(0,t.jsx)(p.Content,{className:(0,m.cn)("flex flex-col gap-8 p-4",e),...r}),"ConversationEmptyState",0,({className:e,title:r="No messages yet",description:n="Start a conversation to see messages here",icon:i,children:a,...o})=>(0,t.jsx)("div",{className:(0,m.cn)("flex size-full flex-col items-center justify-center gap-3 p-8 text-center",e),...o,children:a??(0,t.jsxs)(t.Fragment,{children:[i?(0,t.jsx)("div",{className:"text-muted-foreground",children:i}):null,(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("h3",{className:"font-medium",children:r}),n?(0,t.jsx)("p",{className:"text-muted-foreground",children:n}):null]})]})}),"ConversationScrollButton",0,({className:e,...i})=>{let{isAtBottom:a,scrollToBottom:o}=f(),s=(0,n.useCallback)(()=>{o()},[o]);return!a&&(0,t.jsx)(h.Button,{className:(0,m.cn)("absolute bottom-4 left-[50%] translate-x-[-50%] rounded-full",e),onClick:s,size:"icon",type:"button",variant:"outline",...i,children:(0,t.jsx)(r,{className:"size-4"})})}],500530)},706026,e=>{"use strict";var t=e.i(813919),r=e.i(943417),n=e.i(770778);function i({text:e,role:n,compact:a}){return"assistant"===n?(0,t.jsx)(r.MessageResponse,{children:e}):(0,t.jsx)("div",{className:a?"text-xs":"whitespace-pre-wrap",children:e})}e.s(["MessagePartsRenderer",0,function({message:e,deniedTools:r,onApprove:a,onDeny:o,compact:s,isHistoricalView:l,renderToolOutput:u,sendMessage:c,onModifyToolInput:d,isLastMessage:p,isStreaming:f}){let m=!1,h=!1,g=[],v=e.parts?.map((v,y)=>{if("step-start"===v.type)return h?h=!1:m=!1,null;if("text"===v.type)return m?null:(0,t.jsx)(i,{role:e.role,text:v.text,compact:s},y);if(v.type.startsWith("tool-")){let e=v.type.replace("tool-",""),i=v.input?.__label,s=v.input?.__title,b=v.input?.__description,x=l&&"approval-requested"===v.state,w=x?"output-available":v.state,_=x&&v.approval?{...v.approval,approved:!1}:v.approval;if(u){let s=v.approval&&!r.has(v.toolCallId),b=u({toolName:e,state:w,isHistorical:l,output:v.output,input:v.input,sendMessage:c||(()=>{}),...s?{approval:_,onApprove:()=>a(v.approval.id),onDeny:()=>o(v.approval.id,v.toolCallId),onModifyToolInput:d}:{}});if(b){let r="object"==typeof b&&null!==b&&"node"in b?b:{node:b};return(r.renderAfterText?!(r.renderAfterMessageComplete&&p&&f)&&r.node&&g.push((0,t.jsx)("div",{className:"my-2",children:r.node},`deferred-${y}`)):!r.preserveText&&(m=!0,r.hideFollowingText&&(h=!0)),r.renderAfterText)?(0,t.jsx)(n.ToolResult,{toolName:e,label:i,state:w,output:v.output,errorText:v.errorText},y):(0,t.jsx)("div",{className:"my-2",children:r.node},y)}}return v.approval&&r.has(v.toolCallId)?(m=!0,(0,t.jsx)(n.ToolApproval,{approval:{...v.approval,approved:!1},className:"my-2",input:v.input,label:i,onApprove:()=>{},onDeny:()=>{},output:v.output,state:"output-available",title:s,toolCallId:v.toolCallId,toolName:e},y)):v.approval&&!r.has(v.toolCallId)?(m=!0,(0,t.jsx)(n.ToolApproval,{approval:_,className:"my-2",description:b,input:v.input,label:i,onApprove:()=>a(v.approval.id),onDeny:()=>o(v.approval.id,v.toolCallId),output:v.output,state:w,title:s,toolCallId:v.toolCallId,toolName:e},y)):(0,t.jsx)(n.ToolResult,{errorText:v.errorText,label:i,output:v.output,state:v.state,toolName:e},y)}return null});return(0,t.jsxs)(t.Fragment,{children:[v,g]})}])},943417,e=>{"use strict";var t=e.i(813919),r=e.i(273011),r=r,n=e.i(204832),i=e.i(335003),a=e.i(772664),o=e.i(950846);let s=(0,o.default)("Volume2",[["polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5",key:"16drj5"}],["path",{d:"M15.54 8.46a5 5 0 0 1 0 7.07",key:"ltjumu"}],["path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14",key:"1kegas"}]]),l=(0,o.default)("VolumeX",[["polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5",key:"16drj5"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]);var u=e.i(821666),c=e.i(22114),d=e.i(693240),p=e.i(75615),f=e.i(417798);let m=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],h={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...m,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...m],h2:[["className","sr-only"]],img:[...m,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...m,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...m],table:[...m],ul:[...m,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},g={}.hasOwnProperty;function v(e,t){if(t&&"object"==typeof t)switch("string"==typeof t.type?t.type:""){case"comment":var r,n,i=e,a=t;if(i.schema.allowComments){let e="string"==typeof a.value?a.value:"",t=e.indexOf("-->"),r={type:"comment",value:t<0?e:e.slice(0,t)};return w(r,a),r}return;case"doctype":var o=e,s=t;if(o.schema.allowDoctypes){let e={type:"doctype"};return w(e,s),e}return;case"element":return function(e,t){let r="string"==typeof t.tagName?t.tagName:"";e.stack.push(r);let n=y(e,t.children),i=function(e,t){let r,n=e.stack[e.stack.length-1],i=e.schema.attributes,a=e.schema.required,o=i&&g.call(i,n)?i[n]:void 0,s=i&&g.call(i,"*")?i["*"]:void 0,l=t&&"object"==typeof t?t:{},u={};for(r in l)if(g.call(l,r)){let t=l[r],n=b(e,_(o,r),r,t);null==n&&(n=b(e,_(s,r),r,t)),null!=n&&(u[r]=n)}
9if(a&&g.call(a,n)){let e=a[n];for(r in e)g.call(e,r)&&!g.call(u,r)&&(u[r]=e[r])}return u}(e,t.properties);e.stack.pop();let a=!1;if(r&&"*"!==r&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(a=!0,e.schema.ancestors&&g.call(e.schema.ancestors,r))){let t=e.schema.ancestors[r],n=-1;for(a=!1;++n<t.length;)e.stack.includes(t[n])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(r)?n:void 0;let o={type:"element",tagName:r,properties:i,children:n};return w(o,t),o}(e,t);case"root":let l;return w(l={type:"root",children:y(e,(r=t).children)},r),l;case"text":let u;return w(u={type:"text",value:"string"==typeof(n=t).value?n.value:""},n),u}}function y(e,t){let r=[];if(Array.isArray(t)){let n=-1;for(;++n<t.length;){let i=v(e,t[n]);i&&(Array.isArray(i)?r.push(...i):r.push(i))}}return r}function b(e,t,r,n){return t?Array.isArray(n)?function(e,t,r,n){let i=-1,a=[];for(;++i<n.length;){let o=x(e,t,r,n[i]);("number"==typeof o||"string"==typeof o)&&a.push(o)}return a}(e,t,r,n):x(e,t,r,n):void 0}function x(e,t,r,n){if(("boolean"==typeof n||"number"==typeof n||"string"==typeof n)&&function(e,t,r){let n=e.schema.protocols&&g.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;
9if(!n||0===n.length)return!0;let i=String(r),a=i.indexOf(":"),o=i.indexOf("?"),s=i.indexOf("#"),l=i.indexOf("/");if(a<0||l>-1&&a>l||o>-1&&a>o||s>-1&&a>s)return!0;let u=-1;for(;++u<n.length;){let e=n[u];if(a===e.length&&i.slice(0,e.length)===e)return!0}return!1}(e,r,n)){if("object"==typeof t&&t.length>1){let e=!1,r=0;for(;++r<t.length;){let i=t[r];if(i&&"object"==typeof i&&"flags"in i){if(i.test(String(n))){e=!0;break}}else if(i===n){e=!0;break}}if(!e)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+n:n}}function w(e,t){let r=(0,f.position)(t);t.data&&(e.data=(0,p.default)(t.data)),r&&(e.position=r)}function _(e,t){let r,n=-1;if(e)for(;++n<e.length;){let i=e[n],a="string"==typeof i?i:i[0];if(a===t)return i;"data*"===a&&(r=i)}if(t.length>4&&"data"===t.slice(0,4).toLowerCase())return r}var k=e.i(139499),S=e.i(453488),E=e.i(339708),T=e.i(294237);e.i(552813);var j=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let n=(0,E.createSlot)(`Primitive.${r}`),i=c.forwardRef((e,i)=>{let{asChild:a,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(a?n:r,{...o,ref:i})});return i.displayName=`Primitive.${r}`,{...e,[r]:i}},{}),I="horizontal",C=["horizontal","vertical"];c.forwardRef((e,r)=>{var n;let{decorative:i,orientation:a=I,...o}=e,s=(n=a,C.includes(n))?a:I;return(0,t.jsx)(j.div,{"data-orientation":s,...i?{role:"none"}:{"aria-orientation":"vertical"===s?s:void 0,role:"separator"},...o,ref:r})}).displayName="Separator";let A=(0,T.cva)("flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md has-[>[data-slot=button-group]]:gap-2",{variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",vertical:"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"}},defaultVariants:{orientation:"horizontal"}});function N({className:e,orientation:r,...n}){return(0,t.jsx)("div",{role:"group","data-slot":"button-group","data-orientation":r,className:(0,k.cn)(A({orientation:r}),e),...n})}function O({className:e,asChild:r=!1,...n}){let i=r?E.Slot:"div";return(0,t.jsx)(i,{className:(0,k.cn)("bg-muted flex items-center gap-2 rounded-md border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",e),...n})}var R=e.i(776218);let P=[d.e.raw,[function(e){return function(t){let r,n;return r={type:"root",children:[]},(n=v({schema:e?{...h,...e}:h,stack:[]},t))&&(Array.isArray(n)?1===n.length?r=n[0]:r.children=n:r=n),r}},h],d.e.katex,d.e.harden],D=(0,c.createContext)(null),$=()=>{let e=(0,c.useContext)(D);if(!e)throw Error("MessageBranch components must be used within MessageBranch");return e},L=(0,c.memo)(({className:e,...r})=>(0,t.jsx)(d.i,{className:(0,k.cn)("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),rehypePlugins:P,...r}),(e,t)=>e.children===t.children);L.displayName="MessageResponse",e.s(["Message",0,({className:e,from:r,...n})=>(0,t.jsx)("div",{className:(0,k.cn)("group flex w-full flex-col gap-2","user"===r?"is-user ml-auto justify-end":"is-assistant",e),...n}),"MessageAction",0,({tooltip:e,children:r,label:n,variant:i="ghost",size:a="icon-sm",...o})=>{let s=(0,t.jsxs)(R.Button,{size:a,type:"button",variant:i,...o,children:[r,(0,t.jsx)("span",{className:"sr-only",children:n||e})]});return e?(0,t.jsx)(S.TooltipProvider,{children:(0,t.jsxs)(S.Tooltip,{children:[(0,t.jsx)(S.TooltipTrigger,{asChild:!0,children:s}),(0,t.jsx)(S.TooltipContent,{children:(0,t.jsx)("p",{children:e})})]})}):s},"MessageActions",0,({className:e,children:r,...n})=>(0,t.jsx)("div",{className:(0,k.cn)("flex items-center gap-1",e),...n,children:r}),"MessageAttachment",0,function({data:e,className:r,onRemove:n,...i}){let o=e.filename||"",s="image"==(e.mediaType?.startsWith("image/")&&e.url?"image":"file"),l=o||(s?"Image":"Attachment");return(0,t.jsx)("div",{className:(0,k.cn)("group relative size-24 overflow-hidden rounded-lg",r),...i,children:s?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("img",{alt:o||"attachment",className:"size-full object-cover",height:100,src:e.url,width:100}),n?(0,t.jsxs)(R.Button,{"aria-label":"Remove attachment",className:"absolute top-2 right-2 size-6 rounded-full bg-background/80 p-0 opacity-0 backdrop-blur-sm transition-opacity hover:bg-background group-hover:opacity-100 [&>svg]:size-3",onClick:e=>{e.stopPropagation(),n()},type:"button",variant:"ghost",children:[(0,t.jsx)(u.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Remove"})]}):null]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(S.Tooltip,{children:[(0,t.jsx)(S.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("div",{className:"flex size-full shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground",children:(0,t.jsx)(a.PaperclipIcon,{className:"size-4"})})}),(0,t.jsx)(S.TooltipContent,{children:(0,t.jsx)("p",{children:l})})]}),n?(0,t.jsxs)(R.Button,{"aria-label":"Remove attachment",className:"size-6 shrink-0 rounded-full p-0 o
9pacity-0 transition-opacity hover:bg-accent group-hover:opacity-100 [&>svg]:size-3",onClick:e=>{e.stopPropagation(),n()},type:"button",variant:"ghost",children:[(0,t.jsx)(u.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Remove"})]}):null]})})},"MessageAttachments",0,function({children:e,className:r,...n}){return e?(0,t.jsx)("div",{className:(0,k.cn)("ml-auto flex w-fit flex-wrap items-start gap-2",r),...n,children:e}):null},"MessageBranch",0,({defaultBranch:e=0,onBranchChange:r,className:n,...i})=>{let[a,o]=(0,c.useState)(e),[s,l]=(0,c.useState)([]),u=e=>{o(e),r?.(e)},d={currentBranch:a,totalBranches:s.length,goToPrevious:()=>{u(a>0?a-1:s.length-1)},goToNext:()=>{u(a<s.length-1?a+1:0)},branches:s,setBranches:l};return(0,t.jsx)(D.Provider,{value:d,children:(0,t.jsx)("div",{className:(0,k.cn)("grid w-full gap-2 [&>div]:pb-0",n),...i})})},"MessageBranchContent",0,({children:e,...r})=>{let{currentBranch:n,setBranches:i,branches:a}=$(),o=Array.isArray(e)?e:[e];return(0,c.useEffect)(()=>{a.length!==o.length&&i(o)},[o,a,i]),o.map((e,i)=>(0,t.jsx)("div",{className:(0,k.cn)("grid gap-2 overflow-hidden [&>div]:pb-0",i===n?"block":"hidden"),...r,children:e},e.key))},"MessageBranchNext",0,({children:e,className:r,...i})=>{let{goToNext:a,totalBranches:o}=$();return(0,t.jsx)(R.Button,{"aria-label":"Next branch",disabled:o<=1,onClick:a,size:"icon-sm",type:"button",variant:"ghost",...i,children:e??(0,t.jsx)(n.ChevronRightIcon,{size:14})})},"MessageBranchPage",0,({className:e,...r})=>{let{currentBranch:n,totalBranches:i}=$();return(0,t.jsxs)(O,{className:(0,k.cn)("border-none bg-transparent text-muted-foreground shadow-none",e),...r,children:[n+1," of ",i]})},"MessageBranchPrevious",0,({children:e,...n})=>{let{goToPrevious:i,totalBranches:a}=$();return(0,t.jsx)(R.Button,{"aria-label":"Previous branch",disabled:a<=1,onClick:i,size:"icon-sm",type:"button",variant:"ghost",...n,children:e??(0,t.jsx)(r.default,{size:14})})},"MessageBranchSelector",0,({className:e,from:r,...n})=>{let{totalBranches:i}=$();return i<=1?null:(0,t.jsx)(N,{className:"[&>*:not(:first-child)]:rounded-l-md [&>*:not(:last-child)]:rounded-r-md",orientation:"horizontal",...n})},"MessageContent",0,({children:e,className:r,...n})=>(0,t.jsx)("div",{className:(0,k.cn)("is-user:dark flex max-w-full min-w-0 flex-col gap-2 overflow-hidden text group-[.is-user]:w-fit","group-[.is-user]:ml-auto group-[.is-user]:rounded-lg group-[.is-user]:bg-secondary group-[.is-user]:px-4 group-[.is-user]:py-3 group-[.is-user]:text-foreground","group-[.is-assistant]:text-foreground",r),...n,children:e}),"MessageResponse",0,L,"MessageSpeakButton",0,({text:e,lang:r="ro-RO",ttsEndpoint:n,className:a,...o})=>{let[u,d]=(0,c.useState)("idle"),[p,f]=(0,c.useState)(!1),m=(0,c.useRef)(null),h=(0,c.useRef)(null);(0,c.useEffect)(()=>{f(!!n||"speechSynthesis"in window)},[n]),(0,c.useEffect)(()=>()=>{m.current&&(m.current.pause(),m.current=null),h.current&&(URL.revokeObjectURL(h.current),h.current=null),"speechSynthesis"in window&&window.speechSynthesis.cancel()},[]);let g=(0,c.useCallback)(e=>{let t=r.split("-")[0];return e.find(e=>e.lang===r)||e.find(e=>e.lang.startsWith(t))||e.find(e=>e.default)||e[0]},[r]),v=(0,c.useCallback)(()=>{if(!e)return;window.speechSynthesis.cancel();let t=new SpeechSynthesisUtterance(e);t.lang=r;let n=g(window.speechSynthesis.getVoices());n&&(t.voice=n),t.onstart=()=>d("playing"),t.onend=()=>d("idle"),t.onerror=()=>d("idle"),window.speechSynthesis.speak(t)},[e,r,g]),y=(0,c.useCallback)(async()=>{if(e&&n){d("loading");try{let t=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:e})});if(!t.ok)throw Error("TTS request failed");let r=await t.blob(),i=URL.createObjectURL(r);h.current=i;let a=new Audio(i);m.current=a,a.onended=()=>{d("idle"),URL.revokeObjectURL(i),h.current=null,m.current=null},a.onerror=()=>{d("idle"),URL.revokeObjectURL(i),h.current=null,m.current=null},d("playing"),await a.play()}catch{v()}}},[e,n,v]),b=(0,c.useCallback)(()=>{m.current&&(m.current.pause(),m.current=null),h.current&&(URL.revokeObjectURL(h.current),h.current=null),"speechSynthesis"in window&&window.speechSynthesis.cancel(),d("idle")},[]),x=(0,c.useCallback)(()=>{"loading"!==u&&("playing"===u?b():n?y():v())},[u,b,n,y,v]);if(!p)return null;let w="loading"===u?(0,t.jsx)(i.Loader2Icon,{className:"size-4 animate-spin"}):"playing"===u?(0,t.jsx)(l,{className:"size-4"}):(0,t.jsx)(s,{className:"size-4"}),_="loading"===u?"Se încarcÄ...":"playing"===u?"OpreÈte":"AscultÄ";return(0,t.jsx)(S.TooltipProvider,{children:(0,t.jsxs)(S.Tooltip,{children:[(0,t.jsx)(S.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(R.Button,{"aria-label":"playing"===u?"OpreÈte redarea":"AscultÄ mesajul",className:(0,k.cn)("size-7 p-0","playing"===u&&"text-primary",a),disabled:"loading"===u,onClick:x,size:"icon-sm",type:"button",variant:"ghost",...o,children:w})}),(0,t.jsx)(S.TooltipContent,{children:(0,t.jsx)("p",{children:_})})]})})},"MessageToolbar",0,({className:e,children:r,...n})=>(0,t.jsx)("div",{className:(0,k.cn)("mt-4 flex w-full items-center justify-between gap-4",e),...n,children:r})],943417)},900583,553920,5278,e=>{"use strict";var t,r=e.i(813919),n=e.i(569602),i=e.i(291718),a=e.i(335003),o=e.i(453162),s=e.i(772664),l=e.i(995493),u=e.i(481811),c=e.i(821666),d=e.i(618991),p=e.i(22114),f=e.i(776218),m=e.i(14729),h=e.i(67823),h=h,g=e.i(139499);function v({className:e,...t}){return(0,r.jsx)(m.Command,{"data-slot":"command",className:(0,g.cn)("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function y({className:e,...t}){return(0,r.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[(0,r.jsx)(h.default,{className:"size-4 shrink-0 opacity-50"}),(0,r.jsx)(m.Command.Input,{"data-slot":"command-input",className:(0,g.cn)("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function b({className:e,...t}){return(0,r.jsx)(m.Command.List,{"data-slot":"command-list",className:(0,g.cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function x({...e}){return(0,r.jsx)(m.Command.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function w({className:e,...t}){return(0,r.jsx)(m.Command.Group,{"data-slot":"command-group",className:(0,g.cn)("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function _({className:e,...t}){return(0,r.jsx)(m.Command.Separator,{"data-slot":"command-separator",className:(0,g.cn)("bg-border -mx-1 h-px",e),...t})}function k({className:e,...t}){return(0,r.jsx)(m.Command.Item,{"data-slot":"command-item",className:(0,g.cn)("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}e.i(864510),e.s(["Command",0,v,"CommandEmpty",0,x,"CommandGroup",0,w,"CommandInput",0,y,"CommandItem",0,k,"CommandList",0,b,"CommandSeparator",0,_],553920);var S=e.i(291967),E=e.i(424692),T=e.i(496026),j=e.i(443510),I=e.i(368044),C=e.i(109254),A=e.i(633126),N=e.i(711176),O=e.i(90129),R=e.i(143728),P=e.i(896223),D=e.i(685491),$=e.i(292304),L=e.i(384328),M=e.i(500367),U="rovingFocusGroup.onEntryFocus",z={bubbles:!1,cancelable:!0},F="RovingFocusGroup",[q,Z,V]=(0,C.createCollection)(F),[B,H]=(0,T.createContextScope)(F,[V]),[W,G]=B(F),K=p.forwardRef((e,t)=>
9(0,r.jsx)(q.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,r.jsx)(q.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,r.jsx)(Y,{...e,ref:t})})}));K.displayName=F;var Y=p.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:i,loop:a=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...f}=e,m=p.useRef(null),h=(0,E.useComposedRefs)(t,m),g=(0,A.useDirection)(o),[v,y]=(0,j.useControllableState)({prop:s,defaultProp:l??null,onChange:u,caller:F}),[b,x]=p.useState(!1),w=(0,M.useCallbackRef)(c),_=Z(n),k=p.useRef(!1),[T,C]=p.useState(0);return p.useEffect(()=>{let e=m.current;if(e)return e.addEventListener(U,w),()=>e.removeEventListener(U,w)},[w]),(0,r.jsx)(W,{scope:n,orientation:i,dir:g,loop:a,currentTabStopId:v,onItemFocus:p.useCallback(e=>y(e),[y]),onItemShiftTab:p.useCallback(()=>x(!0),[]),onFocusableItemAdd:p.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:p.useCallback(()=>C(e=>e-1),[]),children:(0,r.jsx)(I.Primitive.div,{tabIndex:b||0===T?-1:0,"data-orientation":i,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:(0,S.composeEventHandlers)(e.onMouseDown,()=>{k.current=!0}),onFocus:(0,S.composeEventHandlers)(e.onFocus,e=>{let t=!k.current;if(e.target===e.currentTarget&&t&&!b){let t=new CustomEvent(U,z);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=_().filter(e=>e.focusable);ee([e.find(e=>e.active),e.find(e=>e.id===v),...e].filter(Boolean).map(e=>e.ref.current),d)}}k.current=!1}),onBlur:(0,S.composeEventHandlers)(e.onBlur,()=>x(!1))})})}),X="RovingFocusGroupItem",J=p.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:i=!0,active:a=!1,tabStopId:o,children:s,...l}=e,u=(0,P.useId)(),c=o||u,d=G(X,n),f=d.currentTabStopId===c,m=Z(n),{onFocusableItemAdd:h,onFocusableItemRemove:g,currentTabStopId:v}=d;return p.useEffect(()=>{if(i)return h(),()=>g()},[i,h,g]),(0,r.jsx)(q.ItemSlot,{scope:n,id:c,focusable:i,active:a,children:(0,r.jsx)(I.Primitive.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:(0,S.composeEventHandlers)(e.onMouseDown,e=>{i?d.onItemFocus(c):e.preventDefault()}),onFocus:(0,S.composeEventHandlers)(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:(0,S.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void d.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let i=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return Q[i]}(e,d.orientation,d.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&i.reverse();let a=i.indexOf(e.currentTarget);i=d.loop?(r=i,n=a+1,r.map((e,t)=>r[(n+t)%r.length])):i.slice(a+1)}setTimeout(()=>ee(i))}}),children:"function"==typeof s?s({isCurrentTabStop:f,hasTabStop:null!=v}):s})})});J.displayName=X;var Q={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ee(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var et=e.i(519399),er=e.i(73772),en=e.i(1299),ei=["Enter"," "],ea=["ArrowUp","PageDown","End"],eo=["ArrowDown","PageUp","Home",...ea],es={ltr:[...ei,"ArrowRight"],rtl:[...ei,"ArrowLeft"]},el={ltr:["ArrowLeft"],rtl:["ArrowRight"]},eu="Menu",[ec,ed,ep]=(0,C.createCollection)(eu),[ef,em]=(0,T.createContextScope)(eu,[ep,D.createPopperScope,H]),eh=(0,D.createPopperScope)(),eg=H(),[ev,ey]=ef(eu),[eb,ex]=ef(eu),ew=e=>{let{__scopeMenu:t,open:n=!1,children:i,dir:a,onOpenChange:o,modal:s=!0}=e,l=eh(t),[u,c]=p.useState(null),d=p.useRef(!1),f=(0,M.useCallbackRef)(o),m=(0,A.useDirection)(a);return p.useEffect(()=>{let e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,r.jsx)(D.Root,{...l,children:(0,r.jsx)(ev,{scope:t,open:n,onOpenChange:f,content:u,onContentChange:c,children:(0,r.jsx)(eb,{scope:t,onClose:p.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:m,modal:s,children:i})})})};ew.displayName=eu;var e_=p.forwardRef((e,t)=>
9{let{__scopeMenu:n,...i}=e,a=eh(n);return(0,r.jsx)(D.Anchor,{...a,...i,ref:t})});e_.displayName="MenuAnchor";var ek="MenuPortal",[eS,eE]=ef(ek,{forceMount:void 0}),eT=e=>{let{__scopeMenu:t,forceMount:n,children:i,container:a}=e,o=ey(ek,t);return(0,r.jsx)(eS,{scope:t,forceMount:n,children:(0,r.jsx)(L.Presence,{present:n||o.open,children:(0,r.jsx)($.Portal,{asChild:!0,container:a,children:i})})})};eT.displayName=ek;var ej="MenuContent",[eI,eC]=ef(ej),eA=p.forwardRef((e,t)=>{let n=eE(ej,e.__scopeMenu),{forceMount:i=n.forceMount,...a}=e,o=ey(ej,e.__scopeMenu),s=ex(ej,e.__scopeMenu);return(0,r.jsx)(ec.Provider,{scope:e.__scopeMenu,children:(0,r.jsx)(L.Presence,{present:i||o.open,children:(0,r.jsx)(ec.Slot,{scope:e.__scopeMenu,children:s.modal?(0,r.jsx)(eN,{...a,ref:t}):(0,r.jsx)(eO,{...a,ref:t})})})})}),eN=p.forwardRef((e,t)=>{let n=ey(ej,e.__scopeMenu),i=p.useRef(null),a=(0,E.useComposedRefs)(t,i);return p.useEffect(()=>{let e=i.current;if(e)return(0,er.hideOthers)(e)},[]),(0,r.jsx)(eP,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,S.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),eO=p.forwardRef((e,t)=>{let n=ey(ej,e.__scopeMenu);return(0,r.jsx)(eP,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),eR=(0,et.createSlot)("MenuContent.ScrollLock"),eP=p.forwardRef((e,t)=>{let{__scopeMenu:n,loop:i=!1,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEntryFocus:u,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:h,disableOutsideScroll:g,...v}=e,y=ey(ej,n),b=ex(ej,n),x=eh(n),w=eg(n),_=ed(n),[k,T]=p.useState(null),j=p.useRef(null),I=(0,E.useComposedRefs)(t,j,y.onContentChange),C=p.useRef(0),A=p.useRef(""),P=p.useRef(0),$=p.useRef(null),L=p.useRef("right"),M=p.useRef(0),U=g?en.RemoveScroll:p.Fragment;p.useEffect(()=>()=>window.clearTimeout(C.current),[]),(0,O.useFocusGuards)();let z=p.useCallback(e=>{var t,r;return L.current===$.current?.side&&(t=e,!!(r=$.current?.area)&&function(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],l=o.x,u=o.y,c=s.x,d=s.y;u>n!=d>n&&r<(c-l)*(n-u)/(d-u)+l&&(i=!i)}return i}({x:t.clientX,y:t.clientY},r))},[]);return(0,r.jsx)(eI,{scope:n,searchRef:A,onItemEnter:p.useCallback(e=>{z(e)&&e.preventDefault()},[z]),onItemLeave:p.useCallback(e=>{z(e)||(j.current?.focus(),T(null))},[z]),onTriggerLeave:p.useCallback(e=>{z(e)&&e.preventDefault()},[z]),pointerGraceTimerRef:P,onPointerGraceIntentChange:p.useCallback(e=>{$.current=e},[]),children:(0,r.jsx)(U,{...g?{as:eR,allowPinchZoom:!0}:void 0,children:(0,r.jsx)(R.FocusScope,{asChild:!0,trapped:a,onMountAutoFocus:(0,S.composeEventHandlers)(o,e=>{e.preventDefault(),j.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,r.jsx)(N.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:h,children:(0,r.jsx)(K,{asChild:!0,...w,dir:b.dir,orientation:"vertical",loop:i,currentTabStopId:k,onCurrentTabStopIdChange:T,onEntryFocus:(0,S.composeEventHandlers)(u,e=>{b.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,r.jsx)(D.Content,{role:"menu","aria-orientation":"vertical","data-state":e5(y.open),"data-radix-menu-content":"",dir:b.dir,...x,...v,ref:I,style:{outline:"none",...v.style},onKeyDown:(0,S.composeEventHandlers)(v.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;if(t){var i;let t,a,o,s,l,u;"Tab"===e.key&&e.preventDefault(),!r&&n&&(i=e.key,t=A.current+i,a=_().filter(e=>!e.disabled),o=document.activeElement,s=a.find(e=>e.ref.current===o)?.textValue,l=function(e,t,r){var n;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=r?e.indexOf(r):-1,o=(n=Math.max(a,0),e.map((t,r)=>e[(n+r)%e.length]));1===i.length&&(o=o.filter(e=>e!==r));let s=o.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return s!==r?s:void 0}(a.map(e=>e.textValue),t,s),u=a.find(e=>e.textValue===l)?.ref.current,function e(t){A.current=t,window.clearTimeout(C.current),""!==t&&(C.current=window.setTimeout(()=>e(""),1e3))}(t),u&&setTimeout(()=>
9u.focus()))}let a=j.current;if(e.target!==a||!eo.includes(e.key))return;e.preventDefault();let o=_().filter(e=>!e.disabled).map(e=>e.ref.current);ea.includes(e.key)&&o.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(o)}),onBlur:(0,S.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(C.current),A.current="")}),onPointerMove:(0,S.composeEventHandlers)(e.onPointerMove,e8(e=>{let t=e.target,r=M.current!==e.clientX;e.currentTarget.contains(t)&&r&&(L.current=e.clientX>M.current?"right":"left",M.current=e.clientX)}))})})})})})})});eA.displayName=ej;var eD=p.forwardRef((e,t)=>{let{__scopeMenu:n,...i}=e;return(0,r.jsx)(I.Primitive.div,{role:"group",...i,ref:t})});eD.displayName="MenuGroup";var e$=p.forwardRef((e,t)=>{let{__scopeMenu:n,...i}=e;return(0,r.jsx)(I.Primitive.div,{...i,ref:t})});e$.displayName="MenuLabel";var eL="MenuItem",eM="menu.itemSelect",eU=p.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:i,...a}=e,o=p.useRef(null),s=ex(eL,e.__scopeMenu),l=eC(eL,e.__scopeMenu),u=(0,E.useComposedRefs)(t,o),c=p.useRef(!1);return(0,r.jsx)(ez,{...a,ref:u,disabled:n,onClick:(0,S.composeEventHandlers)(e.onClick,()=>{let e=o.current;if(!n&&e){let t=new CustomEvent(eM,{bubbles:!0,cancelable:!0});e.addEventListener(eM,e=>i?.(e),{once:!0}),(0,I.dispatchDiscreteCustomEvent)(e,t),t.defaultPrevented?c.current=!1:s.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),c.current=!0},onPointerUp:(0,S.composeEventHandlers)(e.onPointerUp,e=>{c.current||e.currentTarget?.click()}),onKeyDown:(0,S.composeEventHandlers)(e.onKeyDown,e=>{let t=""!==l.searchRef.current;n||t&&" "===e.key||ei.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eU.displayName=eL;var ez=p.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:i=!1,textValue:a,...o}=e,s=eC(eL,n),l=eg(n),u=p.useRef(null),c=(0,E.useComposedRefs)(t,u),[d,f]=p.useState(!1),[m,h]=p.useState("");return p.useEffect(()=>{let e=u.current;e&&h((e.textContent??"").trim())},[o.children]),(0,r.jsx)(ec.ItemSlot,{scope:n,disabled:i,textValue:a??m,children:(0,r.jsx)(J,{asChild:!0,...l,focusable:!i,children:(0,r.jsx)(I.Primitive.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...o,ref:c,onPointerMove:(0,S.composeEventHandlers)(e.onPointerMove,e8(e=>{i?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,S.composeEventHandlers)(e.onPointerLeave,e8(e=>s.onItemLeave(e))),onFocus:(0,S.composeEventHandlers)(e.onFocus,()=>f(!0)),onBlur:(0,S.composeEventHandlers)(e.onBlur,()=>f(!1))})})})}),eF=p.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:i,...a}=e;return(0,r.jsx)(eK,{scope:e.__scopeMenu,checked:n,children:(0,r.jsx)(eU,{role:"menuitemcheckbox","aria-checked":e9(n)?"mixed":n,...a,ref:t,"data-state":e7(n),onSelect:(0,S.composeEventHandlers)(a.onSelect,()=>i?.(!!e9(n)||!n),{checkForDefaultPrevented:!1})})})});eF.displayName="MenuCheckboxItem";var eq="MenuRadioGroup",[eZ,eV]=ef(eq,{value:void 0,onValueChange:()=>{}}),eB=p.forwardRef((e,t)=>{let{value:n,onValueChange:i,...a}=e,o=(0,M.useCallbackRef)(i);return(0,r.jsx)(eZ,{scope:e.__scopeMenu,value:n,onValueChange:o,children:(0,r.jsx)(eD,{...a,ref:t})})});eB.displayName=eq;var eH="MenuRadioItem",eW=p.forwardRef((e,t)=>{let{value:n,...i}=e,a=eV(eH,e.__scopeMenu),o=n===a.value;return(0,r.jsx)(eK,{scope:e.__scopeMenu,checked:o,children:(0,r.jsx)(eU,{role:"menuitemradio","aria-checked":o,...i,ref:t,"data-state":e7(o),onSelect:(0,S.composeEventHandlers)(i.onSelect,()=>a.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});eW.displayName=eH;var eG="MenuItemIndicator",[eK,eY]=ef(eG,{checked:!1}),eX=p.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:i,...a}=e,o=eY(eG,n);return(0,r.jsx)(L.Presence,{present:i||e9(o.checked)||!0===o.checked,children:(0,r.jsx)(I.Primitive.span,{...a,ref:t,"data-state":e7(o.checked)})})});eX.displayName=eG;var eJ=p.forwardRef((e,t)=>{let{__scopeMenu:n,...i}=e;return(0,r.jsx)(I.Primitive.div,{role:"separator","aria-orientation":"horizontal",...i,ref:t})});eJ.displayName="MenuSeparator";var eQ=p.forwardRef((e,t)=>
9{let{__scopeMenu:n,...i}=e,a=eh(n);return(0,r.jsx)(D.Arrow,{...a,...i,ref:t})});eQ.displayName="MenuArrow";var[e0,e1]=ef("MenuSub"),e2="MenuSubTrigger",e4=p.forwardRef((e,t)=>{let n=ey(e2,e.__scopeMenu),i=ex(e2,e.__scopeMenu),a=e1(e2,e.__scopeMenu),o=eC(e2,e.__scopeMenu),s=p.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:u}=o,c={__scopeMenu:e.__scopeMenu},d=p.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return p.useEffect(()=>d,[d]),p.useEffect(()=>{let e=l.current;return()=>{window.clearTimeout(e),u(null)}},[l,u]),(0,r.jsx)(e_,{asChild:!0,...c,children:(0,r.jsx)(ez,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":e5(n.open),...e,ref:(0,E.composeRefs)(t,a.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,S.composeEventHandlers)(e.onPointerMove,e8(t=>{o.onItemEnter(t),!t.defaultPrevented&&(e.disabled||n.open||s.current||(o.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100)))})),onPointerLeave:(0,S.composeEventHandlers)(e.onPointerLeave,e8(e=>{d();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i="right"===r,a=t[i?"left":"right"],s=t[i?"right":"left"];o.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:a,y:t.top},{x:s,y:t.top},{x:s,y:t.bottom},{x:a,y:t.bottom}],side:r}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:(0,S.composeEventHandlers)(e.onKeyDown,t=>{let r=""!==o.searchRef.current;e.disabled||r&&" "===t.key||es[i.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});e4.displayName=e2;var e3="MenuSubContent",e6=p.forwardRef((e,t)=>{let n=eE(ej,e.__scopeMenu),{forceMount:i=n.forceMount,...a}=e,o=ey(ej,e.__scopeMenu),s=ex(ej,e.__scopeMenu),l=e1(e3,e.__scopeMenu),u=p.useRef(null),c=(0,E.useComposedRefs)(t,u);return(0,r.jsx)(ec.Provider,{scope:e.__scopeMenu,children:(0,r.jsx)(L.Presence,{present:i||o.open,children:(0,r.jsx)(ec.Slot,{scope:e.__scopeMenu,children:(0,r.jsx)(eP,{id:l.contentId,"aria-labelledby":l.triggerId,...a,ref:c,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&u.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,S.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==l.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:(0,S.composeEventHandlers)(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:(0,S.composeEventHandlers)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=el[s.dir].includes(e.key);t&&r&&(o.onOpenChange(!1),l.trigger?.focus(),e.preventDefault())})})})})})});function e5(e){return e?"open":"closed"}function e9(e){return"indeterminate"===e}function e7(e){return e9(e)?"indeterminate":e?"checked":"unchecked"}function e8(e){return t=>"mouse"===t.pointerType?e(t):void 0}e6.displayName=e3;var te="DropdownMenu",[tt,tr]=(0,T.createContextScope)(te,[em]),tn=em(),[ti,ta]=tt(te),to=e=>{let{__scopeDropdownMenu:t,children:n,dir:i,open:a,defaultOpen:o,onOpenChange:s,modal:l=!0}=e,u=tn(t),c=p.useRef(null),[d,f]=(0,j.useControllableState)({prop:a,defaultProp:o??!1,onChange:s,caller:te});return(0,r.jsx)(ti,{scope:t,triggerId:(0,P.useId)(),triggerRef:c,contentId:(0,P.useId)(),open:d,onOpenChange:f,onOpenToggle:p.useCallback(()=>f(e=>!e),[f]),modal:l,children:(0,r.jsx)(ew,{...u,open:d,onOpenChange:f,dir:i,modal:l,children:n})})};to.displayName=te;var ts="DropdownMenuTrigger",tl=p.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:i=!1,...a}=e,o=ta(ts,n),s=tn(n);return(0,r.jsx)(e_,{asChild:!0,...s,children:(0,r.jsx)(I.Primitive.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...a,ref:(0,E.composeRefs)(t,o.triggerRef),onPointerDown:(0,S.composeEventHandlers)(e.onPointerDown,e=>{!i&&0===e.button&&!1===e.ctrlKey&&(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:(0,S.composeEventHandlers)(e.onKeyDown,e=>
9{!i&&(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});tl.displayName=ts;var tu=e=>{let{__scopeDropdownMenu:t,...n}=e,i=tn(t);return(0,r.jsx)(eT,{...i,...n})};tu.displayName="DropdownMenuPortal";var tc="DropdownMenuContent",td=p.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=ta(tc,n),o=tn(n),s=p.useRef(!1);return(0,r.jsx)(eA,{id:a.contentId,"aria-labelledby":a.triggerId,...o,...i,ref:t,onCloseAutoFocus:(0,S.composeEventHandlers)(e.onCloseAutoFocus,e=>{s.current||a.triggerRef.current?.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:(0,S.composeEventHandlers)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!a.modal||n)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});td.displayName=tc,p.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=tn(n);return(0,r.jsx)(eD,{...a,...i,ref:t})}).displayName="DropdownMenuGroup",p.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=tn(n);return(0,r.jsx)(e$,{...a,...i,ref:t})}).displayName="DropdownMenuLabel";var tp=p.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=tn(n);return(0,r.jsx)(eU,{...a,...i,ref:t})});tp.displayName="DropdownMenuItem",p.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=tn(n);return(0,r.jsx)(eF,{...a,...i,ref:t})}).displayName="DropdownMenuCheckboxItem",p.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=tn(n);return(0,r.jsx)(eB,{...a,...i,ref:t})}).displayName="DropdownMenuRadioGroup",p.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=tn(n);return(0,r.jsx)(eW,{...a,...i,ref:t})}).displayName="DropdownMenuRadioItem",p.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=tn(n);return(0,r.jsx)(eX,{...a,...i,ref:t})}).displayName="DropdownMenuItemIndicator",p.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=tn(n);return(0,r.jsx)(eJ,{...a,...i,ref:t})}).displayName="DropdownMenuSeparator",p.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=tn(n);return(0,r.jsx)(eQ,{...a,...i,ref:t})}).displayName="DropdownMenuArrow",p.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=tn(n);return(0,r.jsx)(e4,{...a,...i,ref:t})}).displayName="DropdownMenuSubTrigger",p.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=tn(n);return(0,r.jsx)(e6,{...a,...i,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var tf=e.i(432842);function tm({...e}){return(0,r.jsx)(to,{"data-slot":"dropdown-menu",...e})}function th({...e}){return(0,r.jsx)(tl,{"data-slot":"dropdown-menu-trigger",...e})}function tg({className:e,sideOffset:t=4,...n}){return(0,r.jsx)(tu,{children:(0,r.jsx)(td,{"data-slot":"dropdown-menu-content",sideOffset:t,className:(0,g.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function tv({className:e,inset:t,variant:n="default",...i}){return(0,r.jsx)(tp,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:(0,g.cn)("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...i})}e.i(204832),(0,e.i(950846).default)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);var ty="HoverCard",[tb,tx]=(0,T.createContextScope)(ty,[D.createPopperScope]),tw=(0,D.createPopperScope)(),[t_,tk]=tb(ty),tS=e=>{let{__scopeHoverCard:t,children:n,open:i,defaultOpen:a,onOpenChange:o,openDelay:s=700,closeDelay:l=300}=e,u=tw(t),c=p.useRef(0),d=p.useRef(0),f=p.useRef(!1),m=p.useRef(!1),[h,g]=(0,j.useControllableState)({prop:i,defaultProp:a??!1,onChange:o,caller:ty}),v=p.useCallback(()=>{clearTimeout(d.current),c.current=window.setTimeout(()=>g(!0),s)},[s,g]),y=p.useCallback(()=>{clearTimeout(c.current),f.current||m.current||(d.current=window.setTimeout(()=>g(!1),l))},[l,g]),b=p.useCallback(()=>g(!1),[g]);return p.useEffect(()=>()=>{clearTimeout(c.current),clearTimeout(d.current)},[]),(0,r.jsx)(t_,{scope:t,open:h,onOpenChange:g,onOpen:v,onClose:y,onDismiss:b,hasSelectionRef:f,isPointerDownOnContentRef:m,children:(0,r.jsx)(D.Root,{...u,children:n})})};tS.displayName=ty;var tE="HoverCardTrigger",tT=p.forwardRef((e,t)=>
9{let{__scopeHoverCard:n,...i}=e,a=tk(tE,n),o=tw(n);return(0,r.jsx)(D.Anchor,{asChild:!0,...o,children:(0,r.jsx)(I.Primitive.a,{"data-state":a.open?"open":"closed",...i,ref:t,onPointerEnter:(0,S.composeEventHandlers)(e.onPointerEnter,tP(a.onOpen)),onPointerLeave:(0,S.composeEventHandlers)(e.onPointerLeave,tP(a.onClose)),onFocus:(0,S.composeEventHandlers)(e.onFocus,a.onOpen),onBlur:(0,S.composeEventHandlers)(e.onBlur,a.onClose),onTouchStart:(0,S.composeEventHandlers)(e.onTouchStart,e=>e.preventDefault())})})});tT.displayName=tE;var tj="HoverCardPortal",[tI,tC]=tb(tj,{forceMount:void 0}),tA=e=>{let{__scopeHoverCard:t,forceMount:n,children:i,container:a}=e,o=tk(tj,t);return(0,r.jsx)(tI,{scope:t,forceMount:n,children:(0,r.jsx)(L.Presence,{present:n||o.open,children:(0,r.jsx)($.Portal,{asChild:!0,container:a,children:i})})})};tA.displayName=tj;var tN="HoverCardContent",tO=p.forwardRef((e,t)=>{let n=tC(tN,e.__scopeHoverCard),{forceMount:i=n.forceMount,...a}=e,o=tk(tN,e.__scopeHoverCard);return(0,r.jsx)(L.Presence,{present:i||o.open,children:(0,r.jsx)(tR,{"data-state":o.open?"open":"closed",...a,onPointerEnter:(0,S.composeEventHandlers)(e.onPointerEnter,tP(o.onOpen)),onPointerLeave:(0,S.composeEventHandlers)(e.onPointerLeave,tP(o.onClose)),ref:t})})});tO.displayName=tN;var tR=p.forwardRef((e,n)=>{let{__scopeHoverCard:i,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,...u}=e,c=tk(tN,i),d=tw(i),f=p.useRef(null),m=(0,E.useComposedRefs)(n,f),[h,g]=p.useState(!1);return p.useEffect(()=>{if(h){let e=document.body;return t=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=t,e.style.webkitUserSelect=t}}},[h]),p.useEffect(()=>{if(f.current){let e=()=>{g(!1),c.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(c.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!1}}},[c.isPointerDownOnContentRef,c.hasSelectionRef]),p.useEffect(()=>{f.current&&(function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;r.nextNode();)t.push(r.currentNode);return t})(f.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,r.jsx)(N.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:l,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:(0,S.composeEventHandlers)(s,e=>{e.preventDefault()}),onDismiss:c.onDismiss,children:(0,r.jsx)(D.Content,{...d,...u,onPointerDown:(0,S.composeEventHandlers)(u.onPointerDown,e=>{e.currentTarget.contains(e.target)&&g(!0),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!0}),ref:m,style:{...u.style,userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})});function tP(e){return t=>"touch"===t.pointerType?void 0:e()}function tD({...e}){return(0,r.jsx)(tS,{"data-slot":"hover-card",...e})}function t$({...e}){return(0,r.jsx)(tT,{"data-slot":"hover-card-trigger",...e})}function tL({className:e,align:t="center",sideOffset:n=4,...i}){return(0,r.jsx)(tA,{"data-slot":"hover-card-portal",children:(0,r.jsx)(tO,{"data-slot":"hover-card-content",align:t,sideOffset:n,className:(0,g.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...i})})}p.forwardRef((e,t)=>
9{let{__scopeHoverCard:n,...i}=e,a=tw(n);return(0,r.jsx)(D.Arrow,{...a,...i,ref:t})}).displayName="HoverCardArrow";var tM=e.i(294237);function tU({className:e,...t}){return(0,r.jsx)("div",{"data-slot":"input-group",role:"group",className:(0,g.cn)("group/input-group border-input dark:bg-input/30 relative flex w-full items-center rounded-md border shadow-xs transition-[color,box-shadow] outline-none","h-9 min-w-0 has-[>textarea]:h-auto","has-[>[data-align=inline-start]]:[&>input]:pl-2","has-[>[data-align=inline-end]]:[&>input]:pr-2","has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3","has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3","has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px]","has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",e),...t})}let tz=(0,tM.cva)("text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>svg:not([class*='size-'])]:size-4 [&>kbd]:rounded-[calc(var(--radius)-5px)] group-data-[disabled=true]/input-group:opacity-50",{variants:{align:{"inline-start":"order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]","inline-end":"order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]","block-start":"order-first w-full justify-start px-3 pt-3 [.border-b]:pb-3 group-has-[>input]/input-group:pt-2.5","block-end":"order-last w-full justify-start px-3 pb-3 [.border-t]:pt-3 group-has-[>input]/input-group:pb-2.5"}},defaultVariants:{align:"inline-start"}});function tF({className:e,align:t="inline-start",...n}){return(0,r.jsx)("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:(0,g.cn)(tz({align:t}),e),onClick:e=>{if(e.target.closest("button"))return;let t=e.currentTarget.parentElement,r=t?.querySelector("input")??t?.querySelector("textarea");r?.focus()},...n})}let tq=(0,tM.cva)("text-sm shadow-none flex gap-2 items-center",{variants:{size:{xs:"h-6 gap-1 px-2 rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-3.5 has-[>svg]:px-2",sm:"h-8 px-2.5 gap-1.5 rounded-md has-[>svg]:px-2.5","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function tZ({className:e,type:t="button",variant:n="ghost",size:i="xs",...a}){return(0,r.jsx)(f.Button,{type:t,"data-size":i,variant:n,className:(0,g.cn)(tq({size:i}),e),...a})}let tV=p.forwardRef(({className:e,...t},n)=>(0,r.jsx)("textarea",{ref:n,"data-slot":"input-group-control",className:(0,g.cn)("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50","flex-1 resize-none rounded-none border-0 bg-transparent py-2 shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t}));tV.displayName="InputGroupTextarea",e.s(["InputGroup",0,tU,"InputGroupAddon",0,tF,"InputGroupButton",0,tZ,"InputGroupTextarea",0,tV],5278);var tB=e.i(552813);function tH(e,[t,r]){return Math.min(r,Math.max(t,e))}var tW=e.i(426813),tG=e.i(546801),tK=[" ","Enter","ArrowUp","ArrowDown"],tY=[" ","Enter"],tX="Select",[tJ,tQ,t0]=(0,C.createCollection)(tX),[t1,t2]=(0,T.createContextScope)(tX,[t0,D.createPopperScope]),t4=(0,D.createPopperScope)(),[t3,t6]=t1(tX),[t5,t9]=t1(tX),t7=e=>{let{__scopeSelect:t,children:n,open:i,defaultOpen:a,onOpenChange:o,value:s,defaultValue:l,onValueChange:u,dir:c,name:d,autoComplete:f,disabled:m,required:h,form:g}=e,v=t4(t),[y,b]=p.useState(null),[x,w]=p.useState(null),[_,k]=p.useState(!1),S=(0,A.useDirection)(c),[E,T]=(0,j.useControllableState)({prop:i,defaultProp:a??!1,onChange:o,caller:tX}),[I,C]=(0,j.useControllableState)({prop:s,defaultProp:l,onChange:u,caller:tX}),N=p.useRef(null),O=!y||g||!!y.closest("form"),[R,$]=p.useState(new Set),L=Array.from(R).map(e=>e.props.value).join(";");return(0,r.jsx)(D.Root,{...v,children:(0,r.jsxs)(t3,{required:h,scope:t,trigger:y,onTriggerChange:b,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:_,onValueNodeHasChildrenChange:k,contentId:(0,P.useId)(),value:I,onValueChange:C,open:E,onOpenChange:T,dir:S,triggerPointerDownPosRef:N,disabled:m,children:[(0,r.jsx)(tJ.Provider,{scope:t,children:(0,r.jsx)(t5,{scope:e.__scopeSelect,onNativeOptionAdd:p.useCallback(e=>{$(t=>new Set(t).add(e))},[]),onNativeOptionRemove:p.useCallback(e=>{$(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:n})}),O?(0,r.jsxs)(rD,{"aria-hidden":!0,required:h,tabIndex:-1,name:d,autoComplete:f,value:I,onChange:e=>C(e.target.value),disabled:m,form:g,children:[void 0===I?(0,r.jsx)("option",{value:""}):null,Array.from(R)]},L):null]})})};t7.displayName=tX;var t8="SelectTrigger",re=p.forwardRef((e,t)=>
9{let{__scopeSelect:n,disabled:i=!1,...a}=e,o=t4(n),s=t6(t8,n),l=s.disabled||i,u=(0,E.useComposedRefs)(t,s.onTriggerChange),c=tQ(n),d=p.useRef("touch"),[f,m,h]=rL(e=>{let t=c().filter(e=>!e.disabled),r=t.find(e=>e.value===s.value),n=rM(t,e,r);void 0!==n&&s.onValueChange(n.value)}),g=e=>{l||(s.onOpenChange(!0),h()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,r.jsx)(D.Anchor,{asChild:!0,...o,children:(0,r.jsx)(I.Primitive.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":r$(s.value)?"":void 0,...a,ref:u,onClick:(0,S.composeEventHandlers)(a.onClick,e=>{e.currentTarget.focus(),"mouse"!==d.current&&g(e)}),onPointerDown:(0,S.composeEventHandlers)(a.onPointerDown,e=>{d.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(g(e),e.preventDefault())}),onKeyDown:(0,S.composeEventHandlers)(a.onKeyDown,e=>{let t=""!==f.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),(!t||" "!==e.key)&&tK.includes(e.key)&&(g(),e.preventDefault())})})})});re.displayName=t8;var rt="SelectValue",rr=p.forwardRef((e,t)=>{let{__scopeSelect:n,className:i,style:a,children:o,placeholder:s="",...l}=e,u=t6(rt,n),{onValueNodeHasChildrenChange:c}=u,d=void 0!==o,p=(0,E.useComposedRefs)(t,u.onValueNodeChange);return(0,tW.useLayoutEffect)(()=>{c(d)},[c,d]),(0,r.jsx)(I.Primitive.span,{...l,ref:p,style:{pointerEvents:"none"},children:r$(u.value)?(0,r.jsx)(r.Fragment,{children:s}):o})});rr.displayName=rt;var rn=p.forwardRef((e,t)=>{let{__scopeSelect:n,children:i,...a}=e;return(0,r.jsx)(I.Primitive.span,{"aria-hidden":!0,...a,ref:t,children:i||"â¼"})});rn.displayName="SelectIcon";var ri=e=>(0,r.jsx)($.Portal,{asChild:!0,...e});ri.displayName="SelectPortal";var ra="SelectContent",ro=p.forwardRef((e,t)=>{let n=t6(ra,e.__scopeSelect),[i,a]=p.useState();return((0,tW.useLayoutEffect)(()=>{a(new DocumentFragment)},[]),n.open)?(0,r.jsx)(rc,{...e,ref:t}):i?tB.createPortal((0,r.jsx)(rs,{scope:e.__scopeSelect,children:(0,r.jsx)(tJ.Slot,{scope:e.__scopeSelect,children:(0,r.jsx)("div",{children:e.children})})}),i):null});ro.displayName=ra;var[rs,rl]=t1(ra),ru=(0,et.createSlot)("SelectContent.RemoveScroll"),rc=p.forwardRef((e,t)=>{let{__scopeSelect:n,position:i="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:s,side:l,sideOffset:u,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:m,collisionPadding:h,sticky:g,hideWhenDetached:v,avoidCollisions:y,...b}=e,x=t6(ra,n),[w,_]=p.useState(null),[k,T]=p.useState(null),j=(0,E.useComposedRefs)(t,e=>_(e)),[I,C]=p.useState(null),[A,P]=p.useState(null),D=tQ(n),[$,L]=p.useState(!1),M=p.useRef(!1);p.useEffect(()=>{if(w)return(0,er.hideOthers)(w)},[w]),(0,O.useFocusGuards)();let U=p.useCallback(e=>{let[t,...r]=D().map(e=>e.ref.current),[n]=r.slice(-1),i=document.activeElement;for(let r of e)if(r===i||(r?.scrollIntoView({block:"nearest"}),r===t&&k&&(k.scrollTop=0),r===n&&k&&(k.scrollTop=k.scrollHeight),r?.focus(),document.activeElement!==i))return},[D,k]),z=p.useCallback(()=>U([I,w]),[U,I,w]);p.useEffect(()=>{$&&z()},[$,z]);let{onOpenChange:F,triggerPointerDownPosRef:q}=x;p.useEffect(()=>{if(w){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(q.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(q.current?.y??0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():w.contains(r.target)||F(!1),document.removeEventListener("pointermove",t),q.current=null};return null!==q.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[w,F,q]),p.useEffect(()=>{let e=()=>F(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[F]);let[Z,V]=rL(e=>{let t=D().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=rM(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),B=p.useCallback((e,t,r)=>{let n=!M.current&&!r;(void 0!==x.value&&x.value===t||n)&&(C(e),n&&(M.current=!0))},[x.value]),H=p.useCallback(()=>w?.focus(),[w]),W=p.useCallback((e,t,r)=>{let n=!M.current&&!r;(void 0!==x.value&&x.value===t||n)&&P(e)},[x.value]),G="popper"===i?rp:rd,K=G===rp?{side:l,sideOffset:u,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:m,collisionPadding:h,sticky:g,hideWhenDetached:v,avoidCollisions:y}:{};return(0,r.jsx)(rs,{scope:n,content:w,viewport:k,onViewportChange:T,itemRefCallback:B,selectedItem:I,onItemLeave:H,itemTextRefCallback:W,focusSelectedItem:z,selectedItemText:A,position:i,isPositioned:$,
9searchRef:Z,children:(0,r.jsx)(en.RemoveScroll,{as:ru,allowPinchZoom:!0,children:(0,r.jsx)(R.FocusScope,{asChild:!0,trapped:x.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,S.composeEventHandlers)(a,e=>{x.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,r.jsx)(N.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:(0,r.jsx)(G,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:e=>e.preventDefault(),...b,...K,onPlaced:()=>L(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:(0,S.composeEventHandlers)(b.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||V(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=D().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>U(t)),e.preventDefault()}})})})})})})});rc.displayName="SelectContentImpl";var rd=p.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:i,...a}=e,o=t6(ra,n),s=rl(ra,n),[l,u]=p.useState(null),[c,d]=p.useState(null),f=(0,E.useComposedRefs)(t,e=>d(e)),m=tQ(n),h=p.useRef(!1),g=p.useRef(!0),{viewport:v,selectedItem:y,selectedItemText:b,focusSelectedItem:x}=s,w=p.useCallback(()=>{if(o.trigger&&o.valueNode&&l&&c&&v&&y&&b){let e=o.trigger.getBoundingClientRect(),t=c.getBoundingClientRect(),r=o.valueNode.getBoundingClientRect(),n=b.getBoundingClientRect();if("rtl"!==o.dir){let i=n.left-t.left,a=r.left-i,o=e.left-a,s=e.width+o,u=Math.max(s,t.width),c=tH(a,[10,Math.max(10,window.innerWidth-10-u)]);l.style.minWidth=s+"px",l.style.left=c+"px"}else{let i=t.right-n.right,a=window.innerWidth-r.right-i,o=window.innerWidth-e.right-a,s=e.width+o,u=Math.max(s,t.width),c=tH(a,[10,Math.max(10,window.innerWidth-10-u)]);l.style.minWidth=s+"px",l.style.right=c+"px"}let a=m(),s=window.innerHeight-20,u=v.scrollHeight,d=window.getComputedStyle(c),p=parseInt(d.borderTopWidth,10),f=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),x=p+f+u+parseInt(d.paddingBottom,10)+g,w=Math.min(5*y.offsetHeight,x),_=window.getComputedStyle(v),k=parseInt(_.paddingTop,10),S=parseInt(_.paddingBottom,10),E=e.top+e.height/2-10,T=y.offsetHeight/2,j=p+f+(y.offsetTop+T);if(j<=E){let e=a.length>0&&y===a[a.length-1].ref.current;l.style.bottom="0px";let t=Math.max(s-E,T+(e?S:0)+(c.clientHeight-v.offsetTop-v.offsetHeight)+g);l.style.height=j+t+"px"}else{let e=a.length>0&&y===a[0].ref.current;l.style.top="0px";let t=Math.max(E,p+v.offsetTop+(e?k:0)+T);l.style.height=t+(x-j)+"px",v.scrollTop=j-E+v.offsetTop}l.style.margin="10px 0",l.style.minHeight=w+"px",l.style.maxHeight=s+"px",i?.(),requestAnimationFrame(()=>h.current=!0)}},[m,o.trigger,o.valueNode,l,c,v,y,b,o.dir,i]);(0,tW.useLayoutEffect)(()=>w(),[w]);let[_,k]=p.useState();(0,tW.useLayoutEffect)(()=>{c&&k(window.getComputedStyle(c).zIndex)},[c]);let S=p.useCallback(e=>{e&&!0===g.current&&(w(),x?.(),g.current=!1)},[w,x]);return(0,r.jsx)(rf,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:h,onScrollButtonChange:S,children:(0,r.jsx)("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:(0,r.jsx)(I.Primitive.div,{...a,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});rd.displayName="SelectItemAlignedPosition";var rp=p.forwardRef((e,t)=>{let{__scopeSelect:n,align:i="start",collisionPadding:a=10,...o}=e,s=t4(n);return(0,r.jsx)(D.Content,{...s,...o,ref:t,align:i,collisionPadding:a,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});rp.displayName="SelectPopperPosition";var[rf,rm]=t1(ra,{}),rh="SelectViewport",rg=p.forwardRef((e,t)=>
9{let{__scopeSelect:n,nonce:i,...a}=e,o=rl(rh,n),s=rm(rh,n),l=(0,E.useComposedRefs)(t,o.onViewportChange),u=p.useRef(0);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,r.jsx)(tJ.Slot,{scope:n,children:(0,r.jsx)(I.Primitive.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:(0,S.composeEventHandlers)(a.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=s;if(n?.current&&r){let e=Math.abs(u.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,i=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(i<n){let a=i+e,o=Math.min(n,a),s=a-o;r.style.height=o+"px","0px"===r.style.bottom&&(t.scrollTop=s>0?s:0,r.style.justifyContent="flex-end")}}}u.current=t.scrollTop})})})]})});rg.displayName=rh;var rv="SelectGroup",[ry,rb]=t1(rv);p.forwardRef((e,t)=>{let{__scopeSelect:n,...i}=e,a=(0,P.useId)();return(0,r.jsx)(ry,{scope:n,id:a,children:(0,r.jsx)(I.Primitive.div,{role:"group","aria-labelledby":a,...i,ref:t})})}).displayName=rv;var rx="SelectLabel";p.forwardRef((e,t)=>{let{__scopeSelect:n,...i}=e,a=rb(rx,n);return(0,r.jsx)(I.Primitive.div,{id:a.id,...i,ref:t})}).displayName=rx;var rw="SelectItem",[r_,rk]=t1(rw),rS=p.forwardRef((e,t)=>{let{__scopeSelect:n,value:i,disabled:a=!1,textValue:o,...s}=e,l=t6(rw,n),u=rl(rw,n),c=l.value===i,[d,f]=p.useState(o??""),[m,h]=p.useState(!1),g=(0,E.useComposedRefs)(t,e=>u.itemRefCallback?.(e,i,a)),v=(0,P.useId)(),y=p.useRef("touch"),b=()=>{a||(l.onValueChange(i),l.onOpenChange(!1))};if(""===i)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,r.jsx)(r_,{scope:n,value:i,disabled:a,textId:v,isSelected:c,onItemTextChange:p.useCallback(e=>{f(t=>t||(e?.textContent??"").trim())},[]),children:(0,r.jsx)(tJ.ItemSlot,{scope:n,value:i,disabled:a,textValue:d,children:(0,r.jsx)(I.Primitive.div,{role:"option","aria-labelledby":v,"data-highlighted":m?"":void 0,"aria-selected":c&&m,"data-state":c?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...s,ref:g,onFocus:(0,S.composeEventHandlers)(s.onFocus,()=>h(!0)),onBlur:(0,S.composeEventHandlers)(s.onBlur,()=>h(!1)),onClick:(0,S.composeEventHandlers)(s.onClick,()=>{"mouse"!==y.current&&b()}),onPointerUp:(0,S.composeEventHandlers)(s.onPointerUp,()=>{"mouse"===y.current&&b()}),onPointerDown:(0,S.composeEventHandlers)(s.onPointerDown,e=>{y.current=e.pointerType}),onPointerMove:(0,S.composeEventHandlers)(s.onPointerMove,e=>{y.current=e.pointerType,a?u.onItemLeave?.():"mouse"===y.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,S.composeEventHandlers)(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:(0,S.composeEventHandlers)(s.onKeyDown,e=>{(u.searchRef?.current===""||" "!==e.key)&&(tY.includes(e.key)&&b()," "===e.key&&e.preventDefault())})})})})});rS.displayName=rw;var rE="SelectItemText",rT=p.forwardRef((e,t)=>{let{__scopeSelect:n,className:i,style:a,...o}=e,s=t6(rE,n),l=rl(rE,n),u=rk(rE,n),c=t9(rE,n),[d,f]=p.useState(null),m=(0,E.useComposedRefs)(t,e=>f(e),u.onItemTextChange,e=>l.itemTextRefCallback?.(e,u.value,u.disabled)),h=d?.textContent,g=p.useMemo(()=>(0,r.jsx)("option",{value:u.value,disabled:u.disabled,children:h},u.value),[u.disabled,u.value,h]),{onNativeOptionAdd:v,onNativeOptionRemove:y}=c;return(0,tW.useLayoutEffect)(()=>(v(g),()=>y(g)),[v,y,g]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(I.Primitive.span,{id:u.textId,...o,ref:m}),u.isSelected&&s.valueNode&&!s.valueNodeHasChildren?tB.createPortal(o.children,s.valueNode):null]})});rT.displayName=rE;var rj="SelectItemIndicator",rI=p.forwardRef((e,t)=>{let{__scopeSelect:n,...i}=e;return rk(rj,n).isSelected?(0,r.jsx)(I.Primitive.span,{"aria-hidden":!0,...i,ref:t}):null});rI.displayName=rj;var rC="SelectScrollUpButton",rA=p.forwardRef((e,t)=>
9{let n=rl(rC,e.__scopeSelect),i=rm(rC,e.__scopeSelect),[a,o]=p.useState(!1),s=(0,E.useComposedRefs)(t,i.onScrollButtonChange);return(0,tW.useLayoutEffect)(()=>{if(n.viewport&&n.isPositioned){let e=function(){o(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),a?(0,r.jsx)(rR,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});rA.displayName=rC;var rN="SelectScrollDownButton",rO=p.forwardRef((e,t)=>{let n=rl(rN,e.__scopeSelect),i=rm(rN,e.__scopeSelect),[a,o]=p.useState(!1),s=(0,E.useComposedRefs)(t,i.onScrollButtonChange);return(0,tW.useLayoutEffect)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;o(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),a?(0,r.jsx)(rR,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});rO.displayName=rN;var rR=p.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:i,...a}=e,o=rl("SelectScrollButton",n),s=p.useRef(null),l=tQ(n),u=p.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return p.useEffect(()=>()=>u(),[u]),(0,tW.useLayoutEffect)(()=>{let e=l().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[l]),(0,r.jsx)(I.Primitive.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:(0,S.composeEventHandlers)(a.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(i,50))}),onPointerMove:(0,S.composeEventHandlers)(a.onPointerMove,()=>{o.onItemLeave?.(),null===s.current&&(s.current=window.setInterval(i,50))}),onPointerLeave:(0,S.composeEventHandlers)(a.onPointerLeave,()=>{u()})})});p.forwardRef((e,t)=>{let{__scopeSelect:n,...i}=e;return(0,r.jsx)(I.Primitive.div,{"aria-hidden":!0,...i,ref:t})}).displayName="SelectSeparator";var rP="SelectArrow";p.forwardRef((e,t)=>{let{__scopeSelect:n,...i}=e,a=t4(n),o=t6(rP,n),s=rl(rP,n);return o.open&&"popper"===s.position?(0,r.jsx)(D.Arrow,{...a,...i,ref:t}):null}).displayName=rP;var rD=p.forwardRef(({__scopeSelect:e,value:t,...n},i)=>{let a,o=p.useRef(null),s=(0,E.useComposedRefs)(i,o),l=(a=p.useRef({value:t,previous:t}),p.useMemo(()=>(a.current.value!==t&&(a.current.previous=a.current.value,a.current.value=t),a.current.previous),[t]));return p.useEffect(()=>{let e=o.current;if(!e)return;let r=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(l!==t&&r){let n=new Event("change",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[l,t]),(0,r.jsx)(I.Primitive.select,{...n,style:{...tG.VISUALLY_HIDDEN_STYLES,...n.style},ref:s,defaultValue:t})});function r$(e){return""===e||void 0===e}function rL(e){let t=(0,M.useCallbackRef)(e),r=p.useRef(""),n=p.useRef(0),i=p.useCallback(e=>{let i=r.current+e;t(i),function e(t){r.current=t,window.clearTimeout(n.current),""!==t&&(n.current=window.setTimeout(()=>e(""),1e3))}(i)},[t]),a=p.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return p.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,a]}function rM(e,t,r){var n,i;let a=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=r?e.indexOf(r):-1,s=(n=e,i=Math.max(o,0),n.map((e,t)=>n[(i+t)%n.length]));1===a.length&&(s=s.filter(e=>e!==r));let l=s.find(e=>e.textValue.toLowerCase().startsWith(a.toLowerCase()));return l!==r?l:void 0}rD.displayName="SelectBubbleInput";var rU=e.i(763777),rz=e.i(611941);function rF({...e}){return(0,r.jsx)(t7,{"data-slot":"select",...e})}function rq({...e}){return(0,r.jsx)(rr,{"data-slot":"select-value",...e})}function rZ({className:e,size:t="default",children:n,...i}){return(0,r.jsxs)(re,{"data-slot":"select-trigger","data-size":t,className:(0,g.cn)("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...i,children:[n,(0,r.jsx)(rn,{asChild:!0,children:(0,r.jsx)(rU.ChevronDownIcon,{className:"size-4 opacity-50"})})]})}function rV({className:e,children:t,position:n="popper",align:i="center",...a}){return(0,r.jsx)(ri,{children:(0,r.jsxs)(ro,{"data-slot":"select-content",className:(0,g.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
9de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,align:i,...a,children:[(0,r.jsx)(rH,{}),(0,r.jsx)(rg,{className:(0,g.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),(0,r.jsx)(rW,{})]})})}function rB({className:e,children:t,...n}){return(0,r.jsxs)(rS,{"data-slot":"select-item",className:(0,g.cn)("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[(0,r.jsx)("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:(0,r.jsx)(rI,{children:(0,r.jsx)(tf.CheckIcon,{className:"size-4"})})}),(0,r.jsx)(rT,{children:t})]})}function rH({className:e,...t}){return(0,r.jsx)(rA,{"data-slot":"select-scroll-up-button",className:(0,g.cn)("flex cursor-default items-center justify-center py-1",e),...t,children:(0,r.jsx)(rz.ChevronUpIcon,{className:"size-4"})})}function rW({className:e,...t}){return(0,r.jsx)(rO,{"data-slot":"select-scroll-down-button",className:(0,g.cn)("flex cursor-default items-center justify-center py-1",e),...t,children:(0,r.jsx)(rU.ChevronDownIcon,{className:"size-4"})})}let rG=(0,p.createContext)(null),rK=(0,p.createContext)(null),rY=()=>(0,p.useContext)(rG),rX=(0,p.createContext)(null),rJ=()=>{let e=(0,p.useContext)(rK),t=(0,p.useContext)(rX),r=e??t;if(!r)throw Error("usePromptInputAttachments must be used within a PromptInput or PromptInputProvider");return r},rQ=(0,p.forwardRef)(({onChange:e,className:t,placeholder:n="What would you like to know?",...i},a)=>{let o=rY(),s=rJ(),[l,u]=(0,p.useState)(!1),c=o?{value:o.textInput.value,onChange:t=>{o.textInput.setInput(t.currentTarget.value),e?.(t)}}:{onChange:e};return(0,r.jsx)(tV,{className:(0,g.cn)("field-sizing-content max-h-48 overflow-y-auto",t),name:"message",onCompositionEnd:()=>u(!1),onCompositionStart:()=>u(!0),onKeyDown:e=>{if("Enter"===e.key){if(l||e.nativeEvent.isComposing||e.shiftKey)return;e.preventDefault();let t=e.currentTarget.form,r=t?.querySelector('button[type="submit"]');if(r?.disabled)return;t?.requestSubmit()}if("Backspace"===e.key&&""===e.currentTarget.value&&s.files.length>0){e.preventDefault();let t=s.files.at(-1);t&&s.remove(t.id)}},onPaste:e=>{let t=e.clipboardData?.items;if(!t)return;let r=[];for(let e=0;e<t.length;e++){let n=t[e];if("file"===n.kind){let e=n.getAsFile();e&&r.push(e)}}r.length>0&&(e.preventDefault(),s.add(r))},placeholder:n,ref:a,rows:1,...i,...c})});rQ.displayName="PromptInputTextarea";let r0=({variant:e="ghost",className:t,size:n,...i})=>{let a=n??(p.Children.count(i.children)>1?"sm":"icon-sm");return(0,r.jsx)(tZ,{className:(0,g.cn)(t),size:a,type:"button",variant:e,...i})},r1=({openDelay:e=0,closeDelay:t=0,...n})=>(0,r.jsx)(tD,{closeDelay:t,openDelay:e,...n}),r2=({align:e="start",...t})=>(0,r.jsx)(tL,{align:e,...t});e.s(["AudioWaveform",0,function({className:e,...t}){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("style",{children:`@keyframes audioWaveform { 10 0%, 100% { transform: scaleY(0.5); } 11 50% { transform: scaleY(1); } 12 }`}),(0,r.jsx)("div",{className:e,style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2px"},...t,children:Array.from({length:8}).map((e,t)=>(0,r.jsx)("div",{style:{width:"2px",height:"16px",borderRadius:"9999px",backgroundColor:"#6b7280",animation:`audioWaveform 0.8s ease-in-out ${.08*t}s infinite backwards`}},t))})]})},"PromptInput",0,({className:e,accept:t,multiple:n,globalDrop:i,syncHiddenInput:a,maxFiles:o,maxFileSize:s,onError:l,groupClassName:u,onSubmit:c,children:f,...m})=>{let h=rY(),v=!!h,y=(0,p.useRef)(null),b=(0,p.useRef)(null),[x,w]=(0,p.useState)([]),_=v?h.attachments.files:x,k=(0,p.useRef)(_);k.current=_;let S=(0,p.useCallback)(()=>{y.current?.click()},[]),E=(0,p.useCallback)(e=>!t||""===t.trim()||t.split(",").map(e=>
12e.trim()).filter(Boolean).some(t=>{if(t.endsWith("/*")){let r=t.slice(0,-1);return e.type.startsWith(r)}return e.type===t}),[t]),T=(0,p.useCallback)(e=>{let t=Array.from(e),r=t.filter(e=>E(e));if(t.length&&0===r.length)return void l?.({code:"accept",message:"No files match the accepted types."});let n=r.filter(e=>!s||e.size<=s);r.length>0&&0===n.length?l?.({code:"max_file_size",message:"All files exceed the maximum size."}):w(e=>{let t="number"==typeof o?Math.max(0,o-e.length):void 0,r="number"==typeof t?n.slice(0,t):n;"number"==typeof t&&n.length>t&&l?.({code:"max_files",message:"Too many files. Some were not added."});let i=[];for(let e of r)i.push({id:(0,d.nanoid)(),type:"file",url:URL.createObjectURL(e),mediaType:e.type,filename:e.name});return e.concat(i)})},[E,o,s,l]),j=(0,p.useCallback)(e=>w(t=>{let r=t.find(t=>t.id===e);return r?.url&&URL.revokeObjectURL(r.url),t.filter(t=>t.id!==e)}),[]),I=(0,p.useCallback)(()=>w(e=>{for(let t of e)t.url&&URL.revokeObjectURL(t.url);return[]}),[]),C=v?h.attachments.add:T,A=v?h.attachments.remove:j,N=v?h.attachments.clear:I,O=v?h.attachments.openFileDialog:S;(0,p.useEffect)(()=>{v&&h.__registerFileInput(y,()=>y.current?.click())},[v,h]),(0,p.useEffect)(()=>{a&&y.current&&0===_.length&&(y.current.value="")},[_,a]),(0,p.useEffect)(()=>{let e=b.current;if(!e||i)return;let t=e=>{e.dataTransfer?.types?.includes("Files")&&e.preventDefault()},r=e=>{e.dataTransfer?.types?.includes("Files")&&e.preventDefault(),e.dataTransfer?.files&&e.dataTransfer.files.length>0&&C(e.dataTransfer.files)};return e.addEventListener("dragover",t),e.addEventListener("drop",r),()=>{e.removeEventListener("dragover",t),e.removeEventListener("drop",r)}},[C,i]),(0,p.useEffect)(()=>{if(!i)return;let e=e=>{e.dataTransfer?.types?.includes("Files")&&e.preventDefault()},t=e=>{e.dataTransfer?.types?.includes("Files")&&e.preventDefault(),e.dataTransfer?.files&&e.dataTransfer.files.length>0&&C(e.dataTransfer.files)};return document.addEventListener("dragover",e),document.addEventListener("drop",t),()=>{document.removeEventListener("dragover",e),document.removeEventListener("drop",t)}},[C,i]),(0,p.useEffect)(()=>()=>{if(!v)for(let e of k.current)e.url&&URL.revokeObjectURL(e.url)},[v]);let R=async e=>{try{let t=await fetch(e),r=await t.blob();return new Promise(e=>{let t=new FileReader;t.onloadend=()=>e(t.result),t.onerror=()=>e(null),t.readAsDataURL(r)})}catch{return null}},P=(0,p.useMemo)(()=>({files:_.map(e=>({...e,id:e.id})),add:C,remove:A,clear:N,openFileDialog:O,fileInputRef:y}),[_,C,A,N,O]),D=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("input",{accept:t,"aria-label":"Upload files",className:"hidden",multiple:n,onChange:e=>{e.currentTarget.files&&C(e.currentTarget.files),e.currentTarget.value=""},ref:y,title:"Upload files",type:"file"}),(0,r.jsx)("form",{className:(0,g.cn)("w-full",e),onSubmit:e=>{e.preventDefault();let t=e.currentTarget,r=v?h.textInput.value:new FormData(t).get("message")||"";v||t.reset(),Promise.all(_.map(async({id:e,...t})=>{if(t.url&&t.url.startsWith("blob:")){let e=await R(t.url);return{...t,url:e??t.url}}return t})).then(t=>{try{let n=c({text:r,files:t},e);n instanceof Promise?n.then(()=>{N(),v&&h.textInput.clear()}).catch(()=>{}):(N(),v&&h.textInput.clear())}catch{}}).catch(()=>{})},ref:b,...m,children:(0,r.jsx)(tU,{className:(0,g.cn)("overflow-hidden",u),children:f})})]});return v?D:(0,r.jsx)(rX.Provider,{value:P,children:D})},"PromptInputActionAddAttachments",0,({label:e="Add photos or files",...t})=>{let n=rJ();return(0,r.jsxs)(tv,{...t,onSelect:e=>{e.preventDefault(),n.openFileDialog()},children:[(0,r.jsx)(i.ImageIcon,{className:"mr-2 size-4"})," ",e]})},"PromptInputActionMenu",0,e=>(0,r.jsx)(tm,{...e}),"PromptInputActionMenuContent",0,({className:e,...t})=>(0,r.jsx)(tg,{align:"start",className:(0,g.cn)(e),...t}),"PromptInputActionMenuItem",0,({className:e,...t})=>(0,r.jsx)(tv,{className:(0,g.cn)(e),...t}),"PromptInputActionMenuTrigger",0,({className:e,children:t,...n})=>(0,r.jsx)(th,{asChild:!0,children:(0,r.jsx)(r0,{className:e,...n,children:t??(0,r.jsx)(l.PlusIcon,{className:"size-4"})})}),"PromptInputAttachment",0,function({data:e,className:t,...n}){let i=rJ(),a=e.filename||"",o="image"==(e.mediaType?.startsWith("image/")&&e.url?"image":"file"),l=a||(o?"Image":"Attachment");return(0,r.jsxs)(r1,{children:[(0,r.jsx)(t$,{asChild:!0,children:(0,r.jsxs)("div",{className:(0,g.cn)("group relative flex h-8 cursor-pointer select-none items-center gap-1.5 rounded-md border border-border px-1.5 font-medium transition-all hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",t),...n,children:[(0,r.jsxs)("div",{className:"relative size-5 shrink-0",children:[(0,r.jsx)("div",{className:"absolute inset-0 flex size-5 items-center justify-center overflow-hidden rounded bg-background transition-opacity group-hover:opacity-0",children:o?(0,r.jsx)("img",{alt:a||"attachment",className:"size-5 object-cover",height:20,src:e.url,width:20}):(0,r.jsx)("div",{className:"flex size-5 items-center justify-center text-muted-foreground",children:(0,r.jsx)(s.PaperclipIcon,{className:"size-3"})})}),(0,r.jsxs)(f.Button,{"aria-label":"Remove attachment",className:"absolute inset-0 size-5 cursor-pointer rounded p-0 opacity-0 transition-opacity group-hover:pointer-events-auto group-hover:opacity-100 [&>svg]:size-2.5",onClick:t=>{t.stopPropagation(),i.remove(e.id)},type:"button",variant:"ghost",children:[(0,r.jsx)(c.XIcon,{}),(0,r.jsx)("span",{className:"sr-only",children:"Remove"})]})]}),(0,r.jsx)("span",{className:"flex-1 truncate",children:l})]},e.id)}),(0,r.jsx)(r2,{className:"w-auto p-2",children:(0,r.jsxs)("div",{className:"w-auto space-y-3",children:[o?(0,r.jsx)("div",{className:"flex max-h-96 w-96 items-center justify-center overflow-hidden rounded-md border",children:(0,r.jsx)("img",{alt:a||"attachment preview",className:"max-h-full max-w-full object-contain",height:384,src:e.url,width:448})}):null,(0,r.jsx)("div",{className:"flex items-center gap-2.5",children:(0,r.jsxs)("div",{className:"min-w-0 flex-1 space-y-1 px-0.5",children:[(0,r.jsx)("h4",{className:"truncate font-semibold text-sm leading-none",children:a||(o?"Image":"Attachment")}),e.mediaType?(0,r.jsx)("p",{className:"truncate font-mono text-muted-foreground text-xs",children:e.mediaType}):null]})})]})})]})},"PromptInputAttachments",0,function({children:e,className:t,...n}){let i=rJ();return i.files.length?(0,r.jsx)("div",{className:(0,g.cn)("flex flex-wrap items-center gap-2 p-3 w-full",t),...n,children:i.files.map(t=>(0,r.jsx)(p.Fragment,{children:e(t)},t.id))}):null},"PromptInputBody",0,({className:e,...t})=>(0,r.jsx)("div",{className:(0,g.cn)("contents",e),...t}),"PromptInputButton",0,r0,"PromptInputCommand",0,({className:e,...t})=>(0,r.jsx)(v,{className:(0,g.cn)(e),...t}),"PromptInputCommandEmpty",0,({className:e,...t})=>(0,r.jsx)(x,{className:(0,g.cn)(e),...t}),"PromptInputCommandGroup",0,({className:e,...t})=>(0,r.jsx)(w,{className:(0,g.cn)(e),...t}),"PromptInputCommandInput",0,({className:e,...t})=>(0,r.jsx)(y,{className:(0,g.cn)(e),...t}),"PromptInputCommandItem",0,({className:e,...t})=>(0,r.jsx)(k,{className:(0,g.cn)(e),...t}),"PromptInputCommandList",0,({className:e,...t})=>(0,r.jsx)(b,{className:(0,g.cn)(e),...t}),"PromptInputCommandSeparator",0,({className:e,...t})=>(0,r.jsx)(_,{className:(0,g.cn)(e),...t}),"PromptInputFooter",0,({className:e,...t})=>
12(0,r.jsx)(tF,{align:"block-end",className:(0,g.cn)("justify-between gap-1",e),...t}),"PromptInputHeader",0,({className:e,...t})=>(0,r.jsx)(tF,{align:"block-end",className:(0,g.cn)("order-first flex-wrap gap-1",e),...t}),"PromptInputHoverCard",0,r1,"PromptInputHoverCardContent",0,r2,"PromptInputHoverCardTrigger",0,e=>(0,r.jsx)(t$,{...e}),"PromptInputProvider",0,function({initialInput:e="",children:t}){let[n,i]=(0,p.useState)(e),a=(0,p.useCallback)(()=>i(""),[]),[o,s]=(0,p.useState)([]),l=(0,p.useRef)(null),u=(0,p.useRef)(()=>{}),c=(0,p.useCallback)(e=>{let t=Array.from(e);0!==t.length&&s(e=>e.concat(t.map(e=>({id:(0,d.nanoid)(),type:"file",url:URL.createObjectURL(e),mediaType:e.type,filename:e.name}))))},[]),f=(0,p.useCallback)(e=>{s(t=>{let r=t.find(t=>t.id===e);return r?.url&&URL.revokeObjectURL(r.url),t.filter(t=>t.id!==e)})},[]),m=(0,p.useCallback)(()=>{s(e=>{for(let t of e)t.url&&URL.revokeObjectURL(t.url);return[]})},[]),h=(0,p.useRef)(o);h.current=o,(0,p.useEffect)(()=>()=>{for(let e of h.current)e.url&&URL.revokeObjectURL(e.url)},[]);let g=(0,p.useCallback)(()=>{u.current?.()},[]),v=(0,p.useMemo)(()=>({files:o,add:c,remove:f,clear:m,openFileDialog:g,fileInputRef:l}),[o,c,f,m,g]),y=(0,p.useCallback)((e,t)=>{l.current=e.current,u.current=t},[]),b=(0,p.useMemo)(()=>({textInput:{value:n,setInput:i,clear:a},attachments:v,__registerFileInput:y}),[n,a,v,y]);return(0,r.jsx)(rG.Provider,{value:b,children:(0,r.jsx)(rK.Provider,{value:v,children:t})})},"PromptInputSelect",0,e=>(0,r.jsx)(rF,{...e}),"PromptInputSelectContent",0,({className:e,...t})=>(0,r.jsx)(rV,{className:(0,g.cn)(e),...t}),"PromptInputSelectItem",0,({className:e,...t})=>(0,r.jsx)(rB,{className:(0,g.cn)(e),...t}),"PromptInputSelectTrigger",0,({className:e,...t})=>(0,r.jsx)(rZ,{className:(0,g.cn)("border-none bg-transparent font-medium text-muted-foreground shadow-none transition-colors","hover:bg-accent hover:text-foreground aria-expanded:bg-accent aria-expanded:text-foreground",e),...t}),"PromptInputSelectValue",0,({className:e,...t})=>(0,r.jsx)(rq,{className:(0,g.cn)(e),...t}),"PromptInputSpeechButton",0,({className:e,lang:t="ro-RO",textareaRef:n,onTranscriptionChange:i,onListeningChange:a,...s})=>{let l=rY(),[c,d]=(0,p.useState)(!1),[f,m]=(0,p.useState)(null),h=(0,p.useRef)(null),v=(0,p.useRef)(l),y=(0,p.useRef)(""),b=(0,p.useRef)(a);(0,p.useEffect)(()=>{v.current=l},[l]),(0,p.useEffect)(()=>{b.current=a},[a]),(0,p.useEffect)(()=>{if("SpeechRecognition"in window||"webkitSpeechRecognition"in window){let e=new(window.SpeechRecognition||window.webkitSpeechRecognition);e.continuous=!0,e.interimResults=!0,e.lang=t,e.onstart=()=>{y.current=v.current?.textInput.value??"",d(!0),b.current?.(!0)},e.onend=()=>{d(!1),b.current?.(!1)},e.onresult=e=>{let t="";if(1===e.results.length)t=e.results[0][0]?.transcript??"";else{let r=e.results[0][0]?.transcript??"",n=e.results[e.results.length-1][0]?.transcript??"";if(n.startsWith(r.trim()))t=n;else for(let r=0;r<e.results.length;r++){let n=e.results[r][0]?.transcript??"";n&&(t+=(t?" ":"")+n)}}let r=y.current+(y.current?" ":"")+t;v.current&&v.current.textInput.setInput(r),n?.current&&(n.current.value=r,n.current.dispatchEvent(new Event("input",{bubbles:!0}))),i?.(r)},e.onerror=()=>{d(!1),b.current?.(!1)},h.current=e,m(e)}return()=>{h.current?.stop()}},[t,n,i]);let x=(0,p.useCallback)(()=>{let e=h.current;e&&(c?e.stop():e.start())},[c]);return(0,p.useEffect)(()=>{if(!c)return;let e=e=>{"Escape"===e.key&&(e.preventDefault(),h.current?.stop())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[c]),(0,r.jsx)(r0,{"aria-label":c?"OpreÈte ascultarea":"VorbeÈte",className:(0,g.cn)(c&&"bg-accent text-accent-foreground",e),disabled:!f,onClick:x,type:"button",...s,children:c?(0,r.jsx)(u.SquareIcon,{className:"size-5"}):(0,r.jsx)(o.MicIcon,{className:"size-5"})})},"PromptInputSubmit",0,({className:e,variant:t="default",size:i="icon-sm",status:o,children:s,...l})=>{let d=(0,r.jsx)(n.CornerDownLeftIcon,{className:"size-4"});return"submitted"===o?d=(0,r.jsx)(a.Loader2Icon,{className:"size-4 animate-spin"}):"streaming"===o?d=(0,r.jsx)(u.SquareIcon,{className:"size-4"}):"error"===o&&(d=(0,r.jsx)(c.XIcon,{className:"size-4"})),(0,r.jsx)(tZ,{"aria-label":"Submit",className:(0,g.cn)(e),size:i,type:"submit",variant:t,...l,children:s??d})},"PromptInputTab",0,({className:e,...t})=>(0,r.jsx)("div",{className:(0,g.cn)(e),...t}),"PromptInputTabBody",0,({className:e,...t})=>(0,r.jsx)("div",{className:(0,g.cn)("space-y-1",e),...t}),"PromptInputTabItem",0,({className:e,...t})=>(0,r.jsx)("div",{className:(0,g.cn)("flex items-center gap-2 px-3 py-2 text-xs hover:bg-accent",e),...t}),"PromptInputTabLabel",0,({className:e,...t})=>(0,r.jsx)("h3",{className:(0,g.cn)("mb-2 px-3 font-medium text-muted-foreground text-xs",e),...t}),"PromptInputTabsList",0,({className:e,...t})=>(0,r.jsx)("div",{className:(0,g.cn)(e),...t}),"PromptInputTextarea",0,rQ,"PromptInputTools",0,({className:e,...t})=>(0,r.jsx)("div",{className:(0,g.cn)("flex items-center gap-1",e),...t}),"usePromptInputAttachments",0,rJ,"usePromptInputController",0,()=>{let e=(0,p.useContext)(rG);if(!e)throw Error("Wrap your component inside <PromptInputProvider> to use usePromptInputController().");return e},"useProviderAttachments",0,()=>{let e=(0,p.useContext)(rK);if(!e)throw Error("Wrap your component inside <PromptInputProvider> to use useProviderAttachments().");return e}],900583)},762767,241130,e=>{"use strict";var t=e.i(813919),r=e.i(139499),n=e.i(402704),i=e.i(134970),a=e.i(183018),o=e.i(718100),s=e.i(61720),l=e.i(903692),u=e.i(812064),c=e.i(210681);let d=(e,t)=>!!t&&(e===t||d(e,t.parentElement));var p=e.i(414161),f=e.i(664356);let m=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),h=new WeakSet;function g(e){return t=>{"Enter"===t.key&&e(t)}}function v(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function y(e){return(0,p.isPrimaryPointer)(e)&&!(0,c.isDragActive)()}var b=e.i(347248),x=e.i(163080),w=e.i(275146);function _(e,t,r){let{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap","Start"===r);let i=n["onTap"+("End"===r?"":r)];i&&b.frame.postRender(()=>i(t,(0,x.extractEventInfo)(t)))}class k extends w.Feature{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){let[n,i,a]=(0,f.setupGesture)(e,r),o=e=>{let n=e.currentTarget;if(!y(e))return;h.add(n);let a=t(n,e),o=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),h.has(n)&&h.delete(n),y(e)&&"function"==typeof a&&a(e,{success:t})},s=e=>{o(e,n===window||n===document||r.useGlobalTarget||d(n,e.target))},l=e=>{o(e,!1)};window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",l,i)};
12return n.forEach(e=>{((r.useGlobalTarget?window:e).addEventListener("pointerdown",o,i),(0,u.isHTMLElement)(e))&&(e.addEventListener("focus",e=>((e,t)=>{let r=e.currentTarget;if(!r)return;let n=g(()=>{if(h.has(r))return;v(r,"down");let e=g(()=>{v(r,"up")});r.addEventListener("keyup",e,t),r.addEventListener("blur",()=>v(r,"cancel"),t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)})(e,i)),m.has(e.tagName)||-1!==e.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))}),a}(e,(e,t)=>(_(this.node,t,"Start"),(e,{success:t})=>_(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}var S=w;let E=new WeakMap,T=new WeakMap,j=e=>{let t=E.get(e.target);t&&t(e)},I=e=>{e.forEach(j)},C={some:0,all:1};class A extends S.Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.unmount();let{viewport:r={}}=this.node.getProps(),{root:n,margin:i,amount:a="some",once:o}=r,s={root:n?n.current:void 0,rootMargin:i,threshold:"number"==typeof a?a:C[a]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,o&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),i=t?r:n;i&&i(e)};return e=this.node.current,t=function({root:e,...t}){let r=e||document;T.has(r)||T.set(r,{});let n=T.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(I,{root:e,...t})),n[i]}(s),E.set(e,l),t.observe(e),()=>{E.delete(e),t.unobserve(e)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}let N={inView:{Feature:A},tap:{Feature:k},focus:{Feature:l.FocusGesture},hover:{Feature:s.HoverGesture}};var O=e.i(382471),R=e.i(973933);let P={layout:{ProjectionNode:O.HTMLProjectionNode,MeasureLayout:R.MeasureLayout}},D={...a.animations,...N,...o.drag,...P},$=(0,i.createMotionProxy)(D,n.createDomVisualElement);e.s(["motion",0,$],241130);var L=e.i(22114);let M=(0,L.memo)(({children:e,as:n="p",className:i,duration:a=2,spread:o=2})=>{let s=$.create(n),l=(0,L.useMemo)(()=>(e?.length??0)*o,[e,o]);return(0,t.jsx)(s,{animate:{backgroundPosition:"0% center"},className:(0,r.cn)("relative inline-block bg-[length:250%_100%,auto] bg-clip-text text-transparent","[--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),hsl(var(--background)),#0000_calc(50%+var(--spread)))] [background-repeat:no-repeat,padding-box]",i),initial:{backgroundPosition:"100% center"},style:{"--spread":`${l}px`,backgroundImage:"var(--bg), linear-gradient(hsl(var(--muted-foreground)), hsl(var(--muted-foreground)))"},transition:{repeat:1/0,duration:a,ease:"linear"},children:e})});e.s(["Shimmer",0,M],762767)},770778,975365,e=>{"use strict";var t=e.i(813919),r=e.i(432842),n=e.i(443102);let i=(0,e.i(950846).default)("ShieldQuestion",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["ShieldQuestion",0,i],975365);var a=e.i(821666),o=e.i(139499),s=e.i(569814),l=e.i(65432),u=e.i(762767);function c(e){return Object.fromEntries(Object.entries(e&&"object"==typeof e?e:{}).filter(([e])=>!e.startsWith("__")))}function d(e,t){let r=Object.values(c(e)).filter(e=>"string"==typeof e);if(0===r.length)return null;let n=r.join(", ");return t?`${t}: ${n}`:n}function p({input:e}){let r=Object.entries(c(e));return 0===r.length?null:(0,t.jsx)("table",{className:"mt-2",children:(0,t.jsx)("tbody",{className:"text-muted-foreground",children:r.map(([e,r])=>(0,t.jsxs)("tr",{children:[(0,t.jsxs)("td",{className:"pr-3 align-top capitalize",children:[e,":"]}),(0,t.jsx)("td",{className:"font-semibold text-foreground",children:"object"==typeof r?JSON.stringify(r):String(r)})]},e))})})}e.s(["ToolApproval",0,function({toolName:e,label:c,title:f,description:m,input:h,output:g,approval:v,state:y,onApprove:b,onDeny:x,className:w}){let _=f||c||e,k=h?.__confirmLabel||"De acord";return(0,t.jsxs)(l.Confirmation,{approval:v,className:(0,o.cn)("border-0 rounded-none bg-transparent p-0",w),state:y,children:[(0,t.jsx)(l.ConfirmationRequest,{children:(0,t.jsxs)("div",{className:"border-l-4 border-l-primary bg-primary/5 px-4 py-3 dark:border-l-primary-lighter dark:bg-primary/10",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(i,{className:"size-5 flex-shrink-0 text-foreground
12/70"}),(0,t.jsx)("h4",{className:"text-xl font-bold text-foreground/70",children:_})]}),m&&(0,t.jsx)("p",{className:"mt-3 text-muted-foreground",children:m}),(0,t.jsx)(p,{input:h}),(0,t.jsxs)("div",{className:"-mx-4 mt-4 flex items-center justify-end gap-2 border-t border-primary/10 px-4 pt-3 dark:border-primary/20",children:[(0,t.jsx)(s.Button,{small:!0,onClick:x,children:"RenunÈÄ"}),(0,t.jsx)(s.Button,{small:!0,primary:!0,onClick:b,children:k})]})]})}),(0,t.jsx)(l.ConfirmationExecuting,{children:(0,t.jsx)("div",{className:(0,o.cn)("inline-flex items-center gap-1.5",w),children:c?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.ChevronRight,{className:"size-3 text-muted-foreground/50"}),(0,t.jsx)(u.Shimmer,{as:"span",duration:2,children:c||""})]}):null})}),(0,t.jsx)(l.ConfirmationAccepted,{children:(0,t.jsxs)("div",{className:"inline-flex items-center gap-1.5 text-muted-foreground/70",children:[(0,t.jsx)(n.ChevronRight,{className:"size-3 text-muted-foreground/50"}),(0,t.jsx)("span",{children:d(h,f)||f||"Finalizat"}),g&&"object"==typeof g&&("error"===g.status||!0===g.error||"string"==typeof g.error)?(0,t.jsx)(a.XIcon,{className:"size-4 translate-y-px text-red-700"}):(0,t.jsx)(r.CheckIcon,{className:"size-4 text-green-700 dark:text-green-400/50"})]})}),(0,t.jsx)(l.ConfirmationRejected,{children:(0,t.jsxs)("div",{className:"inline-flex items-center gap-1.5 text-muted-foreground/70",children:[(0,t.jsx)(n.ChevronRight,{className:"size-3 text-muted-foreground/50"}),(0,t.jsx)("span",{children:d(h,f)||f||"AcÈiune respinsÄ"}),(0,t.jsx)(a.XIcon,{className:"size-4 translate-y-px text-red-700"})]})})]})},"ToolResult",0,function({toolName:e,label:r,state:i,input:s,output:l,errorText:c,className:p}){if("input-streaming"===i||"input-available"===i){let i=r||e;return(0,t.jsxs)("div",{className:(0,o.cn)("inline-flex items-center gap-1.5",p),children:[(0,t.jsx)(n.ChevronRight,{className:"size-3 text-muted-foreground/50"}),(0,t.jsx)(u.Shimmer,{as:"span",duration:2,children:i})]})}let f=r||e;return"output-error"===i?(0,t.jsxs)("div",{className:(0,o.cn)("rounded-lg border border-red-200 bg-red-50 px-3 py-2 text-red-700 dark:border-red-800 dark:bg-red-950 dark:text-red-300",p),children:["Eroare: ",c||"A apÄrut o eroare."]}):"cancelled"===i||"output-denied"===i?(0,t.jsxs)("div",{className:(0,o.cn)("inline-flex items-center gap-1.5 text-muted-foreground/70",p),children:[(0,t.jsx)(n.ChevronRight,{className:"size-3 text-muted-foreground/50"}),"string"==typeof l?l:"AcÈiune anulatÄ.",(0,t.jsx)(a.XIcon,{className:"size-4 translate-y-px text-red-700"})]}):"output-available"!==i?null:(0,t.jsxs)("div",{className:(0,o.cn)("inline-flex items-center gap-1.5 text-muted-foreground/70",p),children:[(0,t.jsx)(n.ChevronRight,{className:"size-3 text-muted-foreground/50"}),(0,t.jsx)("span",{children:d(s)||f})]})}],770778)},569814,777613,e=>{"use strict";var t=e.i(813919),r=e.i(867978),n=e.i(204832);let i=(0,e.i(950846).default)("FileDown",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]]),a="focus:ring-primary-light focus:ring-4 focus:ring-offset-0 focus:outline-none";
12e.s(["focusClasses",0,a,"focusInputClasses",0,"appearance-none focus:ring-primary-light focus-visible:ring-4 focus:ring-4 focus:ring-offset-0 focus:outline-none focus:border-slate-600 focus:placeholder-white"],777613);var o=e.i(139499);e.s(["Button",0,function({children:e,as:s="button",href:l=null,primary:u=!1,success:c=!1,danger:d=!1,arrow:p=!1,downloadIcon:f=!1,disabled:m=!1,submitting:h=!1,fullWidth:g=!1,small:v=!1,className:y,...b}){let x=(0,o.cn)("px-6 py-2 font-semibold truncate border-2 rounded-full text-primary text-base border-primary max-w-xs sm:max-w-none no-underline",a,"hover:bg-primary-dark hover:border-primary-dark hover:text-white","inline-flex items-center justify-center gap-x-1",u&&"bg-primary text-white",(m||h)&&["border-slate-300 hover:border-slate-300 cursor-not-allowed text-slate-500","hover:bg-transparent hover:text-slate-600",(u||c)&&"bg-slate-400 hover:bg-slate-400"],c&&!m&&!h&&"bg-green-700 border-green-700 text-white hover:bg-green-800 hover:border-green-800",v&&"px-4 py-2 mt-2 text-sm",g&&"w-full sm:w-auto",d&&"bg-red-500 hover:bg-red-700 text-white border-none hover:border-none",y);return null!==l&&"button"===s&&(s=r.default),(0,t.jsxs)(s,{className:x,href:l,...b,disabled:m||h,children:[h?(0,t.jsxs)("svg",{className:"w-5 h-5 mr-2 text-white animate-spin",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("circle",{className:"opacity-25",cx:12,cy:12,r:10,stroke:"currentColor",strokeWidth:4}),(0,t.jsx)("path",{className:"opacity-75",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",fill:"currentColor"})]}):null,!!f&&(0,t.jsx)(i,{className:"w-5 h-5 mr-1 flex-shrink-0"}),e,!!p&&(0,t.jsx)(n.ChevronRightIcon,{className:"w-5 h-5 flex-shrink-0"})]})}],569814)},674574,e=>{"use strict";var t=e.i(813919),r=e.i(7284);let n=(0,e.i(22114).forwardRef)(({name:e,children:n,className:i,error:a=null,...o},s)=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:`flex my-2 ${i}`,children:[(0,t.jsx)("input",{"aria-describedby":"candidates-description",className:(0,r.clsx)("peer border-2 rounded-md w-7 h-7 text-primary hover:text-primary-dark hover:border-primary-dark focus:ring-4 focus:ring-primary-light focus:ring-offset-0 cursor-pointer focus:outline-none",a?"border-red-600 focus:border-slate-400":"border-slate-400"),id:e,name:e,ref:s,type:"checkbox",...o}),(0,t.jsx)("label",{className:(0,r.clsx)("text-lg pl-3 cursor-pointer",a?"text-red-600":"peer-checked:text-black text-slate-700"),htmlFor:e,children:n})]}),a?.message?.trim()?(0,t.jsx)("div",{className:`text-sm group-focus-within:text-slate-700 text-slate-500 ${i}`,children:(0,t.jsx)("span",{className:"text-red-600",children:a.message})}):null]}));n.displayName="Checkbox",e.s(["Checkbox",0,n])},575297,e=>{"use strict";let t,r,n,i,a,o;var s,l,u=e.i(813919),c=e.i(22114),d=Object.defineProperty,p=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?d(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,r};let f=new class{constructor(){p(this,"current",this.detect()),p(this,"handoffState","pending"),p(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"u"<typeof window||"u"<typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},m=(e,t)=>{f.isServer?(0,c.useEffect)(e,t):(0,c.useLayoutEffect)(e,t)},h=function(e){let t,r=(t=(0,c.useRef)(e),m(()=>{t.current=e},[e]),t);return c.default.useCallback((...e)=>r.current(...e),[r])},g=null!=(s=c.default.useId)?s:function(){let e=function(){let e,t=(e="u"<typeof document,"useSyncExternalStore"in c&&(0,c.useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[r,n]=c.useState(f.isHandoffComplete);return r&&!1===f.isHandoffComplete&&n(!1),c.useEffect(()=>{!0!==r&&n(!0)},[r]),c.useEffect(()=>f.handoff(),[]),!t&&r}(),[t,r]=c.default.useState(e?()=>f.nextId():null);return m(()=>{null===t&&r(f.nextId())},[t]),null!=t?""+t:void 0};function v(e){var t;if(e.type)return e.type;let r=null!=(t=e.as)?t:"button";if("string"==typeof r&&"button"===r.toLowerCase())return"button"}let y=Symbol();function b(...e){let t=(0,c.useRef)(e);(0,c.useEffect)(()=>{t.current=e},[e]);let r=h(e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)});return e.every(e=>null==e||(null==e?void 0:e[y]))?void 0:r}let x=(0,c.createContext)(null);x.displayName="OpenClosedContext";var w=((t=w||{})[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t);function _({value:e,children:t}){return c.default.createElement(x.Provider,{value:e},t)}function k(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let n=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,k),n}function S(...e){return Array.from(new Set(e.flatMap(e=>
12"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}var E=((r=E||{})[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r),T=((n=T||{})[n.Unmount=0]="Unmount",n[n.Hidden=1]="Hidden",n);function j({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:i,visible:a=!0,name:o,mergeRefs:s}){s=null!=s?s:A;let l=N(t,e);if(a)return I(l,r,n,o,s);let u=null!=i?i:0;if(2&u){let{static:e=!1,...t}=l;if(e)return I(t,r,n,o,s)}if(1&u){let{unmount:e=!0,...t}=l;return k(+!e,{0:()=>null,1:()=>I({...t,hidden:!0,style:{display:"none"}},r,n,o,s)})}return I(l,r,n,o,s)}function I(e,t={},r,n,i){let{as:a=r,children:o,refName:s="ref",...l}=P(e,["unmount","static"]),u=void 0!==e.ref?{[s]:e.ref}:{},d="function"==typeof o?o(t):o;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t));let p={};if(t){let e=!1,r=[];for(let[n,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&r.push(n);e&&(p["data-headlessui-state"]=r.join(" "))}if(a===c.Fragment&&Object.keys(R(l)).length>0){if(!(0,c.isValidElement)(d)||Array.isArray(d)&&d.length>1)throw Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(e=>` - ${e}`).join(` 13`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>` - ${e}`).join(` 14`)].join(` 15`));let e=d.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>S(null==e?void 0:e.className(...t),l.className):S(null==e?void 0:e.className,l.className);return(0,c.cloneElement)(d,Object.assign({},N(d.props,R(P(l,["ref"]))),p,u,{ref:i(d.ref,u.ref)},t?{className:t}:{}))}return(0,c.createElement)(a,Object.assign({},P(l,["ref"]),a!==c.Fragment&&u,a!==c.Fragment&&p),d)}function C(){let e=(0,c.useRef)([]),t=(0,c.useCallback)(t=>{for(let r of e.current)null!=r&&("function"==typeof r?r(t):r.current=t)},[]);return(...r)=>{if(!r.every(e=>null==e))return e.current=r,t}}function A(...e){return e.every(e=>null==e)?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}function N(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(e=>[e,void 0])));for(let e in r)Object.assign(t,{[e](t,...n){for(let i of r[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;i(t,...n)}}});return t}function O(e){var t;return Object.assign((0,c.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function R(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function P(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}let D=null!=(l=c.default.startTransition)?l:function(e){e()};var $=((i=$||{}).Space=" ",i.Enter="Enter",i.Escape="Escape",i.Backspace="Backspace",i.Delete="Delete",i.ArrowLeft="ArrowLeft",i.ArrowUp="ArrowUp",i.ArrowRight="ArrowRight",i.ArrowDown="ArrowDown",i.Home="Home",i.End="End",i.PageUp="PageUp",i.PageDown="PageDown",i.Tab="Tab",i),L=((a=L||{})[a.Open=0]="Open",a[a.Closed=1]="Closed",a),M=((o=M||{})[o.ToggleDisclosure=0]="ToggleDisclosure",o[o.CloseDisclosure=1]="CloseDisclosure",o[o.SetButtonId=2]="SetButtonId",o[o.SetPanelId=3]="SetPanelId",o[o.LinkPanel=4]="LinkPanel",o[o.UnlinkPanel=5]="UnlinkPanel",o);let U={0:e=>({...e,disclosureState:k(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},4:e=>!0===e.linkedPanel?e:{...e,linkedPanel:!0},5:e=>!1===e.linkedPanel?e:{...e,linkedPanel:!1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}},z=(0,c.createContext)(null);function F(e){let t=(0,c.useContext)(z);if(null===t){let t=Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,F),t}return t}z.displayName="DisclosureContext";let q=(0,c.createContext)(null);q.displayName="DisclosureAPIContext";let Z=(0,c.createContext)(null);function V(e,t){return k(t.type,U,e,t)}Z.displayName="DisclosurePanelContext";let B=c.Fragment,H=E.RenderStrategy|E.Static,W=Object.assign(O(function(e,t){let{defaultOpen:r=!1,...n}=e,i=(0,c.useRef)(null),a=b(t,function(e,t=!0){return Object.assign(e,{[y]:t})}(e=>{i.current=e},void 0===e.as||e.as===c.Fragment)),o=(0,c.useRef)(null),s=(0,c.useRef)(null),l=(0,c.useReducer)(V,{disclosureState:+!r,linkedPanel:!1,buttonRef:s,panelRef:o,buttonId:null,panelId:null}),[{disclosureState:u,buttonId:d},p]=l,m=h(e=>{p({type:1});let t=f.isServer?null:i instanceof Node?i.ownerDocument:null!=i&&i.hasOwnProperty("current")&&i.current instanceof Node?i.current.ownerDocument:document;if(!t||!d)return;let r=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:t.getElementById(d):t.getElementById(d);null==r||r.focus()}),g=(0,c.useMemo)(()=>({close:m}),[m]),v=(0,c.useMemo)(()=>({open:0===u,close:m}),[u,m]);return c.default.createElement(z.Provider,{value:l},c.default.createElement(q.Provider,{value:g},c.default.createElement(_,{value:k(u,{0:w.Open,1:w.Closed})},j({ourProps:{ref:a},theirProps:n,slot:v,defaultTag:B,name:"Disclosure"}))))}),{Button:O(function(e,t){let r=g(),{id:n=`headlessui-disclosure-button-${r}`,...i}=e,[a,o]=F("Disclosure.Button"),s=(0,c.useContext)(Z),l=null!==s&&s===a.panelId,u=(0,c.useRef)(null),d=b(u,t,l?null:a.buttonRef),p=C();(0,c.useEffect)(()=>
15{if(!l)return o({type:2,buttonId:n}),()=>{o({type:2,buttonId:null})}},[n,o,l]);let f=h(e=>{var t;if(l){if(1===a.disclosureState)return;switch(e.key){case $.Space:case $.Enter:e.preventDefault(),e.stopPropagation(),o({type:0}),null==(t=a.buttonRef.current)||t.focus()}}else switch(e.key){case $.Space:case $.Enter:e.preventDefault(),e.stopPropagation(),o({type:0})}}),y=h(e=>{e.key===$.Space&&e.preventDefault()}),x=h(t=>{var r;(function(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(null==t?void 0:t.getAttribute("disabled"))==="";return!(n&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(r))&&n})(t.currentTarget)||e.disabled||(l?(o({type:0}),null==(r=a.buttonRef.current)||r.focus()):o({type:0}))}),w=(0,c.useMemo)(()=>({open:0===a.disclosureState}),[a]),_=function(e,t){let[r,n]=(0,c.useState)(()=>v(e));return m(()=>{n(v(e))},[e.type,e.as]),m(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&n("button")},[r,t]),r}(e,u);return j({mergeRefs:p,ourProps:l?{ref:d,type:_,onKeyDown:f,onClick:x}:{ref:d,id:n,type:_,"aria-expanded":0===a.disclosureState,"aria-controls":a.linkedPanel?a.panelId:void 0,onKeyDown:f,onKeyUp:y,onClick:x},theirProps:i,slot:w,defaultTag:"button",name:"Disclosure.Button"})}),Panel:O(function(e,t){let r=g(),{id:n=`headlessui-disclosure-panel-${r}`,...i}=e,[a,o]=F("Disclosure.Panel"),{close:s}=function e(t){let r=(0,c.useContext)(q);if(null===r){let r=Error(`<${t} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,e),r}return r}("Disclosure.Panel"),l=C(),u=b(t,a.panelRef,e=>{D(()=>o({type:e?4:5}))});(0,c.useEffect)(()=>(o({type:3,panelId:n}),()=>{o({type:3,panelId:null})}),[n,o]);let d=(0,c.useContext)(x),p=null!==d?(d&w.Open)===w.Open:0===a.disclosureState,f=(0,c.useMemo)(()=>({open:0===a.disclosureState,close:s}),[a,s]);return c.default.createElement(Z.Provider,{value:a.panelId},j({mergeRefs:l,ourProps:{ref:u,id:n},theirProps:i,slot:f,defaultTag:"div",features:H,visible:p,name:"Disclosure.Panel"}))})});var G=e.i(763777),K=e.i(139499);e.s(["Collapsable",0,function({title:e,content:t}){return(0,u.jsx)(W,{children:({open:r})=>(0,u.jsxs)("div",{className:"border-b last:border-b-0 first:mt-4 -mx-4 sm:mx-0",children:[(0,u.jsx)(W.Button,{className:(0,K.cn)("border-l-4 flex w-full justify-between p-4 text-left font-medium group hover:border-primary hover:bg-slate-100",r?"border-primary bg-slate-100":"border-slate-300"),children:(0,u.jsxs)("div",{className:(0,K.cn)("flex items-top gap-x-3 font-semibold group-hover:text-primary",r?"text-black":"text-slate-500"),children:[(0,u.jsx)(G.ChevronDownIcon,{className:(0,K.cn)("h-6 w-6 text-slate-400 group-hover:text-primary flex-shrink-0 mt-[3px]",r&&"text-black rotate-180 transform")}),e]})}),(0,u.jsx)(W.Panel,{className:"px-4 py-0 border-l-4 border-primary bg-slate-100 [&>p]:pb-4 [&>ul]:pb-4 [&>p]:mb-0 [&>ul]:mb-0",children:(0,u.jsx)(u.Fragment,{children:t})})]})})}],575297)},856775,e=>{"use strict";var t=e.i(813919),r=e=>{window.__fathomClientQueue=window.__fathomClientQueue||[],window.__fathomClientQueue.push(e)},n=()=>{window.__fathomIsLoading=!1,window.__fathomClientQueue=window.__fathomClientQueue||[],window.__fathomClientQueue.forEach(e=>{switch(e.type){case"trackPageview":a(e.opts);return;case"trackGoal":o(e.code,e.cents);return;case"trackEvent":s(e.eventName,e.opts);return;case"enableTrackingForMe":u();return;case"blockTrackingForMe":l();return;case"setSite":c(e.id);return}}),window.__fathomClientQueue=[]},i=e=>{let t=/(https?)(?=:|\/|$)/;e.forEach(e=>{null!==t.exec(e)&&console.warn(`The include domain ${e} might fail to work as intended as it begins with a transfer protocol (http://, https://). Consider removing the protocol portion of the string.`)})},a=e=>{window.fathom?e?window.fathom.trackPageview(e):window.fathom.trackPageview():r({type:"trackPageview",opts:e})},o=(e,t)=>{window.fathom?window.fathom.trackGoal(e,t):r({type:"trackGoal",code:e,cents:t})},s=(e,t)=>{window.fathom?window.fathom.trackEvent(e,t):r({type:"trackEvent",eventName:e,opts:t})},l=()=>{window.fathom?window.fathom.blockTrackingForMe():r({type:"blockTrackingForMe"})},u=()=>{window.fathom?window.fathom.enableTrackingForMe():r({type:"enableTrackingForMe"})},c=e=>{window.fathom?window.fathom.setSite(e):r({type:"setSite",id:e})},d=e.i(22114),p=e.i(497637);function f(){let e=(0,p.usePathname)(),t=(0,p.useSearchParams)();return(0,d.useEffect)(()=>{((e,t)=>
15{if(window.__fathomIsLoading||window.fathom)return;window.__fathomIsLoading=!0;let r=document.createElement("script"),a=document.getElementsByTagName("script")[0]||document.querySelector("body");r.id="fathom-script",r.async=!0,r.setAttribute("data-site",e),r.src=t&&t.url?t.url:"https://cdn.usefathom.com/script.js",t&&(void 0!==t.auto&&r.setAttribute("data-auto",`${t.auto}`),void 0!==t.honorDNT&&r.setAttribute("data-honor-dnt",`${t.honorDNT}`),void 0!==t.canonical&&r.setAttribute("data-canonical",`${t.canonical}`),t.includedDomains&&(i(t.includedDomains),r.setAttribute("data-included-domains",t.includedDomains.join(","))),t.excludedDomains&&(i(t.excludedDomains),r.setAttribute("data-excluded-domains",t.excludedDomains.join(","))),t.spa&&r.setAttribute("data-spa",t.spa)),r.onload=n,a.parentNode.insertBefore(r,a)})("BPRXFPOJ",{auto:!1})},[]),(0,d.useEffect)(()=>{e&&a({url:e+t.toString(),referrer:document.referrer})},[e,t]),null}e.s(["default",0,function(){return(0,t.jsx)(d.Suspense,{fallback:null,children:(0,t.jsx)(f,{})})}],856775)},72945,278654,60651,e=>{"use strict";var t=e.i(813919),r=e.i(22114),n=e.i(96933),i=e.i(640464);let a=(0,i.createServerReference)("7899be5d9eca0e73478549f8603705e18bc977acd5",i.callServer,void 0,i.findSourceMapURL,"postFeedback"),o=(0,i.createServerReference)("0087967b61c41aee3f8b5b1298f21f47bd67937f02",i.callServer,void 0,i.findSourceMapURL,"postVote"),s=(0,i.createServerReference)("00acf5e4b2f620e4830c22f0d39c4e72ff2c15b3d1",i.callServer,void 0,i.findSourceMapURL,"checkUserAuthentication");var l=e.i(569814),u=e.i(7284),c=e.i(576169);let d=(0,r.forwardRef)(({name:e="",error:r=null,required:n=!1,label:i="",placeholder:a="",className:o,...s},l)=>(0,t.jsxs)("div",{className:(0,u.default)("group",o),children:[(0,t.jsx)(c.Label,{error:r,forId:e,required:n,text:i}),(0,t.jsx)("textarea",{...s,className:(0,u.default)("slashed-zero tabular-nums group block w-full px-3 py-2 mt-1 text-lg border text-black font-medium rounded-md focus:outline-none focus:ring-4 focus:ring-primary-light focus:border-primary-dark placeholder-normal disabled:bg-slate-300",r?"ring-red-600 ring-1 border-red-600":"border-slate-400"),id:e,name:e,ref:l}),(0,t.jsx)("div",{className:"mt-2 text-sm group-focus-within:text-slate-700 text-slate-500",children:r?(0,t.jsx)("span",{className:"text-red-600",children:r.message}):a})]}));d.displayName="Textarea",e.s(["Textarea",0,d],278654);var p=e.i(624557);let f=(0,r.forwardRef)(({name:e="",label:r="",required:n=!1,error:i=null,placeholder:a=null,type:o="text",defaultValue:s=null,className:l="col-span-6 sm:col-span-1",...d},p)=>(0,t.jsxs)("div",{className:(0,u.clsx)("group",l),children:[(0,t.jsx)(c.Label,{error:i,forId:e,required:n,text:r}),(0,t.jsx)("input",{...d,className:(0,u.clsx)("slashed-zero tabular-nums group block w-full px-3 py-2 mt-1 text-lg border text-black font-medium rounded-md focus:outline-none focus:ring-4 focus:ring-primary-light focus:border-primary-dark placeholder-normal disabled:bg-slate-300",i?"ring-red-600 ring-1 border-red-600":"border-slate-400"),...!d.value&&null!=s?{defaultValue:s}:{},id:e,name:e,ref:p,type:o}),(0,t.jsx)("div",{className:"mt-2 text-sm group-focus-within:text-slate-700 text-slate-500",children:i?(0,t.jsx)("span",{className:"text-red-600",children:i.message}):a})]}));f.displayName="Input",e.s(["Input",0,f],60651);var m=e.i(926055);let h="openFeedbackForm";function g({children:e}){return(0,t.jsx)("div",{className:"flex flex-col sm:items-center gap-4 py-6 sm:flex-row",children:e})}function v({onSubmit:e,onCancel:i,isAuthenticated:a}){let[o,s]=(0,r.useState)(!1),[u,c]=(0,r.useState)(!1),m=(0,n.useForm)({defaultValues:{description:"",attachments:[],name:"",email:""}}),h=async t=>{c(!0);try{await e(t)}finally{c(!1)}};return(0,t.jsx)(g,{children:(0,t.jsx)(n.FormProvider,{...m,children:(0,t.jsx)("form",{className:"flex flex-col w-full m-auto sm:flex-row py-4",onSubmit:m.handleSubmit(h),children:(0,t.jsxs)("div",{className:"flex flex-col gap-2 sm:w-1/2 font-medium",children:["AÈi întâmpinat o problemÄ cu site-ul?",(0,t.jsxs)("div",{className:"text-sm bg-amber-300 p-2 rounded-md",children:["Pentru sesizÄri de altÄ naturÄ vÄ rugÄm sÄ folosiÈi"," ",(0,t.jsx)("a",{href:"https://sesizari.primariatm.ro",rel:"noopener",target:"_blank",children:"sesizari.primariatm.ro"})]}),a||(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(f,{className:"w-full",label:"Nume Èi prenume",type:"text",...m.register("name")}
15),(0,t.jsx)(f,{className:"w-full",label:"E-mail",type:"email",...m.register("email")})]}),(0,t.jsx)(d,{className:"w-full text-black",label:"DescrieÈi problema sau sugestia dvs.",...m.register("description",{required:"Acest câmp este obligatoriu"})}),m.formState.errors.description?(0,t.jsx)("span",{className:"text-red-500 text-sm",children:m.formState.errors.description.message}):null,a?(0,t.jsx)(p.FileInput,{accept:"image/*,.pdf,.doc,.docx",label:"AtaÈamente",multiple:!0,onComplete:()=>{s(!1)},onProgress:()=>{s(!0)},...m.register("attachments")}):(0,t.jsx)("div",{children:(0,t.jsxs)("p",{children:["Pentru a ataÈa fiÈiere, vÄ rugÄm sÄ vÄ"," ",(0,t.jsx)("a",{href:"https://cont.primariatm.ro/",children:"autentificaÈi"}),"."]})}),(0,t.jsxs)("div",{className:"flex gap-4 mt-2",children:[(0,t.jsx)(l.Button,{disabled:o,primary:!0,submitting:u,children:o?"Se încarcÄ...":"Trimite feedback"}),(0,t.jsx)(l.Button,{className:"w-32",onClick:i,type:"button",children:"RenunÈÄ"})]})]})})})})}let y=(0,r.forwardRef)(function({defaultOpen:e=!1},n){let[i,l]=(0,r.useState)(e),[u,c]=(0,r.useState)(!1),[d,p]=(0,r.useState)(null),[f,y]=(0,r.useState)(null),[b,x]=(0,r.useState)(!1),[w,_]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=()=>l(!0);return window.addEventListener(h,e),()=>window.removeEventListener(h,e)},[]),(0,r.useEffect)(()=>{i&&!w&&s().then(x).catch(()=>x(!1)).finally(()=>_(!0))},[i,w]);let k=async e=>{if(void 0===e.description||""===e.description.trim())return;let t=await a(e.description,e.attachments||[],e.name,e.email);if("openTimi"in t){(0,m.askTimi)(e.description),l(!1);return}p(t.webconNr),y(t.feedbackId),c(!0)},S=async()=>{await o(),c(!0)};return u?(0,t.jsx)(g,{children:d&&f?(0,t.jsxs)("div",{children:["MulÈumim pentru feedback! Feedback-ul dvs. a fost înregistrat cu numÄrul:"," ",(0,t.jsx)("a",{className:"text-primary underline hover:no-underline font-bold",href:`https://servicii.primariatm.ro/feedback/${f}`,rel:"noopener",target:"_blank",children:d})]}):"MulÈumim pentru feedback!"}):i?(0,t.jsx)("div",{id:"feedback-form",ref:n,children:(0,t.jsx)(v,{isAuthenticated:b,onCancel:()=>{l(!1)},onSubmit:k})}):(0,t.jsxs)(g,{children:[(0,t.jsx)("h3",{className:"m-0 text-base font-medium",children:"Este utilÄ aceastÄ paginÄ?"}),(0,t.jsxs)("div",{className:"flex gap-4 grow sm:justify-end",children:[(0,t.jsx)("a",{className:"min-w-[5rem] text-primary font-semibold no-underline hover:underline p-2 -m-2",href:"#",onClick:e=>{e.preventDefault(),S().catch(e=>{console.error(e),c(!1)})},children:"Da"}),(0,t.jsx)("a",{className:"min-w-[5rem] justify-self-end text-primary font-semibold no-underline hover:underline p-2 -m-2",href:"#",onClick:e=>{e.preventDefault(),l(!0)},children:"Ce putem face mai bine?"})]})]})});e.s(["FEEDBACK_FORM_EVENT",0,h,"FeedbackForm",0,y,"openFeedbackForm",0,()=>{window.dispatchEvent(new Event(h))}],72945)},624557,e=>{"use strict";var t=e.i(813919),r=e.i(96933),n=e.i(22114),i=e.i(346597),a=e.i(555536),o=e.i(880108),s=e.i(582380),l=e.i(530790),u=e.i(579699),c=e.i(969797),d=e.i(651729),p=e.i(576169),f=e.i(569814),m=e.i(139499),h=e.i(640464);let g=(0,h.createServerReference)("60ca67f7dfea8cfcbb1632256b978cae7ed18099a8",h.callServer,void 0,h.findSourceMapURL,"getSignedUrlForUpload"),v=(0,n.forwardRef)(({label:e,name:r,error:a,watch:c,required:f,setValue:h,onProgress:v,onComplete:b,placeholder:x,multiple:w=!1,..._},k)=>{let S=(0,n.useRef)({}
15).current,[E,T]=(0,n.useState)(S),j=c(r);(0,n.useEffect)(()=>{!async function(){if(!j){w&&h(r,[]);return}if("string"==typeof j){let e=j.split("file:")[1];if(!E[e]?.url)try{let t=await (0,d.getSignedUrl)(e,"uploaded");if(t){let r={};r[e]={name:e,uploaded:!0,url:t},T(r)}else l.log.error("Could not retrieve S3 file",e)}catch(t){l.log.error("Could not retrieve S3 file",e)}}else{let e={};for(let t of Object.values(j)){let r=t.split("file:")[1];if(!E[r]?.url)try{let t=await (0,d.getSignedUrl)(r,"uploaded");t?e[r]={name:r,uploaded:!0,url:t}:l.log.error("Could not retrieve S3 file",r)}catch(e){l.log.error("Could not retrieve S3 file",r)}}Object.keys(e).length>0&&T(e)}}()},[j,E,w,r,h]);let I=(0,n.useCallback)(async e=>{let t=new File([e],(0,s.removeDiacritics)(e.name.trim().replace(/[ )()]+/g,"-")),{type:e.type}),r=t.name,n=await g(r,t.type);return await fetch(n,{method:"PUT",body:t,headers:{"Content-Type":t.type}})},[]),C=(0,n.useCallback)(async e=>{let t={...E};for(let r of e){let e=URL.createObjectURL(r),n=(0,s.removeDiacritics)(r.name.trim().replace(/[ )()]+/g,"-"));if(t[n]){let[e,t]=n.split(".");n=`${e}-${Date.now()}.${t}`}let i={name:n,uploaded:!1,url:e};t[n]=i,T(t),v?.();try{let e=await I(r),i=e.url.substring(e.url.lastIndexOf("/")+1).split("?")[0];e?.ok?(i!==n&&(t[i]=t[n]),t[i].name=i,t[i].uploaded=!0,i!==n&&delete t[n]):t[n].error=!0}catch(e){l.log.error(e),t[n].error=!0}}T(t);let n=Object.values(t).map(e=>({path:e.name,objectUrl:e.url}));w?h(r,n.map(e=>e.path?`file:${e.path}`:"")):h(r,n[0].path?`file:${n[0].path}`:""),b?.()},[E,r,w,b,v,h,I]),A=(0,n.useCallback)(e=>{if(!confirm("Sigur doriÈi sÄ ÈtergeÈi fiÈierul?"))return;let t=E?(0,u.objectFilter)(E,t=>t.name!==e):E;T(t),w?h(r,Object.values(t).map(e=>e.name?`file:${e.name}`:"")):h(r,t[0]?.name?`file:${t[0]?.name}`:"")},[E,r,h,w]),{getRootProps:N,getInputProps:O,isDragActive:R}=(0,o.useDropzone)({multiple:w,onDrop:C});return(0,t.jsxs)("div",{className:"pb-1",children:[e?(0,t.jsx)(p.Label,{error:a,forId:r,required:f,text:e}):null,0===Object.keys(E).length||w?(0,t.jsx)("div",{className:(0,m.cn)("mt-1 mb-2 w-full h-20 flex justify-center items-center sm:p-5 border rounded-md cursor-pointer opacity-75 border-slate-500 hover:opacity-100 focus:opacity-100 focus:border-solid focus:bg-slate-300 hover:bg-slate-300","ring-primary-light focus-visible:ring-4 focus:ring-4 focus:ring-offset-0 focus:outline-none focus:border-slate-600 focus:placeholder-white",R?"bg-slate-300 opacity-100 border-solid ring-4":"border-dashed bg-slate-300",a&&"border-red-600 border-2"),...N(),children:(0,t.jsxs)("div",{className:"space-y-1 text-base leading-4 text-center text-slate-700 flex items-center gap-x-2",children:[(0,t.jsx)(i.FileTextIcon,{className:"w-6 h-6 stroke-1"}),w?(0,t.jsx)("div",{children:"ÃncarcÄ fiÈiere de max. 25 MB fiecare"}):(0,t.jsx)("div",{children:"ÃncarcÄ un fiÈier de max. 25 MB"}),(0,t.jsx)("input",{className:"sr-only",name:`${r}-input`,type:"file",...O()}),(0,t.jsx)("input",{name:r,ref:k,type:"hidden"})]})}):null,(0,t.jsx)("div",{className:"grid grid-cols-2 items-start gap-2",children:Object.entries(E).map(([e,r])=>(0,t.jsx)(y,{file:r,removeFile:A},e))}),(0,t.jsx)("div",{className:"text-sm group-focus-within:text-slate-700 text-slate-500",children:a?(0,t.jsx)("span",{className:"text-red-600",children:a.message}):x})]})}),y=({file:e,removeFile:r})=>{let n;return(0,t.jsxs)("div",{className:"relative bg-slate-300 w-[200px] h-[120px] overflow-hidden",children:[e.url&&(n=e.name,/\.(?:jpg|jpeg|png|gif)$/i.exec(n))?(0,t.jsx)("img",{alt:e.name,className:(0,m.cn)("rounded-md",!e.uploaded&&"opacity-50"),src:e.url}):(0,t.jsx)("div",{className:"bg-primary text-white absolute top-0 bottom-0 w-full flex items-center justify-center rounded-md",children:(0,t.jsx)("div",{className:"pb-4 text-sm",children:(0,c.ellipsizeMiddle)(e.name)})}),(0,t.jsx)(f.Button,{className:"group px-1 w-6 h-6 border-none bg-red-600 hover:bg-red-700 absolute bottom-3 right-3",onClick:t=>{t.preventDefault(),r(e.name)},small:!0,type:"button",children:(0,t.jsx)(a.TrashIcon,{className:"w-4 h-4 stroke-1 stroke-white"})}),(0,t.jsxs)("svg",{className:"w-16 h-16 absolute -left-6 bottom-1",clipRule:"evenodd",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("circle",{cx:"67.894",cy:"76.357",fill:(0,m.cn)(!e.uploaded&&!e.error&&"#E7CE4F",e.uploaded&&!e.error&&"#209C16",e.error&&"#dd0000"),r:"17.894",transform:"translate(-3.682 -3.139) scale(1.00679)"}),!e.uploaded&&!e.error&&(0,t.jsx)("path",{d:"M65.558 64.321a1.243 1.243 0 00-1.755-.015c-.005.005-.012.006-.017.011l-7.542 7.543a1.25 1.25 0 001.768 1.768l5.409-5.41v15.149a1.25 1.25 0 002.5 0V68.22l5.408 5.408a1.25 1.25 0 001.768-1.768l-7.539-7.539z",fillRule:"nonzero",style:{animation:"updown 2s linear infinite"}}),e.uploaded&&!e.error?(0,t.jsx)("path",{d:"M73.272 67.311L62.726 79.74l-6.827-5.433a1.25 1.25 0 00-1.557 1.956l7.775 6.188a1.248 1.248 0 001.731-.169l11.33-13.354a1.25 1.25 0 00-1.906-1.
15617z",fill:"#fff",fillRule:"nonzero"}):null,e.error?(0,t.jsx)("path",{d:"M72.898 65.485a1.25 1.25 0 00-1.768 0l-6.497 6.497-6.497-6.497a1.25 1.25 0 00-1.768 1.768l6.497 6.497-6.497 6.497a1.25 1.25 0 001.768 1.768l6.497-6.497 6.497 6.497c.244.244.563.366.884.366a1.25 1.25 0 00.884-2.134l-6.497-6.497 6.497-6.497a1.249 1.249 0 000-1.768z",fill:"#fff",fillRule:"nonzero"}):null]})]})};v.displayName="BaseFileInput";let b=(0,n.forwardRef)(({label:e,name:n,multiple:i,defaultValue:a,placeholder:o,onProgress:s,onComplete:l,standalone:u=!1,...c},d)=>{let p=(0,r.useForm)({defaultValues:{[n]:a||(i?[]:"")}}),f=(0,r.useFormContext)(),{register:m,watch:h,setValue:g,formState:{errors:y}}=u?p:f||p,{ref:b,...x}=m(n);return(0,t.jsx)(v,{defaultValue:a,error:y[n],label:e,multiple:i,onComplete:l,onProgress:s,placeholder:o,setValue:g,watch:h,...c,...x,ref:d||b})});b.displayName="FileInput",e.s(["FileInput",0,b],624557)},220975,982732,474986,507850,544763,663953,649936,762248,990938,205706,461898,807482,235959,698566,314421,22853,218535,299204,368517,466958,498424,e=>{"use strict";var t=e.i(813919),r=e.i(569814),n=e.i(344901),i=e.i(432842),a=e.i(821666);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(t.length<e)throw TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function l(e){s(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===o(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"u">typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}function u(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function c(e,t){return s(2,arguments),new Date(l(e).getTime()+u(t))}function d(e,t){return s(2,arguments),c(e,-u(t))}function p(e){s(1,arguments);var t=l(e),r=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-(7*(r<1)+r-1)),t.setUTCHours(0,0,0,0),t}function f(e){s(1,arguments);var t=l(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var i=p(n),a=new Date(0);a.setUTCFullYear(r,0,4),a.setUTCHours(0,0,0,0);var o=p(a);return t.getTime()>=i.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function m(e){s(1,arguments);var t=l(e);return Math.round((p(t).getTime()-(function(e){s(1,arguments);var t=f(e),r=new Date(0);return r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0),p(r)})(t).getTime())/6048e5)+1}e.s(["default",()=>o],982732),e.s(["default",0,s],474986),e.s(["default",0,l],507850),e.s(["default",0,u],544763),e.s(["default",0,c],663953),e.s(["default",0,d],649936),e.s(["default",0,p],762248),e.s(["default",0,m],990938);var h={};function g(){return h}function v(e,t){s(1,arguments);var r,n,i,a,o,c,d,p,f=g(),m=u(null!=(r=null!=(n=null!=(i=null!=(a=null==t?void 0:t.weekStartsOn)?a:null==t||null==(o=t.locale)||null==(c=o.options)?void 0:c.weekStartsOn)?i:f.weekStartsOn)?n:null==(d=f.locale)||null==(p=d.options)?void 0:p.weekStartsOn)?r:0);if(!(m>=0&&m<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=l(e),v=h.getUTCDay();return h.setUTCDate(h.getUTCDate()-(7*(v<m)+v-m)),h.setUTCHours(0,0,0,0),h}function y(e,t){s(1,arguments);var r,n,i,a,o,c,d,p,f=l(e),m=f.getUTCFullYear(),h=g(),y=u(null!=(r=null!=(n=null!=(i=null!=(a=null==t?void 0:t.firstWeekContainsDate)?a:null==t||null==(o=t.locale)||null==(c=o.options)?void 0:c.firstWeekContainsDate)?i:h.firstWeekContainsDate)?n:null==(d=h.locale)||null==(p=d.options)?void 0:p.firstWeekContainsDate)?r:1);if(!(y>=1&&y<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(m+1,0,y),b.setUTCHours(0,0,0,0);var x=v(b,t),w=new Date(0);w.setUTCFullYear(m,0,y),w.setUTCHours(0,0,0,0);var _=v(w,t);return f.getTime()>=x.getTime()?m+1:f.getTime()>=_.getTime()?m:m-1}function b(e,t){s(1,arguments);var r=l(e);return Math.round((v(r,t).getTime()-(function(e,t){s(1,arguments);var r,n,i,a,o,l,c,d,p=g(),f=u(null!=(r=null!=(n=null!=(i=null!=(a=null==t?void 0:t.firstWeekContainsDate)?a:null==t||null==(o=t.locale)||null==(l=o.options)?void 0:l.firstWeekContainsDate)?i:p.firstWeekContainsDate)?n:null==(c=p.locale)||null==(d=c.options)?void 0:d.firstWeekContainsDate)?r:1),m=y(e,t),h=new Date(0);return h.setUTCFullYear(m,0,f),h.setUTCHours(0,0,0,0),v(h,t)})(r,t).getTime())/6048e5)+1}function x(e,t){for(var r=Math.abs(e).toString();r.length<t;)r="0"+r;return(e<0?"-":"")+r}e.s(["getDefaultOptions",0,g,"setDefaultOptions",0,function(e){h=e}],205706),e.s(["default",0,v],461898),e.s(["default",0,y],807482),e.s(["default",0,b],235959);let w=function(e,t){var r=e.getUTCFullYear(),n=r>0?r:1-r;return x("yy"===t?n%100:n,t.length)},_=function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):x(r+1,2)},k=function(e,t){var r=t.length;return x(Math.floor(e.getUTCMilliseconds()*Math.pow(10,r-3)),t.length)};function S(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),a=n%60;return 0===a?r+String(i):r+String(i)+(t||"")+x(a,2)}function E(e,t){return e%60==0?(e>0?"-":"+")+x(Math.abs(e)/60,2):T(e,t)}function T(e,t){var r=Math.abs(e);return(e>0?"-":"+")+x(Math.floor(r/60),2)+(t||"")+x(r%60,2)}let j={G:function(e,t,r){var n=+(e.getUTCFullYear()>0);switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){var n=e.getUTCFullYear();return r.ordinalNumber(n>0?n:1-n,{unit:"year"})}return w(e,t)},Y:function(e,t,r,n){var i=y(e,n),a=i>0?i:1-i;return"YY"===t?x(a%100,2):"Yo"===t?r.ordinalNumber(a,{unit:"year"}):x(a,t.length)},R:function(e,t){return x(f(e),t.length)},u:function(e,t){return x(e.getUTCFullYear(),t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return x(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return x(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return _(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return x(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var i=b(e,n);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):x(i,t.length)},I:function(e,t,r){var n=m(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):x(n,t.length)},d:function(e,t,r){var n,i;return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):(n=e,i=t,x(n.getUTCDate(),i.length))},D:function(e,t,r){var n=function(e){s(1,arguments);var t=l(e),r=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((r-t.getTime())/864e5)+1}(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):x(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var i=e.getUTCDay(),a=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return x(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var i=e.getUTCDay(),a=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return x(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return x(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n,i=e.getUTCHours();switch(n=12===i?"noon":0===i?"midnight":i/12>
15=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n,i=e.getUTCHours();switch(n=i>=17?"evening":i>=12?"afternoon":i>=4?"morning":"night",t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){var n,i,a=e.getUTCHours()%12;return 0===a&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return n=e,i=t,x(n.getUTCHours()%12||12,i.length)},H:function(e,t,r){var n,i;return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):(n=e,i=t,x(n.getUTCHours(),i.length))},K:function(e,t,r){var n=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):x(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return(0===n&&(n=24),"ko"===t)?r.ordinalNumber(n,{unit:"hour"}):x(n,t.length)},m:function(e,t,r){var n,i;return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):(n=e,i=t,x(n.getUTCMinutes(),i.length))},s:function(e,t,r){var n,i;return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):(n=e,i=t,x(n.getUTCSeconds(),i.length))},S:function(e,t){return k(e,t)},X:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return E(i);case"XXXX":case"XX":return T(i);default:return T(i,":")}},x:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return E(i);case"xxxx":case"xx":return T(i);default:return T(i,":")}},O:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+S(i,":");default:return"GMT"+T(i,":")}},z:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+S(i,":");default:return"GMT"+T(i,":")}},t:function(e,t,r,n){return x(Math.floor((n._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,r,n){return x((n._originalDate||e).getTime(),t.length)}};var I=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},C=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};let A={p:C,P:function(e,t){var r,n=e.match(/(P+)(p+)?/)||[],i=n[1],a=n[2];if(!a)return I(e,t);switch(i){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",I(i,t)).replace("{{time}}",C(a,t))}};function N(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}e.s(["default",0,A],698566),e.s(["default",0,N],314421);var O=["D","DD"],R=["YY","YYYY"];function P(e){return -1!==O.indexOf(e)}function D(e){return -1!==R.indexOf(e)}function $(e,t,r){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").
15concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}e.s(["isProtectedDayOfYearToken",0,P,"isProtectedWeekYearToken",0,D,"throwProtectedError",0,$],22853);var L={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function M(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var U={date:M({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:M({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:M({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},z={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function F(e){return function(t,r){var n;if("formatting"===(null!=r&&r.context?String(r.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=null!=r&&r.width?String(r.width):i;n=e.formattingValues[a]||e.formattingValues[i]}else{var o=e.defaultWidth,s=null!=r&&r.width?String(r.width):e.defaultWidth;n=e.values[s]||e.values[o]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function q(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,a=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;var s=o[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}(l,function(e){return e.test(s)}):function(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}(l,function(e){return e.test(s)});return r=e.valueCallback?e.valueCallback(u):u,{value:r=n.valueCallback?n.valueCallback(r):r,rest:t.slice(s.length)}}}function Z(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];return{value:o=r.valueCallback?r.valueCallback(o):o,rest:t.slice(i.length)}}}let V={code:"en-US",formatDistance:function(e,t,r){var n,i=L[e];if(n="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix)if(r.comparison&&r.comparison>0)return"in "+n;else return n+" ago";return n},formatLong:U,formatRelative:function(e,t,r,n){return z[e]},localize:{ordinalNumber:function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:F({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:F({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:F({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:F({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
15ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:F({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:q({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:q({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:q({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:q({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};e.s(["default",0,V],218535);var B=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,H=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,W=/^'([^]*?)'?$/,G=/''/g,K=/[a-zA-Z]/;function Y(e,t,r){s(2,arguments);var n,i,a,c,p,f,m,h,v,y,b,x,w,_,k,S,E,T,I=String(t),C=g(),O=null!=(n=null!=(i=null==r?void 0:r.locale)?i:C.locale)?n:V,R=u(null!=(a=null!=(c=null!=(p=null!=(f=null==r?void 0:r.firstWeekContainsDate)?f:null==r||null==(m=r.locale)||null==(h=m.options)?void 0:h.firstWeekContainsDate)?p:C.firstWeekContainsDate)?c:null==(v=C.locale)||null==(y=v.options)?void 0:y.firstWeekContainsDate)?a:1);if(!(R>=1&&R<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var L=u(null!=(b=null!=(x=null!=(w=null!=(_=null==r?void 0:r.weekStartsOn)?_:null==r||null==(k=r.locale)||null==(S=k.options)?void 0:S.weekStartsOn)?w:C.weekStartsOn)?x:null==(E=C.locale)||null==(T=E.options)?void 0:T.weekStartsOn)?b:0);if(!(L>=0&&L<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!O.localize)throw RangeError("locale must contain localize property");if(!O.formatLong)throw RangeError("locale must contain formatLong property");var M=l(e);if(!function(e){return s(1,arguments),(!!function(e){return s(1,arguments),e instanceof Date||"object"===o(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)||"number"==typeof e)&&!isNaN(Number(l(e)))}(M))throw RangeError("Invalid time value");var U=N(M),z=d(M,U),F={firstWeekContainsDate:R,weekStartsOn:L,locale:O,_originalDate:M};return I.match(H).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,A[t])(e,O.formatLong):e}).join("").match(B).map(function(n){if("''"===n)return"'";var i,a,o=n[0];if("'"===o){return(a=(i=n).match(W))?a[1].replace(G,"'"):i}var s=j[o];if(s)return!(null!=r&&r.useAdditionalWeekYearTokens)&&D(n)&&$(n,t,String(e)),!(null!=r&&r.useAdditionalDayOfYearTokens)&&P(n)&&$(n,t,String(e)),s(z,n,O.localize,F);
15if(o.match(K))throw RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return n}).join("")}function X(e,t){s(1,arguments);var r,n,i,a=u(null!=(r=null==t?void 0:t.additionalDigits)?r:2);if(2!==a&&1!==a&&0!==a)throw RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o=function(e){var t,r={},n=e.split(J);if(n.length>2)return r;if(/:/.test(n[0])?t=n[0]:(r.date=n[0],t=n[1],Q.test(r.date)&&(r.date=e.split(Q)[0],t=e.substr(r.date.length,e.length))),t){var i=ee.exec(t);i?(r.time=t.replace(i[1],""),r.timezone=i[1]):r.time=t}return r}(e);if(o.date){var l=function(e,t){var r=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var i=n[1]?parseInt(n[1]):null,a=n[2]?parseInt(n[2]):null;return{year:null===a?i:100*a,restDateString:e.slice((n[1]||n[2]).length)}}(o.date,a);n=function(e,t){if(null===t)return new Date(NaN);var r,n,i,a,o,s,l,u,c,d,p,f,m=e.match(et);if(!m)return new Date(NaN);var h=!!m[4],g=ei(m[1]),v=ei(m[2])-1,y=ei(m[3]),b=ei(m[4]),x=ei(m[5])-1;if(h){return(r=b,n=x,r>=1&&r<=53&&n>=0&&n<=6)?(i=t,a=b,o=x,(s=new Date(0)).setUTCFullYear(i,0,4),l=s.getUTCDay()||7,s.setUTCDate(s.getUTCDate()+((a-1)*7+o+1-l)),s):new Date(NaN)}var w=new Date(0);return(u=t,c=v,d=y,c>=0&&c<=11&&d>=1&&d<=(eo[c]||(es(u)?29:28))&&(p=t,(f=g)>=1&&f<=(es(p)?366:365)))?(w.setUTCFullYear(t,v,Math.max(g,y)),w):new Date(NaN)}(l.restDateString,l.year)}if(!n||isNaN(n.getTime()))return new Date(NaN);var c=n.getTime(),d=0;if(o.time&&isNaN(d=function(e){var t,r,n,i=e.match(er);if(!i)return NaN;var a=ea(i[1]),o=ea(i[2]),s=ea(i[3]);return(t=a,r=o,n=s,24===t?0===r&&0===n:n>=0&&n<60&&r>=0&&r<60&&t>=0&&t<25)?36e5*a+6e4*o+1e3*s:NaN}(o.time)))return new Date(NaN);if(o.timezone){if(isNaN(i=function(e){if("Z"===e)return 0;var t,r=e.match(en);if(!r)return 0;var n="+"===r[1]?-1:1,i=parseInt(r[2]),a=r[3]&&parseInt(r[3])||0;return(t=a)>=0&&t<=59?n*(36e5*i+6e4*a):NaN}(o.timezone)))return new Date(NaN)}else{var p=new Date(c+d),f=new Date(0);return f.setFullYear(p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate()),f.setHours(p.getUTCHours(),p.getUTCMinutes(),p.getUTCSeconds(),p.getUTCMilliseconds()),f}return new Date(c+d+i)}e.s(["format",0,Y],299204),e.s(["millisecondsInHour",0,36e5,"millisecondsInMinute",0,6e4,"millisecondsInSecond",0,1e3],368517);var J=/[T ]/,Q=/[Z ]/i,ee=/([Z+-].*)$/,et=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,er=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,en=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ei(e){return e?parseInt(e):1}function ea(e){return e&&parseFloat(e.replace(",","."))||0}var eo=[31,null,31,30,31,30,31,31,30,31,30,31];function es(e){return e%400==0||e%4==0&&e%100!=0}e.s(["parseISO",0,X],466958);var el={lessThanXSeconds:{one:"mai puÈin de o secundÄ",other:"mai puÈin de {{count}} secunde"},xSeconds:{one:"1 secundÄ",other:"{{count}} secunde"},halfAMinute:"jumÄtate de minut",lessThanXMinutes:{one:"mai puÈin de un minut",other:"mai puÈin de {{count}} minute"},xMinutes:{one:"1 minut",other:"{{count}} minute"},aboutXHours:{one:"circa 1 orÄ",other:"circa {{count}} ore"},xHours:{one:"1 orÄ",other:"{{count}} ore"},xDays:{one:"1 zi",other:"{{count}} zile"},aboutXWeeks:{one:"circa o sÄptÄmânÄ",other:"circa {{count}} sÄptÄmâni"},xWeeks:{one:"1 sÄptÄmânÄ",other:"{{count}} sÄptÄmâni"},aboutXMonths:{one:"circa 1 lunÄ",other:"circa {{count}} luni"},xMonths:{one:"1 lunÄ",other:"{{count}} luni"},aboutXYears:{one:"circa 1 an",other:"circa {{count}} ani"},xYears:{one:"1 an",other:"{{count}} ani"},overXYears:{one:"peste 1 an",other:"peste {{count}} ani"},almostXYears:{one:"aproape 1 an",other:"aproape {{count}} ani"}},eu={date:M({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:M({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:M({formats:{full:"{{date}} 'la' {{time}}",long:"{{date}} 'la' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ec={lastWeek:"eeee 'trecutÄ la' p",yesterday:"'ieri la' p",today:"'astÄzi la' p",tomorrow:"'mâine la' p",nextWeek:"eeee 'viitoare la' p",other:"P"};let ed={code:"ro",formatDistance:function(e,t,r){var n,i=el[e];if(n="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),null!=r&&r.addSuffix)if(r.comparison&&r.comparison>0)return"în "+n;else return n+" în urmÄ";return n},formatLong:eu,formatRelative:function(e,t,r,n){return ec[e]},localize:{ordinalNumber:function(e,t){return String(e)},era:F({values:{narrow:["Ã","D"],abbreviated:["Ã.d.C.","D.C."],wide:["Ãnainte de Cristos","DupÄ Cristos"]},defaultWidth:"wide"}),quarter:F({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["primul trimestru","al doilea trimestru","al treilea trimestru","al patrulea trimestru"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:F({values:{narrow:["I","F","M","A","M","I","I","A","S","O","N","D"],abbreviated:["i
15an","feb","mar","apr","mai","iun","iul","aug","sep","oct","noi","dec"],wide:["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"]},defaultWidth:"wide"}),day:F({values:{narrow:["d","l","m","m","j","v","s"],short:["du","lu","ma","mi","jo","vi","sâ"],abbreviated:["dum","lun","mar","mie","joi","vin","sâm"],wide:["duminicÄ","luni","marÈi","miercuri","joi","vineri","sâmbÄtÄ"]},defaultWidth:"wide"}),dayPeriod:F({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"ami",morning:"dim",afternoon:"da",evening:"s",night:"n"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nopÈii",noon:"amiazÄ",morning:"dimineaÈÄ",afternoon:"dupÄ-amiazÄ",evening:"searÄ",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nopÈii",noon:"amiazÄ",morning:"dimineaÈÄ",afternoon:"dupÄ-amiazÄ",evening:"searÄ",night:"noapte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"amiazÄ",morning:"dimineaÈÄ",afternoon:"dupÄ-amiazÄ",evening:"searÄ",night:"noapte"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nopÈii",noon:"amiazÄ",morning:"dimineaÈÄ",afternoon:"dupÄ-amiazÄ",evening:"searÄ",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nopÈii",noon:"amiazÄ",morning:"dimineaÈÄ",afternoon:"dupÄ-amiazÄ",evening:"searÄ",night:"noapte"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:Z({matchPattern:/^(\d+)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:q({matchPatterns:{narrow:/^(Ã|D)/i,abbreviated:/^(Ã\.?\s?d\.?\s?C\.?|Ã\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i,wide:/^(Ãnainte de Cristos|Ãnaintea erei noastre|DupÄ Cristos|Era noastrÄ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ÃC/i,/^DC/i],wide:[/^(Ãnainte de Cristos|Ãnaintea erei noastre)/i,/^(DupÄ Cristos|Era noastrÄ)/i]},defaultParseWidth:"any"}),quarter:q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^trimestrul [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:q({matchPatterns:{narrow:/^[ifmaasond]/i,abbreviated:/^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i,wide:/^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^i/i,/^f/i,/^m/i,/^a/i,/^m/i,/^i/i,/^i/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ia/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^iun/i,/^iul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:q({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(d|l|ma|mi|j|v|s)/i,abbreviated:/^(dum|lun|mar|mie|jo|vi|sâ)/i,wide:/^(duminica|luni|marÅ£i|miercuri|joi|vineri|sâmbÄtÄ)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^mi/i,/^j/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:q({matchPatterns:{narrow:/^(a|p|mn|a|(dimineaÅ£a|dupÄ-amiaza|seara|noaptea))/i,any:/^([ap]\.?\s?m\.?|miezul nopÈii|amiaza|(dimineaÅ£a|dupÄ-amiaza|seara|noaptea))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/amiaza/i,morning:/dimineaÅ£a/i,afternoon:/dupÄ-amiaza/i,evening:/seara/i,night:/noaptea/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}};e.s(["ro",0,ed],498424);var ep=e.i(139499);function ef({icon:e,title:r,details:n,actions:i,children:a,className:o}){let s=n?.filter(e=>e.value);return(0,t.jsxs)("div",{className:(0,ep.cn)("border-l-4 border-l-primary bg-primary/5 px-6 py-6 dark:border-l-primary-lighter dark:bg-primary/10",o),children:[(e||r)&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[e,r&&(0,t.jsx)("h4",{className:"text-xl font-bold text-foreground/70",children:r})]}),s&&s.length>0&&(0,t.jsx)("table",{className:"mt-3",children:(0,t.jsx)("tbody",{className:"text-muted-foreground",children:s.map(e=>(0,t.jsxs)("tr",{children:[(0,t.jsxs)("td",{className:"pr-3 align-top",children:[e.label,":"]}),(0,t.jsx)("td",{className:(0,ep.cn)("font-semibold text-foreground",e.capitalize&&"capitalize"),children:e.value})]},e.label))})}),a,i&&(0,t.jsx)("div",{className:"-mx-6 -mb-6 mt-4 flex items-center justify-end gap-2 border-t border-primary/10 px-6 py-6 dark:border-primary/20",children:i})]})}e.s(["AppointmentBookingResult",0,function({output:e}){if("success"===e.status&&e.appointment){let{appointment:n,url:a}=e;return(0,t.jsx)(ef,{icon:(0,t.jsx)(i.CheckIcon,{className:"size-5 flex-shrink-0 text-green-600"}),title:"Programare confirmatÄ",details:[...n.service?[{label:"Serviciu",value:n.service}]:[],{label:"Data",value:n.date},{label:"Ora",value:n.time},...n.location?[{label:"LocaÈie",value:n.location}]:[]],actions:a?(0,t.jsx)(r.Button,{small:!0,primary:!0,href:a,children:"Vezi detalii programare"}):void 0})}return(0,t.jsx)(ef,{icon:(0,t.jsx)(a.XIcon,{className:"size-5 flex-shrink-0 text-red-600"}),title:"Eroare",children:(0,t.jsx)("p",{className:"mt-2 text-muted-foreground",children:e.message||"A apÄrut o eroare la crearea programÄrii."})})},"AppointmentSlotResults",0,function({output:e,onSelect:i}){let a=Object.keys(e.availableDates).sort();return 0===a.length?null:(0,t.jsxs)("div",{children:[(0,t.jsxs)("h4",{className:"mb-2 font-bold",children:["Intervale disponibile pentru ",e.stepTitle]}),(0,t.jsx)(n.Accordion,{type:"multiple",defaultValue:a.slice(0,1),children:a.map(a=>{let o=e.availableDates[a],s=Y(X(a),"EEEE, d MMMM yyyy",{locale:ed});return(0,t.jsxs)(n.AccordionItem,{value:a,className:"border-b-0",children:[(0,t.jsx)(n.AccordionTrigger,{className:"py-2 capitalize hover:no-underline",children:(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[s,(0,t.jsxs)("span",{className:"rounded-full bg-gray-100 px-2 py-0.5 text-xs text-gray-500",children:[o.length," intervale"]})]})}),(0,t.jsx)(n.AccordionContent,{className:"pb-2",children:(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:o.map(n=>(0,t.jsx)(r.Button,{small:!0,className:"w-20 rounded-md border-2 !mt-0",disabled:!i,onClick:i?()=>i({slotId:n.id,stepId:e.stepId,dateKey:a,time:n.time,location:n.location}):void 0,children:n.time},n.id))})})]},a)})})]})}],220975)},926055,e=>{"use strict";let t="askTimi";e.s(["ASK_TIMI_EVENT",0,t,"askTimi",0,e=>window.dispatchEvent(new CustomEvent(t,{detail:e}))])},257535,832356,359394,908584,e=>{"use strict";let t;e.s(["ZodAny",()=>cp,"ZodArray",()=>c_,"ZodBase64",()=>uB,"ZodBase64URL",()=>uW,"ZodBigInt",()=>ct,"ZodBigIntFormat",()=>cn,"ZodBoolean",()=>u8,"ZodCIDRv4",()=>uF,"ZodCIDRv6",()=>uZ,"ZodCUID",()=>uj,"ZodCUID2",()=>uC,"ZodCatch",()=>dr,"ZodCustom",()=>dv,"ZodCustomStringFormat",()=>uQ,"ZodDate",()=>cx,"ZodDefault",()=>c3,"ZodDiscriminatedUnion",()=>cN,"ZodE164",()=>uK,"ZodEmail",()=>up,"ZodEmoji",()=>uk,"ZodEnum",()=>cV,"ZodFile",()=>
15cK,"ZodGUID",()=>um,"ZodIPv4",()=>uL,"ZodIPv6",()=>uU,"ZodIntersection",()=>cR,"ZodJWT",()=>uX,"ZodKSUID",()=>uD,"ZodLazy",()=>df,"ZodLiteral",()=>cW,"ZodMap",()=>cz,"ZodNaN",()=>di,"ZodNanoID",()=>uE,"ZodNever",()=>cg,"ZodNonOptional",()=>c7,"ZodNull",()=>cc,"ZodNullable",()=>c1,"ZodNumber",()=>u1,"ZodNumberFormat",()=>u4,"ZodObject",()=>cE,"ZodOptional",()=>cQ,"ZodPipe",()=>ds,"ZodPrefault",()=>c5,"ZodPromise",()=>dh,"ZodReadonly",()=>du,"ZodRecord",()=>cL,"ZodSet",()=>cq,"ZodString",()=>uu,"ZodStringFormat",()=>ud,"ZodSuccess",()=>de,"ZodSymbol",()=>co,"ZodTemplateLiteral",()=>dd,"ZodTransform",()=>cX,"ZodTuple",()=>cD,"ZodType",()=>us,"ZodULID",()=>uN,"ZodURL",()=>uw,"ZodUUID",()=>ug,"ZodUndefined",()=>cl,"ZodUnion",()=>cC,"ZodUnknown",()=>cm,"ZodVoid",()=>cy,"ZodXID",()=>uR,"_ZodString",()=>ul,"_default",()=>c6,"any",()=>cf,"array",()=>ck,"base64",()=>uH,"base64url",()=>uG,"bigint",()=>cr,"boolean",()=>ce,"catch",()=>dn,"check",()=>dy,"cidrv4",()=>uq,"cidrv6",()=>uV,"cuid",()=>uI,"cuid2",()=>uA,"custom",()=>db,"date",()=>cw,"discriminatedUnion",()=>cO,"e164",()=>uY,"email",()=>uf,"emoji",()=>uS,"enum",()=>cB,"file",()=>cY,"float32",()=>u6,"float64",()=>u5,"guid",()=>uh,"instanceof",()=>d_,"int",()=>u3,"int32",()=>u9,"int64",()=>ci,"intersection",()=>cP,"ipv4",()=>uM,"ipv6",()=>uz,"json",()=>dS,"jwt",()=>uJ,"keyof",()=>cS,"ksuid",()=>u$,"lazy",()=>dm,"literal",()=>cG,"looseObject",()=>cI,"map",()=>cF,"nan",()=>da,"nanoid",()=>uT,"nativeEnum",()=>cH,"never",()=>cv,"nonoptional",()=>c8,"null",()=>cd,"nullable",()=>c2,"nullish",()=>c4,"number",()=>u2,"object",()=>cT,"optional",()=>c0,"partialRecord",()=>cU,"pipe",()=>dl,"prefault",()=>c9,"preprocess",()=>dE,"promise",()=>dg,"readonly",()=>dc,"record",()=>cM,"refine",()=>dx,"set",()=>cZ,"strictObject",()=>cj,"string",()=>uc,"stringFormat",()=>u0,"stringbool",()=>dk,"success",()=>dt,"superRefine",()=>dw,"symbol",()=>cs,"templateLiteral",()=>dp,"transform",()=>cJ,"tuple",()=>c$,"uint32",()=>u7,"uint64",()=>ca,"ulid",()=>uO,"undefined",()=>cu,"union",()=>cA,"unknown",()=>ch,"url",()=>u_,"uuid",()=>uv,"uuidv4",()=>uy,"uuidv6",()=>ub,"uuidv7",()=>ux,"void",()=>cb,"xid",()=>uP],849881),e.s(["ZodISODate",()=>ut,"ZodISODateTime",()=>l8,"ZodISODuration",()=>ua,"ZodISOTime",()=>un,"date",()=>ur,"datetime",()=>ue,"duration",()=>uo,"time",()=>ui],863143);var r,n,i,a,o,s,l,u,c,d,p,f,m,h,g,v,y,b,x,w,_,k,S,E,T,j,I,C,A,N,O,R,P,D,$,L,M,U,z,F,q,Z,V,B,H,W,G,K,Y,X,J=e.i(813919),Q=e.i(865521),ee=e.i(22114),et=e.i(552813),er=e.i(950846);let en=(0,er.default)("MessageSquare",[["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"}]]);var ei=e.i(821666),ea=e.i(889547),eo=e.i(113345),es=e.i(16309),el=e.i(836979),eu=e.i(812064),ec=ee,ed=e.i(995145);function ep(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class ef extends ec.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,r=(0,eu.isHTMLElement)(e)&&e.offsetWidth||0,n=this.props.sizeRef.current;n.height=t.offsetHeight||0,n.width=t.offsetWidth||0,n.top=t.offsetTop,n.left=t.offsetLeft,n.right=r-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function em({children:e,isPresent:t,anchorX:r,root:n}){let i=(0,ec.useId)(),a=(0,ec.useRef)(null),o=(0,ec.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:s}=(0,ec.useContext)(ed.MotionConfigContext),l=function(...e){return ee.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=ep(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():ep(e[t],null)}}}}(...e),e)}(a,e?.ref);return(0,ec.useInsertionEffect)(()=>{let{width:e,height:l,top:u,left:c,right:d}=o.current;if(t||!a.current||!e||!l)return;let p="left"===r?`left: ${c}`:`right: ${d}`;a.current.dataset.motionPopId=i;let f=document.createElement("style");s&&(f.nonce=s);let m=n??document.head;return m.appendChild(f),f.sheet&&f.sheet.insertRule(` 16 [data-motion-pop-id="${i}"] { 17 position: absolute !important; 18 width: ${e}px !important; 19 height: ${l}px !important; 20 ${p}px !important; 21 top: ${u}px !important; 22 } 23 `),()=>{m.contains(f)&&m.removeChild(f)}},[t]),(0,J.jsx)(ef,{isPresent:t,childRef:a,sizeRef:o,children:ec.cloneElement(e,{ref:l})})}let eh=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,root:l})=>{let u=(0,eo.useConstant)(eg),c=(0,ee.useId)(),d=!0,p=(0,ee.useMemo)(()=>(d=!1,{id:c,initial:t,isPresent:r,custom:i,onExitComplete:e=>
23{for(let t of(u.set(e,!0),u.values()))if(!t)return;n&&n()},register:e=>(u.set(e,!1),()=>u.delete(e))}),[r,u,n]);return a&&d&&(p={...p}),(0,ee.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[r]),ee.useEffect(()=>{r||u.size||!n||n()},[r]),"popLayout"===o&&(e=(0,J.jsx)(em,{isPresent:r,anchorX:s,root:l,children:e})),(0,J.jsx)(el.PresenceContext.Provider,{value:p,children:e})};function eg(){return new Map}var ev=e.i(452165);let ey=e=>e.key||"";function eb(e){let t=[];return ee.Children.forEach(e,e=>{(0,ee.isValidElement)(e)&&t.push(e)}),t}let ex=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:i=!0,mode:a="sync",propagate:o=!1,anchorX:s="left",root:l})=>{let[u,c]=(0,ev.usePresence)(o),d=(0,ee.useMemo)(()=>eb(e),[e]),p=o&&!u?[]:d.map(ey),f=(0,ee.useRef)(!0),m=(0,ee.useRef)(d),h=(0,eo.useConstant)(()=>new Map),[g,v]=(0,ee.useState)(d),[y,b]=(0,ee.useState)(d);(0,es.useIsomorphicLayoutEffect)(()=>{f.current=!1,m.current=d;for(let e=0;e<y.length;e++){let t=ey(y[e]);p.includes(t)?h.delete(t):!0!==h.get(t)&&h.set(t,!1)}},[y,p.length,p.join("-")]);let x=[];if(d!==g){let e=[...d];for(let t=0;t<y.length;t++){let r=y[t],n=ey(r);p.includes(n)||(e.splice(t,0,r),x.push(r))}return"wait"===a&&x.length&&(e=x),b(eb(e)),v(d),null}let{forceRender:w}=(0,ee.useContext)(ea.LayoutGroupContext);return(0,J.jsx)(J.Fragment,{children:y.map(e=>{let g=ey(e),v=(!o||!!u)&&(d===y||p.includes(g));return(0,J.jsx)(eh,{isPresent:v,initial:(!f.current||!!r)&&void 0,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:v?void 0:()=>{if(!h.has(g))return;h.set(g,!0);let e=!0;h.forEach(t=>{t||(e=!1)}),e&&(w?.(),b(m.current),o&&c?.(),n&&n())},anchorX:s,children:e},g)})})};var ew=e.i(241130),e_=e.i(857691),ek=e.i(139499),eS=e.i(945507),eE="vercel.ai.error",eT=Symbol.for(eE),ej=class e extends(u=Error,l=eT,u){constructor({name:e,message:t,cause:r}){super(t),this[l]=!0,this.name=e,this.cause=r}static isInstance(t){return e.hasMarker(t,eE)}static hasMarker(e,t){let r=Symbol.for(t);return null!=e&&"object"==typeof e&&r in e&&"boolean"==typeof e[r]&&!0===e[r]}},eI="AI_APICallError",eC=`vercel.ai.error.${eI}`,eA=Symbol.for(eC),eN=class extends(d=ej,c=eA,d){constructor({message:e,url:t,requestBodyValues:r,statusCode:n,responseHeaders:i,responseBody:a,cause:o,isRetryable:s=null!=n&&(408===n||409===n||429===n||n>=500),data:l}){super({name:eI,message:e,cause:o}),this[c]=!0,this.url=t,this.requestBodyValues=r,this.statusCode=n,this.responseHeaders=i,this.responseBody=a,this.isRetryable=s,this.data=l}static isInstance(e){return ej.hasMarker(e,eC)}},eO="AI_EmptyResponseBodyError",eR=`vercel.ai.error.${eO}`,eP=Symbol.for(eR),eD=class extends(f=ej,p=eP,f){constructor({message:e="Empty response body"}={}){super({name:eO,message:e}),this[p]=!0}static isInstance(e){return ej.hasMarker(e,eR)}};function e$(e){return null==e?"unknown error":"string"==typeof e?e:e instanceof Error?e.message:JSON.stringify(e)}var eL="AI_InvalidArgumentError",eM=`vercel.ai.error.${eL}`,eU=Symbol.for(eM),ez=class extends(h=ej,m=eU,h){constructor({message:e,cause:t,argument:r}){super({name:eL,message:e,cause:t}),this[m]=!0,this.argument=r}static isInstance(e){return ej.hasMarker(e,eM)}},eF=Symbol.for("vercel.ai.error.AI_InvalidPromptError");Symbol.for("vercel.ai.error.AI_InvalidResponseDataError");var eq="AI_JSONParseError",eZ=`vercel.ai.error.${eq}`,eV=Symbol.for(eZ),eB=class extends(v=ej,g=eV,v){constructor({text:e,cause:t}){super({name:eq,message:`JSON parsing failed: Text: ${e}. 24Error message: ${e$(t)}`,cause:t}),this[g]=!0,this.text=e}static isInstance(e){return ej.hasMarker(e,eZ)}},eH=Symbol.for("vercel.ai.error.AI_LoadAPIKeyError");Symbol.for("vercel.ai.error.AI_LoadSettingError");Symbol.for("vercel.ai.error.AI_NoContentGeneratedError");Symbol.for("vercel.ai.error.AI_NoSuchModelError");Symbol.for("vercel.ai.error.AI_TooManyEmbeddingValuesForCallError");var eW="AI_TypeValidationError",eG=`vercel.ai.error.${eW}`,eK=Symbol.for(eG),eY=class e extends(b=ej,y=eK,b){constructor({value:e,cause:t}){super({name:eW,message:`Type validation failed: Value: ${JSON.stringify(e)}. 25Error message: ${e$(t)}`,cause:t}),this[y]=!0,this.value=e}static isInstance(e){return ej.hasMarker(e,eG)}static wrap({value:t,cause:r}){return e.isInstance(r)&&r.value===t?r:new e({value:t,cause:r})}},eX=Symbol.for("vercel.ai.error.AI_UnsupportedFunctionalityError");let eJ=Object.freeze({status:"aborted"});function eQ(e,t,r){function n(r,n){var i;for(let a in Object.defineProperty(r,"_zod",{value:r._zod??{},enumerable:!1}),(i=r._zod).traits??(i.traits=new Set),r._zod.traits.add(e),t(r,n),o.prototype)a in r||Object.defineProperty(r,a,{value:o.prototype[a].bind(r)});r._zod.constr=o,r._zod.def=n}
25let i=r?.Parent??Object;class a extends i{}function o(e){var t;let i=r?.Parent?new a:this;for(let r of(n(i,e),(t=i._zod).deferred??(t.deferred=[]),i._zod.deferred))r();return i}return Object.defineProperty(a,"name",{value:e}),Object.defineProperty(o,"init",{value:n}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>!!r?.Parent&&t instanceof r.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}let e0=Symbol("zod_brand");class e1 extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}let e2={};function e4(e){return e&&Object.assign(e2,e),e2}function e3(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,r])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function e6(e,t="|"){return e.map(e=>tf(e)).join(t)}function e5(e,t){return"bigint"==typeof t?t.toString():t}function e9(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function e7(e){return null==e}function e8(e){let t=+!!e.startsWith("^"),r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function te(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}function tt(e,t,r){Object.defineProperty(e,t,{get(){{let n=r();return e[t]=n,n}},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function tr(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function tn(e){return JSON.stringify(e)}e.s(["$ZodAsyncError",0,e1,"$brand",0,e0,"$constructor",0,eQ,"NEVER",0,eJ,"config",0,e4,"globalConfig",0,e2],372463);let ti=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function ta(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let to=e9(()=>{if("u">typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function ts(e){if(!1===ta(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!1!==ta(r)&&!1!==Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")}let tl=new Set(["string","number","symbol"]),tu=new Set(["string","number","bigint","boolean","symbol","undefined"]);function tc(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function td(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function tp(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}function tf(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}function tm(e){return Object.keys(e).filter(t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout)}let th={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},tg={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function tv(e,t=0){for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function ty(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function tb(e){return"string"==typeof e?e:e?.message}function tx(e,t,r){let n={...e,path:e.path??[]};return e.message||(n.message=tb(e.inst?._zod.def?.error?.(e))??tb(t?.error?.(e))??tb(r.customError?.(e))??tb(r.localeError?.(e))??"Invalid input"),delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function tw(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function t_(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function tk(...e){let[t,r,n]=e;return"string"==typeof t?{message:t,code:"custom",input:r,inst:n}:{...t}}e.s(["BIGINT_FORMAT_RANGES",0,tg,"Class",0,class{constructor(...e){}},"NUMBER_FORMAT_RANGES",0,th,"aborted",0,tv,"allowsEval",0,to,"assert",0,function(e){},"assertEqual",0,function(e){return e},"assertIs",0,function(e){},"assertNever",0,function(e){throw Error()},"assertNotEqual",0,function(e){return e},"assignProp",0,tr,"cached",0,e9,"captureStackTrace",0,ti,"cleanEnum",0,function(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])},"cleanRegex",0,e8,"clone",0,td,"createTransparentProxy",0,function(e){let t;return new Proxy({},{get:(r,n,i)=>(t??(t=e()),Reflect.get(t,n,i)),set:(r,n,i,a)=>(t??(t=e()),Reflect.set(t,n,i,a)),has:(r,n)=>(t??(t=e()),Reflect.has(t,n)),deleteProperty:(r,n)=>(t??(t=e()),Reflect.deleteProperty(t,n)),ownKeys:r=>(t??(t=e()),Reflect.ownKeys(t)),getOwnPropertyDescriptor:(r,n)=>(t??(t=e()),Reflect.getOwnPropertyDescriptor(t,n)),defineProperty:(r,n,i)=>(t??(t=e()),Reflect.defineProperty(t,n,i))})},"defineLazy",0,tt,"esc",0,tn,"escapeRegex",0,tc,"extend",0,function(e,t){if(!ts(t))throw Error("Invalid input to extend: expected a plain object");let r={...e._zod.def,get shape(){let r={...e._zod.def.shape,...t};return tr(this,"shape",r),r},checks:[]};return td(e,r)},"finalizeIssue",0,tx,"floatSafeRemainder",0,te,"getElementAtPath",0,function(e,t){return t?t.reduce((e,t)=>
25e?.[t],e):e},"getEnumValues",0,e3,"getLengthableOrigin",0,t_,"getParsedType",0,e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return"promise";if("u">typeof Map&&e instanceof Map)return"map";if("u">typeof Set&&e instanceof Set)return"set";if("u">typeof Date&&e instanceof Date)return"date";if("u">typeof File&&e instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${t}`)}},"getSizableOrigin",0,tw,"isObject",0,ta,"isPlainObject",0,ts,"issue",0,tk,"joinValues",0,e6,"jsonStringifyReplacer",0,e5,"merge",0,function(e,t){return td(e,{...e._zod.def,get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return tr(this,"shape",r),r},catchall:t._zod.def.catchall,checks:[]})},"normalizeParams",0,tp,"nullish",0,e7,"numKeys",0,function(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t},"omit",0,function(e,t){let r={...e._zod.def.shape},n=e._zod.def;for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return td(e,{...e._zod.def,shape:r,checks:[]})},"optionalKeys",0,tm,"partial",0,function(e,t,r){let n=t._zod.def.shape,i={...n};if(r)for(let t in r){if(!(t in n))throw Error(`Unrecognized key: "${t}"`);r[t]&&(i[t]=e?new e({type:"optional",innerType:n[t]}):n[t])}else for(let t in n)i[t]=e?new e({type:"optional",innerType:n[t]}):n[t];return td(t,{...t._zod.def,shape:i,checks:[]})},"pick",0,function(e,t){let r={},n=e._zod.def;for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&(r[e]=n.shape[e])}return td(e,{...e._zod.def,shape:r,checks:[]})},"prefixIssues",0,ty,"primitiveTypes",0,tu,"promiseAllObject",0,function(e){let t=Object.keys(e);return Promise.all(t.map(t=>e[t])).then(e=>{let r={};for(let n=0;n<t.length;n++)r[t[n]]=e[n];return r})},"propertyKeyTypes",0,tl,"randomString",0,function(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let n=0;n<e;n++)r+=t[Math.floor(Math.random()*t.length)];return r},"required",0,function(e,t,r){let n=t._zod.def.shape,i={...n};if(r)for(let t in r){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);r[t]&&(i[t]=new e({type:"nonoptional",innerType:n[t]}))}else for(let t in n)i[t]=new e({type:"nonoptional",innerType:n[t]});return td(t,{...t._zod.def,shape:i,checks:[]})},"stringifyPrimitive",0,tf,"unwrapMessage",0,tb],876940);let tS=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get:()=>JSON.stringify(t,e5,2),enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},tE=eQ("$ZodError",tS),tT=eQ("$ZodError",tS,{Parent:Error});function tj(e,t=e=>e.message){let r={},n=[];for(let i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}}function tI(e,t){let r=t||function(e){return e.message},n={_errors:[]},i=e=>{for(let t of e.issues)if("invalid_union"===t.code&&t.errors.length)t.errors.map(e=>i({issues:e}));else if("invalid_key"===t.code)i({issues:t.issues});else if("invalid_element"===t.code)i({issues:t.issues});else if(0===t.path.length)n._errors.push(r(t));else{let e=n,i=0;for(;i<t.path.length;){let n=t.path[i];i===t.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(r(t))):e[n]=e[n]||{_errors:[]},e=e[n],i++}}};return i(e),n}function tC(e,t){let r=t||function(e){return e.message},n={errors:[]},i=(e,t=[])=>{var a,o;for(let s of e.issues)if("invalid_union"===s.code&&s.errors.length)s.errors.map(e=>i({issues:e},s.path));else if("invalid_key"===s.code)i({issues:s.issues},s.path);else if("invalid_element"===s.code)i({issues:s.issues},s.path);else{let e=[...t,...s.path];
25if(0===e.length){n.errors.push(r(s));continue}let i=n,l=0;for(;l<e.length;){let t=e[l],n=l===e.length-1;"string"==typeof t?(i.properties??(i.properties={}),(a=i.properties)[t]??(a[t]={errors:[]}),i=i.properties[t]):(i.items??(i.items=[]),(o=i.items)[t]??(o[t]={errors:[]}),i=i.items[t]),n&&i.errors.push(r(s)),l++}}};return i(e),n}function tA(e){let t=[];for(let r of e)"number"==typeof r?t.push(`[${r}]`):"symbol"==typeof r?t.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?t.push(`[${JSON.stringify(r)}]`):(t.length&&t.push("."),t.push(r));return t.join("")}function tN(e){let t=[];for(let r of[...e.issues].sort((e,t)=>e.path.length-t.path.length))t.push(`â ${r.message}`),r.path?.length&&t.push(` â at ${tA(r.path)}`);return t.join("\n")}e.s(["$ZodError",0,tE,"$ZodRealError",0,tT,"flattenError",0,tj,"formatError",0,tI,"prettifyError",0,tN,"toDotPath",0,tA,"treeifyError",0,tC],383411);let tO=e=>(t,r,n,i)=>{let a=n?Object.assign(n,{async:!1}):{async:!1},o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise)throw new e1;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>tx(e,a,e4())));throw ti(t,i?.callee),t}return o.value},tR=tO(tT),tP=e=>async(t,r,n,i)=>{let a=n?Object.assign(n,{async:!0}):{async:!0},o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>tx(e,a,e4())));throw ti(t,i?.callee),t}return o.value},tD=tP(tT),t$=e=>(t,r,n)=>{let i=n?{...n,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new e1;return a.issues.length?{success:!1,error:new(e??tE)(a.issues.map(e=>tx(e,i,e4())))}:{success:!0,data:a.value}},tL=t$(tT),tM=e=>async(t,r,n)=>{let i=n?Object.assign(n,{async:!0}):{async:!0},a=t._zod.run({value:r,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>tx(e,i,e4())))}:{success:!0,data:a.value}},tU=tM(tT);e.s(["_parse",0,tO,"_parseAsync",0,tP,"_safeParse",0,t$,"_safeParseAsync",0,tM,"parse",0,tR,"parseAsync",0,tD,"safeParse",0,tL,"safeParseAsync",0,tU],757195);let tz=(e,t)=>{tE.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>tI(e,t)},flatten:{value:t=>tj(e,t)},addIssue:{value:t=>e.issues.push(t)},addIssues:{value:t=>e.issues.push(...t)},isEmpty:{get:()=>0===e.issues.length}})},tF=eQ("ZodError",tz),tq=eQ("ZodError",tz,{Parent:Error});e.s(["ZodError",0,tF,"ZodRealError",0,tq],386625);let tZ=tO(tq),tV=tP(tq),tB=t$(tq),tH=tM(tq);e.s(["parse",0,tZ,"parseAsync",0,tV,"safeParse",0,tB,"safeParseAsync",0,tH],641631);let tW=Symbol("ZodOutput"),tG=Symbol("ZodInput");class tK{constructor(){this._map=new Map,this._idmap=new Map}add(e,...t){let r=t[0];if(this._map.set(e,r),r&&"object"==typeof r&&"id"in r){if(this._idmap.has(r.id))throw Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let r={...this.get(t)??{}};return delete r.id,{...r,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}}function tY(){return new tK}let tX=tY();e.s(["$ZodRegistry",0,tK,"$input",0,tG,"$output",0,tW,"globalRegistry",0,tX,"registry",0,tY],135482);class tJ{constructor(e){this.counter=0,this.metadataRegistry=e?.metadata??tX,this.target=e?.target??"draft-2020-12",this.unrepresentable=e?.unrepresentable??"throw",this.override=e?.override??(()=>{}),this.io=e?.io??"output",this.seen=new Map}process(e,t={path:[],schemaPath:[]}){var r;let n=e._zod.def,i=this.seen.get(e);if(i)return i.count++,t.schemaPath.includes(e)&&(i.cycle=t.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:t.path};this.seen.set(e,a);let o=e._zod.toJSONSchema?.();if(o)a.schema=o;else{let r={...t,schemaPath:[...t.schemaPath,e],path:t.path},i=e._zod.parent;if(i)a.ref=i,this.process(i,r),this.seen.get(i).isParent=!0;else{let t=a.schema;switch(n.type){case"string":{t.type="string";let{minimum:r,maximum:n,format:i,patterns:o,contentEncoding:s}=e._zod.bag;if("number"==typeof r&&(t.minLength=r),"number"==typeof n&&(t.maxLength=n),i&&(t.format=({guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""})[i]??i,""===t.format&&delete t.format),s&&(t.contentEncoding=s),o&&o.size>0){let e=[...o];1===e.length?t.pattern=e[0].source:e.length>1&&(a.schema.allOf=[...e.map(e=>({..."draft-7"===this.target?{type:"string"}:{},pattern:e.source}))])}break}case"number":{let{minimum:r,maximum:n,format:i,multipleOf:a,exclusiveMaximum:o,exclusiveMinimum:s}=e._zod.bag;"string"==typeof i&&i.includes("int")?t.type="integer":t.type="number","number"==typeof s&&(t.exclusiveMinimum=s),"number"==typeof r&&(t.minimum=r,"number"==typeof s&&(s>=r?delete t.minimum:delete t.exclusiveMinimum)),"number"==typeof o&&(t.exclusiveMaximum=o),"number"==typeof n&&(t.maximum=n,"number"==typeof o&&(o<=n?delete t.maximum:delete t.exclusiveMaximum)),"number"==typeof a&&(t.multipleOf=a);break}case"boolean":case"success":t.type="boolean";break;case"bigint":if("throw"===this.unrepresentable)throw Error("BigInt cannot be represented in JSON Schema");break;case"symbol":if("throw"===this.unrepresentable)throw Error("Symbols cannot be represented in JSON Schema");break;case"null":t.type="null";break;case"any":case"unknown":break;case"undefined":if("throw"===this.unrepresentable)throw Error("Undefined cannot be represented in JSON Schema");break;case"void":if("throw"===this.unrepresentable)throw Error("Void cannot be represented in JSON Schema");break;case"never":t.not={};break;case"date":if("throw"===this.unrepresentable)throw Error("Date cannot be represented in JSON Schema");break;case"array":{let{minimum:i,maximum:a}=e._zod.bag;"number"==typeof i&&(t.minItems=i),"number"==typeof a&&(t.maxItems=a),t.type="array",t.items=this.process(n.element,{...r,path:[...r.path,"items"]});break}case"object":{t.type="object",t.properties={};let e=n.shape;for(let n in e)t.properties[n]=this.process(e[n],{...r,path:[...r.path,"properties",n]});let i=new Set([...new Set(Object.keys(e))].filter(e=>{let t=n.shape[e]._zod;return"input"===this.io?void 0===t.optin:void 0===t.optout}));i.size>0&&(t.required=Array.from(i)),n.catchall?._zod.def.type==="never"?t.additionalProperties=!1:n.catchall?n.catchall&&(t.additionalProperties=this.process(n.catchall,{...r,path:[...r.path,"additionalProperties"]})):"output"===this.io&&(t.additionalProperties=!1);break}case"union":t.anyOf=n.options.map((e,t)=>this.process(e,{...r,path:[...r.path,"anyOf",t]}));break;case"intersection":{let e=this.process(n.left,{...r,path:[...r.path,"allOf",0]}),i=this.process(n.right,{...r,path:[...r.path,"allOf",1]}),a=e=>"allOf"in e&&1===Object.keys(e).length;t.allOf=[...a(e)?e.allOf:[e],...a(i)?i.allOf:[i]];break}case"tuple":{t.type="array";let i=n.items.map((e,t)=>this.process(e,{...r,path:[...r.path,"prefixItems",t]}));
25if("draft-2020-12"===this.target?t.prefixItems=i:t.items=i,n.rest){let e=this.process(n.rest,{...r,path:[...r.path,"items"]});"draft-2020-12"===this.target?t.items=e:t.additionalItems=e}n.rest&&(t.items=this.process(n.rest,{...r,path:[...r.path,"items"]}));let{minimum:a,maximum:o}=e._zod.bag;"number"==typeof a&&(t.minItems=a),"number"==typeof o&&(t.maxItems=o);break}case"record":t.type="object",t.propertyNames=this.process(n.keyType,{...r,path:[...r.path,"propertyNames"]}),t.additionalProperties=this.process(n.valueType,{...r,path:[...r.path,"additionalProperties"]});break;case"map":if("throw"===this.unrepresentable)throw Error("Map cannot be represented in JSON Schema");break;case"set":if("throw"===this.unrepresentable)throw Error("Set cannot be represented in JSON Schema");break;case"enum":{let e=e3(n.entries);e.every(e=>"number"==typeof e)&&(t.type="number"),e.every(e=>"string"==typeof e)&&(t.type="string"),t.enum=e;break}case"literal":{let e=[];for(let t of n.values)if(void 0===t){if("throw"===this.unrepresentable)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof t)if("throw"===this.unrepresentable)throw Error("BigInt literals cannot be represented in JSON Schema");else e.push(Number(t));else e.push(t);if(0===e.length);else if(1===e.length){let r=e[0];t.type=null===r?"null":typeof r,t.const=r}else e.every(e=>"number"==typeof e)&&(t.type="number"),e.every(e=>"string"==typeof e)&&(t.type="string"),e.every(e=>"boolean"==typeof e)&&(t.type="string"),e.every(e=>null===e)&&(t.type="null"),t.enum=e;break}case"file":{let r={type:"string",format:"binary",contentEncoding:"binary"},{minimum:n,maximum:i,mime:a}=e._zod.bag;void 0!==n&&(r.minLength=n),void 0!==i&&(r.maxLength=i),a?1===a.length?(r.contentMediaType=a[0],Object.assign(t,r)):t.anyOf=a.map(e=>({...r,contentMediaType:e})):Object.assign(t,r);break}case"transform":if("throw"===this.unrepresentable)throw Error("Transforms cannot be represented in JSON Schema");break;case"nullable":t.anyOf=[this.process(n.innerType,r),{type:"null"}];break;case"nonoptional":case"promise":case"optional":this.process(n.innerType,r),a.ref=n.innerType;break;case"default":this.process(n.innerType,r),a.ref=n.innerType,t.default=JSON.parse(JSON.stringify(n.defaultValue));break;case"prefault":this.process(n.innerType,r),a.ref=n.innerType,"input"===this.io&&(t._prefault=JSON.parse(JSON.stringify(n.defaultValue)));break;case"catch":{let e;this.process(n.innerType,r),a.ref=n.innerType;try{e=n.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}t.default=e;break}case"nan":if("throw"===this.unrepresentable)throw Error("NaN cannot be represented in JSON Schema");break;case"template_literal":{let r=e._zod.pattern;if(!r)throw Error("Pattern not found in template literal");t.type="string",t.pattern=r.source;break}case"pipe":{let e="input"===this.io?"transform"===n.in._zod.def.type?n.out:n.in:n.out;this.process(e,r),a.ref=e;break}case"readonly":this.process(n.innerType,r),a.ref=n.innerType,t.readOnly=!0;break;case"lazy":{let t=e._zod.innerType;this.process(t,r),a.ref=t;break}case"custom":if("throw"===this.unrepresentable)throw Error("Custom types cannot be represented in JSON Schema")}}}let s=this.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),"input"===this.io&&function e(t,r){let n=r??{seen:new Set};if(n.seen.has(t))return!1;n.seen.add(t);let i=t._zod.def;switch(i.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":case"custom":case"success":case"catch":return!1;case"array":return e(i.element,n);case"object":for(let t in i.shape)if(e(i.shape[t],n))return!0;return!1;case"union":for(let t of i.options)if(e(t,n))return!0;return!1;case"intersection":return e(i.left,n)||e(i.right,n);case"tuple":for(let t of i.items)if(e(t,n))return!0;if(i.rest&&e(i.rest,n))return!0;return!1;case"record":case"map":return e(i.keyType,n)||e(i.valueType,n);case"set":return e(i.valueType,n);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":case"default":case"prefault":return e(i.innerType,n);case"lazy":return e(i.getter(),n);case"transform":return!0;case"pipe":return e(i.in,n)||e(i.out,n)}throw Error(`Unknown schema type: ${i.type}`)}(e)&&(delete a.schema.examples,delete a.schema.default),"input"===this.io&&a.schema._prefault&&((r=a.schema).default??(r.default=a.schema._prefault)),delete a.schema._prefault,this.seen.get(e).schema}emit(e,t){let r={cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0},n=this.seen.get(e);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");let i=e=>
25{let t="draft-2020-12"===this.target?"$defs":"definitions";if(r.external){let n=r.external.registry.get(e[0])?.id,i=r.external.uri??(e=>e);if(n)return{ref:i(n)};let a=e[1].defId??e[1].schema.id??`schema${this.counter++}`;return e[1].defId=a,{defId:a,ref:`${i("__shared")}#/${t}/${a}`}}if(e[1]===n)return{ref:"#"};let i=`#/${t}/`,a=e[1].schema.id??`__schema${this.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:r,defId:n}=i(e);t.def={...t.schema},n&&(t.defId=n);let a=t.schema;for(let e in a)delete a[e];a.$ref=r};if("throw"===r.cycles)for(let e of this.seen.entries()){let t=e[1];if(t.cycle)throw Error(`Cycle detected: #/${t.cycle?.join("/")}/<root> 26 27Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let t of this.seen.entries()){let n=t[1];if(e===t[0]){a(t);continue}if(r.external){let n=r.external.registry.get(t[0])?.id;if(e!==t[0]&&n){a(t);continue}}if(this.metadataRegistry.get(t[0])?.id||n.cycle||n.count>1&&"ref"===r.reused){a(t);continue}}let o=(e,t)=>{let r=this.seen.get(e),n=r.def??r.schema,i={...n};if(null===r.ref)return;let a=r.ref;if(r.ref=null,a){o(a,t);let e=this.seen.get(a).schema;e.$ref&&"draft-7"===t.target?(n.allOf=n.allOf??[],n.allOf.push(e)):(Object.assign(n,e),Object.assign(n,i))}r.isParent||this.override({zodSchema:e,jsonSchema:n,path:r.path??[]})};for(let e of[...this.seen.entries()].reverse())o(e[0],{target:this.target});let s={};if("draft-2020-12"===this.target?s.$schema="https://json-schema.org/draft/2020-12/schema":"draft-7"===this.target?s.$schema="http://json-schema.org/draft-07/schema#":console.warn(`Invalid target: ${this.target}`),r.external?.uri){let t=r.external.registry.get(e)?.id;if(!t)throw Error("Schema is missing an `id` property");s.$id=r.external.uri(t)}Object.assign(s,n.def);let l=r.external?.defs??{};for(let e of this.seen.entries()){let t=e[1];t.def&&t.defId&&(l[t.defId]=t.def)}r.external||Object.keys(l).length>0&&("draft-2020-12"===this.target?s.$defs=l:s.definitions=l);try{return JSON.parse(JSON.stringify(s))}catch(e){throw Error("Error converting schema to JSON.")}}}function tQ(e,t){if(e instanceof tK){let r=new tJ(t),n={};
27for(let t of e._idmap.entries()){let[e,n]=t;r.process(n)}let i={},a={registry:e,uri:t?.uri,defs:n};for(let n of e._idmap.entries()){let[e,o]=n;i[e]=r.emit(o,{...t,external:a})}return Object.keys(n).length>0&&(i.__shared={["draft-2020-12"===r.target?"$defs":"definitions"]:n}),{schemas:i}}let r=new tJ(t);return r.process(e),r.emit(e,t)}e.s(["JSONSchemaGenerator",0,tJ,"toJSONSchema",0,tQ],522881),(r=x||(x={})).assertEqual=e=>{},r.assertIs=function(e){},r.assertNever=function(e){throw Error()},r.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},r.getValidEnumValues=e=>{let t=r.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),n={};for(let r of t)n[r]=e[r];return r.objectValues(n)},r.objectValues=e=>r.objectKeys(e).map(function(t){return e[t]}),r.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},r.find=(e,t)=>{for(let r of e)if(t(r))return r},r.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,r.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},r.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(w||(w={})).mergeShapes=(e,t)=>({...e,...t});let t0=x.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),t1=e=>{switch(typeof e){case"undefined":return t0.undefined;case"string":return t0.string;case"number":return Number.isNaN(e)?t0.nan:t0.number;case"boolean":return t0.boolean;case"function":return t0.function;case"bigint":return t0.bigint;case"symbol":return t0.symbol;case"object":if(Array.isArray(e))return t0.array;if(null===e)return t0.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return t0.promise;if("u">typeof Map&&e instanceof Map)return t0.map;if("u">typeof Set&&e instanceof Set)return t0.set;if("u">typeof Date&&e instanceof Date)return t0.date;return t0.object;default:return t0.unknown}};e.s(["ZodParsedType",0,t0,"getParsedType",0,t1,"objectUtil",0,w,"util",0,x],458728);
27let t2=x.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),t4=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class t3 extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof t3))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,x.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)if(n.path.length>0){let r=n.path[0];t[r]=t[r]||[],t[r].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}t3.create=e=>new t3(e),e.s(["ZodError",0,t3,"ZodIssueCode",0,t2,"quotelessJson",0,t4],559413);let t6=(e,t)=>{let r;switch(e.code){case t2.invalid_type:r=e.received===t0.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case t2.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,x.jsonStringifyReplacer)}`;break;case t2.unrecognized_keys:r=`Unrecognized key(s) in object: ${x.joinValues(e.keys,", ")}`;break;case t2.invalid_union:r="Invalid input";break;case t2.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${x.joinValues(e.options)}`;break;case t2.invalid_enum_value:r=`Invalid enum value. Expected ${x.joinValues(e.options)}, received '${e.received}'`;break;case t2.invalid_arguments:r="Invalid function arguments";break;case t2.invalid_return_type:r="Invalid function return type";break;case t2.invalid_date:r="Invalid date";break;case t2.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:x.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case t2.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case t2.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case t2.custom:r="Invalid input";break;case t2.invalid_intersection_types:r="Intersection results could not be merged";break;case t2.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case t2.not_finite:r="Number must be finite";break;default:r=t.defaultError,x.assertNever(e)}return{message:r}},t5=t6;function t9(e){t5=e}function t7(){return t5}e.s(["getErrorMap",0,t7,"setErrorMap",0,t9],725827),(n=_||(_={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},n.toString=e=>"string"==typeof e?e:e?.message;let t8=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,a=[...r,...i.path||[]],o={...i,path:a};if(void 0!==i.message)return{...i,path:a,message:i.message};let s="";for(let e of n.filter(e=>!!e).slice().reverse())s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}},re=[];function rt(e,t){let r=t7(),n=t8({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===t6?void 0:t6].filter(e=>!!e)});e.common.issues.push(n)}class rr{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return rn;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return rr.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return rn;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let rn=Object.freeze({status:"aborted"}),ri=e=>({status:"dirty",value:e}),ra=e=>
27({status:"valid",value:e}),ro=e=>"aborted"===e.status,rs=e=>"dirty"===e.status,rl=e=>"valid"===e.status,ru=e=>"u">typeof Promise&&e instanceof Promise;e.s(["DIRTY",0,ri,"EMPTY_PATH",0,re,"INVALID",0,rn,"OK",0,ra,"ParseStatus",0,rr,"addIssueToContext",0,rt,"isAborted",0,ro,"isAsync",0,ru,"isDirty",0,rs,"isValid",0,rl,"makeIssue",0,t8],696555);class rc{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let rd=(e,t)=>{if(rl(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new t3(e.common.issues);return this._error=t,this._error}}};function rp(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return"invalid_enum_value"===t.code?{message:a??i.defaultError}:void 0===i.data?{message:a??n??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:a??r??i.defaultError}},description:i}}class rf{get description(){return this._def.description}_getType(e){return t1(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:t1(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new rr,ctx:{common:e.parent.common,data:e.data,parsedType:t1(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(ru(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:t1(e)},n=this._parseSync({data:e,path:r.path,parent:r});return rd(r,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:t1(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return rl(r)?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>rl(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:t1(e)},n=this._parse({data:e,path:r.path,parent:r});return rd(r,await (ru(n)?n:Promise.resolve(n)))}refine(e,t){return this._refinement((r,n)=>{let i=e(r),a=()=>n.addIssue({code:t2.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(r):t});return"u">typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new r9({schema:this,typeName:k.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return r7.create(this,this._def)}nullable(){return r8.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return rV.create(this)}promise(){return r5.create(this,this._def)}or(e){return rH.create([this,e],this._def)}and(e){return rK.create(this,e,this._def)}transform(e){return new r9({...rp(this._def),schema:this,typeName:k.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ne({...rp(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:k.ZodDefault})}brand(){return new ni({typeName:k.ZodBranded,type:this,...rp(this._def)})}catch(e){return new nt({...rp(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:k.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return na.create(this,e)}readonly(){return no.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let rm=/^c[^\s-]{8,}
vendor: 26,602 bytes, line 27
27$/i,rh=/^[0-9a-z]+$/,rg=/^[0-9A-HJKMNP-TV-Z]{26}$/i,rv=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,ry=/^[a-z0-9_-]{21}$/i,rb=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,rx=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,rw=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,r_=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,rk=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,rS=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,rE=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,rT=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,rj=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,rI="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",rC=RegExp(`^${rI}$`);function rA(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function rN(e){let t=`${rI}T${rA(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)}class rO extends rf{_parse(e){var r,n,i,a;let o;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==t0.string){let t=this._getOrReturnCtx(e);return rt(t,{code:t2.invalid_type,expected:t0.string,received:t.parsedType}),rn}let s=new rr;for(let l of this._def.checks)if("min"===l.kind)e.data.length<l.value&&(rt(o=this._getOrReturnCtx(e,o),{code:t2.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),s.dirty());else if("max"===l.kind)e.data.length>l.value&&(rt(o=this._getOrReturnCtx(e,o),{code:t2.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),s.dirty());else if("length"===l.kind){let t=e.data.length>l.value,r=e.data.length<l.value;(t||r)&&(o=this._getOrReturnCtx(e,o),t?rt(o,{code:t2.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}):r&&rt(o,{code:t2.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}),s.dirty())}else if("email"===l.kind)rw.test(e.data)||(rt(o=this._getOrReturnCtx(e,o),{validation:"email",code:t2.invalid_string,message:l.message}),s.dirty());else if("emoji"===l.kind)t||(t=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),t.test(e.data)||(rt(o=this._getOrReturnCtx(e,o),{validation:"emoji",code:t2.invalid_string,message:l.message}),s.dirty());else if("uuid"===l.kind)rv.test(e.data)||(rt(o=this._getOrReturnCtx(e,o),{validation:"uuid",code:t2.invalid_string,message:l.message}),s.dirty());else if("nanoid"===l.kind)ry.test(e.data)||(rt(o=this._getOrReturnCtx(e,o),{validation:"nanoid",code:t2.invalid_string,message:l.message}),s.dirty());else if("cuid"===l.kind)rm.test(e.data)||(rt(o=this._getOrReturnCtx(e,o),{validation:"cuid",code:t2.invalid_string,message:l.message}),s.dirty());else if("cuid2"===l.kind)rh.test(e.data)||(rt(o=this._getOrReturnCtx(e,o),{validation:"cuid2",code:t2.invalid_string,message:l.message}),s.dirty());else if("ulid"===l.kind)rg.test(e.data)||(rt(o=this._getOrReturnCtx(e,o),{validation:"ulid",code:t2.invalid_string,message:l.message}),s.dirty());else if("url"===l.kind)try{new URL(e.data)}catch{rt(o=this._getOrReturnCtx(e,o),{validation:"url",code:t2.invalid_string,message:l.message}),s.dirty()}else"regex"===l.kind?(l.regex.lastIndex=0,l.regex.test(e.data)||(rt(o=this._getOrReturnCtx(e,o),{validation:"regex",code:t2.invalid_string,message:l.message}),s.dirty())):"trim"===l.kind?e.data=e.data.trim():"includes"===l.kind?e.data.includes(l.value,l.position)||(rt(o=this._getOrReturnCtx(e,o),{code:t2.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),s.dirty()):"toLowerCase"===l.kind?e.data=e.data.toLowerCase():"toUpperCase"===l.kind?e.data=e.data.toUpperCase():"startsWith"===l.kind?e.data.startsWith(l.value)||(rt(o=this._getOrReturnCtx(e,o),{code:t2.invalid_string,validation:{startsWith:l.value},message:l.message}),s.dirty()):"endsWith"===l.kind?e.data.endsWith(l.value)||(rt(o=this._getOrReturnCtx(e,o),{code:t2.invalid_string,validation:{endsWith:l.value},message:l.message}),s.dirty()):"datetime"===l.kind?rN(l).test(e.data)||(rt(o=this._getOrReturnCtx(e,o),{code:t2.invalid_string,validation:"datetime",message:l.message}),s.dirty()):"date"===l.kind?rC.test(e.data)||(rt(o=this._getOrReturnCtx(e,o),{code:t2.invalid_string,validation:"date",message:l.message}),s.dirty()):"time"===l.kind?RegExp(`^${rA(l)}$`).test(e.data)||(rt(o=this._getOrReturnCtx(e,o),{code:t2.invalid_string,validation:"time",message:l.message}),s.dirty()):"duration"===l.kind?rx.test(e.data)||(rt(o=this._getOrReturnCtx(e,o),{validation:"duration",code:t2.invalid_string,message:l.message}),s.dirty()):"ip"===l.kind?(r=e.data,!(("v4"===(n=l.version)||!n)&&r_.test(r)||("v6"===n||!n)&&rS.test(r))&&1&&(rt(o=this._getOrReturnCtx(e,o),{validation:"ip",code:t2.invalid_string,message:l.message}),s.dirty())):"jwt"===l.kind?!function(e,t){if(!rb.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}(e.data,l.alg)&&(rt(o=this._getOrReturnCtx(e,o),{validation:"jwt",code:t2.invalid_string,message:l.message}),s.dirty()):"cidr"===l.kind?(i=e.data,!(("v4"===(a=l.version)||!a)&&rk.test(i)||("v6"===a||!a)&&rE.test(i))&&1&&(rt(o=this._getOrReturnCtx(e,o),{validation:"cidr",code:t2.invalid_string,message:l.message}),s.dirty())):"base64"===l.kind?rT.test(e.data)||(rt(o=this._getOrReturnCtx(e,o),{validation:"base64",code:t2.invalid_string,message:l.message}),s.dirty()):"base64url"===l.kind?rj.test(e.data)||(rt(o=this._getOrReturnCtx(e,o),{validation:"base64url",code:t2.invalid_string,message:l.message}),s.dirty()):x.assertNever(l);return{status:s.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:t2.invalid_string,..._.errToObj(r)})}_addCheck(e){return new rO({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",..._.errToObj(e)})}url(e){return this._addCheck({kind:"url",..._.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",..._.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",..._.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",..._.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",..._.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",..._.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",..._.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",..._.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",..._.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",..._.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",..._.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",..._.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,..._.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,..._.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",..._.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,..._.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,..._.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,..._.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,..._.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,..._.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,..._.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,..._.errToObj(t)})}nonempty(e){return this.min(1,_.errToObj(e))}trim(){return new rO({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new rO({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new rO({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}rO.create=e=>new rO({checks:[],typeName:k.ZodString,coerce:e?.coerce??!1,...rp(e)});class rR extends rf{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==t0.number){let t=this._getOrReturnCtx(e);return rt(t,{code:t2.invalid_type,expected:t0.number,received:t.parsedType}),rn}let r=new rr;for(let n of this._def.checks)"int"===n.kind?x.isInteger(e.data)||(rt(t=this._getOrReturnCtx(e,t),{code:t2.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(rt(t=this._getOrReturnCtx(e,t),{code:t2.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(rt(t=this._getOrReturnCtx(e,t),{code:t2.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}(e.data,n.value)&&(rt(t=this._getOrReturnCtx(e,t),{code:t2.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(rt(t=this._getOrReturnCtx(e,t),{code:t2.not_finite,message:n.message}),r.dirty()):x.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,_.toString(t))}gt(e,t){return this.setLimit("min",e,!1,_.toString(t))}lte(e,t){return this.setLimit("max",e,!0,_.toString(t))}lt(e,t){return this.setLimit("max",e,!1,_.toString(t))}setLimit(e,t,r,n){return new rR({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:_.toString(n)}]})}_addCheck(e){return new rR({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:_.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:_.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:_.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:_.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:_.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:_.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:_.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:_.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:_.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&x.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value);return Number.isFinite(t)&&Number.isFinite(e)}}rR.create=e=>new rR({checks:[],typeName:k.ZodNumber,coerce:e?.coerce||!1,...rp(e)});class rP extends rf{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==t0.bigint)return this._getInvalidInput(e);let r=new rr;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(rt(t=this._getOrReturnCtx(e,t),{code:t2.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(rt(t=this._getOrReturnCtx(e,t),{code:t2.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(rt(t=this._getOrReturnCtx(e,t),{code:t2.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):x.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return rt(t,{code:t2.invalid_type,expected:t0.bigint,received:t.parsedType}),rn}gte(e,t){return this.setLimit("min",e,!0,_.toString(t))}gt(e,t){return this.setLimit("min",e,!1,_.toString(t))}lte(e,t){return this.setLimit("max",e,!0,_.toString(t))}lt(e,t){return this.setLimit("max",e,!1,_.toString(t))}setLimit(e,t,r,n){return new rP({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:_.toString(n)}]})}_addCheck(e){return new rP({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:_.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:_.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:_.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:_.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:_.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}rP.create=e=>new rP({checks:[],typeName:k.ZodBigInt,coerce:e?.coerce??!1,...rp(e)});class rD extends rf{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==t0.boolean){let t=this._getOrReturnCtx(e);return rt(t,{code:t2.invalid_type,expected:t0.boolean,received:t.parsedType}),rn}return ra(e.data)}}rD.create=e=>new rD({typeName:k.ZodBoolean,coerce:e?.coerce||!1,...rp(e)});class r$ extends rf{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==t0.date){let t=this._getOrReturnCtx(e);return rt(t,{code:t2.invalid_type,expected:t0.date,received:t.parsedType}),rn}if(Number.isNaN(e.data.getTime()))return rt(this._getOrReturnCtx(e),{code:t2.invalid_date}),rn;let r=new rr;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(rt(t=this._getOrReturnCtx(e,t),{code:t2.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(rt(t=this._getOrReturnCtx(e,t),{code:t2.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):x.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new r$({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:_.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:_.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}r$.create=e=>new r$({checks:[],coerce:e?.coerce||!1,typeName:k.ZodDate,...rp(e)});class rL extends rf{_parse(e){if(this._getType(e)!==t0.symbol){let t=this._getOrReturnCtx(e);return rt(t,{code:t2.invalid_type,expected:t0.symbol,received:t.parsedType}),rn}return ra(e.data)}}rL.create=e=>new rL({typeName:k.ZodSymbol,...rp(e)});class rM extends rf{_parse(e){if(this._getType(e)!==t0.undefined){let t=this._getOrReturnCtx(e);return rt(t,{code:t2.invalid_type,expected:t0.undefined,received:t.parsedType}),rn}return ra(e.data)}}rM.create=e=>new rM({typeName:k.ZodUndefined,...rp(e)});class rU extends rf{_parse(e){if(this._getType(e)!==t0.null){let t=this._getOrReturnCtx(e);return rt(t,{code:t2.invalid_type,expected:t0.null,received:t.parsedType}),rn}return ra(e.data)}}rU.create=e=>new rU({typeName:k.ZodNull,...rp(e)});class rz extends rf{constructor(){super(...arguments),this._any=!0}_parse(e){return ra(e.data)}}rz.create=e=>new rz({typeName:k.ZodAny,...rp(e)});class rF extends rf{constructor(){super(...arguments),this._unknown=!0}_parse(e){return ra(e.data)}}rF.create=e=>new rF({typeName:k.ZodUnknown,...rp(e)});class rq extends rf{_parse(e){let t=this._getOrReturnCtx(e);return rt(t,{code:t2.invalid_type,expected:t0.never,received:t.parsedType}),rn}}rq.create=e=>new rq({typeName:k.ZodNever,...rp(e)});class rZ extends rf{_parse(e){if(this._getType(e)!==t0.undefined){let t=this._getOrReturnCtx(e);return rt(t,{code:t2.invalid_type,expected:t0.void,received:t.parsedType}),rn}return ra(e.data)}}rZ.create=e=>new rZ({typeName:k.ZodVoid,...rp(e)});class rV extends rf{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==t0.array)return rt(t,{code:t2.invalid_type,expected:t0.array,received:t.parsedType}),rn;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&(rt(t,{code:e?t2.too_big:t2.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(rt(t,{code:t2.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(rt(t,{code:t2.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new rc(t,e,t.path,r)))).then(e=>rr.mergeArray(r,e));let i=[...t.data].map((e,r)=>n.type._parseSync(new rc(t,e,t.path,r)));return rr.mergeArray(r,i)}get element(){return this._def.type}min(e,t){return new rV({...this._def,minLength:{value:e,message:_.toString(t)}})}max(e,t){return new rV({...this._def,maxLength:{value:e,message:_.toString(t)}})}length(e,t){return new rV({...this._def,exactLength:{value:e,message:_.toString(t)}})}nonempty(e){return this.min(1,e)}}rV.create=(e,t)=>new rV({type:e,minLength:null,maxLength:null,exactLength:null,typeName:k.ZodArray,...rp(t)});class rB extends rf{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=x.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==t0.object){let t=this._getOrReturnCtx(e);return rt(t,{code:t2.invalid_type,expected:t0.object,received:t.parsedType}),rn}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof rq&&"strip"===this._def.unknownKeys))for(let e in r.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=n[e],i=r.data[e];o.push({key:{status:"valid",value:e},value:t._parse(new rc(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof rq){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of a)o.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)a.length>0&&(rt(r,{code:t2.unrecognized_keys,keys:a}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of a){let n=r.data[t];o.push({key:{status:"valid",value:t},value:e._parse(new rc(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>rr.mergeObjectSync(t,e)):rr.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(e){return _.errToObj,new rB({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let n=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:_.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new rB({...this._def,unknownKeys:"strip"})}passthrough(){return new rB({...this._def,unknownKeys:"passthrough"})}extend(e){return new rB({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new rB({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:k.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new rB({...this._def,catchall:e})}pick(e){let t={};for(let r of x.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new rB({...this._def,shape:()=>t})}omit(e){let t={};for(let r of x.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new rB({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof rB){let r={};for(let n in t.shape){let i=t.shape[n];r[n]=r7.create(e(i))}return new rB({...t._def,shape:()=>r})}if(t instanceof rV)return new rV({...t._def,type:e(t.element)});if(t instanceof r7)return r7.create(e(t.unwrap()));if(t instanceof r8)return r8.create(e(t.unwrap()));if(t instanceof rY)return rY.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let r of x.objectKeys(this.shape)){let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new rB({...this._def,shape:()=>t})}required(e){let t={};for(let r of x.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof r7;)e=e._def.innerType;t[r]=e}return new rB({...this._def,shape:()=>t})}keyof(){return r4(x.objectKeys(this.shape))}}rB.create=(e,t)=>new rB({shape:()=>e,unknownKeys:"strip",catchall:rq.create(),typeName:k.ZodObject,...rp(t)}),rB.strictCreate=(e,t)=>new rB({shape:()=>e,unknownKeys:"strict",catchall:rq.create(),typeName:k.ZodObject,...rp(t)}),rB.lazycreate=(e,t)=>new rB({shape:e,unknownKeys:"strip",catchall:rq.create(),typeName:k.ZodObject,...rp(t)});class rH extends rf{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new t3(e.ctx.common.issues));return rt(t,{code:t2.invalid_union,unionErrors:r}),rn});{let e,n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new t3(e));return rt(t,{code:t2.invalid_union,unionErrors:i}),rn}}get options(){return this._def.options}}rH.create=(e,t)=>
27new rH({options:e,typeName:k.ZodUnion,...rp(t)});let rW=e=>{if(e instanceof r1)return rW(e.schema);if(e instanceof r9)return rW(e.innerType());if(e instanceof r2)return[e.value];if(e instanceof r3)return e.options;if(e instanceof r6)return x.objectValues(e.enum);else if(e instanceof ne)return rW(e._def.innerType);else if(e instanceof rM)return[void 0];else if(e instanceof rU)return[null];else if(e instanceof r7)return[void 0,...rW(e.unwrap())];else if(e instanceof r8)return[null,...rW(e.unwrap())];else if(e instanceof ni)return rW(e.unwrap());else if(e instanceof no)return rW(e.unwrap());else if(e instanceof nt)return rW(e._def.innerType);else return[]};class rG extends rf{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==t0.object)return rt(t,{code:t2.invalid_type,expected:t0.object,received:t.parsedType}),rn;let r=this.discriminator,n=t.data[r],i=this.optionsMap.get(n);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(rt(t,{code:t2.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),rn)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=rW(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new rG({typeName:k.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...rp(r)})}}class rK extends rf{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(ro(e)||ro(n))return rn;let i=function e(t,r){let n=t1(t),i=t1(r);if(t===r)return{valid:!0,data:t};if(n===t0.object&&i===t0.object){let n=x.objectKeys(r),i=x.objectKeys(t).filter(e=>-1!==n.indexOf(e)),a={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1};a[n]=i.data}return{valid:!0,data:a}}if(n===t0.array&&i===t0.array){if(t.length!==r.length)return{valid:!1};let n=[];for(let i=0;i<t.length;i++){let a=e(t[i],r[i]);if(!a.valid)return{valid:!1};n.push(a.data)}return{valid:!0,data:n}}if(n===t0.date&&i===t0.date&&+t==+r)return{valid:!0,data:t};return{valid:!1}}(e.value,n.value);return i.valid?((rs(e)||rs(n))&&t.dirty(),{status:t.value,value:i.data}):(rt(r,{code:t2.invalid_intersection_types}),rn)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}rK.create=(e,t,r)=>new rK({left:e,right:t,typeName:k.ZodIntersection,...rp(r)});class rY extends rf{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==t0.array)return rt(r,{code:t2.invalid_type,expected:t0.array,received:r.parsedType}),rn;if(r.data.length<this._def.items.length)return rt(r,{code:t2.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),rn;!this._def.rest&&r.data.length>this._def.items.length&&(rt(r,{code:t2.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new rc(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>rr.mergeArray(t,e)):rr.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new rY({...this._def,rest:e})}}rY.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new rY({items:e,typeName:k.ZodTuple,rest:null,...rp(t)})};class rX extends rf{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==t0.object)return rt(r,{code:t2.invalid_type,expected:t0.object,received:r.parsedType}),rn;let n=[],i=this._def.keyType,a=this._def.valueType;for(let e in r.data)n.push({key:i._parse(new rc(r,e,r.path,e)),value:a._parse(new rc(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?rr.mergeObjectAsync(t,n):rr.mergeObjectSync(t,n)}
27get element(){return this._def.valueType}static create(e,t,r){return new rX(t instanceof rf?{keyType:e,valueType:t,typeName:k.ZodRecord,...rp(r)}:{keyType:rO.create(),valueType:e,typeName:k.ZodRecord,...rp(t)})}}class rJ extends rf{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==t0.map)return rt(r,{code:t2.invalid_type,expected:t0.map,received:r.parsedType}),rn;let n=this._def.keyType,i=this._def.valueType,a=[...r.data.entries()].map(([e,t],a)=>({key:n._parse(new rc(r,e,r.path,[a,"key"])),value:i._parse(new rc(r,t,r.path,[a,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of a){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return rn;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of a){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return rn;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}rJ.create=(e,t,r)=>new rJ({valueType:t,keyType:e,typeName:k.ZodMap,...rp(r)});class rQ extends rf{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==t0.set)return rt(r,{code:t2.invalid_type,expected:t0.set,received:r.parsedType}),rn;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(rt(r,{code:t2.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(rt(r,{code:t2.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let r=new Set;for(let n of e){if("aborted"===n.status)return rn;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let o=[...r.data.values()].map((e,t)=>i._parse(new rc(r,e,r.path,t)));return r.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(e,t){return new rQ({...this._def,minSize:{value:e,message:_.toString(t)}})}max(e,t){return new rQ({...this._def,maxSize:{value:e,message:_.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}rQ.create=(e,t)=>new rQ({valueType:e,minSize:null,maxSize:null,typeName:k.ZodSet,...rp(t)});class r0 extends rf{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==t0.function)return rt(t,{code:t2.invalid_type,expected:t0.function,received:t.parsedType}),rn;function r(e,r){return t8({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,t7(),t6].filter(e=>!!e),issueData:{code:t2.invalid_arguments,argumentsError:r}})}function n(e,r){return t8({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,t7(),t6].filter(e=>!!e),issueData:{code:t2.invalid_return_type,returnTypeError:r}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof r5){let e=this;return ra(async function(...t){let o=new t3([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(r(t,e)),o}),l=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(l,i).catch(e=>{throw o.addIssue(n(l,e)),o})})}{let e=this;return ra(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new t3([r(t,o.error)]);let s=Reflect.apply(a,this,o.data),l=e._def.returns.safeParse(s,i);if(!l.success)throw new t3([n(s,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new r0({...this._def,args:rY.create(e).rest(rF.create())})}returns(e){return new r0({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new r0({args:e||rY.create([]).rest(rF.create()),returns:t||rF.create(),typeName:k.ZodFunction,...rp(r)})}}class r1 extends rf{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}r1.create=(e,t)=>
27new r1({getter:e,typeName:k.ZodLazy,...rp(t)});class r2 extends rf{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return rt(t,{received:t.data,code:t2.invalid_literal,expected:this._def.value}),rn}return{status:"valid",value:e.data}}get value(){return this._def.value}}function r4(e,t){return new r3({values:e,typeName:k.ZodEnum,...rp(t)})}r2.create=(e,t)=>new r2({value:e,typeName:k.ZodLiteral,...rp(t)});class r3 extends rf{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return rt(t,{expected:x.joinValues(r),received:t.parsedType,code:t2.invalid_type}),rn}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return rt(t,{received:t.data,code:t2.invalid_enum_value,options:r}),rn}return ra(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return r3.create(e,{...this._def,...t})}exclude(e,t=this._def){return r3.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}r3.create=r4;class r6 extends rf{_parse(e){let t=x.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==t0.string&&r.parsedType!==t0.number){let e=x.objectValues(t);return rt(r,{expected:x.joinValues(e),received:r.parsedType,code:t2.invalid_type}),rn}if(this._cache||(this._cache=new Set(x.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=x.objectValues(t);return rt(r,{received:r.data,code:t2.invalid_enum_value,options:e}),rn}return ra(e.data)}get enum(){return this._def.values}}r6.create=(e,t)=>new r6({values:e,typeName:k.ZodNativeEnum,...rp(t)});class r5 extends rf{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==t0.promise&&!1===t.common.async?(rt(t,{code:t2.invalid_type,expected:t0.promise,received:t.parsedType}),rn):ra((t.parsedType===t0.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}r5.create=(e,t)=>new r5({type:e,typeName:k.ZodPromise,...rp(t)});class r9 extends rf{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===k.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{rt(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return rn;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?rn:"dirty"===n.status||"dirty"===t.value?ri(n.value):n});{if("aborted"===t.value)return rn;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?rn:"dirty"===n.status||"dirty"===t.value?ri(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?rn:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?rn:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>rl(e)?Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})):rn);else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!rl(e))return rn;let a=n.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}x.assertNever(n)}}r9.create=(e,t,r)=>new r9({schema:e,typeName:k.ZodEffects,effect:t,...rp(r)}),r9.createWithPreprocess=(e,t,r)=>new r9({schema:t,effect:{type:"preprocess",transform:e},typeName:k.ZodEffects,...rp(r)});class r7 extends rf{_parse(e){return this._getType(e)===t0.undefined?ra(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}r7.create=(e,t)=>
27new r7({innerType:e,typeName:k.ZodOptional,...rp(t)});class r8 extends rf{_parse(e){return this._getType(e)===t0.null?ra(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}r8.create=(e,t)=>new r8({innerType:e,typeName:k.ZodNullable,...rp(t)});class ne extends rf{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===t0.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ne.create=(e,t)=>new ne({innerType:e,typeName:k.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...rp(t)});class nt extends rf{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return ru(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new t3(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new t3(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}nt.create=(e,t)=>new nt({innerType:e,typeName:k.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...rp(t)});class nr extends rf{_parse(e){if(this._getType(e)!==t0.nan){let t=this._getOrReturnCtx(e);return rt(t,{code:t2.invalid_type,expected:t0.nan,received:t.parsedType}),rn}return{status:"valid",value:e.data}}}nr.create=e=>new nr({typeName:k.ZodNaN,...rp(e)});let nn=Symbol("zod_brand");class ni extends rf{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class na extends rf{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?rn:"dirty"===e.status?(t.dirty(),ri(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?rn:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new na({in:e,out:t,typeName:k.ZodPipeline})}}class no extends rf{_parse(e){let t=this._def.innerType._parse(e),r=e=>(rl(e)&&(e.value=Object.freeze(e.value)),e);return ru(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}function ns(e,t){let r="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof r?{message:r}:r}function nl(e,t={},r){return e?rz.create().superRefine((n,i)=>{let a=e(n);if(a instanceof Promise)return a.then(e=>{if(!e){let e=ns(t,n),a=e.fatal??r??!0;i.addIssue({code:"custom",...e,fatal:a})}});if(!a){let e=ns(t,n),a=e.fatal??r??!0;i.addIssue({code:"custom",...e,fatal:a})}}):rz.create()}no.create=(e,t)=>new no({innerType:e,typeName:k.ZodReadonly,...rp(t)});let nu={object:rB.lazycreate};(i=k||(k={})).ZodString="ZodString",i.ZodNumber="ZodNumber",i.ZodNaN="ZodNaN",i.ZodBigInt="ZodBigInt",i.ZodBoolean="ZodBoolean",i.ZodDate="ZodDate",i.ZodSymbol="ZodSymbol",i.ZodUndefined="ZodUndefined",i.ZodNull="ZodNull",i.ZodAny="ZodAny",i.ZodUnknown="ZodUnknown",i.ZodNever="ZodNever",i.ZodVoid="ZodVoid",i.ZodArray="ZodArray",i.ZodObject="ZodObject",i.ZodUnion="ZodUnion",i.ZodDiscriminatedUnion="ZodDiscriminatedUnion",i.ZodIntersection="ZodIntersection",i.ZodTuple="ZodTuple",i.ZodRecord="ZodRecord",i.ZodMap="ZodMap",i.ZodSet="ZodSet",i.ZodFunction="ZodFunction",i.ZodLazy="ZodLazy",i.ZodLiteral="ZodLiteral",i.ZodEnum="ZodEnum",i.ZodEffects="ZodEffects",i.ZodNativeEnum="ZodNativeEnum",i.ZodOptional="ZodOptional",i.ZodNullable="ZodNullable",i.ZodDefault="ZodDefault",i.ZodCatch="ZodCatch",i.ZodPromise="ZodPromise",i.ZodBranded="ZodBranded",i.ZodPipeline="ZodPipeline",i.ZodReadonly="ZodReadonly";let nc=(e,t={message:`Input not instance of ${e.name}`})=>nl(t=>t instanceof e,t),nd=rO.create,np=rR.create,nf=nr.create,nm=rP.create,nh=rD.create,ng=r$.create,nv=rL.create,ny=rM.create,nb=rU.create,nx=rz.create,nw=rF.create,n_=rq.create,nk=rZ.create,nS=rV.create,nE=rB.create,nT=rB.strictCreate,nj=rH.create,nI=rG.create,nC=rK.create,nA=rY.create,nN=rX.create,nO=rJ.create,nR=rQ.create,nP=r0.create,nD=r1.create,n$=r2.create,nL=r3.create,nM=r6.create,nU=r5.create,nz=r9.create,nF=r7.create,nq=r8.create,nZ=r9.createWithPreprocess,nV=na.create,nB=()=>nd().optional(),nH=()=>np().optional(),nW=()=>nh().optional(),nG={string:e=>rO.create({...e,coerce:!0}),number:e=>rR.create({...e,coerce:!0}),boolean:e=>rD.create({...e,coerce:!0}),bigint:e=>rP.create({...e,coerce:!0}),date:e=>r$.create({...e,coerce:!0})};e.s(["BRAND",0,nn,"NEVER",0,rn,"Schema",0,rf,"ZodAny",0,rz,"ZodArray",0,rV,"ZodBigInt",0,rP,"ZodBoolean",0,rD,"ZodBranded",0,ni,"ZodCatch",0,nt,"ZodDate",0,r$,"ZodDefault",0,ne,"ZodDiscriminatedUnion",0,rG,"ZodEffects",0,r9,"ZodEnum",0,r3,"ZodFirstPartyTypeKind",0,k,"ZodFunction",0,r0,"ZodIntersection",0,rK,"ZodLazy",0,r1,"ZodLiteral",0,r2,"ZodMap",0,rJ,"ZodNaN",0,nr,"ZodNativeEnum",0,r6,"ZodNever",0,rq,"ZodNull",0,rU,"ZodNullable",0,r8,"ZodNumber",0,rR,"ZodObject",0,rB,"ZodOptional",0,r7,"ZodPipeline",0,na,"ZodPromise",0,r5,"ZodReadonly",0,no,"ZodRecord",0,rX,"ZodSchema",0,rf,"ZodSet",0,rQ,"ZodString",0,rO,"ZodSymbol",0,rL,"ZodTransformer",0,r9,"ZodTuple",0,rY,"ZodType",0,rf,"ZodUndefined",0,rM,"ZodUnion",0,rH,"ZodUnknown",0,rF,"ZodVoid",0,rZ,"any",0,nx,"array",0,nS,"bigint",0,nm,"boolean",0,nh,"coerce",0,nG,"custom",0,nl,"date",0,ng,"datetimeRegex",0,rN,"discriminatedUnion",0,nI,"effect",0,nz,"enum",0,nL,"function",0,nP,"instanceof",0,nc,"intersection",0,nC,"late",0,nu,"lazy",0,nD,"literal",0,n$,"map",0,nO,"
27nan",0,nf,"nativeEnum",0,nM,"never",0,n_,"null",0,nb,"nullable",0,nq,"number",0,np,"object",0,nE,"oboolean",0,nW,"onumber",0,nH,"optional",0,nF,"ostring",0,nB,"pipeline",0,nV,"preprocess",0,nZ,"promise",0,nU,"record",0,nN,"set",0,nR,"strictObject",0,nT,"string",0,nd,"symbol",0,nv,"transformer",0,nz,"tuple",0,nA,"undefined",0,ny,"union",0,nj,"unknown",0,nw,"void",0,nk],703016);class nK extends Error{constructor(e,t){super(e),this.name="ParseError",this.type=t.type,this.field=t.field,this.value=t.value,this.line=t.line}}function nY(e){}class nX extends TransformStream{constructor({onError:e,onRetry:t,onComment:r}={}){let n;super({start(i){n=function(e){if("function"==typeof e)throw TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:t=nY,onError:r=nY,onRetry:n=nY,onComment:i}=e,a="",o=!0,s,l="",u="";function c(e){if(""===e)return void(l.length>0&&t({id:s,event:u||void 0,data:l.endsWith(` 28`)?l.slice(0,-1):l}),s=void 0,l="",u="");if(e.startsWith(":")){i&&i(e.slice(e.startsWith(": ")?2:1));return}let r=e.indexOf(":");if(-1!==r){let t=e.slice(0,r),n=" "===e[r+1]?2:1;d(t,e.slice(r+n),e);return}d(e,"",e)}function d(e,t,i){switch(e){case"event":u=t;break;case"data":l=`${l}${t} 29`;break;case"id":s=t.includes("\0")?void 0:t;break;case"retry":/^\d+$/.test(t)?n(parseInt(t,10)):r(new nK(`Invalid \`retry\` value: "${t}"`,{type:"invalid-retry",value:t,line:i}));break;default:r(new nK(`Unknown field "${e.length>20?`${e.slice(0,20)}\u2026`:e}"`,{type:"unknown-field",field:e,value:t,line:i}))}}return{feed:function(e){let t=o?e.replace(/^\xEF\xBB\xBF/,""):e,[r,n]=function(e){let t=[],r="",n=0;for(;n<e.length;){let i=e.indexOf("\r",n),a=e.indexOf(` 30`,n),o=-1;if(-1!==i&&-1!==a?o=Math.min(i,a):-1!==i?o=i===e.length-1?-1:i:-1!==a&&(o=a),-1===o){r=e.slice(n);break}{let r=e.slice(n,o);t.push(r),"\r"===e[(n=o+1)-1]&&e[n]===` 31`&&n++}}return[t,r]}(`${a}${t}`);for(let e of r)c(e);a=n,o=!1},reset:function(e={}){a&&e.consume&&c(a),o=!0,s=void 0,l="",u="",a=""}}}({onEvent:e=>{i.enqueue(e)},onError(t){"terminate"===e?i.error(t):"function"==typeof e&&e(t)},onRetry:t,onComment:r})},transform(e){n.feed(e)}})}}function nJ(...e){return e.reduce((e,t)=>({...e,...null!=t?t:{}}),{})}function nQ(e){return Object.fromEntries([...e.headers])}var{btoa:n0,atob:n1}=globalThis,n2=Symbol.for("vercel.ai.error.AI_DownloadError"),n4=({prefix:e,size:t=16,alphabet:r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:n="-"}={})=>{let i=()=>{let e=r.length,n=Array(t);for(let i=0;i<t;i++)n[i]=r[Math.random()*e|0];return n.join("")};if(null==e)return i;if(r.includes(n))throw new ez({argument:"separator",message:`The separator "${n}" must not be part of the alphabet "${r}".`});return()=>`${e}${n}${i()}`},n3=n4();function n6(e){return(e instanceof Error||e instanceof DOMException)&&("AbortError"===e.name||"ResponseAborted"===e.name||"TimeoutError"===e.name)}var n5=["fetch failed","failed to fetch"];function n9({error:e,url:t,requestBodyValues:r}){if(n6(e))return e;if(e instanceof TypeError&&n5.includes(e.message.toLowerCase())){let n=e.cause;if(null!=n)return new eN({message:`Cannot connect to API: ${n.message}`,cause:n,url:t,requestBodyValues:r,isRetryable:!0})}return e}function n7(e=globalThis){var t,r,n;return e.window?"runtime/browser":(null==(t=e.navigator)?void 0:t.userAgent)?`runtime/${e.navigator.userAgent.toLowerCase()}`:(null==(n=null==(r=e.process)?void 0:r.versions)?void 0:n.node)?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function n8(e){if(null==e)return{};let t={};if(e instanceof Headers)e.forEach((e,r)=>{t[r.toLowerCase()]=e});else for(let[r,n]of(Array.isArray(e)||(e=Object.entries(e)),e))null!=n&&(t[r.toLowerCase()]=n);return t}function ie(e,...t){let r=new Headers(n8(e)),n=r.get("user-agent")||"";return r.set("user-agent",[n,...t].filter(Boolean).join(" ")),Object.fromEntries(r.entries())}var it="4.0.5",ir=()=>globalThis.fetch,ii=async({url:e,headers:t={},successfulResponseHandler:r,failedResponseHandler:n,abortSignal:i,fetch:a=ir()})=>{try{let o=await a(e,{method:"GET",headers:ie(t,`ai-sdk/provider-utils/${it}`,n7()),signal:i}),s=nQ(o);if(!o.ok){let t;try{t=await n({response:o,url:e,requestBodyValues:{}})}catch(t){if(n6(t)||eN.isInstance(t))throw t;throw new eN({message:"Failed to process error response",cause:t,statusCode:o.status,url:e,responseHeaders:s,requestBodyValues:{}})}throw t.value}try{return await r({response:o,url:e,requestBodyValues:{}})}catch(t){if(t instanceof Error&&(n6(t)||eN.isInstance(t)))throw t;throw new eN({message:"Failed to process successful response",cause:t,statusCode:o.status,url:e,responseHeaders:s,requestBodyValues:{}})}}catch(t){throw n9({error:t,url:e,requestBodyValues:{}})}};function ia({settingValue:e,environmentVariableName:t}){return"string"==typeof e?e:null!=e||void 0===Q.default?void 0:null!=(e=Q.default.env[t])&&"string"==typeof e?e:void 0}var io=/"__proto__"\s*:/,is=/"constructor"\s*:/;function il(e){let t=JSON.parse(e);return null===t||"object"!=typeof t||!1===io.test(e)&&!1===is.test(e)?t:function(e){let t=[e];for(;t.length;){let e=t;for(let r of(t=[],e)){if(Object.prototype.hasOwnProperty.call(r,"__proto__")||Object.prototype.hasOwnProperty.call(r,"constructor")&&Object.prototype.hasOwnProperty.call(r.constructor,"prototype"))throw SyntaxError("Object contains forbidden prototype property");for(let e in r){let n=r[e];n&&"object"==typeof n&&t.push(n)}}}return e}(t)}function iu(e){let{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch(t){return il(e)}try{return il(e)}finally{Error.stackTraceLimit=t}}function ic(e){if("object"===e.type||Array.isArray(e.type)&&e.type.includes("object")){e.additionalProperties=!1;let{properties:t}=e;if(null!=t)for(let e of Object.keys(t))t[e]=id(t[e])}null!=e.items&&(e.items=Array.isArray(e.items)?e.items.map(id):id(e.items)),null!=e.anyOf&&(e.anyOf=e.anyOf.map(id)),null!=e.allOf&&(e.allOf=e.allOf.map(id)),null!=e.oneOf&&(e.oneOf=e.oneOf.map(id));let{definitions:t}=e;if(null!=t)for(let e of Object.keys(t))t[e]=id(t[e]);return e}function id(e){return"boolean"==typeof e?e:ic(e)}var ip=Symbol("Let zodToJsonSchema decide on which parser to use"),im={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"};function ih(e,t){return i$(e.type._def,t)}var ig=void 0,iv=/^[cC][^\s-]{8,}
31$/,iy=/^[0-9a-z]+$/,ib=/^[0-9A-HJKMNP-TV-Z]{26}$/,ix=/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,iw=()=>(void 0===ig&&(ig=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),ig),i_=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ik=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,iS=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,iE=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,iT=/^[a-zA-Z0-9_-]{21}$/,ij=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;function iI(e,t){let r={type:"string"};if(e.checks)for(let n of e.checks)switch(n.kind){case"min":r.minLength="number"==typeof r.minLength?Math.max(r.minLength,n.value):n.value;break;case"max":r.maxLength="number"==typeof r.maxLength?Math.min(r.maxLength,n.value):n.value;break;case"email":switch(t.emailStrategy){case"format:email":iN(r,"email",n.message,t);break;case"format:idn-email":iN(r,"idn-email",n.message,t);break;case"pattern:zod":iO(r,ix,n.message,t)}break;case"url":iN(r,"uri",n.message,t);break;case"uuid":iN(r,"uuid",n.message,t);break;case"regex":iO(r,n.regex,n.message,t);break;case"cuid":iO(r,iv,n.message,t);break;case"cuid2":iO(r,iy,n.message,t);break;case"startsWith":iO(r,RegExp(`^${iC(n.value,t)}`),n.message,t);break;case"endsWith":iO(r,RegExp(`${iC(n.value,t)}$`),n.message,t);break;case"datetime":iN(r,"date-time",n.message,t);break;case"date":iN(r,"date",n.message,t);break;case"time":iN(r,"time",n.message,t);break;case"duration":iN(r,"duration",n.message,t);break;case"length":r.minLength="number"==typeof r.minLength?Math.max(r.minLength,n.value):n.value,r.maxLength="number"==typeof r.maxLength?Math.min(r.maxLength,n.value):n.value;break;case"includes":iO(r,RegExp(iC(n.value,t)),n.message,t);break;case"ip":"v6"!==n.version&&iN(r,"ipv4",n.message,t),"v4"!==n.version&&iN(r,"ipv6",n.message,t);break;case"base64url":iO(r,iE,n.message,t);break;case"jwt":iO(r,ij,n.message,t);break;case"cidr":"v6"!==n.version&&iO(r,i_,n.message,t),"v4"!==n.version&&iO(r,ik,n.message,t);break;case"emoji":iO(r,iw(),n.message,t);break;case"ulid":iO(r,ib,n.message,t);break;case"base64":switch(t.base64Strategy){case"format:binary":iN(r,"binary",n.message,t);break;case"contentEncoding:base64":r.contentEncoding="base64";break;case"pattern:zod":iO(r,iS,n.message,t)}break;case"nanoid":iO(r,iT,n.message,t)}return r}function iC(e,t){return"escape"===t.patternStrategy?function(e){let t="";for(let r=0;r<e.length;r++)iA.has(e[r])||(t+="\\"),t+=e[r];return t}(e):e}var iA=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function iN(e,t,r,n){var i;e.format||(null==(i=e.anyOf)?void 0:i.some(e=>e.format))?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...r&&n.errorMessages&&{errorMessage:{format:r}}})):e.format=t}function iO(e,t,r,n){var i;e.pattern||(null==(i=e.allOf)?void 0:i.some(e=>e.pattern))?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:iR(t,n),...r&&n.errorMessages&&{errorMessage:{pattern:r}}})):e.pattern=iR(t,n)}function iR(e,t){var r;if(!t.applyRegexFlags||!e.flags)return e.source;let n={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},i=n.i?e.source.toLowerCase():e.source,a="",o=!1,s=!1,l=!1;for(let e=0;e<i.length;e++){if(o){a+=i[e],o=!1;continue}
31if(n.i){if(s){if(i[e].match(/[a-z]/)){l?(a+=i[e],a+=`${i[e-2]}-${i[e]}`.toUpperCase(),l=!1):"-"===i[e+1]&&(null==(r=i[e+2])?void 0:r.match(/[a-z]/))?(a+=i[e],l=!0):a+=`${i[e]}${i[e].toUpperCase()}`;continue}}else if(i[e].match(/[a-z]/)){a+=`[${i[e]}${i[e].toUpperCase()}]`;continue}}if(n.m){if("^"===i[e]){a+=`(^|(?<=[\r 32]))`;continue}else if("$"===i[e]){a+=`($|(?=[\r 33]))`;continue}}if(n.s&&"."===i[e]){a+=s?`${i[e]}\r 34`:`[${i[e]}\r 35]`;continue}a+=i[e],"\\"===i[e]?o=!0:s&&"]"===i[e]?s=!1:s||"["!==i[e]||(s=!0)}try{new RegExp(a)}catch(r){return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return a}function iP(e,t){var r,n,i,a,o,s;let l={type:"object",additionalProperties:null!=(r=i$(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))?r:t.allowedAdditionalProperties};if((null==(n=e.keyType)?void 0:n._def.typeName)===k.ZodString&&(null==(i=e.keyType._def.checks)?void 0:i.length)){let{type:r,...n}=iI(e.keyType._def,t);return{...l,propertyNames:n}}if((null==(a=e.keyType)?void 0:a._def.typeName)===k.ZodEnum)return{...l,propertyNames:{enum:e.keyType._def.values}};if((null==(o=e.keyType)?void 0:o._def.typeName)===k.ZodBranded&&e.keyType._def.type._def.typeName===k.ZodString&&(null==(s=e.keyType._def.type._def.checks)?void 0:s.length)){let{type:r,...n}=ih(e.keyType._def,t);return{...l,propertyNames:n}}return l}var iD={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function i$(e,t,r=!1){var n;let i=t.seen.get(e);if(t.override){let a=null==(n=t.override)?void 0:n.call(t,e,t,i,r);if(a!==ip)return a}if(i&&!r){let e=iL(i,t);if(void 0!==e)return e}let a={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,a);let o=((e,t,r)=>{var n,i,a,o,s,l;switch(t){case k.ZodString:return iI(e,r);case k.ZodNumber:let u={type:"number"};if(!e.checks)return u;for(let t of e.checks)switch(t.kind){case"int":u.type="integer";break;case"min":t.inclusive?u.minimum=t.value:u.exclusiveMinimum=t.value;break;case"max":t.inclusive?u.maximum=t.value:u.exclusiveMaximum=t.value;break;case"multipleOf":u.multipleOf=t.value}return u;case k.ZodObject:return function(e,t){let r={type:"object",properties:{}},n=[],i=e.shape();for(let e in i){let a=i[e];if(void 0===a||void 0===a._def)continue;let o=function(e){try{return e.isOptional()}catch(e){return!0}}(a),s=i$(a._def,{...t,currentPath:[...t.currentPath,"properties",e],propertyPath:[...t.currentPath,"properties",e]});void 0!==s&&(r.properties[e]=s,o||n.push(e))}n.length&&(r.required=n);let a=function(e,t){if("ZodNever"!==e.catchall._def.typeName)return i$(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return"strict"===t.removeAdditionalStrategy?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}(e,t);return void 0!==a&&(r.additionalProperties=a),r}(e,r);case k.ZodBigInt:let c={type:"integer",format:"int64"};if(!e.checks)return c;for(let t of e.checks)switch(t.kind){case"min":t.inclusive?c.minimum=t.value:c.exclusiveMinimum=t.value;break;case"max":t.inclusive?c.maximum=t.value:c.exclusiveMaximum=t.value;break;case"multipleOf":c.multipleOf=t.value}return c;case k.ZodBoolean:return{type:"boolean"};case k.ZodDate:return function e(t,r,n){let i=null!=n?n:r.dateStrategy;if(Array.isArray(i))return{anyOf:i.map((n,i)=>e(t,r,n))};switch(i){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":var a=t;let o={type:"integer",format:"unix-time"};for(let e of a.checks)switch(e.kind){case"min":o.minimum=e.value;break;case"max":o.maximum=e.value}return o}}(e,r);case k.ZodUndefined:return{not:{}};case k.ZodNull:return{type:"null"};case k.ZodArray:let d;return d={type:"array"},(null==(a=e.type)?void 0:a._def)&&(null==(s=null==(o=e.type)?void 0:o._def)?void 0:s.typeName)!==k.ZodAny&&(d.items=i$(e.type._def,{...r,currentPath:[...r.currentPath,"items"]})),e.minLength&&(d.minItems=e.minLength.value),e.maxLength&&(d.maxItems=e.maxLength.value),e.exactLength&&(d.minItems=e.exactLength.value,d.maxItems=e.exactLength.value),d;case k.ZodUnion:case k.ZodDiscriminatedUnion:let p,f=e.options instanceof Map?Array.from(e.options.values()):e.options;if(f.every(e=>e._def.typeName in iD&&(!e._def.checks||!e._def.checks.length))){let e=f.reduce((e,t)=>
35{let r=iD[t._def.typeName];return r&&!e.includes(r)?[...e,r]:e},[]);return{type:e.length>1?e:e[0]}}if(f.every(e=>"ZodLiteral"===e._def.typeName&&!e.description)){let e=f.reduce((e,t)=>{let r=typeof t._def.value;switch(r){case"string":case"number":case"boolean":return[...e,r];case"bigint":return[...e,"integer"];case"object":if(null===t._def.value)return[...e,"null"];default:return e}},[]);if(e.length===f.length){let t=e.filter((e,t,r)=>r.indexOf(e)===t);return{type:t.length>1?t:t[0],enum:f.reduce((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value],[])}}}else if(f.every(e=>"ZodEnum"===e._def.typeName))return{type:"string",enum:f.reduce((e,t)=>[...e,...t._def.values.filter(t=>!e.includes(t))],[])};return n=e,i=r,(p=(n.options instanceof Map?Array.from(n.options.values()):n.options).map((e,t)=>i$(e._def,{...i,currentPath:[...i.currentPath,"anyOf",`${t}`]})).filter(e=>!!e&&(!i.strictUnions||"object"==typeof e&&Object.keys(e).length>0))).length?{anyOf:p}:void 0;case k.ZodIntersection:let m,h;return m=[i$(e.left._def,{...r,currentPath:[...r.currentPath,"allOf","0"]}),i$(e.right._def,{...r,currentPath:[...r.currentPath,"allOf","1"]})].filter(e=>!!e),h=[],m.forEach(e=>{if((!("type"in e)||"string"!==e.type)&&"allOf"in e)h.push(...e.allOf);else{let t=e;if("additionalProperties"in e&&!1===e.additionalProperties){let{additionalProperties:r,...n}=e;t=n}h.push(t)}}),h.length?{allOf:h}:void 0;case k.ZodTuple:return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((e,t)=>i$(e._def,{...r,currentPath:[...r.currentPath,"items",`${t}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[]),additionalItems:i$(e.rest._def,{...r,currentPath:[...r.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((e,t)=>i$(e._def,{...r,currentPath:[...r.currentPath,"items",`${t}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[])};case k.ZodRecord:return iP(e,r);case k.ZodLiteral:let g;return"bigint"!=(g=typeof e.value)&&"number"!==g&&"boolean"!==g&&"string"!==g?{type:Array.isArray(e.value)?"array":"object"}:{type:"bigint"===g?"integer":g,const:e.value};case k.ZodEnum:return{type:"string",enum:Array.from(e.values)};case k.ZodNativeEnum:let v,y,b;return v=e.values,{type:1===(b=Array.from(new Set((y=Object.keys(e.values).filter(e=>"number"!=typeof v[v[e]]).map(e=>v[e])).map(e=>typeof e)))).length?"string"===b[0]?"string":"number":["string","number"],enum:y};case k.ZodNullable:if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[iD[e.innerType._def.typeName],"null"]};let x=i$(e.innerType._def,{...r,currentPath:[...r.currentPath,"anyOf","0"]});return x&&{anyOf:[x,{type:"null"}]};case k.ZodOptional:if(r.currentPath.toString()===(null==(l=r.propertyPath)?void 0:l.toString()))return i$(e.innerType._def,r);let w=i$(e.innerType._def,{...r,currentPath:[...r.currentPath,"anyOf","1"]});return w?{anyOf:[{not:{}},w]}:{};case k.ZodMap:if("record"===r.mapStrategy)return iP(e,r);return{type:"array",maxItems:125,items:{type:"array",items:[i$(e.keyType._def,{...r,currentPath:[...r.currentPath,"items","items","0"]})||{},i$(e.valueType._def,{...r,currentPath:[...r.currentPath,"items","items","1"]})||{}],minItems:2,maxItems:2}};case k.ZodSet:let _;return _={type:"array",uniqueItems:!0,items:i$(e.valueType._def,{...r,currentPath:[...r.currentPath,"items"]})},e.minSize&&(_.minItems=e.minSize.value),e.maxSize&&(_.maxItems=e.maxSize.value),_;case k.ZodLazy:return()=>e.getter()._def;case k.ZodPromise:return i$(e.type._def,r);case k.ZodNaN:case k.ZodNever:return{not:{}};case k.ZodEffects:return"input"===r.effectStrategy?i$(e.schema._def,r):{};case k.ZodAny:case k.ZodUnknown:return{};case k.ZodDefault:return{...i$(e.innerType._def,r),default:e.defaultValue()};case k.ZodBranded:return ih(e,r);case k.ZodReadonly:case k.ZodCatch:return i$(e.innerType._def,r);case k.ZodPipeline:if("input"===r.pipeStrategy)return i$(e.in._def,r);if("output"===r.pipeStrategy)return i$(e.out._def,r);let S=i$(e.in._def,{...r,currentPath:[...r.currentPath,"allOf","0"]}),E=i$(e.out._def,{...r,currentPath:[...r.currentPath,"allOf",S?"1":"0"]});return{allOf:[S,E].filter(e=>void 0!==e)};case k.ZodFunction:case k.ZodVoid:case k.ZodSymbol:default:return}})(e,e.typeName,t),s="function"==typeof o?i$(o(),t):o;if(s&&iM(e,t,s),t.postProcess){let r=t.postProcess(s,e,t);return a.jsonSchema=s,r}return a.jsonSchema=s,s}var iL=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:((e,t)=>{let r=0;for(;r<e.length&&r<t.length&&e[r]===t[r];r++);return[(e.length-r).toString(),...t.slice(r)].join("/")})(t.currentPath,e.path)};case"none":case"seen":if(e.path.length<t.currentPath.length&&e.path.every((e,r)=>t.currentPath[r]===e))return console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),{};return"seen"===t.$refStrategy?{}:void 0}},iM=(e,t,r)=>(e.description&&(r.description=e.description),r),iU=Symbol.for("vercel.ai.schema");function iz(e){let t;return()=>(null==t&&(t=e()),t)}function iF(e,{validate:t}={}){return{[iU]:!0,_type:void 0,get jsonSchema(){return"function"==typeof e&&(e=e()),e},validate:t}}function iq(e){var t;return null==e?iF({properties:{},additionalProperties:!1}
35):"object"==typeof e&&null!==e&&iU in e&&!0===e[iU]&&"jsonSchema"in e&&"validate"in e?e:"~standard"in e?"zod"===e["~standard"].vendor?iZ(e):(t=e,iF(()=>ic(t["~standard"].jsonSchema.input({target:"draft-07"})),{validate:async e=>{let r=await t["~standard"].validate(e);return"value"in r?{success:!0,value:r.value}:{success:!1,error:new eY({value:e,cause:r.issues})}}})):e()}function iZ(e,t){var r,n;let i;if("_zod"in e){let n;return n=null!=(r=null==t?void 0:t.useReferences)&&r,iF(()=>ic(tQ(e,{target:"draft-7",io:"input",reused:n?"ref":"inline"})),{validate:async t=>{let r=await tH(e,t);return r.success?{success:!0,value:r.data}:{success:!1,error:r.error}}})}return i=null!=(n=null==t?void 0:t.useReferences)&&n,iF(()=>((e,t)=>{var r;let n,i,a=(i=void 0!==(n="string"==typeof t?{...im,name:t}:{...im,...t}).name?[...n.basePath,n.definitionPath,n.name]:n.basePath,{...n,currentPath:i,propertyPath:void 0,seen:new Map(Object.entries(n.definitions).map(([e,t])=>[t._def,{def:t._def,path:[...n.basePath,n.definitionPath,e],jsonSchema:void 0}]))}),o="object"==typeof t&&t.definitions?Object.entries(t.definitions).reduce((e,[t,r])=>{var n;return{...e,[t]:null!=(n=i$(r._def,{...a,currentPath:[...a.basePath,a.definitionPath,t]},!0))?n:{}}},{}):void 0,s="string"==typeof t?t:(null==t?void 0:t.nameStrategy)==="title"||null==t?void 0:t.name,l=null!=(r=i$(e._def,void 0===s?a:{...a,currentPath:[...a.basePath,a.definitionPath,s]},!1))?r:{},u="object"==typeof t&&void 0!==t.name&&"title"===t.nameStrategy?t.name:void 0;void 0!==u&&(l.title=u);let c=void 0===s?o?{...l,[a.definitionPath]:o}:l:{$ref:[..."relative"===a.$refStrategy?[]:a.basePath,a.definitionPath,s].join("/"),[a.definitionPath]:{...o,[s]:l}};return c.$schema="http://json-schema.org/draft-07/schema#",c})(e,{$refStrategy:i?"root":"none"}),{validate:async t=>{let r=await e.safeParseAsync(t);return r.success?{success:!0,value:r.data}:{success:!1,error:r.error}}})}async function iV({value:e,schema:t}){let r=await iB({value:e,schema:t});if(!r.success)throw eY.wrap({value:e,cause:r.error});return r.value}async function iB({value:e,schema:t}){let r=iq(t);try{if(null==r.validate)return{success:!0,value:e,rawValue:e};let t=await r.validate(e);if(t.success)return{success:!0,value:t.value,rawValue:e};return{success:!1,error:eY.wrap({value:e,cause:t.error}),rawValue:e}}catch(t){return{success:!1,error:eY.wrap({value:e,cause:t}),rawValue:e}}}async function iH({text:e,schema:t}){try{let r=iu(e);if(null==t)return r;return iV({value:r,schema:t})}catch(t){if(eB.isInstance(t)||eY.isInstance(t))throw t;throw new eB({text:e,cause:t})}}async function iW({text:e,schema:t}){try{let r=iu(e);if(null==t)return{success:!0,value:r,rawValue:r};return await iB({value:r,schema:t})}catch(t){return{success:!1,error:eB.isInstance(t)?t:new eB({text:e,cause:t}),rawValue:void 0}}}function iG({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new nX).pipeThrough(new TransformStream({async transform({data:e},r){"[DONE]"!==e&&r.enqueue(await iW({text:e,schema:t}))}}))}var iK=()=>globalThis.fetch,iY=async({url:e,headers:t,body:r,failedResponseHandler:n,successfulResponseHandler:i,abortSignal:a,fetch:o})=>iX({url:e,headers:{"Content-Type":"application/json",...t},body:{content:JSON.stringify(r),values:r},failedResponseHandler:n,successfulResponseHandler:i,abortSignal:a,fetch:o}),iX=async({url:e,headers:t={},body:r,successfulResponseHandler:n,failedResponseHandler:i,abortSignal:a,fetch:o=iK()})=>{try{let s=await o(e,{method:"POST",headers:ie(t,`ai-sdk/provider-utils/${it}`,n7()),body:r.content,signal:a}),l=nQ(s);if(!s.ok){let t;try{t=await i({response:s,url:e,requestBodyValues:r.values})}catch(t){if(n6(t)||eN.isInstance(t))throw t;throw new eN({message:"Failed to process error response",cause:t,statusCode:s.status,url:e,responseHeaders:l,requestBodyValues:r.values})}throw t.value}try{return await n({response:s,url:e,requestBodyValues:r.values})}catch(t){if(t instanceof Error&&(n6(t)||eN.isInstance(t)))throw t;throw new eN({message:"Failed to process successful response",cause:t,statusCode:s.status,url:e,responseHeaders:l,requestBodyValues:r.values})}}catch(t){throw n9({error:t,url:e,requestBodyValues:r.values})}};async function iJ(e){return"function"==typeof e&&(e=e()),Promise.resolve(e)}var iQ=({errorSchema:e,errorToMessage:t,isRetryable:r})=>async({response:n,url:i,requestBodyValues:a})=>{let o=await n.text(),s=nQ(n);if(""===o.trim())return{responseHeaders:s,value:new eN({message:n.statusText,url:i,requestBodyValues:a,statusCode:n.status,responseHeaders:s,responseBody:o,isRetryable:null==r?void 0:r(n)})};try{let l=await iH({text:o,schema:e});return{responseHeaders:s,value:new eN({message:t(l),url:i,requestBodyValues:a,statusCode:n.status,responseHeaders:s,responseBody:o,data:l,isRetryable:null==r?void 0:r(n,l)})}}catch(e){return{responseHeaders:s,value:new eN({message:n.statusText,url:i,requestBodyValues:a,statusCode:n.status,responseHeaders:s,responseBody:o,isRetryable:null==r?void 0:r(n)})}}},i0=e=>async({response:t,url:r,requestBodyValues:n})=>{let i=await t.text(),a=await iW({text:i,schema:e}),o=nQ(t);if(!a.success)throw new eN({message:"Invalid JSON response",cause:a.error,statusCode:t.status,responseHeaders:o,responseBody:i,url:r,requestBodyValues:n});return{responseHeaders:o,value:a.value,rawValue:a.rawValue}};function i1(){let e,t;return{localeError:(e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}},t={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},r=>
35{switch(r.code){case"invalid_type":return`Invalid input: expected ${r.expected}, received ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Invalid input: expected ${tf(r.values[0])}`;return`Invalid option: expected one of ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Too big: expected ${r.origin??"value"} to have ${t}${r.maximum.toString()} ${n.unit??"elements"}`;return`Too big: expected ${r.origin??"value"} to be ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Too small: expected ${r.origin} to have ${t}${r.minimum.toString()} ${n.unit}`;return`Too small: expected ${r.origin} to be ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Invalid string: must start with "${r.prefix}"`;if("ends_with"===r.format)return`Invalid string: must end with "${r.suffix}"`;if("includes"===r.format)return`Invalid string: must include "${r.includes}"`;if("regex"===r.format)return`Invalid string: must match pattern ${r.pattern}`;return`Invalid ${t[r.format]??r.format}`;case"not_multiple_of":return`Invalid number: must be a multiple of ${r.divisor}`;case"unrecognized_keys":return`Unrecognized key${r.keys.length>1?"s":""}: ${e6(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":default:return"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`}})}}e4(i1()),e.s([],957975),e.i(957975),e.s([],347022),e.i(347022),e.i(372463),e.i(757195),e.i(383411);let i2=/^[cC][^\s-]{8,}$/,i4=/^[0-9a-z]+$/,i3=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,i6=/^[0-9a-vA-V]{20}$/,i5=/^[A-Za-z0-9]{27}$/,i9=/^[a-zA-Z0-9_-]{21}$/,i7=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,i8=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,ae=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,at=ae(4),ar=ae(6),an=ae(7),ai=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,aa="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function ao(){return RegExp(aa,"u")}let as=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,al=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,au=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,ac=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ad=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ap=/^[A-Za-z0-9_-]*$/,af=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,am=/^\+(?:[0-9]){6,14}[0-9]$/,ah="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",ag=RegExp(`^${ah}$`);function av(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function ay(e){return RegExp(`^${av(e)}$`)}function ab(e){let t=av({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-]\\d{2}:\\d{2})");let n=`${t}(?:${r.join("|")})`;return RegExp(`^${ah}T(?:${n})$`)}let ax=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return RegExp(`^${t}$`)},aw=/^\d+n?$/,a_=/^\d+$/,ak=/^-?\d+(?:\.\d+)?/i,aS=/true|false/i,aE=/null/i,aT=/undefined/i,aj=/^[^A-Z]*$/,aI=/^[^a-z]*$/;e.s(["_emoji",0,aa,"base64",0,ad,"base64url",0,ap,"bigint",0,aw,"boolean",0,aS,"browserEmail",0,/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,"cidrv4",0,au,"cidrv6",0,ac,"cuid",0,i2,"cuid2",0,i4,"date",0,ag,"datetime",0,ab,"domain",0,/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,"duration",0,i7,"e164",0,am,"email",0,ai,"emoji",0,ao,"extendedDuration",0,/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,"guid",0,i8,"hostname",0,af,"html5Email",0,/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,"integer",0,a_,"ipv4",0,as,"ipv6",0,al,"ksuid",0,i5,"lowercase",0,aj,"nanoid",0,i9,"null",0,aE,"number",0,ak,"rfc5322Email",0,/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,"string",0,ax,"time",0,ay,"ulid",0,i3,"undefined",0,aT,"unicodeEmail",0,/^[^\s@"]{1,64}
35@[^\s@]{1,255}$/u,"uppercase",0,aI,"uuid",0,ae,"uuid4",0,at,"uuid6",0,ar,"uuid7",0,an,"xid",0,i6],719097);let aC=eQ("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),aA={number:"number",bigint:"bigint",object:"date"},aN=eQ("$ZodCheckLessThan",(e,t)=>{aC.init(e,t);let r=aA[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,n=(t.inclusive?r.maximum:r.exclusiveMaximum)??1/0;t.value<n&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:r,code:"too_big",maximum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),aO=eQ("$ZodCheckGreaterThan",(e,t)=>{aC.init(e,t);let r=aA[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,n=(t.inclusive?r.minimum:r.exclusiveMinimum)??-1/0;t.value>n&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),aR=eQ("$ZodCheckMultipleOf",(e,t)=>{aC.init(e,t),e._zod.onattach.push(e=>{var r;(r=e._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof r.value?r.value%t.value===BigInt(0):0===te(r.value,t.value))||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),aP=eQ("$ZodCheckNumberFormat",(e,t)=>{aC.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[i,a]=th[t.format];e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,n.minimum=i,n.maximum=a,r&&(n.pattern=a_)}),e._zod.check=o=>{let s=o.value;if(r){if(!Number.isInteger(s))return void o.issues.push({expected:n,format:t.format,code:"invalid_type",input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>0?o.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort}):o.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort}))}s<i&&o.issues.push({origin:"number",input:s,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inst:e})}}),aD=eQ("$ZodCheckBigIntFormat",(e,t)=>{aC.init(e,t);let[r,n]=tg[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=r,i.maximum=n}),e._zod.check=i=>{let a=i.value;a<r&&i.issues.push({origin:"bigint",input:a,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),a>n&&i.issues.push({origin:"bigint",input:a,code:"too_big",maximum:n,inst:e})}}),a$=eQ("$ZodCheckMaxSize",(e,t)=>{var r;aC.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!e7(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let r=e._zod.bag.maximum??1/0;t.maximum<r&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let n=r.value;n.size<=t.maximum||r.issues.push({origin:tw(n),code:"too_big",maximum:t.maximum,input:n,inst:e,continue:!t.abort})}}),aL=eQ("$ZodCheckMinSize",(e,t)=>{var r;aC.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!e7(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let r=e._zod.bag.minimum??-1/0;t.minimum>r&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let n=r.value;n.size>=t.minimum||r.issues.push({origin:tw(n),code:"too_small",minimum:t.minimum,input:n,inst:e,continue:!t.abort})}}),aM=eQ("$ZodCheckSizeEquals",(e,t)=>{var r;aC.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!e7(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let r=e._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=r=>{let n=r.value,i=n.size;if(i===t.size)return;let a=i>t.size;r.issues.push({origin:tw(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),aU=eQ("$ZodCheckMaxLength",(e,t)=>{var r;aC.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!e7(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.maximum??1/0;t.maximum<r&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let n=r.value;if(n.length<=t.maximum)return;let i=t_(n);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),az=eQ("$ZodCheckMinLength",(e,t)=>{var r;aC.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!e7(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.minimum??-1/0;t.minimum>r&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let n=r.value;if(n.length>=t.minimum)return;let i=t_(n);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),aF=eQ("$ZodCheckLengthEquals",(e,t)=>{var r;aC.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!e7(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=r=>{let n=r.value,i=n.length;if(i===t.length)return;let a=t_(n),o=i>t.length;r.issues.push({origin:a,...o?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),aq=eQ("$ZodCheckStringFormat",(e,t)=>{var r,n;aC.init(e,t),e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),aZ=eQ("$ZodCheckRegex",(e,t)=>{aq.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),aV=eQ("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=aj),aq.init(e,t)}),aB=eQ("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=aI),aq.init(e,t)}),aH=eQ("$ZodCheckIncludes",(e,t)=>{aC.init(e,t);let r=tc(t.includes),n=new RegExp("number"==typeof t.position?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input
35:r.value,inst:e,continue:!t.abort})}}),aW=eQ("$ZodCheckStartsWith",(e,t)=>{aC.init(e,t);let r=RegExp(`^${tc(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),aG=eQ("$ZodCheckEndsWith",(e,t)=>{aC.init(e,t);let r=RegExp(`.*${tc(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}});function aK(e,t,r){e.issues.length&&t.issues.push(...ty(r,e.issues))}let aY=eQ("$ZodCheckProperty",(e,t)=>{aC.init(e,t),e._zod.check=e=>{let r=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(r instanceof Promise)return r.then(r=>aK(r,e,t.property));aK(r,e,t.property)}}),aX=eQ("$ZodCheckMimeType",(e,t)=>{aC.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=n=>{r.has(n.value.type)||n.issues.push({code:"invalid_value",values:t.mime,input:n.value.type,inst:e})}}),aJ=eQ("$ZodCheckOverwrite",(e,t)=>{aC.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});e.s(["$ZodCheck",0,aC,"$ZodCheckBigIntFormat",0,aD,"$ZodCheckEndsWith",0,aG,"$ZodCheckGreaterThan",0,aO,"$ZodCheckIncludes",0,aH,"$ZodCheckLengthEquals",0,aF,"$ZodCheckLessThan",0,aN,"$ZodCheckLowerCase",0,aV,"$ZodCheckMaxLength",0,aU,"$ZodCheckMaxSize",0,a$,"$ZodCheckMimeType",0,aX,"$ZodCheckMinLength",0,az,"$ZodCheckMinSize",0,aL,"$ZodCheckMultipleOf",0,aR,"$ZodCheckNumberFormat",0,aP,"$ZodCheckOverwrite",0,aJ,"$ZodCheckProperty",0,aY,"$ZodCheckRegex",0,aZ,"$ZodCheckSizeEquals",0,aM,"$ZodCheckStartsWith",0,aW,"$ZodCheckStringFormat",0,aq,"$ZodCheckUpperCase",0,aB],257730);class aQ{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),r=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(r)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}e.s(["Doc",0,aQ],712268);let a0={major:4,minor:0,patch:0};e.s(["version",0,a0],19817);let a1=eQ("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=a0;let n=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&n.unshift(e),n))for(let r of t._zod.onattach)r(e);if(0===n.length)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,r)=>{let n,i=tv(e);for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(i)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&r?.async===!1)throw new e1;if(n||o instanceof Promise)n=(n??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(i||(i=tv(e,t)))});else{if(e.issues.length===t)continue;i||(i=tv(e,t))}}return n?n.then(()=>e):e};e._zod.run=(r,i)=>{let a=e._zod.parse(r,i);if(a instanceof Promise){if(!1===i.async)throw new e1;return a.then(e=>t(e,n,i))}return t(a,n,i)}}e["~standard"]={validate:t=>{try{let r=tL(e,t);return r.success?{value:r.data}:{issues:r.error?.issues}}catch(r){return tU(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}}),a2=eQ("$ZodString",(e,t)=>{a1.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??ax(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch(e){}return"string"==typeof r.value||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),a4=eQ("$ZodStringFormat",(e,t)=>{aq.init(e,t),a2.init(e,t)}),a3=eQ("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=i8),a4.init(e,t)}),a6=eQ("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=ae(e))}else t.pattern??(t.pattern=ae());a4.init(e,t)}),a5=eQ("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=ai),a4.init(e,t)}),a9=eQ("$ZodURL",(e,t)=>{a4.init(e,t),e._zod.check=r=>{try{let n=r.value,i=new URL(n),a=i.href;t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",n
35ote:"Invalid hostname",pattern:af.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),!n.endsWith("/")&&a.endsWith("/")?r.value=a.slice(0,-1):r.value=a;return}catch(n){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),a7=eQ("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=ao()),a4.init(e,t)}),a8=eQ("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=i9),a4.init(e,t)}),oe=eQ("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=i2),a4.init(e,t)}),ot=eQ("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=i4),a4.init(e,t)}),or=eQ("$ZodULID",(e,t)=>{t.pattern??(t.pattern=i3),a4.init(e,t)}),on=eQ("$ZodXID",(e,t)=>{t.pattern??(t.pattern=i6),a4.init(e,t)}),oi=eQ("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=i5),a4.init(e,t)}),oa=eQ("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=ab(t)),a4.init(e,t)}),oo=eQ("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=ag),a4.init(e,t)}),os=eQ("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=ay(t)),a4.init(e,t)}),ol=eQ("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=i7),a4.init(e,t)}),ou=eQ("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=as),a4.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.format="ipv4"})}),oc=eQ("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=al),a4.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.format="ipv6"}),e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),od=eQ("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=au),a4.init(e,t)}),op=eQ("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=ac),a4.init(e,t),e._zod.check=r=>{let[n,i]=r.value.split("/");try{if(!i)throw Error();let e=Number(i);if(`${e}`!==i||e<0||e>128)throw Error();new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function of(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let om=eQ("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=ad),a4.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding="base64"}),e._zod.check=r=>{of(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function oh(e){if(!ap.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return of(t.padEnd(4*Math.ceil(t.length/4),"="))}let og=eQ("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ap),a4.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding="base64url"}),e._zod.check=r=>{oh(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),ov=eQ("$ZodE164",(e,t)=>{t.pattern??(t.pattern=am),a4.init(e,t)});function oy(e,t=null){try{let r=e.split(".");if(3!==r.length)return!1;let[n]=r;if(!n)return!1;let i=JSON.parse(atob(n));if("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))return!1;return!0}catch{return!1}}let ob=eQ("$ZodJWT",(e,t)=>{a4.init(e,t),e._zod.check=r=>{oy(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),ox=eQ("$ZodCustomStringFormat",(e,t)=>{a4.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),ow=eQ("$ZodNumber",(e,t)=>{a1.init(e,t),e._zod.pattern=e._zod.bag.pattern??ak,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch(e){}let i=r.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return r;let a="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...a?{received:a}:{}}),r}}),o_=eQ("$ZodNumber",(e,t)=>{aP.init(e,t),ow.init(e,t)}),ok=eQ("$ZodBoolean",(e,t)=>{a1.init(e,t),e._zod.pattern=aS,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch(e){}let i=r.value;return"boolean"==typeof i||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r}}),oS=eQ("$ZodBigInt",(e,t)=>{a1.init(e,t),e._zod.pattern=aw,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch(e){}return"bigint"==typeof r.value||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),oE=eQ("$ZodBigInt",(e,t)=>{aD.init(e,t),oS.init(e,t)}),oT=eQ("$ZodSymbol",(e,t)=>{a1.init(e,t),e._zod.parse=(t,r)=>{let n=t.value;return"symbol"==typeof n||t.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),t}}),oj=eQ("$ZodUndefined",(e,t)=>{a1.init(e,t),e._zod.pattern=aT,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(t,r)=>{let n=t.value;return void 0===n||t.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),t}}),oI=eQ("$ZodNull",(e,t)=>{a1.init(e,t),e._zod.pattern=aE,e._zod.values=new Set([null]),e._zod.parse=(t,r)=>{let n=t.value;return null===n||t.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),t}}),oC=eQ("$ZodAny",(e,t)=>{a1.init(e,t),e._zod.parse=e=>e}),oA=eQ("$ZodUnknown",(e,t)=>{a1.init(e,t),e._zod.parse=e=>e}),oN=eQ("$ZodNever",(e,t)=>{a1.init(e,t),e._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}),oO=eQ("$ZodVoid",(e,t)=>{a1.init(e,t),e._zod.parse=(t,r)=>{let n=t.value;return void 0===n||t.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),t}}),oR=eQ("$ZodDate",(e,t)=>{a1.init(e,t),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=new Date(r.value)}catch(e){}let i=r.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:i,...a?{received:"Invalid Date"}:{},inst:e}),r}});function oP(e,t,r){e.issues.length&&t.issues.push(...ty(r,e.issues)),t.value[r]=e.value}let oD=eQ("$ZodArray",(e,t)=>{a1.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},n);s instanceof Promise?a.push(s.then(t=>oP(t,r,e))):oP(s,r,e)}return a.length?Promise.all(a).then(()=>r):r}});function o$(e,t,r){e.issues.length&&t.issues.push(...ty(r,e.issues)),t.value[r]=e.value}function oL(e,t,r,n){e.issues.length?void 0===n[r]?r in n?t.value[r]=void 0:t.value[r]=e.value:t.issues.push(...ty(r,e.issues)):void 0===e.value?r in n&&
35(t.value[r]=void 0):t.value[r]=e.value}let oM=eQ("$ZodObject",(e,t)=>{let r,n;a1.init(e,t);let i=e9(()=>{let e=Object.keys(t.shape);for(let r of e)if(!(t.shape[r]instanceof a1))throw Error(`Invalid element at key "${r}": expected a Zod schema`);let r=tm(t.shape);return{shape:t.shape,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(r)}});tt(e._zod,"propValues",()=>{let e=t.shape,r={};for(let t in e){let n=e[t]._zod;if(n.values)for(let e of(r[t]??(r[t]=new Set),n.values))r[t].add(e)}return r});let a=!e2.jitless,o=a&&to.value,s=t.catchall;e._zod.parse=(l,u)=>{n??(n=i.value);let c=l.value;if(!ta(c))return l.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),l;let d=[];if(a&&o&&u?.async===!1&&!0!==u.jitless)r||(r=(e=>{let t=new aQ(["shape","payload","ctx"]),r=i.value,n=e=>{let t=tn(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let a=Object.create(null),o=0;for(let e of r.keys)a[e]=`key_${o++}`;for(let e of(t.write("const newResult = {}"),r.keys))if(r.optionalKeys.has(e)){let r=a[e];t.write(`const ${r} = ${n(e)};`);let i=tn(e);t.write(` 36 if (${r}.issues.length) { 37 if (input[${i}] === undefined) { 38 if (${i} in input) { 39 newResult[${i}] = undefined; 40 } 41 } else { 42 payload.issues = payload.issues.concat( 43 ${r}.issues.map((iss) => ({ 44 ...iss, 45 path: iss.path ? [${i}, ...iss.path] : [${i}], 46 })) 47 ); 48 } 49 } else if (${r}.value === undefined) { 50 if (${i} in input) newResult[${i}] = undefined; 51 } else { 52 newResult[${i}] = ${r}.value; 53 } 54 `)}else{let r=a[e];t.write(`const ${r} = ${n(e)};`),t.write(` 55 if (${r}.issues.length) payload.issues = payload.issues.concat(${r}.issues.map(iss => ({ 56 ...iss, 57 path: iss.path ? [${tn(e)}, ...iss.path] : [${tn(e)}] 58 })));`),t.write(`newResult[${tn(e)}] = ${r}.value`)}t.write("payload.value = newResult;"),t.write("return payload;");let s=t.compile();return(t,r)=>s(e,t,r)})(t.shape)),l=r(l,u);else{l.value={};let e=n.shape;for(let t of n.keys){let r=e[t],n=r._zod.run({value:c[t],issues:[]},u),i="optional"===r._zod.optin&&"optional"===r._zod.optout;n instanceof Promise?d.push(n.then(e=>i?oL(e,l,t,c):o$(e,l,t))):i?oL(n,l,t,c):o$(n,l,t)}}if(!s)return d.length?Promise.all(d).then(()=>l):l;let p=[],f=n.keySet,m=s._zod,h=m.def.type;for(let e of Object.keys(c)){if(f.has(e))continue;if("never"===h){p.push(e);continue}let t=m.run({value:c[e],issues:[]},u);t instanceof Promise?d.push(t.then(t=>o$(t,l,e))):o$(t,l,e)}return(p.length&&l.issues.push({code:"unrecognized_keys",keys:p,input:c,inst:e}),d.length)?Promise.all(d).then(()=>l):l}});function oU(e,t,r,n){for(let r of e)if(0===r.issues.length)return t.value=r.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(e=>e.issues.map(e=>tx(e,n,e4())))}),t}let oz=eQ("$ZodUnion",(e,t)=>{a1.init(e,t),tt(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),tt(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),tt(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),tt(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>e8(e.source)).join("|")})$`)}}),e._zod.parse=(r,n)=>{let i=!1,a=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},n);if(t instanceof Promise)a.push(t),i=!0;else{if(0===t.issues.length)return t;a.push(t)}}return i?Promise.all(a).then(t=>oU(t,r,e,n)):oU(a,r,e,n)}}),oF=eQ("$ZodDiscriminatedUnion",(e,t)=>{oz.init(e,t);let r=e._zod.parse;tt(e._zod,"propValues",()=>{let e={};for(let r of t.options){let n=r._zod.propValues;if(!n||0===Object.keys(n).length)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let[t,r]of Object.entries(n))for(let n of(e[t]||(e[t]=new Set),r))e[t].add(n)}return e});let n=e9(()=>{let e=t.options,r=new Map;for(let n of e){let e=n._zod.propValues[t.discriminator];if(!e||0===e.size)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let t of e){if(r.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);r.set(t,n)}}return r});e._zod.parse=(i,a)=>{let o=i.value;if(!ta(o))return i.issues.push({code:"invalid_type",expected:"object",input:o,inst:e}),i;let s=n.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback?r(i,a):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:o,path:[t.discriminator],inst:e}),i)}}),oq=eQ("$ZodIntersection",(e,t)=>{a1.init(e,t),e._zod.parse=(e,r)=>{let n=e.value,i=t.left._zod.run({value:n,issues:[]},r),a=t.right._zod.run({value:n,issues:[]},r);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]
58).then(([t,r])=>oZ(e,t,r)):oZ(e,i,a)}});function oZ(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),tv(e))return e;let n=function e(t,r){if(t===r||t instanceof Date&&r instanceof Date&&+t==+r)return{valid:!0,data:t};if(ts(t)&&ts(r)){let n=Object.keys(r),i=Object.keys(t).filter(e=>-1!==n.indexOf(e)),a={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};a[n]=i.data}return{valid:!0,data:a}}if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<t.length;i++){let a=e(t[i],r[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}(t.value,r.value);if(!n.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}let oV=eQ("$ZodTuple",(e,t)=>{a1.init(e,t);let r=t.items,n=r.length-[...r].reverse().findIndex(e=>"optional"!==e._zod.optin);e._zod.parse=(i,a)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];let s=[];if(!t.rest){let t=o.length>r.length,a=o.length<n-1;if(t||a)return i.issues.push({input:o,inst:e,origin:"array",...t?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length}}),i}let l=-1;for(let e of r){if(++l>=o.length&&l>=n)continue;let t=e._zod.run({value:o[l],issues:[]},a);t instanceof Promise?s.push(t.then(e=>oB(e,i,l))):oB(t,i,l)}if(t.rest)for(let e of o.slice(r.length)){l++;let r=t.rest._zod.run({value:e,issues:[]},a);r instanceof Promise?s.push(r.then(e=>oB(e,i,l))):oB(r,i,l)}return s.length?Promise.all(s).then(()=>i):i}});function oB(e,t,r){e.issues.length&&t.issues.push(...ty(r,e.issues)),t.value[r]=e.value}let oH=eQ("$ZodRecord",(e,t)=>{a1.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!ts(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let a=[];if(t.keyType._zod.values){let o,s=t.keyType._zod.values;for(let e of(r.value={},s))if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){let o=t.valueType._zod.run({value:i[e],issues:[]},n);o instanceof Promise?a.push(o.then(t=>{t.issues.length&&r.issues.push(...ty(e,t.issues)),r.value[e]=t.value})):(o.issues.length&&r.issues.push(...ty(e,o.issues)),r.value[e]=o.value)}for(let e in i)s.has(e)||(o=o??[]).push(e);o&&o.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:o})}else for(let o of(r.value={},Reflect.ownKeys(i))){if("__proto__"===o)continue;let s=t.keyType._zod.run({value:o,issues:[]},n);if(s instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(s.issues.length){r.issues.push({origin:"record",code:"invalid_key",issues:s.issues.map(e=>tx(e,n,e4())),input:o,path:[o],inst:e}),r.value[s.value]=s.value;continue}let l=t.valueType._zod.run({value:i[o],issues:[]},n);l instanceof Promise?a.push(l.then(e=>{e.issues.length&&r.issues.push(...ty(o,e.issues)),r.value[s.value]=e.value})):(l.issues.length&&r.issues.push(...ty(o,l.issues)),r.value[s.value]=l.value)}return a.length?Promise.all(a).then(()=>r):r}}),oW=eQ("$ZodMap",(e,t)=>{a1.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!(i instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),r;let a=[];for(let[o,s]of(r.value=new Map,i)){let l=t.keyType._zod.run({value:o,issues:[]},n),u=t.valueType._zod.run({value:s,issues:[]},n);l instanceof Promise||u instanceof Promise?a.push(Promise.all([l,u]).then(([t,a])=>{oG(t,a,r,o,i,e,n)})):oG(l,u,r,o,i,e,n)}return a.length?Promise.all(a).then(()=>r):r}});function oG(e,t,r,n,i,a,o){e.issues.length&&(tl.has(typeof n)?r.issues.push(...ty(n,e.issues)):r.issues.push({origin:"map",code:"invalid_key",input:i,inst:a,issues:e.issues.map(e=>tx(e,o,e4()))})),t.issues.length&&(tl.has(typeof n)?r.issues.push(...ty(n,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:i,inst:a,key:n,issues:t.issues.map(e=>tx(e,o,e4()))})),r.value.set(e.value,t.value)}let oK=eQ("$ZodSet",(e,t)=>{a1.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!(i instanceof Set))return r.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),r;let a=[];for(let e of(r.value=new Set,i)){let i=t.valueType._zod.run({value:e,issues:[]},n);i instanceof Promise?a.push(i.then(e=>oY(e,r))):oY(i,r)}return a.length?Promise.all(a).then(()=>r):r}});function oY(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}let oX=eQ("$ZodEnum",(e,t)=>{a1.init(e,t);let r=e3(t.entries);e._zod.values=new Set(r),e._zod.pattern=RegExp(`^(${r.filter(e=>tl.has(typeof e)).map(e=>"string"==typeof e?tc(e):e.toString()).join("|")})$`),e._zod.parse=(t,n)=>{let i=t.value;return e._zod.values.has(i)||t.issues.push({code:"invalid_value",values:r,input:i,inst:e}),t}}),oJ=eQ("$ZodLiteral",(e,t)=>{a1.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=RegExp(`^(${t.values.map(e=>"string"==typeof e?tc(e):e?e.toString():String(e)).join("|")})$`),e._zod.parse=(r,n)=>{let i=r.value;return e._zod.values.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),oQ=eQ("$ZodFile",(e,t)=>{a1.init(e,t),e._zod.parse=(t,r)=>{let n=t.value;return n instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),t}}),o0=eQ("$ZodTransform",(e,t)=>{a1.init(e,t),e._zod.parse=(e,r)=>{let n=t.transform(e.value,e);if(r.async)return(n instanceof Promise?n:Promise.resolve(n)).then(t=>(e.value=t,e));if(n instanceof Promise)throw new e1;return e.value=n,e}}),o1=eQ("$ZodOptional",(e,t)=>{a1.init(e,t),e._zod.optin="optional",e._zod.optout="optional",tt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),tt(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${e8(e.source)})?$`):void 0}),e._zod.parse=(e,r)=>"optional"===t.innerType._zod.optin?t.innerType._zod.run(e,r):void 0===e.value?e:t.innerType._zod.run(e,r)}),o2=eQ("$ZodNullable",(e,t)=>{a1.init(e,t),tt(e._zod,"optin",()=>t.innerType._zod.optin),tt(e._zod,"optout",()=>t.innerType._zod.optout),tt(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${e8(e.source)}|null)$`):void 0}),tt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,r)=>null===e.value?e:t.innerType._zod.run(e,r)}),o4=eQ("$ZodDefault",(e,t)=>{a1.init(e,t),e._zod.optin="optional",tt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if(void 0===e.value)return e.value=t.defaultValue,e;let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(e=>o3(e,t)):o3(n,t)}});function o3(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let o6=eQ("$ZodPrefault",(e,t)=>{a1.init(e,t),e._zod.optin="optional",tt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>(void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,r))}),o5=eQ("$ZodNonOptional",(e,t)=>{a1.init(e,t),tt(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(r,n)=>{let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(t=>o9(t,e)):o9(i,e)}});function o9(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let o7=eQ("$ZodSuccess",(e,t)=>{a1.init(e,t),e._zod.parse=(e,r)=>{let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(t=>(e.value=0===t.issues.length,e)):(e.value=0===n.issues.length,e)}}),o8=eQ("$ZodCatch",(e,t)=>{a1.init(e,t),e._zod.optin="optional",tt(e._zod,"optout",()=>t.innerType._zod.optout),tt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(n=>
58(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>tx(e,r,e4()))},input:e.value}),e.issues=[]),e)):(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>tx(e,r,e4()))},input:e.value}),e.issues=[]),e)}}),se=eQ("$ZodNaN",(e,t)=>{a1.init(e,t),e._zod.parse=(t,r)=>("number"==typeof t.value&&Number.isNaN(t.value)||t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)}),st=eQ("$ZodPipe",(e,t)=>{a1.init(e,t),tt(e._zod,"values",()=>t.in._zod.values),tt(e._zod,"optin",()=>t.in._zod.optin),tt(e._zod,"optout",()=>t.out._zod.optout),e._zod.parse=(e,r)=>{let n=t.in._zod.run(e,r);return n instanceof Promise?n.then(e=>sr(e,t,r)):sr(n,t,r)}});function sr(e,t,r){return tv(e)?e:t.out._zod.run({value:e.value,issues:e.issues},r)}let sn=eQ("$ZodReadonly",(e,t)=>{a1.init(e,t),tt(e._zod,"propValues",()=>t.innerType._zod.propValues),tt(e._zod,"values",()=>t.innerType._zod.values),tt(e._zod,"optin",()=>t.innerType._zod.optin),tt(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(e,r)=>{let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(si):si(n)}});function si(e){return e.value=Object.freeze(e.value),e}let sa=eQ("$ZodTemplateLiteral",(e,t)=>{a1.init(e,t);let r=[];for(let e of t.parts)if(e instanceof a1){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let n=+!!t.startsWith("^"),i=t.endsWith("$")?t.length-1:t.length;r.push(t.slice(n,i))}else if(null===e||tu.has(typeof e))r.push(tc(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${r.join("")}$`),e._zod.parse=(t,r)=>("string"!=typeof t.value?t.issues.push({input:t.value,inst:e,expected:"template_literal",code:"invalid_type"}):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(t.value)||t.issues.push({input:t.value,inst:e,code:"invalid_format",format:"template_literal",pattern:e._zod.pattern.source})),t)}),so=eQ("$ZodPromise",(e,t)=>{a1.init(e,t),e._zod.parse=(e,r)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},r))}),ss=eQ("$ZodLazy",(e,t)=>{a1.init(e,t),tt(e._zod,"innerType",()=>t.getter()),tt(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),tt(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),tt(e._zod,"optin",()=>e._zod.innerType._zod.optin),tt(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(t,r)=>e._zod.innerType._zod.run(t,r)}),sl=eQ("$ZodCustom",(e,t)=>{aC.init(e,t),a1.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=r=>{let n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(t=>su(t,r,n,e));su(i,r,n,e)}});function su(e,t,r,n){if(!e){let e={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(e.params=n._zod.def.params),t.issues.push(tk(e))}}e.s(["$ZodAny",0,oC,"$ZodArray",0,oD,"$ZodBase64",0,om,"$ZodBase64URL",0,og,"$ZodBigInt",0,oS,"$ZodBigIntFormat",0,oE,"$ZodBoolean",0,ok,"$ZodCIDRv4",0,od,"$ZodCIDRv6",0,op,"$ZodCUID",0,oe,"$ZodCUID2",0,ot,"$ZodCatch",0,o8,"$ZodCustom",0,sl,"$ZodCustomStringFormat",0,ox,"$ZodDate",0,oR,"$ZodDefault",0,o4,"$ZodDiscriminatedUnion",0,oF,"$ZodE164",0,ov,"$ZodEmail",0,a5,"$ZodEmoji",0,a7,"$ZodEnum",0,oX,"$ZodFile",0,oQ,"$ZodGUID",0,a3,"$ZodIPv4",0,ou,"$ZodIPv6",0,oc,"$ZodISODate",0,oo,"$ZodISODateTime",0,oa,"$ZodISODuration",0,ol,"$ZodISOTime",0,os,"$ZodIntersection",0,oq,"$ZodJWT",0,ob,"$ZodKSUID",0,oi,"$ZodLazy",0,ss,"$ZodLiteral",0,oJ,"$ZodMap",0,oW,"$ZodNaN",0,se,"$ZodNanoID",0,a8,"$ZodNever",0,oN,"$ZodNonOptional",0,o5,"$ZodNull",0,oI,"$ZodNullable",0,o2,"$ZodNumber",0,ow,"$ZodNumberFormat",0,o_,"$ZodObject",0,oM,"$ZodOptional",0,o1,"$ZodPipe",0,st,"$ZodPrefault",0,o6,"$ZodPromise",0,so,"$ZodReadonly",0,sn,"$ZodRecord",0,oH,"$ZodSet",0,oK,"$ZodString",0,a2,"$ZodStringFormat",0,a4,"$ZodSuccess",0,o7,"$ZodSymbol",0,oT,"$ZodTemplateLiteral",0,sa,"$ZodTransform",0,o0,"$ZodTuple",0,oV,"$ZodType",0,a1,"$ZodULID",0,or,"$ZodURL",0,a9,"$ZodUUID",0,a6,"$ZodUndefined",0,oj,"$ZodUnion",0,oz,"$ZodUnknown",0,oA,"$ZodVoid",0,oO,"$ZodXID",0,on,"isValidBase64",0,of,"isValidBase64URL",0,oh,"isValidJWT",0,oy],421555),e.i(421555),e.s(["$ZodAny",0,oC,"$ZodArray",0,oD,"$ZodBase64",0,om,"$ZodBase64URL",0,og,"$ZodBigInt",0,oS,"$ZodBigIntFormat",0,oE,"$ZodB
58oolean",0,ok,"$ZodCIDRv4",0,od,"$ZodCIDRv6",0,op,"$ZodCUID",0,oe,"$ZodCUID2",0,ot,"$ZodCatch",0,o8,"$ZodCustom",0,sl,"$ZodCustomStringFormat",0,ox,"$ZodDate",0,oR,"$ZodDefault",0,o4,"$ZodDiscriminatedUnion",0,oF,"$ZodE164",0,ov,"$ZodEmail",0,a5,"$ZodEmoji",0,a7,"$ZodEnum",0,oX,"$ZodFile",0,oQ,"$ZodGUID",0,a3,"$ZodIPv4",0,ou,"$ZodIPv6",0,oc,"$ZodISODate",0,oo,"$ZodISODateTime",0,oa,"$ZodISODuration",0,ol,"$ZodISOTime",0,os,"$ZodIntersection",0,oq,"$ZodJWT",0,ob,"$ZodKSUID",0,oi,"$ZodLazy",0,ss,"$ZodLiteral",0,oJ,"$ZodMap",0,oW,"$ZodNaN",0,se,"$ZodNanoID",0,a8,"$ZodNever",0,oN,"$ZodNonOptional",0,o5,"$ZodNull",0,oI,"$ZodNullable",0,o2,"$ZodNumber",0,ow,"$ZodNumberFormat",0,o_,"$ZodObject",0,oM,"$ZodOptional",0,o1,"$ZodPipe",0,st,"$ZodPrefault",0,o6,"$ZodPromise",0,so,"$ZodReadonly",0,sn,"$ZodRecord",0,oH,"$ZodSet",0,oK,"$ZodString",0,a2,"$ZodStringFormat",0,a4,"$ZodSuccess",0,o7,"$ZodSymbol",0,oT,"$ZodTemplateLiteral",0,sa,"$ZodTransform",0,o0,"$ZodTuple",0,oV,"$ZodType",0,a1,"$ZodULID",0,or,"$ZodURL",0,a9,"$ZodUUID",0,a6,"$ZodUndefined",0,oj,"$ZodUnion",0,oz,"$ZodUnknown",0,oA,"$ZodVoid",0,oO,"$ZodXID",0,on,"clone",0,td,"isValidBase64",0,of,"isValidBase64URL",0,oh,"isValidJWT",0,oy],371120),e.i(371120),e.i(257730),e.i(19817);var sc=e.i(876940),sd=e.i(719097);function sp(e,t,r,n){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?n:1===a?t:a>=2&&a<=4?r:n}function sf(e,t,r,n){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?n:1===a?t:a>=2&&a<=4?r:n}e.s([],787855),e.i(787855),e.s(["ar",0,function(){let e,t;return{localeError:(e={string:{unit:"ØØ±Ù",verb:"Ø£Ù ÙØÙÙ"},file:{unit:"Ø¨Ø§ÙØª",verb:"Ø£Ù ÙØÙÙ"},array:{unit:"Ø¹ÙØµØ±",verb:"Ø£Ù ÙØÙÙ"},set:{unit:"Ø¹ÙØµØ±",verb:"Ø£Ù ÙØÙÙ"}},t={regex:"Ù
دخÙ",email:"Ø¨Ø±ÙØ¯ Ø¥ÙÙØªØ±ÙÙÙ",url:"رابط",emoji:"Ø¥ÙÙ
ÙØ¬Ù",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ØªØ§Ø±ÙØ® ÙÙÙØª بÙ
Ø¹ÙØ§Ø± ISO",date:"ØªØ§Ø±ÙØ® بÙ
Ø¹ÙØ§Ø± ISO",time:"ÙÙØª بÙ
Ø¹ÙØ§Ø± ISO",duration:"Ù
دة بÙ
Ø¹ÙØ§Ø± ISO",ipv4:"عÙÙØ§Ù IPv4",ipv6:"عÙÙØ§Ù IPv6",cidrv4:"Ù
Ø¯Ù Ø¹ÙØ§ÙÙÙ Ø¨ØµÙØºØ© IPv4",cidrv6:"Ù
Ø¯Ù Ø¹ÙØ§ÙÙÙ Ø¨ØµÙØºØ© IPv6",base64:"ÙÙØµ بترÙ
ÙØ² base64-encoded",base64url:"ÙÙØµ بترÙ
ÙØ² base64url-encoded",json_string:"ÙÙØµ عÙÙ ÙÙØ¦Ø© JSON",e164:"رÙÙ
ÙØ§ØªÙ بÙ
Ø¹ÙØ§Ø± E.164",jwt:"JWT",template_literal:"Ù
دخÙ"},r=>{switch(r.code){case"invalid_type":return`Ù
Ø¯Ø®ÙØ§Øª ØºÙØ± Ù
ÙØ¨ÙÙØ©: ÙÙØªØ±Ø¶ إدخا٠${r.expected}Ø ÙÙÙ٠تÙ
إدخا٠${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Ù
Ø¯Ø®ÙØ§Øª ØºÙØ± Ù
ÙØ¨ÙÙØ©: ÙÙØªØ±Ø¶ إدخا٠${tf(r.values[0])}`;return`Ø§Ø®ØªÙØ§Ø± ØºÙØ± Ù
ÙØ¨ÙÙ: ÙØªÙÙØ¹ Ø§ÙØªÙاء Ø£ØØ¯ ÙØ°Ù Ø§ÙØ®Ùارات: ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return` Ø£ÙØ¨Ø± Ù
٠اÙÙØ§Ø²Ù
: ÙÙØªØ±Ø¶ أ٠تÙÙÙ ${r.origin??"اÙÙÙÙ
Ø©"} ${t} ${r.maximum.toString()} ${n.unit??"Ø¹ÙØµØ±"}`;return`Ø£ÙØ¨Ø± Ù
٠اÙÙØ§Ø²Ù
: ÙÙØªØ±Ø¶ أ٠تÙÙÙ ${r.origin??"اÙÙÙÙ
Ø©"} ${t} ${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`أصغر Ù
٠اÙÙØ§Ø²Ù
: ÙÙØªØ±Ø¶ ÙÙ ${r.origin} Ø£Ù ÙÙÙÙ ${t} ${r.minimum.toString()} ${n.unit}`;return`أصغر Ù
٠اÙÙØ§Ø²Ù
: ÙÙØªØ±Ø¶ ÙÙ ${r.origin} Ø£Ù ÙÙÙÙ ${t} ${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`ÙÙØµ ØºÙØ± Ù
ÙØ¨ÙÙ: ÙØ¬Ø¨ Ø£Ù ÙØ¨Ø¯Ø£ ب٠"${r.prefix}"`;if("ends_with"===r.format)return`ÙÙØµ ØºÙØ± Ù
ÙØ¨ÙÙ: ÙØ¬Ø¨ Ø£Ù ÙÙØªÙ٠ب٠"${r.suffix}"`;if("includes"===r.format)return`ÙÙØµ ØºÙØ± Ù
ÙØ¨ÙÙ: ÙØ¬Ø¨ Ø£Ù ÙØªØ¶Ù
ÙÙÙ "${r.includes}"`;if("regex"===r.format)return`ÙÙØµ ØºÙØ± Ù
ÙØ¨ÙÙ: ÙØ¬Ø¨ Ø£Ù ÙØ·Ø§Ø¨Ù اÙÙÙ
Ø· ${r.pattern}`;return`${t[r.format]??r.format} ØºÙØ± Ù
ÙØ¨ÙÙ`;case"not_multiple_of":return`رÙÙ
ØºÙØ± Ù
ÙØ¨ÙÙ: ÙØ¬Ø¨ Ø£Ù ÙÙÙÙ Ù
Ù Ù
Ø¶Ø§Ø¹ÙØ§Øª ${r.divisor}`;case"unrecognized_keys":return`Ù
عرÙ${r.keys.length>1?"ات":""} ØºØ±ÙØ¨${r.keys.length>1?"Ø©":""}: ${e6(r.keys,"Ø ")}`;
58case"invalid_key":return`Ù
Ø¹Ø±Ù ØºÙØ± Ù
ÙØ¨ÙÙ ÙÙ ${r.origin}`;case"invalid_union":default:return"Ù
Ø¯Ø®Ù ØºÙØ± Ù
ÙØ¨ÙÙ";case"invalid_element":return`Ù
Ø¯Ø®Ù ØºÙØ± Ù
ÙØ¨ÙÙ ÙÙ ${r.origin}`}})}},"az",0,function(){let e,t;return{localeError:(e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}},t={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},r=>{switch(r.code){case"invalid_type":return`YanlıŠdÉyÉr: g\xf6zlÉnilÉn ${r.expected}, daxil olan ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`YanlıŠdÉyÉr: g\xf6zlÉnilÉn ${tf(r.values[0])}`;return`YanlıŠse\xe7im: aÅaÄıdakılardan biri olmalıdır: ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`\xc7ox b\xf6y\xfck: g\xf6zlÉnilÉn ${r.origin??"dÉyÉr"} ${t}${r.maximum.toString()} ${n.unit??"element"}`;return`\xc7ox b\xf6y\xfck: g\xf6zlÉnilÉn ${r.origin??"dÉyÉr"} ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`\xc7ox ki\xe7ik: g\xf6zlÉnilÉn ${r.origin} ${t}${r.minimum.toString()} ${n.unit}`;return`\xc7ox ki\xe7ik: g\xf6zlÉnilÉn ${r.origin} ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`YanlıŠmÉtn: "${r.prefix}" ilÉ baÅlamalıdır`;if("ends_with"===r.format)return`YanlıŠmÉtn: "${r.suffix}" ilÉ bitmÉlidir`;if("includes"===r.format)return`YanlıŠmÉtn: "${r.includes}" daxil olmalıdır`;if("regex"===r.format)return`YanlıŠmÉtn: ${r.pattern} Åablonuna uyÄun olmalıdır`;return`YanlıŠ${t[r.format]??r.format}`;case"not_multiple_of":return`YanlıŠÉdÉd: ${r.divisor} ilÉ b\xf6l\xfcnÉ bilÉn olmalıdır`;case"unrecognized_keys":return`Tanınmayan a\xe7ar${r.keys.length>1?"lar":""}: ${e6(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilindÉ yanlıŠa\xe7ar`;case"invalid_union":default:return"YanlıŠdÉyÉr";case"invalid_element":return`${r.origin} daxilindÉ yanlıŠdÉyÉr`}})}},"be",0,function(){let e,t;return{localeError:(e={string:{unit:{one:"ÑÑмвал",few:"ÑÑмвалÑ",many:"ÑÑмвалаÑ"},verb:"меÑÑ"},array:{unit:{one:"ÑлеменÑ",few:"ÑлеменÑÑ",many:"ÑлеменÑаÑ"},verb:"меÑÑ"},set:{unit:{one:"ÑлеменÑ",few:"ÑлеменÑÑ",many:"ÑлеменÑаÑ"},verb:"меÑÑ"},file:{unit:{one:"байÑ",few:"байÑÑ",many:"байÑаÑ"},verb:"меÑÑ"}},t={regex:"Ñвод",email:"email адÑаÑ",url:"URL",emoji:"ÑмодзÑ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO даÑа Ñ ÑаÑ",date:"ISO даÑа",time:"ISO ÑаÑ",duration:"ISO пÑаÑÑглаÑÑÑ",ipv4:"IPv4 адÑаÑ",ipv6:"IPv6 адÑаÑ",cidrv4:"IPv4 дÑÑпазон",cidrv6:"IPv6 дÑÑпазон",base64:"Ñадок Ñ ÑаÑмаÑе base64",base64url:"Ñадок Ñ ÑаÑмаÑе base64url",json_string:"JSON Ñадок",e164:"нÑÐ¼Ð°Ñ E.164",jwt:"JWT",template_literal:"Ñвод"},r=>{switch(r.code){case"invalid_type":return`ÐÑпÑавÑлÑÐ½Ñ Ñвод: ÑакаÑÑÑ ${r.expected}, аÑÑÑмана ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"лÑк";case"object":if(Array.isArray(e))return"маÑÑÑ";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;
58case"invalid_value":if(1===r.values.length)return`ÐÑпÑавÑлÑÐ½Ñ Ñвод: ÑакалаÑÑ ${tf(r.values[0])}`;return`ÐÑпÑавÑлÑÐ½Ñ Ð²Ð°ÑÑÑнÑ: ÑакаÑÑÑ Ð°Ð´Ð·Ñн з ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n){let e=sp(Number(r.maximum),n.unit.one,n.unit.few,n.unit.many);return`ÐанадÑа вÑлÑкÑ: ÑакалаÑÑ, ÑÑо ${r.origin??"знаÑÑнне"} павÑнна ${n.verb} ${t}${r.maximum.toString()} ${e}`}return`ÐанадÑа вÑлÑкÑ: ÑакалаÑÑ, ÑÑо ${r.origin??"знаÑÑнне"} павÑнна бÑÑÑ ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n){let e=sp(Number(r.minimum),n.unit.one,n.unit.few,n.unit.many);return`ÐанадÑа малÑ: ÑакалаÑÑ, ÑÑо ${r.origin} павÑнна ${n.verb} ${t}${r.minimum.toString()} ${e}`}return`ÐанадÑа малÑ: ÑакалаÑÑ, ÑÑо ${r.origin} павÑнна бÑÑÑ ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`ÐÑпÑавÑлÑÐ½Ñ Ñадок: павÑнен паÑÑнаÑÑа з "${r.prefix}"`;if("ends_with"===r.format)return`ÐÑпÑавÑлÑÐ½Ñ Ñадок: павÑнен заканÑваÑÑа на "${r.suffix}"`;if("includes"===r.format)return`ÐÑпÑавÑлÑÐ½Ñ Ñадок: павÑнен змÑÑÑаÑÑ "${r.includes}"`;if("regex"===r.format)return`ÐÑпÑавÑлÑÐ½Ñ Ñадок: павÑнен адпавÑдаÑÑ ÑÐ°Ð±Ð»Ð¾Ð½Ñ ${r.pattern}`;return`ÐÑпÑавÑлÑÐ½Ñ ${t[r.format]??r.format}`;case"not_multiple_of":return`ÐÑпÑавÑлÑÐ½Ñ Ð»Ñк: павÑнен бÑÑÑ ÐºÑаÑнÑм ${r.divisor}`;case"unrecognized_keys":return`ÐеÑаÑÐ¿Ð°Ð·Ð½Ð°Ð½Ñ ${r.keys.length>1?"клÑÑÑ":"клÑÑ"}: ${e6(r.keys,", ")}`;case"invalid_key":return`ÐÑпÑавÑлÑÐ½Ñ ÐºÐ»ÑÑ Ñ ${r.origin}`;case"invalid_union":default:return"ÐÑпÑавÑлÑÐ½Ñ Ñвод";case"invalid_element":return`ÐÑпÑавÑлÑнае знаÑÑнне Ñ ${r.origin}`}})}},"ca",0,function(){let e,t;return{localeError:(e={string:{unit:"carà cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}},t={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},r=>{switch(r.code){case"invalid_type":return`Tipus inv\xe0lid: s'esperava ${r.expected}, s'ha rebut ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Valor inv\xe0lid: s'esperava ${tf(r.values[0])}`;return`Opci\xf3 inv\xe0lida: s'esperava una de ${e6(r.values," o ")}`;case"too_big":{let t=r.inclusive?"com a mà xim":"menys de",n=e[r.origin]??null;if(n)return`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xe9s ${t} ${r.maximum.toString()} ${n.unit??"elements"}`;return`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${t} ${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?"com a mÃnim":"més de",n=e[r.origin]??null;if(n)return`Massa petit: s'esperava que ${r.origin} contingu\xe9s ${t} ${r.minimum.toString()} ${n.unit}`;return`Massa petit: s'esperava que ${r.origin} fos ${t} ${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Format inv\xe0lid: ha de comen\xe7ar amb "${r.prefix}"`;if("ends_with"===r.format)return`Format inv\xe0lid: ha d'acabar amb "${r.suffix}"`;if("includes"===r.format)return`Format inv\xe0lid: ha d'incloure "${r.includes}"`;if("regex"===r.format)return`Format inv\xe0lid: ha de coincidir amb el patr\xf3 ${r.pattern}`;return`Format inv\xe0lid per a ${t[r.format]??r.format}`;case"not_multiple_of":return`N\xfamero inv\xe0lid: ha de ser m\xfaltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>
581?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${e6(r.keys,", ")}`;case"invalid_key":return`Clau inv\xe0lida a ${r.origin}`;case"invalid_union":default:return"Entrada invà lida";case"invalid_element":return`Element inv\xe0lid a ${r.origin}`}})}},"cs",0,function(){let e,t;return{localeError:(e={string:{unit:"znaků",verb:"mÃt"},file:{unit:"bajtů",verb:"mÃt"},array:{unit:"prvků",verb:"mÃt"},set:{unit:"prvků",verb:"mÃt"}},t={regex:"regulárnà výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a Äas ve formátu ISO",date:"datum ve formátu ISO",time:"Äas ve formátu ISO",duration:"doba trvánà ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"ÅetÄzec zakódovaný ve formátu base64",base64url:"ÅetÄzec zakódovaný ve formátu base64url",json_string:"ÅetÄzec ve formátu JSON",e164:"ÄÃslo E.164",jwt:"JWT",template_literal:"vstup"},r=>{switch(r.code){case"invalid_type":return`Neplatn\xfd vstup: oÄek\xe1v\xe1no ${r.expected}, obdrženo ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"ÄÃslo";case"string":return"ÅetÄzec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":if(Array.isArray(e))return"pole";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Neplatn\xfd vstup: oÄek\xe1v\xe1no ${tf(r.values[0])}`;return`Neplatn\xe1 možnost: oÄek\xe1v\xe1na jedna z hodnot ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Hodnota je pÅ\xedliÅ¡ velk\xe1: ${r.origin??"hodnota"} mus\xed m\xedt ${t}${r.maximum.toString()} ${n.unit??"prvků"}`;return`Hodnota je pÅ\xedliÅ¡ velk\xe1: ${r.origin??"hodnota"} mus\xed b\xfdt ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Hodnota je pÅ\xedliÅ¡ mal\xe1: ${r.origin??"hodnota"} mus\xed m\xedt ${t}${r.minimum.toString()} ${n.unit??"prvků"}`;return`Hodnota je pÅ\xedliÅ¡ mal\xe1: ${r.origin??"hodnota"} mus\xed b\xfdt ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Neplatn\xfd ÅetÄzec: mus\xed zaÄ\xednat na "${r.prefix}"`;if("ends_with"===r.format)return`Neplatn\xfd ÅetÄzec: mus\xed konÄit na "${r.suffix}"`;if("includes"===r.format)return`Neplatn\xfd ÅetÄzec: mus\xed obsahovat "${r.includes}"`;if("regex"===r.format)return`Neplatn\xfd ÅetÄzec: mus\xed odpov\xeddat vzoru ${r.pattern}`;return`Neplatn\xfd form\xe1t ${t[r.format]??r.format}`;case"not_multiple_of":return`Neplatn\xe9 Ä\xedslo: mus\xed b\xfdt n\xe1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\xe1m\xe9 kl\xedÄe: ${e6(r.keys,", ")}`;case"invalid_key":return`Neplatn\xfd kl\xedÄ v ${r.origin}`;case"invalid_union":default:return"Neplatný vstup";case"invalid_element":return`Neplatn\xe1 hodnota v ${r.origin}`}})}},"de",0,function(){let e,t;return{localeError:(e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}},t={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},r=>{switch(r.code){case"invalid_type":return`Ung\xfcltige Eingabe: erwartet ${r.expected}, erhalten ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"Zahl";case"object":if(Array.isArray(e))return"Array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;
58case"invalid_value":if(1===r.values.length)return`Ung\xfcltige Eingabe: erwartet ${tf(r.values[0])}`;return`Ung\xfcltige Option: erwartet eine von ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Zu gro\xdf: erwartet, dass ${r.origin??"Wert"} ${t}${r.maximum.toString()} ${n.unit??"Elemente"} hat`;return`Zu gro\xdf: erwartet, dass ${r.origin??"Wert"} ${t}${r.maximum.toString()} ist`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Zu klein: erwartet, dass ${r.origin} ${t}${r.minimum.toString()} ${n.unit} hat`;return`Zu klein: erwartet, dass ${r.origin} ${t}${r.minimum.toString()} ist`}case"invalid_format":if("starts_with"===r.format)return`Ung\xfcltiger String: muss mit "${r.prefix}" beginnen`;if("ends_with"===r.format)return`Ung\xfcltiger String: muss mit "${r.suffix}" enden`;if("includes"===r.format)return`Ung\xfcltiger String: muss "${r.includes}" enthalten`;if("regex"===r.format)return`Ung\xfcltiger String: muss dem Muster ${r.pattern} entsprechen`;return`Ung\xfcltig: ${t[r.format]??r.format}`;case"not_multiple_of":return`Ung\xfcltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${e6(r.keys,", ")}`;case"invalid_key":return`Ung\xfcltiger Schl\xfcssel in ${r.origin}`;case"invalid_union":default:return"Ungültige Eingabe";case"invalid_element":return`Ung\xfcltiger Wert in ${r.origin}`}})}},"en",0,i1,"eo",0,function(){let e,t;return{localeError:(e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}},t={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoÄio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daÅro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},r=>{switch(r.code){case"invalid_type":return`Nevalida enigo: atendiÄis ${r.expected}, riceviÄis ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":if(Array.isArray(e))return"tabelo";if(null===e)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Nevalida enigo: atendiÄis ${tf(r.values[0])}`;return`Nevalida opcio: atendiÄis unu el ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Tro granda: atendiÄis ke ${r.origin??"valoro"} havu ${t}${r.maximum.toString()} ${n.unit??"elementojn"}`;return`Tro granda: atendiÄis ke ${r.origin??"valoro"} havu ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Tro malgranda: atendiÄis ke ${r.origin} havu ${t}${r.minimum.toString()} ${n.unit}`;return`Tro malgranda: atendiÄis ke ${r.origin} estu ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Nevalida karaktraro: devas komenciÄi per "${r.prefix}"`;if("ends_with"===r.format)return`Nevalida karaktraro: devas finiÄi per "${r.suffix}"`;if("includes"===r.format)return`Nevalida karaktraro: devas inkluzivi "${r.includes}"`;if("regex"===r.format)return`Nevalida karaktraro: devas kongrui kun la modelo ${r.pattern}`;return`Nevalida ${t[r.format]??r.format}`;case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case"unrecognized_keys":return`Nekonata${r.keys.length>1?"j":""} Ålosilo${r.keys.length>1?"j":""}: ${e6(r.keys,", ")}`;case"invalid_key":return`Nevalida Ålosilo en ${r.origin}`;case"invalid_union":default:return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`}})}},"es",0,function(){let e,t;return{localeError:(e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},t={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},r=>
58{switch(r.code){case"invalid_type":return`Entrada inv\xe1lida: se esperaba ${r.expected}, recibido ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"número";case"object":if(Array.isArray(e))return"arreglo";if(null===e)return"nulo";if(Object.getPrototypeOf(e)!==Object.prototype)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Entrada inv\xe1lida: se esperaba ${tf(r.values[0])}`;return`Opci\xf3n inv\xe1lida: se esperaba una de ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Demasiado grande: se esperaba que ${r.origin??"valor"} tuviera ${t}${r.maximum.toString()} ${n.unit??"elementos"}`;return`Demasiado grande: se esperaba que ${r.origin??"valor"} fuera ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Demasiado peque\xf1o: se esperaba que ${r.origin} tuviera ${t}${r.minimum.toString()} ${n.unit}`;return`Demasiado peque\xf1o: se esperaba que ${r.origin} fuera ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Cadena inv\xe1lida: debe comenzar con "${r.prefix}"`;if("ends_with"===r.format)return`Cadena inv\xe1lida: debe terminar en "${r.suffix}"`;if("includes"===r.format)return`Cadena inv\xe1lida: debe incluir "${r.includes}"`;if("regex"===r.format)return`Cadena inv\xe1lida: debe coincidir con el patr\xf3n ${r.pattern}`;return`Inv\xe1lido ${t[r.format]??r.format}`;case"not_multiple_of":return`N\xfamero inv\xe1lido: debe ser m\xfaltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${e6(r.keys,", ")}`;case"invalid_key":return`Llave inv\xe1lida en ${r.origin}`;case"invalid_union":default:return"Entrada inválida";case"invalid_element":return`Valor inv\xe1lido en ${r.origin}`}})}},"fa",0,function(){let e,t;return{localeError:(e={string:{unit:"کاراکتر",verb:"داشت٠باشد"},file:{unit:"Ø¨Ø§ÛØª",verb:"داشت٠باشد"},array:{unit:"Ø¢ÛØªÙ
",verb:"داشت٠باشد"},set:{unit:"Ø¢ÛØªÙ
",verb:"داشت٠باشد"}},t={regex:"ÙØ±ÙدÛ",email:"آدرس اÛÙ
ÛÙ",url:"URL",emoji:"اÛÙ
ÙØ¬Û",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ØªØ§Ø±ÛØ® ٠زÙ
Ø§Ù Ø§ÛØ²Ù",date:"ØªØ§Ø±ÛØ® Ø§ÛØ²Ù",time:"زÙ
Ø§Ù Ø§ÛØ²Ù",duration:"Ù
دت زÙ
Ø§Ù Ø§ÛØ²Ù",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 داÙ
ÙÙ",cidrv6:"IPv6 داÙ
ÙÙ",base64:"base64-encoded رشتÙ",base64url:"base64url-encoded رشتÙ",json_string:"JSON رشتÙ",e164:"E.164 عدد",jwt:"JWT",template_literal:"ÙØ±ÙدÛ"},r=>{switch(r.code){case"invalid_type":return`ÙØ±ÙØ¯Û ÙØ§Ù
عتبر: Ù
ÛâØ¨Ø§ÛØ³Øª ${r.expected} Ù
ÛâØ¨ÙØ¯Ø ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"عدد";case"object":if(Array.isArray(e))return"آراÛÙ";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)} Ø¯Ø±ÛØ§Ùت شد`;case"invalid_value":if(1===r.values.length)return`ÙØ±ÙØ¯Û ÙØ§Ù
عتبر: Ù
ÛâØ¨Ø§ÛØ³Øª ${tf(r.values[0])} Ù
ÛâØ¨ÙØ¯`;return`گزÛÙÙ ÙØ§Ù
عتبر: Ù
ÛâØ¨Ø§ÛØ³Øª ÛÚ©Û Ø§Ø² ${e6(r.values,"|")} Ù
ÛâØ¨ÙØ¯`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Ø®ÛÙÛ Ø¨Ø²Ø±Ú¯: ${r.origin??"Ù
ÙØ¯Ø§Ø±"} Ø¨Ø§ÛØ¯ ${t}${r.maximum.toString()} ${n.unit??"Ø¹ÙØµØ±"} باشد`;return`Ø®ÛÙÛ Ø¨Ø²Ø±Ú¯: ${r.origin??"Ù
ÙØ¯Ø§Ø±"} Ø¨Ø§ÛØ¯ ${t}${r.maximum.toString()} باشد`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Ø®ÛÙÛ Ú©ÙÚÚ©: ${r.origin} Ø¨Ø§ÛØ¯ ${t}${r.minimum.toString()} ${n.unit} باشد`;return`Ø®ÛÙÛ Ú©ÙÚÚ©: ${r.origin} Ø¨Ø§ÛØ¯ ${t}${r.minimum.toString()} باشد`}case"invalid_format":if("starts_with"===r.format)return`Ø±Ø´ØªÙ ÙØ§Ù
عتبر: Ø¨Ø§ÛØ¯ با "${r.prefix}" Ø´Ø±ÙØ¹ Ø´ÙØ¯`;if("ends_with"===r.format)return`Ø±Ø´ØªÙ ÙØ§Ù
عتبر: Ø¨Ø§ÛØ¯ با "${r.suffix}" تÙ
اÙ
Ø´ÙØ¯`;if("includes"===r.format)return`Ø±Ø´ØªÙ ÙØ§Ù
عتبر: Ø¨Ø§ÛØ¯ شاÙ
Ù "${r.includes}" باشد`;if("regex"===r.format)return`Ø±Ø´ØªÙ ÙØ§Ù
عتبر: Ø¨Ø§ÛØ¯ با اÙÚ¯ÙÛ ${r.pattern} Ù
Ø·Ø§Ø¨ÙØª داشت٠باشد`;return`${t[r.format]??r.format} ÙØ§Ù
عتبر`;case"not_multiple_of":return`عدد ÙØ§Ù
عتبر: Ø¨Ø§ÛØ¯ Ù
ضرب ${r.divisor} باشد`;case"unrecognized_keys":return`Ú©ÙÛØ¯${r.keys.length>1?"ÙØ§Û":""} ÙØ§Ø´Ùاس: ${e6(r.keys,", ")}`;
58case"invalid_key":return`Ú©ÙÛØ¯ ÙØ§Ø´Ùاس در ${r.origin}`;case"invalid_union":default:return"ÙØ±ÙØ¯Û ÙØ§Ù
عتبر";case"invalid_element":return`Ù
ÙØ¯Ø§Ø± ÙØ§Ù
عتبر در ${r.origin}`}})}},"fi",0,function(){let e,t;return{localeError:(e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}},t={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},r=>{switch(r.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${r.expected}, oli ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Virheellinen sy\xf6te: t\xe4ytyy olla ${tf(r.values[0])}`;return`Virheellinen valinta: t\xe4ytyy olla yksi seuraavista: ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Liian suuri: ${n.subject} t\xe4ytyy olla ${t}${r.maximum.toString()} ${n.unit}`.trim();return`Liian suuri: arvon t\xe4ytyy olla ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Liian pieni: ${n.subject} t\xe4ytyy olla ${t}${r.minimum.toString()} ${n.unit}`.trim();return`Liian pieni: arvon t\xe4ytyy olla ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Virheellinen sy\xf6te: t\xe4ytyy alkaa "${r.prefix}"`;if("ends_with"===r.format)return`Virheellinen sy\xf6te: t\xe4ytyy loppua "${r.suffix}"`;if("includes"===r.format)return`Virheellinen sy\xf6te: t\xe4ytyy sis\xe4lt\xe4\xe4 "${r.includes}"`;if("regex"===r.format)return`Virheellinen sy\xf6te: t\xe4ytyy vastata s\xe4\xe4nn\xf6llist\xe4 lauseketta ${r.pattern}`;return`Virheellinen ${t[r.format]??r.format}`;case"not_multiple_of":return`Virheellinen luku: t\xe4ytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${e6(r.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}})}},"fr",0,function(){let e,t;return{localeError:(e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}},t={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},r=>{switch(r.code){case"invalid_type":return`Entr\xe9e invalide : ${r.expected} attendu, ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombre";case"object":if(Array.isArray(e))return"tableau";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)} re\xe7u`;
58case"invalid_value":if(1===r.values.length)return`Entr\xe9e invalide : ${tf(r.values[0])} attendu`;return`Option invalide : une valeur parmi ${e6(r.values,"|")} attendue`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Trop grand : ${r.origin??"valeur"} doit ${n.verb} ${t}${r.maximum.toString()} ${n.unit??"élément(s)"}`;return`Trop grand : ${r.origin??"valeur"} doit \xeatre ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Trop petit : ${r.origin} doit ${n.verb} ${t}${r.minimum.toString()} ${n.unit}`;return`Trop petit : ${r.origin} doit \xeatre ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Cha\xeene invalide : doit commencer par "${r.prefix}"`;if("ends_with"===r.format)return`Cha\xeene invalide : doit se terminer par "${r.suffix}"`;if("includes"===r.format)return`Cha\xeene invalide : doit inclure "${r.includes}"`;if("regex"===r.format)return`Cha\xeene invalide : doit correspondre au mod\xe8le ${r.pattern}`;return`${t[r.format]??r.format} invalide`;case"not_multiple_of":return`Nombre invalide : doit \xeatre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xe9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${e6(r.keys,", ")}`;case"invalid_key":return`Cl\xe9 invalide dans ${r.origin}`;case"invalid_union":default:return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`}})}},"frCA",0,function(){let e,t;return{localeError:(e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}},t={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},r=>{switch(r.code){case"invalid_type":return`Entr\xe9e invalide : attendu ${r.expected}, re\xe7u ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Entr\xe9e invalide : attendu ${tf(r.values[0])}`;
58return`Option invalide : attendu l'une des valeurs suivantes ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"â¤":"<",n=e[r.origin]??null;if(n)return`Trop grand : attendu que ${r.origin??"la valeur"} ait ${t}${r.maximum.toString()} ${n.unit}`;return`Trop grand : attendu que ${r.origin??"la valeur"} soit ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?"â¥":">",n=e[r.origin]??null;if(n)return`Trop petit : attendu que ${r.origin} ait ${t}${r.minimum.toString()} ${n.unit}`;return`Trop petit : attendu que ${r.origin} soit ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Cha\xeene invalide : doit commencer par "${r.prefix}"`;if("ends_with"===r.format)return`Cha\xeene invalide : doit se terminer par "${r.suffix}"`;if("includes"===r.format)return`Cha\xeene invalide : doit inclure "${r.includes}"`;if("regex"===r.format)return`Cha\xeene invalide : doit correspondre au motif ${r.pattern}`;return`${t[r.format]??r.format} invalide`;case"not_multiple_of":return`Nombre invalide : doit \xeatre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xe9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${e6(r.keys,", ")}`;case"invalid_key":return`Cl\xe9 invalide dans ${r.origin}`;case"invalid_union":default:return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`}})}},"he",0,function(){let e,t;return{localeError:(e={string:{unit:"××ת××ת",verb:"×××××"},file:{unit:"××××××",verb:"×××××"},array:{unit:"פר××××",verb:"×××××"},set:{unit:"פר××××",verb:"×××××"}},t={regex:"×§××",email:"×ת××ת ××××××",url:"×ת××ת רשת",emoji:"×××××'×",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ת×ר×× ×××× ISO",date:"ת×ר×× ISO",time:"××× ISO",duration:"××©× ××× ISO",ipv4:"×ת××ת IPv4",ipv6:"×ת××ת IPv6",cidrv4:"×××× IPv4",cidrv6:"×××× IPv6",base64:"××ר××ת ××ס×ס 64",base64url:"××ר××ת ××ס×ס 64 ××ת×××ת רשת",json_string:"××ר××ת JSON",e164:"×ספר E.164",jwt:"JWT",template_literal:"×§××"},r=>{switch(r.code){case"invalid_type":return`×§×× ×× ×ª×§××: צר×× ${r.expected}, ×תק×× ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`×§×× ×× ×ª×§××: צר×× ${tf(r.values[0])}`;return`×§×× ×× ×ª×§××: צר×× ××ת ×××פשר×××ת ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`×××× ×××: ${r.origin??"value"} צר×× ××××ת ${t}${r.maximum.toString()} ${n.unit??"elements"}`;return`×××× ×××: ${r.origin??"value"} צר×× ××××ת ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`×§×× ×××: ${r.origin} צר×× ××××ת ${t}${r.minimum.toString()} ${n.unit}`;return`×§×× ×××: ${r.origin} צר×× ××××ת ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`××ר××ת ×× ×ª×§×× ×: ××××ת ××ת××× ×"${r.prefix}"`;if("ends_with"===r.format)return`××ר××ת ×× ×ª×§×× ×: ××××ת ××סת××× × "${r.suffix}"`;if("includes"===r.format)return`××ר××ת ×× ×ª×§×× ×: ××××ת ××××× "${r.includes}"`;if("regex"===r.format)return`××ר××ת ×× ×ª×§×× ×: ××××ת ××ת××× ×ת×× ×ת ${r.pattern}`;return`${t[r.format]??r.format} ×× ×ª×§××`;case"not_multiple_of":return`×ספר ×× ×ª×§××: ×××× ××××ת ××פ×× ×©× ${r.divisor}`;case"unrecognized_keys":return`×פת×${r.keys.length>1?"×ת":""} ×× ××××${r.keys.length>1?"××":"×"}: ${e6(r.keys,", ")}`;case"invalid_key":return`××¤×ª× ×× ×ª×§×× ×${r.origin}`;
58case"invalid_union":default:return"×§×× ×× ×ª×§××";case"invalid_element":return`×¢×¨× ×× ×ª×§×× ×${r.origin}`}})}},"hu",0,function(){let e,t;return{localeError:(e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}},t={regex:"bemenet",email:"email cÃm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO idÅbélyeg",date:"ISO dátum",time:"ISO idÅ",duration:"ISO idÅintervallum",ipv4:"IPv4 cÃm",ipv6:"IPv6 cÃm",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"},r=>{switch(r.code){case"invalid_type":return`\xc9rv\xe9nytelen bemenet: a v\xe1rt \xe9rt\xe9k ${r.expected}, a kapott \xe9rt\xe9k ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"szám";case"object":if(Array.isArray(e))return"tömb";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`\xc9rv\xe9nytelen bemenet: a v\xe1rt \xe9rt\xe9k ${tf(r.values[0])}`;return`\xc9rv\xe9nytelen opci\xf3: valamelyik \xe9rt\xe9k v\xe1rt ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`T\xfal nagy: ${r.origin??"érték"} m\xe9rete t\xfal nagy ${t}${r.maximum.toString()} ${n.unit??"elem"}`;return`T\xfal nagy: a bemeneti \xe9rt\xe9k ${r.origin??"érték"} t\xfal nagy: ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`T\xfal kicsi: a bemeneti \xe9rt\xe9k ${r.origin} m\xe9rete t\xfal kicsi ${t}${r.minimum.toString()} ${n.unit}`;return`T\xfal kicsi: a bemeneti \xe9rt\xe9k ${r.origin} t\xfal kicsi ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`\xc9rv\xe9nytelen string: "${r.prefix}" \xe9rt\xe9kkel kell kezdÅdnie`;if("ends_with"===r.format)return`\xc9rv\xe9nytelen string: "${r.suffix}" \xe9rt\xe9kkel kell v\xe9gzÅdnie`;if("includes"===r.format)return`\xc9rv\xe9nytelen string: "${r.includes}" \xe9rt\xe9ket kell tartalmaznia`;if("regex"===r.format)return`\xc9rv\xe9nytelen string: ${r.pattern} mint\xe1nak kell megfelelnie`;return`\xc9rv\xe9nytelen ${t[r.format]??r.format}`;case"not_multiple_of":return`\xc9rv\xe9nytelen sz\xe1m: ${r.divisor} t\xf6bbsz\xf6r\xf6s\xe9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${e6(r.keys,", ")}`;case"invalid_key":return`\xc9rv\xe9nytelen kulcs ${r.origin}`;case"invalid_union":default:return"Ãrvénytelen bemenet";case"invalid_element":return`\xc9rv\xe9nytelen \xe9rt\xe9k: ${r.origin}`}})}},"id",0,function(){let e,t;return{localeError:(e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}},t={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},r=>{switch(r.code){case"invalid_type":return`Input tidak valid: diharapkan ${r.expected}, diterima ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Input tidak valid: diharapkan ${tf(r.values[0])}`;return`Pilihan tidak valid: diharapkan salah satu dari ${e6(r.values,"|")}`;
58case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${t}${r.maximum.toString()} ${n.unit??"elemen"}`;return`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Terlalu kecil: diharapkan ${r.origin} memiliki ${t}${r.minimum.toString()} ${n.unit}`;return`Terlalu kecil: diharapkan ${r.origin} menjadi ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`String tidak valid: harus dimulai dengan "${r.prefix}"`;if("ends_with"===r.format)return`String tidak valid: harus berakhir dengan "${r.suffix}"`;if("includes"===r.format)return`String tidak valid: harus menyertakan "${r.includes}"`;if("regex"===r.format)return`String tidak valid: harus sesuai pola ${r.pattern}`;return`${t[r.format]??r.format} tidak valid`;case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${e6(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":default:return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`}})}},"it",0,function(){let e,t;return{localeError:(e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}},t={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},r=>{switch(r.code){case"invalid_type":return`Input non valido: atteso ${r.expected}, ricevuto ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"numero";case"object":if(Array.isArray(e))return"vettore";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Input non valido: atteso ${tf(r.values[0])}`;return`Opzione non valida: atteso uno tra ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Troppo grande: ${r.origin??"valore"} deve avere ${t}${r.maximum.toString()} ${n.unit??"elementi"}`;return`Troppo grande: ${r.origin??"valore"} deve essere ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Troppo piccolo: ${r.origin} deve avere ${t}${r.minimum.toString()} ${n.unit}`;return`Troppo piccolo: ${r.origin} deve essere ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Stringa non valida: deve iniziare con "${r.prefix}"`;if("ends_with"===r.format)return`Stringa non valida: deve terminare con "${r.suffix}"`;if("includes"===r.format)return`Stringa non valida: deve includere "${r.includes}"`;if("regex"===r.format)return`Stringa non valida: deve corrispondere al pattern ${r.pattern}`;return`Invalid ${t[r.format]??r.format}`;case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${e6(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":default:return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`}})}},"ja",0,function(){let e,t;return{localeError:(e={string:{unit:"æå",verb:"ã§ãã"},file:{unit:"ãã¤ã",verb:"ã§ãã"},array:{unit:"è¦ç´ ",verb:"ã§ãã"},set:{unit:"è¦ç´ ",verb:"ã§ãã"}},t={regex:"å
¥åå¤",email:"ã¡ã¼ã«ã¢ãã¬ã¹",url:"URL",emoji:"çµµæå",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISOæ¥æ",date:"ISOæ¥ä»",time:"ISOæå»",duration:"ISOæé",ipv4:"IPv4ã¢ãã¬ã¹",ipv6:"IPv6ã¢ãã¬ã¹",cidrv4:"IPv4ç¯å²",cidrv6:"IPv6ç¯å²",base64:"base64ã¨ã³ã³ã¼ãæåå",base64url:"base64urlã¨ã³ã³ã¼ãæåå",json_string:"JSONæåå",e164:"E.164çªå·",jwt:"JWT",template_literal:"å
¥åå¤"},r=>
58{switch(r.code){case"invalid_type":return`ç¡å¹ãªå
¥å: ${r.expected}ãæå¾
ããã¾ãããã${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"æ°å¤";case"object":if(Array.isArray(e))return"é
å";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}ãå
¥åããã¾ãã`;case"invalid_value":if(1===r.values.length)return`ç¡å¹ãªå
¥å: ${tf(r.values[0])}ãæå¾
ããã¾ãã`;return`ç¡å¹ãªé¸æ: ${e6(r.values,"ã")}ã®ããããã§ããå¿
è¦ãããã¾ã`;case"too_big":{let t=r.inclusive?"以ä¸ã§ãã":"ããå°ãã",n=e[r.origin]??null;if(n)return`大ããããå¤: ${r.origin??"å¤"}ã¯${r.maximum.toString()}${n.unit??"è¦ç´ "}${t}å¿
è¦ãããã¾ã`;return`大ããããå¤: ${r.origin??"å¤"}ã¯${r.maximum.toString()}${t}å¿
è¦ãããã¾ã`}case"too_small":{let t=r.inclusive?"以ä¸ã§ãã":"ãã大ãã",n=e[r.origin]??null;if(n)return`å°ããããå¤: ${r.origin}ã¯${r.minimum.toString()}${n.unit}${t}å¿
è¦ãããã¾ã`;return`å°ããããå¤: ${r.origin}ã¯${r.minimum.toString()}${t}å¿
è¦ãããã¾ã`}case"invalid_format":if("starts_with"===r.format)return`ç¡å¹ãªæåå: "${r.prefix}"ã§å§ã¾ãå¿
è¦ãããã¾ã`;if("ends_with"===r.format)return`ç¡å¹ãªæåå: "${r.suffix}"ã§çµããå¿
è¦ãããã¾ã`;if("includes"===r.format)return`ç¡å¹ãªæåå: "${r.includes}"ãå«ãå¿
è¦ãããã¾ã`;if("regex"===r.format)return`ç¡å¹ãªæåå: ãã¿ã¼ã³${r.pattern}ã«ä¸è´ããå¿
è¦ãããã¾ã`;return`ç¡å¹ãª${t[r.format]??r.format}`;case"not_multiple_of":return`ç¡å¹ãªæ°å¤: ${r.divisor}ã®åæ°ã§ããå¿
è¦ãããã¾ã`;case"unrecognized_keys":return`èªèããã¦ããªããã¼${r.keys.length>1?"群":""}: ${e6(r.keys,"ã")}`;case"invalid_key":return`${r.origin}å
ã®ç¡å¹ãªãã¼`;case"invalid_union":default:return"ç¡å¹ãªå
¥å";case"invalid_element":return`${r.origin}å
ã®ç¡å¹ãªå¤`}})}},"kh",0,function(){let e,t;return{localeError:(e={string:{unit:"áá½á¢áááá",verb:"áá½ááá¶á"},file:{unit:"áá",verb:"áá½ááá¶á"},array:{unit:"áá¶áá»",verb:"áá½ááá¶á"},set:{unit:"áá¶áá»",verb:"áá½ááá¶á"}},t={regex:"áá·áááááááááá
á¼á",email:"á¢á¶áááááá¶áá¢áá¸ááá",url:"URL",emoji:"ááááá¶á¢á¶áááááá",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"áá¶áááá·á
áááá áá·ááááá ISO",date:"áá¶áááá·á
áááá ISO",time:"áááá ISO",duration:"áááááá ISO",ipv4:"á¢á¶áááááá¶á IPv4",ipv6:"á¢á¶áááááá¶á IPv6",cidrv4:"áááá¢á¶áááááá¶á IPv4",cidrv6:"áááá¢á¶áááááá¶á IPv6",base64:"ááááá¢ááááá¢áá·áá¼á base64",base64url:"ááááá¢ááááá¢áá·áá¼á base64url",json_string:"ááááá¢áááá JSON",e164:"ááá E.164",jwt:"JWT",template_literal:"áá·áááááááááá
á¼á"},r=>{switch(r.code){case"invalid_type":return`áá·áááááááááá
á¼ááá·ááááá¹ááááá¼áá áááá¼ááá¶á ${r.expected} ááá»ááááááá½ááá¶á ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"áá·áááááá¶ááá (NaN)":"ááá";case"object":if(Array.isArray(e))return"á¢á¶áá (Array)";if(null===e)return"áááá¶áááááá (null)";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`áá·áááááááááá
á¼ááá·ááááá¹ááááá¼áá áááá¼ááá¶á ${tf(r.values[0])}`;return`ááááá¾ááá·ááááá¹ááááá¼áá áááá¼ááá¶áá½ááááá»áá
áááá ${e6(r.values,"|")}`;
58case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`áááááá áááá¼ááá¶á ${r.origin??"ááááá"} ${t} ${r.maximum.toString()} ${n.unit??"áá¶áá»"}`;return`áááááá áááá¼ááá¶á ${r.origin??"ááááá"} ${t} ${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`áá¼á
áááá áááá¼ááá¶á ${r.origin} ${t} ${r.minimum.toString()} ${n.unit}`;return`áá¼á
áááá áááá¼ááá¶á ${r.origin} ${t} ${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`ááááá¢áááááá·ááááá¹ááááá¼áá áááá¼áá
á¶áááááá¾áááá "${r.prefix}"`;if("ends_with"===r.format)return`ááááá¢áááááá·ááááá¹ááááá¼áá áááá¼ááááá
ááááá "${r.suffix}"`;if("includes"===r.format)return`ááááá¢áááááá·ááááá¹ááááá¼áá áááá¼ááá¶á "${r.includes}"`;if("regex"===r.format)return`ááááá¢áááááá·ááááá¹ááááá¼áá áááá¼ááááááá¼áááááá¹áááááááááááá¶áááááá ${r.pattern}`;return`áá·ááááá¹ááááá¼áá ${t[r.format]??r.format}`;case"not_multiple_of":return`ááááá·ááááá¹ááááá¼áá áááá¼ááááá¶áá á»áá»ááá ${r.divisor}`;case"unrecognized_keys":return`áááá¾ááááá·ááááá¶ááá ${e6(r.keys,", ")}`;case"invalid_key":return`áááá·ááááá¹ááááá¼ááá
áááá»á ${r.origin}`;case"invalid_union":default:return"áá·áááááááá·ááááá¹ááááá¼á";case"invalid_element":return`áá·áááááááá·ááááá¹ááááá¼ááá
áááá»á ${r.origin}`}})}},"ko",0,function(){let e,t;return{localeError:(e={string:{unit:"문ì",verb:"to have"},file:{unit:"ë°ì´í¸",verb:"to have"},array:{unit:"ê°",verb:"to have"},set:{unit:"ê°",verb:"to have"}},t={regex:"ì
ë ¥",email:"ì´ë©ì¼ 주ì",url:"URL",emoji:"ì´ëª¨ì§",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ë ì§ìê°",date:"ISO ë ì§",time:"ISO ìê°",duration:"ISO 기ê°",ipv4:"IPv4 주ì",ipv6:"IPv6 주ì",cidrv4:"IPv4 ë²ì",cidrv6:"IPv6 ë²ì",base64:"base64 ì¸ì½ë© 문ìì´",base64url:"base64url ì¸ì½ë© 문ìì´",json_string:"JSON 문ìì´",e164:"E.164 ë²í¸",jwt:"JWT",template_literal:"ì
ë ¥"},r=>{switch(r.code){case"invalid_type":return`ì못ë ì
ë ¥: ìì íì
ì ${r.expected}, ë°ì íì
ì ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}ì
ëë¤`;case"invalid_value":if(1===r.values.length)return`ì못ë ì
ë ¥: ê°ì ${tf(r.values[0])} ì´ì´ì¼ í©ëë¤`;return`ì못ë ìµì
: ${e6(r.values,"ëë ")} ì¤ íëì¬ì¼ í©ëë¤`;case"too_big":{let t=r.inclusive?"ì´í":"미ë§",n="미ë§"===t?"ì´ì´ì¼ í©ëë¤":"ì¬ì¼ í©ëë¤",i=e[r.origin]??null,a=i?.unit??"ìì";if(i)return`${r.origin??"ê°"}ì´ ë무 í½ëë¤: ${r.maximum.toString()}${a} ${t}${n}`;return`${r.origin??"ê°"}ì´ ë무 í½ëë¤: ${r.maximum.toString()} ${t}${n}`}case"too_small":{let t=r.inclusive?"ì´ì":"ì´ê³¼",n="ì´ì"===t?"ì´ì´ì¼ í©ëë¤":"ì¬ì¼ í©ëë¤",i=e[r.origin]??null,a=i?.unit??"ìì";if(i)return`${r.origin??"ê°"}ì´ ë무 ììµëë¤: ${r.minimum.toString()}${a} ${t}${n}`;return`${r.origin??"ê°"}ì´ ë무 ììµëë¤: ${r.minimum.toString()} ${t}${n}`}case"invalid_format":if("starts_with"===r.format)return`ì못ë 문ìì´: "${r.prefix}"(ì¼)ë¡ ììí´ì¼ í©ëë¤`;if("ends_with"===r.format)return`ì못ë 문ìì´: "${r.suffix}"(ì¼)ë¡ ëëì¼ í©ëë¤`;if("includes"===r.format)return`ì못ë 문ìì´: "${r.includes}"ì(를) í¬í¨í´ì¼ í©ëë¤`;if("regex"===r.format)return`ì못ë 문ìì´: ì ê·ì ${r.pattern} í¨í´ê³¼ ì¼ì¹í´ì¼ í©ëë¤`;return`ì못ë ${t[r.format]??r.format}`;case"not_multiple_of":return`ì못ë ì«ì: ${r.divisor}ì ë°°ìì¬ì¼ í©ëë¤`;case"unrecognized_keys":return`ì¸ìí ì ìë í¤: ${e6(r.keys,", ")}`;
58case"invalid_key":return`ì못ë í¤: ${r.origin}`;case"invalid_union":default:return"ì못ë ì
ë ¥";case"invalid_element":return`ì못ë ê°: ${r.origin}`}})}},"mk",0,function(){let e,t;return{localeError:(e={string:{unit:"знаÑи",verb:"да имааÑ"},file:{unit:"баÑÑи",verb:"да имааÑ"},array:{unit:"ÑÑавки",verb:"да имааÑ"},set:{unit:"ÑÑавки",verb:"да имааÑ"}},t={regex:"внеÑ",email:"адÑеÑа на е-поÑÑа",url:"URL",emoji:"емоÑи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO даÑÑм и вÑеме",date:"ISO даÑÑм",time:"ISO вÑеме",duration:"ISO вÑемеÑÑаеÑе",ipv4:"IPv4 адÑеÑа",ipv6:"IPv6 адÑеÑа",cidrv4:"IPv4 опÑег",cidrv6:"IPv6 опÑег",base64:"base64-енкодиÑана низа",base64url:"base64url-енкодиÑана низа",json_string:"JSON низа",e164:"E.164 бÑоÑ",jwt:"JWT",template_literal:"внеÑ"},r=>{switch(r.code){case"invalid_type":return`ÐÑеÑен внеÑ: Ñе оÑекÑва ${r.expected}, пÑимено ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"бÑоÑ";case"object":if(Array.isArray(e))return"низа";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Invalid input: expected ${tf(r.values[0])}`;return`ÐÑеÑана опÑиÑа: Ñе оÑекÑва една ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`ÐÑÐµÐ¼Ð½Ð¾Ð³Ñ Ð³Ð¾Ð»ÐµÐ¼: Ñе оÑекÑва ${r.origin??"вÑедноÑÑа"} да има ${t}${r.maximum.toString()} ${n.unit??"елеменÑи"}`;return`ÐÑÐµÐ¼Ð½Ð¾Ð³Ñ Ð³Ð¾Ð»ÐµÐ¼: Ñе оÑекÑва ${r.origin??"вÑедноÑÑа"} да биде ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`ÐÑÐµÐ¼Ð½Ð¾Ð³Ñ Ð¼Ð°Ð»: Ñе оÑекÑва ${r.origin} да има ${t}${r.minimum.toString()} ${n.unit}`;return`ÐÑÐµÐ¼Ð½Ð¾Ð³Ñ Ð¼Ð°Ð»: Ñе оÑекÑва ${r.origin} да биде ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`ÐеважеÑка низа: моÑа да запоÑнÑва Ñо "${r.prefix}"`;if("ends_with"===r.format)return`ÐеважеÑка низа: моÑа да завÑÑÑва Ñо "${r.suffix}"`;if("includes"===r.format)return`ÐеважеÑка низа: моÑа да вклÑÑÑва "${r.includes}"`;if("regex"===r.format)return`ÐеважеÑка низа: моÑа да одгоаÑа на паÑеÑÐ½Ð¾Ñ ${r.pattern}`;return`Invalid ${t[r.format]??r.format}`;case"not_multiple_of":return`ÐÑеÑен бÑоÑ: моÑа да биде делив Ñо ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"ÐепÑепознаени клÑÑеви":"ÐепÑепознаен клÑÑ"}: ${e6(r.keys,", ")}`;case"invalid_key":return`ÐÑеÑен клÑÑ Ð²Ð¾ ${r.origin}`;case"invalid_union":default:return"ÐÑеÑен внеÑ";case"invalid_element":return`ÐÑеÑна вÑедноÑÑ Ð²Ð¾ ${r.origin}`}})}},"ms",0,function(){let e,t;return{localeError:(e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}},t={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},r=>{switch(r.code){case"invalid_type":return`Input tidak sah: dijangka ${r.expected}, diterima ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombor";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;
58case"invalid_value":if(1===r.values.length)return`Input tidak sah: dijangka ${tf(r.values[0])}`;return`Pilihan tidak sah: dijangka salah satu daripada ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Terlalu besar: dijangka ${r.origin??"nilai"} ${n.verb} ${t}${r.maximum.toString()} ${n.unit??"elemen"}`;return`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Terlalu kecil: dijangka ${r.origin} ${n.verb} ${t}${r.minimum.toString()} ${n.unit}`;return`Terlalu kecil: dijangka ${r.origin} adalah ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`String tidak sah: mesti bermula dengan "${r.prefix}"`;if("ends_with"===r.format)return`String tidak sah: mesti berakhir dengan "${r.suffix}"`;if("includes"===r.format)return`String tidak sah: mesti mengandungi "${r.includes}"`;if("regex"===r.format)return`String tidak sah: mesti sepadan dengan corak ${r.pattern}`;return`${t[r.format]??r.format} tidak sah`;case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${e6(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":default:return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`}})}},"nl",0,function(){let e,t;return{localeError:(e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}},t={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},r=>{switch(r.code){case"invalid_type":return`Ongeldige invoer: verwacht ${r.expected}, ontving ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"getal";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Ongeldige invoer: verwacht ${tf(r.values[0])}`;return`Ongeldige optie: verwacht \xe9\xe9n van ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Te lang: verwacht dat ${r.origin??"waarde"} ${t}${r.maximum.toString()} ${n.unit??"elementen"} bevat`;return`Te lang: verwacht dat ${r.origin??"waarde"} ${t}${r.maximum.toString()} is`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Te kort: verwacht dat ${r.origin} ${t}${r.minimum.toString()} ${n.unit} bevat`;return`Te kort: verwacht dat ${r.origin} ${t}${r.minimum.toString()} is`}case"invalid_format":if("starts_with"===r.format)return`Ongeldige tekst: moet met "${r.prefix}" beginnen`;if("ends_with"===r.format)return`Ongeldige tekst: moet op "${r.suffix}" eindigen`;if("includes"===r.format)return`Ongeldige tekst: moet "${r.includes}" bevatten`;if("regex"===r.format)return`Ongeldige tekst: moet overeenkomen met patroon ${r.pattern}`;return`Ongeldig: ${t[r.format]??r.format}`;case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${e6(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":default:return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`}})}},"no",0,function(){let e,t;return{localeError:(e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}},t={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},r=>
58{switch(r.code){case"invalid_type":return`Ugyldig input: forventet ${r.expected}, fikk ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"tall";case"object":if(Array.isArray(e))return"liste";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Ugyldig verdi: forventet ${tf(r.values[0])}`;return`Ugyldig valg: forventet en av ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`For stor(t): forventet ${r.origin??"value"} til \xe5 ha ${t}${r.maximum.toString()} ${n.unit??"elementer"}`;return`For stor(t): forventet ${r.origin??"value"} til \xe5 ha ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`For lite(n): forventet ${r.origin} til \xe5 ha ${t}${r.minimum.toString()} ${n.unit}`;return`For lite(n): forventet ${r.origin} til \xe5 ha ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Ugyldig streng: m\xe5 starte med "${r.prefix}"`;if("ends_with"===r.format)return`Ugyldig streng: m\xe5 ende med "${r.suffix}"`;if("includes"===r.format)return`Ugyldig streng: m\xe5 inneholde "${r.includes}"`;if("regex"===r.format)return`Ugyldig streng: m\xe5 matche m\xf8nsteret ${r.pattern}`;return`Ugyldig ${t[r.format]??r.format}`;case"not_multiple_of":return`Ugyldig tall: m\xe5 v\xe6re et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${e6(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xf8kkel i ${r.origin}`;case"invalid_union":default:return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`}})}},"ota",0,function(){let e,t;return{localeError:(e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}},t={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 niÅânı",ipv6:"IPv6 niÅânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-Åifreli metin",base64url:"base64url-Åifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},r=>{switch(r.code){case"invalid_type":return`F\xe2sit giren: umulan ${r.expected}, alınan ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"numara";case"object":if(Array.isArray(e))return"saf";if(null===e)return"gayb";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`F\xe2sit giren: umulan ${tf(r.values[0])}`;return`F\xe2sit tercih: m\xfbteberler ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Fazla b\xfcy\xfck: ${r.origin??"value"}, ${t}${r.maximum.toString()} ${n.unit??"elements"} sahip olmalıydı.`;return`Fazla b\xfcy\xfck: ${r.origin??"value"}, ${t}${r.maximum.toString()} olmalıydı.`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Fazla k\xfc\xe7\xfck: ${r.origin}, ${t}${r.minimum.toString()} ${n.unit} sahip olmalıydı.`;return`Fazla k\xfc\xe7\xfck: ${r.origin}, ${t}${r.minimum.toString()} olmalıydı.`}case"invalid_format":if("starts_with"===r.format)return`F\xe2sit metin: "${r.prefix}" ile baÅlamalı.`;if("ends_with"===r.format)return`F\xe2sit metin: "${r.suffix}" ile bitmeli.`;if("includes"===r.format)return`F\xe2sit metin: "${r.includes}" ihtiv\xe2 etmeli.`;if("regex"===r.format)return`F\xe2sit metin: ${r.pattern} nakÅına uymalı.`;return`F\xe2sit ${t[r.format]??r.format}`;case"not_multiple_of":return`F\xe2sit sayı: ${r.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${r.keys.length>1?"s":""}: ${e6(r.keys,", ")}`;
58case"invalid_key":return`${r.origin} i\xe7in tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${r.origin} i\xe7in tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}})}},"pl",0,function(){let e,t;return{localeError:(e={string:{unit:"znaków",verb:"mieÄ"},file:{unit:"bajtów",verb:"mieÄ"},array:{unit:"elementów",verb:"mieÄ"},set:{unit:"elementów",verb:"mieÄ"}},t={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciÄ
g znaków zakodowany w formacie base64",base64url:"ciÄ
g znaków zakodowany w formacie base64url",json_string:"ciÄ
g znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejÅcie"},r=>{switch(r.code){case"invalid_type":return`NieprawidÅowe dane wejÅciowe: oczekiwano ${r.expected}, otrzymano ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"liczba";case"object":if(Array.isArray(e))return"tablica";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`NieprawidÅowe dane wejÅciowe: oczekiwano ${tf(r.values[0])}`;return`NieprawidÅowa opcja: oczekiwano jednej z wartoÅci ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Za duża wartoÅÄ: oczekiwano, że ${r.origin??"wartoÅÄ"} bÄdzie mieÄ ${t}${r.maximum.toString()} ${n.unit??"elementów"}`;return`Zbyt duż(y/a/e): oczekiwano, że ${r.origin??"wartoÅÄ"} bÄdzie wynosiÄ ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Za maÅa wartoÅÄ: oczekiwano, że ${r.origin??"wartoÅÄ"} bÄdzie mieÄ ${t}${r.minimum.toString()} ${n.unit??"elementów"}`;return`Zbyt maÅ(y/a/e): oczekiwano, że ${r.origin??"wartoÅÄ"} bÄdzie wynosiÄ ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`NieprawidÅowy ciÄ
g znak\xf3w: musi zaczynaÄ siÄ od "${r.prefix}"`;if("ends_with"===r.format)return`NieprawidÅowy ciÄ
g znak\xf3w: musi koÅczyÄ siÄ na "${r.suffix}"`;if("includes"===r.format)return`NieprawidÅowy ciÄ
g znak\xf3w: musi zawieraÄ "${r.includes}"`;if("regex"===r.format)return`NieprawidÅowy ciÄ
g znak\xf3w: musi odpowiadaÄ wzorcowi ${r.pattern}`;return`NieprawidÅow(y/a/e) ${t[r.format]??r.format}`;case"not_multiple_of":return`NieprawidÅowa liczba: musi byÄ wielokrotnoÅciÄ
${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${e6(r.keys,", ")}`;case"invalid_key":return`NieprawidÅowy klucz w ${r.origin}`;case"invalid_union":default:return"NieprawidÅowe dane wejÅciowe";case"invalid_element":return`NieprawidÅowa wartoÅÄ w ${r.origin}`}})}},"ps",0,function(){let e,t;return{localeError:(e={string:{unit:"تÙÚ©Ù",verb:"ÙÙØ±Ù"},file:{unit:"باÛټس",verb:"ÙÙØ±Ù"},array:{unit:"تÙÚ©Ù",verb:"ÙÙØ±Ù"},set:{unit:"تÙÚ©Ù",verb:"ÙÙØ±Ù"}},t={regex:"ÙØ±ÙدÙ",email:"برÛÚÙØ§ÙÛÚ©",url:"Û٠آر اÙ",emoji:"اÛÙ
ÙØ¬Ù",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ÙÛÙ¼Ù Ø§Ù ÙØ®Øª",date:"ÙÛÙ¼Ù",time:"ÙØ®Øª",duration:"Ù
ÙØ¯Ù",ipv4:"د IPv4 پتÙ",ipv6:"د IPv6 پتÙ",cidrv4:"د IPv4 ساØÙ",cidrv6:"د IPv6 ساØÙ",base64:"base64-encoded Ù
تÙ",base64url:"base64url-encoded Ù
تÙ",json_string:"JSON Ù
تÙ",e164:"د E.164 Ø´Ù
ÛØ±Ù",jwt:"JWT",template_literal:"ÙØ±ÙدÙ"},r=>{switch(r.code){case"invalid_type":return`ÙØ§Ø³Ù
ÙØ±ÙدÙ: Ø¨Ø§ÛØ¯ ${r.expected} ÙØ§Û, Ù
ګر ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"عدد";case"object":if(Array.isArray(e))return"ارÛ";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)} ØªØ±ÙØ§Ø³Ù Ø´Ù`;
58case"invalid_value":if(1===r.values.length)return`ÙØ§Ø³Ù
ÙØ±ÙدÙ: Ø¨Ø§ÛØ¯ ${tf(r.values[0])} ÙØ§Û`;return`ÙØ§Ø³Ù
Ø§ÙØªØ®Ø§Ø¨: Ø¨Ø§ÛØ¯ ÛÙ ÙÙ ${e6(r.values,"|")} Ú
Ø®Ù ÙØ§Û`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`ÚÛØ± ÙÙÛ: ${r.origin??"Ø§Ø±Ø²ÚØª"} Ø¨Ø§ÛØ¯ ${t}${r.maximum.toString()} ${n.unit??"Ø¹ÙØµØ±ÙÙÙ"} ÙÙØ±Ù`;return`ÚÛØ± ÙÙÛ: ${r.origin??"Ø§Ø±Ø²ÚØª"} Ø¨Ø§ÛØ¯ ${t}${r.maximum.toString()} ÙÙ`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`ÚÛØ± Ú©ÙÚÙÛ: ${r.origin} Ø¨Ø§ÛØ¯ ${t}${r.minimum.toString()} ${n.unit} ÙÙØ±Ù`;return`ÚÛØ± Ú©ÙÚÙÛ: ${r.origin} Ø¨Ø§ÛØ¯ ${t}${r.minimum.toString()} ÙÙ`}case"invalid_format":if("starts_with"===r.format)return`ÙØ§Ø³Ù
Ù
تÙ: Ø¨Ø§ÛØ¯ د "${r.prefix}" سر٠پÛÙ Ø´Ù`;if("ends_with"===r.format)return`ÙØ§Ø³Ù
Ù
تÙ: Ø¨Ø§ÛØ¯ د "${r.suffix}" Ø³Ø±Ù Ù¾Ø§Û ØªÙ ÙØ±Ø³ÙÚÙ`;if("includes"===r.format)return`ÙØ§Ø³Ù
Ù
تÙ: Ø¨Ø§ÛØ¯ "${r.includes}" ÙÙØ±Ù`;if("regex"===r.format)return`ÙØ§Ø³Ù
Ù
تÙ: Ø¨Ø§ÛØ¯ د ${r.pattern} سر٠Ù
Ø·Ø§Ø¨ÙØª ÙÙØ±Ù`;return`${t[r.format]??r.format} ÙØ§Ø³Ù
دÛ`;case"not_multiple_of":return`ÙØ§Ø³Ù
عدد: Ø¨Ø§ÛØ¯ د ${r.divisor} Ù
ضرب ÙÙ`;case"unrecognized_keys":return`ÙØ§Ø³Ù
${r.keys.length>1?"Ú©ÙÛÚÙÙÙ":"Ú©ÙÛÚ"}: ${e6(r.keys,", ")}`;case"invalid_key":return`ÙØ§Ø³Ù
Ú©ÙÛÚ Ù¾Ù ${r.origin} Ú©Û`;case"invalid_union":default:return"ÙØ§Ø³Ù
Ù ÙØ±ÙدÙ";case"invalid_element":return`ÙØ§Ø³Ù
Ø¹ÙØµØ± Ù¾Ù ${r.origin} Ú©Û`}})}},"pt",0,function(){let e,t;return{localeError:(e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}},t={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},r=>{switch(r.code){case"invalid_type":return`Tipo inv\xe1lido: esperado ${r.expected}, recebido ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"número";case"object":if(Array.isArray(e))return"array";if(null===e)return"nulo";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Entrada inv\xe1lida: esperado ${tf(r.values[0])}`;return`Op\xe7\xe3o inv\xe1lida: esperada uma das ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Muito grande: esperado que ${r.origin??"valor"} tivesse ${t}${r.maximum.toString()} ${n.unit??"elementos"}`;return`Muito grande: esperado que ${r.origin??"valor"} fosse ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Muito pequeno: esperado que ${r.origin} tivesse ${t}${r.minimum.toString()} ${n.unit}`;return`Muito pequeno: esperado que ${r.origin} fosse ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Texto inv\xe1lido: deve come\xe7ar com "${r.prefix}"`;if("ends_with"===r.format)return`Texto inv\xe1lido: deve terminar com "${r.suffix}"`;if("includes"===r.format)return`Texto inv\xe1lido: deve incluir "${r.includes}"`;if("regex"===r.format)return`Texto inv\xe1lido: deve corresponder ao padr\xe3o ${r.pattern}`;return`${t[r.format]??r.format} inv\xe1lido`;case"not_multiple_of":return`N\xfamero inv\xe1lido: deve ser m\xfaltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${e6(r.keys,", ")}`;case"invalid_key":return`Chave inv\xe1lida em ${r.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inv\xe1lido em ${r.origin}`;default:return"Campo inválido"}})}},"ru",0,function(){let e,t;return{localeError:(e={string:{unit:{one:"Ñимвол",few:"Ñимвола",many:"Ñимволов"},verb:"имеÑÑ"},file:{unit:{one:"байÑ",few:"байÑа",many:"байÑ"},verb:"имеÑÑ"},array:{unit:{one:"ÑлеменÑ",few:"ÑлеменÑа",many:"ÑлеменÑов"},verb:"имеÑÑ"},set:{unit:{one:"ÑлеменÑ",few:"ÑлеменÑа",many:"ÑлеменÑов"},verb:"имеÑÑ"}},t={regex:"ввод",email:"email адÑеÑ",url:"URL",emoji:"Ñмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO даÑа и вÑемÑ",date:"ISO даÑа",time:"ISO вÑемÑ",duration:"ISO длиÑелÑноÑÑÑ",ipv4:"IPv4 адÑеÑ",ipv6:"IPv6 адÑеÑ",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"ÑÑÑока в ÑоÑмаÑе base64",base64url:"ÑÑÑока в ÑоÑмаÑе base64url",json_string:"JSON ÑÑÑока",e164:"Ð½Ð¾Ð¼ÐµÑ E.164",jwt:"JWT",template_literal:"ввод"},r=>
58{switch(r.code){case"invalid_type":return`ÐевеÑнÑй ввод: ожидалоÑÑ ${r.expected}, полÑÑено ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"ÑиÑло";case"object":if(Array.isArray(e))return"маÑÑив";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`ÐевеÑнÑй ввод: ожидалоÑÑ ${tf(r.values[0])}`;return`ÐевеÑнÑй ваÑианÑ: ожидалоÑÑ Ð¾Ð´Ð½Ð¾ из ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n){let e=sf(Number(r.maximum),n.unit.one,n.unit.few,n.unit.many);return`СлиÑком болÑÑое знаÑение: ожидалоÑÑ, ÑÑо ${r.origin??"знаÑение"} бÑÐ´ÐµÑ Ð¸Ð¼ÐµÑÑ ${t}${r.maximum.toString()} ${e}`}return`СлиÑком болÑÑое знаÑение: ожидалоÑÑ, ÑÑо ${r.origin??"знаÑение"} бÑÐ´ÐµÑ ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n){let e=sf(Number(r.minimum),n.unit.one,n.unit.few,n.unit.many);return`СлиÑком маленÑкое знаÑение: ожидалоÑÑ, ÑÑо ${r.origin} бÑÐ´ÐµÑ Ð¸Ð¼ÐµÑÑ ${t}${r.minimum.toString()} ${e}`}return`СлиÑком маленÑкое знаÑение: ожидалоÑÑ, ÑÑо ${r.origin} бÑÐ´ÐµÑ ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`ÐевеÑÐ½Ð°Ñ ÑÑÑока: должна наÑинаÑÑÑÑ Ñ "${r.prefix}"`;if("ends_with"===r.format)return`ÐевеÑÐ½Ð°Ñ ÑÑÑока: должна заканÑиваÑÑÑÑ Ð½Ð° "${r.suffix}"`;if("includes"===r.format)return`ÐевеÑÐ½Ð°Ñ ÑÑÑока: должна ÑодеÑжаÑÑ "${r.includes}"`;if("regex"===r.format)return`ÐевеÑÐ½Ð°Ñ ÑÑÑока: должна ÑооÑвеÑÑÑвоваÑÑ ÑÐ°Ð±Ð»Ð¾Ð½Ñ ${r.pattern}`;return`ÐевеÑнÑй ${t[r.format]??r.format}`;case"not_multiple_of":return`ÐевеÑное ÑиÑло: должно бÑÑÑ ÐºÑаÑнÑм ${r.divisor}`;case"unrecognized_keys":return`ÐеÑаÑпознанн${r.keys.length>1?"Ñе":"Ñй"} клÑÑ${r.keys.length>1?"и":""}: ${e6(r.keys,", ")}`;case"invalid_key":return`ÐевеÑнÑй клÑÑ Ð² ${r.origin}`;case"invalid_union":default:return"ÐевеÑнÑе вÑ
однÑе даннÑе";case"invalid_element":return`ÐевеÑное знаÑение в ${r.origin}`}})}},"sl",0,function(){let e,t;return{localeError:(e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}},t={regex:"vnos",email:"e-poÅ¡tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in Äas",date:"ISO datum",time:"ISO Äas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 Å¡tevilka",jwt:"JWT",template_literal:"vnos"},r=>{switch(r.code){case"invalid_type":return`Neveljaven vnos: priÄakovano ${r.expected}, prejeto ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"Å¡tevilo";case"object":if(Array.isArray(e))return"tabela";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Neveljaven vnos: priÄakovano ${tf(r.values[0])}`;return`Neveljavna možnost: priÄakovano eno izmed ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Preveliko: priÄakovano, da bo ${r.origin??"vrednost"} imelo ${t}${r.maximum.toString()} ${n.unit??"elementov"}`;return`Preveliko: priÄakovano, da bo ${r.origin??"vrednost"} ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Premajhno: priÄakovano, da bo ${r.origin} imelo ${t}${r.minimum.toString()} ${n.unit}`;return`Premajhno: priÄakovano, da bo ${r.origin} ${t}${r.minimum.toString()}`}
58case"invalid_format":if("starts_with"===r.format)return`Neveljaven niz: mora se zaÄeti z "${r.prefix}"`;if("ends_with"===r.format)return`Neveljaven niz: mora se konÄati z "${r.suffix}"`;if("includes"===r.format)return`Neveljaven niz: mora vsebovati "${r.includes}"`;if("regex"===r.format)return`Neveljaven niz: mora ustrezati vzorcu ${r.pattern}`;return`Neveljaven ${t[r.format]??r.format}`;case"not_multiple_of":return`Neveljavno Å¡tevilo: mora biti veÄkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i kljuÄi":" kljuÄ"}: ${e6(r.keys,", ")}`;case"invalid_key":return`Neveljaven kljuÄ v ${r.origin}`;case"invalid_union":default:return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`}})}},"sv",0,function(){let e,t;return{localeError:(e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehÃ¥lla"},set:{unit:"objekt",verb:"att innehÃ¥lla"}},t={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},r=>{switch(r.code){case"invalid_type":return`Ogiltig inmatning: f\xf6rv\xe4ntat ${r.expected}, fick ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"antal";case"object":if(Array.isArray(e))return"lista";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Ogiltig inmatning: f\xf6rv\xe4ntat ${tf(r.values[0])}`;return`Ogiltigt val: f\xf6rv\xe4ntade en av ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`F\xf6r stor(t): f\xf6rv\xe4ntade ${r.origin??"värdet"} att ha ${t}${r.maximum.toString()} ${n.unit??"element"}`;return`F\xf6r stor(t): f\xf6rv\xe4ntat ${r.origin??"värdet"} att ha ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`F\xf6r lite(t): f\xf6rv\xe4ntade ${r.origin??"värdet"} att ha ${t}${r.minimum.toString()} ${n.unit}`;return`F\xf6r lite(t): f\xf6rv\xe4ntade ${r.origin??"värdet"} att ha ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Ogiltig str\xe4ng: m\xe5ste b\xf6rja med "${r.prefix}"`;if("ends_with"===r.format)return`Ogiltig str\xe4ng: m\xe5ste sluta med "${r.suffix}"`;if("includes"===r.format)return`Ogiltig str\xe4ng: m\xe5ste inneh\xe5lla "${r.includes}"`;if("regex"===r.format)return`Ogiltig str\xe4ng: m\xe5ste matcha m\xf6nstret "${r.pattern}"`;return`Ogiltig(t) ${t[r.format]??r.format}`;case"not_multiple_of":return`Ogiltigt tal: m\xe5ste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${e6(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"värdet"}`;case"invalid_union":default:return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xe4rde i ${r.origin??"värdet"}`}})}},"ta",0,function(){let e,t;return{localeError:(e={string:{unit:"à®à®´à¯à®¤à¯à®¤à¯à®à¯à®à®³à¯",verb:"à®à¯à®£à¯à®à®¿à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯"},file:{unit:"பà¯à®à¯à®à¯à®à®³à¯",verb:"à®à¯à®£à¯à®à®¿à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯"},array:{unit:"à®à®±à¯à®ªà¯à®ªà¯à®à®³à¯",verb:"à®à¯à®£à¯à®à®¿à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯"},set:{unit:"à®à®±à¯à®ªà¯à®ªà¯à®à®³à¯",verb:"à®à¯à®£à¯à®à®¿à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯"}},t={regex:"à®à®³à¯à®³à¯à®à¯",email:"மினà¯à®©à®à¯à®à®²à¯ à®®à¯à®à®µà®°à®¿",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தà¯à®¤à®¿ நà¯à®°à®®à¯",date:"ISO தà¯à®¤à®¿",time:"ISO நà¯à®°à®®à¯",duration:"ISO à®à®¾à®² à®
ளவà¯",ipv4:"IPv4 à®®à¯à®à®µà®°à®¿",ipv6:"IPv6 à®®à¯à®à®µà®°à®¿",cidrv4:"IPv4 வரமà¯à®ª
58à¯",cidrv6:"IPv6 வரமà¯à®ªà¯",base64:"base64-encoded à®à®°à®®à¯",base64url:"base64url-encoded à®à®°à®®à¯",json_string:"JSON à®à®°à®®à¯",e164:"E.164 à®à®£à¯",jwt:"JWT",template_literal:"input"},r=>{switch(r.code){case"invalid_type":return`தவறான à®à®³à¯à®³à¯à®à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${r.expected}, பà¯à®±à®ªà¯à®ªà®à¯à®à®¤à¯ ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"à®à®£à¯ à®
லà¯à®²à®¾à®¤à®¤à¯":"à®à®£à¯";case"object":if(Array.isArray(e))return"à®
ணி";if(null===e)return"வà¯à®±à¯à®®à¯";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`தவறான à®à®³à¯à®³à¯à®à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${tf(r.values[0])}`;return`தவறான விரà¯à®ªà¯à®ªà®®à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${e6(r.values,"|")} à®à®²à¯ à®à®©à¯à®±à¯`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`மி஠பà¯à®°à®¿à®¯à®¤à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${r.origin??"மதிபà¯à®ªà¯"} ${t}${r.maximum.toString()} ${n.unit??"à®à®±à¯à®ªà¯à®ªà¯à®à®³à¯"} à®à® à®à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯`;return`மி஠பà¯à®°à®¿à®¯à®¤à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${r.origin??"மதிபà¯à®ªà¯"} ${t}${r.maximum.toString()} à®à® à®à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`மிà®à®à¯ à®à®¿à®±à®¿à®¯à®¤à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${r.origin} ${t}${r.minimum.toString()} ${n.unit} à®à® à®à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯`;return`மிà®à®à¯ à®à®¿à®±à®¿à®¯à®¤à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${r.origin} ${t}${r.minimum.toString()} à®à® à®à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯`}case"invalid_format":if("starts_with"===r.format)return`தவறான à®à®°à®®à¯: "${r.prefix}" à®à®²à¯ தà¯à®à®à¯à® வà¯à®£à¯à®à¯à®®à¯`;if("ends_with"===r.format)return`தவறான à®à®°à®®à¯: "${r.suffix}" à®à®²à¯ à®®à¯à®à®¿à®µà®à¯à®¯ வà¯à®£à¯à®à¯à®®à¯`;if("includes"===r.format)return`தவறான à®à®°à®®à¯: "${r.includes}" à® à®à®³à¯à®³à®à®à¯à® வà¯à®£à¯à®à¯à®®à¯`;if("regex"===r.format)return`தவறான à®à®°à®®à¯: ${r.pattern} à®®à¯à®±à¯à®ªà®¾à®à¯à®à¯à®à®©à¯ பà¯à®°à¯à®¨à¯à®¤ வà¯à®£à¯à®à¯à®®à¯`;return`தவறான ${t[r.format]??r.format}`;case"not_multiple_of":return`தவறான à®à®£à¯: ${r.divisor} à®à®©à¯ பலமா஠à®à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯`;case"unrecognized_keys":return`à®
à®à¯à®¯à®¾à®³à®®à¯ தà¯à®°à®¿à®¯à®¾à®¤ விà®à¯${r.keys.length>1?"à®à®³à¯":""}: ${e6(r.keys,", ")}`;case"invalid_key":return`${r.origin} à®à®²à¯ தவறான விà®à¯`;case"invalid_union":default:return"தவறான à®à®³à¯à®³à¯à®à¯";case"invalid_element":return`${r.origin} à®à®²à¯ தவறான மதிபà¯à®ªà¯`}})}},"th",0,function(){let e,t;return{localeError:(e={string:{unit:"à¸à¸±à¸§à¸à¸±à¸à¸©à¸£",verb:"à¸à¸§à¸£à¸¡à¸µ"},file:{unit:"à¹à¸à¸à¹",verb:"à¸à¸§à¸£à¸¡à¸µ"},array:{unit:"รายà¸à¸²à¸£",verb:"à¸à¸§à¸£à¸¡à¸µ"},set:{unit:"รายà¸à¸²à¸£",verb:"à¸à¸§à¸£à¸¡à¸µ"}},t={regex:"à¸à¹à¸à¸¡à¸¹à¸¥à¸à¸µà¹à¸à¹à¸à¸",email:"à¸à¸µà¹à¸à¸¢à¸¹à¹à¸à¸µà¹à¸¡à¸¥",url:"URL",emoji:"à¸à¸´à¹à¸¡à¸à¸´",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วัà¸à¸à¸µà¹à¹à¸§à¸¥à¸²à¹à¸à¸ ISO",date:"วัà¸à¸à¸µà¹à¹à¸à¸ ISO",time:"à¹à¸§à¸¥à¸²à¹à¸à¸ ISO",duration:"à¸à¹à¸§à¸à¹à¸§à¸¥à¸²à¹à¸à¸ ISO",ipv4:"à¸à¸µà¹à¸à¸¢à¸¹à¹ IPv4",ipv6:"à¸à¸µà¹à¸à¸¢à¸¹à¹ IPv6",cidrv4:"à¸à¹à¸§à¸ IP à¹à¸à¸ IPv4",cidrv6:"à¸à¹à¸§à¸ IP à¹à¸à¸ IPv6",base64:"à¸à¹à¸à¸à¸§à¸²à¸¡à¹à¸à¸ Base64",base64url:"à¸à¹à¸à¸à¸§à¸²à¸¡à¹à¸à¸ Base64 สำหรัภURL",json_string:"à¸à¹à¸à¸à¸§à¸²à¸¡à¹à¸à¸ JSON",e164:"à¹à¸à¸à¸£à¹à¹à¸à¸£à¸¨à¸±à¸à¸à¹à¸£à¸°à¸«à¸§à¹à¸²à¸à¸à¸£à¸°à¹à¸à¸¨ (E.164)",jwt:"à¹à¸à¹à¸à¸ JWT",template_literal:"à¸à¹à¸à¸¡à¸¹à¸¥à¸à¸µà¹à¸à¹à¸à¸"},r=>
58{switch(r.code){case"invalid_type":return`à¸à¸£à¸°à¹à¸ à¸à¸à¹à¸à¸¡à¸¹à¸¥à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¸§à¸£à¹à¸à¹à¸ ${r.expected} à¹à¸à¹à¹à¸à¹à¸£à¸±à¸ ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"à¹à¸¡à¹à¹à¸à¹à¸à¸±à¸§à¹à¸¥à¸ (NaN)":"à¸à¸±à¸§à¹à¸¥à¸";case"object":if(Array.isArray(e))return"à¸à¸²à¸£à¹à¹à¸£à¸¢à¹ (Array)";if(null===e)return"à¹à¸¡à¹à¸¡à¸µà¸à¹à¸² (null)";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`à¸à¹à¸²à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¸§à¸£à¹à¸à¹à¸ ${tf(r.values[0])}`;return`à¸à¸±à¸§à¹à¸¥à¸·à¸à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¸§à¸£à¹à¸à¹à¸à¸«à¸à¸¶à¹à¸à¹à¸ ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"à¹à¸¡à¹à¹à¸à¸´à¸":"à¸à¹à¸à¸¢à¸à¸§à¹à¸²",n=e[r.origin]??null;if(n)return`à¹à¸à¸´à¸à¸à¸³à¸«à¸à¸: ${r.origin??"à¸à¹à¸²"} à¸à¸§à¸£à¸¡à¸µ${t} ${r.maximum.toString()} ${n.unit??"รายà¸à¸²à¸£"}`;
58return`à¹à¸à¸´à¸à¸à¸³à¸«à¸à¸: ${r.origin??"à¸à¹à¸²"} à¸à¸§à¸£à¸¡à¸µ${t} ${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?"à¸à¸¢à¹à¸²à¸à¸à¹à¸à¸¢":"มาà¸à¸à¸§à¹à¸²",n=e[r.origin]??null;if(n)return`à¸à¹à¸à¸¢à¸à¸§à¹à¸²à¸à¸³à¸«à¸à¸: ${r.origin} à¸à¸§à¸£à¸¡à¸µ${t} ${r.minimum.toString()} ${n.unit}`;return`à¸à¹à¸à¸¢à¸à¸§à¹à¸²à¸à¸³à¸«à¸à¸: ${r.origin} à¸à¸§à¸£à¸¡à¸µ${t} ${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`รูà¸à¹à¸à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¹à¸à¸à¸§à¸²à¸¡à¸à¹à¸à¸à¸à¸¶à¹à¸à¸à¹à¸à¸à¹à¸§à¸¢ "${r.prefix}"`;if("ends_with"===r.format)return`รูà¸à¹à¸à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¹à¸à¸à¸§à¸²à¸¡à¸à¹à¸à¸à¸¥à¸à¸à¹à¸²à¸¢à¸à¹à¸§à¸¢ "${r.suffix}"`;if("includes"===r.format)return`รูà¸à¹à¸à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¹à¸à¸à¸§à¸²à¸¡à¸à¹à¸à¸à¸¡à¸µ "${r.includes}" à¸à¸¢à¸¹à¹à¹à¸à¸à¹à¸à¸à¸§à¸²à¸¡`;if("regex"===r.format)return`รูà¸à¹à¸à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¹à¸à¸à¸à¸£à¸à¸à¸±à¸à¸£à¸¹à¸à¹à¸à¸à¸à¸µà¹à¸à¸³à¸«à¸à¸ ${r.pattern}`;return`รูà¸à¹à¸à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: ${t[r.format]??r.format}`;case"not_multiple_of":return`à¸à¸±à¸§à¹à¸¥à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¹à¸à¸à¹à¸à¹à¸à¸à¸³à¸à¸§à¸à¸à¸µà¹à¸«à¸²à¸£à¸à¹à¸§à¸¢ ${r.divisor} à¹à¸à¹à¸¥à¸à¸à¸±à¸§`;case"unrecognized_keys":return`à¸à¸à¸à¸µà¸¢à¹à¸à¸µà¹à¹à¸¡à¹à¸£à¸¹à¹à¸à¸±à¸: ${e6(r.keys,", ")}`;case"invalid_key":return`à¸à¸µà¸¢à¹à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸à¹à¸ ${r.origin}`;case"invalid_union":return"à¸à¹à¸à¸¡à¸¹à¸¥à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¹à¸¡à¹à¸à¸£à¸à¸à¸±à¸à¸£à¸¹à¸à¹à¸à¸à¸¢à¸¹à¹à¸à¸µà¸¢à¸à¸à¸µà¹à¸à¸³à¸«à¸à¸à¹à¸§à¹";case"invalid_element":return`à¸à¹à¸à¸¡à¸¹à¸¥à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸à¹à¸ ${r.origin}`;default:return"à¸à¹à¸à¸¡à¸¹à¸¥à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸"}})}},"tr",0,function(){let e,t;return{localeError:(e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öÄe",verb:"olmalı"},set:{unit:"öÄe",verb:"olmalı"}},t={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralıÄı",cidrv6:"IPv6 aralıÄı",base64:"base64 ile ÅifrelenmiÅ metin",base64url:"base64url ile ÅifrelenmiÅ metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Åablon dizesi"},r=>{switch(r.code){case"invalid_type":return`Ge\xe7ersiz deÄer: beklenen ${r.expected}, alınan ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Ge\xe7ersiz deÄer: beklenen ${tf(r.values[0])}`;return`Ge\xe7ersiz se\xe7enek: aÅaÄıdakilerden biri olmalı: ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`\xc7ok b\xfcy\xfck: beklenen ${r.origin??"deÄer"} ${t}${r.maximum.toString()} ${n.unit??"öÄe"}`;return`\xc7ok b\xfcy\xfck: beklenen ${r.origin??"deÄer"} ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`\xc7ok k\xfc\xe7\xfck: beklenen ${r.origin} ${t}${r.minimum.toString()} ${n.unit}`;return`\xc7ok k\xfc\xe7\xfck: beklenen ${r.origin} ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Ge\xe7ersiz metin: "${r.prefix}" ile baÅlamalı`;if("ends_with"===r.format)return`Ge\xe7ersiz metin: "${r.suffix}" ile bitmeli`;if("includes"===r.format)return`Ge\xe7ersiz metin: "${r.includes}" i\xe7ermeli`;if("regex"===r.format)return`Ge\xe7ersiz metin: ${r.pattern} desenine uymalı`;return`Ge\xe7ersiz ${t[r.format]??r.format}`;case"not_multiple_of":return`Ge\xe7ersiz sayı: ${r.divisor} ile tam b\xf6l\xfcnebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${r.keys.length>1?"lar":""}: ${e6(r.keys,", ")}`;
58case"invalid_key":return`${r.origin} i\xe7inde ge\xe7ersiz anahtar`;case"invalid_union":default:return"Geçersiz deÄer";case"invalid_element":return`${r.origin} i\xe7inde ge\xe7ersiz deÄer`}})}},"ua",0,function(){let e,t;return{localeError:(e={string:{unit:"ÑимволÑв",verb:"маÑиме"},file:{unit:"байÑÑв",verb:"маÑиме"},array:{unit:"елеменÑÑв",verb:"маÑиме"},set:{unit:"елеменÑÑв",verb:"маÑиме"}},t={regex:"вÑ
ÑÐ´Ð½Ñ Ð´Ð°Ð½Ñ",email:"адÑеÑа елекÑÑÐ¾Ð½Ð½Ð¾Ñ Ð¿Ð¾ÑÑи",url:"URL",emoji:"емодзÑ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"даÑа Ñа ÑÐ°Ñ ISO",date:"даÑа ISO",time:"ÑÐ°Ñ ISO",duration:"ÑÑивалÑÑÑÑ ISO",ipv4:"адÑеÑа IPv4",ipv6:"адÑеÑа IPv6",cidrv4:"дÑапазон IPv4",cidrv6:"дÑапазон IPv6",base64:"ÑÑдок Ñ ÐºÐ¾Ð´ÑÐ²Ð°Ð½Ð½Ñ base64",base64url:"ÑÑдок Ñ ÐºÐ¾Ð´ÑÐ²Ð°Ð½Ð½Ñ base64url",json_string:"ÑÑдок JSON",e164:"Ð½Ð¾Ð¼ÐµÑ E.164",jwt:"JWT",template_literal:"вÑ
ÑÐ´Ð½Ñ Ð´Ð°Ð½Ñ"},r=>{switch(r.code){case"invalid_type":return`ÐепÑавилÑÐ½Ñ Ð²Ñ
ÑÐ´Ð½Ñ Ð´Ð°Ð½Ñ: оÑÑкÑÑÑÑÑÑ ${r.expected}, оÑÑимано ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"ÑиÑло";case"object":if(Array.isArray(e))return"маÑив";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`ÐепÑавилÑÐ½Ñ Ð²Ñ
ÑÐ´Ð½Ñ Ð´Ð°Ð½Ñ: оÑÑкÑÑÑÑÑÑ ${tf(r.values[0])}`;return`ÐепÑавилÑна опÑÑÑ: оÑÑкÑÑÑÑÑÑ Ð¾Ð´Ð½Ðµ з ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`ÐанадÑо велике: оÑÑкÑÑÑÑÑÑ, Ñо ${r.origin??"знаÑеннÑ"} ${n.verb} ${t}${r.maximum.toString()} ${n.unit??"елеменÑÑв"}`;return`ÐанадÑо велике: оÑÑкÑÑÑÑÑÑ, Ñо ${r.origin??"знаÑеннÑ"} бÑде ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`ÐанадÑо мале: оÑÑкÑÑÑÑÑÑ, Ñо ${r.origin} ${n.verb} ${t}${r.minimum.toString()} ${n.unit}`;return`ÐанадÑо мале: оÑÑкÑÑÑÑÑÑ, Ñо ${r.origin} бÑде ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`ÐепÑавилÑний ÑÑдок: повинен поÑинаÑиÑÑ Ð· "${r.prefix}"`;if("ends_with"===r.format)return`ÐепÑавилÑний ÑÑдок: повинен закÑнÑÑваÑиÑÑ Ð½Ð° "${r.suffix}"`;if("includes"===r.format)return`ÐепÑавилÑний ÑÑдок: повинен мÑÑÑиÑи "${r.includes}"`;if("regex"===r.format)return`ÐепÑавилÑний ÑÑдок: повинен вÑдповÑдаÑи ÑÐ°Ð±Ð»Ð¾Ð½Ñ ${r.pattern}`;return`ÐепÑавилÑний ${t[r.format]??r.format}`;case"not_multiple_of":return`ÐепÑавилÑне ÑиÑло: повинно бÑÑи кÑаÑним ${r.divisor}`;case"unrecognized_keys":return`ÐеÑозпÑзнаний клÑÑ${r.keys.length>1?"Ñ":""}: ${e6(r.keys,", ")}`;case"invalid_key":return`ÐепÑавилÑний клÑÑ Ñ ${r.origin}`;case"invalid_union":default:return"ÐепÑавилÑÐ½Ñ Ð²Ñ
ÑÐ´Ð½Ñ Ð´Ð°Ð½Ñ";case"invalid_element":return`ÐепÑавилÑне знаÑÐµÐ½Ð½Ñ Ñ ${r.origin}`}})}},"ur",0,function(){let e,t;return{localeError:(e={string:{unit:"ØØ±ÙÙ",verb:"ÛÙÙØ§"},file:{unit:"بائٹس",verb:"ÛÙÙØ§"},array:{unit:"آئٹÙ
ز",verb:"ÛÙÙØ§"},set:{unit:"آئٹÙ
ز",verb:"ÛÙÙØ§"}},t={regex:"ا٠پٹ",email:"Ø§Û Ù
Û٠اÛÚØ±Ûس",url:"Û٠آر اÛÙ",emoji:"اÛÙ
ÙØ¬Û",uuid:"ÛÙ ÛÙ Ø¢Ø¦Û ÚÛ",uuidv4:"ÛÙ ÛÙ Ø¢Ø¦Û ÚÛ ÙÛ 4",uuidv6:"ÛÙ ÛÙ Ø¢Ø¦Û ÚÛ ÙÛ 6",nanoid:"ÙÛÙÙ Ø¢Ø¦Û ÚÛ",guid:"Ø¬Û ÛÙ Ø¢Ø¦Û ÚÛ",cuid:"Ø³Û ÛÙ Ø¢Ø¦Û ÚÛ",cuid2:"Ø³Û ÛÙ Ø¢Ø¦Û ÚÛ 2",ulid:"Û٠اÛÙ Ø¢Ø¦Û ÚÛ",xid:"اÛکس Ø¢Ø¦Û ÚÛ",ksuid:"Ú©Û Ø§ÛØ³ ÛÙ Ø¢Ø¦Û ÚÛ",datetime:"Ø¢Ø¦Û Ø§ÛØ³ ا٠ÚÛÙ¹ ٹائÙ
",date:"Ø¢Ø¦Û Ø§ÛØ³ Ø§Ù ØªØ§Ø±ÛØ®",time:"Ø¢Ø¦Û Ø§ÛØ³ ا٠ÙÙØª",duration:"Ø¢Ø¦Û Ø§ÛØ³ ا٠Ù
دت",ipv4:"Ø¢Ø¦Û Ù¾Û ÙÛ 4 اÛÚØ±Ûس",ipv6:"Ø¢Ø¦Û Ù¾Û ÙÛ 6 اÛÚØ±Ûس",cidrv4:"Ø¢Ø¦Û Ù¾Û ÙÛ 4 رÛÙØ¬",cidrv6:"Ø¢Ø¦Û Ù¾Û ÙÛ 6 رÛÙØ¬",base64:"Ø¨ÛØ³ 64 ا٠کÙÚÚ Ø³Ù¹Ø±ÙÚ¯",base64url:"Ø¨ÛØ³ 64 Û٠آر اÛ٠ا٠کÙÚÚ Ø³Ù¹Ø±ÙÚ¯",json_string:"Ø¬Û Ø§ÛØ³ ا٠اÛ٠سٹرÙÚ¯",e164:"Ø§Û 164 ÙÙ
بر",jwt:"Ø¬Û ÚØ¨ÙÛÙ Ù¹Û",template_literal:"ا٠پٹ"},r=>
58{switch(r.code){case"invalid_type":return`ØºÙØ· ا٠پٹ: ${r.expected} Ù
تÙÙØ¹ ØªÚ¾Ø§Ø ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"ÙÙ
بر";case"object":if(Array.isArray(e))return"آرÛ";if(null===e)return"ÙÙ";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)} Ù
ÙØµÙÙ ÛÙØ§`;case"invalid_value":if(1===r.values.length)return`ØºÙØ· ا٠پٹ: ${tf(r.values[0])} Ù
تÙÙØ¹ تھا`;return`ØºÙØ· آپشÙ: ${e6(r.values,"|")} Ù
ÛÚº Ø³Û Ø§ÛÚ© Ù
تÙÙØ¹ تھا`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Ø¨ÛØª Ø¨ÚØ§: ${r.origin??"ÙÛÙÛÙ"} Ú©Û ${t}${r.maximum.toString()} ${n.unit??"Ø¹ÙØ§ØµØ±"} ÛÙÙÛ Ù
تÙÙØ¹ تھÛ`;return`Ø¨ÛØª Ø¨ÚØ§: ${r.origin??"ÙÛÙÛÙ"} کا ${t}${r.maximum.toString()} ÛÙÙØ§ Ù
تÙÙØ¹ تھا`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Ø¨ÛØª ÚÚ¾Ùٹا: ${r.origin} Ú©Û ${t}${r.minimum.toString()} ${n.unit} ÛÙÙÛ Ù
تÙÙØ¹ تھÛ`;return`Ø¨ÛØª ÚÚ¾Ùٹا: ${r.origin} کا ${t}${r.minimum.toString()} ÛÙÙØ§ Ù
تÙÙØ¹ تھا`}case"invalid_format":if("starts_with"===r.format)return`ØºÙØ· سٹرÙÚ¯: "${r.prefix}" Ø³Û Ø´Ø±ÙØ¹ ÛÙÙØ§ ÚØ§ÛÛÛ`;if("ends_with"===r.format)return`ØºÙØ· سٹرÙÚ¯: "${r.suffix}" پر ختÙ
ÛÙÙØ§ ÚØ§ÛÛÛ`;if("includes"===r.format)return`ØºÙØ· سٹرÙÚ¯: "${r.includes}" شاÙ
Ù ÛÙÙØ§ ÚØ§ÛÛÛ`;if("regex"===r.format)return`ØºÙØ· سٹرÙÚ¯: Ù¾Ûٹر٠${r.pattern} Ø³Û Ù
ÛÚ ÛÙÙØ§ ÚØ§ÛÛÛ`;return`ØºÙØ· ${t[r.format]??r.format}`;case"not_multiple_of":return`ØºÙØ· ÙÙ
بر: ${r.divisor} کا Ù
ضاع٠ÛÙÙØ§ ÚØ§ÛÛÛ`;case"unrecognized_keys":return`ØºÛØ± تسÙÛÙ
Ø´Ø¯Û Ú©Û${r.keys.length>1?"ز":""}: ${e6(r.keys,"Ø ")}`;case"invalid_key":return`${r.origin} Ù
ÛÚº ØºÙØ· Ú©Û`;case"invalid_union":default:return"ØºÙØ· ا٠پٹ";case"invalid_element":return`${r.origin} Ù
ÛÚº ØºÙØ· ÙÛÙÛÙ`}})}},"vi",0,function(){let e,t;return{localeError:(e={string:{unit:"ký tá»±",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tá»",verb:"có"},set:{unit:"phần tá»",verb:"có"}},t={regex:"Äầu và o",email:"Äá»a chá» email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngà y giá» ISO",date:"ngà y ISO",time:"giá» ISO",duration:"khoảng thá»i gian ISO",ipv4:"Äá»a chá» IPv4",ipv6:"Äá»a chá» IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuá»i mã hóa base64",base64url:"chuá»i mã hóa base64url",json_string:"chuá»i JSON",e164:"sá» E.164",jwt:"JWT",template_literal:"Äầu và o"},r=>{switch(r.code){case"invalid_type":return`Äầu v\xe0o kh\xf4ng hợp lá»: mong Äợi ${r.expected}, nháºn ÄÆ°á»£c ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"sá»";case"object":if(Array.isArray(e))return"mảng";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Äầu v\xe0o kh\xf4ng hợp lá»: mong Äợi ${tf(r.values[0])}`;return`T\xf9y chá»n kh\xf4ng hợp lá»: mong Äợi má»t trong c\xe1c gi\xe1 trá» ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Qu\xe1 lá»n: mong Äợi ${r.origin??"giá trá»"} ${n.verb} ${t}${r.maximum.toString()} ${n.unit??"phần tá»"}`;return`Qu\xe1 lá»n: mong Äợi ${r.origin??"giá trá»"} ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Qu\xe1 nhá»: mong Äợi ${r.origin} ${n.verb} ${t}${r.minimum.toString()} ${n.unit}`;return`Qu\xe1 nhá»: mong Äợi ${r.origin} ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Chuá»i kh\xf4ng hợp lá»: phải bắt Äầu bằng "${r.prefix}"`;if("ends_with"===r.format)return`Chuá»i kh\xf4ng hợp lá»: phải kết th\xfac bằng "${r.suffix}"`;if("includes"===r.format)return`Chuá»i kh\xf4ng hợp lá»: phải bao gá»m "${r.includes}"`;if("regex"===r.format)return`Chuá»i kh\xf4ng hợp lá»: phải khá»p vá»i mẫu ${r.pattern}`;return`${t[r.format]??r.format} kh\xf4ng hợp lá»`;case"not_multiple_of":return`Sá» kh\xf4ng hợp lá»: phải l\xe0 bá»i sá» cá»§a ${r.divisor}`;case"unrecognized_keys":return`Kh\xf3a kh\xf4ng ÄÆ°á»£c nháºn dạng: ${e6(r.keys,", ")}`;
58case"invalid_key":return`Kh\xf3a kh\xf4ng hợp lá» trong ${r.origin}`;case"invalid_union":default:return"Äầu và o không hợp lá»";case"invalid_element":return`Gi\xe1 trá» kh\xf4ng hợp lá» trong ${r.origin}`}})}},"zhCN",0,function(){let e,t;return{localeError:(e={string:{unit:"å符",verb:"å
å«"},file:{unit:"åè",verb:"å
å«"},array:{unit:"项",verb:"å
å«"},set:{unit:"项",verb:"å
å«"}},t={regex:"è¾å
¥",email:"çµåé®ä»¶",url:"URL",emoji:"表æ
符å·",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISOæ¥ææ¶é´",date:"ISOæ¥æ",time:"ISOæ¶é´",duration:"ISOæ¶é¿",ipv4:"IPv4å°å",ipv6:"IPv6å°å",cidrv4:"IPv4ç½æ®µ",cidrv6:"IPv6ç½æ®µ",base64:"base64ç¼ç å符串",base64url:"base64urlç¼ç å符串",json_string:"JSONå符串",e164:"E.164å·ç ",jwt:"JWT",template_literal:"è¾å
¥"},r=>{switch(r.code){case"invalid_type":return`æ æè¾å
¥ï¼ææ ${r.expected}ï¼å®é
æ¥æ¶ ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"éæ°å(NaN)":"æ°å";case"object":if(Array.isArray(e))return"æ°ç»";if(null===e)return"空å¼(null)";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`æ æè¾å
¥ï¼ææ ${tf(r.values[0])}`;return`æ æéé¡¹ï¼ææä»¥ä¸ä¹ä¸ ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`æ°å¼è¿å¤§ï¼ææ ${r.origin??"å¼"} ${t}${r.maximum.toString()} ${n.unit??"个å
ç´ "}`;return`æ°å¼è¿å¤§ï¼ææ ${r.origin??"å¼"} ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`æ°å¼è¿å°ï¼ææ ${r.origin} ${t}${r.minimum.toString()} ${n.unit}`;return`æ°å¼è¿å°ï¼ææ ${r.origin} ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`æ æå符串ï¼å¿
须以 "${r.prefix}" å¼å¤´`;if("ends_with"===r.format)return`æ æå符串ï¼å¿
须以 "${r.suffix}" ç»å°¾`;if("includes"===r.format)return`æ æå符串ï¼å¿
é¡»å
å« "${r.includes}"`;if("regex"===r.format)return`æ æå符串ï¼å¿
须满足æ£åè¡¨è¾¾å¼ ${r.pattern}`;return`æ æ${t[r.format]??r.format}`;case"not_multiple_of":return`æ ææ°åï¼å¿
é¡»æ¯ ${r.divisor} çåæ°`;case"unrecognized_keys":return`åºç°æªç¥çé®(key): ${e6(r.keys,", ")}`;case"invalid_key":return`${r.origin} ä¸çé®(key)æ æ`;case"invalid_union":default:return"æ æè¾å
¥";case"invalid_element":return`${r.origin} ä¸å
嫿 æå¼(value)`}})}},"zhTW",0,function(){let e,t;return{localeError:(e={string:{unit:"åå
",verb:"ææ"},file:{unit:"ä½å
çµ",verb:"ææ"},array:{unit:"é
ç®",verb:"ææ"},set:{unit:"é
ç®",verb:"ææ"}},t={regex:"輸å
¥",email:"éµä»¶å°å",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO æ¥ææé",date:"ISO æ¥æ",time:"ISO æé",duration:"ISO æé",ipv4:"IPv4 ä½å",ipv6:"IPv6 ä½å",cidrv4:"IPv4 ç¯å",cidrv6:"IPv6 ç¯å",base64:"base64 編碼å串",base64url:"base64url 編碼å串",json_string:"JSON å串",e164:"E.164 æ¸å¼",jwt:"JWT",template_literal:"輸å
¥"},r=>{switch(r.code){case"invalid_type":return`ç¡æç輸å
¥å¼ï¼é æçº ${r.expected}ï¼ä½æ¶å° ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`ç¡æç輸å
¥å¼ï¼é æçº ${tf(r.values[0])}`;return`ç¡æçé¸é
ï¼é æçºä»¥ä¸å
¶ä¸ä¹ä¸ ${e6(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`æ¸å¼é大ï¼é æ ${r.origin??"å¼"} æçº ${t}${r.maximum.toString()} ${n.unit??"åå
ç´ "}`;return`æ¸å¼é大ï¼é æ ${r.origin??"å¼"} æçº ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`æ¸å¼éå°ï¼é æ ${r.origin} æçº ${t}${r.minimum.toString()} ${n.unit}`;return`æ¸å¼éå°ï¼é æ ${r.origin} æçº ${t}${r.minimum.toString()}`}
58case"invalid_format":if("starts_with"===r.format)return`ç¡æçå串ï¼å¿
é 以 "${r.prefix}" éé `;if("ends_with"===r.format)return`ç¡æçå串ï¼å¿
é 以 "${r.suffix}" çµå°¾`;if("includes"===r.format)return`ç¡æçå串ï¼å¿
é å
å« "${r.includes}"`;if("regex"===r.format)return`ç¡æçå串ï¼å¿
é ç¬¦åæ ¼å¼ ${r.pattern}`;return`ç¡æç ${t[r.format]??r.format}`;case"not_multiple_of":return`ç¡æçæ¸åï¼å¿
é çº ${r.divisor} ç忏`;case"unrecognized_keys":return`ç¡æ³èå¥çéµå¼${r.keys.length>1?"å":""}ï¼${e6(r.keys,"ã")}`;case"invalid_key":return`${r.origin} ä¸æç¡æçéµå¼`;case"invalid_union":default:return"ç¡æç輸å
¥å¼";case"invalid_element":return`${r.origin} ä¸æç¡æçå¼`}})}}],12577);var sm=e.i(12577);function sh(e,t){return new e({type:"string",...tp(t)})}function sg(e,t){return new e({type:"string",coerce:!0,...tp(t)})}function sv(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...tp(t)})}function sy(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...tp(t)})}function sb(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...tp(t)})}function sx(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...tp(t)})}function sw(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...tp(t)})}function s_(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...tp(t)})}function sk(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...tp(t)})}function sS(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...tp(t)})}function sE(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...tp(t)})}function sT(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...tp(t)})}function sj(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...tp(t)})}function sI(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...tp(t)})}function sC(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...tp(t)})}function sA(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...tp(t)})}function sN(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...tp(t)})}function sO(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...tp(t)})}function sR(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...tp(t)})}function sP(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...tp(t)})}function sD(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...tp(t)})}function s$(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...tp(t)})}function sL(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...tp(t)})}function sM(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...tp(t)})}e.i(135482),e.i(712268);let sU={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function sz(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...tp(t)})}function sF(e,t){return new e({type:"string",format:"date",check:"string_format",...tp(t)})}function sq(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...tp(t)})}function sZ(e,t){return new e({type:"string",format:"duration",check:"string_format",...tp(t)})}function sV(e,t){return new e({type:"number",checks:[],...tp(t)})}function sB(e,t){return new e({type:"number",coerce:!0,checks:[],...tp(t)})}function sH(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...tp(t)})}function sW(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...tp(t)})}function sG(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...tp(t)})}function sK(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...tp(t)})}function sY(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...tp(t)})}function sX(e,t){return new e({type:"boolean",...tp(t)})}function sJ(e,t){return new e({type:"boolean",coerce:!0,...tp(t)})}function sQ(e,t){return new e({type:"bigint",...tp(t)})}function s0(e,t){return new e({type:"bigint",coerce:!0,...tp(t)})}function s1(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...tp(t)})}function s2(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...tp(t)})}function s4(e,t){return new e({type:"symbol",...tp(t)})}function s3(e,t){return new e({type:"undefined",...tp(t)})}function s6(e,t){return new e({type:"null",...tp(t)})}function s5(e){return new e({type:"any"})}function s9(e){return new e({type:"unknown"})}function s7(e,t){return new e({type:"never",...tp(t)})}function s8(e,t){return new e({type:"void",...tp(t)})}function le(e,t){return new e({type:"date",...tp(t)})}function lt(e,t){return new e({type:"date",coerce:!0,...tp(t)})}function lr(e,t){return new e({type:"nan",...tp(t)})}function ln(e,t){return new aN({check:"less_than",...tp(t),value:e,inclusive:!1})}function li(e,t){return new aN({check:"less_than",...tp(t),value:e,inclusive:!0})}function la(e,t){return new aO({check:"greater_than",...tp(t),value:e,inclusive:!1})}function lo(e,t){return new aO({check:"greater_than",...tp(t),value:e,inclusive:!0})}function ls(e){return la(0,e)}function ll(e){return ln(0,e)}function lu(e){return li(0,e)}function lc(e){return lo(0,e)}function ld(e,t){return new aR({check:"multiple_of",...tp(t),value:e})}function lp(e,t){return new a$({check:"max_size",...tp(t),maximum:e})}function lf(e,t){return new aL({check:"min_size",...tp(t),minimum:e})}function lm(e,t){return new aM({check:"size_equals",...tp(t),size:e})}function lh(e,t){return new aU({check:"max_length",...tp(t),maximum:e})}function lg(e,t){return new az({check:"min_length",...tp(t),minimum:e})}function lv(e,t){return new aF({check:"length_equals",...tp(t),length:e})}function ly(e,t){return new aZ({check:"string_format",format:"regex",...tp(t),pattern:e})}function lb(e){return new aV({check:"string_format",format:"lowercase",...tp(e)})}
vendor: 1,638 bytes, line 58
58function lx(e){return new aB({check:"string_format",format:"uppercase",...tp(e)})}function lw(e,t){return new aH({check:"string_format",format:"includes",...tp(t),includes:e})}function l_(e,t){return new aW({check:"string_format",format:"starts_with",...tp(t),prefix:e})}function lk(e,t){return new aG({check:"string_format",format:"ends_with",...tp(t),suffix:e})}function lS(e,t,r){return new aY({check:"property",property:e,schema:t,...tp(r)})}function lE(e,t){return new aX({check:"mime_type",mime:e,...tp(t)})}function lT(e){return new aJ({check:"overwrite",tx:e})}function lj(e){return lT(t=>t.normalize(e))}function lI(){return lT(e=>e.trim())}function lC(){return lT(e=>e.toLowerCase())}function lA(){return lT(e=>e.toUpperCase())}function lN(e,t,r){return new e({type:"array",element:t,...tp(r)})}function lO(e,t,r){return new e({type:"union",options:t,...tp(r)})}function lR(e,t,r,n){return new e({type:"union",options:r,discriminator:t,...tp(n)})}function lP(e,t,r){return new e({type:"intersection",left:t,right:r})}function lD(e,t,r,n){let i=r instanceof a1,a=i?n:r;return new e({type:"tuple",items:t,rest:i?r:null,...tp(a)})}function l$(e,t,r,n){return new e({type:"record",keyType:t,valueType:r,...tp(n)})}function lL(e,t,r,n){return new e({type:"map",keyType:t,valueType:r,...tp(n)})}function lM(e,t,r){return new e({type:"set",valueType:t,...tp(r)})}function lU(e,t,r){return new e({type:"enum",entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...tp(r)})}function lz(e,t,r){return new e({type:"enum",entries:t,...tp(r)})}function lF(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...tp(r)}
58)}function lq(e,t){return new e({type:"file",...tp(t)})}function lZ(e,t){return new e({type:"transform",transform:t})}function lV(e,t){return new e({type:"optional",innerType:t})}function lB(e,t){return new e({type:"nullable",innerType:t})}function lH(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return"function"==typeof r?r():r}})}function lW(e,t,r){return new e({type:"nonoptional",innerType:t,...tp(r)})}function lG(e,t){return new e({type:"success",innerType:t})}function lK(e,t,r){return new e({type:"catch",innerType:t,catchValue:"function"==typeof r?r:()=>r})}function lY(e,t,r){return new e({type:"pipe",in:t,out:r})}function lX(e,t){return new e({type:"readonly",innerType:t})}function lJ(e,t,r){return new e({type:"template_literal",parts:t,...tp(r)})}function lQ(e,t){return new e({type:"lazy",getter:t})}function l0(e,t){return new e({type:"promise",innerType:t})}function l1(e,t,r){let n=tp(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}function l2(e,t,r){return new e({type:"custom",check:"custom",fn:t,...tp(r)})}function l4(e,t){let r=tp(t),n=r.truthy??["true","1","yes","on","y","enabled"],i=r.falsy??["false","0","no","off","n","disabled"];"sensitive"!==r.case&&(n=n.map(e=>"string"==typeof e?e.toLowerCase():e),i=i.map(e=>"string"==typeof e?e.toLowerCase():e));let a=new Set(n),o=new Set(i),s=e.Pipe??st,l=e.Boolean??ok,u=e.String??a2,c=new(e.Transform??o0)({type:"transform",transform:(e,t)=>{let n=e;return"sensitive"!==r.case&&(n=n.toLowerCase()),!!a.has(n)||!o.has(n)&&(t.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...o],input:t.value,inst:c}),{})},error:r.error}),d=new s({type:"pipe",in:new u({type:"string",error:r.error}),out:c,error:r.error});return new s({type:"pipe",in:d,out:new l({type:"boolean",error:r.error}),error:r.error})}function l3(e,t,r,n={}){let i=tp(n),a={...tp(n),check:"string_format",type:"string",format:t,fn:"function"==typeof r?r:e=>r.test(e),...i};return r instanceof RegExp&&(a.pattern=r),new e(a)}e.s(["TimePrecision",0,sU,"_any",0,s5,"_array",0,lN,"_base64",0,sD,"_base64url",0,s$,"_bigint",0,sQ,"_boolean",0,sX,"_catch",0,lK,"_cidrv4",0,sR,"_cidrv6",0,sP,"_coercedBigint",0,s0,"_coercedBoolean",0,sJ,"_coercedDate",0,lt,"_coercedNumber",0,sB,"_coercedString",0,sg,"_cuid",0,sT,"_cuid2",0,sj,"_custom",0,l1,"_date",0,le,"_default",0,lH,"_discriminatedUnion",0,lR,"_e164",0,sL,"_email",0,sv,"_emoji",0,sS,"_endsWith",0,lk,"_enum",0,lU,"_file",0,lq,"_float32",0,sW,"_float64",0,sG,"_gt",0,la,"_gte",0,lo,"_guid",0,sy,"_includes",0,lw,"_int",0,sH,"_int32",0,sK,"_int64",0,s1,"_intersection",0,lP,"_ipv4",0,sN,"_ipv6",0,sO,"_isoDate",0,sF,"_isoDateTime",0,sz,"_isoDuration",0,sZ,"_isoTime",0,sq,"_jwt",0,sM,"_ksuid",0,sA,"_lazy",0,lQ,"_length",0,lv,"_literal",0,lF,"_lowercase",0,lb,"_lt",0,ln,"_lte",0,li,"_map",0,lL,"_max",0,li,"_maxLength",0,lh,"_maxSize",0,lp,"_mime",0,lE,"_min",0,lo,"_minLength",0,lg,"_minSize",0,lf,"_multipleOf",0,ld,"_nan",0,lr,"_nanoid",0,sE,"_nativeEnum",0,lz,"_negative",0,ll,"_never",0,s7,"_nonnegative",0,lc,"_nonoptional",0,lW,"_nonpositive",0,lu,"_normalize",0,lj,"_null",0,s6,"_nullable",0,lB,"_number",0,sV,"_optional",0,lV,"_overwrite",0,lT,"_pipe",0,lY,"_positive",0,ls,"_promise",0,l0,"_property",0,lS,"_readonly",0,lX,"_record",0,l$,"_refine",0,l2,"_regex",0,ly,"_set",0,lM,"_size",0,lm,"_startsWith",0,l_,"_string",0,sh,"_stringFormat",0,l3,"_stringbool",0,l4,"_success",0,lG,"_symbol",0,s4,"_templateLiteral",0,lJ,"_toLowerCase",0,lC,"_toUpperCase",0,lA,"_transform",0,lZ,"_trim",0,lI,"_tuple",0,lD,"_uint32",0,sY,"_uint64",0,s2,"_ulid",0,sI,"_undefined",0,s3,"_union",0,lO,"_unknown",0,s9,"_uppercase",0,lx,"_url",0,sk,"_uuid",0,sb,"_uuidv4",0,sx,"_uuidv6",0,sw,"_uuidv7",0,s_,"_void",0,s8,"_xid",0,sC],29075);class l6{constructor(e){this._def=e,this.def=e}implement(e){if("function"!=typeof e)throw Error("implement() must be called with a function");let t=(...r)=>{let n=this._def.input?tR(this._def.input,r,void 0,{callee:t}):r;if(!Array.isArray(n))throw Error("Invalid arguments schema: not an array or tuple schema.");let i=e(...n);return this._def.output?tR(this._def.output,i,void 0,{callee:t}):i};return t}implementAsync(e){if("function"!=typeof e)throw Error("implement() must be called with a function");let t=async(...r)=>{let n=this._def.input?await tD(this._def.input,r,void 0,{callee:t}):r;if(!Array.isArray(n))throw Error("Invalid arguments schema: not an array or tuple schema.");let i=await e(...n);return this._def.output?tD(this._def.output,i,void 0,{callee:t}):i};return t}input(...e){let t=this.constructor;return new t(Array.isArray(e[0])?{type:"function",input:new oV({type:"tuple",items:e[0],rest:e[1]}),output:this._def.output}:{type:"function",input:e[0],output:this._def.output})}output(e){return new this.constructor({type:"function",input:this._def.input,output:e})}}function l5(e){return new l6({type:"function",input:Array.isArray(e?.input)?lD(oV,e?.input):e?.input??lN(oD,s9(oA)),output:e?.output??s9(oA)})}e.s(["$ZodFunction",0,l6,"function",0,l5],422703),e.i(422703),e.i(29075),e.i(522881),e.s([],769896);var l9=e.i(769896);e.s(["$ZodAny",0,oC,"$ZodArray",0,oD,"$ZodAsyncError",0,e1,"$ZodBase64",0,om,"$ZodBase64URL",0,og,"$ZodBigInt",0,oS,"$ZodBigIntFormat",0,oE,"$ZodB
58oolean",0,ok,"$ZodCIDRv4",0,od,"$ZodCIDRv6",0,op,"$ZodCUID",0,oe,"$ZodCUID2",0,ot,"$ZodCatch",0,o8,"$ZodCheck",0,aC,"$ZodCheckBigIntFormat",0,aD,"$ZodCheckEndsWith",0,aG,"$ZodCheckGreaterThan",0,aO,"$ZodCheckIncludes",0,aH,"$ZodCheckLengthEquals",0,aF,"$ZodCheckLessThan",0,aN,"$ZodCheckLowerCase",0,aV,"$ZodCheckMaxLength",0,aU,"$ZodCheckMaxSize",0,a$,"$ZodCheckMimeType",0,aX,"$ZodCheckMinLength",0,az,"$ZodCheckMinSize",0,aL,"$ZodCheckMultipleOf",0,aR,"$ZodCheckNumberFormat",0,aP,"$ZodCheckOverwrite",0,aJ,"$ZodCheckProperty",0,aY,"$ZodCheckRegex",0,aZ,"$ZodCheckSizeEquals",0,aM,"$ZodCheckStartsWith",0,aW,"$ZodCheckStringFormat",0,aq,"$ZodCheckUpperCase",0,aB,"$ZodCustom",0,sl,"$ZodCustomStringFormat",0,ox,"$ZodDate",0,oR,"$ZodDefault",0,o4,"$ZodDiscriminatedUnion",0,oF,"$ZodE164",0,ov,"$ZodEmail",0,a5,"$ZodEmoji",0,a7,"$ZodEnum",0,oX,"$ZodError",0,tE,"$ZodFile",0,oQ,"$ZodFunction",0,l6,"$ZodGUID",0,a3,"$ZodIPv4",0,ou,"$ZodIPv6",0,oc,"$ZodISODate",0,oo,"$ZodISODateTime",0,oa,"$ZodISODuration",0,ol,"$ZodISOTime",0,os,"$ZodIntersection",0,oq,"$ZodJWT",0,ob,"$ZodKSUID",0,oi,"$ZodLazy",0,ss,"$ZodLiteral",0,oJ,"$ZodMap",0,oW,"$ZodNaN",0,se,"$ZodNanoID",0,a8,"$ZodNever",0,oN,"$ZodNonOptional",0,o5,"$ZodNull",0,oI,"$ZodNullable",0,o2,"$ZodNumber",0,ow,"$ZodNumberFormat",0,o_,"$ZodObject",0,oM,"$ZodOptional",0,o1,"$ZodPipe",0,st,"$ZodPrefault",0,o6,"$ZodPromise",0,so,"$ZodReadonly",0,sn,"$ZodRealError",0,tT,"$ZodRecord",0,oH,"$ZodRegistry",0,tK,"$ZodSet",0,oK,"$ZodString",0,a2,"$ZodStringFormat",0,a4,"$ZodSuccess",0,o7,"$ZodSymbol",0,oT,"$ZodTemplateLiteral",0,sa,"$ZodTransform",0,o0,"$ZodTuple",0,oV,"$ZodType",0,a1,"$ZodULID",0,or,"$ZodURL",0,a9,"$ZodUUID",0,a6,"$ZodUndefined",0,oj,"$ZodUnion",0,oz,"$ZodUnknown",0,oA,"$ZodVoid",0,oO,"$ZodXID",0,on,"$brand",0,e0,"$constructor",0,eQ,"$input",0,tG,"$output",0,tW,"Doc",0,aQ,"JSONSchema",0,l9,"JSONSchemaGenerator",0,tJ,"NEVER",0,eJ,"TimePrecision",0,sU,"_any",0,s5,"_array",0,lN,"_base64",0,sD,"_base64url",0,s$,"_bigint",0,sQ,"_boolean",0,sX,"_catch",0,lK,"_cidrv4",0,sR,"_cidrv6",0,sP,"_coercedBigint",0,s0,"_coercedBoolean",0,sJ,"_coercedDate",0,lt,"_coercedNumber",0,sB,"_coercedString",0,sg,"_cuid",0,sT,"_cuid2",0,sj,"_custom",0,l1,"_date",0,le,"_default",0,lH,"_discriminatedUnion",0,lR,"_e164",0,sL,"_email",0,sv,"_emoji",0,sS,"_endsWith",0,lk,"_enum",0,lU,"_file",0,lq,"_float32",0,sW,"_float64",0,sG,"_gt",0,la,"_gte",0,lo,"_guid",0,sy,"_includes",0,lw,"_int",0,sH,"_int32",0,sK,"_int64",0,s1,"_intersection",0,lP,"_ipv4",0,sN,"_ipv6",0,sO,"_isoDate",0,sF,"_isoDateTime",0,sz,"_isoDuration",0,sZ,"_isoTime",0,sq,"_jwt",0,sM,"_ksuid",0,sA,"_lazy",0,lQ,"_length",0,lv,"_literal",0,lF,"_lowercase",0,lb,"_lt",0,ln,"_lte",0,li,"_map",0,lL,"_max",0,li,"_maxLength",0,lh,"_maxSize",0,lp,"_mime",0,lE,"_min",0,lo,"_minLength",0,lg,"_minSize",0,lf,"_multipleOf",0,ld,"_nan",0,lr,"_nanoid",0,sE,"_nativeEnum",0,lz,"_negative",0,ll,"_never",0,s7,"_nonnegative",0,lc,"_nonoptional",0,lW,"_nonpositive",0,lu,"_normalize",0,lj,"_null",0,s6,"_nullable",0,lB,"_number",0,sV,"_optional",0,lV,"_overwrite",0,lT,"_parse",0,tO,"_parseAsync",0,tP,"_pipe",0,lY,"_positive",0,ls,"_promise",0,l0,"_property",0,lS,"_readonly",0,lX,"_record",0,l$,"_refine",0,l2,"_regex",0,ly,"_safeParse",0,t$,"_safeParseAsync",0,tM,"_set",0,lM,"_size",0,lm,"_startsWith",0,l_,"_string",0,sh,"_stringFormat",0,l3,"_stringbool",0,l4,"_success",0,lG,"_symbol",0,s4,"_templateLiteral",0,lJ,"_toLowerCase",0,lC,"_toUpperCase",0,lA,"_transform",0,lZ,"_trim",0,lI,"_tuple",0,lD,"_uint32",0,sY,"_uint64",0,s2,"_ulid",0,sI,"_undefined",0,s3,"_union",0,lO,"_unknown",0,s9,"_uppercase",0,lx,"_url",0,sk,"_uuid",0,sb,"_uuidv4",0,sx,"_uuidv6",0,sw,"_uuidv7",0,s_,"_void",0,s8,"_xid",0,sC,"clone",0,td,"config",0,e4,"flattenError",0,tj,"formatError",0,tI,"function",0,l5,"globalConfig",0,e2,"globalRegistry",0,tX,"isValidBase64",0,of,"isValidBase64URL",0,oh,"isValidJWT",0,oy,"locales",0,sm,"parse",0,tR,"parseAsync",0,tD,"prettifyError",0,tN,"regexes",0,sd,"registry",0,tY,"safeParse",0,tL,"safeParseAsync",0,tU,"toDotPath",0,tA,"toJSONSchema",0,tQ,"treeifyError",0,tC,"util",0,sc,"version",0,a0],92583);var l7=e.i(92583);let l8=eQ("ZodISODateTime",(e,t)=>{oa.init(e,t),ud.init(e,t)});function ue(e){return sz(l8,e)}let ut=eQ("ZodISODate",(e,t)=>{oo.init(e,t),ud.init(e,t)});function ur(e){return sF(ut,e)}let un=eQ("ZodISOTime",(e,t)=>{os.init(e,t),ud.init(e,t)});function ui(e){return sq(un,e)}let ua=eQ("ZodISODuration",(e,t)=>{ol.init(e,t),ud.init(e,t)});function uo(e){return sZ(ua,e)}let us=eQ("ZodType",(e,t)=>(a1.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),e.clone=(t,r)=>td(e,t,r),e.brand=()=>e,e.register=(t,r)=>(t.add(e,r),e),e.parse=(t,r)=>tZ(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>tB(e,t,r),e.parseAsync=async(t,r)=>tV(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>tH(e,t,r),e.spa=e.safeParseAsync,e.refine=(t,r)=>e.check(dx(t,r)),e.superRefine=t=>e.check(dw(t)),e.overwrite=t=>e.check(lT(t)),e.optional=()=>c0(e),e.nullable=()=>c2(e),e.nullish=()=>c0(c2(e)),e.nonoptional=t=>c8(e,t),e.array=()=>ck(e),e.or=t=>cA([e,t]),e.and=t=>cP(e,t),e.transform=t=>dl(e,cJ(t)),e.default=t=>c6(e,t),e.prefault=t=>c9(e,t),e.catch=t=>dn(e,t),e.pipe=t=>dl(e,t),e.readonly=()=>dc(e),e.describe=t=>{let r=e.clone();return tX.add(r,{description:t}),r},Object.defineProperty(e,"description",{get:()=>tX.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return tX.get(e);let r=e.clone();return tX.add(r,t[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),ul=eQ("_ZodString",(e,t)=>{a2.init(e,t),us.init(e,t);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...t)=>e.check(ly(...t)),e.includes=(...t)=>e.check(lw(...t)),e.startsWith=(...t)=>e.check(l_(...t)),e.endsWith=(...t)=>e.check(lk(...t)),e.min=(...t)=>e.check(lg(...t)),e.max=(...t)=>e.check(lh(...t)),e.length=(...t)=>e.check(lv(...t)),e.nonempty=(...t)=>e.check(lg(1,...t)),e.lowercase=t=>e.check(lb(t)),e.uppercase=t=>e.check(lx(t)),e.trim=()=>e.check(lI()),e.normalize=(...t)=>e.check(lj(...t)),e.toLowerCase=()=>e.check(lC()),e.toUpperCase=()=>e.check(lA())}),uu=eQ("ZodString",(e,t)=>{a2.init(e,t),ul.init(e,t),e.email=t=>e.check(sv(up,t)),e.url=t=>e.check(sk(uw,t)),e.jwt=t=>e.check(sM(uX,t)),e.emoji=t=>e.check(sS(uk,t)),e.guid=t=>e.check(sy(um,t)),e.uuid=t=>e.check(sb(ug,t)),e.uuidv4=t=>e.check(sx(ug,t)),e.uuidv6=t=>e.check(sw(ug,t)),e.uuidv7=t=>e.check(s_(ug,t)),e.nanoid=t=>e.check(sE(uE,t)),e.guid=t=>e.check(sy(um,t)),e.cuid=t=>e.check(sT(uj,t)),e.cuid2=t=>e.check(sj(uC,t)),e.ulid=t=>e.check(sI(uN,t)),e.base64=t=>e.check(sD(uB,t)),e.base64url=t=>e.check(s$(uW,t)),e.xid=t=>e.check(sC(uR,t)),e.ksuid=t=>e.check(sA(uD,t)),e.ipv4=t=>e.check(sN(uL,t)),e.ipv6=t=>e.check(sO(uU,t)),e.cidrv4=t=>e.check(sR(uF,t)),e.cidrv6=t=>e.check(sP(uZ,t)),e.e164=t=>e.check(sL(uK,t)),e.datetime=t=>e.check(ue(t)),e.date=t=>e.check(ur(t)),e.time=t=>e.check(ui(t)),e.duration=t=>e.check(uo(t))});function uc(e){return sh(uu,e)}let ud=eQ("ZodStringFormat",(e,t)=>{a4.init(e,t),ul.init(e,t)}),up=eQ("ZodEmail",(e,t)=>{a5.init(e,t),ud.init(e,t)});function uf(e){return sv(up,e)}let um=eQ("ZodGUID",(e,t)=>{a3.init(e,t),ud.init(e,t)});function uh(e){return sy(um,e)}let ug=eQ("ZodUUID",(e,t)=>{a6.init(e,t),ud.init(e,t)});function uv(e){return sb(ug,e)}function uy(e){return sx(ug,e)}function ub(e){return sw(ug,e)}function ux(e){return s_(ug,e)}let uw=eQ("ZodURL",(e,t)=>{a9.init(e,t),ud.init(e,t)});function u_(e){return sk(uw,e)}let uk=eQ("ZodEmoji",(e,t)=>{a7.init(e,t),ud.init(e,t)});function uS(e){return sS(uk,e)}let uE=eQ("ZodNanoID",(e,t)=>{a8.init(e,t),ud.init(e,t)});function uT(e){return sE(uE,e)}let uj=eQ("ZodCUID",(e,t)=>{oe.init(e,t),ud.init(e,t)});function uI(e){return sT(uj,e)}let uC=eQ("ZodCUID2",(e,t)=>{ot.init(e,t),ud.init(e,t)});function uA(e){return sj(uC,e)}let uN=eQ("ZodULID",(e,t)=>{or.init(e,t),ud.init(e,t)});function uO(e){return sI(uN,e)}let uR=eQ("ZodXID",(e,t)=>{on.init(e,t),ud.init(e,t)});function uP(e){return sC(uR,e)}let uD=eQ("ZodKSUID",(e,t)=>{oi.init(e,t),ud.init(e,t)});function u$(e){return sA(uD,e)}let uL=eQ("ZodIPv4",(e,t)=>{ou.init(e,t),ud.init(e,t)});function uM(e){return sN(uL,e)}let uU=eQ("ZodIPv6",(e,t)=>{oc.init(e,t),ud.init(e,t)});function uz(e){return sO(uU,e)}let uF=eQ("ZodCIDRv4",(e,t)=>{od.init(e,t),ud.init(e,t)});function uq(e){return sR(uF,e)}let uZ=eQ("ZodCIDRv6",(e,t)=>{op.init(e,t),ud.init(e,t)});function uV(e){return sP(uZ,e)}let uB=eQ("ZodBase64",(e,t)=>{om.init(e,t),ud.init(e,t)});function uH(e){return sD(uB,e)}let uW=eQ("ZodBase64URL",(e,t)=>{og.init(e,t),ud.init(e,t)});function uG(e){return s$(uW,e)}let uK=eQ("ZodE164",(e,t)=>{ov.init(e,t),ud.init(e,t)});function uY(e){return sL(uK,e)}let uX=eQ("ZodJWT",(e,t)=>{ob.init(e,t),ud.init(e,t)});function uJ(e){return sM(uX,e)}let uQ=eQ("ZodCustomStringFormat",(e,t)=>{ox.init(e,t),ud.init(e,t)});function u0(e,t,r={}){return l3(uQ,e,t,r)}let u1=eQ("ZodNumber",(e,t)=>{ow.init(e,t),us.init(e,t),e.gt=(t,r)=>e.check(la(t,r)),e.gte=(t,r)=>e.check(lo(t,r)),e.min=(t,r)=>e.check(lo(t,r)),e.lt=(t,r)=>e.check(ln(t,r)),e.lte=(t,r)=>e.check(li(t,r)),e.max=(t,r)=>e.check(li(t,r)),e.int=t=>
58e.check(u3(t)),e.safe=t=>e.check(u3(t)),e.positive=t=>e.check(la(0,t)),e.nonnegative=t=>e.check(lo(0,t)),e.negative=t=>e.check(ln(0,t)),e.nonpositive=t=>e.check(li(0,t)),e.multipleOf=(t,r)=>e.check(ld(t,r)),e.step=(t,r)=>e.check(ld(t,r)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??-1/0,r.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(r.maximum??1/0,r.exclusiveMaximum??1/0)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function u2(e){return sV(u1,e)}let u4=eQ("ZodNumberFormat",(e,t)=>{o_.init(e,t),u1.init(e,t)});function u3(e){return sH(u4,e)}function u6(e){return sW(u4,e)}function u5(e){return sG(u4,e)}function u9(e){return sK(u4,e)}function u7(e){return sY(u4,e)}let u8=eQ("ZodBoolean",(e,t)=>{ok.init(e,t),us.init(e,t)});function ce(e){return sX(u8,e)}let ct=eQ("ZodBigInt",(e,t)=>{oS.init(e,t),us.init(e,t),e.gte=(t,r)=>e.check(lo(t,r)),e.min=(t,r)=>e.check(lo(t,r)),e.gt=(t,r)=>e.check(la(t,r)),e.gte=(t,r)=>e.check(lo(t,r)),e.min=(t,r)=>e.check(lo(t,r)),e.lt=(t,r)=>e.check(ln(t,r)),e.lte=(t,r)=>e.check(li(t,r)),e.max=(t,r)=>e.check(li(t,r)),e.positive=t=>e.check(la(BigInt(0),t)),e.negative=t=>e.check(ln(BigInt(0),t)),e.nonpositive=t=>e.check(li(BigInt(0),t)),e.nonnegative=t=>e.check(lo(BigInt(0),t)),e.multipleOf=(t,r)=>e.check(ld(t,r));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function cr(e){return sQ(ct,e)}let cn=eQ("ZodBigIntFormat",(e,t)=>{oE.init(e,t),ct.init(e,t)});function ci(e){return s1(cn,e)}function ca(e){return s2(cn,e)}let co=eQ("ZodSymbol",(e,t)=>{oT.init(e,t),us.init(e,t)});function cs(e){return s4(co,e)}let cl=eQ("ZodUndefined",(e,t)=>{oj.init(e,t),us.init(e,t)});function cu(e){return s3(cl,e)}let cc=eQ("ZodNull",(e,t)=>{oI.init(e,t),us.init(e,t)});function cd(e){return s6(cc,e)}let cp=eQ("ZodAny",(e,t)=>{oC.init(e,t),us.init(e,t)});function cf(){return s5(cp)}let cm=eQ("ZodUnknown",(e,t)=>{oA.init(e,t),us.init(e,t)});function ch(){return s9(cm)}let cg=eQ("ZodNever",(e,t)=>{oN.init(e,t),us.init(e,t)});function cv(e){return s7(cg,e)}let cy=eQ("ZodVoid",(e,t)=>{oO.init(e,t),us.init(e,t)});function cb(e){return s8(cy,e)}let cx=eQ("ZodDate",(e,t)=>{oR.init(e,t),us.init(e,t),e.min=(t,r)=>e.check(lo(t,r)),e.max=(t,r)=>e.check(li(t,r));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function cw(e){return le(cx,e)}let c_=eQ("ZodArray",(e,t)=>{oD.init(e,t),us.init(e,t),e.element=t.element,e.min=(t,r)=>e.check(lg(t,r)),e.nonempty=t=>e.check(lg(1,t)),e.max=(t,r)=>e.check(lh(t,r)),e.length=(t,r)=>e.check(lv(t,r)),e.unwrap=()=>e.element});function ck(e,t){return lN(c_,e,t)}function cS(e){return cG(Object.keys(e._zod.def.shape))}let cE=eQ("ZodObject",(e,t)=>{oM.init(e,t),us.init(e,t),sc.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>cB(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ch()}),e.loose=()=>e.clone({...e._zod.def,catchall:ch()}),e.strict=()=>e.clone({...e._zod.def,catchall:cv()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>sc.extend(e,t),e.merge=t=>sc.merge(e,t),e.pick=t=>sc.pick(e,t),e.omit=t=>sc.omit(e,t),e.partial=(...t)=>sc.partial(cQ,e,t[0]),e.required=(...t)=>sc.required(c7,e,t[0])});function cT(e,t){return new cE({type:"object",get shape(){return sc.assignProp(this,"shape",{...e}),this.shape},...sc.normalizeParams(t)})}function cj(e,t){return new cE({type:"object",get shape(){return sc.assignProp(this,"shape",{...e}),this.shape},catchall:cv(),...sc.normalizeParams(t)})}function cI(e,t){return new cE({type:"object",get shape(){return sc.assignProp(this,"shape",{...e}),this.shape},catchall:ch(),...sc.normalizeParams(t)})}let cC=eQ("ZodUnion",(e,t)=>{oz.init(e,t),us.init(e,t),e.options=t.options});function cA(e,t){return new cC({type:"union",options:e,...sc.normalizeParams(t)})}let cN=eQ("ZodDiscriminatedUnion",(e,t)=>{cC.init(e,t),oF.init(e,t)});function cO(e,t,r){return new cN({type:"union",options:t,discriminator:e,...sc.normalizeParams(r)})}let cR=eQ("ZodIntersection",(e,t)=>{oq.init(e,t),us.init(e,t)});function cP(e,t){return new cR({type:"intersection",left:e,right:t})}let cD=eQ("ZodTuple",(e,t)=>{oV.init(e,t),us.init(e,t),e.rest=t=>e.clone({...e._zod.def,rest:t})});function c$(e,t,r){let n=t instanceof a1,i=n?r:t;
58return new cD({type:"tuple",items:e,rest:n?t:null,...sc.normalizeParams(i)})}let cL=eQ("ZodRecord",(e,t)=>{oH.init(e,t),us.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function cM(e,t,r){return new cL({type:"record",keyType:e,valueType:t,...sc.normalizeParams(r)})}function cU(e,t,r){return new cL({type:"record",keyType:cA([e,cv()]),valueType:t,...sc.normalizeParams(r)})}let cz=eQ("ZodMap",(e,t)=>{oW.init(e,t),us.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function cF(e,t,r){return new cz({type:"map",keyType:e,valueType:t,...sc.normalizeParams(r)})}let cq=eQ("ZodSet",(e,t)=>{oK.init(e,t),us.init(e,t),e.min=(...t)=>e.check(lf(...t)),e.nonempty=t=>e.check(lf(1,t)),e.max=(...t)=>e.check(lp(...t)),e.size=(...t)=>e.check(lm(...t))});function cZ(e,t){return new cq({type:"set",valueType:e,...sc.normalizeParams(t)})}let cV=eQ("ZodEnum",(e,t)=>{oX.init(e,t),us.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(e,n)=>{let i={};for(let n of e)if(r.has(n))i[n]=t.entries[n];else throw Error(`Key ${n} not found in enum`);return new cV({...t,checks:[],...sc.normalizeParams(n),entries:i})},e.exclude=(e,n)=>{let i={...t.entries};for(let t of e)if(r.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new cV({...t,checks:[],...sc.normalizeParams(n),entries:i})}});function cB(e,t){return new cV({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...sc.normalizeParams(t)})}function cH(e,t){return new cV({type:"enum",entries:e,...sc.normalizeParams(t)})}let cW=eQ("ZodLiteral",(e,t)=>{oJ.init(e,t),us.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if
58(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function cG(e,t){return new cW({type:"literal",values:Array.isArray(e)?e:[e],...sc.normalizeParams(t)})}let cK=eQ("ZodFile",(e,t)=>{oQ.init(e,t),us.init(e,t),e.min=(t,r)=>e.check(lf(t,r)),e.max=(t,r)=>e.check(lp(t,r)),e.mime=(t,r)=>e.check(lE(Array.isArray(t)?t:[t],r))});function cY(e){return lq(cK,e)}let cX=eQ("ZodTransform",(e,t)=>{o0.init(e,t),us.init(e,t),e._zod.parse=(r,n)=>{r.addIssue=n=>{"string"==typeof n?r.issues.push(sc.issue(n,r.value,t)):(n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=e),n.continue??(n.continue=!0),r.issues.push(sc.issue(n)))};let i=t.transform(r.value,r);return i instanceof Promise?i.then(e=>(r.value=e,r)):(r.value=i,r)}});function cJ(e){return new cX({type:"transform",transform:e})}let cQ=eQ("ZodOptional",(e,t)=>{o1.init(e,t),us.init(e,t),e.unwrap=()=>e._zod.def.innerType});function c0(e){return new cQ({type:"optional",innerType:e})}let c1=eQ("ZodNullable",(e,t)=>{o2.init(e,t),us.init(e,t),e.unwrap=()=>e._zod.def.innerType});function c2(e){return new c1({type:"nullable",innerType:e})}function c4(e){return c0(c2(e))}let c3=eQ("ZodDefault",(e,t)=>{o4.init(e,t),us.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function c6(e,t){return new c3({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():t}})}let c5=eQ("ZodPrefault",(e,t)=>{o6.init(e,t),us.init(e,t),e.unwrap=()=>e._zod.def.innerType});function c9(e,t){return new c5({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():t}})}let c7=eQ("ZodNonOptional",(e,t)=>{o5.init(e,t),us.init(e,t),e.unwrap=()=>e._zod.def.innerType});function c8(e,t){return new c7({type:"nonoptional",innerType:e,...sc.normalizeParams(t)})}let de=eQ("ZodSuccess",(e,t)=>{o7.init(e,t),us.init(e,t),e.unwrap=()=>e._zod.def.innerType});function dt(e){return new de({type:"success",innerType:e})}let dr=eQ("ZodCatch",(e,t)=>{o8.init(e,t),us.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function dn(e,t){return new dr({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})}let di=eQ("ZodNaN",(e,t)=>{se.init(e,t),us.init(e,t)});function da(e){return lr(di,e)}let ds=eQ("ZodPipe",(e,t)=>{st.init(e,t),us.init(e,t),e.in=t.in,e.out=t.out});function dl(e,t){return new ds({type:"pipe",in:e,out:t})}let du=eQ("ZodReadonly",(e,t)=>{sn.init(e,t),us.init(e,t)});function dc(e){return new du({type:"readonly",innerType:e})}let dd=eQ("ZodTemplateLiteral",(e,t)=>{sa.init(e,t),us.init(e,t)});function dp(e,t){return new dd({type:"template_literal",parts:e,...sc.normalizeParams(t)})}let df=eQ("ZodLazy",(e,t)=>{ss.init(e,t),us.init(e,t),e.unwrap=()=>e._zod.def.getter()});function dm(e){return new df({type:"lazy",getter:e})}let dh=eQ("ZodPromise",(e,t)=>{so.init(e,t),us.init(e,t),e.unwrap=()=>e._zod.def.innerType});function dg(e){return new dh({type:"promise",innerType:e})}let dv=eQ("ZodCustom",(e,t)=>{sl.init(e,t),us.init(e,t)});function dy(e){let t=new aC({check:"custom"});return t._zod.check=e,t}function db(e,t){return l1(dv,e??(()=>!0),t)}function dx(e,t={}){return l2(dv,e,t)}function dw(e){let t=dy(r=>(r.addIssue=e=>{"string"==typeof e?r.issues.push(sc.issue(e,r.value,t._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),e.input??(e.input=r.value),e.inst??(e.inst=t),e.continue??(e.continue=!t._zod.def.abort),r.issues.push(sc.issue(e)))},e(r.value,r)));return t}function d_(e,t={error:`Input not instance of ${e.name}`}){let r=new dv({type:"custom",check:"custom",fn:t=>t instanceof e,abort:!0,...sc.normalizeParams(t)});return r._zod.bag.Class=e,r}let dk=(...e)=>l4({Pipe:ds,Boolean:u8,String:uu,Transform:cX},...e);function dS(e){let t=dm(()=>cA([uc(e),u2(),ce(),cd(),ck(t),cM(uc(),t)]));return t}function dE(e,t){return dl(cJ(e),t)}e.i(849881),e.s([],131187),e.i(131187),e.s(["endsWith",0,lk,"gt",0,la,"gte",0,lo,"includes",0,lw,"length",0,lv,"lowercase",0,lb,"lt",0,ln,"lte",0,li,"maxLength",0,lh,"maxSize",0,lp,"mime",0,lE,"minLength",0,lg,"minSize",0,lf,"multipleOf",0,ld,"negative",0,ll,"nonnegative",0,lc,"nonpositive",0,lu,"normalize",0,lj,"overwrite",0,lT,"positive",0,ls,"property",0,lS,"regex",0,ly,"size",0,lm,"startsWith",0,l_,"toLowerCase",0,lC,"toUpperCase",0,lA,"trim",0,lI,"uppercase",0,lx],372614),e.i(372614),e.i(386625),e.i(641631);
58let dT={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function dj(e){e4({customError:e})}function dI(){return e4().customError}e.s(["ZodIssueCode",0,dT,"getErrorMap",0,dI,"setErrorMap",0,dj],137727),e.i(137727),e.s(["$brand",0,e0,"ZodIssueCode",0,dT,"config",0,e4,"getErrorMap",0,dI,"setErrorMap",0,dj],244646),e.i(244646);var dC=e.i(863143);e.s(["bigint",0,function(e){return s0(ct,e)},"boolean",0,function(e){return sJ(u8,e)},"date",0,function(e){return lt(cx,e)},"number",0,function(e){return sB(u1,e)},"string",0,function(e){return sg(uu,e)}],962845);var dA=e.i(962845);e.s(["$brand",0,e0,"$input",0,tG,"$output",0,tW,"NEVER",0,eJ,"TimePrecision",0,sU,"ZodAny",0,cp,"ZodArray",0,c_,"ZodBase64",0,uB,"ZodBase64URL",0,uW,"ZodBigInt",0,ct,"ZodBigIntFormat",0,cn,"ZodBoolean",0,u8,"ZodCIDRv4",0,uF,"ZodCIDRv6",0,uZ,"ZodCUID",0,uj,"ZodCUID2",0,uC,"ZodCatch",0,dr,"ZodCustom",0,dv,"ZodCustomStringFormat",0,uQ,"ZodDate",0,cx,"ZodDefault",0,c3,"ZodDiscriminatedUnion",0,cN,"ZodE164",0,uK,"ZodEmail",0,up,"ZodEmoji",0,uk,"ZodEnum",0,cV,"ZodError",0,tF,"ZodFile",0,cK,"ZodGUID",0,um,"ZodIPv4",0,uL,"ZodIPv6",0,uU,"ZodISODate",0,ut,"ZodISODateTime",0,l8,"ZodISODuration",0,ua,"ZodISOTime",0,un,"ZodIntersection",0,cR,"ZodIssueCode",0,dT,"ZodJWT",0,uX,"ZodKSUID",0,uD,"ZodLazy",0,df,"ZodLiteral",0,cW,"ZodMap",0,cz,"ZodNaN",0,di,"ZodNanoID",0,uE,"ZodNever",0,cg,"ZodNonOptional",0,c7,"ZodNull",0,cc,"ZodNullable",0,c1,"ZodNumber",0,u1,"ZodNumberFormat",0,u4,"ZodObject",0,cE,"ZodOptional",0,cQ,"ZodPipe",0,ds,"ZodPrefault",0,c5,"ZodPromise",0,dh,"ZodReadonly",0,du,"ZodRealError",0,tq,"ZodRecord",0,cL,"ZodSet",0,cq,"ZodString",0,uu,"ZodStringFormat",0,ud,"ZodSuccess",0,de,"ZodSymbol",0,co,"ZodTemplateLiteral",0,dd,"ZodTransform",0,cX,"ZodTuple",0,cD,"ZodType",0,us,"ZodULID",0,uN,"ZodURL",0,uw,"ZodUUID",0,ug,"ZodUndefined",0,cl,"ZodUnion",0,cC,"ZodUnknown",0,cm,"ZodVoid",0,cy,"ZodXID",0,uR,"_ZodString",0,ul,"_default",0,c6,"any",0,cf,"array",0,ck,"base64",0,uH,"base64url",0,uG,"bigint",0,cr,"boolean",0,ce,"catch",0,dn,"check",0,dy,"cidrv4",0,uq,"cidrv6",0,uV,"clone",0,td,"coerce",0,dA,"config",0,e4,"core",0,l7,"cuid",0,uI,"cuid2",0,uA,"custom",0,db,"date",0,cw,"discriminatedUnion",0,cO,"e164",0,uY,"email",0,uf,"emoji",0,uS,"endsWith",0,lk,"enum",0,cB,"file",0,cY,"flattenError",0,tj,"float32",0,u6,"float64",0,u5,"formatError",0,tI,"function",0,l5,"getErrorMap",0,dI,"globalRegistry",0,tX,"gt",0,la,"gte",0,lo,"guid",0,uh,"includes",0,lw,"instanceof",0,d_,"int",0,u3,"int32",0,u9,"int64",0,ci,"intersection",0,cP,"ipv4",0,uM,"ipv6",0,uz,"iso",0,dC,"json",0,dS,"jwt",0,uJ,"keyof",0,cS,"ksuid",0,u$,"lazy",0,dm,"length",0,lv,"literal",0,cG,"locales",0,sm,"looseObject",0,cI,"lowercase",0,lb,"lt",0,ln,"lte",0,li,"map",0,cF,"maxLength",0,lh,"maxSize",0,lp,"mime",0,lE,"minLength",0,lg,"minSize",0,lf,"multipleOf",0,ld,"nan",0,da,"nanoid",0,uT,"nativeEnum",0,cH,"negative",0,ll,"never",0,cv,"nonnegative",0,lc,"nonoptional",0,c8,"nonpositive",0,lu,"normalize",0,lj,"null",0,cd,"nullable",0,c2,"nullish",0,c4,"number",0,u2,"object",0,cT,"optional",0,c0,"overwrite",0,lT,"parse",0,tZ,"parseAsync",0,tV,"partialRecord",0,cU,"pipe",0,dl,"positive",0,ls,"prefault",0,c9,"preprocess",0,dE,"prettifyError",0,tN,"promise",0,dg,"property",0,lS,"readonly",0,dc,"record",0,cM,"refine",0,dx,"regex",0,ly,"regexes",()=>sd,"registry",0,tY,"safeParse",0,tB,"safeParseAsync",0,tH,"set",0,cZ,"setErrorMap",0,dj,"size",0,lm,"startsWith",0,l_,"strictObject",0,cj,"string",0,uc,"stringFormat",0,u0,"stringbool",0,dk,"success",0,dt,"superRefine",0,dw,"symbol",0,cs,"templateLiteral",0,dp,"toJSONSchema",0,tQ,"toLowerCase",0,lC,"toUpperCase",0,lA,"transform",0,cJ,"treeifyError",0,tC,"trim",0,lI,"tuple",0,c$,"uint32",0,u7,"uint64",0,ca,"ulid",0,uO,"undefined",0,cu,"union",0,cA,"unknown",0,ch,"uppercase",0,lx,"url",0,u_,"uuid",0,uv,"uuidv4",0,uy,"uuidv6",0,ub,"uuidv7",0,ux,"void",0,cb,"xid",0,uP],411650);var dN=e.i(411650),dN=dN;e.s([],180703),e.i(180703),e.i(725827),e.s(["defaultErrorMap",0,t6,"getErrorMap",0,t7,"setErrorMap",0,t9],279407),e.i(279407),e.i(696555),e.s([],924326),e.i(924326),e.i(458728),e.i(
58703016),e.i(559413),e.s(["BRAND",0,nn,"DIRTY",0,ri,"EMPTY_PATH",0,re,"INVALID",0,rn,"NEVER",0,rn,"OK",0,ra,"ParseStatus",0,rr,"Schema",0,rf,"ZodAny",0,rz,"ZodArray",0,rV,"ZodBigInt",0,rP,"ZodBoolean",0,rD,"ZodBranded",0,ni,"ZodCatch",0,nt,"ZodDate",0,r$,"ZodDefault",0,ne,"ZodDiscriminatedUnion",0,rG,"ZodEffects",0,r9,"ZodEnum",0,r3,"ZodError",0,t3,"ZodFirstPartyTypeKind",0,k,"ZodFunction",0,r0,"ZodIntersection",0,rK,"ZodIssueCode",0,t2,"ZodLazy",0,r1,"ZodLiteral",0,r2,"ZodMap",0,rJ,"ZodNaN",0,nr,"ZodNativeEnum",0,r6,"ZodNever",0,rq,"ZodNull",0,rU,"ZodNullable",0,r8,"ZodNumber",0,rR,"ZodObject",0,rB,"ZodOptional",0,r7,"ZodParsedType",0,t0,"ZodPipeline",0,na,"ZodPromise",0,r5,"ZodReadonly",0,no,"ZodRecord",0,rX,"ZodSchema",0,rf,"ZodSet",0,rQ,"ZodString",0,rO,"ZodSymbol",0,rL,"ZodTransformer",0,r9,"ZodTuple",0,rY,"ZodType",0,rf,"ZodUndefined",0,rM,"ZodUnion",0,rH,"ZodUnknown",0,rF,"ZodVoid",0,rZ,"addIssueToContext",0,rt,"any",0,nx,"array",0,nS,"bigint",0,nm,"boolean",0,nh,"coerce",0,nG,"custom",0,nl,"date",0,ng,"datetimeRegex",0,rN,"defaultErrorMap",0,t6,"discriminatedUnion",0,nI,"effect",0,nz,"enum",0,nL,"function",0,nP,"getErrorMap",0,t7,"getParsedType",0,t1,"instanceof",0,nc,"intersection",0,nC,"isAborted",0,ro,"isAsync",0,ru,"isDirty",0,rs,"isValid",0,rl,"late",0,nu,"lazy",0,nD,"literal",0,n$,"makeIssue",0,t8,"map",0,nO,"nan",0,nf,"nativeEnum",0,nM,"never",0,n_,"null",0,nb,"nullable",0,nq,"number",0,np,"object",0,nE,"objectUtil",0,w,"oboolean",0,nW,"onumber",0,nH,"optional",0,nF,"ostring",0,nB,"pipeline",0,nV,"preprocess",0,nZ,"promise",0,nU,"quotelessJson",0,t4,"record",0,nN,"set",0,nR,"setErrorMap",0,t9,"strictObject",0,nT,"string",0,nd,"symbol",0,nv,"transformer",0,nz,"tuple",0,nA,"undefined",0,ny,"union",0,nj,"unknown",0,nw,"util",0,x,"void",0,nk],966951);var dO=e.i(966951);e.s(["z",0,dO],832356);var dO=dO,dR=e.i(439780),dP=Symbol.for("vercel.ai.gateway.error"),dD=class e extends(E=Error,S=dP,E){constructor({message:e,statusCode:t=500,cause:r}){super(e),this[S]=!0,this.statusCode=t,this.cause=r}static isInstance(t){return e.hasMarker(t)}static hasMarker(e){return"object"==typeof e&&null!==e&&dP in e&&!0===e[dP]}},d$="GatewayAuthenticationError",dL=Symbol.for(`vercel.ai.gateway.error.${d$}`),dM=class e extends(j=dD,T=dL,j){constructor({message:e="Authentication failed",statusCode:t=401,cause:r}={}){super({message:e,statusCode:t,cause:r}),this[T]=!0,this.name=d$,this.type="authentication_error"}static isInstance(e){return dD.hasMarker(e)&&dL in e}static createContextualError({apiKeyProvided:t,oidcTokenProvided:r,message:n="Authentication failed",statusCode:i=401,cause:a}){return new e({message:t?`AI Gateway authentication failed: Invalid API key. 59 60Create a new API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys 61 62Provide via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable.`:r?`AI Gateway authentication failed: Invalid OIDC token. 63 64Run 'npx vercel link' to link your project, then 'vc env pull' to fetch the token. 65 66Alternatively, use an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys`:`AI Gateway authentication failed: No authentication provided. 67 68Option 1 - API key: 69Create an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys 70Provide via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable. 71 72Option 2 - OIDC token: 73Run 'npx vercel link' to link your project, then 'vc env pull' to fetch the token.`,statusCode:i,cause:a})}},dU="GatewayInvalidRequestError",dz=Symbol.for(`vercel.ai.gateway.error.${dU}`),dF=class extends(C=dD,I=dz,C){constructor({message:e="Invalid request",statusCode:t=400,cause:r}={}){super({message:e,statusCode:t,cause:r}),this[I]=!0,this.name=dU,this.type="invalid_request_error"}static isInstance(e){return dD.hasMarker(e)&&dz in e}},dq="GatewayRateLimitError",dZ=Symbol.for(`vercel.ai.gateway.error.${dq}`),dV=class extends(N=dD,A=dZ,N){constructor({message:e="Rate limit exceeded",statusCode:t=429,cause:r}={}){super({message:e,statusCode:t,cause:r}),this[A]=!0,this.name=dq,this.type="rate_limit_exceeded"}static isInstance(e){return dD.hasMarker(e)&&dZ in e}},dB="GatewayModelNotFoundError",dH=Symbol.for(`vercel.ai.gateway.error.${dB}`),dW=iz(()=>iZ(dN.object({modelId:dN.string()}))),dG=class extends(R=dD,O=dH,R){constructor({message:e="Model not found",statusCode:t=404,modelId:r,cause:n}={}){super({message:e,statusCode:t,cause:n}),this[O]=!0,this.name=dB,this.type="model_not_found",this.modelId=r}static isInstance(e){return dD.hasMarker(e)&&dH in e}},dK="GatewayInternalServerError",dY=Symbol.for(`vercel.ai.gateway.error.${dK}`),dX=class extends(D=dD,P=dY,D){constructor({message:e="Internal server error",statusCode:t=500,cause:r}={}){super({message:e,statusCode:t,cause:r}),this[P]=!0,this.name=dK,this.type="internal_server_error"}static isInstance(e){return dD.hasMarker(e)&&dY in e}},dJ="GatewayResponseError",dQ=Symbol.for(`vercel.ai.gateway.error.${dJ}`),d0=class extends(L=dD,$=dQ,L){constructor({message:e="Invalid response from Gateway",statusCode:t=502,response:r,validationError:n,cause:i}={}){super({message:e,statusCode:t,cause:i}),this[$]=!0,this.name=dJ,this.type="response_error",this.response=r,this.validationError=n}static isInstance(e){return dD.hasMarker(e)&&dQ in e}};async function d1({response:e,statusCode:t,defaultMessage:r="Gateway request failed",cause:n,authMethod:i}){let a=await iB({value:e,schema:d2});if(!a.success)return new d0({message:`Invalid error response format: ${r}`,statusCode:t,response:e,validationError:a.error,cause:n});let o=a.value,s=o.error.type,l=o.error.message;switch(s){case"authentication_error":return dM.createContextualError({apiKeyProvided:"api-key"===i,oidcTokenProvided:"oidc"===i,statusCode:t,cause:n});
73case"invalid_request_error":return new dF({message:l,statusCode:t,cause:n});case"rate_limit_exceeded":return new dV({message:l,statusCode:t,cause:n});case"model_not_found":{let e=await iB({value:o.error.param,schema:dW});return new dG({message:l,statusCode:t,modelId:e.success?e.value.modelId:void 0,cause:n})}default:return new dX({message:l,statusCode:t,cause:n})}}var d2=iz(()=>iZ(dN.object({error:dN.object({message:dN.string(),type:dN.string().nullish(),param:dN.unknown().nullish(),code:dN.union([dN.string(),dN.number()]).nullish()})})));function d4(e,t){var r;return dD.isInstance(e)?e:eN.isInstance(e)?d1({response:function(e){if(void 0!==e.data)return e.data;if(null!=e.responseBody)try{return JSON.parse(e.responseBody)}catch(t){return e.responseBody}return{}}(e),statusCode:null!=(r=e.statusCode)?r:500,defaultMessage:"Gateway request failed",cause:e,authMethod:t}):d1({response:{},statusCode:500,defaultMessage:e instanceof Error?`Gateway request failed: ${e.message}`:"Unknown Gateway error",cause:e,authMethod:t})}var d3="ai-gateway-auth-method";async function d6(e){let t=await iB({value:e[d3],schema:d5});return t.success?t.value:void 0}var d5=iz(()=>iZ(dN.union([dN.literal("api-key"),dN.literal("oidc")]))),d9=class{constructor(e){this.config=e}async getAvailableModels(){try{let{value:e}=await ii({url:`${this.config.baseURL}/config`,headers:await iJ(this.config.headers()),successfulResponseHandler:i0(d7),failedResponseHandler:iQ({errorSchema:dN.any(),errorToMessage:e=>e}),fetch:this.config.fetch});return e}catch(e){throw await d4(e)}}async getCredits(){try{let e=new URL(this.config.baseURL),{value:t}=await ii({url:`${e.origin}/v1/credits`,headers:await iJ(this.config.headers()),successfulResponseHandler:i0(d8),failedResponseHandler:iQ({errorSchema:dN.any(),errorToMessage:e=>e}),fetch:this.config.fetch});return t}catch(e){throw await d4(e)}}},d7=iz(()=>iZ(dN.object({models:dN.array(dN.object({id:dN.string(),name:dN.string(),description:dN.string().nullish(),pricing:dN.object({input:dN.string(),output:dN.string(),input_cache_read:dN.string().nullish(),input_cache_write:dN.string().nullish()}).transform(({input:e,output:t,input_cache_read:r,input_cache_write:n})=>({input:e,output:t,...r?{cachedInputTokens:r}:{},...n?{cacheCreationInputTokens:n}:{}})).nullish(),specification:dN.object({specificationVersion:dN.literal("v3"),provider:dN.string(),modelId:dN.string()}),modelType:dN.enum(["language","embedding","image"]).nullish()}))}))),d8=iz(()=>iZ(dN.object({balance:dN.string(),total_used:dN.string()}).transform(({balance:e,total_used:t})=>({balance:e,totalUsed:t})))),pe=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.supportedUrls={"*/*":[/.*/]}}get provider(){return this.config.provider}async getArgs(e){let{abortSignal:t,...r}=e;return{args:this.maybeEncodeFileParts(r),warnings:[]}}async doGenerate(e){let{args:t,warnings:r}=await this.getArgs(e),{abortSignal:n}=e,i=await iJ(this.config.headers());try{let{responseHeaders:a,value:o,rawValue:s}=await iY({url:this.getUrl(),headers:nJ(i,e.headers,this.getModelConfigHeaders(this.modelId,!1),await iJ(this.config.o11yHeaders)),body:t,successfulResponseHandler:i0(dN.any()),failedResponseHandler:iQ({errorSchema:dN.any(),errorToMessage:e=>e}),...n&&{abortSignal:n},fetch:this.config.fetch});return{...o,request:{body:t},response:{headers:a,body:s},warnings:r}}catch(e){throw await d4(e,await d6(i))}}async doStream(e){let{args:t,warnings:r}=await this.getArgs(e),{abortSignal:n}=e,i=await iJ(this.config.headers());try{let a,{value:o,responseHeaders:s}=await iY({url:this.getUrl(),headers:nJ(i,e.headers,this.getModelConfigHeaders(this.modelId,!0),await iJ(this.config.o11yHeaders)),body:t,successfulResponseHandler:(a=dN.any(),async({response:e})=>{let t=nQ(e);if(null==e.body)throw new eD({});return{responseHeaders:t,value:iG({stream:e.body,schema:a})}}),failedResponseHandler:iQ({errorSchema:dN.any(),errorToMessage:e=>e}),...n&&{abortSignal:n},fetch:this.config.fetch});return{stream:o.pipeThrough(new TransformStream({start(e){r.length>0&&e.enqueue({type:"stream-start",warnings:r})},transform(t,r){if(t.success){let n=t.value;("raw"!==n.type||e.includeRawChunks)&&("response-metadata"===n.type&&n.timestamp&&"string"==typeof n.timestamp&&(n.timestamp=new Date(n.timestamp)),r.enqueue(n))}else r.error(t.error)}})),request:{body:t},response:{headers:s}}}catch(e){throw await d4(e,await d6(i))}}isFilePart(e){return e&&"object"==typeof e&&"type"in e&&"file"===e.type}maybeEncodeFileParts(e){for(let t of e.prompt)for(let e of t.content)if(this.isFilePart(e)&&e.data instanceof Uint8Array){let t=Uint8Array.from(e.data),r=eS.Buffer.from(t).toString("base64");e.data=new URL(`data:${e.mediaType||"application/octet-stream"};base64,${r}`)}return e}getUrl(){return`${this.config.baseURL}/language-model`}getModelConfigHeaders(e,t){return{"ai-language-model-specification-version":"3","ai-language-model-id":e,"ai-language-model-streaming":String(t)}}},pt=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.maxEmbeddingsPerCall=2048,this.supportsParallelCalls=!0}get provider(){return this.config.provider}async doEmbed({values:e,headers:t,abortSignal:r,providerOptions:n}){var i;let a=await iJ(this.config.headers());try{let{responseHeaders:o,value:s,rawValue:l}=await iY({url:this.getUrl(),headers:nJ(a,null!=t?t:{},this.getModelConfigHeaders(),await iJ(this.config.o11yHeaders)),body:{values:e,...n?{providerOptions:n}:{}},successfulResponseHandler:i0(pr),failedResponseHandler:iQ({errorSchema:dN.any(),errorToMessage:e=>e}
73),...r&&{abortSignal:r},fetch:this.config.fetch});return{embeddings:s.embeddings,usage:null!=(i=s.usage)?i:void 0,providerMetadata:s.providerMetadata,response:{headers:o,body:l},warnings:[]}}catch(e){throw await d4(e,await d6(a))}}getUrl(){return`${this.config.baseURL}/embedding-model`}getModelConfigHeaders(){return{"ai-embedding-model-specification-version":"3","ai-model-id":this.modelId}}},pr=iz(()=>iZ(dN.object({embeddings:dN.array(dN.array(dN.number())),usage:dN.object({tokens:dN.number()}).nullish(),providerMetadata:dN.record(dN.string(),dN.record(dN.string(),dN.unknown())).optional()}))),pn=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.maxImagesPerCall=Number.MAX_SAFE_INTEGER}get provider(){return this.config.provider}async doGenerate({prompt:e,n:t,size:r,aspectRatio:n,seed:i,files:a,mask:o,providerOptions:s,headers:l,abortSignal:u}){var c;let d=await iJ(this.config.headers());try{let{responseHeaders:p,value:f,rawValue:m}=await iY({url:this.getUrl(),headers:nJ(d,null!=l?l:{},this.getModelConfigHeaders(),await iJ(this.config.o11yHeaders)),body:{prompt:e,n:t,...r&&{size:r},...n&&{aspectRatio:n},...i&&{seed:i},...s&&{providerOptions:s},...a&&{files:a.map(e=>pi(e))},...o&&{mask:pi(o)}},successfulResponseHandler:i0(po),failedResponseHandler:iQ({errorSchema:dN.any(),errorToMessage:e=>e}),...u&&{abortSignal:u},fetch:this.config.fetch});return{images:f.images,warnings:null!=(c=f.warnings)?c:[],providerMetadata:f.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:p}}}catch(e){throw d4(e,await d6(d))}}getUrl(){return`${this.config.baseURL}/image-model`}getModelConfigHeaders(){return{"ai-image-model-specification-version":"3","ai-model-id":this.modelId}}};function pi(e){return"file"===e.type&&e.data instanceof Uint8Array?{...e,data:function(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCodePoint(e[r]);return n0(t)}(e.data)}:e}var pa=dN.object({images:dN.array(dN.unknown()).optional()}).catchall(dN.unknown()),po=dN.object({images:dN.array(dN.string()),warnings:dN.array(dN.object({type:dN.literal("other"),message:dN.string()})).optional(),providerMetadata:dN.record(dN.string(),pa).optional()}),ps=function({id:e,inputSchema:t,outputSchema:r,supportsDeferredResults:n}){return({execute:i,needsApproval:a,toModelOutput:o,onInputStart:s,onInputDelta:l,onInputAvailable:u,...c})=>({type:"provider",id:e,args:c,inputSchema:t,outputSchema:r,execute:i,needsApproval:a,toModelOutput:o,onInputStart:s,onInputDelta:l,onInputAvailable:u,supportsDeferredResults:n})}({id:"gateway.perplexity_search",inputSchema:iz(()=>iZ(dO.object({query:dO.union([dO.string(),dO.array(dO.string())]).describe("Search query (string) or multiple queries (array of up to 5 strings). Multi-query searches return combined results from all queries."),max_results:dO.number().optional().describe("Maximum number of search results to return (1-20, default: 10)"),max_tokens_per_page:dO.number().optional().describe("Maximum number of tokens to extract per search result page (256-2048, default: 2048)"),max_tokens:dO.number().optional().describe("Maximum total tokens across all search results (default: 25000, max: 1000000)"),country:dO.string().optional().describe("Two-letter ISO 3166-1 alpha-2 country code for regional search results (e.g., 'US', 'GB', 'FR')"),search_domain_filter:dO.array(dO.string()).optional().describe("List of domains to include or exclude from search results (max 20). To include: ['nature.com', 'science.org']. To exclude: ['-example.com', '-spam.net']"),search_language_filter:dO.array(dO.string()).optional().describe("List of ISO 639-1 language codes to filter results (max 10, lowercase). Examples: ['en', 'fr', 'de']"),search_after_date:dO.string().optional().describe("Include only results published after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),search_before_date:dO.string().optional().describe("Include only results published before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),last_updated_after_filter:dO.string().optional().describe("Include only results last updated after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),last_updated_before_filter:dO.string().optional().describe("Include only results last updated before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),search_recency_filter:dO.enum(["day","week","month","year"]).optional().describe("Filter results by relative time period. Cannot be used with search_after_date or search_before_date.")}
73))),outputSchema:iz(()=>iZ(dO.union([dO.object({results:dO.array(dO.object({title:dO.string(),url:dO.string(),snippet:dO.string(),date:dO.string().optional(),lastUpdated:dO.string().optional()})),id:dO.string()}),dO.object({error:dO.enum(["api_error","rate_limit","timeout","invalid_input","unknown"]),statusCode:dO.number().optional(),message:dO.string()})])))}),pl={perplexitySearch:(e={})=>ps(e)};async function pu(){var e;return null==(e=(0,dR.getContext)().headers)?void 0:e["x-vercel-id"]}async function pc(e){let t=ia({settingValue:e.apiKey,environmentVariableName:"AI_GATEWAY_API_KEY"});return t?{token:t,authMethod:"api-key"}:{token:await (0,dR.getVercelOidcToken)(),authMethod:"oidc"}}!function(e={}){var t,r,n;let i=null,a=null,o=null!=(t=e.metadataCacheRefreshMillis)?t:3e5,s=0,l=null!=(r=null==(n=e.baseURL)?void 0:n.replace(/\/$/,""))?r:"https://ai-gateway.vercel.sh/v3/ai",u=async()=>{try{let t=await pc(e);return ie({Authorization:`Bearer ${t.token}`,"ai-gateway-protocol-version":"0.0.1",[d3]:t.authMethod,...e.headers},"ai-sdk/gateway/3.0.13")}catch(e){throw dM.createContextualError({apiKeyProvided:!1,oidcTokenProvided:!1,statusCode:401,cause:e})}},c=()=>{let e=ia({settingValue:void 0,environmentVariableName:"VERCEL_DEPLOYMENT_ID"}),t=ia({settingValue:void 0,environmentVariableName:"VERCEL_ENV"}),r=ia({settingValue:void 0,environmentVariableName:"VERCEL_REGION"});return async()=>{let n=await pu();return{...e&&{"ai-o11y-deployment-id":e},...t&&{"ai-o11y-environment":t},...r&&{"ai-o11y-region":r},...n&&{"ai-o11y-request-id":n}}}},d=t=>new pe(t,{provider:"gateway",baseURL:l,headers:u,fetch:e.fetch,o11yHeaders:c()}),p=async()=>{var t,r,n;let c=null!=(n=null==(r=null==(t=e._internal)?void 0:t.currentDate)?void 0:r.call(t).getTime())?n:Date.now();return(!i||c-s>o)&&(s=c,i=new d9({baseURL:l,headers:u,fetch:e.fetch}).getAvailableModels().then(e=>(a=e,e)).catch(async e=>{throw await d4(e,await d6(await u()))})),a?Promise.resolve(a):i},f=async()=>new d9({baseURL:l,headers:u,fetch:e.fetch}).getCredits().catch(async e=>{throw await d4(e,await d6(await u()))}),m=function(e){if(new.target)throw Error("The Gateway Provider model function cannot be called with the new keyword.");return d(e)};m.specificationVersion="v3",m.getAvailableModels=p,m.getCredits=f,m.imageModel=t=>new pn(t,{provider:"gateway",baseURL:l,headers:u,fetch:e.fetch,o11yHeaders:c()}),m.languageModel=d;let h=t=>new pt(t,{provider:"gateway",baseURL:l,headers:u,fetch:e.fetch,o11yHeaders:c()});m.embeddingModel=h,m.textEmbeddingModel=h,m.tools=pl}();var dN=dN,pd="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:e.g,pp="1.9.0",pf=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,pm=function(e){var t=new Set([e]),r=new Set,n=e.match(pf);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=i.prerelease)return function(t){return t===e};function a(e){return r.add(e),!1}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(pf);if(!n)return a(e);var o={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=o.prerelease||i.major!==o.major)return a(e);if(0===i.major)return i.minor===o.minor&&i.patch<=o.patch?(t.add(e),!0):a(e);return i.minor<=o.minor?(t.add(e),!0):a(e)}}(pp),ph=Symbol.for("opentelemetry.js.api."+pp.split(".")[0]);function pg(e,t,r,n){void 0===n&&(n=!1);var i,a=pd[ph]=null!=(i=pd[ph])?i:{version:pp};if(!n&&a[e]){var o=Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(o.stack||o.message),!1}if(a.version!==pp){var o=Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+pp);return r.error(o.stack||o.message),!1}return a[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+pp+"."),!0}function pv(e){var t,r,n=null==(t=pd[ph])?void 0:t.version;if(n&&pm(n))return null==(r=pd[ph])?void 0:r[e]}function py(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+pp+".");var r=pd[ph];r&&delete r[e]}var pb=new function e(t){var r=this;r._currentContext=t?new Map(t):new Map,r.getValue=function(e){return r._currentContext.get(e)},r.setValue=function(t,n){var i=new e(r._currentContext);return i._currentContext.set(t,n),i},r.deleteValue=function(t){var n=new e(r._currentContext);return n._currentContext.delete(t),n}},px=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},pw=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},p_=function(){function e(){}return e.prototype.active=function(){return pb},e.prototype.with=function(e,t,r){for(var n=[],i=3;i<arguments.length;i++)n[i-3]=arguments[i];return t.call.apply(t,pw([r],px(n),!1))},e.prototype.bind=function(e,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),pk=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},pS=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},pE=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return pT("debug",this._namespace,e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return pT("error",this._namespace,e)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return pT("info",this._namespace,e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return pT("warn",this._namespace,e)},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return pT("verbose",this._namespace,e)},e}();function pT(e,t,r){var n=pv("diag");if(n)return r.unshift(t),n[e].apply(n,pS([],pk(r),!1))}(a=M||(M={}))[a.NONE=0]="NONE",a[a.ERROR=30]="ERROR",a[a.WARN=50]="WARN",a[a.INFO=60]="INFO",a[a.DEBUG=70]="DEBUG",a[a.VERBOSE=80]="VERBOSE",a[a.ALL=9999]="ALL";var pj=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},pI=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},pC=function(){function e(){function e(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=pv("diag");if(n)return n[e].apply(n,pI([],pj(t),!1))}}var t=this;t.setLogger=function(e,r){if(void 0===r&&(r={logLevel:M.INFO}),e===t){var n,i,a,o=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!=(n=o.stack)?n:o.message),!1}"number"==typeof r&&(r={logLevel:r});var s=pv("diag"),l=function(e,t){function r(r,n){var i=t[r];return"function"==typeof i&&e>=n?i.bind(t):function(){}}return e<M.NONE?e=M.NONE:e>M.ALL&&(e=M.ALL),t=t||{},{error:r("error",M.ERROR),warn:r("warn",M.WARN),info:r("info",M.INFO),debug:r("debug",M.DEBUG),verbose
73:r("verbose",M.VERBOSE)}}(null!=(i=r.logLevel)?i:M.INFO,e);if(s&&!r.suppressOverrideMessage){var u=null!=(a=Error().stack)?a:"<failed to generate stacktrace>";s.warn("Current logger will be overwritten from "+u),l.warn("Current logger will overwrite one already registered from "+u)}return pg("diag",l,t,!0)},t.disable=function(){py("diag",t)},t.createComponentLogger=function(e){return new pE(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),pA=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},pN=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},pO="context",pR=new p_,pP=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(e){return pg(pO,e,pC.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,t,r){for(var n,i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];return(n=this._getContextManager()).with.apply(n,pN([e,t,r],pA(i),!1))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return pv(pO)||pR},e.prototype.disable=function(){this._getContextManager().disable(),py(pO,pC.instance())},e}();(o=U||(U={}))[o.NONE=0]="NONE",o[o.SAMPLED=1]="SAMPLED";var pD="0000000000000000",p$="00000000000000000000000000000000",pL={traceId:p$,spanId:pD,traceFlags:U.NONE},pM=function(){function e(e){void 0===e&&(e=pL),this._spanContext=e}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return this},e.prototype.setAttributes=function(e){return this},e.prototype.addEvent=function(e,t){return this},e.prototype.addLink=function(e){return this},e.prototype.addLinks=function(e){return this},e.prototype.setStatus=function(e){return this},e.prototype.updateName=function(e){return this},e.prototype.end=function(e){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(e,t){},e}(),pU=Symbol.for("OpenTelemetry Context Key SPAN");function pz(e){return e.getValue(pU)||void 0}function pF(){return pz(pP.getInstance().active())}function pq(e,t){return e.setValue(pU,t)}function pZ(e){return e.deleteValue(pU)}function pV(e,t){return pq(e,new pM(t))}function pB(e){var t;return null==(t=pz(e))?void 0:t.spanContext()}var pH=/^([0-9a-f]{32})$/i,pW=/^[0-9a-f]{16}$/i;function pG(e){var t,r;return t=e.traceId,pH.test(t)&&t!==p$&&(r=e.spanId,pW.test(r)&&r!==pD)}function pK(e){return new pM(e)}var pY=pP.getInstance(),pX=function(){function e(){}return e.prototype.startSpan=function(e,t,r){if(void 0===r&&(r=pY.active()),null==t?void 0:t.root)return new pM;var n,i=r&&pB(r);return"object"==typeof(n=i)&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&pG(i)?new pM(i):new pM},e.prototype.startActiveSpan=function(e,t,r,n){if(!(arguments.length<2)){2==arguments.length?o=t:3==arguments.length?(i=t,o=r):(i=t,a=r,o=n);var i,a,o,s=null!=a?a:pY.active(),l=this.startSpan(e,i,s),u=pq(s,l);return pY.with(u,o,void 0,l)}},e}(),pJ=new pX,pQ=function(){function e(e,t,r,n){this._provider=e,this.name=t,this.version=r,this.options=n}return e.prototype.startSpan=function(e,t,r){return this._getTracer().startSpan(e,t,r)},e.prototype.startActiveSpan=function(e,t,r,n){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):pJ},e}(),p0=new(function(){function e(){}return e.prototype.getTracer=function(e,t,r){return new pX},e}()),p1=function(){function e(){}return e.prototype.getTracer=function(e,t,r){var n;return null!=(n=this.getDelegateTracer(e,t,r))?n:new pQ(this,e,t,r)},e.prototype.getDelegate=function(){var e;return null!=(e=this._delegate)?e:p0},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t,r){var n;return null==(n=this._delegate)?void 0:n.getTracer(e,t,r)},e}(),p2="trace";(function(){function e(){this._proxyTracerProvider=new p1,this.wrapSpanContext=pK,this.isSpanContextValid=pG,this.deleteSpan=pZ,this.get
73Span=pz,this.getActiveSpan=pF,this.getSpanContext=pB,this.setSpan=pq,this.setSpanContext=pV}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(e){var t=pg(p2,this._proxyTracerProvider,pC.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},e.prototype.getTracerProvider=function(){return pv(p2)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){py(p2,pC.instance()),this._proxyTracerProvider=new p1},e})().getInstance(),(s=z||(z={}))[s.UNSET=0]="UNSET",s[s.OK=1]="OK",s[s.ERROR=2]="ERROR";var p4=Object.defineProperty,p3=(Symbol.for("vercel.ai.error.AI_InvalidArgumentError"),Symbol.for("vercel.ai.error.AI_InvalidStreamPartError"),Symbol.for("vercel.ai.error.AI_InvalidToolApprovalError"),Symbol.for("vercel.ai.error.AI_InvalidToolInputError"),Symbol.for("vercel.ai.error.AI_ToolCallNotFoundForApprovalError"),Symbol.for("vercel.ai.error.AI_NoImageGeneratedError"),"AI_NoObjectGeneratedError"),p6=`vercel.ai.error.${p3}`,p5=Symbol.for(p6),p9=class extends ej{constructor({message:e="No object generated.",cause:t,text:r,response:n,usage:i,finishReason:a}){super({name:p3,message:e,cause:t}),this[F]=!0,this.text=r,this.response=n,this.usage=i,this.finishReason=a}static isInstance(e){return ej.hasMarker(e,p6)}};F=p5,Symbol.for("vercel.ai.error.AI_NoOutputGeneratedError"),Symbol.for("vercel.ai.error.AI_NoSuchToolError"),Symbol.for("vercel.ai.error.AI_ToolCallRepairError"),Symbol.for("vercel.ai.error.AI_InvalidDataContentError"),Symbol.for("vercel.ai.error.AI_InvalidMessageRoleError"),Symbol.for("vercel.ai.error.AI_MessageConversionError"),Symbol.for("vercel.ai.error.AI_RetryError");var p7="6.0.33",p8=dN.union([dN.string(),dN.instanceof(Uint8Array),dN.instanceof(ArrayBuffer),dN.custom(e=>{var t,r;return null!=(r=null==(t=globalThis.Buffer)?void 0:t.isBuffer(e))&&r},{message:"Must be a Buffer"})]),fe=dN.lazy(()=>dN.union([dN.null(),dN.string(),dN.number(),dN.boolean(),dN.record(dN.string(),fe.optional()),dN.array(fe)])),ft=dN.record(dN.string(),dN.record(dN.string(),fe.optional())),fr=dN.object({type:dN.literal("text"),text:dN.string(),providerOptions:ft.optional()}),fn=dN.object({type:dN.literal("image"),image:dN.union([p8,dN.instanceof(URL)]),mediaType:dN.string().optional(),providerOptions:ft.optional()}),fi=dN.object({type:dN.literal("file"),data:dN.union([p8,dN.instanceof(URL)]),filename:dN.string().optional(),mediaType:dN.string(),providerOptions:ft.optional()}),fa=dN.object({type:dN.literal("reasoning"),text:dN.string(),providerOptions:ft.optional()}),fo=dN.object({type:dN.literal("tool-call"),toolCallId:dN.string(),toolName:dN.string(),input:dN.unknown(),providerOptions:ft.optional(),providerExecuted:dN.boolean().optional()}),fs=dN.discriminatedUnion("type",[dN.object({type:dN.literal("text"),value:dN.string(),providerOptions:ft.optional()}),dN.object({type:dN.literal("json"),value:fe,providerOptions:ft.optional()}),dN.object({type:dN.literal("execution-denied"),reason:dN.string().optional(),providerOptions:ft.optional()}),dN.object({type:dN.literal("error-text"),value:dN.string(),providerOptions:ft.optional()}),dN.object({type:dN.literal("error-json"),value:fe,providerOptions:ft.optional()}),dN.object({type:dN.literal("content"),value:dN.array(dN.union([dN.object({type:dN.literal("text"),text:dN.string(),providerOptions:ft.optional()}),dN.object({type:dN.literal("media"),data:dN.string(),mediaType:dN.string()}),dN.object({type:dN.literal("file-data"),data:dN.string(),mediaType:dN.string(),filename:dN.string().optional(),providerOptions:ft.optional()}),dN.object({type:dN.literal("file-url"),url:dN.string(),providerOptions:ft.optional()}),dN.object({type:dN.literal("file-id"),fileId:dN.union([dN.string(),dN.record(dN.string(),dN.string())]),providerOptions:ft.optional()}),dN.object({type:dN.literal("image-data"),data:dN.string(),mediaType:dN.string(),providerOptions:ft.optional()}),dN.object({type:dN.literal("image-url"),url:dN.string(),providerOptions:ft.optional()}),dN.object({type:dN.literal("image-file-id"),fileId:dN.union([dN.string(),dN.record(dN.string(),dN.string())]),providerOptions:ft.optional()}),dN.object({type:dN.literal("custom"),providerOptions:ft.optional()})]))})]),fl=dN.object({type:dN.literal("tool-result"),toolCallId:dN.string(),toolName:dN.string(),output:fs,providerOptions:ft.optional()}),fu=dN.object({type:dN.literal("tool-approval-request"),approvalId:dN.string(),toolCallId:dN.string()}),fc=dN.object({type:dN.literal("tool-approval-response"),approvalId:dN.string(),approved:dN.boolean(),reason:dN.string().optional()}),fd=dN.object({role:dN.literal("system"),content:dN.string(),providerOptions:ft.optional()}),fp=dN.object({role:dN.literal("user"),content:dN.union([dN.string(),dN.array(dN.union([fr,fn,fi]))]),providerOptions:ft.optional()}),ff=dN.object({role:dN.literal("assistant"),content:dN.union([dN.string(),dN.array(dN.union([fr,fi,fa,fo,fl,fu]))]),providerOptions:ft.optional()}),fm=dN.object({role:dN.literal("tool"),content:dN.array(dN.union([fl,fc])),providerOptions:ft.optional()});dN.union([fd,fp,ff,fm]);var fh={},fg={array:()=>fw,choice:()=>f_,json:()=>fk,object:()=>fx,text:()=>fb};for(var fv in fg)p4(fh,fv,{get:fg[fv],enumerable:!0});async function fy(e){if(void 0===e)return{value:void 0,state:"undefined-input"};let t=await iW({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await iW({text:function(e){let t=["ROOT"],r=-1,n=null;function i(e,i,a){switch(e){case'"':r=i,t.pop(),t.push(a),t.push("INSIDE_STRING");break;case"f":case"t":case"n":r=i,n=i,t.pop(),t.push(a),t.push("INSIDE_LITERAL");break;case"-":t.pop(),t.push(a),t.push("INSIDE_NUMBER");break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r=i,t.pop(),t.push(a),t.push("INSIDE_NUMBER");break;case"{":r=i,t.pop(),t.push(a),t.push("INSIDE_OBJECT_START");break;case"[":r=i,t.pop(),t.push(a),t.push("INSIDE_ARRAY_START")}}function a(e,n){switch(e){case",":t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break;case"}":r=n,t.pop()}}function o(e,n){switch(e){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":r=n,t.pop()}}for(let s=0;s<e.length;s++){let l=e[s];switch(t[t.length-1]){case"ROOT":i(l,s,"FINISH");break;case"INSIDE_OBJECT_START":switch(l){case'"':t.pop(),t.push("INSIDE_OBJECT_KEY");break;case"}":r=s,t.pop()}break;case"INSIDE_OBJECT_AFTER_COMMA":'"'===l&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break;case"INSIDE_OBJECT_KEY":'"'===l&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break;case"INSIDE_OBJECT_AFTER_KEY":":"===l&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break;case"INSIDE_OBJECT_BEFORE_VALUE":i(l,s,"INSIDE_OBJECT_AFTER_VALUE");break;
73case"INSIDE_OBJECT_AFTER_VALUE":a(l,s);break;case"INSIDE_STRING":switch(l){case'"':t.pop(),r=s;break;case"\\":t.push("INSIDE_STRING_ESCAPE");break;default:r=s}break;case"INSIDE_ARRAY_START":"]"===l?(r=s,t.pop()):(r=s,i(l,s,"INSIDE_ARRAY_AFTER_VALUE"));break;case"INSIDE_ARRAY_AFTER_VALUE":switch(l){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":r=s,t.pop();break;default:r=s}break;case"INSIDE_ARRAY_AFTER_COMMA":i(l,s,"INSIDE_ARRAY_AFTER_VALUE");break;case"INSIDE_STRING_ESCAPE":t.pop(),r=s;break;case"INSIDE_NUMBER":switch(l){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r=s;break;case"e":case"E":case"-":case".":break;case",":t.pop(),"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&o(l,s),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]&&a(l,s);break;case"}":t.pop(),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]&&a(l,s);break;case"]":t.pop(),"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&o(l,s);break;default:t.pop()}break;case"INSIDE_LITERAL":{let i=e.substring(n,s+1);"false".startsWith(i)||"true".startsWith(i)||"null".startsWith(i)?r=s:(t.pop(),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]?a(l,s):"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&o(l,s))}}}let s=e.slice(0,r+1);for(let r=t.length-1;r>=0;r--)switch(t[r]){case"INSIDE_STRING":s+='"';break;case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":s+="}";break;case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":s+="]";break;case"INSIDE_LITERAL":{let t=e.substring(n,e.length);"true".startsWith(t)?s+="true".slice(t.length):"false".startsWith(t)?s+="false".slice(t.length):"null".startsWith(t)&&(s+="null".slice(t.length))}}return s}(e)})).success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"}}var fb=()=>({name:"text",responseFormat:Promise.resolve({type:"text"}),parseCompleteOutput:async({text:e})=>e,parsePartialOutput:async({text:e})=>({partial:e}),createElementStreamTransform(){}}),fx=({schema:e,name:t,description:r})=>{let n=iq(e);return{name:"object",responseFormat:iJ(n.jsonSchema).then(e=>({type:"json",schema:e,...null!=t&&{name:t},...null!=r&&{description:r}})),async parseCompleteOutput({text:e},t){let r=await iW({text:e});if(!r.success)throw new p9({message:"No object generated: could not parse the response.",cause:r.error,text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});let i=await iB({value:r.value,schema:n});if(!i.success)throw new p9({message:"No object generated: response did not match schema.",cause:i.error,text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});return i.value},async parsePartialOutput({text:e}){let t=await fy(e);switch(t.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:t.value}}},createElementStreamTransform(){}}},fw=({element:e,name:t,description:r})=>{let n=iq(e);return{name:"array",responseFormat:iJ(n.jsonSchema).then(e=>{let{$schema:n,...i}=e;return{type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{elements:{type:"array",items:i}},required:["elements"],additionalProperties:!1},...null!=t&&{name:t},...null!=r&&{description:r}}}),async parseCompleteOutput({text:e},t){let r=await iW({text:e});if(!r.success)throw new p9({message:"No object generated: could not parse the response.",cause:r.error,text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});let i=r.value;if(null==i||"object"!=typeof i||!("elements"in i)||!Array.isArray(i.elements))throw new p9({message:"No object generated: response did not match schema.",cause:new eY({value:i,cause:"response must be an object with an elements array"}),text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});for(let r of i.elements){let i=await iB({value:r,schema:n});if(!i.success)throw new p9({message:"No object generated: response did not match schema.",cause:i.error,text:e,response:t.response,usage:t.usage,finishReason:t.finishReason})}return i.elements},async parsePartialOutput({text:e}){let t=await fy(e);switch(t.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let e=t.value;if(null==e||"object"!=typeof e||!("elements"in e)||!Array.isArray(e.elements))return;let r="repaired-parse"===t.state&&e.elements.length>0?e.elements.slice(0,-1):e.elements,i=[];for(let e of r){let t=await iB({value:e,schema:n});t.success&&i.push(t.value)}return{partial:i}}}},createElementStreamTransform(){let e=0;return new TransformStream({transform({partialOutput:t},r){if(null!=t)for(;e<t.length;e++)r.enqueue(t[e])}})}}},f_=({options:e,name:t,description:r})=>({name:"choice",responseFormat:Promise.resolve({type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{result:{type:"string",enum:e}},required:["result"],additionalProperties:!1},...null!=t&&{name:t},...null!=r&&{description:r}}),async parseCompleteOutput({text:t},r){let n=await iW({text:t});if(!n.success)throw new p9({message:"No object generated: could not parse the response.",cause:n.error,text:t,response:r.response,usage:r.usage,finishReason:r.finishReason});let i=n.value;if(null==i||"object"!=typeof i||!("result"in i)||"string"!=typeof i.result||!e.includes(i.result))throw new p9({message:"No object generated: response did not match sc
73hema.",cause:new eY({value:i,cause:"response must be an object that contains a choice value."}),text:t,response:r.response,usage:r.usage,finishReason:r.finishReason});return i.result},async parsePartialOutput({text:t}){let r=await fy(t);switch(r.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let t=r.value;if(null==t||"object"!=typeof t||!("result"in t)||"string"!=typeof t.result)return;let n=e.filter(e=>e.startsWith(t.result));if("successful-parse"===r.state)return n.includes(t.result)?{partial:t.result}:void 0;return 1===n.length?{partial:n[0]}:void 0}}},createElementStreamTransform(){}}),fk=({name:e,description:t}={})=>({name:"json",responseFormat:Promise.resolve({type:"json",...null!=e&&{name:e},...null!=t&&{description:t}}),async parseCompleteOutput({text:e},t){let r=await iW({text:e});if(!r.success)throw new p9({message:"No object generated: could not parse the response.",cause:r.error,text:e,response:t.response,usage:t.usage,finishReason:t.finishReason});return r.value},async parsePartialOutput({text:e}){let t=await fy(e);switch(t.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return void 0===t.value?void 0:{partial:t.value}}},createElementStreamTransform(){}});n4({prefix:"aitxt",size:24}),TransformStream;var fS=iz(()=>iZ(dN.union([dN.strictObject({type:dN.literal("text-start"),id:dN.string(),providerMetadata:ft.optional()}),dN.strictObject({type:dN.literal("text-delta"),id:dN.string(),delta:dN.string(),providerMetadata:ft.optional()}),dN.strictObject({type:dN.literal("text-end"),id:dN.string(),providerMetadata:ft.optional()}),dN.strictObject({type:dN.literal("error"),errorText:dN.string()}),dN.strictObject({type:dN.literal("tool-input-start"),toolCallId:dN.string(),toolName:dN.string(),providerExecuted:dN.boolean().optional(),dynamic:dN.boolean().optional(),title:dN.string().optional()}),dN.strictObject({type:dN.literal("tool-input-delta"),toolCallId:dN.string(),inputTextDelta:dN.string()}),dN.strictObject({type:dN.literal("tool-input-available"),toolCallId:dN.string(),toolName:dN.string(),input:dN.unknown(),providerExecuted:dN.boolean().optional(),providerMetadata:ft.optional(),dynamic:dN.boolean().optional(),title:dN.string().optional()}),dN.strictObject({type:dN.literal("tool-input-error"),toolCallId:dN.string(),toolName:dN.string(),input:dN.unknown(),providerExecuted:dN.boolean().optional(),providerMetadata:ft.optional(),dynamic:dN.boolean().optional(),errorText:dN.string(),title:dN.string().optional()}),dN.strictObject({type:dN.literal("tool-approval-request"),approvalId:dN.string(),toolCallId:dN.string()}),dN.strictObject({type:dN.literal("tool-output-available"),toolCallId:dN.string(),output:dN.unknown(),providerExecuted:dN.boolean().optional(),dynamic:dN.boolean().optional(),preliminary:dN.boolean().optional()}),dN.strictObject({type:dN.literal("tool-output-error"),toolCallId:dN.string(),errorText:dN.string(),providerExecuted:dN.boolean().optional(),dynamic:dN.boolean().optional()}),dN.strictObject({type:dN.literal("tool-output-denied"),toolCallId:dN.string()}),dN.strictObject({type:dN.literal("reasoning-start"),id:dN.string(),providerMetadata:ft.optional()}),dN.strictObject({type:dN.literal("reasoning-delta"),id:dN.string(),delta:dN.string(),providerMetadata:ft.optional()}),dN.strictObject({type:dN.literal("reasoning-end"),id:dN.string(),providerMetadata:ft.optional()}),dN.strictObject({type:dN.literal("source-url"),sourceId:dN.string(),url:dN.string(),title:dN.string().optional(),providerMetadata:ft.optional()}),dN.strictObject({type:dN.literal("source-document"),sourceId:dN.string(),mediaType:dN.string(),title:dN.string(),filename:dN.string().optional(),providerMetadata:ft.optional()}),dN.strictObject({type:dN.literal("file"),url:dN.string(),mediaType:dN.string(),providerMetadata:ft.optional()}),dN.strictObject({type:dN.custom(e=>"string"==typeof e&&e.startsWith("data-"),{message:'Type must start with "data-"'}),id:dN.string().optional(),data:dN.unknown(),transient:dN.boolean().optional()}),dN.strictObject({type:dN.literal("start-step")}),dN.strictObject({type:dN.literal("finish-step")}),dN.strictObject({type:dN.literal("start"),messageId:dN.string().optional(),messageMetadata:dN.unknown().optional()}),dN.strictObject({type:dN.literal("finish"),finishReason:dN.enum(["stop","length","content-filter","tool-calls","error","other"]).optional(),messageMetadata:dN.unknown().optional()}),dN.strictObject({type:dN.literal("abort"),reason:dN.string().optional()}),dN.strictObject({type:dN.literal("message-metadata"),messageMetadata:dN.unknown()})])));function fE(e){return e.type.startsWith("tool-")}function fT(e){return fE(e)||"dynamic-tool"===e.type}function fj(e){return e.type.split("-").slice(1).join("-")}async function fI({stream:e,onError:t}){let r=e.getReader();try{for(;;){let{done:e}=await r.read();if(e)break}}catch(e){null==t||t(e)}finally{r.releaseLock()}}
vendor: 4,315 bytes, line 73
73n4({prefix:"aitxt",size:24}),iz(()=>iZ(dN.array(dN.object({id:dN.string(),role:dN.enum(["system","user","assistant"]),metadata:dN.unknown().optional(),parts:dN.array(dN.union([dN.object({type:dN.literal("text"),text:dN.string(),state:dN.enum(["streaming","done"]).optional(),providerMetadata:ft.optional()}),dN.object({type:dN.literal("reasoning"),text:dN.string(),state:dN.enum(["streaming","done"]).optional(),providerMetadata:ft.optional()}),dN.object({type:dN.literal("source-url"),sourceId:dN.string(),url:dN.string(),title:dN.string().optional(),providerMetadata:ft.optional()}),dN.object({type:dN.literal("source-document"),sourceId:dN.string(),mediaType:dN.string(),title:dN.string(),filename:dN.string().optional(),providerMetadata:ft.optional()}),dN.object({type:dN.literal("file"),mediaType:dN.string(),filename:dN.string().optional(),url:dN.string(),providerMetadata:ft.optional()}),dN.object({type:dN.literal("step-start")}),dN.object({type:dN.string().startsWith("data-"),id:dN.string().optional(),data:dN.unknown()}),dN.object({type:dN.literal("dynamic-tool"),toolName:dN.string(),toolCallId:dN.string(),state:dN.literal("input-streaming"),input:dN.unknown().optional(),providerExecuted:dN.boolean().optional(),output:dN.never().optional(),errorText:dN.never().optional(),approval:dN.never().optional()}),dN.object({type:dN.literal("dynamic-tool"),toolName:dN.string(),toolCallId:dN.string(),state:dN.literal("input-available"),input:dN.unknown(),providerExecuted:dN.boolean().optional(),output:dN.never().optional(),errorText:dN.never().optional(),callProviderMetadata:ft.optional(),approval:dN.never().optional()}),dN.object({type:dN.literal("dynamic-tool"),toolName:dN.string(),toolCallId:dN.string(),state:dN.literal("approval-requested"),input:dN.unknown(),providerExecuted:dN.boolean().optional(),output:dN.never().optional(),errorText:dN.never().optional(),callProviderMetadata:ft.optional(),approval:dN.object({id:dN.string(),approved:dN.never().optional(),reason:dN.never().optional()})}),dN.object({type:dN.literal("dynamic-tool"),toolName:dN.string(),toolCallId:dN.string(),state:dN.literal("approval-responded"),input:dN.unknown(),providerExecuted:dN.boolean().optional(),output:dN.never().optional(),errorText:dN.never().optional(),callProviderMetadata:ft.optional(),approval:dN.object({id:dN.string(),approved:dN.boolean(),reason:dN.string().optional()})}),dN.object({type:dN.literal("dynamic-tool"),toolName:dN.string(),toolCallId:dN.string(),state:dN.literal("output-available"),input:dN.unknown(),providerExecuted:dN.boolean().optional(),output:dN.unknown(),errorText:dN.never().optional(),callProviderMetadata:ft.optional(),preliminary:dN.boolean().optional(),approval:dN.object({id:dN.string(),approved:dN.literal(!0),reason:dN.string().optional()}).optional()}),dN.object({type:dN.literal("dynamic-tool"),toolName:dN.string(),toolCallId:dN.string(),state:dN.literal("output-error"),input:dN.unknown(),rawInput:dN.unknown().optional(),providerExecuted:dN.boolean().optional(),output:dN.never().optional(),errorText:dN.string(),callProviderMetadata:ft.optional(),approval:dN.object({id:dN.string(),approved:dN.literal(!0),reason:dN.string().optional()}).optional()}),dN.object({type:dN.literal("dynamic-tool"),toolName:dN.string(),toolCallId:dN.string(),state:dN.literal("output-denied"),input:dN.unknown(),providerExecuted:dN.boolean().optional(),output:dN.never().optional(),errorText:dN.never().optional(),callProviderMetadata:ft.optional(),approval:dN.object({id:dN.string(),approved:dN.literal(!1),reason:dN.string().optional()})}),dN.object({type:dN.string().startsWith("tool-"),toolCallId:dN.string(),state:dN.literal("input-streaming"),providerExecuted:dN.boolean().optional(),input:dN.unknown().optional(),output:dN.never().optional(),errorText:dN.never().optional(),approval:dN.never().optional()}),dN.object({type:dN.string().startsWith("tool-"),toolCallId:dN.string(),state:dN.literal("input-available"),providerExecuted:dN.boolean().optional(),input:dN.unknown(),output:dN.never().optional(),errorText:dN.never().optional(),callProviderMetadata:ft.optional(),approval:dN.never().optional()}),dN.object({type:dN.string().startsWith("tool-"),toolCallId:dN.string(),state:dN.literal("approval-requested"),input:dN.unknown(),providerExecuted:dN.boolean().optional(),output:
73dN.never().optional(),errorText:dN.never().optional(),callProviderMetadata:ft.optional(),approval:dN.object({id:dN.string(),approved:dN.never().optional(),reason:dN.never().optional()})}),dN.object({type:dN.string().startsWith("tool-"),toolCallId:dN.string(),state:dN.literal("approval-responded"),input:dN.unknown(),providerExecuted:dN.boolean().optional(),output:dN.never().optional(),errorText:dN.never().optional(),callProviderMetadata:ft.optional(),approval:dN.object({id:dN.string(),approved:dN.boolean(),reason:dN.string().optional()})}),dN.object({type:dN.string().startsWith("tool-"),toolCallId:dN.string(),state:dN.literal("output-available"),providerExecuted:dN.boolean().optional(),input:dN.unknown(),output:dN.unknown(),errorText:dN.never().optional(),callProviderMetadata:ft.optional(),preliminary:dN.boolean().optional(),approval:dN.object({id:dN.string(),approved:dN.literal(!0),reason:dN.string().optional()}).optional()}),dN.object({type:dN.string().startsWith("tool-"),toolCallId:dN.string(),state:dN.literal("output-error"),providerExecuted:dN.boolean().optional(),input:dN.unknown(),rawInput:dN.unknown().optional(),output:dN.never().optional(),errorText:dN.string(),callProviderMetadata:ft.optional(),approval:dN.object({id:dN.string(),approved:dN.literal(!0),reason:dN.string().optional()}).optional()}),dN.object({type:dN.string().startsWith("tool-"),toolCallId:dN.string(),state:dN.literal("output-denied"),providerExecuted:dN.boolean().optional(),input:dN.unknown(),output:dN.never().optional(),errorText:dN.never().optional(),callProviderMetadata:ft.optional(),approval:dN.object({id:dN.string(),approved:dN.literal(!1),reason:dN.string().optional()})})])).nonempty("Message must contain at least one part")})).nonempty("Messages array must not be empty"))),n4({prefix:"aiobj",size:24});var fC=class{constructor(){this.queue=[],this.isProcessing=!1}async processQueue(){if(!this.isProcessing){for(this.isProcessing=!0;this.queue.length>0;)await this.queue[0](),this.queue.shift();this.isProcessing=!1}}async run(e){return new Promise((t,r)=>{this.queue.push(async()=>{try{await e(),t()}catch(e){r(e)}}),this.processQueue()})}};async function fA(e){if(null==e)return[];if(!globalThis.FileList||!(e instanceof globalThis.FileList))throw Error("FileList is not supported in the current environment");return Promise.all(Array.from(e).map(async e=>{let{name:t,type:r}=e;return{type:"file",mediaType:r,filename:t,url:await new Promise((t,r)=>{let n=new FileReader;n.onload=e=>{var r;t(null==(r=e.target)?void 0:r.result)},n.onerror=e=>r(e),n.readAsDataURL(e)})}}))}n4({prefix:"aiobj",size:24}),Symbol.for("vercel.ai.error.AI_NoSuchProviderError");var fN=class{constructor({api:e="/api/chat",credentials:t,headers:r,body:n,fetch:i,prepareSendMessagesRequest:a,prepareReconnectToStreamRequest:o}){this.api=e,this.credentials=t,this.headers=r,this.body=n,this.fetch=i,this.prepareSendMessagesRequest=a,this.prepareReconnectToStreamRequest=o}async sendMessages({abortSignal:e,...t}){var r,n,i,a,o;let s=await iJ(this.body),l=await iJ(this.headers),u=await iJ(this.credentials),c={...n8(l),...n8(t.headers)},d=await (null==(r=this.prepareSendMessagesRequest)?void 0:r.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...s,...t.body},headers:c,credentials:u,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),p=null!=(n=null==d?void 0:d.api)?n:this.api,f=(null==d?void 0:d.headers)!==void 0?n8(d.headers):c,m=(null==d?void 0:d.body)!==void 0?d.body:{...s,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},h=null!=(i=null==d?void 0:d.credentials)?i:u,g=null!=(a=this.fetch)?a:globalThis.fetch,v=await g(p,{method:"POST",headers:ie({"Content-Type":"application/json",...f},`ai-sdk/${p7}`,n7()),body:JSON.stringify(m),credentials:h,signal:e});if(!v.ok)throw Error(null!=(o=await v.text())?o:"Failed to fetch the chat response.");if(!v.body)throw Error("The response body is empty.");return this.processResponseStream(v.body)}async reconnectToStream(e){var t,r,n,i,a;let o=await iJ(this.body),s=await iJ(this.headers),l=await iJ(this.credentials),u={...n8(s),...n8(e.headers)},c=await (null==(t=this.prepareReconnectToStreamRequest)?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...o,...e.body},headers:u,credentials:l,requestMetadata:e.metadata})),d=null!=(r=null==c?void 0:c.api)?r:`${this.api}/${e.chatId}/stream`,p=(null==c?void 0:c.headers)!==void 0?n8(c.headers):u,f=null!=(n=null==c?void 0:c.credentials)?n:l,m=null!=(i=this.fetch)?i:globalThis.fetch,h=await m(d,{method:"GET",headers:ie(p,`ai-sdk/${p7}`,n7()),credentials:f});if(204===h.status)return null;if(!h.ok)throw Error(null!=(a=await h.text())?a:"Failed to fetch the chat response.");if(!h.body)throw Error("The response body is empty.");return this.processResponseStream(h.body)}},fO=class extends fN{constructor(e={}){super(e)}
73processResponseStream(e){return iG({stream:e,schema:fS}).pipeThrough(new TransformStream({async transform(e,t){if(!e.success)throw e.error;t.enqueue(e.value)}}))}},fR=class{constructor({generateId:e=n3,id:t=e(),transport:r=new fO,messageMetadataSchema:n,dataPartSchemas:i,state:a,onError:o,onToolCall:s,onFinish:l,onData:u,sendAutomaticallyWhen:c}){this.activeResponse=void 0,this.jobExecutor=new fC,this.sendMessage=async(e,t)=>{var r,n,i,a;let o;if(null==e)return void await this.makeRequest({trigger:"submit-message",messageId:null==(r=this.lastMessage)?void 0:r.id,...t});if(o="text"in e||"files"in e?{parts:[...Array.isArray(e.files)?e.files:await fA(e.files),..."text"in e&&null!=e.text?[{type:"text",text:e.text}]:[]]}:e,null!=e.messageId){let t=this.state.messages.findIndex(t=>t.id===e.messageId);if(-1===t)throw Error(`message with id ${e.messageId} not found`);if("user"!==this.state.messages[t].role)throw Error(`message with id ${e.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,t+1),this.state.replaceMessage(t,{...o,id:e.messageId,role:null!=(n=o.role)?n:"user",metadata:e.metadata})}else this.state.pushMessage({...o,id:null!=(i=o.id)?i:this.generateId(),role:null!=(a=o.role)?a:"user",metadata:e.metadata});await this.makeRequest({trigger:"submit-message",messageId:e.messageId,...t})},this.regenerate=async({messageId:e,...t}={})=>{let r=null==e?this.state.messages.length-1:this.state.messages.findIndex(t=>t.id===e);if(-1===r)throw Error(`message ${e} not found`);this.state.messages=this.state.messages.slice(0,"assistant"===this.messages[r].role?r:r+1),await this.makeRequest({trigger:"regenerate-message",messageId:e,...t})},this.resumeStream=async(e={})=>{await this.makeRequest({trigger:"resume-stream",...e})},this.clearError=()=>{"error"===this.status&&(this.state.error=void 0,this.setStatus({status:"ready"}))},this.addToolApprovalResponse=async({id:e,approved:t,reason:r})=>this.jobExecutor.run(async()=>{var n,i;let a=this.state.messages,o=a[a.length-1],s=n=>fT(n)&&"approval-requested"===n.state&&n.approval.id===e?{...n,state:"approval-responded",approval:{id:e,approved:t,reason:r}}:n;this.state.replaceMessage(a.length-1,{...o,parts:o.parts.map(s)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(s)),"streaming"!==this.status&&"submitted"!==this.status&&(null==(n=this.sendAutomaticallyWhen)?void 0:n.call(this,{messages:this.state.messages}))&&this.makeRequest({trigger:"submit-message",messageId:null==(i=this.lastMessage)?void 0:i.id})}),this.addToolOutput=async({state:e="output-available",tool:t,toolCallId:r,output:n,errorText:i})=>this.jobExecutor.run(async()=>{var t,a;let o=this.state.messages,s=o[o.length-1],l=t=>fT(t)&&t.toolCallId===r?{...t,state:e,output:n,errorText:i}:t;this.state.replaceMessage(o.length-1,{...s,parts:s.parts.map(l)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(l)),"streaming"!==this.status&&"submitted"!==this.status&&(null==(t=this.sendAutomaticallyWhen)?void 0:t.call(this,{messages:this.state.messages}))&&this.makeRequest({trigger:"submit-message",messageId:null==(a=this.lastMessage)?void 0:a.id})}),this.addToolResult=this.addToolOutput,this.stop=async()=>{var e;("streaming"===this.status||"submitted"===this.status)&&(null==(e=this.activeResponse)?void 0:e.abortController)&&this.activeResponse.abortController.abort()},this.id=t,this.transport=r,this.generateId=e,this.messageMetadataSchema=n,this.dataPartSchemas=i,this.state=a,this.onError=o,this.onToolCall=s,this.onFinish=l,this.onData=u,this.sendAutomaticallyWhen=c}get status(){return this.state.status}setStatus({status:e,error:t}){this.status!==e&&(this.state.status=e,this.state.error=t)}get error(){return this.state.error}get messages(){return this.state.messages}get lastMessage(){return this.state.messages[this.state.messages.length-1]}set messages(e){this.state.messages=e}async makeRequest({trigger:e,metadata:t,headers:r,body:n,messageId:i}){var a,o,s,l;this.setStatus({status:"submitted",error:void 0});let u=this.lastMessage,c=!1,d=!1,p=!1;try{let a,o={state:function({lastMessage:e,messageId:t}){return{message:(null==e?void 0:e.role)==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:{},activeReasoningParts:{},partialToolCalls:{}}}({lastMessage:this.state.snapshot(u),messageId:this.generateId()}),abortController:new AbortController};if(o.abortController.signal.addEventListener("abort",()=>{c=!0}
73),this.activeResponse=o,"resume-stream"===e){let e=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:r,body:n});if(null==e)return void this.setStatus({status:"ready"});a=e}else a=await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:o.abortController.signal,metadata:t,headers:r,body:n,trigger:e,messageId:i});let s=e=>this.jobExecutor.run(()=>e({state:o.state,write:()=>{var e;this.setStatus({status:"streaming"}),o.state.message.id===(null==(e=this.lastMessage)?void 0:e.id)?this.state.replaceMessage(this.state.messages.length-1,o.state.message):this.state.pushMessage(o.state.message)}}));await fI({stream:function({stream:e,messageMetadataSchema:t,dataPartSchemas:r,runUpdateMessageJob:n,onError:i,onToolCall:a,onData:o}){return e.pipeThrough(new TransformStream({async transform(e,s){await n(async({state:n,write:l})=>{var u,c,d,p;function f(e){let t=n.message.parts.filter(fT).find(t=>t.toolCallId===e);if(null==t)throw Error(`no tool invocation found for tool call ${e}`);return t}function m(e){var t;let r=n.message.parts.find(t=>fE(t)&&t.toolCallId===e.toolCallId);null!=r?(r.state=e.state,r.input=e.input,r.output=e.output,r.errorText=e.errorText,r.rawInput=e.rawInput,r.preliminary=e.preliminary,void 0!==e.title&&(r.title=e.title),r.providerExecuted=null!=(t=e.providerExecuted)?t:r.providerExecuted,null!=e.providerMetadata&&"input-available"===r.state&&(r.callProviderMetadata=e.providerMetadata)):n.message.parts.push({type:`tool-${e.toolName}`,toolCallId:e.toolCallId,state:e.state,title:e.title,input:e.input,output:e.output,rawInput:e.rawInput,errorText:e.errorText,providerExecuted:e.providerExecuted,preliminary:e.preliminary,...null!=e.providerMetadata?{callProviderMetadata:e.providerMetadata}:{}})}function h(e){var t,r;let i=n.message.parts.find(t=>"dynamic-tool"===t.type&&t.toolCallId===e.toolCallId);null!=i?(i.state=e.state,i.toolName=e.toolName,i.input=e.input,i.output=e.output,i.errorText=e.errorText,i.rawInput=null!=(t=e.rawInput)?t:i.rawInput,i.preliminary=e.preliminary,void 0!==e.title&&(i.title=e.title),i.providerExecuted=null!=(r=e.providerExecuted)?r:i.providerExecuted,null!=e.providerMetadata&&"input-available"===i.state&&(i.callProviderMetadata=e.providerMetadata)):n.message.parts.push({type:"dynamic-tool",toolName:e.toolName,toolCallId:e.toolCallId,state:e.state,input:e.input,output:e.output,errorText:e.errorText,preliminary:e.preliminary,providerExecuted:e.providerExecuted,title:e.title,...null!=e.providerMetadata?{callProviderMetadata:e.providerMetadata}:{}})}async function g(e){if(null!=e){let r=null!=n.message.metadata?function e(t,r){if(void 0===t&&void 0===r)return;if(void 0===t)return r;if(void 0===r)return t;let n={...t};for(let i in r)if(Object.prototype.hasOwnProperty.call(r,i)){let a=r[i];if(void 0===a)continue;let o=i in t?t[i]:void 0,s=null!==a&&"object"==typeof a&&!Array.isArray(a)&&!(a instanceof Date)&&!(a instanceof RegExp),l=null!=o&&"object"==typeof o&&!Array.isArray(o)&&!(o instanceof Date)&&!(o instanceof RegExp);s&&l?n[i]=e(o,a):n[i]=a}return n}(n.message.metadata,e):e;null!=t&&await iV({value:r,schema:t}),n.message.metadata=r}}switch(e.type){case"text-start":{let t={type:"text",text:"",providerMetadata:e.providerMetadata,state:"streaming"};n.activeTextParts[e.id]=t,n.message.parts.push(t),l();break}case"text-delta":{let t=n.activeTextParts[e.id];t.text+=e.delta,t.providerMetadata=null!=(u=e.providerMetadata)?u:t.providerMetadata,l();break}case"text-end":{let t=n.activeTextParts[e.id];t.state="done",t.providerMetadata=null!=(c=e.providerMetadata)?c:t.providerMetadata,delete n.activeTextParts[e.id],l();break}case"reasoning-start":{let t={type:"reasoning",text:"",providerMetadata:e.providerMetadata,state:"streaming"};n.activeReasoningParts[e.id]=t,n.message.parts.push(t),l();break}case"reasoning-delta":{let t=n.activeReasoningParts[e.id];t.text+=e.delta,t.providerMetadata=null!=(d=e.providerMetadata)?d:t.providerMetadata,l();break}case"reasoning-end":{let t=n.activeReasoningParts[e.id];t.providerMetadata=null!=(p=e.providerMetadata)?p:t.providerMetadata,t.state="done",delete n.activeReasoningParts[e.id],l();break}case"file":n.message.parts.push({type:"file",mediaType:e.mediaType,url:e.url}),l();break;case"source-url":n.message.parts.push({type:"source-url",sourceId:e.sourceId,url:e.url,title:e.title,providerMetadata:e.providerMetadata}),l();break;case"source-document":n.message.parts.push({type:"source-document",sourceId:e.sourceId,mediaType:e.mediaType,title:e.title,filename:e.filename,providerMetadata:e.providerMetadata}),l();break;case"tool-input-start":{let t=n.message.parts.filter(fE);n.partialToolCalls[e.toolCallId]={text:"",toolName:e.toolName,index:t.length,dynamic:e.dynamic,title:e.title},e.dynamic?h({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-streaming",input:void 0,providerExecuted:e.providerExecuted,title:e.title}):m({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-streaming",input:void 0,providerExecuted:e.providerExecuted,title:e.title}),l();break}case"tool-input-delta":{let t=n.partialToolCalls[e.toolCallId];t.text+=e.inputTextDelta;let{value:r}=await fy(t.text);t.dynamic?h({toolCallId:e.toolCallId,toolName:t.toolName,state:"input-streaming",input:r,title:t.title}):m({toolCallId:e.toolCallId,toolName:t.toolName,state:"input-streaming",input:r,title:t.title}),l();break}case"tool-input-available":e.dynamic?h({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-available",input:e.input,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,title:e.title}):m({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-available",input:e.input,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,title:e.title}),l(),a&&!e.providerExecuted&&await a({toolCall:e});break;case"tool-input-error":e.dynamic?h({toolCallId:e.toolCallId,toolName:e.toolName,state:"output-error",input:e.input,errorText:e.errorText,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata}):m({toolCallId:e.toolCallId,toolName:e.toolName,state:"output-error",input:void 0,rawInput:e.input,errorText:e.errorText,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata}),l();break;case"tool-approval-request":{let t=f(e.toolCallId);t.state="approval-requested",t.approval={id:e.approvalId},l();break}case"tool-output-denied":f(e.toolCallId).state="output-denied",l();break;case"tool-output-available":{let t=f(e.toolCallId);"dynamic-tool"===t.type?h({toolCallId:e.toolCallId,toolName:t.toolName,state:"output-available",input:t.input,output:e.output,preliminary:e.preliminary,providerExecuted:e.providerExecuted,title:t.title}):m({toolCallId:e.toolCallId,toolName:fj(t),state:"output-available",input:t.input,output:e.output,providerExecuted:e.providerExecuted,preliminary:e.preliminary,title:t.title}),l();break}case"tool-output-error":{let t=f(e.toolCallId);"dynamic-tool"===t.type?h({toolCallId:e.toolCallId,toolName:t.toolName,state:"output-error",input:t.input,errorText:e.errorText,providerExecuted:e.providerExecuted,title:t.title}):m({toolCallId:e.toolCallId,toolName:fj(t),state:"output-error",input:t.input,rawInput:t.rawInput,errorText:e.errorText,providerExecuted:e.providerExecuted,title:t.title}),l();break}case"start-step":n.message.parts.push({type:"step-start"});break;case"finish-step":n.activeTextParts={},n.activeReasoningParts={};break;case"start":null!=e.messageId&&(n.message.id=e.messageId),await g(e.messageMetadata),(null!=e.messageId||null!=e.messageMetadata)&&l();break;
73case"finish":null!=e.finishReason&&(n.finishReason=e.finishReason),await g(e.messageMetadata),null!=e.messageMetadata&&l();break;case"message-metadata":await g(e.messageMetadata),null!=e.messageMetadata&&l();break;case"error":null==i||i(Error(e.errorText));break;default:if(e.type.startsWith("data-")){if((null==r?void 0:r[e.type])!=null&&await iV({value:e.data,schema:r[e.type]}),e.transient){null==o||o(e);break}let t=null!=e.id?n.message.parts.find(t=>e.type===t.type&&e.id===t.id):void 0;null!=t?t.data=e.data:n.message.parts.push(e),null==o||o(e),l()}}s.enqueue(e)})}}))}({stream:a,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:s,onError:e=>{throw e}}),onError:e=>{throw e}}),this.setStatus({status:"ready"})}catch(e){if(c||"AbortError"===e.name)return c=!0,this.setStatus({status:"ready"}),null;p=!0,e instanceof TypeError&&(e.message.toLowerCase().includes("fetch")||e.message.toLowerCase().includes("network"))&&(d=!0),this.onError&&e instanceof Error&&this.onError(e),this.setStatus({status:"error",error:e})}finally{try{null==(o=this.onFinish)||o.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:c,isDisconnect:d,isError:p,finishReason:null==(a=this.activeResponse)?void 0:a.state.finishReason})}catch(e){console.error(e)}this.activeResponse=void 0}(null==(s=this.sendAutomaticallyWhen)?void 0:s.call(this,{messages:this.state.messages}))&&!p&&await this.makeRequest({trigger:"submit-message",messageId:null==(l=this.lastMessage)?void 0:l.id,metadata:t,headers:r,body:n})}},fP=e.i(561030),fD=e.i(207102);e.s(["ERROR_REVALIDATE_EVENT",0,3,"FOCUS_EVENT",0,0,"MUTATE_EVENT",0,2,"RECONNECT_EVENT",0,1],487);var f$=Object.prototype.hasOwnProperty;function fL(e,t){var r,n;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&fL(e[n],t[n]););return -1===n}if(!r||"object"==typeof e){for(r in n=0,e)if(f$.call(e,r)&&++n&&!f$.call(t,r)||!(r in t)||!fL(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!=e&&t!=t}e.s(["dequal",0,fL],359394);let fM=new WeakMap,fU=()=>{},fz=fU(),fF=Object,fq=e=>e===fz,fZ=(e,t)=>({...e,...t}),fV={},fB={},fH="undefined",fW=typeof window!=fH,fG=typeof document!=fH,fK=fW&&"Deno"in window,fY=(e,t)=>{let r=fM.get(e);return[()=>!fq(t)&&e.get(t)||fV,n=>{if(!fq(t)){let i=e.get(t);t in fB||(fB[t]=i),r[5](t,fZ(i,n),i||fV)}},r[6],()=>!fq(t)&&t in fB?fB[t]:!fq(t)&&e.get(t)||fV]},fX=!0,[fJ,fQ]=fW&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[fU,fU],f0={initFocus:e=>(fG&&document.addEventListener("visibilitychange",e),fJ("focus",e),()=>{fG&&document.removeEventListener("visibilitychange",e),fQ("focus",e)}),initReconnect:e=>{let t=()=>{fX=!0,e()},r=()=>{fX=!1};return fJ("online",t),fJ("offline",r),()=>{fQ("online",t),fQ("offline",r)}}},f1=!ee.default.useId,f2=!fW||fK,f4=f2?ee.useEffect:ee.useLayoutEffect,f3="u">typeof navigator&&navigator.connection,f6=!f2&&f3&&(["slow-2g","2g"].includes(f3.effectiveType)||f3.saveData),f5=new WeakMap,f9=(e,t)=>e===`[object ${t}]`,f7=0,f8=e=>{let t,r,n=typeof e,i=fF.prototype.toString.call(e),a=f9(i,"Date"),o=f9(i,"RegExp"),s=f9(i,"Object");if(fF(e)!==e||a||o)t=a?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=f5.get(e))return t;if(t=++f7+"~",f5.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=f8(e[r])+",";f5.set(e,t)}if(s){t="#";let n=fF.keys(e).sort();for(;!fq(r=n.pop());)fq(e[r])||(t+=r+":"+f8(e[r])+",");f5.set(e,t)}}return t},me=e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?f8(e):"",t]},mt=0,mr=()=>++mt;async function mn(...e){let[t,r,n,i]=e,a=fZ({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),o=a.populateCache,s=a.rollbackOnError,l=a.optimisticData,u=a.throwOnError;if("function"==typeof r){let e=[];for(let n of t.keys())!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n);return Promise.all(e.map(c))}return c(r);async function c(r){let i,[c]=me(r);if(!c)return;let[d,p]=fY(t,c),[f,m,h,g]=fM.get(t),v=()=>{let e=f[c];return("function"==typeof a.revalidate?a.revalidate(d().data,r):!1!==a.revalidate)&&(delete h[c],delete g[c],e&&e[0])?e[0](2).then(()=>d().data):d().data};if(e.length<3)return v();let y=n,b=!1,x=mr();m[c]=[x,0];let w=!fq(l),_=d(),k=_.data,S=_._c,E=fq(S)?k:S;if(w&&p({data:l="function"==typeof l?l(E,k):l,_c:E}),"function"==typeof y)try{y=y(E)}catch(e){i=e,b=!0}if(y&&"function"==typeof y.then){let e;if(y=await y.catch(e=>{i=e,b=!0}
73),x!==m[c][0]){if(b)throw i;return y}b&&w&&(e=i,"function"==typeof s?s(e):!1!==s)&&(o=!0,p({data:E,_c:fz}))}if(o&&!b&&("function"==typeof o?p({data:o(y,E),error:fz,_c:fz}):p({data:y,error:fz,_c:fz})),m[c][1]=mr(),Promise.resolve(v()).then(()=>{p({_c:fz})}),b){if(u)throw i;return}return y}}let mi=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},ma=(e,t)=>{if(!fM.has(e)){let r=fZ(f0,t),n=Object.create(null),i=mn.bind(fz,e),a=fU,o=Object.create(null),s=(e,t)=>{let r=o[e]||[];return o[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},l=(t,r,n)=>{e.set(t,r);let i=o[t];if(i)for(let e of i)e(r,n)},u=()=>{if(!fM.has(e)&&(fM.set(e,[n,Object.create(null),Object.create(null),Object.create(null),i,l,s]),!f2)){let t=r.initFocus(setTimeout.bind(fz,mi.bind(fz,n,0))),i=r.initReconnect(setTimeout.bind(fz,mi.bind(fz,n,1)));a=()=>{t&&t(),i&&i(),fM.delete(e)}}};return u(),[e,i,u,a]}return[e,fM.get(e)[4]]},[mo,ms]=ma(new Map),ml=fZ({onLoadingSlow:fU,onSuccess:fU,onError:fU,onErrorRetry:(e,t,r,n,i)=>{let a=r.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*r.errorRetryInterval;
73(fq(a)||!(o>a))&&setTimeout(n,s,i)},onDiscarded:fU,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:f6?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:f6?5e3:3e3,compare:fL,isPaused:()=>!1,cache:mo,mutate:ms,fallback:{}},{isOnline:()=>fX,isVisible:()=>{let e=fG&&document.visibilityState;return fq(e)||"hidden"!==e}}),mu=(0,ee.createContext)({});e.i(487);let mc=fW&&window.__SWR_DEVTOOLS_USE__;(mc?window.__SWR_DEVTOOLS_USE__:[]).concat(e=>(t,r,n)=>{let i=r&&((...e)=>{let[n]=me(t),[,,,i]=fM.get(mo);if(n.startsWith("$inf$"))return r(...e);let a=i[n];return fq(a)?r(...e):(delete i[n],a)});return e(t,i,n)}),mc&&(window.__SWR_DEVTOOLS_REACT__=ee.default);let md=()=>{},mp=md(),mf=(new WeakMap,ee.default.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}})),mm={dedupe:!0},mh=Promise.resolve(fz);fF.defineProperty(e=>{let{value:t}=e,r=(0,ee.useContext)(mu),n="function"==typeof t,i=(0,ee.useMemo)(()=>n?t(r):t,[n,r,t]),a=(0,ee.useMemo)(()=>n?i:((e,t)=>{let r=fZ(e,t);if(t){let{use:n,fallback:i}=e,{use:a,fallback:o}=t;n&&a&&(r.use=n.concat(a)),i&&o&&(r.fallback=fZ(i,o))}return r})(r,i),[n,r,i]),o=i&&i.provider,s=(0,ee.useRef)(fz);o&&!s.current&&(s.current=ma(o(a.cache||mo),i));let l=s.current;return l&&(a.cache=l[0],a.mutate=l[1]),f4(()=>{if(l)return l[2]&&l[2](),l[3]},[]),(0,ee.createElement)(mu.Provider,fZ(e,{value:a}))},"defaultValue",{value:ml});var mg=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},mv=(e,t,r)=>(mg(e,t,"read from private field"),r?r.call(e):t.get(e)),my=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},mb=(e,t,r,n)=>(mg(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),mx=class{constructor(e=[]){my(this,q,void 0),my(this,Z,"ready"),my(this,V,void 0),my(this,B,new Set),my(this,H,new Set),my(this,W,new Set),this.pushMessage=e=>{mb(this,q,mv(this,q).concat(e)),mv(this,G).call(this)},this.popMessage=()=>{mb(this,q,mv(this,q).slice(0,-1)),mv(this,G).call(this)},this.replaceMessage=(e,t)=>{mb(this,q,[...mv(this,q).slice(0,e),this.snapshot(t),...mv(this,q).slice(e+1)]),mv(this,G).call(this)},this.snapshot=e=>structuredClone(e),this["~registerMessagesCallback"]=(e,t)=>{let r=t?null!=t?(0,fP.default)(e,t):e:e;return mv(this,B).add(r),()=>{mv(this,B).delete(r)}},this["~registerStatusCallback"]=e=>(mv(this,H).add(e),()=>{mv(this,H).delete(e)}),this["~registerErrorCallback"]=e=>(mv(this,W).add(e),()=>{mv(this,W).delete(e)}),my(this,G,()=>{mv(this,B).forEach(e=>e())}),my(this,K,()=>
73{mv(this,H).forEach(e=>e())}),my(this,Y,()=>{mv(this,W).forEach(e=>e())}),mb(this,q,e)}get status(){return mv(this,Z)}set status(e){mb(this,Z,e),mv(this,K).call(this)}get error(){return mv(this,V)}set error(e){mb(this,V,e),mv(this,Y).call(this)}get messages(){return mv(this,q)}set messages(e){mb(this,q,[...e]),mv(this,G).call(this)}};q=new WeakMap,Z=new WeakMap,V=new WeakMap,B=new WeakMap,H=new WeakMap,W=new WeakMap,G=new WeakMap,K=new WeakMap,Y=new WeakMap;var mw=class extends fR{constructor({messages:e,...t}){const r=new mx(e);super({...t,state:r}),my(this,X,void 0),this["~registerMessagesCallback"]=(e,t)=>mv(this,X)["~registerMessagesCallback"](e,t),this["~registerStatusCallback"]=e=>mv(this,X)["~registerStatusCallback"](e),this["~registerErrorCallback"]=e=>mv(this,X)["~registerErrorCallback"](e),mb(this,X,r)}};X=new WeakMap;var m_=e.i(123745),m_=m_,mk=e.i(995493),mS=e.i(569602),mE=e.i(481811),mT=e.i(500530),mj=e.i(943417),mI=e.i(900583),mC=e.i(931179);function mA(){{if("localhost"===window.location.hostname)return"http://localhost:3001/api";let e=(0,mC.deriveContBaseUrlFromHost)(window.location.host,window.location.protocol.replace(":",""));if(e)return`${e}/api`}return"https://cont.primariatm.ro/api"}function mN(){return`${mA()}/chat`}async function mO(){let e=await fetch(`${mN()}/conversations`,{credentials:"include"});if(!e.ok)throw Error("Failed to fetch conversations");let t=await e.json(),r=e.headers.get("X-RateLimit-Used"),n=e.headers.get("X-RateLimit-Limit"),i=e.headers.get("X-RateLimit-Remaining");return{conversations:t,rateLimit:r&&n&&i?{used:parseInt(r),limit:parseInt(n),remaining:parseInt(i)}:null}}async function mR(e){let t=await fetch(`${mN()}/conversations/${e}`,{credentials:"include"});if(!t.ok)throw Error("Failed to fetch conversation");return t.json()}async function mP(e){return(await fetch(`${mN()}/conversations/${e}`,{method:"DELETE",credentials:"include"})).ok}async function mD(e){if(!(await fetch(`${mN()}/label`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok)throw Error("Failed to label message")}var m$=e.i(706026),mL=e.i(971508),mL=mL,mM=e.i(611259);function mU({className:e,...t}){return(0,J.jsx)("div",{"data-slot":"skeleton",className:(0,ek.cn)("bg-accent animate-pulse rounded-md",e),...t})}function mz({conversation:e,isActive:t,onClick:r,onDelete:n}){let i=new Date(e.createdAt).toLocaleDateString("ro-RO",{day:"2-digit",month:"short"}),a=e=>{e.stopPropagation(),confirm("Sigur doriÈi sÄ ÈtergeÈi aceastÄ conversaÈie?")&&n()};return(0,J.jsx)("button",{onClick:r,className:(0,ek.cn)("group w-full rounded-lg px-3 py-2 text-left transition-colors hover:bg-gray-100",t&&"bg-primary/10 hover:bg-primary/15"),children:(0,J.jsxs)("div",{className:"flex items-center gap-2",children:[(0,J.jsx)(en,{className:"size-4 flex-shrink-0 self-start text-gray-400"}),(0,J.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,J.jsx)("div",{className:"truncate text-sm font-medium",children:e.title||"ConversaÈie fÄrÄ titlu"}),(0,J.jsxs)("div",{className:"flex items-center gap-2 text-xs text-gray-500",children:[(0,J.jsx)("span",{children:i}),(0,J.jsx)("span",{children:"·"}),(0,J.jsxs)("span",{children:[e.messageCount," mesaje"]})]})]}),(0,J.jsx)("div",{role:"button",tabIndex:0,onClick:a,onKeyDown:e=>"Enter"===e.key&&a(e),className:"flex-shrink-0 rounded p-1 text-gray-400 transition-opacity hover:bg-gray-200 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Èterge conversaÈia",children:(0,J.jsx)(mM.Trash2Icon,{className:"size-4"})})]})})}function mF({currentConversationId:e,onSelectConversation:t,onNewConversation:r,onClose:n}){let[i,a]=(0,ee.useState)([]),[o,s]=(0,ee.useState)(null),[l,u]=(0,ee.useState)(!0);(0,ee.useEffect)(()=>{mO().then(e=>{a(e.conversations),s(e.rateLimit)}).catch(console.error).finally(()=>u(!1))},[]);let c=async t=>{if(a(e=>e.filter(e=>e.id!==t)),await mP(t))t===e&&r();else{let e=await mO();a(e.conversations),s(e.rateLimit)}},d=function(e){let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()),n=new Date(r.getTime()-6048e5),i=[{label:"AstÄzi",items:[]},{label:"Ultimele 7 zile",items:[]},{label:"Mai vechi",items:[]}];for(let t of e){let e=new Date(t.createdAt);e>=r?i[0].items.push(t):e>=n?i[1].items.push(t):i[2].items.push(t)}return i.filter(e=>e.items.length>0)}(i);return(0,J.jsxs)("div",{className:"absolute inset-0 z-10 flex flex-col bg-white",children:[(0,J.jsxs)("div",{className:"flex h-[70px] flex-shrink-0 items-center gap-3 border-b px-4",children:[(0,J.jsx)("button",{onClick:n,className:"rounded-lg p-2.5 text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-700",children:(0,J.jsx)(mL.default,{className:"size-5"})}),(0,J.jsx)("span",{className:"font-semibold text-gray-900",children:"ConversaÈii"}),!l&&i.length>0&&(0,J.jsxs)("span",{className:"ml-auto text-xs text-gray-500",children:[i.length," conversaÈii ·"," ",i.reduce((e,t)=>
73e+t.messageCount,0)," mesaje",o&&(0,J.jsxs)(J.Fragment,{children:[" (",Math.round(o.used/o.limit*100),"% din limita lunarÄ)"]})]})]}),(0,J.jsx)("div",{className:"flex-1 overflow-y-auto",children:l?(0,J.jsx)("div",{className:"space-y-3 p-3",children:[1,2,3,4,5].map(e=>(0,J.jsx)(mU,{className:"h-14 w-full rounded-lg"},e))}):0===i.length?(0,J.jsx)("div",{className:"p-4 text-center text-sm text-gray-500",children:"Nu aveÈi conversaÈii anterioare."}):(0,J.jsx)("div",{className:"space-y-4 p-3",children:d.map(r=>(0,J.jsxs)("div",{children:[(0,J.jsx)("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase text-gray-500",children:r.label}),(0,J.jsx)("div",{className:"space-y-1",children:r.items.map(r=>(0,J.jsx)(mz,{conversation:r,isActive:r.id===e,onClick:()=>t(r.id),onDelete:()=>c(r.id)},r.id))})]},r.label))})})]})}e.s(["Skeleton",0,mU],908584);let mq=(0,er.default)("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2h0a3.13 3.13 0 0 1 3 3.88Z",key:"y3tblf"}]]),mZ=(0,er.default)("ThumbsDown",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22h0a3.13 3.13 0 0 1-3-3.88Z",key:"s6e0r"}]]),mV=(0,er.default)("MessageSquarePlus",[["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"}],["line",{x1:"9",x2:"15",y1:"10",y2:"10",key:"1lj1wd"}],["line",{x1:"12",x2:"12",y1:"7",y2:"13",key:"1cppfj"}]]),mB=(0,er.default)("Pencil",[["path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z",key:"5qss01"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);var mH=e.i(839019),mH=mH,mW=e.i(867161),mW=mW,mG=e.i(443102),mK=e.i(18706),mY=e.i(776218);function mX({label:e,value:t,onChange:r}){return(0,J.jsxs)("div",{className:"flex items-center gap-2",children:[(0,J.jsx)("span",{className:"w-16 text-xs text-muted-foreground sm:w-auto",children:e}),(0,J.jsx)("div",{className:"flex gap-0.5",children:[1,2,3,4,5].map(e=>(0,J.jsx)(mY.Button,{variant:t===e?"default":"ghost",size:"sm",onClick:()=>r(t===e?null:e),className:"h-6 w-6 p-0 text-xs",children:e},e))})]})}function mJ({messageId:e,conversationId:t,existingLabel:r,onLabelChange:n}){let[i,a]=(0,ee.useState)(!1),[o,s]=(0,ee.useState)(!1),[l,u]=(0,ee.useState)(!1),[c,d]=(0,ee.useState)(r?.rating??null),[p,f]=(0,ee.useState)(r?.accuracy??null),[m,h]=(0,ee.useState)(r?.helpfulness??null),[g,v]=(0,ee.useState)(r?.feedback??""),[y,b]=(0,ee.useState)(!1);(0,ee.useEffect)(()=>{if(y){let e=setTimeout(()=>b(!1),2500);return()=>clearTimeout(e)}},[y]);let x=null!==c,w=async r=>{b(!1);let i=void 0!==r.rating?r.rating:c,o=void 0!==r.accuracy?r.accuracy:p,s=void 0!==r.helpfulness?r.helpfulness:m,l=void 0!==r.feedback?r.feedback:g||null;a(!0);try{await mD({messageId:e,conversationId:t,rating:i,accuracy:o,helpfulness:s,feedback:l}),b(!0),n?.({rating:i,accuracy:o,helpfulness:s,feedback:l})}catch{}finally{a(!1)}},_=e=>{d(e),null!==e&&(u(!0),-1===e&&s(!0)),w({rating:e})};return(0,J.jsxs)("div",{className:"mt-2 flex flex-col gap-2",children:[(0,J.jsxs)("div",{className:"flex flex-col items-start gap-2 sm:flex-row sm:flex-wrap sm:items-center sm:gap-1",children:[(0,J.jsxs)("div",{className:"flex items-center gap-2",children:[(0,J.jsxs)("div",{className:"flex items-center gap-1 rounded-md border border-transparent p-0.5",children:[(0,J.jsx)(mY.Button,{variant:1===c?"default":"ghost",size:"icon-sm",onClick:()=>_(1===c?null:1),disabled:i,className:(0,ek.cn)("flex h-7 w-7 items-center justify-center",1===c?"bg-green-600 hover:bg-green-700":!x&&"text-muted-foreground/50 hover:text-foreground"),children:(0,J.jsx)(mq,{className:"h-3.5 w-3.5"})}),(0,J.jsx)(mY.Button,{variant:-1===c?"default":"ghost",size:"icon-sm",onClick:()=>_(-1===c?null:-1),disabled:i,className:(0,ek.cn)("flex h-7 w-7 items-center justify-center",-1===c?"bg-red-600 hover:bg-red-700":!x&&"text-muted-foreground/50 hover:text-foreground"),children:(0,J.jsx)(mZ,{className:"h-3.5 w-3.5"})}),x&&(0,J.jsx)("button",{onClick:()=>
73u(!l),className:"ml-0.5 text-muted-foreground/40 transition-transform hover:text-muted-foreground",children:l?(0,J.jsx)(mK.ChevronLeft,{className:"h-3.5 w-3.5"}):(0,J.jsx)(mG.ChevronRight,{className:"h-3.5 w-3.5"})})]}),y&&(0,J.jsxs)("span",{className:"flex items-center gap-1 text-xs text-green-600 sm:hidden",children:[(0,J.jsx)(mH.default,{className:"h-3 w-3"}),"Salvat"]}),i&&(0,J.jsx)(mW.default,{className:"h-3 w-3 animate-spin text-muted-foreground sm:hidden"})]}),x&&l&&(0,J.jsxs)("div",{className:"flex flex-col items-start gap-2 animate-in fade-in slide-in-from-left-1 duration-200 sm:flex-row sm:items-center sm:gap-1",children:[(0,J.jsx)(mX,{label:"AcurateÈe",value:p,onChange:e=>{f(e),null!==e&&e<5&&s(!0),w({accuracy:e})}}),(0,J.jsx)("div",{className:"mx-2 hidden h-4 w-px bg-border sm:block"}),(0,J.jsx)(mX,{label:"Utilitate",value:m,onChange:e=>{h(e),null!==e&&e<5&&s(!0),w({helpfulness:e})}}),(0,J.jsx)("div",{className:"mx-2 hidden h-4 w-px bg-border sm:block"}),!o&&(0,J.jsx)(mY.Button,{variant:"ghost",size:"sm",onClick:()=>s(!0),className:"h-6 px-0 text-xs sm:px-3",children:g?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(mB,{className:"h-3 w-3"}),"EditeazÄ feedback"]}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(mV,{className:"h-3 w-3"}),"AdaugÄ feedback"]})})]}),y&&(0,J.jsxs)("span",{className:"ml-2 hidden items-center gap-1 text-xs text-green-600 sm:flex",children:[(0,J.jsx)(mH.default,{className:"h-3 w-3"}),"Salvat. MulÈumim!"]}),i&&(0,J.jsx)(mW.default,{className:"ml-2 hidden h-3 w-3 animate-spin text-muted-foreground sm:block"})]}),o&&l&&(0,J.jsxs)("div",{className:"flex w-full flex-col gap-2 rounded-lg border bg-muted/30 p-3 animate-in fade-in slide-in-from-top-1 duration-200 sm:w-fit",children:[(0,J.jsx)("textarea",{value:g,onChange:e=>v(e.target.value),placeholder:"Ce a fost greÈit sau lipsÄ?",className:"min-h-[60
73px] w-full rounded-md border bg-background px-3 py-2 text-sm placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring sm:w-80"}),(0,J.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,J.jsx)(mY.Button,{variant:"ghost",onClick:()=>s(!1),size:"sm",children:"RenunÈÄ"}),(0,J.jsx)(mY.Button,{onClick:()=>{w({feedback:g||null}),s(!1),u(!1)},disabled:i,size:"sm",children:i?(0,J.jsx)(mW.default,{className:"h-4 w-4 animate-spin"}):"SalveazÄ"})]})]})]})}function mQ({messages:e}){let t=e[e.length-1];if(!t||"assistant"!==t.role)return!1;let r=t.parts.reduce((e,t,r)=>"step-start"===t.type?r:e,-1),n=t.parts.slice(r+1).filter(fT),i=n.some(e=>"approval-responded"===e.state&&e.approval?.approved),a=n.every(e=>"output-available"===e.state||"output-error"===e.state||"approval-responded"===e.state&&e.approval?.approved);return i&&a}function m0({status:e,onStop:t}){let{textInput:r}=(0,mI.usePromptInputController)(),n=!r.value.trim(),i="streaming"===e||"submitted"===e,a=(0,J.jsx)(mS.CornerDownLeftIcon,{className:"size-4"});return i?a=(0,J.jsx)(mE.SquareIcon,{className:"size-4"}):"error"===e&&(a=(0,J.jsx)(ei.XIcon,{className:"size-4"})),(0,J.jsx)(mI.PromptInputSubmit,{className:"self-end",disabled:n?!i:void 0,onClick:()=>{i&&t()},status:e,children:a})}function m1(e){return e?e.filter(e=>"text"===e.type).map(e=>e.text).join(" "):""}function m2({status:e,onSubmit:t,onStop:r}){let n=(0,ee.useRef)(null),[i,a]=(0,ee.useState)(!1);return(0,J.jsx)("div",{className:"flex-shrink-0 border-t bg-gray-100 p-3 sm:rounded-b-2xl",children:(0,J.jsx)(mI.PromptInputProvider,{children:(0,J.jsxs)(mI.PromptInput,{className:"bg-white",onSubmit:e=>{e.text.trim()&&t(e)},children:[(0,J.jsx)(mI.PromptInputTextarea,{placeholder:"",ref:n}),(0,J.jsxs)(mI.PromptInputFooter,{children:[(0,J.jsxs)(mI.PromptInputTools,{children:[(0,J.jsx)(mI.PromptInputSpeechButton,{onListeningChange:e=>{a(e)},textareaRef:n}),i?(0,J.jsx)(mI.AudioWaveform,{className:"ml-2 shrink-0"}):null]}),(0,J.jsx)(m0,{onStop:r,status:e})]})]})})})}function m4({userId:e,conversationId:t,onConversationIdChange:r,onClose:n,onNewConversation:i,onSelectConversation:a,renderToolOutput:o,isAnonymous:s=!1,isVisible:l=!0,pendingMessage:u=null,onPendingMessageConsumed:c}){let[d,p]=(0,ee.useState)(!1),[f,m]=(0,ee.useState)([]),[h,g]=(0,ee.useState)({}),[v,y]=(0,ee.useState)(!1),b=(0,ee.useRef)(t),[x,w]=(0,ee.useState)(null),[_,k]=(0,ee.useState)(null),[S,E]=(0,ee.useState)(null);(0,ee.useEffect)(()=>{b.current=t},[t]),(0,ee.useEffect)(()=>{if(s||!t){m([]),g({});return}y(!0),mR(t).then(e=>{let t=new Set;m(e.messages.map(e=>({id:e.id,role:e.role,parts:e.parts,createdAt:new Date(e.createdAt)})).reverse().filter(e=>!t.has(e.id)&&(t.add(e.id),!0)).reverse());let r={};for(let t of e.messages)t.label&&(r[t.id]=t.label);g(r)}).catch(console.error).finally(()=>y(!1))},[t,s]);let{messages:T,sendMessage:j,status:I,error:C,stop:A,setMessages:N,addToolApprovalResponse:O}=function({experimental_throttle:e,resume:t=!1,...r}={}){let n=(0,ee.useRef)("chat"in r?{}:{onToolCall:r.onToolCall,onData:r.onData,onFinish:r.onFinish,onError:r.onError,sendAutomaticallyWhen:r.sendAutomaticallyWhen});"chat"in r||(n.current={onToolCall:r.onToolCall,onData:r.onData,onFinish:r.onFinish,onError:r.onError,sendAutomaticallyWhen:r.sendAutomaticallyWhen});let i={...r,onToolCall:e=>{var t,r;return null==(r=(t=n.current).onToolCall)?void 0:r.call(t,e)},onData:e=>{var t,r;return null==(r=(t=n.current).onData)?void 0:r.call(t,e)},onFinish:e=>{var t,r;return null==(r=(t=n.current).onFinish)?void 0:r.call(t,e)},onError:e=>{var t,r;return null==(r=(t=n.current).onError)?void 0:r.call(t,e)},sendAutomaticallyWhen:e=>{var t,r,i;return null!=(i=null==(r=(t=n.current).sendAutomaticallyWhen)?void 0:r.call(t,e))&&i}},a=(0,ee.useRef)("chat"in r?r.chat:new mw(i));("chat"in r&&r.chat!==a.current||"id"in r&&a.current.id!==r.id)&&(a.current="chat"in r?r.chat:new mw(i));let o=(0,ee.useCallback)(t=>a.current["~registerMessagesCallback"](t,e),[e,a.current.id]),s=(0,ee.useSyncExternalStore)(o,()=>a.current.messages,()=>a.current.messages),l=(0,ee.useSyncExternalStore)(a.current["~registerStatusCallback"],()=>a.current.status,()=>a.current.status),u=(0,ee.useSyncExternalStore)(a.current["~registerErrorCallback"],()=>a.current.error,()=>a.current.error),c=(0,ee.useCallback)(e=>{"function"==typeof e&&(e=e(a.current.messages)),a.current.messages=e},[a]);return(0,ee.useEffect)(()=>{t&&a.current.resumeStream()},[t,a]),{id:a.current.id,messages:s,setMessages:c,sendMessage:a.current.sendMessage,regenerate:a.current.regenerate,clearError:a.current.clearError,stop:a.current.stop,error:u,resumeStream:a.current.resumeStream,status:l,addToolResult:a.current.addToolOutput,addToolOutput:a.current.addToolOutput,addToolApprovalResponse:a.current.addToolApprovalResponse}}({messages:f,sendAutomaticallyWhen:mQ,transport:(0,ee.useMemo)(()=>new fO({api:mN(),credentials:"include",fetch:async(e,t)=>{if(t?.body){let e=JSON.parse(t.body);b.current&&(e.conversationId=b.current),t={...t,body:JSON.stringify(e)}}let n=await fetch(e,t);if(403===n.status){let e=await n.json();throw E(e.error||"Acces interzis."),Error(e.error)}if(429===n.status){let e=await n.json();throw k(e.message),Error(e.message)}n.headers.get("X-RateLimit-Warning")?w({used:parseInt(n.headers.get("X-RateLimit-Used")||"0"),limit:parseInt(n.headers.get("X-RateLimit-Limit")||"100"),remaining:parseInt(n.headers.get("X-RateLimit-Remaining")||"0")}):w(null);let i=n.headers.get("X-Conversation-Id");return i&&!b.current&&(b.current=i,r(i)),n}}),[r,s])}),R=(0,ee.useRef)(null);(0,ee.useEffect)(()=>{u&&R.current!==u.id&&"streaming"!==I&&"submitted"!==I&&(R.current=u.id,p(!1),j({text:u.text}),c?.())},[u,I,j,c]);let[P,D]=(0,ee.useState)(new Set),$=(0,ee.useRef)(new Map),L=(e,t)=>{$.current.set(e,t)},M=e=>{let t=$.current.get(e);t&&($.current.delete(e),N(r=>r.map(r=>({...r,parts:r.parts.map(r=>"approval"in r&&r.approval?.id===e&&"input"in r?{...r,input:{...r.input,...t}}:r)})))),O({id:e,approved:!0})},U=(e,t)=>{D(e=>new Set(e).add(t)),O({id:e,approved:!1})},z=0===T.length,F=T.length>0?T:f,q=()=>{i(),p(!1),m([]),N([]),g({})};return(0,J.jsxs)(ew.motion.div,{initial:!1,animate:l?{scale:1,op
73acity:1}:{scale:.3,opacity:0},className:(0,ek.cn)("fixed inset-0 z-[9999] flex flex-col bg-white pb-[env(safe-area-inset-bottom)] pt-[env(safe-area-inset-top)] sm:inset-auto sm:bottom-[5.5rem] sm:right-6 sm:h-[900px] sm:max-h-[calc(100vh-6rem)] sm:w-[600px] sm:max-w-[calc(100vw-3rem)] sm:rounded-b-2xl sm:p-0 sm:shadow-2xl",!l&&"pointer-events-none"),style:{transformOrigin:"calc(100% - 1.75rem) calc(100% + 2.25rem)"},transition:{type:"spring",duration:.25,bounce:0},children:[(0,J.jsxs)("div",{className:"flex h-[70px] flex-shrink-0 items-center justify-between bg-primary-dark px-4",children:[(0,J.jsxs)("span",{className:"flex items-center gap-3 font-semibold text-white",children:["Asistenta VirtualÄ Timi",(0,J.jsx)("span",{className:"rounded bg-white/20 px-1.5 py-0.5 text-xs font-medium",children:"Beta"})]}),(0,J.jsxs)("div",{className:"flex items-center gap-1",children:[!s&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)("button",{className:"rounded-lg p-2.5 text-white/80 transition-colors hover:bg-white/10 hover:text-white",onClick:q,title:"ConversaÈie nouÄ",type:"button",children:(0,J.jsx)(mk.PlusIcon,{className:"size-5"})}),(0,J.jsx)("button",{className:"rounded-lg p-2.5 text-white/80 transition-colors hover:bg-white/10 hover:text-white",onClick:()=>p(!0),title:"Istoric conversaÈii",type:"button",children:(0,J.jsx)(m_.default,{className:"size-5"})})]}),(0,J.jsx)("button",{className:"rounded-lg p-2.5 text-white/80 transition-colors hover:bg-white/10 hover:text-white",onClick:n,title:"Ãnchide",children:(0,J.jsx)(ei.XIcon,{className:"size-5"})})]})]}),s?(0,J.jsxs)("div",{className:"flex-shrink-0 bg-blue-50 px-4 py-2 text-xs text-blue-800",children:[(0,J.jsx)("a",{className:"underline",href:"https://cont.primariatm.ro/login",children:"AutentificÄ-te"})," ","pentru programÄri, sesizÄri Èi date personale."]}):null,(0,J.jsx)("div",{className:"flex-shrink-0 border-b bg-amber-50 px-4 py-2 text-xs text-amber-800",children:"RÄspunsurile generate cu inteligenÈÄ artificialÄ pot conÈine greÈeli. VerificaÈi informaÈiile importante."}),(0,J.jsx)("div",{className:"relative flex-1 overflow-hidden",children:d?(0,J.jsx)(mF,{currentConversationId:t,onClose:()=>p(!1),onNewConversation:q,onSelectConversation:e=>{a(e),p(!1),N([]),m([]),g({})}}):(0,J.jsxs)(mT.Conversation,{className:"h-full",children:[(0,J.jsxs)(mT.ConversationContent,{children:[v&&0===T.length?(0,J.jsx)("div",{className:"flex h-full items-center justify-center",children:(0,J.jsx)("div",{className:"size-6 animate-spin rounded-full border-2 border-gray-300 border-t-primary"})}):0===F.length?(0,J.jsxs)(mT.ConversationEmptyState,{children:[(0,J.jsx)("img",{src:"https://cont.primariatm.ro/timi-welcome.png",alt:"Timi",className:"h-24 w-auto"}),(0,J.jsxs)("div",{className:"space-y-1",children:[(0,J.jsx)("h3",{className:"font-medium",children:"Bun venit!"}),(0,J.jsx)("p",{className:"text-muted-foreground",children:"Sunt Timi, asistenta virtualÄ a PrimÄriei TimiÈoara."})]}),(0,J.jsx)("div",{className:"mt-2 flex flex-wrap justify-center gap-2",children:["Documente necesare pentru viza de flotant",...!s?["Vreau sÄ fac o programare"]:[],...!s?["Doresc sÄ fac o sesizare"]:[],...!s?["Care e statusul cererii mele?"]:[],...!s?["Ce taxe Èi impozite am de plÄtit?"]:[],"Ce Ètii sÄ faci?"].map(e=>(0,J.jsx)("button",{className:"rounded-full border border-gray-300 px-3 py-1.5 text-sm text-gray-700 transition-colors hover:bg-gray-100",onClick:()=>j({text:e}),type:"button",children:e},e))})]}):F.map((e,r)=>{var n;if(e.metadata?.hidden)return null;let i=r===F.length-1,a="streaming"===I||"submitted"===I;return(0,J.jsx)(mj.Message,{from:e.role,children:(0,J.jsxs)(mj.MessageContent,{children:[(0,J.jsx)(m$.MessagePartsRenderer,{message:e,deniedTools:P,onApprove:M,onDeny:U,onModifyToolInput:L,isHistoricalView:!i||z,renderToolOutput:o,sendMessage:(e,t)=>j({text:e,metadata:t}),isLastMessage:i,isStreaming:a}),i&&a&&"assistant"===e.role&&(!e.parts||0===e.parts.length)?(0,J.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,J.jsx)("span",{className:"rounded-full bg-gray-400",style:{width:"0.5rem",height:"0.5rem",animation:"pulse 1.5s ease-in-out infinite"}}),(0,J.jsx)("span",{className:"rounded-full bg-gray-400",style:{width:"0.5rem",height:"0.5rem",animation:"pulse 1.5s ease-in-out 0.2s infinite"}}),(0,J.jsx)("span",{className:"rounded-full bg-gray-400",style:{width:"0.5rem",height:"0.5rem",animation:"pulse 1.5s ease-in-out 0.4s infinite"}})]}):null,"assistant"===e.role&&!(i&&a)&&m1(e.parts)&&(0,J.jsx)(mj.MessageSpeakButton,{className:"mt-2",text:(n=m1(e.parts))?n.replace(/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/gm,"").replace(/^([\s\t]*)([*\-+]|\d+\.)\s+/gm,"$1").replace(/\n={2,}/g,"\n").replace(/^[=-]{2,}
73\s*$/gm,"").replace(/```(?:.*)\n([\s\S]*?)```/g,"$1").replace(/~{3}.*\n/g,"").replace(/~~/g,"").replace(/<[^>]*>/g,"").replace(/\[\^.+?\](: .*?$)?/g,"").replace(/\s{0,2}\[.*?\]: .*?$/gm,"").replace(/!\[(.*?)\][[(].*?[\])]/g,"").replace(/\[([\s\S]*?)\]\s*[([].*?[)\]]/g,"$1").replace(/^(\n)?\s{0,3}>\s?/gm,"$1").replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/gm,"").replace(/^(\n)?\s{0,}#{1,6}\s*( (.+))? +#+$|^(\n)?\s{0,}#{1,6}\s*( (.+))?$/gm,"$1$3$4$6").replace(/([*]+)(\S)(.*?\S)??\1/g,"$2$3").replace(/(^|\W)([_]+)(\S)(.*?\S)??\2($|\W)/g,"$1$3$4$5").replace(/(`{3,})(.*?)\1/gm,"$2").replace(/`(.+?)`/g,"$1").replace(/~(.*?)~/g,"$1").replace(/\n{3,}/g,"\n\n").replace(/ {2,}/g," ").trim():"",ttsEndpoint:`${mA()}/tts`}),s||"assistant"!==e.role||i&&a||!t?null:(0,J.jsx)(mJ,{conversationId:t,existingLabel:h[e.id],messageId:e.id,onLabelChange:t=>g(r=>({...r,[e.id]:t}))})]})},e.id)}),("submitted"===I||"streaming"===I)&&F.length>0&&"user"===F[F.length-1].role&&(0,J.jsx)(mj.Message,{from:"assistant",children:(0,J.jsx)(mj.MessageContent,{children:(0,J.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,J.jsx)("span",{className:"rounded-full bg-gray-400",style:{width:"0.5rem",height:"0.5rem",animation:"pulse 1.5s ease-in-out infinite"}}),(0,J.jsx)("span",{className:"rounded-full bg-gray-400",style:{width:"0.5rem",height:"0.5rem",animation:"pulse 1.5s ease-in-out 0.2s infinite"}}),(0,J.jsx)("span",{className:"rounded-full bg-gray-400",style:{width:"0.5rem",height:"0.5rem",animation:"pulse 1.5s ease-in-out 0.4s infinite"}})]})})})]}),(0,J.jsx)(mT.ConversationScrollButton,{})]})}),!d&&S?(0,J.jsx)("div",{className:"mx-3 mb-2 rounded-lg border border-red-200 bg-red-50 p-2 text-xs text-red-700",children:S}):null,d||!_||S?null:(0,J.jsx)("div",{className:"mx-3 mb-2 rounded-lg border border-red-200 bg-red-50 p-2 text-xs text-red-700",children:_}),d||!x||_||S?null:(0,J.jsxs)("div",{className:"bg-amber-100 px-4 py-3 text-xs text-amber-800",children:["Ai folosit ",x.used," din cele ",x.limit," ","de mesaje disponibile într-o lunÄ."]}),d||!C||_||S?null:(0,J.jsx)("div",{className:"mx-3 mb-2 rounded-lg bg-red-50 p-2 text-xs text-red-600",children:"A apÄrut o eroare. VÄ rugÄm sÄ Ã®ncercaÈi din nou mai târziu."}),!d&&(0,J.jsx)(m2,{onStop:A,onSubmit:j,status:I})]})}function m3({autoOpen:e=!1,renderToolOutput:t,pendingMessage:r=null,onPendingMessageConsumed:n}){let[i,a]=(0,ee.useState)(e),[o,s]=(0,ee.useState)(null),[l,u]=(0,ee.useState)(!1),[c,d]=(0,ee.useState)(!1),[p,f]=(0,ee.useState)(null),[m,h]=(0,ee.useState)(!1);return((0,ee.useEffect)(()=>{u(!0),e_.authClient.getSession().then(t=>{t.data?.user&&(d(!0),f(t.data.user.id),e&&a(!0))}).catch(()=>{}).finally(()=>h(!0))},[e]),(0,ee.useEffect)(()=>{r&&a(!0)},[r]),l&&m)?(0,et.createPortal)((0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(m4,{conversationId:o,isAnonymous:!c,isVisible:i,onClose:()=>a(!1),onConversationIdChange:s,onNewConversation:()=>{s(null)},onPendingMessageConsumed:n,onSelectConversation:e=>{s(e)},pendingMessage:r,renderToolOutput:t,userId:p||void 0}),(0,J.jsx)("button",{"aria-label":i?"Ãnchide chat":"Deschide chat",className:(0,ek.cn)("items-center justify-center overflow-hidden rounded-full bg-primary text-white shadow-lg transition-all hover:scale-105 hover:shadow-xl",i?"hidden sm:flex":"flex"),onClick:()=>a(!i),type:"button",style:{position:"fixed",bottom:"1.5rem",right:"1.5rem",width:"3.5rem",height:"3.5rem",zIndex:9999},children:(0,J.jsx)(ex,{initial:!1,mode:"wait",children:i?(0,J.jsx)(ew.motion.div,{initial:{rotate:-90,scale:0},animate:{rotate:0,scale:1},exit:{rotate:90,scale:0},transition:{duration:.15},children:(0,J.jsx)(ei.XIcon,{className:"size-6"})},"close"):(0,J.jsx)(ew.motion.div,{initial:{rotate:90,scale:0},animate:{rotate:0,scale:1},exit:{rotate:-90,scale:0},transition:{duration:.15},children:(0,J.jsx)(en,{className:"size-6"})},"open")})})]}),document.body):null}var m6=e.i(220975),m5=e.i(975365),m9=e.i(569814);function m7({input:e,onApprove:t,onDeny:r,onModifyToolInput:n}){let[i,a]=(0,ee.useState)(e.descriere||""),o=[["categorie",e.categorie],["subcategorie",e.subcategorie],...e.strada?[["strada",e.nrStrada?`${e.strada} ${e.nrStrada}`:e.strada]]:[]].filter(([,e])=>e);return(0,J.jsxs)("div",{className:"border-l-4 border-l-primary bg-primary/5 px-4 py-3 dark:border-l-primary-lighter dark:bg-primary/10",children:[(0,J.jsxs)("div",{className:"flex items-center gap-2",children:[(0,J.jsx)(m5.ShieldQuestion,{className:"size-5 flex-shrink-0 text-foreground
73/70"}),(0,J.jsx)("h4",{className:"text-xl font-bold text-foreground/70",children:"Confirmare sesizare"})]}),(0,J.jsx)("p",{className:"mt-3 text-muted-foreground",children:"VerificaÈi datele sesizÄrii înainte de trimitere."}),(0,J.jsx)("table",{className:"mt-2",children:(0,J.jsx)("tbody",{className:"text-muted-foreground",children:o.map(([e,t])=>(0,J.jsxs)("tr",{children:[(0,J.jsxs)("td",{className:"pr-3 align-top capitalize",children:[e,":"]}),(0,J.jsx)("td",{className:"font-semibold text-foreground",children:t})]},e))})}),(0,J.jsxs)("div",{className:"mt-3",children:[(0,J.jsx)("label",{className:"text-sm capitalize text-muted-foreground",children:"Descriere:"}),(0,J.jsx)("textarea",{className:"mt-1 w-full rounded border border-primary/20 bg-background px-3 py-2 text-sm text-foreground focus:border-primary focus:outline-none dark:border-primary/30",onChange:e=>a(e.target.value),rows:4,value:i})]}),(0,J.jsxs)("div",{className:"-mx-4 mt-4 flex items-center justify-end gap-2 border-t border-primary/10 px-4 pt-3 dark:border-primary/20",children:[(0,J.jsx)(m9.Button,{small:!0,onClick:r,children:"RenunÈÄ"}),(0,J.jsx)(m9.Button,{disabled:!i.trim(),primary:!0,small:!0,onClick:()=>{let r=i.trim();r&&(r!==(e.descriere||"").trim()&&n&&n({descriere:r}),t())},children:"Trimite sesizarea"})]})]})}function m8({toolName:e,state:t,isHistorical:r,output:n,input:i,sendMessage:a,approval:o,onApprove:s,onDeny:l,onModifyToolInput:u}){return"getAvailableAppointmentSlots"===e&&"output-available"===t&&n&&n.availableDates?r?{node:null,hideFollowingText:!1}:{node:(0,J.jsx)(m6.AppointmentSlotResults,{onSelect:({slotId:e,stepId:t,dateKey:r,time:n,location:i})=>{a(function({slotId:e,stepId:t,dateKey:r,time:n,location:i}){return`RezervÄ: slot_id=${e} step_id=${t} data=${r} ora=${n} locatie=${i}`}({slotId:e,stepId:t,dateKey:r,time:n,location:i}),{hidden:!0,source:"appointment-slot-selector"})},output:n}),hideFollowingText:!1,renderAfterText:!0,renderAfterMessageComplete:!0}:"submitSesizare"===e&&"approval-requested"===t&&o&&s&&l?{node:(0,J.jsx)(m7,{input:i,onApprove:s,onDeny:l,onModifyToolInput:o&&u?e=>u(o.id,e):void 0}),preserveText:!0}:null}e.s(["FloatingChat",0,function({autoOpen:e,renderToolOutput:t,pendingMessage:r,onPendingMessageConsumed:n}){return(0,J.jsx)(m3,{autoOpen:e,onPendingMessageConsumed:n,pendingMessage:r,renderToolOutput:t??m8})}],257535)},167553,e=>{"use strict";var t=e.i(813919),r=e.i(72945),n=e.i(781933);e.s(["Footer",0,function({feedbackOnly:e=!1}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"bg-primary-lighter relative",id:"feedback-form",children:(0,t.jsx)(n.Wrap,{children:(0,t.jsx)(r.FeedbackForm,{})})}),!e&&(0,t.jsx)("footer",{className:"py-6 bg-slate-900 text-slate-300",children:(0,t.jsx)(n.Wrap,{children:(0,t.jsxs)("div",{className:"flex flex-col items-start xs:flex-row",children:[(0,t.jsxs)("address",{className:"not-italic leading-6",children:[(0,t.jsx)("strong",{children:"PrimÄria Municipiului TimiÈoara"}),(0,t.jsx)("br",{}),"B-dul C.D. Loga, nr. 1",(0,t.jsx)("br",{}),"300030 TimiÈoara",(0,t.jsx)("br",{}),(0,t.jsx)("br",{}),"Telefon: ",(0,t.jsx)("a",{href:"tel:0256969",children:"0256 969"}),(0,t.jsx)("br",{}),"Email:"," ",(0,t.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"})]}),(0,t.jsx)("div",{className:"xs:flex-1"}),(0,t.jsx)("div",{className:"mt-6 xs:mt-0 xs:self-start",children:(0,t.jsxs)("a",{className:"inline-flex items-center no-underline hover:underline hover:text-white text-slate-200",href:"#",children:["Mergi sus",(0,t.jsx)("svg",{className:"w-3 h-3 ml-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M5 10l7-7m0 0l7 7m-7-7v18",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})]})})]})})})]})}])},611642,413128,504927,843370,e=>{"use strict";var t=e.i(813919),r=e.i(139499),n=e.i(950846);let i=(0,n.default)("Banknote",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M6 12h.01M18 12h.01",key:"113zkx"}]]),a=(0,n.default)("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]),o=(0,n.default)("Contact2",[["path",{d:"M16 18a4 4 0 0 0-8 0",key:"1lzouq"}],["circle",{cx:"12",cy:"11",r:"3",key:"itu57m"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["line",{x1:"8",x2:"8",y1:"2",y2:"4",key:"1ff9gb"}],["line",{x1:"16",x2:"16",y1:"2",y2:"4",key:"1ufoma"}
73]]),s=(0,n.default)("ExternalLink",[["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}],["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["line",{x1:"10",x2:"21",y1:"14",y2:"3",key:"18c3s4"}]]);e.s(["ExternalLink",0,s],413128);let l=(0,n.default)("Factory",[["path",{d:"M2 20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8l-7 5V8l-7 5V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"159hny"}],["path",{d:"M17 18h1",key:"uldtlt"}],["path",{d:"M12 18h1",key:"s9uhes"}],["path",{d:"M7 18h1",key:"1neino"}]]),u=(0,n.default)("File",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}]]);e.s(["File",0,u],504927);let c=(0,n.default)("Files",[["path",{d:"M15.5 2H8.6c-.4 0-.8.2-1.1.5-.3.3-.5.7-.5 1.1v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8c.4 0 .8-.2 1.1-.5.3-.3.5-.7.5-1.1V6.5L15.5 2z",key:"cennsq"}],["path",{d:"M3 7.6v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8",key:"ms809a"}],["path",{d:"M15 2v5h5",key:"qq6kwv"}]]);var d=e.i(226599),d=d;let p=(0,n.default)("FolderClock",[["path",{d:"M7 20H4a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.93a2 2 0 0 1 1.66.9l.82 1.2a2 2 0 0 0 1.66.9H20a2 2 0 0 1 2 2",key:"1p0xo9"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}],["path",{d:"M16 14v2l1 1",key:"xth2jh"}]]);var f=e.i(123745),f=f;let m=(0,n.default)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),h=(0,n.default)("UserCog",[["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m21.7 16.4-.9-.3",key:"12j9ji"}],["path",{d:"m15.2 13.9-.9-.3",key:"1fdjdi"}],["path",{d:"m16.6 18.7.3-.9",key:"heedtr"}],["path",{d:"m19.1 12.2.3-.9",key:"1af3ki"}],["path",{d:"m19.6 18.7-.4-1",key:"1x9vze"}],["path",{d:"m16.8 12.3-.4-1",key:"vqeiwj"}],["path",{d:"m14.3 16.6 1-.4",key:"1qlj63"}],["path",{d:"m20.7 13.8 1-.4",key:"1v5t8k"}]]),g=(0,n.default)("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]),v=(0,n.default)("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),y=(0,n.default)("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]),b=(0,n.default)("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);var x=e.i(22114);let w={family_restroom:(0,t.jsx)("svg",{fill:"white",height:"40",viewBox:"0 3 40 40",width:"40",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M30 9.792q-1.292 0-2.208-.917-.917-.917-.917-2.208 0-1.292.917-2.209.916-.916 2.208-.916 1.292 0 2.208.916.917.917.917 2.209 0 1.291-.917 2.208-.916.917-2.208.917Zm-2.208 26.875V22.875q0-1.375-.709-2.479-.708-1.104-1.958-1.688l1.625-4.75q.333-1.041 1.229-1.666.896-.625 2.021-.625t2.021.625q.896.625 1.229 1.666l4.25 12.417h-4.458v10.292Zm-7.084-17.5q-1.041 0-1.77-.729-.73-.73-.73-1.771 0-1.042.73-1.771.729-.729 1.77-.729 1.042 0 1.771.729.729.729.729 1.771 0 1.041-.729 1.771-.729.729-1.771.729ZM9.167 9.792q-1.292 0-2.209-.917-.916-.917-.916-2.208 0-1.292.916-2.209.917-.916 2.209-.916 1.291 0 2.208.916.917.917.917 2.209 0 1.291-.917 2.208-.917.917-2.208.917ZM6.125 36.667V24.708H3.333v-10.25q0-1.166.813-1.979.812-.812 1.979-.812h6.083q1.167 0 1.98.812.812.813.812 1.979v10.25h-2.792v11.959Zm12.208 0v-6.959h-1.958v-6.833q0-.833.604-1.437.604-.605 1.479-.605h4.5q.834 0 1.438.605.604.604.604 1.437v6.833h-1.958v6.959Z"})}),import_contacts:(0,t.jsx)("svg",{fill:"white",height:"40",viewBox:"0 6 40 40",width:"40",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M23.333 16.208v-2.25q1.375-.583 2.813-.875 1.437-.291 3.021-.291 1.083 0 2.125.166 1.041.167 2.041.417v2.083q-1-.375-2.021-.562-1.02-.188-2.145-.188-1.584
730-3.042.396-1.458.396-2.792 1.104Zm0 9.167v-2.292q1.375-.583 2.813-.854 1.437-.271 3.021-.271 1.083 0 2.125.167 1.041.167 2.041.417v2.083q-1-.375-2.021-.563-1.02-.187-2.145-.187-1.584 0-3.042.375-1.458.375-2.792 1.125Zm0-4.583v-2.25q1.375-.584 2.813-.875 1.437-.292 3.021-.292 1.083 0 2.125.167 1.041.166 2.041.416v2.084q-1-.375-2.021-.563-1.02-.187-2.145-.187-1.584 0-3.042.396-1.458.395-2.792 1.104ZM10.5 27.208q2.125 0 4.167.5 2.041.5 4 1.5V11.875q-1.834-1.167-3.917-1.792-2.083-.625-4.25-.625-1.542 0-3.063.355-1.52.354-2.979.937v17.542q1.334-.542 2.917-.813 1.583-.271 3.125-.271Zm10.958 2q2-1 3.938-1.5 1.937-.5 4.104-.5 1.542 0 3.146.25 1.604.25 2.896.709V10.75q-1.375-.667-2.917-.979-1.542-.313-3.125-.313-2.167 0-4.208.625-2.042.625-3.834 1.792Zm-1.416 4.125q-2.084-1.583-4.521-2.437-2.438-.854-5.021-.854-1.583 0-3.125.396-1.542.395-3.042 1.02-.916.459-1.791-.083-.875-.542-.875-1.583V10.208q0-.541.27-1.041.271-.5.813-.75 1.792-.875 3.75-1.313 1.958-.437 4-.437 2.542 0 4.979.687 2.438.688 4.563 2.063 2.125-1.375 4.52-2.063 2.396-.687 4.938-.687 2.042 0 3.979.437 1.938.438 3.729 1.313.542.25.834.75.291.5.291 1.041v19.584q0 1.083-.895 1.646-.896.562-1.813.02-1.458-.666-3-1.041-1.542-.375-3.125-.375-2.583 0-4.979.875t-4.479 2.416Zm-8.5-13.791Z"})}),home_work:(0,t.jsx)("svg",{fill:"white",height:"40",viewBox:"0 2 40 40",width:"40",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M28.792 14.375h2.791v-2.792h-2.791Zm0 6.958h2.791v-2.791h-2.791Zm0 6.959h2.791V25.5h-2.791ZM27.25 35v-2.792h8.292V7.792H19.583v3.875l-2.791-1.959V5h21.541v30ZM1.667 35V18.625l11.416-8.167 11.375 8.167V35h-9.333v-8.375h-4.083V35Zm2.791-2.792h3.834v-8.333h9.583v8.333h3.833V20.042l-8.625-6.167-8.625 6.167ZM27.25 17.083Zm-9.375 15.125v-8.333H8.292v8.333-8.333h9.583Z"})}),payments:(0,t.jsx)("svg",{fill:"white",height:"40",viewBox:"0 5 40 40",width:"40",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M22.792 22.208q-2.084 0-3.542-1.458-1.458-1.458-1.458-3.542 0-2.083 1.458-3.541 1.458-1.459 3.542-1.459 2.083 0 3.541 1.459 1.459 1.458 1.459 3.541 0 2.084-1.459 3.542-1.458 1.458-3.541 1.458ZM10 27.792q-1.167 0-1.979-.813-.813-.812-.813-1.979V9.458q0-1.166.813-1.979.812-.812 1.979-.812h25.542q1.166 0 1.979.812.812.813.812 1.979V25q0 1.167-.812 1.979-.813.813-1.979.813ZM13.875 25h17.792q0-1.625 1.125-2.75t2.75-1.125v-7.792q-1.625 0-2.75-1.125t-1.125-2.75H13.875q0 1.625-1.125 2.75T10 13.333v7.792q1.625 0 2.75 1.125T13.875 25Zm19.458 8.333H4.458q-1.166 0-1.979-.812-.812-.813-.812-1.979V11.667h2.791v18.875h28.875ZM10 25V9.458 25Z"})}),recycling:(0,t.jsx)("svg",{fill:"white",height:"40",viewBox:"0 3 40 40",width:"40",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"m15.333 15.333 3.709-6.125-2.459-4.083q-.5-.833-1.437-.833-.938 0-1.438.833l-4.083 6.792Zm16.125 11.334L27.75 20.5l5.792-3.333 2.666 4.458q.459.708.48 1.604.02.896-.355 1.604-.416.834-1.229 1.334-.812.5-1.771.5Zm-4.791 11.666L20 31.667 26.667 25v3.333h7.916l-2.416 4.834q-.459.833-1.25 1.333-.792.5-1.75.5h-2.5ZM10.542 35q-.834 0-1.521-.438-.688-.437-1.021-1.145-.333-.667-.312-1.396.02-.729.395-1.354L9.5 28.333h7.167V35Zm-4.125-4.75-2.709-5.417q-.375-.75-.354-1.604.021-.854.479-1.604L4.5 20.5l-2.833-1.708 9.125-2.292 2.291 9.167-2.875-1.75ZM28.917 16l-9.125-2.292L22.667 12l-5.209-8.667h5.875q.875 0 1.646.438.771.437 1.229 1.187l2.167 3.625 2.833-1.75Z"})}),commute:(0,t.jsx)("svg",{fill:"white",height:"40",viewBox:"0 6 40 40",width:"40",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M17.042 32.375v-9.5L19.375 16q.125-.333.437-.583.313-.25.813-.25h12.458q.5 0 .792.229.292.229.417.604l2.375 6.875v9.5q0 .417-.271.687-.271.271-.688.271h-1.041q-.375 0-.667-.271-.292-.27-.292-.687v-1.75h-13.75v1.75q0 .417-.27.687-.271.271-.688.271h-1q-.417 0-.688-.271-.27-.27-.27-.687Zm2.583-10.958h14.458l-1.458-4.292H21.042Zm-.667 1.958v5.333Zm2.709 4.333q.708 0 1.166-.479.459-.479.459-1.187 0-.667-.459-1.146-.458-.479-1.166-.479-.709 0-1.167.479-.458.479-.458 1.146 0 .708.458 1.187.458.479 1.167.479Zm10.375 0q.666 0 1.146-.479.479-.479.479-1.187 0-.667-.479-1.146-.48-.479-1.146-.479-.709 0-1.188.479t-.479 1.146q0 .708.479 1.187.479.479 1.188.479Zm-25.25 5.625v-1.125l2.125-2.166q
73-2.292 0-3.938-1.438-1.646-1.437-1.646-3.646V11.417q0-2.75 2.271-3.75t8.521-1q6 0 8.375 1.041 2.375 1.042 2.375 3.709v2.375h-2.75v-2.709h-16v10.792h9.5v11.458Zm1.291-6.708q.709 0 1.167-.479.458-.479.458-1.188 0-.666-.458-1.146-.458-.479-1.167-.479-.708 0-1.166.479-.459.48-.459 1.146 0 .709.459 1.188.458.479 1.166.479Zm10.875 2.083h15.75v-5.333h-15.75Z"})}),park:(0,t.jsx)("svg",{fill:"white",height:"40",viewBox:"0 6 40 40",width:"40",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M9.167 36.667v-2.792h9.458v-7.208H15q-3.458 0-5.896-2.438-2.437-2.437-2.437-5.896 0-2.5 1.375-4.604t3.708-3.062q.375-3.125 2.729-5.229Q16.833 3.333 20 3.333t5.521 2.105q2.354 2.104 2.729 5.229 2.333.958 3.708 3.062t1.375 4.604q0 3.459-2.437 5.896-2.438 2.438-5.896 2.438h-3.625v7.208h9.75v2.792ZM15 23.875h10q2.333 0 3.938-1.604 1.604-1.604 1.604-3.938 0-1.666-.938-3.041-.937-1.375-2.479-2.042l-1.458-.625L25.458 11q-.25-2.083-1.812-3.479Q22.083 6.125 20 6.125t-3.646 1.396Q14.792 8.917 14.542 11l-.209 1.625-1.458.625q-1.542.667-2.479 2.042-.938 1.375-.938 3.041 0 2.292 1.604 3.917 1.605 1.625 3.938 1.625ZM20 15Z"})}),theater_comedy:(0,t.jsx)("svg",{fill:"white",height:"40",width:"40",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M32.042 12.042q.583 0 1-.438.416-.437.416-.979 0-.625-.416-1.042-.417-.416-1-.416-.625 0-1.042.416-.417.417-.417 1.042 0 .542.417.979.417.438 1.042.438Zm-7 0q.583 0 1-.438.416-.437.416-.979 0-.625-.416-1.042-.417-.416-1-.416-.625 0-1.042.416-.417.417-.417 1.042 0 .542.417.979.417.438 1.042.438ZM24.125 18h8.75q0-1.417-1.354-2.208Q30.167 15 28.5 15q-1.667 0-3.021.792-1.354.791-1.354 2.208ZM11.5 36.625q-4.083 0-6.958-2.917-2.875-2.916-2.875-6.916V15.5h19.666v11.292q0 4-2.875 6.916-2.875 2.917-6.958 2.917Zm0-2.75q2.917 0 4.979-2.125 2.063-2.125 2.063-4.958v-8.5H4.458v8.5q0 2.833 2.063 4.958 2.062 2.125 4.979 2.125Zm17-9.417q-1.292 0-2.542-.312-1.25-.313-2.375-.896v-3.167q1.042.667 2.292 1.146 1.25.479 2.625.479 2.917 0 4.979-2 2.063-2 2.063-4.833v-8.75H21.375v7.167h-2.792V3.333h19.75v11.542q0 4-2.875 6.792-2.875 2.791-6.958 2.791ZM8.042 24q.583 0 1-.417.416-.416.416-1.041 0-.584-.416-1-.417-.417-1-.417-.625 0-1.042.417-.417.416-.417 1 0 .625.417 1.041.417.417 1.042.417Zm7 0q.625 0 1.041-.417.417-.416.417-1.041 0-.584-.417-1-.416-.417-1.041-.417-.584 0-1 .417-.417.416-.417 1 0 .625.417 1.041.416.417 1 .417Zm-3.459 6.208q1.667 0 3.021-.812 1.354-.813 1.354-2.188h-8.75q0 1.375 1.354 2.188 1.355.812 3.021.812Zm-.041-4.25Zm16.916-11.916Z"})}),local_hospital:(0,t.jsx)("svg",{fill:"white",height:"40",viewBox:"0 3 40 40",width:"40",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M17.917 28.375h4.166v-6.292h6.292v-4.166h-6.292v-6.292h-4.166v6.292h-6.292v4.166h6.292ZM7.792 35q-1.125 0-1.959-.833Q5 33.333 5 32.208V7.792q0-1.125.833-1.959Q6.667 5 7.792 5h24.416q1.125 0 1.959.833.833.834.833 1.959v24.416q0 1.125-.833 1.959-.834.833-1.959.833Zm0-2.792h24.416V7.792H7.792v24.416Zm0-24.416v24.416V7.792Z"})}),sports_handball:(0,t.jsx)("svg",{fill:"white",height:"40",viewBox:"0 1 40 40",width:"40",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"m14.875 39.792-2.333-1.417 5.208-8.917-3.208-1.916-2.917 4.791-2.375-1.375 9.208-15.25q-1.666-1.583-2.521-3.479-.854-1.896-.854-3.979 0-1.542.334-2.937.333-1.396 1.125-2.896l2.416 1.333q-.583 1.125-.833 2.167-.25 1.041-.25 2.125 0 2.083 1 3.812 1 1.729 3.167 3.021l3.916 2.292q2.459 1.416 3.625 3.708 1.167 2.292 1.167 4.833 0 1.625-.479 3.23Q29.792 30.542 29 32l-2.417-1.375q.667-1.25 1.021-2.437.354-1.188.354-2.438 0-1.5-.5-2.792-.5-1.291-1.5-2.125Zm11.708-25.167q-1.291 0-2.208-.937-.917-.938-.917-2.23 0-1.291.917-2.208.917-.917 2.208-.917 1.292 0 2.209.917.916.917.916 2.208 0 1.292-.916 2.23-.917.937-2.209.937Zm-4-7.958q-1.083 0-1.791-.729-.709-.73-.709-1.771 0-1.084.729-1.792.73-.708 1.771-.708 1.084 0 1.792.729t.708 1.771q0 1.083-.729 1.791-.729.709-1.771.709Z"})}),pin_drop:(0,t.jsx)("svg",{fill:"white",height:"40",viewBox:"0 3 40 40",width:"40",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M20 27.542q4.25-3.459 6.438-6.625 2.187-3.167 2.187-5.959 0-2.416-.896-4.104-.896-1.687-2.187-2.75-1.292-1.062-2.792-1.521-1.5-.458-2.75-.458t-2.75.458q-1.5.459-2.792 1.521-1.291 1.063-2.187 2.75-.896 1.688-.896 4.104 0 2.792 2.187 5.959Q15.75 24.083 20 27.542Zm0 3.5q-5.75-4.292-8.562-8.271-2.8
7313-3.979-2.813-7.813 0-2.875 1.021-5.041 1.021-2.167 2.666-3.646 1.646-1.479 3.667-2.208Q18 3.333 20 3.333t4.021.73q2.021.729 3.667 2.208 1.645 1.479 2.666 3.646 1.021 2.166 1.021 5.083 0 3.792-2.813 7.771Q25.75 26.75 20 31.042Zm0-13.25q1.25 0 2.146-.896.896-.896.896-2.188 0-1.25-.896-2.145-.896-.896-2.146-.896t-2.146.896q-.896.895-.896 2.145 0 1.292.896 2.188.896.896 2.146.896ZM8.625 36.667v-2.792h22.75v2.792ZM20 14.958Z"})}),business_center:(0,t.jsx)("svg",{fill:"white",height:"40",viewBox:"0 3 40 40",width:"40",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M6.125 35Q5 35 4.167 34.167q-.834-.834-.834-1.959V12.542q0-1.125.834-1.959Q5 9.75 6.125 9.75h7.5V6.125q0-1.125.813-1.958.812-.834 1.937-.834h7.25q1.125 0 1.937.834.813.833.813 1.958V9.75h7.5q1.125 0 1.958.833.834.834.834 1.959v19.666q0 1.125-.834 1.959Q35 35 33.875 35Zm10.25-25.25h7.25V6.125h-7.25Zm17.5 14.958h-9.667v2.75h-8.333v-2.75h-9.75v7.5h27.75Zm-15.25 0h2.792v-2.791h-2.792Zm-12.5-2.791h9.75v-2.792h8.333v2.792h9.667v-9.375H6.125ZM20 23.292Z"})}),volunteer_activism:(0,t.jsx)("svg",{fill:"white",height:"40",viewBox:"0 2 40 40",width:"40",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M26.833 21.167q-1.958-1.75-3.729-3.417-1.771-1.667-3.125-3.271-1.354-1.604-2.167-3.104Q17 9.875 17 8.5q0-2.208 1.5-3.708t3.75-1.5q1.25 0 2.458.646 1.209.645 2.125 1.729.917-1.084 2.125-1.729 1.209-.646 2.459-.646 2.25 0 3.75 1.5t1.5 3.708q0 1.375-.813 2.875-.812 1.5-2.166 3.104-1.355 1.604-3.126 3.271-1.77 1.667-3.729 3.417Zm0-3.792q2.667-2.458 4.855-4.875 2.187-2.417 2.187-4 0-1.083-.667-1.771-.666-.687-1.75-.687-.666 0-1.312.312-.646.313-1.229 1.063l-2.084 2.541-2.083-2.541q-.583-.75-1.229-1.063-.646-.312-1.313-.312-1.083 0-1.75.687-.666.688-.666 1.771 0 1.583 2.187 4 2.188 2.417 4.854 4.875ZM23.5 37.458l-12.542-3.583v2.417H1.667V19.208h13l10.541 3.959q1.209.458 2 1.5.792 1.041.792 2.708h4.292q1.833 0 3.104 1.292 1.271 1.291 1.271 3.458v1.25ZM4.458 33.5h3.709V22H4.458Zm18.917 1.042 10.417-3.167q-.209-.708-.604-.979-.396-.271-.896-.271h-8.417q-1.292 0-2.333-.167-1.042-.166-2.084
73-.5l-3.208-1 .917-2.666 3.125 1q.958.333 1.916.458.959.125 2.917.125 0-.5-.229-.958-.229-.459-.646-.625L14.208 22h-3.25v9ZM8.167 27.75Zm16.958-.375Zm-16.958.375Zm2.791 0Zm15.875-16.042Z"})}),flash_on:(0,t.jsx)("svg",{fill:"white",height:"40",viewBox:"0 4 40 40",width:"40",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M18.625 13.875V7.792h-6.667V5h16.084v2.792h-6.667v6.083ZM6.667 35V21.958h2.791v1.667h5.834v-5.583h-1.667v-2.75h12.75v2.75h-1.667v5.583h5.834v-1.667h2.791V35h-2.791v-1.667H9.458V35Zm2.791-4.458h21.084v-4.167h-8.584v-8.333h-3.916v8.333H9.458Zm10.542 0Z"})}),supervised_user_circle:(0,t.jsx)("svg",{fill:"white",height:"40",viewBox:"0 6 40 40",width:"40",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M1.667 33.333v-6.666q0-1.292.895-2.167.896-.875 2.146-.875h5.75q.75 0 1.438.375.687.375 1.146 1 1.208 1.708 3.041 2.667 1.834.958 3.917.958 2.083 0 3.938-.958Q25.792 26.708 27 25q.5-.625 1.146-1 .646-.375 1.396-.375h5.75q1.25 0 2.146.875.895.875.895 2.167v6.666H27.208V28.75q-1.458 1.292-3.312 1.958-1.854.667-3.896.667-2 0-3.854-.687-1.854-.688-3.354-1.938v4.583ZM20 26.375q-1.5 0-2.875-.687-1.375-.688-2.25-1.938-.667-1-1.646-1.583-.979-.584-2.146-.709 1.125-1.375 3.834-2.104 2.708-.729 5.083-.729t5.104.729q2.729.729 3.813 2.104-1.125.125-2.105.709-.979.583-1.645 1.583-.875 1.25-2.25 1.938-1.375.687-2.917.687Zm-13.333-5.25q-1.959 0-3.334-1.396t-1.375-3.354q0-1.958 1.375-3.333 1.375-1.375 3.334-1.375 2 0 3.354 1.375t1.354 3.333q0 1.958-1.354 3.354-1.354 1.396-3.354 1.396Zm26.666 0q-1.958 0-3.333-1.396-1.375-1.396-1.375-3.354 0-1.958 1.375-3.333 1.375-1.375 3.333-1.375 2 0 3.355 1.375 1.354 1.375 1.354 3.333 0 1.958-1.354 3.354-1.355 1.396-3.355 1.396Zm-13.333-5q-1.958 0-3.333-1.396-1.375-1.396-1.375-3.354 0-1.958 1.375-3.333Q18.042 6.667 20 6.667q2 0 3.354 1.375t1.354 3.333q0 1.958-1.354 3.354Q22 16.125 20 16.125Z"})}),shield:(0,t.jsx)("svg",{fill:"white",height:"40",viewBox:"0 2 40 40",width:"40",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M20 36.667q-5.833-1.459-9.583-6.729-3.75-5.271-3.75-11.605v-10l13.333-5 13.333 5v10q0 6.334-3.75 11.605-3.75 5.27-9.583 6.729Zm0-2.875q4.292-1.417 7.125-5.23Q29.958 24.75 30.458 20H20V6.333L9.458 10.25v8.917q0 .333.084.833H20Z"})})},_={address:v,phone:y,email:g,insert_drive_file:d.default,link:u,external_link:s,verified_active:(0,t.jsx)("g",{fill:"#000000",id:"SVGRepo_iconCarrier",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M16.03,18.616l5.294-4.853a1,1,0,0,1,1.352,1.474l-6,5.5a1,1,0,0,1-1.383-.03l-3-3a1,1,0,0,1,1.414-1.414ZM1,20a9.01,9.01,0,0,1,5.623-8.337A4.981,4.981,0,1,1,10,13a7.011,7.011,0,0,0-6.929,6H10a1,1,0,0,1,0,2H2A1,1,0,0,1,1,20ZM7,8a3,3,0,1,0,3-3A3,3,0,0,0,7,8Z"})}),car:(0,t.jsx)("path",{d:"M3 8L5.72187 10.2682C5.90158 10.418 6.12811 10.5 6.36205 10.5H17.6379C17.8719 10.5 18.0984 10.418 18.2781 10.2682L21 8M6.5 14H6.51M17.5 14H17.51M8.16065 4.5H15.8394C16.5571 4.5 17.2198 4.88457 17.5758 5.50772L20.473 10.5777C20.8183 11.1821 21 11.8661 21 12.5623V18.5C21 19.0523 20.5523 19.5 20 19.5H19C18.4477 19.5 18 19.0523 18 18.5V17.5H6V18.5C6 19.0523 5.55228 19.5 5 19.5H4C3.44772 19.5 3 19.0523 3 18.5V12.5623C3 11.8661 3.18166 11.1821 3.52703 10.5777L6.42416 5.50772C6.78024 4.88457 7.44293 4.5 8.16065 4.5ZM7 14C7 14.2761 6.77614 14.5 6.5 14.5C6.22386 14.5 6 14.2761 6 14C6 13.7239 6.22386 13.5 6.5 13.5C6.77614 13.5 7 13.7239 7 14ZM18 14C18 14.2761 17.7761 14.5 17.5 14.5C17.2239 14.5 17 14.2761 17 14C17 13.7239 17.2239 13.5 17.5 13.5C17.7761 13.5 18 13.7239 18 14Z",strokeLinecap:"round",strokeLinejoin:"round"}),landplot:(0,t.jsx)("path",{d:"M18 6H6V18H18V6ZM4.5 4.5V19.5H19.5V4.5H4.5Z"}),building:a,profile:m,data:o,documents:c,money:i,settings:h,payments:f.default,login:(0,t.jsx)("path",{d:"M14 4L17.5 4C20.5577 4 20.5 8 20.5 12C20.5 16 20.5577 20 17.5 20H14M15 12L3 12M15 12L11 16M15 12L11 8",strokeLinecap:"round",strokeLinejoin:"round"}),close:(0,t.jsxs)("g",{id:"SVGRepo_iconCarrier",children:[" ",(0,t.jsx)("path",{d:"M8.00386 9.41816C7.61333 9.02763 7.61334 8.39447 8.00386 8.00395C8.39438 7.61342 9.02755 7.61342 9.41807 8.00395L12.0057 10.5916L14.5907 8.00657C14.9813 7.61605 15.6144 7.61605 16.0049 8.00657C16.3955 8.3971 16.3955 9.03026 16.0049 9.42079L13.4199 12.0058L16.0039 14.5897C16.3944 14.9803 16.3944 15.6134 16.
730039 16.0039C15.6133 16.3945 14.9802 16.3945 14.5896 16.0039L12.0057 13.42L9.42097 16.0048C9.03045 16.3953 8.39728 16.3953 8.00676 16.0048C7.61624 15.6142 7.61624 14.9811 8.00676 14.5905L10.5915 12.0058L8.00386 9.41816Z",fill:"#0F0F0F"})," ",(0,t.jsx)("path",{clipRule:"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z",fill:"#0F0F0F",fillRule:"evenodd"})," "]}),account_link:(0,t.jsx)("path",{d:"M9.16488 17.6505C8.92513 17.8743 8.73958 18.0241 8.54996 18.1336C7.62175 18.6695 6.47816 18.6695 5.54996 18.1336C5.20791 17.9361 4.87912 17.6073 4.22153 16.9498C3.56394 16.2922 3.23514 15.9634 3.03767 15.6213C2.50177 14.6931 2.50177 13.5495 3.03767 12.6213C3.23514 12.2793 3.56394 11.9505 4.22153 11.2929L7.04996 8.46448C7.70755 7.80689 8.03634 7.47809 8.37838 7.28062C9.30659 6.74472 10.4502 6.74472 11.3784 7.28061C11.7204 7.47809 12.0492 7.80689 12.7068 8.46448C13.3644 9.12207 13.6932 9.45086 13.8907 9.7929C14.4266 10.7211 14.4266 11.8647 13.8907 12.7929C13.7812 12.9825 13.6314 13.1681 13.4075 13.4078M10.5919 10.5922C10.368 10.8319 10.2182 11.0175 10.1087 11.2071C9.57284 12.1353 9.57284 13.2789 10.1087 14.2071C10.3062 14.5492 10.635 14.878 11.2926 15.5355C11.9502 16.1931 12.279 16.5219 12.621 16.7194C13.5492 17.2553 14.6928 17.2553 15.621 16.7194C15.9631 16.5219 16.2919 16.1931 16.9495 15.5355L19.7779 12.7071C20.4355 12.0495 20.7643 11.7207 20.9617 11.3787C21.4976 10.4505 21.4976 9.30689 20.9617 8.37869C20.7643 8.03665 20.4355 7.70785 19.7779 7.05026C19.1203 6.39267 18.7915 6.06388 18.4495 5.8664C17.5212 5.3305 16.3777 5.3305 15.4495 5.8664C15.2598 5.97588 15.0743 6.12571 14.8345 6.34955",strokeLinecap:"round",strokeWidth:"2"}),tax:(0,t.jsx)("path",{d:"M4.5 3.5H19.5V20.5H4.5V3.5ZM4.5 3.5L12 9.5L19.5 3.5",strokeLinecap:"round",strokeLinejoin:"round"}),fine:(0,t.jsx)("path",{d:"M5 12.0002C5 10.694 4.16519 9.58273 3 9.1709V7.6C3 7.03995 3 6.75992 3.10899 6.54601C3.20487 6.35785 3.35785 6.20487 3.54601 6.10899C3.75992 6 4.03995 6 4.6 6H19.4C19.9601 6 20.2401 6 20.454 6.10899C20.6422 6.20487 20.7951 6.35785 20.891 6.54601C21 6.75992 21 7.03995 21 7.6V9.17071C19.8348 9.58254 19 10.694 19 12.0002C19 13.3064 19.8348 14.4175 21 14.8293V16.4C21 16.9601 21 17.2401 20.891 17.454C20.7951 17.6422 20.6422 17.7951 20.454 17.891C20.2401 18 19.9601 18 19.4 18H4.6C4.03995 18 3.75992 18 3.54601 17.891C3.35785 17.7951 3.20487 17.6422 3.10899 17.454C3 17.2401 3 16.9601 3 16.4V14.8295C4.16519 14.4177 5 13.3064 5 12.0002Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),talk:p,news:(0,t.jsxs)("g",{id:"SVGRepo_iconCarrier",children:[" ",(0,t.jsx)("rect",{height:"14",rx:"3",stroke:"#222222",width:"14",x:"5",y:"5"}),(0,t.jsx)("path",{d:"M5 10L19 10",stroke:"#222222",strokeLinecap:"round"}),"="]}),exit:b,exclamation:(0,t.jsx)("path",{d:"M12 9v4m0 3v.01M5.313 20h13.374c1.505 0 2.471-1.6 1.77-2.931L13.77 4.363c-.75-1.425-2.79-1.425-3.54 0L3.543 17.068C2.842 18.4 3.808 20 5.313 20Z",strokeLinecap:"round",strokeLinejoin:"round"}),business:l};function k({name:e,size:r=36,className:n="w-10 h-10",stroke:i="currentColor",fill:a="none"}){let o=_[e];return(0,x.isValidElement)(o)?(0,t.jsx)("svg",{className:n,fill:a,stroke:i,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:o}):(0,t.jsx)(o,{className:"mr-1",size:r,strokeWidth:1})}e.s(["Icon",0,k,"MENU_ICONS",0,w],843370),e.s(["H3",0,function({children:e,className:n,icon:i,...a}){return(0,t.jsxs)("h3",{className:(0,r.cn)("mb-3 mt-1 text-xl font-bold tracking-tight sm:mb-2 sm:text-2xl max-w-[21ch]",n),style:{display:"flex",alignItems:"center"},...a,children:[i?(0,t.jsx)("span",{className:"display: inline-block",style:{marginRight:"0.4rem"},children:(0,t.jsx)(k,{className:"w-10 h-10 mr-1",name:i})}):null,e]})}],611642)},576169,e=>{"use strict";var t=e.i(813919),r=e.i(139499);e.s(["Label",0,function({text:e,forId:n,required:i=!1,error:a=!1,className:o="",children:s=null}){if(e)return(0,t.jsxs)("label",{className:(0,r.cn)("block font-medium",a?"text-red-600":"text-slate-700",o),htmlFor:n,children:["string"==typeof e?(0,t.jsxs)(t.Fragment,{children:[e[0].toUpperCase(),e.substring(1)]}):e,i?(0,t.jsx)("sup",{className:"text-primary-hover",children:"*"}):null,s]})}])},334788,e=>{"use strict";var t=e.i(813919),r=e.i(763777),n=e.i(204832),i=e.i(545760),a=e.i(504927),o=e.i(971599),s=e.i(561101),l=e.i(105093),u=e.i(594336),c=e.i(497637),d=e.i(22114),p=e.i(510387),f=e.i(139499),m=e.i(435723);e.i(952149);var h=e.i(926055),g=e.i(257535),v=e.i(611642),y=e.i(843370);e.i(503631);var b=e.i(506214),x=e.i(781933);let w=new u.MeiliSearch({host:"https://search.primariatm.ro",apiKey:"ff98255fdfeba0ca25a4d05f791cb94bccabe7bb36f54e6528cb3e7279680473"}),_={services:"Servicii",pages:"Pagini",hcl:"HCL",departments:"Structuri"};e.s(["default",0,function({menu:e,expandSearch:u,isBeta:k}){let[S,E]=(0,d.useState)(null),[T,j]=(0,d.useState)(!1),[I,C]=(0,d.useState)({}),A=(0,c.usePathname)(),N=(0,c.useSelectedLayoutSegment)(),O=u&&"/"===A&&null===N,[R,P]=(0,d.useState)(O),[D,$]=(0,d.useState)(""),[L,M]=(0,d.useState)(null),[U,z]=(0,d.useState)(null),F=e=>{z({id:crypto.randomUUID(),text:e}),P(!1),$(""),M(null)};(0,d.useEffect)(()=>{let e=e=>F(e.detail);return window.addEventListener(h.ASK_TIMI_EVENT,e),()=>window.removeEventListener(h.ASK_TIMI_EVENT,e)},[]),(0,d.useEffect)(()=>{E(null),j(!1),P(O),O&&($(""),M(null))},[O]),(0,d.useEffect)(()=>{let e=[{indexUid:"services",q:D,limit:5,attributesToRetrieve:["url"],attributesToHighlight:["title","description","content"],attributesToCrop:["title:24","description:24","content:24"]},{indexUid:"departments",q:D,limit:5,attributesToRetrieve:["url"],attributesToHighlight:["title","description"],attributesToCrop:["title:24","description:24"]},{indexUid:"pages",q:D,limit:10,attributesToRetrieve:["url"],attributesToHighlight:["title","description","content"],attributesToCrop:["title:24","description:24","content:24"],sort:["publishedAt:desc"]}];D.toLocaleLowerCase().includes("hcl")&&(e=[{indexUid:"hcl",q:D.replace(/hcl/gi,"").trim(),limit:10,showMatchesPosition:!0,attributesToRetrieve:["url"],attributesToHighlight:["title","nr","data","content"],attributesToCrop:["title:24","content:24"],sort:["data:desc","nr:desc"]},...e]);let t=async()=>{M(await w.multiSearch({queries:e}))};D.length>2?t().catch(e=>console.error(e)):M(null)},[D]);let q=S?.children.length?S?.children:S?.service_categories,Z=e=>e in I&&!0===I[e];return(0,t.jsxs)("nav",{className:"bg-primary text-white text-lg",children:[(0,t.jsxs)(x.Wrap,{className:"flex justify-between relative",children:[!!k&&(0,t.jsx)("div",{className:"absolute right-0 -bottom-5 px-2 text-[9px] leading-5 font-semibold bg-amber-500 text-white cursor-default",children:"VERSIUNE BETA"}),(0,t.jsx)(b.SiteLogo,{}),(0,t.jsxs)("ol",{className:"flex items-center sm:hidden",id:"mobile-menu",children:[(0,t.jsxs)("li",{className:(0,f.cn)("flex h-[60px] px-4 gap-x-1 items-center font-semibold cursor-pointer",T&&"bg-primary-dark"),onClick:()=>{j(!T),P(!1)},children:[(0,t.jsx)("div",{children:"Meniu"}),(0,t.jsx)("div",{className:"flex-stretch-0",children:(0,t.jsx)(r.ChevronDownIcon,{className:(0,f.cn)("transition-transform duration-200 ease-out",T&&"rotate-180")}
73)})]}),(0,t.jsx)("li",{className:(0,f.cn)("ml-[1px] flex items-stretch -mr-4",R&&"bg-primary-dark"),children:(0,t.jsx)("a",{className:"h-[60px] w-[60px] flex items-center justify-center",href:"#",onClick:e=>{e.preventDefault(),P(!R),j(!1)},children:(0,t.jsx)(s.Search,{})})})]}),(0,t.jsxs)("ol",{className:"sm:flex items-stretch font-semibold tracking-tight hidden",id:"desktop-menu",children:[e?.map(e=>(0,t.jsx)("li",{className:(0,f.cn)("ml-0.5 flex items-stretch mt-1 transition-colors duration-150",S?.title===e.title&&"bg-primary-dark border-primary-dark border-b-2",S?.title!==e.title&&"hover:bg-primary-dark border-primary mb-0.5"),children:(0,t.jsxs)("a",{className:"no-underline px-4 flex items-center gap-x-2 transition-colors duration-150",href:"#",onClick:t=>{(t.preventDefault(),S?.title===e.title)?E(null):(E(e),P(!1))},children:[e.title,(0,t.jsx)(r.ChevronDownIcon,{className:(0,f.cn)("w-5 h-5 transition-transform duration-200 ease-out",S?.title===e.title&&"rotate-180")})]})},e.title)),(0,t.jsx)("li",{className:"ml-0.5 hover:bg-primary-dark flex items-stretch mt-1 mb-0.5 border-primary transition-colors duration-150",children:(0,t.jsx)("a",{className:"no-underline px-4 flex items-center leading-5",href:"https://cont.primariatm.ro",children:"Contul meu"})}),(0,t.jsx)("li",{className:(0,f.cn)("ml-0.5 hover:bg-primary-dark flex items-stretch mt-1 mb-0.5 border-primary transition-colors duration-150",R&&"bg-primary-dark border-primary-dark border-b-2 mb-0"),children:(0,t.jsx)("a",{className:"px-5 flex items-center",href:"#",onClick:e=>{e.preventDefault(),P(!R),E(null)},children:(0,t.jsx)("svg",{"aria-hidden":"true",className:"w-5 h-5 pb-0.5 text-white",focusable:"false",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M18.932 16.845a10.206 10.206 0 0 0 2.087-6.261A10.5 10.5 0 0 0 10.584 0a10.584 10.584 0 0 0 0 21.168 9.9 9.9 0 0 0 6.261-2.087l4.472 4.472a1.441 1.441 0 0 0 2.087 0 1.441 1.441 0 0 0 0-2.087zm-8.348 1.193a7.508 7.508 0 0 1-7.6-7.453 7.6 7.6 0 0 1 15.2 0 7.508 7.508 0 0 1-7.6 7.452z",fill:"currentColor"})})})}),(0,t.jsx)("li",{className:"ml-0.5 hover:bg-primary-dark md:flex items-stretch mt-1 mb-0.5 border-primary hidden transition-colors duration-150",children:(0,t.jsxs)("a",{className:"no-underline px-4 flex items-center leading-4 text-[11px] font-medium",href:"https://www.primariatm.ro/transparenta/monitorul-oficial",children:["Monitorul",(0,t.jsx)("br",{}),"Oficial"]})})]})]}),S?(0,t.jsx)("div",{className:"bg-primary-dark pt-4 py-6 hidden sm:block animate-[menuSlideDown_150ms_ease-out]",id:"desktop-submenu",children:(0,t.jsx)(x.Wrap,{children:(0,t.jsxs)("div",{className:"lg:grid lg:grid-cols-3",children:[(0,t.jsxs)("div",{className:"text-2xl pt-4 max-w-[12ch] hidden lg:block",children:[S.description,"Servicii"===S.title&&(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsxs)("a",{className:"text-base flex items-center no-underline hover:underline",href:"https://servicii.primariatm.ro",children:["Vezi toate serviciile"," ",(0,t.jsx)(n.ChevronRightIcon,{className:"w-5 h-5"})]})})]}),(0,t.jsx)("div",{className:"lg:col-span-2 grid grid-cols-2 mt-1",children:q?.map(e=>(0,t.jsx)("a",{className:"no-underline px-4 py-3 hover:bg-primary-darker group transition-colors duration-150",href:e.slug?`https://servicii.primariatm.ro/categorii/${e.slug}`:0===e.url.indexOf("http")?e.url:`https://www.primariatm.ro${e.url}`,children:(0,t.jsxs)("span",{className:"flex items-start",children:[(0,t.jsx)("div",{className:"mr-3",children:y.MENU_ICONS[e.icon]||e.icon}),(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("div",{className:"font-bold group-hover:underline leading-5",children:e.title||e.name}),(0,t.jsx)("div",{className:"text-base text-blue-200 leading-5 mt-1 group-hover:text-blue-100",children:e.description})]})]})},e.slug||e.url||e.title))})]})})}):null,(0,t.jsxs)("ol",{className:"px-3 bg-primary-dark divide-y divide-white/20 sm:hidden data-[state=closed]:hidden data-[state=open]:animate-[menuSlideDown_150ms_ease-out]","data-state":T?"open":"closed",id:"mobile-submenu",children:[e?.map(e=>(0,t.jsxs)("li",{children:[(0,t.jsxs)("div",{className:(0,f.cn)("w-full no-underline flex items-center gap-x-2 text-xl font-semibold tracking-tight cursor-pointer transition-colors duration-150",Z(e.title)?"pt-4":"py-4"),onClick:()=>{let t={};t[e.title]=!Z(e.title),C({...I,...t})},children:[e.title,(0,t.jsx)(r.ChevronDownIcon,{className:(0,f.cn)("w-5 h-5 transition-transform duration-200 ease-out",Z(e.title)&&"rotate-180")}
73)]}),Z(e.title)&&(0,t.jsx)("div",{className:"bg-primary-dark my-3 px-4 divide-y divide-white/20 animate-[menuExpandDown_200ms_ease-out] overflow-hidden",children:(e?.children.length?e?.children:e?.service_categories).map(e=>(0,t.jsxs)("a",{className:"no-underline flex items-center justify-between py-4 gap-x-3",href:e.slug?`https://servicii.primariatm.ro/categorii/${e.slug}`:e.url?.indexOf("http")===0?e.url:`https://www.primariatm.ro${e.url||""}`,children:[(0,t.jsx)("div",{className:"font-semibold leading-5",children:e.title||e.name}),(0,t.jsx)("div",{children:(0,t.jsx)(n.ChevronRightIcon,{className:"w-6 h-6 stroke-white group-hover:stroke-black flex-shrink-0"})})]},e.slug||e.url||e.title))})]},e.title)),(0,t.jsx)("li",{className:"ml-0.5 flex items-stretch",children:(0,t.jsx)("a",{className:"w-full no-underline flex items-center text-xl py-4 font-semibold tracking-tight",href:"https://cont.primariatm.ro",children:"Contul meu"})}),(0,t.jsx)("li",{className:"ml-0.5 flex items-stretch",children:(0,t.jsx)("a",{className:"w-full no-underline flex items-center text-xl py-4 font-semibold tracking-tight",href:"https://www.primariatm.ro/transparenta/monitorul-oficial",children:"Monitorul Oficial"})})]}),!!R&&(0,t.jsx)("div",{className:"bg-primary-dark pb-2 pt-0 sm:py-6 animate-[menuSlideDown_150ms_ease-out]",children:(0,t.jsxs)(x.Wrap,{className:"py-4",children:[(0,t.jsx)(v.H3,{className:"max-w-none sm:pb-2",children:"Timi, asistenta virtualÄ a PrimÄriei TimiÈoara, te va ajuta sÄ gÄseÈti ce cauÈi"}),(0,t.jsx)(m.AskTimiInput,{autoFocus:!O,initialValue:D,onEscape:()=>P(!1),onSubmit:F,onValueChange:$}),(0,t.jsx)("div",{className:"text-white/30 text-xs mt-2 px-3",children:"Enter trimite întrebarea cÄtre asistenta virtualÄ Timi"}),!!(L&&L.results.length>0)&&L.results.map(e=>e.hits.length>0&&(0,t.jsxs)("div",{className:"sm:grid grid-cols-9 border-t border-primary mt-8",children:[(0,t.jsx)("div",{className:"pt-2",children:(0,t.jsx)(v.H3,{children:_[e.indexUid]||e.indexUid})}),(0,t.jsx)("ul",{className:"divide-y divide-primary search-results -mx-4 sm:mx-0 col-span-8",children:e.hits.map(r=>(0,t.jsx)("li",{className:"p-4 hover:bg-primary-darker transition-colors duration-150",children:(0,t.jsxs)("div",{className:"flex gap-x-3",children:[(0,t.jsxs)("div",{className:"w-6 text-blue-200 mt-0.5",children:["services"===e.indexUid&&(0,t.jsx)(i.ClipboardSignature,{}),"pages"===e.indexUid&&(0,t.jsx)(a.File,{}),"hcl"===e.indexUid&&(0,t.jsx)(o.ScrollText,{}),"departments"===e.indexUid&&(0,t.jsx)(l.Users,{})]}),(0,t.jsxs)("a",{className:"no-underline block w-full",href:r.url,children:[(0,t.jsx)("div",{className:"font-bold",children:"hcl"===e.indexUid?(0,t.jsxs)(t.Fragment,{children:["HCL"," ",(0,t.jsx)(t.Fragment,{children:(0,p.renderHtml)(r._formatted?.nr)}),"/",(0,t.jsx)(t.Fragment,{children:(0,p.renderHtml)(r._formatted?.data?.split("-")[0])})," ",(0,t.jsx)("span",{className:"font-normal",children:(0,t.jsx)(t.Fragment,{children:(0,p.renderHtml)(r._formatted.title)})})]}):(0,t.jsx)(t.Fragment,{children:(0,p.renderHtml)(r._formatted.title)})}),(0,t.jsx)("div",{className:"text-slate-300",children:(0,t.jsx)(t.Fragment,{children:(0,p.renderHtml)(r._formatted.description)})}),"hcl"!==e.indexUid||r._matchesPosition?.content&&(0,t.jsx)("div",{className:"text-slate-300",children:(0,t.jsx)(t.Fragment,{children:(0,p.renderHtml)(r._formatted.content)})})]})]})},r.url))})]},e.indexUid))]})}),(0,t.jsx)(g.FloatingChat,{onPendingMessageConsumed:()=>z(null),pendingMessage:U})]})},"searchClient",0,w])},204365,90180,e=>{"use strict";var t=e.i(813919),r=e.i(7284),n=e.i(22114),i=e.i(763777),a=e.i(611941),o=e.i(497637),s=e.i(843370),l=e.i(139499);function u({children:e,className:r,...n}){return(0,t.jsx)("div",{className:(0,l.cn)("w-full max-w flex flex-col items-start p-6 bg-white border border-gray-200 rounded-xl shadow h-max",r),...n,children:e})}e.s(["CardShadow",0,u],90180);var c=e.i(611642);e.s(["QuickMenu",0,function({items:e,isMobile:l}){let[d,p]=(0,n.useState)(!0),f=(0,o.usePathname)();return(0,n.useEffect)(()=>{l&&p(!1)},[l]),(0,t.jsxs)(u,{className:"p-0 pb-3 tracking-tight mb-10 w-full max-w-5xl h-max",children:[(0,t.jsxs)("div",{className:"p-3 w-full flex-stretch-0 flex items-center justify-between cursor-pointer",onClick:()=>{p(!d)},children:[(0,t.jsx)(c.H3,{children:"SecÈiuni Cont"}),(0,t.jsx)("div",{className:"flex items-center",children:d?(0,t.jsx)(a.ChevronUpIcon,{className:"ml-2"}):(0,t.jsx)(i.ChevronDownIcon,{className:"ml-2"})})]}),d?(0,t.jsx)(t.Fragment,{children:e.map(e=>("/"===f&&"/"===e.href||f.includes(e.href)&&"/"!==e.href?e.active=!0:e.active=!1,(0,t.jsx)("li",{className:(0,r.clsx)("p-3 list-none w-full",e.active?"bg-primary text-white":"bg-white text-slate-300"),children:(0,t.jsx)("a",{className:(0,r.clsx)("no-underline group flex flex-col space-x-2",e.href||"curs
73or-default"),href:e.href||"#",children:(0,t.jsx)("div",{className:"flex items-center justify-between",children:(0,t.jsxs)("div",{className:(0,r.clsx)("flex font-semibold text-lg group-hover:underline items-center",e.active?"text-white":"text-black group-hover:text-primary"),children:[e.icon?(0,t.jsx)(s.Icon,{className:"w-6 h-6 mr-2",name:e.icon}):null,e.title]})})})},e.title)))}):null]})}],204365)},243785,e=>{"use strict";var t=e.i(813919),r=e.i(7284);let n=(0,e.i(22114).forwardRef)(({name:e,children:n,className:i,value:a,error:o=null,...s},l)=>{let u=`${e}-${a}`;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:`flex my-2 ${i} relative`,children:[(0,t.jsx)("input",{"aria-describedby":"candidates-description",className:"peer appearance-none",id:u,name:e,ref:l,type:"radio",value:a,...s}),(0,t.jsx)("label",{className:(0,r.clsx)('text-lg pl-9 cursor-pointer before:content-[""] before:border-2 before:rounded-full peer-checked:before:border-primary hover:before:border-primary before:w-7 before:h-7 before:block before:absolute before:bg-white before:left-0 before:top-0 after:hidden peer-checked:after:block after:absolute after:left-1.5 after:top-1.5 after:w-4 after:h-4 after:bg-primary after:rounded-full',o?"text-red-600 before:border-red-600":"text-slate-700 before:border-slate-400"),htmlFor:u,children:n})]}),!!o&&(0,t.jsx)("div",{className:`${i} text-sm group-focus-within:text-slate-700 text-slate-500`,children:(0,t.jsx)("span",{className:"text-red-600",children:o.message})})]})});n.displayName="Radio",e.s(["Radio",0,n])},700379,e=>
73{e.v({button_roeid:"roeid-button-module__XXkZwq__button_roeid",roeid_button:"roeid-button-module__XXkZwq__roeid_button",roeid_button_icon:"roeid-button-module__XXkZwq__roeid_button_icon",roeid_button_size_m:"roeid-button-module__XXkZwq__roeid_button_size_m",roeid_button_text:"roeid-button-module__XXkZwq__roeid_button_text"})},901197,e=>{"use strict";var t=e.i(813919),r=e.i(857691),n=e.i(700379);e.s(["ROeIDButton",0,function({returnTo:e}){let i=async()=>{try{let t=new URL(window.location.href);t.searchParams.delete("error"),await r.authClient.signIn.oauth2({providerId:"roeid",callbackURL:`/actualizare-adresa?returnTo=${encodeURIComponent(e||"/")}`,errorCallbackURL:t.toString()})}catch(e){console.error("[ROeIDButton] Sign-in error:",e)}};return(0,t.jsxs)("button",{className:`${n.default.roeid_button} ${n.default.roeid_button_size_m} ${n.default.button_roeid} w-full`,onClick:i,style:{backgroundColor:"#2e5ae6",color:"#fff",border:"none"},type:"button",children:[(0,t.jsx)("span",{className:n.default.roeid_button_icon,style:{width:"10%",position:"relative"},children:(0,t.jsx)("img",{alt:"Autentificare cu ROeID",src:"https://raw.githubusercontent.com/roeid-ro/integrare/48cf43dec54cf2e27eb549b69cdd688c8e87d6af/html/roeid_logo_secondary.svg",style:{position:"absolute",minWidth:"29px",left:"10"}})}),(0,t.jsx)("span",{className:`${n.default.roeid_button_text}`,style:{width:"90%"},children:"Autentificare cu ROeID"})]})}],901197)},503631,e=>{"use strict";var t=e.i(813919),r=e.i(7284),n=e.i(22114);let i=(0,n.forwardRef)(({onChange:e,className:i,defaultValue:a,...o},s)=>{let[l,u]=(0,n.useState)(a&&""!==a),[c,d]=(0,n.useState)(a),p=()=>{d(""),e&&e(""),u(!1)};return(0,t.jsxs)("div",{className:(0,r.default)("relative text-lg",i),children:[(0,t.jsx)("div",{className:"absolute inset-y-0 left-0 flex pl-3 pointer-events-none",children:(0,t.jsx)("svg",{"aria-hidden":"true",className:"w-4 h-4 mt-[11px] text-slate-400",focusable:"false",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M18.932 16.845a10.206 10.206 0 0 0 2.087-6.261A10.5 10.5 0 0 0 10.584 0a10.584 10.584 0 0 0 0 21.168 9.9 9.9 0 0 0 6.261-2.087l4.472 4.472a1.441 1.441 0 0 0 2.087 0 1.441 1.441 0 0 0 0-2.087zm-8.348 1.193a7.508 7.508 0 0 1-7.6-7.453 7.6 7.6 0 0 1 15.2 0 7.508 7.508 0 0 1-7.6 7.452z",fill:"currentColor"})})}),(0,t.jsx)("input",{className:(0,r.default)("slashed-zero tabular-nums px-2 py-1 border border-slate-300 h-10 rounded-full w-full pr-8 pl-9","appearance-none focus:ring-primary-light focus-visible:ring-4 focus:ring-4 focus:ring-offset-0 focus:outline-none focus:border-slate-500 focus:placeholder-white placeholder-slate-500",i),onChange:t=>{d(t.target.value),u(""!==t.target.value),e&&e(t.target.value)},onKeyUp:e=>{"Escape"===e.key&&(p(),e.preventDefault())},ref:s,value:c,...o}),l?(0,t.jsx)("button",{className:"absolute top-0 right-0 p-2 cursor-pointer group",onClick:p,type:"button",children:(0,t.jsx)("svg",{className:"w-4 h-4 mt-1 mr-1.5 stroke-slate-400 group-hover:stroke-black",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M6 18L18 6M6 6l12 12",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})})}):null]})});i.displayName="SearchInput",e.s(["SearchInput",0,i])},506214,e=>{"use strict";var t=e.i(813919),r=e.i(867978);e.s(["SiteLogo",0,function(){return(0,t.jsx)(r.default,{className:"flex items-center py-3 pr-2.5 no-underline",href:"https://www.primariatm.ro/",prefetch:!1,children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("img",{alt:"Stema TimiÈoarei",className:"w-6 sm:w-8 mr-1",height:595,src:"https://d37frk053gnamp.cloudfront.net/img/pmt-logo-white.png",width:419}),(0,t.jsxs)("div",{className:"pt-1 pl-1 text-sm font-semibold leading-4 text-white tracking-tight",children:["Municipiul",(0,t.jsx)("br",{}),"TimiÈoara"]})]})})}])},193865,e=>{"use strict";var t=e.i(813919),r=e.i(7284),n=e.i(432842),i=e.i(22114),a=e.i(139499);e.s(["StepsProgress",0,function({steps:e,currentId:o,onSelect:s,className:l}){let u=e.findIndex(e=>e.id===o);return(0,t.jsxs)("nav",{"aria-label":"PaÈii de completare",className:(0,a.cn)("mb-8",l),children:[(0,t.jsxs)("p",{className:"font-bold sm:hidden",children:["Pasul ",u+1," din ",e.length," â"," ",e[u]?.label]}),(0,t.jsx)("ol",{className:"ml-0 hidden list-none items-start pb-16 sm:flex",children:e.map((a,l)=>{let u=a.id===o,c=!!s&&!a.disabled&&!u,d=0===l,p=l===e.length-1;return(0,t.jsxs)(i.Fragment,{children:[l>0?(0,t.jsx)("li",{"aria-hidden":"true",className:(0,r.clsx)("mt-[15px] h-0.5 min-w-4 flex-1",e[l-1]?.completed?"bg-green-700/50":"bg-slate-200")}):null,(0,t.jsx)("li",{className:"shrink-0",children:(0,t.jsxs)("button",{"aria-current":u?"step":void 0,className:(0,r.clsx)("relative block",c?"cursor-pointer":"cursor-default"),disabled:!c,onClick:()=>c?s?.(a.id):void 0,type:"button",children:[(0,t.jsx)("span",{className:(0,r.clsx)("flex h-8 w-8 items-center justify-center rounded-full text-base font-bold",a.completed&&"bg-green-700 text-white",!a.completed&&u&&"bg-primary text-white",!a.completed&&!u&&"border-2 border-slate-300 bg-white text-slate-500"),children:a.completed?(0,t.jsx)(n.CheckIcon,{"aria-hidden":"true",className:"h-5 w-5"}):l+1}),(0,t.jsx)("span",{className:(0,r.clsx)("absolute top-10 block w-32 text-sm leading-tight",d&&"left-0 text-left",p&&"right-0 text-right",!d&&!p&&"left-1/2 -translate-x-1/2 text-center",u?"font-bold text-primary":"text-slate-600"),children:a.label})]})})]},a.id)})})]})}])},665643,e=>{"use strict";var t=e.i(813919),r=e.i(604670);e.s(["Toaster",0,function(){return(0,t.jsx)(r.ToastContainer,{position:"top-right",stacked:!0,toastStyle:{width:"400px",fontSize:"14px",lineHeight:"1.3"}})}])},344901,157806,e=>{"use strict";var t=e.i(813919),r=e.i(22114),n=e.i(496026),i=e.i(109254),a=e.i(424692),o=e.i(291967),s=e.i(443510),l=e.i(368044),u=e.i(426813),c=e.i(384328),d=e.i(896223),p="Collapsible",[f,m]=(0,n.createContextScope)(p),[h,g]=f(p),v=r.forwardRef((e,n
73)=>{let{__scopeCollapsible:i,open:a,defaultOpen:o,disabled:u,onOpenChange:c,...f}=e,[m,g]=(0,s.useControllableState)({prop:a,defaultProp:o??!1,onChange:c,caller:p});return(0,t.jsx)(h,{scope:i,disabled:u,contentId:(0,d.useId)(),open:m,onOpenToggle:r.useCallback(()=>g(e=>!e),[g]),children:(0,t.jsx)(l.Primitive.div,{"data-state":k(m),"data-disabled":u?"":void 0,...f,ref:n})})});v.displayName=p;var y="CollapsibleTrigger",b=r.forwardRef((e,r)=>{let{__scopeCollapsible:n,...i}=e,a=g(y,n);return(0,t.jsx)(l.Primitive.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":k(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...i,ref:r,onClick:(0,o.composeEventHandlers)(e.onClick,a.onOpenToggle)})});b.displayName=y;var x="CollapsibleContent",w=r.forwardRef((e,r)=>{let{forceMount:n,...i}=e,a=g(x,e.__scopeCollapsible);return(0,t.jsx)(c.Presence,{present:n||a.open,children:({present:e})=>(0,t.jsx)(_,{...i,ref:r,present:e})})});w.displayName=x;var _=r.forwardRef((e,n)=>{let{__scopeCollapsible:i,present:o,children:s,...c}=e,d=g(x,i),[p,f]=r.useState(o),m=r.useRef(null),h=(0,a.useComposedRefs)(n,m),v=r.useRef(0),y=v.current,b=r.useRef(0),w=b.current,_=d.open||p,S=r.useRef(_),E=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,u.useLayoutEffect)(()=>{let e=m.current;if(e){E.current=E.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();v.current=t.height,b.current=t.width,S.current||(e.style.transitionDuration=E.current.transitionDuration,e.style.animationName=E.current.animationName),f(o)}},[d.open,o]),(0,t.jsx)(l.Primitive.div,{"data-state":k(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!_,...c,ref:h,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:_&&s})});function k(e){return e?"open":"closed"}var S=e.i(633126),E="Accordion",T=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[j,I,C]=(0,i.createCollection)(E),[A,N]=(0,n.createContextScope)(E,[C,m]),O=m(),R=r.default.forwardRef((e,r)=>{let{type:n,...i}=e;return(0,t.jsx)(j.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,t.jsx)(U,{...i,ref:r}):(0,t.jsx)(M,{...i,ref:r})})});R.displayName=E;var[P,D]=A(E),[$,L]=A(E,{collapsible:!1}),M=r.default.forwardRef((e,n)=>{let{value:i,defaultValue:a,onValueChange:o=()=>{},collapsible:l=!1,...u}=e,[c,d]=(0,s.useControllableState)({prop:i,defaultProp:a??"",onChange:o,caller:E});return(0,t.jsx)(P,{scope:e.__scopeAccordion,value:r.default.useMemo(()=>c?[c]:[],[c]),onItemOpen:d,onItemClose:r.default.useCallback(()=>l&&d(""),[l,d]),children:(0,t.jsx)($,{scope:e.__scopeAccordion,collapsible:l,children:(0,t.jsx)(q,{...u,ref:n})})})}),U=r.default.forwardRef((e,n)=>{let{value:i,defaultValue:a,onValueChange:o=()=>{},...l}=e,[u,c]=(0,s.useControllableState)({prop:i,defaultProp:a??[],onChange:o,caller:E}),d=r.default.useCallback(e=>c((t=[])=>[...t,e]),[c]),p=r.default.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,t.jsx)(P,{scope:e.__scopeAccordion,value:u,onItemOpen:d,onItemClose:p,children:(0,t.jsx)($,{scope:e.__scopeAccordion,collapsible:!0,children:(0,t.jsx)(q,{...l,ref:n})})})}),[z,F]=A(E),q=r.default.forwardRef((e,n)=>{let{__scopeAccordion:i,disabled:s,dir:u,orientation:c="vertical",...d}=e,p=r.default.useRef(null),f=(0,a.useComposedRefs)(p,n),m=I(i),h="ltr"===(0,S.useDirection)(u),g=(0,o.composeEventHandlers)(e.onKeyDown,e=>{if(!T.includes(e.key))return;let t=e.target,r=m().filter(e=>!e.ref.current?.disabled),n=r.findIndex(e=>e.ref.current===t),i=r.length;if(-1===n)return;e.preventDefault();let a=n,o=i-1,s=()=>{(a=n+1)>o&&(a=0)},l=()=>{(a=n-1)<0&&(a=o)};switch(e.key){case"Home":a=0;break;case"End":a=o;break;case"ArrowRight":"horizontal"===c&&(h?s():l());break;case"ArrowDown":"vertical"===c&&s();break;case"ArrowLeft":"horizontal"===c&&(h?l():s());break;case"ArrowUp":"vertical"===c&&l()}let u=a%i;r[u].ref.current?.focus()});return(0,t.jsx)(z,{scope:i,disabled:s,direction:u,orientation:c,children:(0,t.jsx)(j.Slot,{scope:i,children:(0,t.jsx)(l.Primitive.div,{...d,"data-orientation":c,ref:f,onKeyDown:s?void 0:g})})})}),Z="AccordionItem",[V,B]=A(Z),H=r.default.forwardRef((e,r)=>{let{__scopeAccordion:n,value:i,...a}=e,o=F(Z,n),s=D(Z,n),l=O(n),u=(0,d.useId)(),c=i&&s.value.includes(i)||!1,p=o.disabled||e.disabled;return(0,t.jsx)(V,{scope:n,open:c,disabled:p,triggerId:u,children:(0,t.jsx)(v,{"data-orientation":o.orientation,"data-state":Q(c),...l,...a,ref:r,disabled:p,open:c,onOpenChange:e=>{e?s.onItemOpen(i):s.onItemClose(i)}})})});H.displayName=Z;var W="AccordionHeader",G=r.default.forwardRef((e,r)=>{let{__scopeAccordion:n,...i}=e,a=F(E,n),o=B(W,n);return(0,t.jsx)(l.Primitive.h3,{"data-orientation":a.orientation,"data-state":Q(o.open),"data-disabled":o.disabled?"":void 0,...i,ref:r})});G.displayName=W;var K="AccordionTrigger",Y=r.default.forwardRef((e,r)=>{let{__scopeAccordion:n,...i}=e,a=F(E,n),o=B(K,n),s=L(K,n),l=O(n);return(0,t.jsx)(j.ItemSlot,{scope:n,children:(0,t.jsx)(b,{"aria-disabled":o.open&&!s.collapsible||void 0,"data-orientation":a.orientation,id:o.triggerId,...l,...i,ref:r})})});Y.displayName=K;var X="AccordionContent",J=r.default.forwardRef((e,r)=>{let{__scopeAccordion:n,...i}=e,a=F(E,n),o=B(X,n),s=O(n);return(0,t.jsx)(w,{role:"region","aria-labelledby":o.triggerId,"data-orientation":a.orientation,...s,...i,ref:r,
73style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function Q(e){return e?"open":"closed"}J.displayName=X;var ee=e.i(805228);e.s(["ChevronDown",()=>ee.default],157806);var ee=ee,et=e.i(139499);e.s(["Accordion",0,function({...e}){return(0,t.jsx)(R,{"data-slot":"accordion",...e})},"AccordionContent",0,function({className:e,children:r,...n}){return(0,t.jsx)(J,{"data-slot":"accordion-content",className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:(0,t.jsx)("div",{className:(0,et.cn)("pb-4 pt-0",e),children:r})})},"AccordionItem",0,function({className:e,...r}){return(0,t.jsx)(H,{"data-slot":"accordion-item",className:(0,et.cn)("border-b",e),...r})},"AccordionTrigger",0,function({className:e,children:r,...n}){return(0,t.jsx)(G,{className:"flex",children:(0,t.jsxs)(Y,{"data-slot":"accordion-trigger",className:(0,et.cn)("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",e),...n,children:[r,(0,t.jsx)(ee.default,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})})}],344901)},776218,339708,294237,e=>{"use strict";var t=e.i(813919),r=e.i(22114),n=e.i(424692),i=Symbol.for("react.lazy"),a=r[" use ".trim().toString()];function o(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===i&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}function s(e){var i;let s,l=(i=e,(s=r.forwardRef((e,t)=>{let{children:i,...s}=e;if(o(i)&&"function"==typeof a&&(i=a(i._payload)),r.isValidElement(i)){var l;let e,a,o=(l=i,(a=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(a=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),u=function(e,t){let r={...t};for(let n in t){let i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...a}:"className"===n&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}(s,i.props);return i.type!==r.Fragment&&(u.ref=t?(0,n.composeRefs)(t,o):o),r.cloneElement(i,u)}return r.Children.count(i)>1?r.Children.only(null):null})).displayName=`${i}.SlotClone`,s),u=r.forwardRef((e,n)=>{let{children:i,...s}=e;o(i)&&"function"==typeof a&&(i=a(i._payload));let u=r.Children.toArray(i),d=u.find(c);if(d){let e=d.props.children,i=u.map(t=>
73t!==d?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,t.jsx)(l,{...s,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return(0,t.jsx)(l,{...s,ref:n,children:i})});return u.displayName=`${e}.Slot`,u}var l=s("Slot"),u=Symbol("radix.slottable");function c(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}e.s(["Slot",0,l,"createSlot",0,s],339708);var d=e.i(7284);let p=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,f=d.clsx,m=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return f(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(e=>{let t=null==r?void 0:r[e],n=null==a?void 0:a[e];if(null===t)return null;let o=p(t)||p(n);return i[e][o]}),s=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return f(e,o,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...a,...s}[t]):({...a,...s})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)};e.s(["cva",0,m],294237);var h=e.i(139499);let g=m("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});e.s(["Button",0,function({className:e,variant:r,size:n,asChild:i=!1,...a}){return(0,t.jsx)(i?l:"button",{className:(0,h.cn)(g({variant:r,size:n,className:e})),"data-slot":"button",...a})}],776218)},202873,e=>{"use strict";var t=e.i(813919),r=e.i(22114),n=e.i(547482),i=e.i(971508),i=i;let a=(0,e.i(950846).default)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);var o=e.i(139499),s=e.i(776218);let l=r.createContext(null);function u(){let e=r.useContext(l);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}e.s(["Carousel",0,function({orientation:e="horizontal",opts:i,setApi:a,plugins:s,className:u,children:c,...d}){let[p,f]=(0,n.default)({...i,axis:"horizontal"===e?"x":"y"},s),[m,h]=r.useState(!1),[g,v]=r.useState(!1),y=r.useCallback(e=>{e&&(h(e.canScrollPrev()),v(e.canScrollNext()))},[]),b=r.useCallback(()=>{f?.scrollPrev()},[f]),x=r.useCallback(()=>{f?.scrollNext()},[f]),w=r.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),b()):"ArrowRight"===e.key&&(e.preventDefault(),x())},[b,x]);return r.useEffect(()=>{f&&a&&a(f)},[f,a]),r.useEffect(()=>{if(f)return y(f),f.on("reInit",y),f.on("select",y),()=>{f?.off("select",y)}},[f,y]),(0,t.jsx)(l.Provider,{value:{carouselRef:p,api:f,opts:i,orientation:e||(i?.axis==="y"?"vertical":"horizontal"),scrollPrev:b,scrollNext:x,canScrollPrev:m,canScrollNext:g},children:(0,t.jsx)("div",{"aria-roledescription":"carousel",className:(0,o.cn)("relative",u),"data-slot":"carousel",onKeyDownCapture:w,role:"region",...d,children:c})})},"CarouselContent",0,function({className:e,...r}){let{carouselRef:n,orientation:i}=u();return(0,t.jsx)("div",{className:"overflow-hidden","data-slot":"carousel-content",ref:n,children:(0,t.jsx)("div",{className:(0,o.cn)("flex","horizontal"===i?"-ml-4":"-mt-4 flex-col",e),...r})})},"CarouselItem",0,function({className:e,...r}){let{orientation:n}=u();return(0,t.jsx)("div",{"aria-roledescription":"slide",className:(0,o.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===n?"pl-4":"pt-4",e),"data-slot":"carousel-item",role:"group",...r})},"CarouselNext",0,function({className:e,variant:r="outline",size:n="icon",...i}){let{orientation:l,scrollNext:c,canScrollNext:d}=u();return(0,t.jsxs)(s.Button,{className:(0,o.cn)("absolute size-8 rounded-full","horizontal"===l?"top-1/2 -right-12 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),"data-slot":"carousel-next",disabled:!d,onClick:c,size:n,variant:r,...i,children:[(0,t.jsx)(a,{}),(0,t.jsx)("span",{className:"sr-only",children:"Next slide"})]})},"CarouselPrevious",0,function({className:e,variant:r="outline",size:n="icon",...a}){let{orientation:l,scrollPrev:c,canScrollPrev:d}=u();return(0,t.jsxs)(s.Button,{className:(0,o.cn)("absolute size-8 rounded-full","horizontal"===l?"top-1/2 -left-12 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),"data-slot":"carousel-previous",disabled:!d,onClick:c,size:n,variant:r,...a,children:[(0,t.jsx)(i.default,{}),(0,t.jsx)("span",{className:"sr-only",children:"Previous slide"})]})}],202873)},453488,e=>{"use strict";var t=e.i(813919),r=e.i(22114),n=e.i(291967),i=e.i(424692),a=e.i(496026),o=e.i(711176),s=e.i(896223),l=e.i(685491),u=e.i(292304),c=e.i(384328),d=e.i(368044),p=e.i(519399),f=e.i(443510),m=e.i(546801),[h,g]=(0,a.createContextScope)("Tooltip",[l.createPopperScope]),v=(0,l.createPopperScope)(),y="TooltipProvider",b="tooltip.open",[x,w]=h(y),_=e=>
73{let{__scopeTooltip:n,delayDuration:i=700,skipDelayDuration:a=300,disableHoverableContent:o=!1,children:s}=e,l=r.useRef(!0),u=r.useRef(!1),c=r.useRef(0);return r.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,t.jsx)(x,{scope:n,isOpenDelayedRef:l,delayDuration:i,onOpen:r.useCallback(()=>{window.clearTimeout(c.current),l.current=!1},[]),onClose:r.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.current=!0,a)},[a]),isPointerInTransitRef:u,onPointerInTransitChange:r.useCallback(e=>{u.current=e},[]),disableHoverableContent:o,children:s})};_.displayName=y;var k="Tooltip",[S,E]=h(k),T=e=>{let{__scopeTooltip:n,children:i,open:a,defaultOpen:o,onOpenChange:u,disableHoverableContent:c,delayDuration:d}=e,p=w(k,e.__scopeTooltip),m=v(n),[h,g]=r.useState(null),y=(0,s.useId)(),x=r.useRef(0),_=c??p.disableHoverableContent,E=d??p.delayDuration,T=r.useRef(!1),[j,I]=(0,f.useControllableState)({prop:a,defaultProp:o??!1,onChange:e=>{e?(p.onOpen(),document.dispatchEvent(new CustomEvent(b))):p.onClose(),u?.(e)},caller:k}),C=r.useMemo(()=>j?T.current?"delayed-open":"instant-open":"closed",[j]),A=r.useCallback(()=>{window.clearTimeout(x.current),x.current=0,T.current=!1,I(!0)},[I]),N=r.useCallback(()=>{window.clearTimeout(x.current),x.current=0,I(!1)},[I]),O=r.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{T.current=!0,I(!0),x.current=0},E)},[E,I]);return r.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]),(0,t.jsx)(l.Root,{...m,children:(0,t.jsx)(S,{scope:n,contentId:y,open:j,stateAttribute:C,trigger:h,onTriggerChange:g,onTriggerEnter:r.useCallback(()=>{p.isOpenDelayedRef.current?O():A()},[p.isOpenDelayedRef,O,A]),onTriggerLeave:r.useCallback(()=>{_?N():(window.clearTimeout(x.current),x.current=0)},[N,_]),onOpen:A,onClose:N,disableHoverableContent:_,children:i})})};T.displayName=k;var j="TooltipTrigger",I=r.forwardRef((e,a)=>{let{__scopeTooltip:o,...s}=e,u=E(j,o),c=w(j,o),p=v(o),f=r.useRef(null),m=(0,i.useComposedRefs)(a,f,u.onTriggerChange),h=r.useRef(!1),g=r.useRef(!1),y=r.useCallback(()=>h.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),(0,t.jsx)(l.Anchor,{asChild:!0,...p,children:(0,t.jsx)(d.Primitive.button,{"aria-describedby":u.open?u.contentId:void 0,"data-state":u.stateAttribute,...s,ref:m,onPointerMove:(0,n.composeEventHandlers)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(g.current||c.isPointerInTransitRef.current||(u.onTriggerEnter(),g.current=!0))}),onPointerLeave:(0,n.composeEventHandlers)(e.onPointerLeave,()=>{u.onTriggerLeave(),g.current=!1}),onPointerDown:(0,n.composeEventHandlers)(e.onPointerDown,()=>{u.open&&u.onClose(),h.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:(0,n.composeEventHandlers)(e.onFocus,()=>{h.current||u.onOpen()}),onBlur:(0,n.composeEventHandlers)(e.onBlur,u.onClose),onClick:(0,n.composeEventHandlers)(e.onClick,u.onClose)})})});I.displayName=j;var C="TooltipPortal",[A,N]=h(C,{forceMount:void 0}),O=e=>{let{__scopeTooltip:r,forceMount:n,children:i,container:a}=e,o=E(C,r);return(0,t.jsx)(A,{scope:r,forceMount:n,children:(0,t.jsx)(c.Presence,{present:n||o.open,children:(0,t.jsx)(u.Portal,{asChild:!0,container:a,children:i})})})};O.displayName=C;var R="TooltipContent",P=r.forwardRef((e,r)=>{let n=N(R,e.__scopeTooltip),{forceMount:i=n.forceMount,side:a="top",...o}=e,s=E(R,e.__scopeTooltip);return(0,t.jsx)(c.Presence,{present:i||s.open,children:s.disableHoverableContent?(0,t.jsx)(U,{side:a,...o,ref:r}):(0,t.jsx)(D,{side:a,...o,ref:r})})}),D=r.forwardRef((e,n)=>{let a=E(R,e.__scopeTooltip),o=w(R,e.__scopeTooltip),s=r.useRef(null),l=(0,i.useComposedRefs)(n,s),[u,c]=r.useState(null),{trigger:d,onClose:p}=a,f=s.current,{onPointerInTransitChange:m}=o,h=r.useCallback(()=>{c(null),m(!1)},[m]),g=r.useCallback((e,t)=>{let r,n=e.currentTarget,i={x:e.clientX,y:e.clientY},a=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,i,a)){case a:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}(i,n.getBoundingClientRect());c(((r=[...function(e,t,r=5){let n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(i,a),...function(e){let{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}(t.getBoundingClientRect())].slice()).sort((e,t)=>
73e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r<e.length;r++){let n=e[r];for(;t.length>=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(r))),m(!0)},[m]);return r.useEffect(()=>()=>h(),[h]),r.useEffect(()=>{if(d&&f){let e=e=>g(e,f),t=e=>g(e,d);return d.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[d,f,g,h]),r.useEffect(()=>{if(u){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=d?.contains(t)||f?.contains(t),i=!function(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],l=o.x,u=o.y,c=s.x,d=s.y;u>n!=d>n&&r<(c-l)*(n-u)/(d-u)+l&&(i=!i)}return i}(r,u);n?h():i&&(h(),p())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[d,f,u,p,h]),(0,t.jsx)(U,{...e,ref:l})}),[$,L]=h(k,{isInside:!1}),M=(0,p.createSlottable)("TooltipContent"),U=r.forwardRef((e,n)=>{let{__scopeTooltip:i,children:a,"aria-label":s,onEscapeKeyDown:u,onPointerDownOutside:c,...d}=e,p=E(R,i),f=v(i),{onClose:h}=p;return r.useEffect(()=>(document.addEventListener(b,h),()=>document.removeEventListener(b,h)),[h]),r.useEffect(()=>{if(p.trigger){let e=e=>{let t=e.target;t?.contains(p.trigger)&&h()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[p.trigger,h]),(0,t.jsx)(o.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:h,children:(0,t.jsxs)(l.Content,{"data-state":p.stateAttribute,...f,...d,ref:n,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,t.jsx)(M,{children:a}),(0,t.jsx)($,{scope:i,isInside:!0,children:(0,t.jsx)(m.Root,{id:p.contentId,role:"tooltip",children:s||a})})]})})});P.displayName=R;var z="TooltipArrow",F=r.forwardRef((e,r)=>{let{__scopeTooltip:n,...i}=e,a=v(n);return L(z,n).isInside?null:(0,t.jsx)(l.Arrow,{...a,...i,ref:r})});F.displayName=z;var q=e.i(139499);function Z({delayDuration:e=0,...r}){return(0,t.jsx)(_,{"data-slot":"tooltip-provider",delayDuration:e,...r})}e.s(["Tooltip",0,function({...e}){return(0,t.jsx)(Z,{children:(0,t.jsx)(T,{"data-slot":"tooltip",...e})})},"TooltipContent",0,function({className:e,sideOffset:r=0,children:n,...i}){return(0,t.jsx)(O,{children:(0,t.jsxs)(P,{"data-slot":"tooltip-content",sideOffset:r,className:(0,q.cn)("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...i,children:[n,(0,t.jsx)(F,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})},"TooltipProvider",0,Z,"TooltipTrigger",0,function({...e}){return(0,t.jsx)(I,{"data-slot":"tooltip-trigger",...e})}],453488)},781933,e=>{"use strict";var t=e.i(813919),r=e.i(139499);e.s(["Wrap",0,function({children:e,nopadding:n=!1,className:i,outerClassName:a}){return(0,t.jsx)("div",{className:(0,r.cn)(n?"":"px-4 sm:px-8",a),children:(0,t.jsx)("div",{className:(0,r.cn)("mx-auto lg:max-w-5xl box-content",i),children:e})})}])},139499,e=>{"use strict";var t=e.i(7284);let r=(e,t)=>{if(0===e.length)return t.classGroupId;let n=e[0],i=t.nextPart.get(n),a=i?r(e.slice(1),i):void 0;if(a)return a;
73if(0===t.validators.length)return;let o=e.join("-");return t.validators.find(({validator:e})=>e(o))?.classGroupId},n=/^\[(.+)\]$/,i=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){(""===e?t:a(t,e)).classGroupId=r;return}"function"==typeof e?o(e)?i(e(n),t,r,n):t.validators.push({validator:e,classGroupId:r}):Object.entries(e).forEach(([e,o])=>{i(o,a(t,e),r,n)})})},a=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},o=e=>e.isThemeGetter,s=(e,t)=>t?e.map(([e,r])=>[e,r.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,r])=>[t+e,r])):e)]):e,l=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t},u=/\s+/;function c(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=d(e))&&(n&&(n+=" "),n+=t);return n}let d=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=d(e[n]))&&(r&&(r+=" "),r+=t);return r},p=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},f=/^\[(?:([a-z-]+):)?(.+)\]$/i,m=/^\d+\/\d+$/,h=new Set(["px","full","screen"]),g=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,v=/\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$/,y=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,b=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,x=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,w=e=>k(e)||h.has(e)||m.test(e),_=e=>$(e,"length",L),k=e=>!!e&&!Number.isNaN(Number(e)),S=e=>$(e,"number",k),E=e=>!!e&&Number.isInteger(Number(e)),T=e=>e.endsWith("%")&&k(e.slice(0,-1)),j=e=>f.test(e),I=e=>g.test(e),C=new Set(["length","size","percentage"]),A=e=>$(e,C,M),N=e=>$(e,"position",M),O=new Set(["image","url"]),R=e=>$(e,O,z),P=e=>$(e,"",U),D=()=>!0,$=(e,t,r)=>{let n=f.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))},L=e=>v.test(e)&&!y.test(e),M=()=>!1,U=e=>b.test(e),z=e=>x.test(e),F=function(e){let t,a,o,d=function(l){let u;return a=(t={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=new Map,n=new Map,i=(i,a)=>{r.set(i,a),++t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(i(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):i(e,t)}}})((u=[].reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{separator:t,experimentalParseClassName:r}=e,n=1===t.length,i=t[0],a=t.length,o=e=>{let r,o=[],s=0,l=0;for(let u=0;u<e.length;u++){let c=e[u];if(0===s){if(c===i&&(n||e.slice(u,u+a)===t)){o.push(e.slice(l,u)),l=u+a;continue}if("/"===c){r=u;continue}}"["===c?s++:"]"===c&&s--}let u=0===o.length?e:e.substring(l),c=u.startsWith("!"),d=c?u.substring(1):u;return{modifiers:o,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:r&&r>l?r-l:void 0}};return r?e=>r({className:e,parseClassName:o}):o})(u),...(e=>{let t=(e=>{let{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return s(Object.entries(e.classGroups),r).forEach(([e,r])=>{i(r,n,e,t)}),n})(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:e=>{let i=e.split("-");return""===i[0]&&1!==i.length&&i.shift(),r(i,t)||(e=>{if(n.test(e)){let t=n.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}})(e)},getConflictingClassGroupIds:(e,t)=>{let r=a[e]||[];return t&&o[e]?[...r,...o[e]]:r}}})(u)}).cache.get,o=t.cache.set,d=p,p(l)};function p(e){let r=a(e);if(r)return r;let n=((e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(u),s="";for(let e=o.length-1;e>=0;e-=1){let t=o[e],{modifiers:u,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:p}=r(t),f=!!p,m=n(f?d.substring(0,p):d);if(!m){if(!f||!(m=n(d))){s=t+(s.length>0?" "+s:s);continue}f=!1}let h=l(u).join(":"),g=c?h+"!":h,v=g+m;if(a.includes(v))continue;a.push(v);let y=i(m,f);for(let e=0;e<y.length;++e){let t=y[e];a.push(g+t)}s=t+(s.length>0?" "+s:s)}return s})(e,t);return o(e,n),n}return function(){return d(c.apply(null,arguments))}}(()=>{let e=p("colors"),t=p("spacing"),r=p("blur"),n=p("brightness"),i=p("borderColor"),a=p("borderRadius"),o=p("borderSpacing"),s=p("borderWidth"),l=p("contrast"),u=p("grayscale"),c=p("hueRotate"),d=p("invert"),f=p("gap"),m=p("gradientColorStops"),h=p("gradientColorStopPositions"),g=p("inset"),v=p("margin"),y=p("opacity"),b=p("padding"),x=p("saturate"),C=p("scale"),O=p("sepia"),$=p("skew"),L=p("space"),M=p("translate"),U=()=>["auto","contain","none"],z=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",j,t],q=()=>[j,t],Z=()=>["",w,_],V=()=>["auto",k,j],B=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>["start","end","center","between","around","evenly","stretch"],K=()=>["","0",j],Y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>[k,j];return{cacheSize:500,separator:":",theme:{colors:[D],spacing:[w,_],blur:["none","",I,j],brightness:X(),borderColor:[e],borderRadius:["n
73one","","full",I,j],borderSpacing:q(),borderWidth:Z(),contrast:X(),grayscale:K(),hueRotate:X(),invert:K(),gap:q(),gradientColorStops:[e],gradientColorStopPositions:[T,_],inset:F(),margin:F(),opacity:X(),padding:q(),saturate:X(),scale:X(),sepia:K(),skew:X(),space:q(),translate:q()},classGroups:{aspect:[{aspect:["auto","square","video",j]}],container:["container"],columns:[{columns:[I]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"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:[...B(),j]}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",E,j]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",j]}],grow:[{grow:K()}],shrink:[{shrink:K()}],order:[{order:["first","last","none",E,j]}],"grid-cols":[{"grid-cols":[D]}],"col-start-end":[{col:["auto",{span:["full",E,j]},j]}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":[D]}],"row-start-end":[{row:["auto",{span:[E,j]},j]}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",j]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",j]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...G()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...G(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...G(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[L]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[L]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",j,t]}],"min-w":[{"min-w":[j,t,"min","max","fit"]}],"max-w":[{"max-w":[j,t,"none","full","min","max","fit","prose",{screen:[I]},I]}],h:[{h:[j,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[j,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[j,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[j,t,"auto","min","max","fit"]}],"font-size":[{text:["base",I,_]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",S]}],"font-family":[{font:[D]}],"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",j]}],"line-clamp":[{"line-clamp":["none",k,S]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",w,j]}],"list-image":[{"list-image":["none",j]}],"list-style-type":[{list:["none","disc","decimal",j]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",w,_]}],"underline-offset":[{"underline-offset":["auto",w,j]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",j]}],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",j]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...B(),N]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",A]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},R]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}
73],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}
vendor: 4,445 bytes, line 73
73],"divide-style":[{divide:H()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[w,j]}],"outline-w":[{outline:[w,_]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[w,_]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",I,P]}],"shadow-color":[{shadow:[D]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",I,j]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",j]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",j]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",j]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[E,j]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[$]}],"skew-y":[{"skew-y":[$]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",j]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",j]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-pe":[{"scroll-pe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"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",j]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[w,_,S]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","
73none"]}]},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"]}}});e.s(["cn",0,function(...e){return F((0,t.clsx)(e))}],139499)}]); 74 75//# debugId=94b8c960-2ce8-e931-9c17-c4a389346c22
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.